~ubuntu-branches/ubuntu/breezy/quagga/breezy-security

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Mueller
  • Date: 2005-05-20 13:16:12 UTC
  • Revision ID: james.westby@ubuntu.com-20050520131612-pr6paalox60o3x3n
Tags: upstream-0.99.1
ImportĀ upstreamĀ versionĀ 0.99.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.59 for Quagga 0.99.1.
 
4
#
 
5
# Report bugs to <http://bugzilla.quagga.net>.
 
6
#
 
7
# Copyright (C) 2003 Free Software Foundation, Inc.
 
8
# This configure script is free software; the Free Software Foundation
 
9
# gives unlimited permission to copy, distribute and modify it.
 
10
## --------------------- ##
 
11
## M4sh Initialization.  ##
 
12
## --------------------- ##
 
13
 
 
14
# Be Bourne compatible
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22
  set -o posix
 
23
fi
 
24
DUALCASE=1; export DUALCASE # for MKS sh
 
25
 
 
26
# Support unset when possible.
 
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
28
  as_unset=unset
 
29
else
 
30
  as_unset=false
 
31
fi
 
32
 
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
 
65
 
 
66
 
 
67
# Name of the executable.
 
68
as_me=`$as_basename "$0" ||
 
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
70
         X"$0" : 'X\(//\)$' \| \
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
 
73
echo X/"$0" |
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
 
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
134
do
 
135
  IFS=$as_save_IFS
 
136
  test -z "$as_dir" && as_dir=.
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
 
139
         /*)
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
 
154
done
 
155
;;
 
156
  esac
 
157
 
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
 
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
 
167
    sed '
 
168
      N
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
172
      t loop
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
 
175
    ' >$as_me.lineno &&
 
176
  chmod +x $as_me.lineno ||
 
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
178
   { (exit 1); exit 1; }; }
 
179
 
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
 
181
  # (the dirname of $[0] is not the place where we might find the
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
 
184
  # Exit status is that of the last command.
 
185
  exit
 
186
}
 
187
 
 
188
 
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
194
esac
 
195
 
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
 
197
  as_expr=expr
 
198
else
 
199
  as_expr=false
 
200
fi
 
201
 
 
202
rm -f conf$$ conf$$.exe conf$$.file
 
203
echo >conf$$.file
 
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
205
  # We could just check for DJGPP; but this test a) works b) is more generic
 
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
207
  if test -f conf$$.exe; then
 
208
    # Don't use ln at all; we don't have any links
 
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
 
213
elif ln conf$$.file conf$$ 2>/dev/null; then
 
214
  as_ln_s=ln
 
215
else
 
216
  as_ln_s='cp -p'
 
217
fi
 
218
rm -f conf$$ conf$$.exe conf$$.file
 
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  test -d ./-p && rmdir ./-p
 
224
  as_mkdir_p=false
 
225
fi
 
226
 
 
227
as_executable_p="test -f"
 
228
 
 
229
# Sed expression to map a string onto a valid CPP name.
 
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
231
 
 
232
# Sed expression to map a string onto a valid variable name.
 
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
234
 
 
235
 
 
236
# IFS
 
237
# We need space, tab and new line, in precisely that order.
 
238
as_nl='
 
239
'
 
240
IFS="   $as_nl"
 
241
 
 
242
# CDPATH.
 
243
$as_unset CDPATH
 
244
 
 
245
 
 
246
 
 
247
# Check that we are running under the correct shell.
 
248
SHELL=${CONFIG_SHELL-/bin/sh}
 
249
 
 
250
case X$ECHO in
 
251
X*--fallback-echo)
 
252
  # Remove one level of quotation (which was required for Make).
 
253
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
254
  ;;
 
255
esac
 
256
 
 
257
echo=${ECHO-echo}
 
258
if test "X$1" = X--no-reexec; then
 
259
  # Discard the --no-reexec flag, and continue.
 
260
  shift
 
261
elif test "X$1" = X--fallback-echo; then
 
262
  # Avoid inline document here, it may be left over
 
263
  :
 
264
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
265
  # Yippee, $echo works!
 
266
  :
 
267
else
 
268
  # Restart under the correct shell.
 
269
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
270
fi
 
271
 
 
272
if test "X$1" = X--fallback-echo; then
 
273
  # used as fallback echo
 
274
  shift
 
275
  cat <<_LT_EOF
 
276
$*
 
277
_LT_EOF
 
278
  exit 0
 
279
fi
 
280
 
 
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
282
# if CDPATH is set.
 
283
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
284
 
 
285
if test -z "$ECHO"; then
 
286
if test "X${echo_test_string+set}" != Xset; then
 
287
# find a string as large as possible, as long as the shell can cope with it
 
288
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
289
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
290
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
291
       echo_test_string="`eval $cmd`" &&
 
292
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
293
    then
 
294
      break
 
295
    fi
 
296
  done
 
297
fi
 
298
 
 
299
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
300
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
301
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
302
  :
 
303
else
 
304
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
305
  # backslashes.  This makes it impossible to quote backslashes using
 
306
  #   echo "$something" | sed 's/\\/\\\\/g'
 
307
  #
 
308
  # So, first we look for a working echo in the user's PATH.
 
309
 
 
310
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
311
  for dir in $PATH /usr/ucb; do
 
312
    IFS="$lt_save_ifs"
 
313
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
314
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
315
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
316
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
317
      echo="$dir/echo"
 
318
      break
 
319
    fi
 
320
  done
 
321
  IFS="$lt_save_ifs"
 
322
 
 
323
  if test "X$echo" = Xecho; then
 
324
    # We didn't find a better echo, so look for alternatives.
 
325
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
326
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
327
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
328
      # This shell has a builtin print -r that does the trick.
 
329
      echo='print -r'
 
330
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
331
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
332
      # If we have ksh, try running configure again with it.
 
333
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
334
      export ORIGINAL_CONFIG_SHELL
 
335
      CONFIG_SHELL=/bin/ksh
 
336
      export CONFIG_SHELL
 
337
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
338
    else
 
339
      # Try using printf.
 
340
      echo='printf %s\n'
 
341
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
342
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
343
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
344
        # Cool, printf works
 
345
        :
 
346
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
347
           test "X$echo_testing_string" = 'X\t' &&
 
348
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
349
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
350
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
351
        export CONFIG_SHELL
 
352
        SHELL="$CONFIG_SHELL"
 
353
        export SHELL
 
354
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
355
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = 'X\t' &&
 
357
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
358
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
359
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
360
      else
 
361
        # maybe with a smaller string...
 
362
        prev=:
 
363
 
 
364
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
365
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
366
          then
 
367
            break
 
368
          fi
 
369
          prev="$cmd"
 
370
        done
 
371
 
 
372
        if test "$prev" != 'sed 50q "$0"'; then
 
373
          echo_test_string=`eval $prev`
 
374
          export echo_test_string
 
375
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
376
        else
 
377
          # Oops.  We lost completely, so just stick with echo.
 
378
          echo=echo
 
379
        fi
 
380
      fi
 
381
    fi
 
382
  fi
 
383
fi
 
384
fi
 
385
 
 
386
# Copy echo and quote the copy suitably for passing to libtool from
 
387
# the Makefile, instead of quoting the original, which is used later.
 
388
ECHO=$echo
 
389
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
390
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
391
fi
 
392
 
 
393
 
 
394
 
 
395
 
 
396
# Name of the host.
 
397
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
398
# so uname gets run too.
 
399
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
400
 
 
401
exec 6>&1
 
402
 
 
403
#
 
404
# Initializations.
 
405
#
 
406
ac_default_prefix=/usr/local
 
407
ac_config_libobj_dir=.
 
408
cross_compiling=no
 
409
subdirs=
 
410
MFLAGS=
 
411
MAKEFLAGS=
 
412
SHELL=${CONFIG_SHELL-/bin/sh}
 
413
 
 
414
# Maximum number of lines to put in a shell here document.
 
415
# This variable seems obsolete.  It should probably be removed, and
 
416
# only ac_max_sed_lines should be used.
 
417
: ${ac_max_here_lines=38}
 
418
 
 
419
# Identity of this package.
 
420
PACKAGE_NAME='Quagga'
 
421
PACKAGE_TARNAME='quagga'
 
422
PACKAGE_VERSION='0.99.1'
 
423
PACKAGE_STRING='Quagga 0.99.1'
 
424
PACKAGE_BUGREPORT='http://bugzilla.quagga.net'
 
425
 
 
426
ac_unique_file="lib/zebra.h"
 
427
# Factoring default headers for most tests.
 
428
ac_includes_default="\
 
429
#include <stdio.h>
 
430
#if HAVE_SYS_TYPES_H
 
431
# include <sys/types.h>
 
432
#endif
 
433
#if HAVE_SYS_STAT_H
 
434
# include <sys/stat.h>
 
435
#endif
 
436
#if STDC_HEADERS
 
437
# include <stdlib.h>
 
438
# include <stddef.h>
 
439
#else
 
440
# if HAVE_STDLIB_H
 
441
#  include <stdlib.h>
 
442
# endif
 
443
#endif
 
444
#if HAVE_STRING_H
 
445
# if !STDC_HEADERS && HAVE_MEMORY_H
 
446
#  include <memory.h>
 
447
# endif
 
448
# include <string.h>
 
449
#endif
 
450
#if HAVE_STRINGS_H
 
451
# include <strings.h>
 
452
#endif
 
453
#if HAVE_INTTYPES_H
 
454
# include <inttypes.h>
 
455
#else
 
456
# if HAVE_STDINT_H
 
457
#  include <stdint.h>
 
458
# endif
 
459
#endif
 
460
#if HAVE_UNISTD_H
 
461
# include <unistd.h>
 
462
#endif"
 
463
 
 
464
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar GAWK exampledir pkgsrcdir pkgsrcrcdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED LD NM LN_S ECHO ISIS_TOPOLOGY_INCLUDES ISIS_TOPOLOGY_DIR ISIS_TOPOLOGY_LIB enable_user enable_group enable_vty_group MULTIPATH_NUM PERL LIBPAM RT_METHOD KERNEL_METHOD OTHER_METHOD RTREAD_METHOD IF_METHOD IOCTL_METHOD IF_PROC IPFORWARD LIB_IPV6 ZEBRA BGPD RIPD RIPNGD OSPFD OSPF6D WATCHQUAGGA ISISD VTYSH INCLUDES CURSES OSPFCLIENT OSPFAPI LIB_REGEX SNMP_INCLUDES LIBCAP CONFDATE quagga_statedir LIBOBJS LTLIBOBJS'
 
465
ac_subst_files=''
 
466
 
 
467
# Initialize some variables set by options.
 
468
ac_init_help=
 
469
ac_init_version=false
 
470
# The variables have the same names as the options, with
 
471
# dashes changed to underlines.
 
472
cache_file=/dev/null
 
473
exec_prefix=NONE
 
474
no_create=
 
475
no_recursion=
 
476
prefix=NONE
 
477
program_prefix=NONE
 
478
program_suffix=NONE
 
479
program_transform_name=s,x,x,
 
480
silent=
 
481
site=
 
482
srcdir=
 
483
verbose=
 
484
x_includes=NONE
 
485
x_libraries=NONE
 
486
 
 
487
# Installation directory options.
 
488
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
489
# and all the variables that are supposed to be based on exec_prefix
 
490
# by default will actually change.
 
491
# Use braces instead of parens because sh, perl, etc. also accept them.
 
492
bindir='${exec_prefix}/bin'
 
493
sbindir='${exec_prefix}/sbin'
 
494
libexecdir='${exec_prefix}/libexec'
 
495
datadir='${prefix}/share'
 
496
sysconfdir='${prefix}/etc'
 
497
sharedstatedir='${prefix}/com'
 
498
localstatedir='${prefix}/var'
 
499
libdir='${exec_prefix}/lib'
 
500
includedir='${prefix}/include'
 
501
oldincludedir='/usr/include'
 
502
infodir='${prefix}/info'
 
503
mandir='${prefix}/man'
 
504
 
 
505
ac_prev=
 
506
for ac_option
 
507
do
 
508
  # If the previous option needs an argument, assign it.
 
509
  if test -n "$ac_prev"; then
 
510
    eval "$ac_prev=\$ac_option"
 
511
    ac_prev=
 
512
    continue
 
513
  fi
 
514
 
 
515
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
516
 
 
517
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
518
 
 
519
  case $ac_option in
 
520
 
 
521
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
522
    ac_prev=bindir ;;
 
523
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
524
    bindir=$ac_optarg ;;
 
525
 
 
526
  -build | --build | --buil | --bui | --bu)
 
527
    ac_prev=build_alias ;;
 
528
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
529
    build_alias=$ac_optarg ;;
 
530
 
 
531
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
532
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
533
    ac_prev=cache_file ;;
 
534
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
535
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
536
    cache_file=$ac_optarg ;;
 
537
 
 
538
  --config-cache | -C)
 
539
    cache_file=config.cache ;;
 
540
 
 
541
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
542
    ac_prev=datadir ;;
 
543
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
544
  | --da=*)
 
545
    datadir=$ac_optarg ;;
 
546
 
 
547
  -disable-* | --disable-*)
 
548
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
549
    # Reject names that are not valid shell variable names.
 
550
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
551
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
552
   { (exit 1); exit 1; }; }
 
553
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
554
    eval "enable_$ac_feature=no" ;;
 
555
 
 
556
  -enable-* | --enable-*)
 
557
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
558
    # Reject names that are not valid shell variable names.
 
559
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
560
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
561
   { (exit 1); exit 1; }; }
 
562
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
563
    case $ac_option in
 
564
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
565
      *) ac_optarg=yes ;;
 
566
    esac
 
567
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
568
 
 
569
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
570
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
571
  | --exec | --exe | --ex)
 
572
    ac_prev=exec_prefix ;;
 
573
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
574
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
575
  | --exec=* | --exe=* | --ex=*)
 
576
    exec_prefix=$ac_optarg ;;
 
577
 
 
578
  -gas | --gas | --ga | --g)
 
579
    # Obsolete; use --with-gas.
 
580
    with_gas=yes ;;
 
581
 
 
582
  -help | --help | --hel | --he | -h)
 
583
    ac_init_help=long ;;
 
584
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
585
    ac_init_help=recursive ;;
 
586
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
587
    ac_init_help=short ;;
 
588
 
 
589
  -host | --host | --hos | --ho)
 
590
    ac_prev=host_alias ;;
 
591
  -host=* | --host=* | --hos=* | --ho=*)
 
592
    host_alias=$ac_optarg ;;
 
593
 
 
594
  -includedir | --includedir | --includedi | --included | --include \
 
595
  | --includ | --inclu | --incl | --inc)
 
596
    ac_prev=includedir ;;
 
597
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
598
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
599
    includedir=$ac_optarg ;;
 
600
 
 
601
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
602
    ac_prev=infodir ;;
 
603
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
604
    infodir=$ac_optarg ;;
 
605
 
 
606
  -libdir | --libdir | --libdi | --libd)
 
607
    ac_prev=libdir ;;
 
608
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
609
    libdir=$ac_optarg ;;
 
610
 
 
611
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
612
  | --libexe | --libex | --libe)
 
613
    ac_prev=libexecdir ;;
 
614
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
615
  | --libexe=* | --libex=* | --libe=*)
 
616
    libexecdir=$ac_optarg ;;
 
617
 
 
618
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
619
  | --localstate | --localstat | --localsta | --localst \
 
620
  | --locals | --local | --loca | --loc | --lo)
 
621
    ac_prev=localstatedir ;;
 
622
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
623
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
624
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
625
    localstatedir=$ac_optarg ;;
 
626
 
 
627
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
628
    ac_prev=mandir ;;
 
629
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
630
    mandir=$ac_optarg ;;
 
631
 
 
632
  -nfp | --nfp | --nf)
 
633
    # Obsolete; use --without-fp.
 
634
    with_fp=no ;;
 
635
 
 
636
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
637
  | --no-cr | --no-c | -n)
 
638
    no_create=yes ;;
 
639
 
 
640
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
641
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
642
    no_recursion=yes ;;
 
643
 
 
644
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
645
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
646
  | --oldin | --oldi | --old | --ol | --o)
 
647
    ac_prev=oldincludedir ;;
 
648
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
649
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
650
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
651
    oldincludedir=$ac_optarg ;;
 
652
 
 
653
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
654
    ac_prev=prefix ;;
 
655
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
656
    prefix=$ac_optarg ;;
 
657
 
 
658
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
659
  | --program-pre | --program-pr | --program-p)
 
660
    ac_prev=program_prefix ;;
 
661
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
662
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
663
    program_prefix=$ac_optarg ;;
 
664
 
 
665
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
666
  | --program-suf | --program-su | --program-s)
 
667
    ac_prev=program_suffix ;;
 
668
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
669
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
670
    program_suffix=$ac_optarg ;;
 
671
 
 
672
  -program-transform-name | --program-transform-name \
 
673
  | --program-transform-nam | --program-transform-na \
 
674
  | --program-transform-n | --program-transform- \
 
675
  | --program-transform | --program-transfor \
 
676
  | --program-transfo | --program-transf \
 
677
  | --program-trans | --program-tran \
 
678
  | --progr-tra | --program-tr | --program-t)
 
679
    ac_prev=program_transform_name ;;
 
680
  -program-transform-name=* | --program-transform-name=* \
 
681
  | --program-transform-nam=* | --program-transform-na=* \
 
682
  | --program-transform-n=* | --program-transform-=* \
 
683
  | --program-transform=* | --program-transfor=* \
 
684
  | --program-transfo=* | --program-transf=* \
 
685
  | --program-trans=* | --program-tran=* \
 
686
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
687
    program_transform_name=$ac_optarg ;;
 
688
 
 
689
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
690
  | -silent | --silent | --silen | --sile | --sil)
 
691
    silent=yes ;;
 
692
 
 
693
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
694
    ac_prev=sbindir ;;
 
695
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
696
  | --sbi=* | --sb=*)
 
697
    sbindir=$ac_optarg ;;
 
698
 
 
699
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
700
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
701
  | --sharedst | --shareds | --shared | --share | --shar \
 
702
  | --sha | --sh)
 
703
    ac_prev=sharedstatedir ;;
 
704
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
705
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
706
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
707
  | --sha=* | --sh=*)
 
708
    sharedstatedir=$ac_optarg ;;
 
709
 
 
710
  -site | --site | --sit)
 
711
    ac_prev=site ;;
 
712
  -site=* | --site=* | --sit=*)
 
713
    site=$ac_optarg ;;
 
714
 
 
715
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
716
    ac_prev=srcdir ;;
 
717
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
718
    srcdir=$ac_optarg ;;
 
719
 
 
720
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
721
  | --syscon | --sysco | --sysc | --sys | --sy)
 
722
    ac_prev=sysconfdir ;;
 
723
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
724
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
725
    sysconfdir=$ac_optarg ;;
 
726
 
 
727
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
728
    ac_prev=target_alias ;;
 
729
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
730
    target_alias=$ac_optarg ;;
 
731
 
 
732
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
733
    verbose=yes ;;
 
734
 
 
735
  -version | --version | --versio | --versi | --vers | -V)
 
736
    ac_init_version=: ;;
 
737
 
 
738
  -with-* | --with-*)
 
739
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
740
    # Reject names that are not valid shell variable names.
 
741
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
742
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
743
   { (exit 1); exit 1; }; }
 
744
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
745
    case $ac_option in
 
746
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
747
      *) ac_optarg=yes ;;
 
748
    esac
 
749
    eval "with_$ac_package='$ac_optarg'" ;;
 
750
 
 
751
  -without-* | --without-*)
 
752
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
753
    # Reject names that are not valid shell variable names.
 
754
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
755
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
756
   { (exit 1); exit 1; }; }
 
757
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
758
    eval "with_$ac_package=no" ;;
 
759
 
 
760
  --x)
 
761
    # Obsolete; use --with-x.
 
762
    with_x=yes ;;
 
763
 
 
764
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
765
  | --x-incl | --x-inc | --x-in | --x-i)
 
766
    ac_prev=x_includes ;;
 
767
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
768
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
769
    x_includes=$ac_optarg ;;
 
770
 
 
771
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
772
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
773
    ac_prev=x_libraries ;;
 
774
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
775
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
776
    x_libraries=$ac_optarg ;;
 
777
 
 
778
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
779
Try \`$0 --help' for more information." >&2
 
780
   { (exit 1); exit 1; }; }
 
781
    ;;
 
782
 
 
783
  *=*)
 
784
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
785
    # Reject names that are not valid shell variable names.
 
786
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
787
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
788
   { (exit 1); exit 1; }; }
 
789
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
790
    eval "$ac_envvar='$ac_optarg'"
 
791
    export $ac_envvar ;;
 
792
 
 
793
  *)
 
794
    # FIXME: should be removed in autoconf 3.0.
 
795
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
796
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
797
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
798
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
799
    ;;
 
800
 
 
801
  esac
 
802
done
 
803
 
 
804
if test -n "$ac_prev"; then
 
805
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
806
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
807
   { (exit 1); exit 1; }; }
 
808
fi
 
809
 
 
810
# Be sure to have absolute paths.
 
811
for ac_var in exec_prefix prefix
 
812
do
 
813
  eval ac_val=$`echo $ac_var`
 
814
  case $ac_val in
 
815
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
816
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
817
   { (exit 1); exit 1; }; };;
 
818
  esac
 
819
done
 
820
 
 
821
# Be sure to have absolute paths.
 
822
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
823
              localstatedir libdir includedir oldincludedir infodir mandir
 
824
do
 
825
  eval ac_val=$`echo $ac_var`
 
826
  case $ac_val in
 
827
    [\\/$]* | ?:[\\/]* ) ;;
 
828
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
829
   { (exit 1); exit 1; }; };;
 
830
  esac
 
831
done
 
832
 
 
833
# There might be people who depend on the old broken behavior: `$host'
 
834
# used to hold the argument of --host etc.
 
835
# FIXME: To remove some day.
 
836
build=$build_alias
 
837
host=$host_alias
 
838
target=$target_alias
 
839
 
 
840
# FIXME: To remove some day.
 
841
if test "x$host_alias" != x; then
 
842
  if test "x$build_alias" = x; then
 
843
    cross_compiling=maybe
 
844
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
845
    If a cross compiler is detected then cross compile mode will be used." >&2
 
846
  elif test "x$build_alias" != "x$host_alias"; then
 
847
    cross_compiling=yes
 
848
  fi
 
849
fi
 
850
 
 
851
ac_tool_prefix=
 
852
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
853
 
 
854
test "$silent" = yes && exec 6>/dev/null
 
855
 
 
856
 
 
857
# Find the source files, if location was not specified.
 
858
if test -z "$srcdir"; then
 
859
  ac_srcdir_defaulted=yes
 
860
  # Try the directory containing this script, then its parent.
 
861
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
862
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
863
         X"$0" : 'X\(//\)[^/]' \| \
 
864
         X"$0" : 'X\(//\)$' \| \
 
865
         X"$0" : 'X\(/\)' \| \
 
866
         .     : '\(.\)' 2>/dev/null ||
 
867
echo X"$0" |
 
868
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
869
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
870
          /^X\(\/\/\)$/{ s//\1/; q; }
 
871
          /^X\(\/\).*/{ s//\1/; q; }
 
872
          s/.*/./; q'`
 
873
  srcdir=$ac_confdir
 
874
  if test ! -r $srcdir/$ac_unique_file; then
 
875
    srcdir=..
 
876
  fi
 
877
else
 
878
  ac_srcdir_defaulted=no
 
879
fi
 
880
if test ! -r $srcdir/$ac_unique_file; then
 
881
  if test "$ac_srcdir_defaulted" = yes; then
 
882
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
883
   { (exit 1); exit 1; }; }
 
884
  else
 
885
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
886
   { (exit 1); exit 1; }; }
 
887
  fi
 
888
fi
 
889
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
890
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
891
   { (exit 1); exit 1; }; }
 
892
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
893
ac_env_build_alias_set=${build_alias+set}
 
894
ac_env_build_alias_value=$build_alias
 
895
ac_cv_env_build_alias_set=${build_alias+set}
 
896
ac_cv_env_build_alias_value=$build_alias
 
897
ac_env_host_alias_set=${host_alias+set}
 
898
ac_env_host_alias_value=$host_alias
 
899
ac_cv_env_host_alias_set=${host_alias+set}
 
900
ac_cv_env_host_alias_value=$host_alias
 
901
ac_env_target_alias_set=${target_alias+set}
 
902
ac_env_target_alias_value=$target_alias
 
903
ac_cv_env_target_alias_set=${target_alias+set}
 
904
ac_cv_env_target_alias_value=$target_alias
 
905
ac_env_GAWK_set=${GAWK+set}
 
906
ac_env_GAWK_value=$GAWK
 
907
ac_cv_env_GAWK_set=${GAWK+set}
 
908
ac_cv_env_GAWK_value=$GAWK
 
909
ac_env_CC_set=${CC+set}
 
910
ac_env_CC_value=$CC
 
911
ac_cv_env_CC_set=${CC+set}
 
912
ac_cv_env_CC_value=$CC
 
913
ac_env_CFLAGS_set=${CFLAGS+set}
 
914
ac_env_CFLAGS_value=$CFLAGS
 
915
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
916
ac_cv_env_CFLAGS_value=$CFLAGS
 
917
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
918
ac_env_LDFLAGS_value=$LDFLAGS
 
919
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
920
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
921
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
922
ac_env_CPPFLAGS_value=$CPPFLAGS
 
923
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
924
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
925
ac_env_CPP_set=${CPP+set}
 
926
ac_env_CPP_value=$CPP
 
927
ac_cv_env_CPP_set=${CPP+set}
 
928
ac_cv_env_CPP_value=$CPP
 
929
 
 
930
#
 
931
# Report the --help message.
 
932
#
 
933
if test "$ac_init_help" = "long"; then
 
934
  # Omit some internal or obsolete options to make the list less imposing.
 
935
  # This message is too long to be a string in the A/UX 3.1 sh.
 
936
  cat <<_ACEOF
 
937
\`configure' configures Quagga 0.99.1 to adapt to many kinds of systems.
 
938
 
 
939
Usage: $0 [OPTION]... [VAR=VALUE]...
 
940
 
 
941
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
942
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
943
 
 
944
Defaults for the options are specified in brackets.
 
945
 
 
946
Configuration:
 
947
  -h, --help              display this help and exit
 
948
      --help=short        display options specific to this package
 
949
      --help=recursive    display the short help of all the included packages
 
950
  -V, --version           display version information and exit
 
951
  -q, --quiet, --silent   do not print \`checking...' messages
 
952
      --cache-file=FILE   cache test results in FILE [disabled]
 
953
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
954
  -n, --no-create         do not create output files
 
955
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
956
 
 
957
_ACEOF
 
958
 
 
959
  cat <<_ACEOF
 
960
Installation directories:
 
961
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
962
                          [$ac_default_prefix]
 
963
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
964
                          [PREFIX]
 
965
 
 
966
By default, \`make install' will install all the files in
 
967
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
968
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
969
for instance \`--prefix=\$HOME'.
 
970
 
 
971
For better control, use the options below.
 
972
 
 
973
Fine tuning of the installation directories:
 
974
  --bindir=DIR           user executables [EPREFIX/bin]
 
975
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
976
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
977
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
978
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
979
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
980
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
981
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
982
  --includedir=DIR       C header files [PREFIX/include]
 
983
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
984
  --infodir=DIR          info documentation [PREFIX/info]
 
985
  --mandir=DIR           man documentation [PREFIX/man]
 
986
_ACEOF
 
987
 
 
988
  cat <<\_ACEOF
 
989
 
 
990
Program names:
 
991
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
992
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
993
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
994
 
 
995
System types:
 
996
  --build=BUILD     configure for building on BUILD [guessed]
 
997
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
998
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
999
_ACEOF
 
1000
fi
 
1001
 
 
1002
if test -n "$ac_init_help"; then
 
1003
  case $ac_init_help in
 
1004
     short | recursive ) echo "Configuration of Quagga 0.99.1:";;
 
1005
   esac
 
1006
  cat <<\_ACEOF
 
1007
 
 
1008
Optional Features:
 
1009
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1010
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1011
  --enable-exampledir     specify alternate directory for examples
 
1012
  --enable-pkgsrcrcdir    specify directory for rc.d scripts
 
1013
  --disable-dependency-tracking  speeds up one-time build
 
1014
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1015
  --enable-shared[=PKGS]
 
1016
                          build shared libraries [default=yes]
 
1017
  --enable-static[=PKGS]
 
1018
                          build static libraries [default=yes]
 
1019
  --enable-fast-install[=PKGS]
 
1020
                          optimize for fast installation [default=yes]
 
1021
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1022
  --enable-vtysh          include integrated vty shell for Quagga
 
1023
  --disable-ipv6          turn off IPv6 related features and daemons
 
1024
  --disable-zebra         do not build zebra daemon
 
1025
  --disable-bgpd          do not build bgpd
 
1026
  --disable-ripd          do not build ripd
 
1027
  --disable-ripngd        do not build ripngd
 
1028
  --disable-ospfd         do not build ospfd
 
1029
  --disable-ospf6d        do not build ospf6d
 
1030
  --disable-watchquagga   do not build watchquagga
 
1031
  --enable-isisd          build isisd
 
1032
  --disable-bgp-announce, turn off BGP route announcement
 
1033
  --enable-netlink        force to use Linux netlink interface
 
1034
  --enable-broken-aliases enable aliases as distinct interfaces for Linux 2.2.X
 
1035
  --enable-snmp           enable SNMP support
 
1036
  --enable-tcp-zebra      enable TCP/IP socket connection between zebra and protocol daemon
 
1037
  --enable-opaque-lsa     enable OSPF Opaque-LSA with OSPFAPI support (RFC2370)
 
1038
  --disable-ospfapi       do not build OSPFAPI to access the OSPF LSA Database,
 
1039
                          (this is the default if --enable-opaque-lsa is not set)
 
1040
  --disable-ospfclient    do not build OSPFAPI client for OSPFAPI,
 
1041
                          (this is the default if --disable-ospfapi is set)
 
1042
  --enable-ospf-te        enable Traffic Engineering Extension to OSPF
 
1043
  --enable-multipath=ARG  enable multipath function, ARG must be digit
 
1044
  --enable-user=ARG       user to run Quagga suite as (default quagga)
 
1045
  --enable-group=ARG      group to run Quagga suite as (default quagga)
 
1046
  --enable-vty-group=ARG  set vty sockets to have specified group as owner
 
1047
  --enable-configfile-mask=ARG  set mask for config files
 
1048
  --enable-logfile-mask=ARG     set mask for log files
 
1049
  --disable-rtadv               disable IPV6 router advertisement feature
 
1050
  --enable-irdp                 enable IRDP server support in zebra
 
1051
  --enable-isis-topology        enable IS-IS topology generator
 
1052
  --disable-capabilities        disable using POSIX capabilities
 
1053
  --enable-gcc-ultra-verbose    enable ultra verbose GCC warnings
 
1054
  --enable-gcc-rdynamic   enable gcc linking with -rdynamic for better backtraces
 
1055
  --disable-time-check          disable slow thread warning messages
 
1056
 
 
1057
Optional Packages:
 
1058
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1059
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1060
  --with-cflags           Set CFLAGS for use in compilation.
 
1061
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1062
                          both]
 
1063
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1064
  --with-libpam           use libpam for PAM support in vtysh
 
1065
 
 
1066
Some influential environment variables:
 
1067
  GAWK        GNU AWK
 
1068
  CC          C compiler command
 
1069
  CFLAGS      C compiler flags
 
1070
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1071
              nonstandard directory <lib dir>
 
1072
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1073
              headers in a nonstandard directory <include dir>
 
1074
  CPP         C preprocessor
 
1075
 
 
1076
Use these variables to override the choices made by `configure' or to help
 
1077
it to find libraries and programs with nonstandard names/locations.
 
1078
 
 
1079
Report bugs to <http://bugzilla.quagga.net>.
 
1080
_ACEOF
 
1081
fi
 
1082
 
 
1083
if test "$ac_init_help" = "recursive"; then
 
1084
  # If there are subdirs, report their specific --help.
 
1085
  ac_popdir=`pwd`
 
1086
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1087
    test -d $ac_dir || continue
 
1088
    ac_builddir=.
 
1089
 
 
1090
if test "$ac_dir" != .; then
 
1091
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1092
  # A "../" for each directory in $ac_dir_suffix.
 
1093
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1094
else
 
1095
  ac_dir_suffix= ac_top_builddir=
 
1096
fi
 
1097
 
 
1098
case $srcdir in
 
1099
  .)  # No --srcdir option.  We are building in place.
 
1100
    ac_srcdir=.
 
1101
    if test -z "$ac_top_builddir"; then
 
1102
       ac_top_srcdir=.
 
1103
    else
 
1104
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1105
    fi ;;
 
1106
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1107
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1108
    ac_top_srcdir=$srcdir ;;
 
1109
  *) # Relative path.
 
1110
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1111
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1112
esac
 
1113
 
 
1114
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1115
# the directories may not exist.
 
1116
case `pwd` in
 
1117
.) ac_abs_builddir="$ac_dir";;
 
1118
*)
 
1119
  case "$ac_dir" in
 
1120
  .) ac_abs_builddir=`pwd`;;
 
1121
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1122
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1123
  esac;;
 
1124
esac
 
1125
case $ac_abs_builddir in
 
1126
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1127
*)
 
1128
  case ${ac_top_builddir}. in
 
1129
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1130
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1131
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1132
  esac;;
 
1133
esac
 
1134
case $ac_abs_builddir in
 
1135
.) ac_abs_srcdir=$ac_srcdir;;
 
1136
*)
 
1137
  case $ac_srcdir in
 
1138
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1139
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1140
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1141
  esac;;
 
1142
esac
 
1143
case $ac_abs_builddir in
 
1144
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1145
*)
 
1146
  case $ac_top_srcdir in
 
1147
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1148
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1149
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1150
  esac;;
 
1151
esac
 
1152
 
 
1153
    cd $ac_dir
 
1154
    # Check for guested configure; otherwise get Cygnus style configure.
 
1155
    if test -f $ac_srcdir/configure.gnu; then
 
1156
      echo
 
1157
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1158
    elif test -f $ac_srcdir/configure; then
 
1159
      echo
 
1160
      $SHELL $ac_srcdir/configure  --help=recursive
 
1161
    elif test -f $ac_srcdir/configure.ac ||
 
1162
           test -f $ac_srcdir/configure.in; then
 
1163
      echo
 
1164
      $ac_configure --help
 
1165
    else
 
1166
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1167
    fi
 
1168
    cd $ac_popdir
 
1169
  done
 
1170
fi
 
1171
 
 
1172
test -n "$ac_init_help" && exit 0
 
1173
if $ac_init_version; then
 
1174
  cat <<\_ACEOF
 
1175
Quagga configure 0.99.1
 
1176
generated by GNU Autoconf 2.59
 
1177
 
 
1178
Copyright (C) 2003 Free Software Foundation, Inc.
 
1179
This configure script is free software; the Free Software Foundation
 
1180
gives unlimited permission to copy, distribute and modify it.
 
1181
_ACEOF
 
1182
  exit 0
 
1183
fi
 
1184
exec 5>config.log
 
1185
cat >&5 <<_ACEOF
 
1186
This file contains any messages produced by compilers while
 
1187
running configure, to aid debugging if configure makes a mistake.
 
1188
 
 
1189
It was created by Quagga $as_me 0.99.1, which was
 
1190
generated by GNU Autoconf 2.59.  Invocation command line was
 
1191
 
 
1192
  $ $0 $@
 
1193
 
 
1194
_ACEOF
 
1195
{
 
1196
cat <<_ASUNAME
 
1197
## --------- ##
 
1198
## Platform. ##
 
1199
## --------- ##
 
1200
 
 
1201
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1202
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1203
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1204
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1205
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1206
 
 
1207
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1208
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1209
 
 
1210
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1211
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1212
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1213
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1214
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1215
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1216
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1217
 
 
1218
_ASUNAME
 
1219
 
 
1220
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1221
for as_dir in $PATH
 
1222
do
 
1223
  IFS=$as_save_IFS
 
1224
  test -z "$as_dir" && as_dir=.
 
1225
  echo "PATH: $as_dir"
 
1226
done
 
1227
 
 
1228
} >&5
 
1229
 
 
1230
cat >&5 <<_ACEOF
 
1231
 
 
1232
 
 
1233
## ----------- ##
 
1234
## Core tests. ##
 
1235
## ----------- ##
 
1236
 
 
1237
_ACEOF
 
1238
 
 
1239
 
 
1240
# Keep a trace of the command line.
 
1241
# Strip out --no-create and --no-recursion so they do not pile up.
 
1242
# Strip out --silent because we don't want to record it for future runs.
 
1243
# Also quote any args containing shell meta-characters.
 
1244
# Make two passes to allow for proper duplicate-argument suppression.
 
1245
ac_configure_args=
 
1246
ac_configure_args0=
 
1247
ac_configure_args1=
 
1248
ac_sep=
 
1249
ac_must_keep_next=false
 
1250
for ac_pass in 1 2
 
1251
do
 
1252
  for ac_arg
 
1253
  do
 
1254
    case $ac_arg in
 
1255
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1256
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1257
    | -silent | --silent | --silen | --sile | --sil)
 
1258
      continue ;;
 
1259
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1260
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1261
    esac
 
1262
    case $ac_pass in
 
1263
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1264
    2)
 
1265
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1266
      if test $ac_must_keep_next = true; then
 
1267
        ac_must_keep_next=false # Got value, back to normal.
 
1268
      else
 
1269
        case $ac_arg in
 
1270
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1271
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1272
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1273
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1274
            case "$ac_configure_args0 " in
 
1275
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1276
            esac
 
1277
            ;;
 
1278
          -* ) ac_must_keep_next=true ;;
 
1279
        esac
 
1280
      fi
 
1281
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1282
      # Get rid of the leading space.
 
1283
      ac_sep=" "
 
1284
      ;;
 
1285
    esac
 
1286
  done
 
1287
done
 
1288
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1289
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1290
 
 
1291
# When interrupted or exit'd, cleanup temporary files, and complete
 
1292
# config.log.  We remove comments because anyway the quotes in there
 
1293
# would cause problems or look ugly.
 
1294
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1295
# such as our DU 5.0 friend, will then `close' the trap.
 
1296
trap 'exit_status=$?
 
1297
  # Save into config.log some information that might help in debugging.
 
1298
  {
 
1299
    echo
 
1300
 
 
1301
    cat <<\_ASBOX
 
1302
## ---------------- ##
 
1303
## Cache variables. ##
 
1304
## ---------------- ##
 
1305
_ASBOX
 
1306
    echo
 
1307
    # The following way of writing the cache mishandles newlines in values,
 
1308
{
 
1309
  (set) 2>&1 |
 
1310
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1311
    *ac_space=\ *)
 
1312
      sed -n \
 
1313
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1314
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1315
      ;;
 
1316
    *)
 
1317
      sed -n \
 
1318
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1319
      ;;
 
1320
    esac;
 
1321
}
 
1322
    echo
 
1323
 
 
1324
    cat <<\_ASBOX
 
1325
## ----------------- ##
 
1326
## Output variables. ##
 
1327
## ----------------- ##
 
1328
_ASBOX
 
1329
    echo
 
1330
    for ac_var in $ac_subst_vars
 
1331
    do
 
1332
      eval ac_val=$`echo $ac_var`
 
1333
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1334
    done | sort
 
1335
    echo
 
1336
 
 
1337
    if test -n "$ac_subst_files"; then
 
1338
      cat <<\_ASBOX
 
1339
## ------------- ##
 
1340
## Output files. ##
 
1341
## ------------- ##
 
1342
_ASBOX
 
1343
      echo
 
1344
      for ac_var in $ac_subst_files
 
1345
      do
 
1346
        eval ac_val=$`echo $ac_var`
 
1347
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1348
      done | sort
 
1349
      echo
 
1350
    fi
 
1351
 
 
1352
    if test -s confdefs.h; then
 
1353
      cat <<\_ASBOX
 
1354
## ----------- ##
 
1355
## confdefs.h. ##
 
1356
## ----------- ##
 
1357
_ASBOX
 
1358
      echo
 
1359
      sed "/^$/d" confdefs.h | sort
 
1360
      echo
 
1361
    fi
 
1362
    test "$ac_signal" != 0 &&
 
1363
      echo "$as_me: caught signal $ac_signal"
 
1364
    echo "$as_me: exit $exit_status"
 
1365
  } >&5
 
1366
  rm -f core *.core &&
 
1367
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1368
    exit $exit_status
 
1369
     ' 0
 
1370
for ac_signal in 1 2 13 15; do
 
1371
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1372
done
 
1373
ac_signal=0
 
1374
 
 
1375
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1376
rm -rf conftest* confdefs.h
 
1377
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1378
echo >confdefs.h
 
1379
 
 
1380
# Predefined preprocessor variables.
 
1381
 
 
1382
cat >>confdefs.h <<_ACEOF
 
1383
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1384
_ACEOF
 
1385
 
 
1386
 
 
1387
cat >>confdefs.h <<_ACEOF
 
1388
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1389
_ACEOF
 
1390
 
 
1391
 
 
1392
cat >>confdefs.h <<_ACEOF
 
1393
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1394
_ACEOF
 
1395
 
 
1396
 
 
1397
cat >>confdefs.h <<_ACEOF
 
1398
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1399
_ACEOF
 
1400
 
 
1401
 
 
1402
cat >>confdefs.h <<_ACEOF
 
1403
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1404
_ACEOF
 
1405
 
 
1406
 
 
1407
# Let the site file select an alternate cache file if it wants to.
 
1408
# Prefer explicitly selected file to automatically selected ones.
 
1409
if test -z "$CONFIG_SITE"; then
 
1410
  if test "x$prefix" != xNONE; then
 
1411
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1412
  else
 
1413
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1414
  fi
 
1415
fi
 
1416
for ac_site_file in $CONFIG_SITE; do
 
1417
  if test -r "$ac_site_file"; then
 
1418
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1419
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1420
    sed 's/^/| /' "$ac_site_file" >&5
 
1421
    . "$ac_site_file"
 
1422
  fi
 
1423
done
 
1424
 
 
1425
if test -r "$cache_file"; then
 
1426
  # Some versions of bash will fail to source /dev/null (special
 
1427
  # files actually), so we avoid doing that.
 
1428
  if test -f "$cache_file"; then
 
1429
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1430
echo "$as_me: loading cache $cache_file" >&6;}
 
1431
    case $cache_file in
 
1432
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1433
      *)                      . ./$cache_file;;
 
1434
    esac
 
1435
  fi
 
1436
else
 
1437
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1438
echo "$as_me: creating cache $cache_file" >&6;}
 
1439
  >$cache_file
 
1440
fi
 
1441
 
 
1442
# Check that the precious variables saved in the cache have kept the same
 
1443
# value.
 
1444
ac_cache_corrupted=false
 
1445
for ac_var in `(set) 2>&1 |
 
1446
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1447
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1448
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1449
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1450
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1451
  case $ac_old_set,$ac_new_set in
 
1452
    set,)
 
1453
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1454
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1455
      ac_cache_corrupted=: ;;
 
1456
    ,set)
 
1457
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1458
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1459
      ac_cache_corrupted=: ;;
 
1460
    ,);;
 
1461
    *)
 
1462
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1463
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1464
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1465
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1466
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1467
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1468
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1469
        ac_cache_corrupted=:
 
1470
      fi;;
 
1471
  esac
 
1472
  # Pass precious variables to config.status.
 
1473
  if test "$ac_new_set" = set; then
 
1474
    case $ac_new_val in
 
1475
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1476
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1477
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1478
    esac
 
1479
    case " $ac_configure_args " in
 
1480
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1481
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1482
    esac
 
1483
  fi
 
1484
done
 
1485
if $ac_cache_corrupted; then
 
1486
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1487
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1488
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1489
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1490
   { (exit 1); exit 1; }; }
 
1491
fi
 
1492
 
 
1493
ac_ext=c
 
1494
ac_cpp='$CPP $CPPFLAGS'
 
1495
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1496
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1497
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
 
 
1514
 
 
1515
 
 
1516
 
 
1517
 
 
1518
 
 
1519
 
 
1520
 
 
1521
 
 
1522
 
 
1523
 
 
1524
 
 
1525
 
 
1526
 
 
1527
ac_aux_dir=
 
1528
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1529
  if test -f $ac_dir/install-sh; then
 
1530
    ac_aux_dir=$ac_dir
 
1531
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1532
    break
 
1533
  elif test -f $ac_dir/install.sh; then
 
1534
    ac_aux_dir=$ac_dir
 
1535
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1536
    break
 
1537
  elif test -f $ac_dir/shtool; then
 
1538
    ac_aux_dir=$ac_dir
 
1539
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1540
    break
 
1541
  fi
 
1542
done
 
1543
if test -z "$ac_aux_dir"; then
 
1544
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1545
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1546
   { (exit 1); exit 1; }; }
 
1547
fi
 
1548
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1549
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1550
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1551
 
 
1552
# Make sure we can run config.sub.
 
1553
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1554
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1555
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1556
   { (exit 1); exit 1; }; }
 
1557
 
 
1558
echo "$as_me:$LINENO: checking build system type" >&5
 
1559
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1560
if test "${ac_cv_build+set}" = set; then
 
1561
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1562
else
 
1563
  ac_cv_build_alias=$build_alias
 
1564
test -z "$ac_cv_build_alias" &&
 
1565
  ac_cv_build_alias=`$ac_config_guess`
 
1566
test -z "$ac_cv_build_alias" &&
 
1567
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1568
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1569
   { (exit 1); exit 1; }; }
 
1570
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1571
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1572
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1573
   { (exit 1); exit 1; }; }
 
1574
 
 
1575
fi
 
1576
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1577
echo "${ECHO_T}$ac_cv_build" >&6
 
1578
build=$ac_cv_build
 
1579
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1580
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1581
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1582
 
 
1583
 
 
1584
echo "$as_me:$LINENO: checking host system type" >&5
 
1585
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1586
if test "${ac_cv_host+set}" = set; then
 
1587
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1588
else
 
1589
  ac_cv_host_alias=$host_alias
 
1590
test -z "$ac_cv_host_alias" &&
 
1591
  ac_cv_host_alias=$ac_cv_build_alias
 
1592
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1593
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1594
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1595
   { (exit 1); exit 1; }; }
 
1596
 
 
1597
fi
 
1598
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1599
echo "${ECHO_T}$ac_cv_host" >&6
 
1600
host=$ac_cv_host
 
1601
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1602
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1603
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1604
 
 
1605
 
 
1606
echo "$as_me:$LINENO: checking target system type" >&5
 
1607
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
1608
if test "${ac_cv_target+set}" = set; then
 
1609
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1610
else
 
1611
  ac_cv_target_alias=$target_alias
 
1612
test "x$ac_cv_target_alias" = "x" &&
 
1613
  ac_cv_target_alias=$ac_cv_host_alias
 
1614
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
1615
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
1616
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
1617
   { (exit 1); exit 1; }; }
 
1618
 
 
1619
fi
 
1620
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
1621
echo "${ECHO_T}$ac_cv_target" >&6
 
1622
target=$ac_cv_target
 
1623
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1624
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1625
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1626
 
 
1627
 
 
1628
# The aliases save the names the user supplied, while $host etc.
 
1629
# will get canonicalized.
 
1630
test -n "$target_alias" &&
 
1631
  test "$program_prefix$program_suffix$program_transform_name" = \
 
1632
    NONENONEs,x,x, &&
 
1633
  program_prefix=${target_alias}-
 
1634
 
 
1635
am__api_version="1.9"
 
1636
# Find a good install program.  We prefer a C program (faster),
 
1637
# so one script is as good as another.  But avoid the broken or
 
1638
# incompatible versions:
 
1639
# SysV /etc/install, /usr/sbin/install
 
1640
# SunOS /usr/etc/install
 
1641
# IRIX /sbin/install
 
1642
# AIX /bin/install
 
1643
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1644
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1645
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1646
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1647
# OS/2's system install, which has a completely different semantic
 
1648
# ./install, which can be erroneously created by make from ./install.sh.
 
1649
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1650
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1651
if test -z "$INSTALL"; then
 
1652
if test "${ac_cv_path_install+set}" = set; then
 
1653
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1654
else
 
1655
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1656
for as_dir in $PATH
 
1657
do
 
1658
  IFS=$as_save_IFS
 
1659
  test -z "$as_dir" && as_dir=.
 
1660
  # Account for people who put trailing slashes in PATH elements.
 
1661
case $as_dir/ in
 
1662
  ./ | .// | /cC/* | \
 
1663
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1664
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1665
  /usr/ucb/* ) ;;
 
1666
  *)
 
1667
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1668
    # Don't use installbsd from OSF since it installs stuff as root
 
1669
    # by default.
 
1670
    for ac_prog in ginstall scoinst install; do
 
1671
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1672
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1673
          if test $ac_prog = install &&
 
1674
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1675
            # AIX install.  It has an incompatible calling convention.
 
1676
            :
 
1677
          elif test $ac_prog = install &&
 
1678
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1679
            # program-specific install script used by HP pwplus--don't use.
 
1680
            :
 
1681
          else
 
1682
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1683
            break 3
 
1684
          fi
 
1685
        fi
 
1686
      done
 
1687
    done
 
1688
    ;;
 
1689
esac
 
1690
done
 
1691
 
 
1692
 
 
1693
fi
 
1694
  if test "${ac_cv_path_install+set}" = set; then
 
1695
    INSTALL=$ac_cv_path_install
 
1696
  else
 
1697
    # As a last resort, use the slow shell script.  We don't cache a
 
1698
    # path for INSTALL within a source directory, because that will
 
1699
    # break other packages using the cache if that directory is
 
1700
    # removed, or if the path is relative.
 
1701
    INSTALL=$ac_install_sh
 
1702
  fi
 
1703
fi
 
1704
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1705
echo "${ECHO_T}$INSTALL" >&6
 
1706
 
 
1707
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1708
# It thinks the first close brace ends the variable substitution.
 
1709
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1710
 
 
1711
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1712
 
 
1713
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1714
 
 
1715
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1716
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1717
# Just in case
 
1718
sleep 1
 
1719
echo timestamp > conftest.file
 
1720
# Do `set' in a subshell so we don't clobber the current shell's
 
1721
# arguments.  Must try -L first in case configure is actually a
 
1722
# symlink; some systems play weird games with the mod time of symlinks
 
1723
# (eg FreeBSD returns the mod time of the symlink's containing
 
1724
# directory).
 
1725
if (
 
1726
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1727
   if test "$*" = "X"; then
 
1728
      # -L didn't work.
 
1729
      set X `ls -t $srcdir/configure conftest.file`
 
1730
   fi
 
1731
   rm -f conftest.file
 
1732
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1733
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1734
 
 
1735
      # If neither matched, then we have a broken ls.  This can happen
 
1736
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1737
      # broken ls alias from the environment.  This has actually
 
1738
      # happened.  Such a system could not be considered "sane".
 
1739
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1740
alias in your environment" >&5
 
1741
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1742
alias in your environment" >&2;}
 
1743
   { (exit 1); exit 1; }; }
 
1744
   fi
 
1745
 
 
1746
   test "$2" = conftest.file
 
1747
   )
 
1748
then
 
1749
   # Ok.
 
1750
   :
 
1751
else
 
1752
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1753
Check your system clock" >&5
 
1754
echo "$as_me: error: newly created file is older than distributed files!
 
1755
Check your system clock" >&2;}
 
1756
   { (exit 1); exit 1; }; }
 
1757
fi
 
1758
echo "$as_me:$LINENO: result: yes" >&5
 
1759
echo "${ECHO_T}yes" >&6
 
1760
test "$program_prefix" != NONE &&
 
1761
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1762
# Use a double $ so make ignores it.
 
1763
test "$program_suffix" != NONE &&
 
1764
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1765
# Double any \ or $.  echo might interpret backslashes.
 
1766
# By default was `s,x,x', remove it if useless.
 
1767
cat <<\_ACEOF >conftest.sed
 
1768
s/[\\$]/&&/g;s/;s,x,x,$//
 
1769
_ACEOF
 
1770
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1771
rm conftest.sed
 
1772
 
 
1773
# expand $ac_aux_dir to an absolute path
 
1774
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1775
 
 
1776
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1777
# Use eval to expand $SHELL
 
1778
if eval "$MISSING --run true"; then
 
1779
  am_missing_run="$MISSING --run "
 
1780
else
 
1781
  am_missing_run=
 
1782
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1783
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1784
fi
 
1785
 
 
1786
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1787
  # We used to keeping the `.' as first argument, in order to
 
1788
  # allow $(mkdir_p) to be used without argument.  As in
 
1789
  #   $(mkdir_p) $(somedir)
 
1790
  # where $(somedir) is conditionally defined.  However this is wrong
 
1791
  # for two reasons:
 
1792
  #  1. if the package is installed by a user who cannot write `.'
 
1793
  #     make install will fail,
 
1794
  #  2. the above comment should most certainly read
 
1795
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1796
  #     so it does not work when $(somedir) is undefined and
 
1797
  #     $(DESTDIR) is not.
 
1798
  #  To support the latter case, we have to write
 
1799
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1800
  #  so the `.' trick is pointless.
 
1801
  mkdir_p='mkdir -p --'
 
1802
else
 
1803
  # On NextStep and OpenStep, the `mkdir' command does not
 
1804
  # recognize any option.  It will interpret all options as
 
1805
  # directories to create, and then abort because `.' already
 
1806
  # exists.
 
1807
  for d in ./-p ./--version;
 
1808
  do
 
1809
    test -d $d && rmdir $d
 
1810
  done
 
1811
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1812
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1813
    mkdir_p='$(mkinstalldirs)'
 
1814
  else
 
1815
    mkdir_p='$(install_sh) -d'
 
1816
  fi
 
1817
fi
 
1818
 
 
1819
for ac_prog in gawk mawk nawk awk
 
1820
do
 
1821
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1822
set dummy $ac_prog; ac_word=$2
 
1823
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1824
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1825
if test "${ac_cv_prog_AWK+set}" = set; then
 
1826
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1827
else
 
1828
  if test -n "$AWK"; then
 
1829
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1830
else
 
1831
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1832
for as_dir in $PATH
 
1833
do
 
1834
  IFS=$as_save_IFS
 
1835
  test -z "$as_dir" && as_dir=.
 
1836
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1837
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1838
    ac_cv_prog_AWK="$ac_prog"
 
1839
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1840
    break 2
 
1841
  fi
 
1842
done
 
1843
done
 
1844
 
 
1845
fi
 
1846
fi
 
1847
AWK=$ac_cv_prog_AWK
 
1848
if test -n "$AWK"; then
 
1849
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1850
echo "${ECHO_T}$AWK" >&6
 
1851
else
 
1852
  echo "$as_me:$LINENO: result: no" >&5
 
1853
echo "${ECHO_T}no" >&6
 
1854
fi
 
1855
 
 
1856
  test -n "$AWK" && break
 
1857
done
 
1858
 
 
1859
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1860
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1861
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1862
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1863
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1864
else
 
1865
  cat >conftest.make <<\_ACEOF
 
1866
all:
 
1867
        @echo 'ac_maketemp="$(MAKE)"'
 
1868
_ACEOF
 
1869
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1870
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1871
if test -n "$ac_maketemp"; then
 
1872
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1873
else
 
1874
  eval ac_cv_prog_make_${ac_make}_set=no
 
1875
fi
 
1876
rm -f conftest.make
 
1877
fi
 
1878
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1879
  echo "$as_me:$LINENO: result: yes" >&5
 
1880
echo "${ECHO_T}yes" >&6
 
1881
  SET_MAKE=
 
1882
else
 
1883
  echo "$as_me:$LINENO: result: no" >&5
 
1884
echo "${ECHO_T}no" >&6
 
1885
  SET_MAKE="MAKE=${MAKE-make}"
 
1886
fi
 
1887
 
 
1888
rm -rf .tst 2>/dev/null
 
1889
mkdir .tst 2>/dev/null
 
1890
if test -d .tst; then
 
1891
  am__leading_dot=.
 
1892
else
 
1893
  am__leading_dot=_
 
1894
fi
 
1895
rmdir .tst 2>/dev/null
 
1896
 
 
1897
# test to see if srcdir already configured
 
1898
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1899
   test -f $srcdir/config.status; then
 
1900
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1901
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1902
   { (exit 1); exit 1; }; }
 
1903
fi
 
1904
 
 
1905
# test whether we have cygpath
 
1906
if test -z "$CYGPATH_W"; then
 
1907
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1908
    CYGPATH_W='cygpath -w'
 
1909
  else
 
1910
    CYGPATH_W=echo
 
1911
  fi
 
1912
fi
 
1913
 
 
1914
 
 
1915
# Define the identity of the package.
 
1916
 PACKAGE='quagga'
 
1917
 VERSION='0.99.1'
 
1918
 
 
1919
 
 
1920
cat >>confdefs.h <<_ACEOF
 
1921
#define PACKAGE "$PACKAGE"
 
1922
_ACEOF
 
1923
 
 
1924
 
 
1925
cat >>confdefs.h <<_ACEOF
 
1926
#define VERSION "$VERSION"
 
1927
_ACEOF
 
1928
 
 
1929
# Some tools Automake needs.
 
1930
 
 
1931
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1932
 
 
1933
 
 
1934
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1935
 
 
1936
 
 
1937
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1938
 
 
1939
 
 
1940
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1941
 
 
1942
 
 
1943
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1944
 
 
1945
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1946
 
 
1947
# Installed binaries are usually stripped using `strip' when the user
 
1948
# run `make install-strip'.  However `strip' might not be the right
 
1949
# tool to use in cross-compilation environments, therefore Automake
 
1950
# will honor the `STRIP' environment variable to overrule this program.
 
1951
if test "$cross_compiling" != no; then
 
1952
  if test -n "$ac_tool_prefix"; then
 
1953
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1954
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1955
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1956
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1957
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1958
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1959
else
 
1960
  if test -n "$STRIP"; then
 
1961
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1962
else
 
1963
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1964
for as_dir in $PATH
 
1965
do
 
1966
  IFS=$as_save_IFS
 
1967
  test -z "$as_dir" && as_dir=.
 
1968
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1969
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1970
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1971
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1972
    break 2
 
1973
  fi
 
1974
done
 
1975
done
 
1976
 
 
1977
fi
 
1978
fi
 
1979
STRIP=$ac_cv_prog_STRIP
 
1980
if test -n "$STRIP"; then
 
1981
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1982
echo "${ECHO_T}$STRIP" >&6
 
1983
else
 
1984
  echo "$as_me:$LINENO: result: no" >&5
 
1985
echo "${ECHO_T}no" >&6
 
1986
fi
 
1987
 
 
1988
fi
 
1989
if test -z "$ac_cv_prog_STRIP"; then
 
1990
  ac_ct_STRIP=$STRIP
 
1991
  # Extract the first word of "strip", so it can be a program name with args.
 
1992
set dummy strip; ac_word=$2
 
1993
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1994
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1995
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1996
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1997
else
 
1998
  if test -n "$ac_ct_STRIP"; then
 
1999
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2000
else
 
2001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2002
for as_dir in $PATH
 
2003
do
 
2004
  IFS=$as_save_IFS
 
2005
  test -z "$as_dir" && as_dir=.
 
2006
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2007
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2008
    ac_cv_prog_ac_ct_STRIP="strip"
 
2009
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2010
    break 2
 
2011
  fi
 
2012
done
 
2013
done
 
2014
 
 
2015
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
2016
fi
 
2017
fi
 
2018
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2019
if test -n "$ac_ct_STRIP"; then
 
2020
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2021
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
2022
else
 
2023
  echo "$as_me:$LINENO: result: no" >&5
 
2024
echo "${ECHO_T}no" >&6
 
2025
fi
 
2026
 
 
2027
  STRIP=$ac_ct_STRIP
 
2028
else
 
2029
  STRIP="$ac_cv_prog_STRIP"
 
2030
fi
 
2031
 
 
2032
fi
 
2033
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
2034
 
 
2035
# We need awk for the "check" target.  The system "awk" is bad on
 
2036
# some platforms.
 
2037
# Always define AMTAR for backward compatibility.
 
2038
 
 
2039
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2040
 
 
2041
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2042
 
 
2043
 
 
2044
 
 
2045
 
 
2046
 
 
2047
          ac_config_headers="$ac_config_headers config.h"
 
2048
 
 
2049
 
 
2050
# Extract the first word of "gawk", so it can be a program name with args.
 
2051
set dummy gawk; ac_word=$2
 
2052
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2053
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2054
if test "${ac_cv_prog_GAWK+set}" = set; then
 
2055
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2056
else
 
2057
  if test -n "$GAWK"; then
 
2058
  ac_cv_prog_GAWK="$GAWK" # Let the user override the test.
 
2059
else
 
2060
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2061
for as_dir in $PATH
 
2062
do
 
2063
  IFS=$as_save_IFS
 
2064
  test -z "$as_dir" && as_dir=.
 
2065
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2066
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2067
    ac_cv_prog_GAWK="gawk"
 
2068
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2069
    break 2
 
2070
  fi
 
2071
done
 
2072
done
 
2073
 
 
2074
  test -z "$ac_cv_prog_GAWK" && ac_cv_prog_GAWK="/bin/false"
 
2075
fi
 
2076
fi
 
2077
GAWK=$ac_cv_prog_GAWK
 
2078
if test -n "$GAWK"; then
 
2079
  echo "$as_me:$LINENO: result: $GAWK" >&5
 
2080
echo "${ECHO_T}$GAWK" >&6
 
2081
else
 
2082
  echo "$as_me:$LINENO: result: no" >&5
 
2083
echo "${ECHO_T}no" >&6
 
2084
fi
 
2085
 
 
2086
 
 
2087
 
 
2088
exampledir=${sysconfdir}
 
2089
# Check whether --enable-exampledir or --disable-exampledir was given.
 
2090
if test "${enable_exampledir+set}" = set; then
 
2091
  enableval="$enable_exampledir"
 
2092
  exampledir="$enableval"
 
2093
fi;
 
2094
 
 
2095
 
 
2096
pkgsrcrcdir=""
 
2097
pkgsrcdir=""
 
2098
# Check whether --enable-pkgsrcrcdir or --disable-pkgsrcrcdir was given.
 
2099
if test "${enable_pkgsrcrcdir+set}" = set; then
 
2100
  enableval="$enable_pkgsrcrcdir"
 
2101
  pkgsrcrcdir="$enableval"; pkgsrcdir="pkgsrc"
 
2102
fi;
 
2103
 
 
2104
 
 
2105
 
 
2106
 
 
2107
# Check whether --with-cflags or --without-cflags was given.
 
2108
if test "${with_cflags+set}" = set; then
 
2109
  withval="$with_cflags"
 
2110
 
 
2111
fi;
 
2112
if test "x$with_cflags" != "x" ; then
 
2113
  CFLAGS="$with_cflags" ; cflags_specified=yes ;
 
2114
elif test -n "$CFLAGS" ; then
 
2115
  cflags_specified=yes ;
 
2116
fi
 
2117
 
 
2118
ac_ext=c
 
2119
ac_cpp='$CPP $CPPFLAGS'
 
2120
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2121
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2122
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2123
if test -n "$ac_tool_prefix"; then
 
2124
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2125
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2126
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2127
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2128
if test "${ac_cv_prog_CC+set}" = set; then
 
2129
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2130
else
 
2131
  if test -n "$CC"; then
 
2132
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2133
else
 
2134
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2135
for as_dir in $PATH
 
2136
do
 
2137
  IFS=$as_save_IFS
 
2138
  test -z "$as_dir" && as_dir=.
 
2139
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2140
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2141
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2142
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2143
    break 2
 
2144
  fi
 
2145
done
 
2146
done
 
2147
 
 
2148
fi
 
2149
fi
 
2150
CC=$ac_cv_prog_CC
 
2151
if test -n "$CC"; then
 
2152
  echo "$as_me:$LINENO: result: $CC" >&5
 
2153
echo "${ECHO_T}$CC" >&6
 
2154
else
 
2155
  echo "$as_me:$LINENO: result: no" >&5
 
2156
echo "${ECHO_T}no" >&6
 
2157
fi
 
2158
 
 
2159
fi
 
2160
if test -z "$ac_cv_prog_CC"; then
 
2161
  ac_ct_CC=$CC
 
2162
  # Extract the first word of "gcc", so it can be a program name with args.
 
2163
set dummy gcc; ac_word=$2
 
2164
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2165
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2166
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2167
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2168
else
 
2169
  if test -n "$ac_ct_CC"; then
 
2170
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2171
else
 
2172
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2173
for as_dir in $PATH
 
2174
do
 
2175
  IFS=$as_save_IFS
 
2176
  test -z "$as_dir" && as_dir=.
 
2177
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2178
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2179
    ac_cv_prog_ac_ct_CC="gcc"
 
2180
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2181
    break 2
 
2182
  fi
 
2183
done
 
2184
done
 
2185
 
 
2186
fi
 
2187
fi
 
2188
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2189
if test -n "$ac_ct_CC"; then
 
2190
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2191
echo "${ECHO_T}$ac_ct_CC" >&6
 
2192
else
 
2193
  echo "$as_me:$LINENO: result: no" >&5
 
2194
echo "${ECHO_T}no" >&6
 
2195
fi
 
2196
 
 
2197
  CC=$ac_ct_CC
 
2198
else
 
2199
  CC="$ac_cv_prog_CC"
 
2200
fi
 
2201
 
 
2202
if test -z "$CC"; then
 
2203
  if test -n "$ac_tool_prefix"; then
 
2204
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2205
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2206
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2207
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2208
if test "${ac_cv_prog_CC+set}" = set; then
 
2209
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2210
else
 
2211
  if test -n "$CC"; then
 
2212
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2213
else
 
2214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2215
for as_dir in $PATH
 
2216
do
 
2217
  IFS=$as_save_IFS
 
2218
  test -z "$as_dir" && as_dir=.
 
2219
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2220
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2221
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2222
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2223
    break 2
 
2224
  fi
 
2225
done
 
2226
done
 
2227
 
 
2228
fi
 
2229
fi
 
2230
CC=$ac_cv_prog_CC
 
2231
if test -n "$CC"; then
 
2232
  echo "$as_me:$LINENO: result: $CC" >&5
 
2233
echo "${ECHO_T}$CC" >&6
 
2234
else
 
2235
  echo "$as_me:$LINENO: result: no" >&5
 
2236
echo "${ECHO_T}no" >&6
 
2237
fi
 
2238
 
 
2239
fi
 
2240
if test -z "$ac_cv_prog_CC"; then
 
2241
  ac_ct_CC=$CC
 
2242
  # Extract the first word of "cc", so it can be a program name with args.
 
2243
set dummy cc; ac_word=$2
 
2244
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2245
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2246
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2247
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2248
else
 
2249
  if test -n "$ac_ct_CC"; then
 
2250
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2251
else
 
2252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2253
for as_dir in $PATH
 
2254
do
 
2255
  IFS=$as_save_IFS
 
2256
  test -z "$as_dir" && as_dir=.
 
2257
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2258
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2259
    ac_cv_prog_ac_ct_CC="cc"
 
2260
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2261
    break 2
 
2262
  fi
 
2263
done
 
2264
done
 
2265
 
 
2266
fi
 
2267
fi
 
2268
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2269
if test -n "$ac_ct_CC"; then
 
2270
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2271
echo "${ECHO_T}$ac_ct_CC" >&6
 
2272
else
 
2273
  echo "$as_me:$LINENO: result: no" >&5
 
2274
echo "${ECHO_T}no" >&6
 
2275
fi
 
2276
 
 
2277
  CC=$ac_ct_CC
 
2278
else
 
2279
  CC="$ac_cv_prog_CC"
 
2280
fi
 
2281
 
 
2282
fi
 
2283
if test -z "$CC"; then
 
2284
  # Extract the first word of "cc", so it can be a program name with args.
 
2285
set dummy cc; ac_word=$2
 
2286
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2287
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2288
if test "${ac_cv_prog_CC+set}" = set; then
 
2289
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2290
else
 
2291
  if test -n "$CC"; then
 
2292
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2293
else
 
2294
  ac_prog_rejected=no
 
2295
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2296
for as_dir in $PATH
 
2297
do
 
2298
  IFS=$as_save_IFS
 
2299
  test -z "$as_dir" && as_dir=.
 
2300
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2301
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2302
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2303
       ac_prog_rejected=yes
 
2304
       continue
 
2305
     fi
 
2306
    ac_cv_prog_CC="cc"
 
2307
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2308
    break 2
 
2309
  fi
 
2310
done
 
2311
done
 
2312
 
 
2313
if test $ac_prog_rejected = yes; then
 
2314
  # We found a bogon in the path, so make sure we never use it.
 
2315
  set dummy $ac_cv_prog_CC
 
2316
  shift
 
2317
  if test $# != 0; then
 
2318
    # We chose a different compiler from the bogus one.
 
2319
    # However, it has the same basename, so the bogon will be chosen
 
2320
    # first if we set CC to just the basename; use the full file name.
 
2321
    shift
 
2322
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2323
  fi
 
2324
fi
 
2325
fi
 
2326
fi
 
2327
CC=$ac_cv_prog_CC
 
2328
if test -n "$CC"; then
 
2329
  echo "$as_me:$LINENO: result: $CC" >&5
 
2330
echo "${ECHO_T}$CC" >&6
 
2331
else
 
2332
  echo "$as_me:$LINENO: result: no" >&5
 
2333
echo "${ECHO_T}no" >&6
 
2334
fi
 
2335
 
 
2336
fi
 
2337
if test -z "$CC"; then
 
2338
  if test -n "$ac_tool_prefix"; then
 
2339
  for ac_prog in cl
 
2340
  do
 
2341
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2342
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2343
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2344
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2345
if test "${ac_cv_prog_CC+set}" = set; then
 
2346
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2347
else
 
2348
  if test -n "$CC"; then
 
2349
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2350
else
 
2351
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2352
for as_dir in $PATH
 
2353
do
 
2354
  IFS=$as_save_IFS
 
2355
  test -z "$as_dir" && as_dir=.
 
2356
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2357
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2358
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2359
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2360
    break 2
 
2361
  fi
 
2362
done
 
2363
done
 
2364
 
 
2365
fi
 
2366
fi
 
2367
CC=$ac_cv_prog_CC
 
2368
if test -n "$CC"; then
 
2369
  echo "$as_me:$LINENO: result: $CC" >&5
 
2370
echo "${ECHO_T}$CC" >&6
 
2371
else
 
2372
  echo "$as_me:$LINENO: result: no" >&5
 
2373
echo "${ECHO_T}no" >&6
 
2374
fi
 
2375
 
 
2376
    test -n "$CC" && break
 
2377
  done
 
2378
fi
 
2379
if test -z "$CC"; then
 
2380
  ac_ct_CC=$CC
 
2381
  for ac_prog in cl
 
2382
do
 
2383
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2384
set dummy $ac_prog; ac_word=$2
 
2385
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2386
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2387
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2388
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2389
else
 
2390
  if test -n "$ac_ct_CC"; then
 
2391
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2392
else
 
2393
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2394
for as_dir in $PATH
 
2395
do
 
2396
  IFS=$as_save_IFS
 
2397
  test -z "$as_dir" && as_dir=.
 
2398
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2399
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2400
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2401
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2402
    break 2
 
2403
  fi
 
2404
done
 
2405
done
 
2406
 
 
2407
fi
 
2408
fi
 
2409
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2410
if test -n "$ac_ct_CC"; then
 
2411
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2412
echo "${ECHO_T}$ac_ct_CC" >&6
 
2413
else
 
2414
  echo "$as_me:$LINENO: result: no" >&5
 
2415
echo "${ECHO_T}no" >&6
 
2416
fi
 
2417
 
 
2418
  test -n "$ac_ct_CC" && break
 
2419
done
 
2420
 
 
2421
  CC=$ac_ct_CC
 
2422
fi
 
2423
 
 
2424
fi
 
2425
 
 
2426
 
 
2427
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2428
See \`config.log' for more details." >&5
 
2429
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2430
See \`config.log' for more details." >&2;}
 
2431
   { (exit 1); exit 1; }; }
 
2432
 
 
2433
# Provide some information about the compiler.
 
2434
echo "$as_me:$LINENO:" \
 
2435
     "checking for C compiler version" >&5
 
2436
ac_compiler=`set X $ac_compile; echo $2`
 
2437
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2438
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2439
  ac_status=$?
 
2440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2441
  (exit $ac_status); }
 
2442
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2443
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2444
  ac_status=$?
 
2445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2446
  (exit $ac_status); }
 
2447
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2448
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2449
  ac_status=$?
 
2450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2451
  (exit $ac_status); }
 
2452
 
 
2453
cat >conftest.$ac_ext <<_ACEOF
 
2454
/* confdefs.h.  */
 
2455
_ACEOF
 
2456
cat confdefs.h >>conftest.$ac_ext
 
2457
cat >>conftest.$ac_ext <<_ACEOF
 
2458
/* end confdefs.h.  */
 
2459
 
 
2460
int
 
2461
main ()
 
2462
{
 
2463
 
 
2464
  ;
 
2465
  return 0;
 
2466
}
 
2467
_ACEOF
 
2468
ac_clean_files_save=$ac_clean_files
 
2469
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2470
# Try to create an executable without -o first, disregard a.out.
 
2471
# It will help us diagnose broken compilers, and finding out an intuition
 
2472
# of exeext.
 
2473
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2474
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2475
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2476
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2477
  (eval $ac_link_default) 2>&5
 
2478
  ac_status=$?
 
2479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2480
  (exit $ac_status); }; then
 
2481
  # Find the output, starting from the most likely.  This scheme is
 
2482
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2483
# resort.
 
2484
 
 
2485
# Be careful to initialize this variable, since it used to be cached.
 
2486
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2487
ac_cv_exeext=
 
2488
# b.out is created by i960 compilers.
 
2489
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2490
do
 
2491
  test -f "$ac_file" || continue
 
2492
  case $ac_file in
 
2493
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2494
        ;;
 
2495
    conftest.$ac_ext )
 
2496
        # This is the source file.
 
2497
        ;;
 
2498
    [ab].out )
 
2499
        # We found the default executable, but exeext='' is most
 
2500
        # certainly right.
 
2501
        break;;
 
2502
    *.* )
 
2503
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2504
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2505
        # but it would be cool to find out if it's true.  Does anybody
 
2506
        # maintain Libtool? --akim.
 
2507
        export ac_cv_exeext
 
2508
        break;;
 
2509
    * )
 
2510
        break;;
 
2511
  esac
 
2512
done
 
2513
else
 
2514
  echo "$as_me: failed program was:" >&5
 
2515
sed 's/^/| /' conftest.$ac_ext >&5
 
2516
 
 
2517
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2518
See \`config.log' for more details." >&5
 
2519
echo "$as_me: error: C compiler cannot create executables
 
2520
See \`config.log' for more details." >&2;}
 
2521
   { (exit 77); exit 77; }; }
 
2522
fi
 
2523
 
 
2524
ac_exeext=$ac_cv_exeext
 
2525
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2526
echo "${ECHO_T}$ac_file" >&6
 
2527
 
 
2528
# Check the compiler produces executables we can run.  If not, either
 
2529
# the compiler is broken, or we cross compile.
 
2530
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2531
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2532
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2533
# If not cross compiling, check that we can run a simple program.
 
2534
if test "$cross_compiling" != yes; then
 
2535
  if { ac_try='./$ac_file'
 
2536
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2537
  (eval $ac_try) 2>&5
 
2538
  ac_status=$?
 
2539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2540
  (exit $ac_status); }; }; then
 
2541
    cross_compiling=no
 
2542
  else
 
2543
    if test "$cross_compiling" = maybe; then
 
2544
        cross_compiling=yes
 
2545
    else
 
2546
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2547
If you meant to cross compile, use \`--host'.
 
2548
See \`config.log' for more details." >&5
 
2549
echo "$as_me: error: cannot run C compiled programs.
 
2550
If you meant to cross compile, use \`--host'.
 
2551
See \`config.log' for more details." >&2;}
 
2552
   { (exit 1); exit 1; }; }
 
2553
    fi
 
2554
  fi
 
2555
fi
 
2556
echo "$as_me:$LINENO: result: yes" >&5
 
2557
echo "${ECHO_T}yes" >&6
 
2558
 
 
2559
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2560
ac_clean_files=$ac_clean_files_save
 
2561
# Check the compiler produces executables we can run.  If not, either
 
2562
# the compiler is broken, or we cross compile.
 
2563
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2564
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2565
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2566
echo "${ECHO_T}$cross_compiling" >&6
 
2567
 
 
2568
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2569
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2570
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2571
  (eval $ac_link) 2>&5
 
2572
  ac_status=$?
 
2573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2574
  (exit $ac_status); }; then
 
2575
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2576
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2577
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2578
# `rm'.
 
2579
for ac_file in conftest.exe conftest conftest.*; do
 
2580
  test -f "$ac_file" || continue
 
2581
  case $ac_file in
 
2582
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2583
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2584
          export ac_cv_exeext
 
2585
          break;;
 
2586
    * ) break;;
 
2587
  esac
 
2588
done
 
2589
else
 
2590
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2591
See \`config.log' for more details." >&5
 
2592
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2593
See \`config.log' for more details." >&2;}
 
2594
   { (exit 1); exit 1; }; }
 
2595
fi
 
2596
 
 
2597
rm -f conftest$ac_cv_exeext
 
2598
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2599
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2600
 
 
2601
rm -f conftest.$ac_ext
 
2602
EXEEXT=$ac_cv_exeext
 
2603
ac_exeext=$EXEEXT
 
2604
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2605
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2606
if test "${ac_cv_objext+set}" = set; then
 
2607
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2608
else
 
2609
  cat >conftest.$ac_ext <<_ACEOF
 
2610
/* confdefs.h.  */
 
2611
_ACEOF
 
2612
cat confdefs.h >>conftest.$ac_ext
 
2613
cat >>conftest.$ac_ext <<_ACEOF
 
2614
/* end confdefs.h.  */
 
2615
 
 
2616
int
 
2617
main ()
 
2618
{
 
2619
 
 
2620
  ;
 
2621
  return 0;
 
2622
}
 
2623
_ACEOF
 
2624
rm -f conftest.o conftest.obj
 
2625
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2626
  (eval $ac_compile) 2>&5
 
2627
  ac_status=$?
 
2628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2629
  (exit $ac_status); }; then
 
2630
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2631
  case $ac_file in
 
2632
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2633
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2634
       break;;
 
2635
  esac
 
2636
done
 
2637
else
 
2638
  echo "$as_me: failed program was:" >&5
 
2639
sed 's/^/| /' conftest.$ac_ext >&5
 
2640
 
 
2641
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2642
See \`config.log' for more details." >&5
 
2643
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2644
See \`config.log' for more details." >&2;}
 
2645
   { (exit 1); exit 1; }; }
 
2646
fi
 
2647
 
 
2648
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2649
fi
 
2650
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2651
echo "${ECHO_T}$ac_cv_objext" >&6
 
2652
OBJEXT=$ac_cv_objext
 
2653
ac_objext=$OBJEXT
 
2654
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2655
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2656
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2657
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2658
else
 
2659
  cat >conftest.$ac_ext <<_ACEOF
 
2660
/* confdefs.h.  */
 
2661
_ACEOF
 
2662
cat confdefs.h >>conftest.$ac_ext
 
2663
cat >>conftest.$ac_ext <<_ACEOF
 
2664
/* end confdefs.h.  */
 
2665
 
 
2666
int
 
2667
main ()
 
2668
{
 
2669
#ifndef __GNUC__
 
2670
       choke me
 
2671
#endif
 
2672
 
 
2673
  ;
 
2674
  return 0;
 
2675
}
 
2676
_ACEOF
 
2677
rm -f conftest.$ac_objext
 
2678
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2679
  (eval $ac_compile) 2>conftest.er1
 
2680
  ac_status=$?
 
2681
  grep -v '^ *+' conftest.er1 >conftest.err
 
2682
  rm -f conftest.er1
 
2683
  cat conftest.err >&5
 
2684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2685
  (exit $ac_status); } &&
 
2686
         { ac_try='test -z "$ac_c_werror_flag"
 
2687
                         || test ! -s conftest.err'
 
2688
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2689
  (eval $ac_try) 2>&5
 
2690
  ac_status=$?
 
2691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2692
  (exit $ac_status); }; } &&
 
2693
         { ac_try='test -s conftest.$ac_objext'
 
2694
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2695
  (eval $ac_try) 2>&5
 
2696
  ac_status=$?
 
2697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2698
  (exit $ac_status); }; }; then
 
2699
  ac_compiler_gnu=yes
 
2700
else
 
2701
  echo "$as_me: failed program was:" >&5
 
2702
sed 's/^/| /' conftest.$ac_ext >&5
 
2703
 
 
2704
ac_compiler_gnu=no
 
2705
fi
 
2706
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2707
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2708
 
 
2709
fi
 
2710
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2711
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2712
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2713
ac_test_CFLAGS=${CFLAGS+set}
 
2714
ac_save_CFLAGS=$CFLAGS
 
2715
CFLAGS="-g"
 
2716
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2717
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2718
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2719
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2720
else
 
2721
  cat >conftest.$ac_ext <<_ACEOF
 
2722
/* confdefs.h.  */
 
2723
_ACEOF
 
2724
cat confdefs.h >>conftest.$ac_ext
 
2725
cat >>conftest.$ac_ext <<_ACEOF
 
2726
/* end confdefs.h.  */
 
2727
 
 
2728
int
 
2729
main ()
 
2730
{
 
2731
 
 
2732
  ;
 
2733
  return 0;
 
2734
}
 
2735
_ACEOF
 
2736
rm -f conftest.$ac_objext
 
2737
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2738
  (eval $ac_compile) 2>conftest.er1
 
2739
  ac_status=$?
 
2740
  grep -v '^ *+' conftest.er1 >conftest.err
 
2741
  rm -f conftest.er1
 
2742
  cat conftest.err >&5
 
2743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2744
  (exit $ac_status); } &&
 
2745
         { ac_try='test -z "$ac_c_werror_flag"
 
2746
                         || test ! -s conftest.err'
 
2747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2748
  (eval $ac_try) 2>&5
 
2749
  ac_status=$?
 
2750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2751
  (exit $ac_status); }; } &&
 
2752
         { ac_try='test -s conftest.$ac_objext'
 
2753
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2754
  (eval $ac_try) 2>&5
 
2755
  ac_status=$?
 
2756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2757
  (exit $ac_status); }; }; then
 
2758
  ac_cv_prog_cc_g=yes
 
2759
else
 
2760
  echo "$as_me: failed program was:" >&5
 
2761
sed 's/^/| /' conftest.$ac_ext >&5
 
2762
 
 
2763
ac_cv_prog_cc_g=no
 
2764
fi
 
2765
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2766
fi
 
2767
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2768
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2769
if test "$ac_test_CFLAGS" = set; then
 
2770
  CFLAGS=$ac_save_CFLAGS
 
2771
elif test $ac_cv_prog_cc_g = yes; then
 
2772
  if test "$GCC" = yes; then
 
2773
    CFLAGS="-g -O2"
 
2774
  else
 
2775
    CFLAGS="-g"
 
2776
  fi
 
2777
else
 
2778
  if test "$GCC" = yes; then
 
2779
    CFLAGS="-O2"
 
2780
  else
 
2781
    CFLAGS=
 
2782
  fi
 
2783
fi
 
2784
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2785
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2786
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2787
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2788
else
 
2789
  ac_cv_prog_cc_stdc=no
 
2790
ac_save_CC=$CC
 
2791
cat >conftest.$ac_ext <<_ACEOF
 
2792
/* confdefs.h.  */
 
2793
_ACEOF
 
2794
cat confdefs.h >>conftest.$ac_ext
 
2795
cat >>conftest.$ac_ext <<_ACEOF
 
2796
/* end confdefs.h.  */
 
2797
#include <stdarg.h>
 
2798
#include <stdio.h>
 
2799
#include <sys/types.h>
 
2800
#include <sys/stat.h>
 
2801
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2802
struct buf { int x; };
 
2803
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2804
static char *e (p, i)
 
2805
     char **p;
 
2806
     int i;
 
2807
{
 
2808
  return p[i];
 
2809
}
 
2810
static char *f (char * (*g) (char **, int), char **p, ...)
 
2811
{
 
2812
  char *s;
 
2813
  va_list v;
 
2814
  va_start (v,p);
 
2815
  s = g (p, va_arg (v,int));
 
2816
  va_end (v);
 
2817
  return s;
 
2818
}
 
2819
 
 
2820
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2821
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2822
   These don't provoke an error unfortunately, instead are silently treated
 
2823
   as 'x'.  The following induces an error, until -std1 is added to get
 
2824
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2825
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2826
   that's true only with -std1.  */
 
2827
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2828
 
 
2829
int test (int i, double x);
 
2830
struct s1 {int (*f) (int a);};
 
2831
struct s2 {int (*f) (double a);};
 
2832
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2833
int argc;
 
2834
char **argv;
 
2835
int
 
2836
main ()
 
2837
{
 
2838
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2839
  ;
 
2840
  return 0;
 
2841
}
 
2842
_ACEOF
 
2843
# Don't try gcc -ansi; that turns off useful extensions and
 
2844
# breaks some systems' header files.
 
2845
# AIX                   -qlanglvl=ansi
 
2846
# Ultrix and OSF/1      -std1
 
2847
# HP-UX 10.20 and later -Ae
 
2848
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2849
# SVR4                  -Xc -D__EXTENSIONS__
 
2850
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2851
do
 
2852
  CC="$ac_save_CC $ac_arg"
 
2853
  rm -f conftest.$ac_objext
 
2854
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2855
  (eval $ac_compile) 2>conftest.er1
 
2856
  ac_status=$?
 
2857
  grep -v '^ *+' conftest.er1 >conftest.err
 
2858
  rm -f conftest.er1
 
2859
  cat conftest.err >&5
 
2860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2861
  (exit $ac_status); } &&
 
2862
         { ac_try='test -z "$ac_c_werror_flag"
 
2863
                         || test ! -s conftest.err'
 
2864
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2865
  (eval $ac_try) 2>&5
 
2866
  ac_status=$?
 
2867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2868
  (exit $ac_status); }; } &&
 
2869
         { ac_try='test -s conftest.$ac_objext'
 
2870
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2871
  (eval $ac_try) 2>&5
 
2872
  ac_status=$?
 
2873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2874
  (exit $ac_status); }; }; then
 
2875
  ac_cv_prog_cc_stdc=$ac_arg
 
2876
break
 
2877
else
 
2878
  echo "$as_me: failed program was:" >&5
 
2879
sed 's/^/| /' conftest.$ac_ext >&5
 
2880
 
 
2881
fi
 
2882
rm -f conftest.err conftest.$ac_objext
 
2883
done
 
2884
rm -f conftest.$ac_ext conftest.$ac_objext
 
2885
CC=$ac_save_CC
 
2886
 
 
2887
fi
 
2888
 
 
2889
case "x$ac_cv_prog_cc_stdc" in
 
2890
  x|xno)
 
2891
    echo "$as_me:$LINENO: result: none needed" >&5
 
2892
echo "${ECHO_T}none needed" >&6 ;;
 
2893
  *)
 
2894
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2895
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2896
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2897
esac
 
2898
 
 
2899
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2900
# in C++ we need to declare it.  In case someone uses the same compiler
 
2901
# for both compiling C and C++ we need to have the C++ compiler decide
 
2902
# the declaration of exit, since it's the most demanding environment.
 
2903
cat >conftest.$ac_ext <<_ACEOF
 
2904
#ifndef __cplusplus
 
2905
  choke me
 
2906
#endif
 
2907
_ACEOF
 
2908
rm -f conftest.$ac_objext
 
2909
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2910
  (eval $ac_compile) 2>conftest.er1
 
2911
  ac_status=$?
 
2912
  grep -v '^ *+' conftest.er1 >conftest.err
 
2913
  rm -f conftest.er1
 
2914
  cat conftest.err >&5
 
2915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2916
  (exit $ac_status); } &&
 
2917
         { ac_try='test -z "$ac_c_werror_flag"
 
2918
                         || test ! -s conftest.err'
 
2919
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2920
  (eval $ac_try) 2>&5
 
2921
  ac_status=$?
 
2922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2923
  (exit $ac_status); }; } &&
 
2924
         { ac_try='test -s conftest.$ac_objext'
 
2925
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2926
  (eval $ac_try) 2>&5
 
2927
  ac_status=$?
 
2928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2929
  (exit $ac_status); }; }; then
 
2930
  for ac_declaration in \
 
2931
   '' \
 
2932
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2933
   'extern "C" void std::exit (int); using std::exit;' \
 
2934
   'extern "C" void exit (int) throw ();' \
 
2935
   'extern "C" void exit (int);' \
 
2936
   'void exit (int);'
 
2937
do
 
2938
  cat >conftest.$ac_ext <<_ACEOF
 
2939
/* confdefs.h.  */
 
2940
_ACEOF
 
2941
cat confdefs.h >>conftest.$ac_ext
 
2942
cat >>conftest.$ac_ext <<_ACEOF
 
2943
/* end confdefs.h.  */
 
2944
$ac_declaration
 
2945
#include <stdlib.h>
 
2946
int
 
2947
main ()
 
2948
{
 
2949
exit (42);
 
2950
  ;
 
2951
  return 0;
 
2952
}
 
2953
_ACEOF
 
2954
rm -f conftest.$ac_objext
 
2955
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2956
  (eval $ac_compile) 2>conftest.er1
 
2957
  ac_status=$?
 
2958
  grep -v '^ *+' conftest.er1 >conftest.err
 
2959
  rm -f conftest.er1
 
2960
  cat conftest.err >&5
 
2961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2962
  (exit $ac_status); } &&
 
2963
         { ac_try='test -z "$ac_c_werror_flag"
 
2964
                         || test ! -s conftest.err'
 
2965
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2966
  (eval $ac_try) 2>&5
 
2967
  ac_status=$?
 
2968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2969
  (exit $ac_status); }; } &&
 
2970
         { ac_try='test -s conftest.$ac_objext'
 
2971
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2972
  (eval $ac_try) 2>&5
 
2973
  ac_status=$?
 
2974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2975
  (exit $ac_status); }; }; then
 
2976
  :
 
2977
else
 
2978
  echo "$as_me: failed program was:" >&5
 
2979
sed 's/^/| /' conftest.$ac_ext >&5
 
2980
 
 
2981
continue
 
2982
fi
 
2983
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2984
  cat >conftest.$ac_ext <<_ACEOF
 
2985
/* confdefs.h.  */
 
2986
_ACEOF
 
2987
cat confdefs.h >>conftest.$ac_ext
 
2988
cat >>conftest.$ac_ext <<_ACEOF
 
2989
/* end confdefs.h.  */
 
2990
$ac_declaration
 
2991
int
 
2992
main ()
 
2993
{
 
2994
exit (42);
 
2995
  ;
 
2996
  return 0;
 
2997
}
 
2998
_ACEOF
 
2999
rm -f conftest.$ac_objext
 
3000
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3001
  (eval $ac_compile) 2>conftest.er1
 
3002
  ac_status=$?
 
3003
  grep -v '^ *+' conftest.er1 >conftest.err
 
3004
  rm -f conftest.er1
 
3005
  cat conftest.err >&5
 
3006
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3007
  (exit $ac_status); } &&
 
3008
         { ac_try='test -z "$ac_c_werror_flag"
 
3009
                         || test ! -s conftest.err'
 
3010
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3011
  (eval $ac_try) 2>&5
 
3012
  ac_status=$?
 
3013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3014
  (exit $ac_status); }; } &&
 
3015
         { ac_try='test -s conftest.$ac_objext'
 
3016
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3017
  (eval $ac_try) 2>&5
 
3018
  ac_status=$?
 
3019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3020
  (exit $ac_status); }; }; then
 
3021
  break
 
3022
else
 
3023
  echo "$as_me: failed program was:" >&5
 
3024
sed 's/^/| /' conftest.$ac_ext >&5
 
3025
 
 
3026
fi
 
3027
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3028
done
 
3029
rm -f conftest*
 
3030
if test -n "$ac_declaration"; then
 
3031
  echo '#ifdef __cplusplus' >>confdefs.h
 
3032
  echo $ac_declaration      >>confdefs.h
 
3033
  echo '#endif'             >>confdefs.h
 
3034
fi
 
3035
 
 
3036
else
 
3037
  echo "$as_me: failed program was:" >&5
 
3038
sed 's/^/| /' conftest.$ac_ext >&5
 
3039
 
 
3040
fi
 
3041
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3042
ac_ext=c
 
3043
ac_cpp='$CPP $CPPFLAGS'
 
3044
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3045
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3046
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3047
DEPDIR="${am__leading_dot}deps"
 
3048
 
 
3049
          ac_config_commands="$ac_config_commands depfiles"
 
3050
 
 
3051
 
 
3052
am_make=${MAKE-make}
 
3053
cat > confinc << 'END'
 
3054
am__doit:
 
3055
        @echo done
 
3056
.PHONY: am__doit
 
3057
END
 
3058
# If we don't find an include directive, just comment out the code.
 
3059
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3060
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
3061
am__include="#"
 
3062
am__quote=
 
3063
_am_result=none
 
3064
# First try GNU make style include.
 
3065
echo "include confinc" > confmf
 
3066
# We grep out `Entering directory' and `Leaving directory'
 
3067
# messages which can occur if `w' ends up in MAKEFLAGS.
 
3068
# In particular we don't look at `^make:' because GNU make might
 
3069
# be invoked under some other name (usually "gmake"), in which
 
3070
# case it prints its new name instead of `make'.
 
3071
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
3072
   am__include=include
 
3073
   am__quote=
 
3074
   _am_result=GNU
 
3075
fi
 
3076
# Now try BSD make style include.
 
3077
if test "$am__include" = "#"; then
 
3078
   echo '.include "confinc"' > confmf
 
3079
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
3080
      am__include=.include
 
3081
      am__quote="\""
 
3082
      _am_result=BSD
 
3083
   fi
 
3084
fi
 
3085
 
 
3086
 
 
3087
echo "$as_me:$LINENO: result: $_am_result" >&5
 
3088
echo "${ECHO_T}$_am_result" >&6
 
3089
rm -f confinc confmf
 
3090
 
 
3091
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
3092
if test "${enable_dependency_tracking+set}" = set; then
 
3093
  enableval="$enable_dependency_tracking"
 
3094
 
 
3095
fi;
 
3096
if test "x$enable_dependency_tracking" != xno; then
 
3097
  am_depcomp="$ac_aux_dir/depcomp"
 
3098
  AMDEPBACKSLASH='\'
 
3099
fi
 
3100
 
 
3101
 
 
3102
if test "x$enable_dependency_tracking" != xno; then
 
3103
  AMDEP_TRUE=
 
3104
  AMDEP_FALSE='#'
 
3105
else
 
3106
  AMDEP_TRUE='#'
 
3107
  AMDEP_FALSE=
 
3108
fi
 
3109
 
 
3110
 
 
3111
 
 
3112
 
 
3113
depcc="$CC"   am_compiler_list=
 
3114
 
 
3115
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3116
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3117
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3118
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3119
else
 
3120
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3121
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3122
  # making bogus files that we don't know about and never remove.  For
 
3123
  # instance it was reported that on HP-UX the gcc test will end up
 
3124
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3125
  # in D'.
 
3126
  mkdir conftest.dir
 
3127
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3128
  # using a relative directory.
 
3129
  cp "$am_depcomp" conftest.dir
 
3130
  cd conftest.dir
 
3131
  # We will build objects and dependencies in a subdirectory because
 
3132
  # it helps to detect inapplicable dependency modes.  For instance
 
3133
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3134
  # side effect of compilation, but ICC will put the dependencies in
 
3135
  # the current directory while Tru64 will put them in the object
 
3136
  # directory.
 
3137
  mkdir sub
 
3138
 
 
3139
  am_cv_CC_dependencies_compiler_type=none
 
3140
  if test "$am_compiler_list" = ""; then
 
3141
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3142
  fi
 
3143
  for depmode in $am_compiler_list; do
 
3144
    # Setup a source with many dependencies, because some compilers
 
3145
    # like to wrap large dependency lists on column 80 (with \), and
 
3146
    # we should not choose a depcomp mode which is confused by this.
 
3147
    #
 
3148
    # We need to recreate these files for each test, as the compiler may
 
3149
    # overwrite some of them when testing with obscure command lines.
 
3150
    # This happens at least with the AIX C compiler.
 
3151
    : > sub/conftest.c
 
3152
    for i in 1 2 3 4 5 6; do
 
3153
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3154
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3155
      # Solaris 8's {/usr,}/bin/sh.
 
3156
      touch sub/conftst$i.h
 
3157
    done
 
3158
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3159
 
 
3160
    case $depmode in
 
3161
    nosideeffect)
 
3162
      # after this tag, mechanisms are not by side-effect, so they'll
 
3163
      # only be used when explicitly requested
 
3164
      if test "x$enable_dependency_tracking" = xyes; then
 
3165
        continue
 
3166
      else
 
3167
        break
 
3168
      fi
 
3169
      ;;
 
3170
    none) break ;;
 
3171
    esac
 
3172
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3173
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3174
    # handle `-M -o', and we need to detect this.
 
3175
    if depmode=$depmode \
 
3176
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3177
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3178
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3179
         >/dev/null 2>conftest.err &&
 
3180
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3181
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3182
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3183
      # icc doesn't choke on unknown options, it will just issue warnings
 
3184
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3185
      # that says an option was ignored or not supported.
 
3186
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3187
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3188
      # The diagnosis changed in icc 8.0:
 
3189
      #   icc: Command line remark: option '-MP' not supported
 
3190
      if (grep 'ignoring option' conftest.err ||
 
3191
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3192
        am_cv_CC_dependencies_compiler_type=$depmode
 
3193
        break
 
3194
      fi
 
3195
    fi
 
3196
  done
 
3197
 
 
3198
  cd ..
 
3199
  rm -rf conftest.dir
 
3200
else
 
3201
  am_cv_CC_dependencies_compiler_type=none
 
3202
fi
 
3203
 
 
3204
fi
 
3205
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3206
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3207
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3208
 
 
3209
 
 
3210
 
 
3211
if
 
3212
  test "x$enable_dependency_tracking" != xno \
 
3213
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3214
  am__fastdepCC_TRUE=
 
3215
  am__fastdepCC_FALSE='#'
 
3216
else
 
3217
  am__fastdepCC_TRUE='#'
 
3218
  am__fastdepCC_FALSE=
 
3219
fi
 
3220
 
 
3221
 
 
3222
ac_ext=c
 
3223
ac_cpp='$CPP $CPPFLAGS'
 
3224
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3225
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3226
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3227
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3228
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3229
# On Suns, sometimes $CPP names a directory.
 
3230
if test -n "$CPP" && test -d "$CPP"; then
 
3231
  CPP=
 
3232
fi
 
3233
if test -z "$CPP"; then
 
3234
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3235
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3236
else
 
3237
      # Double quotes because CPP needs to be expanded
 
3238
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3239
    do
 
3240
      ac_preproc_ok=false
 
3241
for ac_c_preproc_warn_flag in '' yes
 
3242
do
 
3243
  # Use a header file that comes with gcc, so configuring glibc
 
3244
  # with a fresh cross-compiler works.
 
3245
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3246
  # <limits.h> exists even on freestanding compilers.
 
3247
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3248
  # not just through cpp. "Syntax error" is here to catch this case.
 
3249
  cat >conftest.$ac_ext <<_ACEOF
 
3250
/* confdefs.h.  */
 
3251
_ACEOF
 
3252
cat confdefs.h >>conftest.$ac_ext
 
3253
cat >>conftest.$ac_ext <<_ACEOF
 
3254
/* end confdefs.h.  */
 
3255
#ifdef __STDC__
 
3256
# include <limits.h>
 
3257
#else
 
3258
# include <assert.h>
 
3259
#endif
 
3260
                     Syntax error
 
3261
_ACEOF
 
3262
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3263
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3264
  ac_status=$?
 
3265
  grep -v '^ *+' conftest.er1 >conftest.err
 
3266
  rm -f conftest.er1
 
3267
  cat conftest.err >&5
 
3268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3269
  (exit $ac_status); } >/dev/null; then
 
3270
  if test -s conftest.err; then
 
3271
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3272
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3273
  else
 
3274
    ac_cpp_err=
 
3275
  fi
 
3276
else
 
3277
  ac_cpp_err=yes
 
3278
fi
 
3279
if test -z "$ac_cpp_err"; then
 
3280
  :
 
3281
else
 
3282
  echo "$as_me: failed program was:" >&5
 
3283
sed 's/^/| /' conftest.$ac_ext >&5
 
3284
 
 
3285
  # Broken: fails on valid input.
 
3286
continue
 
3287
fi
 
3288
rm -f conftest.err conftest.$ac_ext
 
3289
 
 
3290
  # OK, works on sane cases.  Now check whether non-existent headers
 
3291
  # can be detected and how.
 
3292
  cat >conftest.$ac_ext <<_ACEOF
 
3293
/* confdefs.h.  */
 
3294
_ACEOF
 
3295
cat confdefs.h >>conftest.$ac_ext
 
3296
cat >>conftest.$ac_ext <<_ACEOF
 
3297
/* end confdefs.h.  */
 
3298
#include <ac_nonexistent.h>
 
3299
_ACEOF
 
3300
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3301
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3302
  ac_status=$?
 
3303
  grep -v '^ *+' conftest.er1 >conftest.err
 
3304
  rm -f conftest.er1
 
3305
  cat conftest.err >&5
 
3306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3307
  (exit $ac_status); } >/dev/null; then
 
3308
  if test -s conftest.err; then
 
3309
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3310
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3311
  else
 
3312
    ac_cpp_err=
 
3313
  fi
 
3314
else
 
3315
  ac_cpp_err=yes
 
3316
fi
 
3317
if test -z "$ac_cpp_err"; then
 
3318
  # Broken: success on invalid input.
 
3319
continue
 
3320
else
 
3321
  echo "$as_me: failed program was:" >&5
 
3322
sed 's/^/| /' conftest.$ac_ext >&5
 
3323
 
 
3324
  # Passes both tests.
 
3325
ac_preproc_ok=:
 
3326
break
 
3327
fi
 
3328
rm -f conftest.err conftest.$ac_ext
 
3329
 
 
3330
done
 
3331
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3332
rm -f conftest.err conftest.$ac_ext
 
3333
if $ac_preproc_ok; then
 
3334
  break
 
3335
fi
 
3336
 
 
3337
    done
 
3338
    ac_cv_prog_CPP=$CPP
 
3339
 
 
3340
fi
 
3341
  CPP=$ac_cv_prog_CPP
 
3342
else
 
3343
  ac_cv_prog_CPP=$CPP
 
3344
fi
 
3345
echo "$as_me:$LINENO: result: $CPP" >&5
 
3346
echo "${ECHO_T}$CPP" >&6
 
3347
ac_preproc_ok=false
 
3348
for ac_c_preproc_warn_flag in '' yes
 
3349
do
 
3350
  # Use a header file that comes with gcc, so configuring glibc
 
3351
  # with a fresh cross-compiler works.
 
3352
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3353
  # <limits.h> exists even on freestanding compilers.
 
3354
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3355
  # not just through cpp. "Syntax error" is here to catch this case.
 
3356
  cat >conftest.$ac_ext <<_ACEOF
 
3357
/* confdefs.h.  */
 
3358
_ACEOF
 
3359
cat confdefs.h >>conftest.$ac_ext
 
3360
cat >>conftest.$ac_ext <<_ACEOF
 
3361
/* end confdefs.h.  */
 
3362
#ifdef __STDC__
 
3363
# include <limits.h>
 
3364
#else
 
3365
# include <assert.h>
 
3366
#endif
 
3367
                     Syntax error
 
3368
_ACEOF
 
3369
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3370
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3371
  ac_status=$?
 
3372
  grep -v '^ *+' conftest.er1 >conftest.err
 
3373
  rm -f conftest.er1
 
3374
  cat conftest.err >&5
 
3375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3376
  (exit $ac_status); } >/dev/null; then
 
3377
  if test -s conftest.err; then
 
3378
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3379
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3380
  else
 
3381
    ac_cpp_err=
 
3382
  fi
 
3383
else
 
3384
  ac_cpp_err=yes
 
3385
fi
 
3386
if test -z "$ac_cpp_err"; then
 
3387
  :
 
3388
else
 
3389
  echo "$as_me: failed program was:" >&5
 
3390
sed 's/^/| /' conftest.$ac_ext >&5
 
3391
 
 
3392
  # Broken: fails on valid input.
 
3393
continue
 
3394
fi
 
3395
rm -f conftest.err conftest.$ac_ext
 
3396
 
 
3397
  # OK, works on sane cases.  Now check whether non-existent headers
 
3398
  # can be detected and how.
 
3399
  cat >conftest.$ac_ext <<_ACEOF
 
3400
/* confdefs.h.  */
 
3401
_ACEOF
 
3402
cat confdefs.h >>conftest.$ac_ext
 
3403
cat >>conftest.$ac_ext <<_ACEOF
 
3404
/* end confdefs.h.  */
 
3405
#include <ac_nonexistent.h>
 
3406
_ACEOF
 
3407
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3408
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3409
  ac_status=$?
 
3410
  grep -v '^ *+' conftest.er1 >conftest.err
 
3411
  rm -f conftest.er1
 
3412
  cat conftest.err >&5
 
3413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3414
  (exit $ac_status); } >/dev/null; then
 
3415
  if test -s conftest.err; then
 
3416
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3417
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3418
  else
 
3419
    ac_cpp_err=
 
3420
  fi
 
3421
else
 
3422
  ac_cpp_err=yes
 
3423
fi
 
3424
if test -z "$ac_cpp_err"; then
 
3425
  # Broken: success on invalid input.
 
3426
continue
 
3427
else
 
3428
  echo "$as_me: failed program was:" >&5
 
3429
sed 's/^/| /' conftest.$ac_ext >&5
 
3430
 
 
3431
  # Passes both tests.
 
3432
ac_preproc_ok=:
 
3433
break
 
3434
fi
 
3435
rm -f conftest.err conftest.$ac_ext
 
3436
 
 
3437
done
 
3438
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3439
rm -f conftest.err conftest.$ac_ext
 
3440
if $ac_preproc_ok; then
 
3441
  :
 
3442
else
 
3443
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3444
See \`config.log' for more details." >&5
 
3445
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3446
See \`config.log' for more details." >&2;}
 
3447
   { (exit 1); exit 1; }; }
 
3448
fi
 
3449
 
 
3450
ac_ext=c
 
3451
ac_cpp='$CPP $CPPFLAGS'
 
3452
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3453
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3454
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3455
 
 
3456
echo "$as_me:$LINENO: checking for egrep" >&5
 
3457
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3458
if test "${ac_cv_prog_egrep+set}" = set; then
 
3459
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3460
else
 
3461
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3462
    then ac_cv_prog_egrep='grep -E'
 
3463
    else ac_cv_prog_egrep='egrep'
 
3464
    fi
 
3465
fi
 
3466
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3467
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3468
 EGREP=$ac_cv_prog_egrep
 
3469
 
 
3470
 
 
3471
 
 
3472
echo "$as_me:$LINENO: checking whether we are using the Intel compiler" >&5
 
3473
echo $ECHO_N "checking whether we are using the Intel compiler... $ECHO_C" >&6
 
3474
 
 
3475
 
 
3476
cat >conftest.$ac_ext <<_ACEOF
 
3477
/* confdefs.h.  */
 
3478
_ACEOF
 
3479
cat confdefs.h >>conftest.$ac_ext
 
3480
cat >>conftest.$ac_ext <<_ACEOF
 
3481
/* end confdefs.h.  */
 
3482
__INTEL_COMPILER
 
3483
_ACEOF
 
3484
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3485
  $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
 
3486
  ICC="no"
 
3487
    echo "$as_me:$LINENO: result: no" >&5
 
3488
echo "${ECHO_T}no" >&6
 
3489
else
 
3490
  ICC="yes"
 
3491
    echo "$as_me:$LINENO: result: yes" >&5
 
3492
echo "${ECHO_T}yes" >&6
 
3493
 
 
3494
fi
 
3495
rm -f conftest*
 
3496
 
 
3497
 
 
3498
if test "x$cflags_specified" = "x" ; then
 
3499
  if test "x${GCC}" = "xyes" && test "x${ICC}" = "xno"; then
 
3500
        CFLAGS="-Os -g  -Wall -Wsign-compare -Wpointer-arith"
 
3501
        CFLAGS="${CFLAGS} -Wbad-function-cast -Wwrite-strings"
 
3502
  fi
 
3503
  # TODO: conditionally addd -Wpacked if handled
 
3504
fi
 
3505
 
 
3506
 
 
3507
if test "$ICC" = "yes"; then
 
3508
    CFLAGS="-Os -g -Wall -wd 279,869,981"
 
3509
fi
 
3510
 
 
3511
# Find a good install program.  We prefer a C program (faster),
 
3512
# so one script is as good as another.  But avoid the broken or
 
3513
# incompatible versions:
 
3514
# SysV /etc/install, /usr/sbin/install
 
3515
# SunOS /usr/etc/install
 
3516
# IRIX /sbin/install
 
3517
# AIX /bin/install
 
3518
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3519
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3520
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3521
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3522
# OS/2's system install, which has a completely different semantic
 
3523
# ./install, which can be erroneously created by make from ./install.sh.
 
3524
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3525
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
3526
if test -z "$INSTALL"; then
 
3527
if test "${ac_cv_path_install+set}" = set; then
 
3528
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3529
else
 
3530
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3531
for as_dir in $PATH
 
3532
do
 
3533
  IFS=$as_save_IFS
 
3534
  test -z "$as_dir" && as_dir=.
 
3535
  # Account for people who put trailing slashes in PATH elements.
 
3536
case $as_dir/ in
 
3537
  ./ | .// | /cC/* | \
 
3538
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3539
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3540
  /usr/ucb/* ) ;;
 
3541
  *)
 
3542
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3543
    # Don't use installbsd from OSF since it installs stuff as root
 
3544
    # by default.
 
3545
    for ac_prog in ginstall scoinst install; do
 
3546
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3547
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
3548
          if test $ac_prog = install &&
 
3549
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3550
            # AIX install.  It has an incompatible calling convention.
 
3551
            :
 
3552
          elif test $ac_prog = install &&
 
3553
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3554
            # program-specific install script used by HP pwplus--don't use.
 
3555
            :
 
3556
          else
 
3557
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3558
            break 3
 
3559
          fi
 
3560
        fi
 
3561
      done
 
3562
    done
 
3563
    ;;
 
3564
esac
 
3565
done
 
3566
 
 
3567
 
 
3568
fi
 
3569
  if test "${ac_cv_path_install+set}" = set; then
 
3570
    INSTALL=$ac_cv_path_install
 
3571
  else
 
3572
    # As a last resort, use the slow shell script.  We don't cache a
 
3573
    # path for INSTALL within a source directory, because that will
 
3574
    # break other packages using the cache if that directory is
 
3575
    # removed, or if the path is relative.
 
3576
    INSTALL=$ac_install_sh
 
3577
  fi
 
3578
fi
 
3579
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3580
echo "${ECHO_T}$INSTALL" >&6
 
3581
 
 
3582
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3583
# It thinks the first close brace ends the variable substitution.
 
3584
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3585
 
 
3586
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3587
 
 
3588
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3589
 
 
3590
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3591
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
3592
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
3593
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
3594
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3595
else
 
3596
  cat >conftest.make <<\_ACEOF
 
3597
all:
 
3598
        @echo 'ac_maketemp="$(MAKE)"'
 
3599
_ACEOF
 
3600
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3601
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
3602
if test -n "$ac_maketemp"; then
 
3603
  eval ac_cv_prog_make_${ac_make}_set=yes
 
3604
else
 
3605
  eval ac_cv_prog_make_${ac_make}_set=no
 
3606
fi
 
3607
rm -f conftest.make
 
3608
fi
 
3609
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
3610
  echo "$as_me:$LINENO: result: yes" >&5
 
3611
echo "${ECHO_T}yes" >&6
 
3612
  SET_MAKE=
 
3613
else
 
3614
  echo "$as_me:$LINENO: result: no" >&5
 
3615
echo "${ECHO_T}no" >&6
 
3616
  SET_MAKE="MAKE=${MAKE-make}"
 
3617
fi
 
3618
 
 
3619
if test -n "$ac_tool_prefix"; then
 
3620
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
3621
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
3622
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3623
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3624
if test "${ac_cv_prog_AR+set}" = set; then
 
3625
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3626
else
 
3627
  if test -n "$AR"; then
 
3628
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
3629
else
 
3630
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3631
for as_dir in $PATH
 
3632
do
 
3633
  IFS=$as_save_IFS
 
3634
  test -z "$as_dir" && as_dir=.
 
3635
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3636
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3637
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
3638
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3639
    break 2
 
3640
  fi
 
3641
done
 
3642
done
 
3643
 
 
3644
fi
 
3645
fi
 
3646
AR=$ac_cv_prog_AR
 
3647
if test -n "$AR"; then
 
3648
  echo "$as_me:$LINENO: result: $AR" >&5
 
3649
echo "${ECHO_T}$AR" >&6
 
3650
else
 
3651
  echo "$as_me:$LINENO: result: no" >&5
 
3652
echo "${ECHO_T}no" >&6
 
3653
fi
 
3654
 
 
3655
fi
 
3656
if test -z "$ac_cv_prog_AR"; then
 
3657
  ac_ct_AR=$AR
 
3658
  # Extract the first word of "ar", so it can be a program name with args.
 
3659
set dummy ar; ac_word=$2
 
3660
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3661
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3662
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
3663
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3664
else
 
3665
  if test -n "$ac_ct_AR"; then
 
3666
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
3667
else
 
3668
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3669
for as_dir in $PATH
 
3670
do
 
3671
  IFS=$as_save_IFS
 
3672
  test -z "$as_dir" && as_dir=.
 
3673
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3674
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3675
    ac_cv_prog_ac_ct_AR="ar"
 
3676
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3677
    break 2
 
3678
  fi
 
3679
done
 
3680
done
 
3681
 
 
3682
fi
 
3683
fi
 
3684
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
3685
if test -n "$ac_ct_AR"; then
 
3686
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
3687
echo "${ECHO_T}$ac_ct_AR" >&6
 
3688
else
 
3689
  echo "$as_me:$LINENO: result: no" >&5
 
3690
echo "${ECHO_T}no" >&6
 
3691
fi
 
3692
 
 
3693
  AR=$ac_ct_AR
 
3694
else
 
3695
  AR="$ac_cv_prog_AR"
 
3696
fi
 
3697
 
 
3698
if test -n "$ac_tool_prefix"; then
 
3699
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
3700
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
3701
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3702
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3703
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
3704
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3705
else
 
3706
  if test -n "$RANLIB"; then
 
3707
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
3708
else
 
3709
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3710
for as_dir in $PATH
 
3711
do
 
3712
  IFS=$as_save_IFS
 
3713
  test -z "$as_dir" && as_dir=.
 
3714
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3715
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3716
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
3717
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3718
    break 2
 
3719
  fi
 
3720
done
 
3721
done
 
3722
 
 
3723
fi
 
3724
fi
 
3725
RANLIB=$ac_cv_prog_RANLIB
 
3726
if test -n "$RANLIB"; then
 
3727
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
3728
echo "${ECHO_T}$RANLIB" >&6
 
3729
else
 
3730
  echo "$as_me:$LINENO: result: no" >&5
 
3731
echo "${ECHO_T}no" >&6
 
3732
fi
 
3733
 
 
3734
fi
 
3735
if test -z "$ac_cv_prog_RANLIB"; then
 
3736
  ac_ct_RANLIB=$RANLIB
 
3737
  # Extract the first word of "ranlib", so it can be a program name with args.
 
3738
set dummy ranlib; ac_word=$2
 
3739
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3740
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3741
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
3742
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3743
else
 
3744
  if test -n "$ac_ct_RANLIB"; then
 
3745
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
3746
else
 
3747
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3748
for as_dir in $PATH
 
3749
do
 
3750
  IFS=$as_save_IFS
 
3751
  test -z "$as_dir" && as_dir=.
 
3752
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3753
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3754
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
3755
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3756
    break 2
 
3757
  fi
 
3758
done
 
3759
done
 
3760
 
 
3761
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
3762
fi
 
3763
fi
 
3764
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
3765
if test -n "$ac_ct_RANLIB"; then
 
3766
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
3767
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
3768
else
 
3769
  echo "$as_me:$LINENO: result: no" >&5
 
3770
echo "${ECHO_T}no" >&6
 
3771
fi
 
3772
 
 
3773
  RANLIB=$ac_ct_RANLIB
 
3774
else
 
3775
  RANLIB="$ac_cv_prog_RANLIB"
 
3776
fi
 
3777
 
 
3778
 
 
3779
 
 
3780
echo "$as_me:$LINENO: checking for AIX" >&5
 
3781
echo $ECHO_N "checking for AIX... $ECHO_C" >&6
 
3782
cat >conftest.$ac_ext <<_ACEOF
 
3783
/* confdefs.h.  */
 
3784
_ACEOF
 
3785
cat confdefs.h >>conftest.$ac_ext
 
3786
cat >>conftest.$ac_ext <<_ACEOF
 
3787
/* end confdefs.h.  */
 
3788
#ifdef _AIX
 
3789
  yes
 
3790
#endif
 
3791
 
 
3792
_ACEOF
 
3793
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3794
  $EGREP "yes" >/dev/null 2>&1; then
 
3795
  echo "$as_me:$LINENO: result: yes" >&5
 
3796
echo "${ECHO_T}yes" >&6
 
3797
cat >>confdefs.h <<\_ACEOF
 
3798
#define _ALL_SOURCE 1
 
3799
_ACEOF
 
3800
 
 
3801
else
 
3802
  echo "$as_me:$LINENO: result: no" >&5
 
3803
echo "${ECHO_T}no" >&6
 
3804
fi
 
3805
rm -f conftest*
 
3806
 
 
3807
 
 
3808
 
 
3809
 
 
3810
 
 
3811
macro_version='1.5.6'
 
3812
macro_revision='6'
 
3813
 
 
3814
 
 
3815
 
 
3816
 
 
3817
 
 
3818
 
 
3819
 
 
3820
 
 
3821
 
 
3822
 
 
3823
 
 
3824
 
 
3825
case $ac_aux_dir in
 
3826
  $srcdir)   ltmain=./ltmain.sh ;;
 
3827
  $srcdir/*) ltmain=`expr "$ac_aux_dir" : "$srcdir/\(.*\)"`/ltmain.sh ;;
 
3828
esac
 
3829
test -f "$ltmain" || ltmain="$ac_aux_dir/ltmain.sh"
 
3830
 
 
3831
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3832
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
3833
if test "${lt_cv_path_SED+set}" = set; then
 
3834
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3835
else
 
3836
  # Loop through the user's path and test for sed and gsed.
 
3837
# Then use that list of sed's as ones to test for truncation.
 
3838
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3839
for as_dir in $PATH
 
3840
do
 
3841
  IFS=$as_save_IFS
 
3842
  test -z "$as_dir" && as_dir=.
 
3843
  for lt_ac_prog in sed gsed; do
 
3844
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3845
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3846
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3847
      fi
 
3848
    done
 
3849
  done
 
3850
done
 
3851
lt_ac_max=0
 
3852
lt_ac_count=0
 
3853
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3854
# along with /bin/sed that truncates output.
 
3855
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3856
  test ! -f $lt_ac_sed && break
 
3857
  cat /dev/null > conftest.in
 
3858
  lt_ac_count=0
 
3859
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3860
  # Check for GNU sed and select it if it is found.
 
3861
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3862
    lt_cv_path_SED=$lt_ac_sed
 
3863
    break
 
3864
  fi
 
3865
  while true; do
 
3866
    cat conftest.in conftest.in >conftest.tmp
 
3867
    mv conftest.tmp conftest.in
 
3868
    cp conftest.in conftest.nl
 
3869
    echo >>conftest.nl
 
3870
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3871
    cmp -s conftest.out conftest.nl || break
 
3872
    # 10000 chars as input seems more than enough
 
3873
    test $lt_ac_count -gt 10 && break
 
3874
    lt_ac_count=`expr $lt_ac_count + 1`
 
3875
    if test $lt_ac_count -gt $lt_ac_max; then
 
3876
      lt_ac_max=$lt_ac_count
 
3877
      lt_cv_path_SED=$lt_ac_sed
 
3878
    fi
 
3879
  done
 
3880
done
 
3881
 
 
3882
fi
 
3883
 
 
3884
SED=$lt_cv_path_SED
 
3885
 
 
3886
echo "$as_me:$LINENO: result: $SED" >&5
 
3887
echo "${ECHO_T}$SED" >&6
 
3888
 
 
3889
test -z "$SED" && SED=sed
 
3890
 
 
3891
 
 
3892
 
 
3893
 
 
3894
 
 
3895
 
 
3896
 
 
3897
 
 
3898
 
 
3899
 
 
3900
 
 
3901
 
 
3902
test -z "$GREP" && GREP=grep
 
3903
 
 
3904
 
 
3905
 
 
3906
 
 
3907
 
 
3908
 
 
3909
 
 
3910
 
 
3911
 
 
3912
 
 
3913
 
 
3914
 
 
3915
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
3916
if test "${with_gnu_ld+set}" = set; then
 
3917
  withval="$with_gnu_ld"
 
3918
  test "$withval" = no || with_gnu_ld=yes
 
3919
else
 
3920
  with_gnu_ld=no
 
3921
fi;
 
3922
 
 
3923
ac_prog=ld
 
3924
if test "$GCC" = yes; then
 
3925
  # Check if gcc -print-prog-name=ld gives a path.
 
3926
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3927
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
3928
  case $host in
 
3929
  *-*-mingw*)
 
3930
    # gcc leaves a trailing carriage return which upsets mingw
 
3931
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3932
  *)
 
3933
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3934
  esac
 
3935
  case $ac_prog in
 
3936
    # Accept absolute paths.
 
3937
    [\\/]* | ?:[\\/]*)
 
3938
      re_direlt='/[^/][^/]*/\.\./'
 
3939
      # Canonicalize the pathname of ld
 
3940
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
3941
      while echo $ac_prog | $GREP "$re_direlt" > /dev/null 2>&1; do
 
3942
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3943
      done
 
3944
      test -z "$LD" && LD="$ac_prog"
 
3945
      ;;
 
3946
  "")
 
3947
    # If it fails, then pretend we aren't using GCC.
 
3948
    ac_prog=ld
 
3949
    ;;
 
3950
  *)
 
3951
    # If it is relative, then search for the first ld in PATH.
 
3952
    with_gnu_ld=unknown
 
3953
    ;;
 
3954
  esac
 
3955
elif test "$with_gnu_ld" = yes; then
 
3956
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3957
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
3958
else
 
3959
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3960
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
3961
fi
 
3962
if test "${lt_cv_path_LD+set}" = set; then
 
3963
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3964
else
 
3965
  if test -z "$LD"; then
 
3966
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3967
  for ac_dir in $PATH; do
 
3968
    IFS="$lt_save_ifs"
 
3969
    test -z "$ac_dir" && ac_dir=.
 
3970
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3971
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3972
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3973
      # but apparently some GNU ld's only accept -v.
 
3974
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3975
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3976
      *GNU* | *'with BFD'*)
 
3977
        test "$with_gnu_ld" != no && break
 
3978
        ;;
 
3979
      *)
 
3980
        test "$with_gnu_ld" != yes && break
 
3981
        ;;
 
3982
      esac
 
3983
    fi
 
3984
  done
 
3985
  IFS="$lt_save_ifs"
 
3986
else
 
3987
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
3988
fi
 
3989
fi
 
3990
 
 
3991
LD="$lt_cv_path_LD"
 
3992
if test -n "$LD"; then
 
3993
  echo "$as_me:$LINENO: result: $LD" >&5
 
3994
echo "${ECHO_T}$LD" >&6
 
3995
else
 
3996
  echo "$as_me:$LINENO: result: no" >&5
 
3997
echo "${ECHO_T}no" >&6
 
3998
fi
 
3999
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4000
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4001
   { (exit 1); exit 1; }; }
 
4002
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4003
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
4004
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4005
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4006
else
 
4007
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
4008
case `$LD -v 2>&1 </dev/null` in
 
4009
*GNU* | *'with BFD'*)
 
4010
  lt_cv_prog_gnu_ld=yes
 
4011
  ;;
 
4012
*)
 
4013
  lt_cv_prog_gnu_ld=no
 
4014
  ;;
 
4015
esac
 
4016
fi
 
4017
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4018
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
4019
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4020
 
 
4021
 
 
4022
 
 
4023
 
 
4024
 
 
4025
 
 
4026
 
 
4027
 
 
4028
 
 
4029
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4030
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
4031
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4032
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4033
else
 
4034
  lt_cv_ld_reload_flag='-r'
 
4035
fi
 
4036
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4037
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
4038
reload_flag=$lt_cv_ld_reload_flag
 
4039
case $reload_flag in
 
4040
"" | " "*) ;;
 
4041
*) reload_flag=" $reload_flag" ;;
 
4042
esac
 
4043
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4044
case $host_os in
 
4045
  darwin*)
 
4046
    if test "$GCC" = yes; then
 
4047
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
4048
    else
 
4049
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4050
    fi
 
4051
    ;;
 
4052
esac
 
4053
 
 
4054
 
 
4055
 
 
4056
 
 
4057
 
 
4058
 
 
4059
 
 
4060
 
 
4061
 
 
4062
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4063
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
4064
if test "${lt_cv_path_NM+set}" = set; then
 
4065
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4066
else
 
4067
  if test -n "$NM"; then
 
4068
  # Let the user override the test.
 
4069
  lt_cv_path_NM="$NM"
 
4070
else
 
4071
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4072
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
4073
    IFS="$lt_save_ifs"
 
4074
    test -z "$ac_dir" && ac_dir=.
 
4075
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
4076
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4077
      # Check to see if the nm accepts a BSD-compat flag.
 
4078
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4079
      #   nm: unknown option "B" ignored
 
4080
      # Tru64's nm complains that /dev/null is an invalid object file
 
4081
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4082
      */dev/null* | *'Invalid file or object type'*)
 
4083
        lt_cv_path_NM="$tmp_nm -B"
 
4084
        break
 
4085
        ;;
 
4086
      *)
 
4087
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4088
        */dev/null*)
 
4089
          lt_cv_path_NM="$tmp_nm -p"
 
4090
          break
 
4091
          ;;
 
4092
        *)
 
4093
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4094
          continue # so that we can try to find one that supports BSD flags
 
4095
          ;;
 
4096
        esac
 
4097
      esac
 
4098
    fi
 
4099
  done
 
4100
  IFS="$lt_save_ifs"
 
4101
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4102
fi
 
4103
fi
 
4104
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4105
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
4106
NM="$lt_cv_path_NM"
 
4107
test -z "$NM" && NM=nm
 
4108
 
 
4109
 
 
4110
 
 
4111
 
 
4112
 
 
4113
 
 
4114
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4115
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
4116
LN_S=$as_ln_s
 
4117
if test "$LN_S" = "ln -s"; then
 
4118
  echo "$as_me:$LINENO: result: yes" >&5
 
4119
echo "${ECHO_T}yes" >&6
 
4120
else
 
4121
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4122
echo "${ECHO_T}no, using $LN_S" >&6
 
4123
fi
 
4124
 
 
4125
 
 
4126
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
4127
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
4128
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4129
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4130
else
 
4131
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4132
lt_cv_file_magic_test_file=
 
4133
lt_cv_deplibs_check_method='unknown'
 
4134
# Need to set the preceding variable on all platforms that support
 
4135
# interlibrary dependencies.
 
4136
# 'none' -- dependencies not supported.
 
4137
# `unknown' -- same as none, but documents that we really don't know.
 
4138
# 'pass_all' -- all dependencies passed with no checks.
 
4139
# 'test_compile' -- check by making test program.
 
4140
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4141
# which responds to the $file_magic_cmd with a given extended regex.
 
4142
# If you have `file' or equivalent on your system and you're not sure
 
4143
# whether `pass_all' will *always* work, you probably want this one.
 
4144
 
 
4145
case $host_os in
 
4146
aix4* | aix5*)
 
4147
  lt_cv_deplibs_check_method=pass_all
 
4148
  ;;
 
4149
 
 
4150
beos*)
 
4151
  lt_cv_deplibs_check_method=pass_all
 
4152
  ;;
 
4153
 
 
4154
bsdi[45]*)
 
4155
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4156
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4157
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4158
  ;;
 
4159
 
 
4160
cygwin*)
 
4161
  # func_win32_libid is a shell function defined in ltmain.sh
 
4162
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4163
  lt_cv_file_magic_cmd='func_win32_libid'
 
4164
  ;;
 
4165
 
 
4166
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4167
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
4168
mingw* | pw32*)
 
4169
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4170
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4171
  ;;
 
4172
 
 
4173
darwin* | rhapsody*)
 
4174
  lt_cv_deplibs_check_method=pass_all
 
4175
  ;;
 
4176
 
 
4177
freebsd* | kfreebsd*-gnu)
 
4178
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
4179
    case $host_cpu in
 
4180
    i*86 )
 
4181
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4182
      # Let's accept both of them until this is cleared up.
 
4183
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
4184
      lt_cv_file_magic_cmd=/usr/bin/file
 
4185
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4186
      ;;
 
4187
    esac
 
4188
  else
 
4189
    lt_cv_deplibs_check_method=pass_all
 
4190
  fi
 
4191
  ;;
 
4192
 
 
4193
gnu*)
 
4194
  lt_cv_deplibs_check_method=pass_all
 
4195
  ;;
 
4196
 
 
4197
hpux10.20* | hpux11*)
 
4198
  lt_cv_file_magic_cmd=/usr/bin/file
 
4199
  case "$host_cpu" in
 
4200
  ia64*)
 
4201
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4202
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4203
    ;;
 
4204
  hppa*64*)
 
4205
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
4206
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4207
    ;;
 
4208
  *)
 
4209
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4210
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4211
    ;;
 
4212
  esac
 
4213
  ;;
 
4214
 
 
4215
irix5* | irix6* | nonstopux*)
 
4216
  case $LD in
 
4217
  *-32|*"-32 ") libmagic=32-bit;;
 
4218
  *-n32|*"-n32 ") libmagic=N32;;
 
4219
  *-64|*"-64 ") libmagic=64-bit;;
 
4220
  *) libmagic=never-match;;
 
4221
  esac
 
4222
  lt_cv_deplibs_check_method=pass_all
 
4223
  ;;
 
4224
 
 
4225
# This must be Linux ELF.
 
4226
linux*)
 
4227
  case $host_cpu in
 
4228
  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
 
4229
    lt_cv_deplibs_check_method=pass_all ;;
 
4230
  *)
 
4231
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
4232
    # this will be overridden with pass_all, but let us keep it just in case
 
4233
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
 
4234
  esac
 
4235
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
4236
  lt_cv_deplibs_check_method=pass_all
 
4237
  ;;
 
4238
 
 
4239
netbsd* | knetbsd*-gnu)
 
4240
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
4241
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4242
  else
 
4243
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4244
  fi
 
4245
  ;;
 
4246
 
 
4247
newos6*)
 
4248
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4249
  lt_cv_file_magic_cmd=/usr/bin/file
 
4250
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4251
  ;;
 
4252
 
 
4253
*nto* | *qnx*)
 
4254
  lt_cv_deplibs_check_method=pass_all
 
4255
  ;;
 
4256
 
 
4257
openbsd*)
 
4258
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4259
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4260
  else
 
4261
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4262
  fi
 
4263
  ;;
 
4264
 
 
4265
osf3* | osf4* | osf5*)
 
4266
  lt_cv_deplibs_check_method=pass_all
 
4267
  ;;
 
4268
 
 
4269
sco3.2v5*)
 
4270
  lt_cv_deplibs_check_method=pass_all
 
4271
  ;;
 
4272
 
 
4273
solaris*)
 
4274
  lt_cv_deplibs_check_method=pass_all
 
4275
  ;;
 
4276
 
 
4277
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
4278
  case $host_vendor in
 
4279
  motorola)
 
4280
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
 
4281
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4282
    ;;
 
4283
  ncr)
 
4284
    lt_cv_deplibs_check_method=pass_all
 
4285
    ;;
 
4286
  sequent)
 
4287
    lt_cv_file_magic_cmd='/bin/file'
 
4288
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4289
    ;;
 
4290
  sni)
 
4291
    lt_cv_file_magic_cmd='/bin/file'
 
4292
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4293
    lt_cv_file_magic_test_file=/lib/libc.so
 
4294
    ;;
 
4295
  siemens)
 
4296
    lt_cv_deplibs_check_method=pass_all
 
4297
    ;;
 
4298
  esac
 
4299
  ;;
 
4300
 
 
4301
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
4302
  lt_cv_deplibs_check_method=pass_all
 
4303
  ;;
 
4304
esac
 
4305
 
 
4306
fi
 
4307
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4308
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
4309
file_magic_cmd=$lt_cv_file_magic_cmd
 
4310
deplibs_check_method=$lt_cv_deplibs_check_method
 
4311
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4312
 
 
4313
 
 
4314
 
 
4315
 
 
4316
 
 
4317
 
 
4318
 
 
4319
 
 
4320
 
 
4321
 
 
4322
 
 
4323
 
 
4324
if test -n "$ac_tool_prefix"; then
 
4325
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
4326
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
4327
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4328
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4329
if test "${ac_cv_prog_AR+set}" = set; then
 
4330
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4331
else
 
4332
  if test -n "$AR"; then
 
4333
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
4334
else
 
4335
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4336
for as_dir in $PATH
 
4337
do
 
4338
  IFS=$as_save_IFS
 
4339
  test -z "$as_dir" && as_dir=.
 
4340
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4341
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4342
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
4343
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4344
    break 2
 
4345
  fi
 
4346
done
 
4347
done
 
4348
 
 
4349
fi
 
4350
fi
 
4351
AR=$ac_cv_prog_AR
 
4352
if test -n "$AR"; then
 
4353
  echo "$as_me:$LINENO: result: $AR" >&5
 
4354
echo "${ECHO_T}$AR" >&6
 
4355
else
 
4356
  echo "$as_me:$LINENO: result: no" >&5
 
4357
echo "${ECHO_T}no" >&6
 
4358
fi
 
4359
 
 
4360
fi
 
4361
if test -z "$ac_cv_prog_AR"; then
 
4362
  ac_ct_AR=$AR
 
4363
  # Extract the first word of "ar", so it can be a program name with args.
 
4364
set dummy ar; ac_word=$2
 
4365
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4366
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4367
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
4368
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4369
else
 
4370
  if test -n "$ac_ct_AR"; then
 
4371
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
4372
else
 
4373
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4374
for as_dir in $PATH
 
4375
do
 
4376
  IFS=$as_save_IFS
 
4377
  test -z "$as_dir" && as_dir=.
 
4378
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4379
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4380
    ac_cv_prog_ac_ct_AR="ar"
 
4381
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4382
    break 2
 
4383
  fi
 
4384
done
 
4385
done
 
4386
 
 
4387
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
4388
fi
 
4389
fi
 
4390
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
4391
if test -n "$ac_ct_AR"; then
 
4392
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
4393
echo "${ECHO_T}$ac_ct_AR" >&6
 
4394
else
 
4395
  echo "$as_me:$LINENO: result: no" >&5
 
4396
echo "${ECHO_T}no" >&6
 
4397
fi
 
4398
 
 
4399
  AR=$ac_ct_AR
 
4400
else
 
4401
  AR="$ac_cv_prog_AR"
 
4402
fi
 
4403
 
 
4404
test -z "$AR" && AR=ar
 
4405
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
4406
 
 
4407
 
 
4408
 
 
4409
 
 
4410
 
 
4411
 
 
4412
 
 
4413
 
 
4414
 
 
4415
 
 
4416
 
 
4417
if test -n "$ac_tool_prefix"; then
 
4418
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
4419
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
4420
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4421
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4422
if test "${ac_cv_prog_STRIP+set}" = set; then
 
4423
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4424
else
 
4425
  if test -n "$STRIP"; then
 
4426
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
4427
else
 
4428
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4429
for as_dir in $PATH
 
4430
do
 
4431
  IFS=$as_save_IFS
 
4432
  test -z "$as_dir" && as_dir=.
 
4433
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4434
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4435
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
4436
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4437
    break 2
 
4438
  fi
 
4439
done
 
4440
done
 
4441
 
 
4442
fi
 
4443
fi
 
4444
STRIP=$ac_cv_prog_STRIP
 
4445
if test -n "$STRIP"; then
 
4446
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
4447
echo "${ECHO_T}$STRIP" >&6
 
4448
else
 
4449
  echo "$as_me:$LINENO: result: no" >&5
 
4450
echo "${ECHO_T}no" >&6
 
4451
fi
 
4452
 
 
4453
fi
 
4454
if test -z "$ac_cv_prog_STRIP"; then
 
4455
  ac_ct_STRIP=$STRIP
 
4456
  # Extract the first word of "strip", so it can be a program name with args.
 
4457
set dummy strip; ac_word=$2
 
4458
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4459
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4460
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
4461
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4462
else
 
4463
  if test -n "$ac_ct_STRIP"; then
 
4464
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
4465
else
 
4466
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4467
for as_dir in $PATH
 
4468
do
 
4469
  IFS=$as_save_IFS
 
4470
  test -z "$as_dir" && as_dir=.
 
4471
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4472
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4473
    ac_cv_prog_ac_ct_STRIP="strip"
 
4474
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4475
    break 2
 
4476
  fi
 
4477
done
 
4478
done
 
4479
 
 
4480
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
4481
fi
 
4482
fi
 
4483
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
4484
if test -n "$ac_ct_STRIP"; then
 
4485
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
4486
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
4487
else
 
4488
  echo "$as_me:$LINENO: result: no" >&5
 
4489
echo "${ECHO_T}no" >&6
 
4490
fi
 
4491
 
 
4492
  STRIP=$ac_ct_STRIP
 
4493
else
 
4494
  STRIP="$ac_cv_prog_STRIP"
 
4495
fi
 
4496
 
 
4497
test -z "$STRIP" && STRIP=:
 
4498
 
 
4499
 
 
4500
 
 
4501
 
 
4502
 
 
4503
 
 
4504
if test -n "$ac_tool_prefix"; then
 
4505
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
4506
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
4507
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4508
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4509
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
4510
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4511
else
 
4512
  if test -n "$RANLIB"; then
 
4513
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
4514
else
 
4515
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4516
for as_dir in $PATH
 
4517
do
 
4518
  IFS=$as_save_IFS
 
4519
  test -z "$as_dir" && as_dir=.
 
4520
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4521
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4522
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
4523
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4524
    break 2
 
4525
  fi
 
4526
done
 
4527
done
 
4528
 
 
4529
fi
 
4530
fi
 
4531
RANLIB=$ac_cv_prog_RANLIB
 
4532
if test -n "$RANLIB"; then
 
4533
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
4534
echo "${ECHO_T}$RANLIB" >&6
 
4535
else
 
4536
  echo "$as_me:$LINENO: result: no" >&5
 
4537
echo "${ECHO_T}no" >&6
 
4538
fi
 
4539
 
 
4540
fi
 
4541
if test -z "$ac_cv_prog_RANLIB"; then
 
4542
  ac_ct_RANLIB=$RANLIB
 
4543
  # Extract the first word of "ranlib", so it can be a program name with args.
 
4544
set dummy ranlib; ac_word=$2
 
4545
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4546
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4547
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
4548
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4549
else
 
4550
  if test -n "$ac_ct_RANLIB"; then
 
4551
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
4552
else
 
4553
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4554
for as_dir in $PATH
 
4555
do
 
4556
  IFS=$as_save_IFS
 
4557
  test -z "$as_dir" && as_dir=.
 
4558
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4559
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4560
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
4561
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4562
    break 2
 
4563
  fi
 
4564
done
 
4565
done
 
4566
 
 
4567
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
4568
fi
 
4569
fi
 
4570
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
4571
if test -n "$ac_ct_RANLIB"; then
 
4572
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
4573
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
4574
else
 
4575
  echo "$as_me:$LINENO: result: no" >&5
 
4576
echo "${ECHO_T}no" >&6
 
4577
fi
 
4578
 
 
4579
  RANLIB=$ac_ct_RANLIB
 
4580
else
 
4581
  RANLIB="$ac_cv_prog_RANLIB"
 
4582
fi
 
4583
 
 
4584
test -z "$RANLIB" && RANLIB=:
 
4585
 
 
4586
 
 
4587
 
 
4588
 
 
4589
 
 
4590
 
 
4591
# Determine commands to create old-style static archives.
 
4592
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
4593
old_postinstall_cmds='chmod 644 $oldlib'
 
4594
old_postuninstall_cmds=
 
4595
 
 
4596
if test -n "$RANLIB"; then
 
4597
  case $host_os in
 
4598
  openbsd*)
 
4599
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
4600
    ;;
 
4601
  *)
 
4602
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
4603
    ;;
 
4604
  esac
 
4605
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
4606
fi
 
4607
 
 
4608
 
 
4609
 
 
4610
 
 
4611
 
 
4612
 
 
4613
 
 
4614
 
 
4615
 
 
4616
 
 
4617
 
 
4618
 
 
4619
 
 
4620
 
 
4621
 
 
4622
 
 
4623
# find the maximum length of command line arguments
 
4624
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
4625
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
4626
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
4627
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4628
else
 
4629
    i=0
 
4630
  teststring="ABCD"
 
4631
 
 
4632
  case $build_os in
 
4633
  msdosdjgpp*)
 
4634
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4635
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4636
    # during glob expansion).  Even if it were fixed, the result of this
 
4637
    # check would be larger than it should be.
 
4638
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4639
    ;;
 
4640
 
 
4641
  gnu*)
 
4642
    # Under GNU Hurd, this test is not required because there is
 
4643
    # no limit to the length of command line arguments.
 
4644
    # Libtool will interpret -1 as no limit whatsoever
 
4645
    lt_cv_sys_max_cmd_len=-1;
 
4646
    ;;
 
4647
 
 
4648
  cygwin* | mingw*)
 
4649
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4650
    # about 5 minutes as the teststring grows exponentially.
 
4651
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4652
    # you end up with a "frozen" computer, even though with patience
 
4653
    # the test eventually succeeds (with a max line length of 256k).
 
4654
    # Instead, let's just punt: use the minimum linelength reported by
 
4655
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4656
    lt_cv_sys_max_cmd_len=8192;
 
4657
    ;;
 
4658
 
 
4659
  amigaos*)
 
4660
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4661
    # So we just punt and use a minimum line length of 8192.
 
4662
    lt_cv_sys_max_cmd_len=8192;
 
4663
    ;;
 
4664
 
 
4665
  netbsd* | freebsd* | openbsd* | darwin* )
 
4666
    # This has been around since 386BSD, at least.  Likely further.
 
4667
    if test -x /sbin/sysctl; then
 
4668
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
4669
    elif test -x /usr/sbin/sysctl; then
 
4670
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
4671
    else
 
4672
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
 
4673
    fi
 
4674
    # And add a safety zone
 
4675
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4676
    ;;
 
4677
 *)
 
4678
    # Make teststring a little bigger before we do anything with it.
 
4679
    # a 1K string should be a reasonable start.
 
4680
    for i in 1 2 3 4 5 6 7 8 ; do
 
4681
      teststring=$teststring$teststring
 
4682
    done
 
4683
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
4684
    # If test is not a shell built-in, we'll probably end up computing a
 
4685
    # maximum length that is only half of the actual maximum length, but
 
4686
    # we can't tell.
 
4687
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
4688
               = "XX$teststring$teststring") >/dev/null 2>&1 &&
 
4689
            test $i != 17 # 1/2 MB should be enough
 
4690
    do
 
4691
      i=`expr $i + 1`
 
4692
      teststring=$teststring$teststring
 
4693
    done
 
4694
    # Only check the string length outside the loop.
 
4695
    lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
4696
    teststring=
 
4697
    # Add a significant safety factor because C++ compilers can tack on massive
 
4698
    # amounts of additional arguments before passing them to the linker.
 
4699
    # It appears as though 1/2 is a usable value.
 
4700
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
4701
    ;;
 
4702
  esac
 
4703
 
 
4704
fi
 
4705
 
 
4706
if test -n $lt_cv_sys_max_cmd_len ; then
 
4707
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
4708
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
4709
else
 
4710
  echo "$as_me:$LINENO: result: none" >&5
 
4711
echo "${ECHO_T}none" >&6
 
4712
fi
 
4713
 
 
4714
 
 
4715
 
 
4716
 
 
4717
 
 
4718
 
 
4719
 
 
4720
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
4721
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
4722
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
4723
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
4724
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4725
else
 
4726
 
 
4727
# These are sane defaults that work on at least a few old systems.
 
4728
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
4729
 
 
4730
# Character class describing NM global symbol codes.
 
4731
symcode='[BCDEGRST]'
 
4732
 
 
4733
# Regexp to match symbols that can be accessed directly from C.
 
4734
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
4735
 
 
4736
# Transform the above into a raw symbol and a C symbol.
 
4737
symxfrm='\1 \2\3 \3'
 
4738
 
 
4739
# Transform an extracted symbol line into a proper C declaration
 
4740
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
4741
 
 
4742
# Transform an extracted symbol line into symbol name and symbol address
 
4743
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
4744
 
 
4745
# Define system-specific variables.
 
4746
case $host_os in
 
4747
aix*)
 
4748
  symcode='[BCDT]'
 
4749
  ;;
 
4750
cygwin* | mingw* | pw32*)
 
4751
  symcode='[ABCDGISTW]'
 
4752
  ;;
 
4753
hpux*) # Its linker distinguishes data from code symbols
 
4754
  if test "$host_cpu" = ia64; then
 
4755
    symcode='[ABCDEGRST]'
 
4756
  fi
 
4757
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4758
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
4759
  ;;
 
4760
irix* | nonstopux*)
 
4761
  symcode='[BCDEGRST]'
 
4762
  ;;
 
4763
osf*)
 
4764
  symcode='[BCDEGQRST]'
 
4765
  ;;
 
4766
solaris* | sysv5*)
 
4767
  symcode='[BDRT]'
 
4768
  ;;
 
4769
sysv4)
 
4770
  symcode='[DFNSTU]'
 
4771
  ;;
 
4772
esac
 
4773
 
 
4774
# Handle CRLF in mingw tool chain
 
4775
opt_cr=
 
4776
case $build_os in
 
4777
mingw*)
 
4778
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
4779
  ;;
 
4780
esac
 
4781
 
 
4782
# If we're using GNU nm, then use its standard symbol codes.
 
4783
case `$NM -V 2>&1` in
 
4784
*GNU* | *'with BFD'*)
 
4785
  symcode='[ABCDGIRSTW]' ;;
 
4786
esac
 
4787
 
 
4788
# Try without a prefix undercore, then with it.
 
4789
for ac_symprfx in "" "_"; do
 
4790
 
 
4791
  # Write the raw and C identifiers.
 
4792
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
4793
 
 
4794
  # Check to see that the pipe works correctly.
 
4795
  pipe_works=no
 
4796
 
 
4797
  rm -f conftest*
 
4798
  cat > conftest.$ac_ext <<_LT_EOF
 
4799
#ifdef __cplusplus
 
4800
extern "C" {
 
4801
#endif
 
4802
char nm_test_var;
 
4803
void nm_test_func(){}
 
4804
#ifdef __cplusplus
 
4805
}
 
4806
#endif
 
4807
int main(){nm_test_var='a';nm_test_func();return(0);}
 
4808
_LT_EOF
 
4809
 
 
4810
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4811
  (eval $ac_compile) 2>&5
 
4812
  ac_status=$?
 
4813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4814
  (exit $ac_status); }; then
 
4815
    # Now try to grab the symbols.
 
4816
    nlist=conftest.nm
 
4817
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
4818
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
4819
  ac_status=$?
 
4820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4821
  (exit $ac_status); } && test -s "$nlist"; then
 
4822
      # Try sorting and uniquifying the output.
 
4823
      if sort "$nlist" | uniq > "$nlist"T; then
 
4824
        mv -f "$nlist"T "$nlist"
 
4825
      else
 
4826
        rm -f "$nlist"T
 
4827
      fi
 
4828
 
 
4829
      # Make sure that we snagged all the symbols we need.
 
4830
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
4831
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
4832
          cat <<_LT_EOF > conftest.$ac_ext
 
4833
#ifdef __cplusplus
 
4834
extern "C" {
 
4835
#endif
 
4836
 
 
4837
_LT_EOF
 
4838
          # Now generate the symbol file.
 
4839
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
4840
 
 
4841
          cat <<_LT_EOF >> conftest.$ac_ext
 
4842
 
 
4843
/* The mapping between symbol names and symbols.  */
 
4844
const struct {
 
4845
  const char *originator;
 
4846
  const struct {
 
4847
    const char *name;
 
4848
    void       *address;
 
4849
  } symbols[];
 
4850
}
 
4851
lt__PROGRAM__LTX_preloaded_symbols =
 
4852
{
 
4853
  "@PROGRAM@",
 
4854
  {
 
4855
_LT_EOF
 
4856
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
4857
          cat <<\_LT_EOF >> conftest.$ac_ext
 
4858
  {0, (void *) 0}
 
4859
  }
 
4860
};
 
4861
 
 
4862
/* This works around a problem in FreeBSD linker */
 
4863
#ifdef FREEBSD_WORKAROUND
 
4864
static const void *lt_preloaded_setup() {
 
4865
  return lt__PROGRAM__LTX_preloaded_symbols;
 
4866
}
 
4867
#endif
 
4868
 
 
4869
#ifdef __cplusplus
 
4870
}
 
4871
#endif
 
4872
_LT_EOF
 
4873
          # Now try linking the two files.
 
4874
          mv conftest.$ac_objext conftstm.$ac_objext
 
4875
          lt_save_LIBS="$LIBS"
 
4876
          lt_save_CFLAGS="$CFLAGS"
 
4877
          LIBS="conftstm.$ac_objext"
 
4878
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
4879
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4880
  (eval $ac_link) 2>&5
 
4881
  ac_status=$?
 
4882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4883
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
4884
            pipe_works=yes
 
4885
          fi
 
4886
          LIBS="$lt_save_LIBS"
 
4887
          CFLAGS="$lt_save_CFLAGS"
 
4888
        else
 
4889
          echo "cannot find nm_test_func in $nlist" >&5
 
4890
        fi
 
4891
      else
 
4892
        echo "cannot find nm_test_var in $nlist" >&5
 
4893
      fi
 
4894
    else
 
4895
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
4896
    fi
 
4897
  else
 
4898
    echo "$progname: failed program was:" >&5
 
4899
    cat conftest.$ac_ext >&5
 
4900
  fi
 
4901
  rm -f conftest* conftst*
 
4902
 
 
4903
  # Do not use the global_symbol_pipe unless it works.
 
4904
  if test "$pipe_works" = yes; then
 
4905
    break
 
4906
  else
 
4907
    lt_cv_sys_global_symbol_pipe=
 
4908
  fi
 
4909
done
 
4910
 
 
4911
fi
 
4912
 
 
4913
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
4914
  lt_cv_sys_global_symbol_to_cdecl=
 
4915
fi
 
4916
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
4917
  echo "$as_me:$LINENO: result: failed" >&5
 
4918
echo "${ECHO_T}failed" >&6
 
4919
else
 
4920
  echo "$as_me:$LINENO: result: ok" >&5
 
4921
echo "${ECHO_T}ok" >&6
 
4922
fi
 
4923
 
 
4924
 
 
4925
 
 
4926
 
 
4927
 
 
4928
 
 
4929
 
 
4930
 
 
4931
 
 
4932
 
 
4933
 
 
4934
 
 
4935
 
 
4936
 
 
4937
 
 
4938
 
 
4939
 
 
4940
 
 
4941
 
 
4942
 
 
4943
 
 
4944
 
 
4945
 
 
4946
 
 
4947
 
 
4948
 
 
4949
 
 
4950
 
 
4951
 
 
4952
 
 
4953
 
 
4954
 
 
4955
 
 
4956
 
 
4957
# If no C compiler was specified, use CC.
 
4958
LTCC=${LTCC-"$CC"}
 
4959
 
 
4960
# Allow CC to be a program name with arguments.
 
4961
compiler=$CC
 
4962
 
 
4963
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
4964
if test "${enable_libtool_lock+set}" = set; then
 
4965
  enableval="$enable_libtool_lock"
 
4966
 
 
4967
fi;
 
4968
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4969
 
 
4970
# Some flags need to be propagated to the compiler or linker for good
 
4971
# libtool support.
 
4972
case $host in
 
4973
ia64-*-hpux*)
 
4974
  # Find out which ABI we are using.
 
4975
  echo 'int i;' > conftest.$ac_ext
 
4976
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4977
  (eval $ac_compile) 2>&5
 
4978
  ac_status=$?
 
4979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4980
  (exit $ac_status); }; then
 
4981
    case `/usr/bin/file conftest.$ac_objext` in
 
4982
    *ELF-32*)
 
4983
      HPUX_IA64_MODE="32"
 
4984
      ;;
 
4985
    *ELF-64*)
 
4986
      HPUX_IA64_MODE="64"
 
4987
      ;;
 
4988
    esac
 
4989
  fi
 
4990
  rm -rf conftest*
 
4991
  ;;
 
4992
*-*-irix6*)
 
4993
  # Find out which ABI we are using.
 
4994
  echo '#line 4994 "configure"' > conftest.$ac_ext
 
4995
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4996
  (eval $ac_compile) 2>&5
 
4997
  ac_status=$?
 
4998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4999
  (exit $ac_status); }; then
 
5000
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
5001
    case `/usr/bin/file conftest.$ac_objext` in
 
5002
    *32-bit*)
 
5003
      LD="${LD-ld} -melf32bsmip"
 
5004
      ;;
 
5005
    *N32*)
 
5006
      LD="${LD-ld} -melf32bmipn32"
 
5007
      ;;
 
5008
    *64-bit*)
 
5009
      LD="${LD-ld} -melf64bmip"
 
5010
      ;;
 
5011
    esac
 
5012
   else
 
5013
    case `/usr/bin/file conftest.$ac_objext` in
 
5014
    *32-bit*)
 
5015
      LD="${LD-ld} -32"
 
5016
      ;;
 
5017
    *N32*)
 
5018
      LD="${LD-ld} -n32"
 
5019
      ;;
 
5020
    *64-bit*)
 
5021
      LD="${LD-ld} -64"
 
5022
      ;;
 
5023
    esac
 
5024
   fi
 
5025
  fi
 
5026
  rm -rf conftest*
 
5027
  ;;
 
5028
 
 
5029
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
5030
  # Find out which ABI we are using.
 
5031
  echo 'int i;' > conftest.$ac_ext
 
5032
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5033
  (eval $ac_compile) 2>&5
 
5034
  ac_status=$?
 
5035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5036
  (exit $ac_status); }; then
 
5037
    case "`/usr/bin/file conftest.o`" in
 
5038
    *32-bit*)
 
5039
      case $host in
 
5040
        x86_64-*linux*)
 
5041
          LD="${LD-ld} -m elf_i386"
 
5042
          ;;
 
5043
        ppc64-*linux*|powerpc64-*linux*)
 
5044
          LD="${LD-ld} -m elf32ppclinux"
 
5045
          ;;
 
5046
        s390x-*linux*)
 
5047
          LD="${LD-ld} -m elf_s390"
 
5048
          ;;
 
5049
        sparc64-*linux*)
 
5050
          LD="${LD-ld} -m elf32_sparc"
 
5051
          ;;
 
5052
      esac
 
5053
      ;;
 
5054
    *64-bit*)
 
5055
      case $host in
 
5056
        x86_64-*linux*)
 
5057
          LD="${LD-ld} -m elf_x86_64"
 
5058
          ;;
 
5059
        ppc*-*linux*|powerpc*-*linux*)
 
5060
          LD="${LD-ld} -m elf64ppc"
 
5061
          ;;
 
5062
        s390*-*linux*)
 
5063
          LD="${LD-ld} -m elf64_s390"
 
5064
          ;;
 
5065
        sparc*-*linux*)
 
5066
          LD="${LD-ld} -m elf64_sparc"
 
5067
          ;;
 
5068
      esac
 
5069
      ;;
 
5070
    esac
 
5071
  fi
 
5072
  rm -rf conftest*
 
5073
  ;;
 
5074
 
 
5075
*-*-sco3.2v5*)
 
5076
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5077
  SAVE_CFLAGS="$CFLAGS"
 
5078
  CFLAGS="$CFLAGS -belf"
 
5079
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5080
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
5081
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5082
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5083
else
 
5084
  ac_ext=c
 
5085
ac_cpp='$CPP $CPPFLAGS'
 
5086
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5087
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5088
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5089
 
 
5090
     cat >conftest.$ac_ext <<_ACEOF
 
5091
/* confdefs.h.  */
 
5092
_ACEOF
 
5093
cat confdefs.h >>conftest.$ac_ext
 
5094
cat >>conftest.$ac_ext <<_ACEOF
 
5095
/* end confdefs.h.  */
 
5096
 
 
5097
int
 
5098
main ()
 
5099
{
 
5100
 
 
5101
  ;
 
5102
  return 0;
 
5103
}
 
5104
_ACEOF
 
5105
rm -f conftest.$ac_objext conftest$ac_exeext
 
5106
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5107
  (eval $ac_link) 2>conftest.er1
 
5108
  ac_status=$?
 
5109
  grep -v '^ *+' conftest.er1 >conftest.err
 
5110
  rm -f conftest.er1
 
5111
  cat conftest.err >&5
 
5112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5113
  (exit $ac_status); } &&
 
5114
         { ac_try='test -z "$ac_c_werror_flag"
 
5115
                         || test ! -s conftest.err'
 
5116
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5117
  (eval $ac_try) 2>&5
 
5118
  ac_status=$?
 
5119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5120
  (exit $ac_status); }; } &&
 
5121
         { ac_try='test -s conftest$ac_exeext'
 
5122
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5123
  (eval $ac_try) 2>&5
 
5124
  ac_status=$?
 
5125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5126
  (exit $ac_status); }; }; then
 
5127
  lt_cv_cc_needs_belf=yes
 
5128
else
 
5129
  echo "$as_me: failed program was:" >&5
 
5130
sed 's/^/| /' conftest.$ac_ext >&5
 
5131
 
 
5132
lt_cv_cc_needs_belf=no
 
5133
fi
 
5134
rm -f conftest.err conftest.$ac_objext \
 
5135
      conftest$ac_exeext conftest.$ac_ext
 
5136
     ac_ext=c
 
5137
ac_cpp='$CPP $CPPFLAGS'
 
5138
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5139
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5140
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5141
 
 
5142
fi
 
5143
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5144
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
5145
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5146
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5147
    CFLAGS="$SAVE_CFLAGS"
 
5148
  fi
 
5149
  ;;
 
5150
esac
 
5151
 
 
5152
need_locks="$enable_libtool_lock"
 
5153
 
 
5154
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
5155
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
5156
if test "${ac_cv_header_stdc+set}" = set; then
 
5157
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5158
else
 
5159
  cat >conftest.$ac_ext <<_ACEOF
 
5160
/* confdefs.h.  */
 
5161
_ACEOF
 
5162
cat confdefs.h >>conftest.$ac_ext
 
5163
cat >>conftest.$ac_ext <<_ACEOF
 
5164
/* end confdefs.h.  */
 
5165
#include <stdlib.h>
 
5166
#include <stdarg.h>
 
5167
#include <string.h>
 
5168
#include <float.h>
 
5169
 
 
5170
int
 
5171
main ()
 
5172
{
 
5173
 
 
5174
  ;
 
5175
  return 0;
 
5176
}
 
5177
_ACEOF
 
5178
rm -f conftest.$ac_objext
 
5179
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5180
  (eval $ac_compile) 2>conftest.er1
 
5181
  ac_status=$?
 
5182
  grep -v '^ *+' conftest.er1 >conftest.err
 
5183
  rm -f conftest.er1
 
5184
  cat conftest.err >&5
 
5185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5186
  (exit $ac_status); } &&
 
5187
         { ac_try='test -z "$ac_c_werror_flag"
 
5188
                         || test ! -s conftest.err'
 
5189
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5190
  (eval $ac_try) 2>&5
 
5191
  ac_status=$?
 
5192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5193
  (exit $ac_status); }; } &&
 
5194
         { ac_try='test -s conftest.$ac_objext'
 
5195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5196
  (eval $ac_try) 2>&5
 
5197
  ac_status=$?
 
5198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5199
  (exit $ac_status); }; }; then
 
5200
  ac_cv_header_stdc=yes
 
5201
else
 
5202
  echo "$as_me: failed program was:" >&5
 
5203
sed 's/^/| /' conftest.$ac_ext >&5
 
5204
 
 
5205
ac_cv_header_stdc=no
 
5206
fi
 
5207
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5208
 
 
5209
if test $ac_cv_header_stdc = yes; then
 
5210
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5211
  cat >conftest.$ac_ext <<_ACEOF
 
5212
/* confdefs.h.  */
 
5213
_ACEOF
 
5214
cat confdefs.h >>conftest.$ac_ext
 
5215
cat >>conftest.$ac_ext <<_ACEOF
 
5216
/* end confdefs.h.  */
 
5217
#include <string.h>
 
5218
 
 
5219
_ACEOF
 
5220
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5221
  $EGREP "memchr" >/dev/null 2>&1; then
 
5222
  :
 
5223
else
 
5224
  ac_cv_header_stdc=no
 
5225
fi
 
5226
rm -f conftest*
 
5227
 
 
5228
fi
 
5229
 
 
5230
if test $ac_cv_header_stdc = yes; then
 
5231
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5232
  cat >conftest.$ac_ext <<_ACEOF
 
5233
/* confdefs.h.  */
 
5234
_ACEOF
 
5235
cat confdefs.h >>conftest.$ac_ext
 
5236
cat >>conftest.$ac_ext <<_ACEOF
 
5237
/* end confdefs.h.  */
 
5238
#include <stdlib.h>
 
5239
 
 
5240
_ACEOF
 
5241
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5242
  $EGREP "free" >/dev/null 2>&1; then
 
5243
  :
 
5244
else
 
5245
  ac_cv_header_stdc=no
 
5246
fi
 
5247
rm -f conftest*
 
5248
 
 
5249
fi
 
5250
 
 
5251
if test $ac_cv_header_stdc = yes; then
 
5252
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5253
  if test "$cross_compiling" = yes; then
 
5254
  :
 
5255
else
 
5256
  cat >conftest.$ac_ext <<_ACEOF
 
5257
/* confdefs.h.  */
 
5258
_ACEOF
 
5259
cat confdefs.h >>conftest.$ac_ext
 
5260
cat >>conftest.$ac_ext <<_ACEOF
 
5261
/* end confdefs.h.  */
 
5262
#include <ctype.h>
 
5263
#if ((' ' & 0x0FF) == 0x020)
 
5264
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5265
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5266
#else
 
5267
# define ISLOWER(c) \
 
5268
                   (('a' <= (c) && (c) <= 'i') \
 
5269
                     || ('j' <= (c) && (c) <= 'r') \
 
5270
                     || ('s' <= (c) && (c) <= 'z'))
 
5271
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5272
#endif
 
5273
 
 
5274
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5275
int
 
5276
main ()
 
5277
{
 
5278
  int i;
 
5279
  for (i = 0; i < 256; i++)
 
5280
    if (XOR (islower (i), ISLOWER (i))
 
5281
        || toupper (i) != TOUPPER (i))
 
5282
      exit(2);
 
5283
  exit (0);
 
5284
}
 
5285
_ACEOF
 
5286
rm -f conftest$ac_exeext
 
5287
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5288
  (eval $ac_link) 2>&5
 
5289
  ac_status=$?
 
5290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5291
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5292
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5293
  (eval $ac_try) 2>&5
 
5294
  ac_status=$?
 
5295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5296
  (exit $ac_status); }; }; then
 
5297
  :
 
5298
else
 
5299
  echo "$as_me: program exited with status $ac_status" >&5
 
5300
echo "$as_me: failed program was:" >&5
 
5301
sed 's/^/| /' conftest.$ac_ext >&5
 
5302
 
 
5303
( exit $ac_status )
 
5304
ac_cv_header_stdc=no
 
5305
fi
 
5306
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5307
fi
 
5308
fi
 
5309
fi
 
5310
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5311
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
5312
if test $ac_cv_header_stdc = yes; then
 
5313
 
 
5314
cat >>confdefs.h <<\_ACEOF
 
5315
#define STDC_HEADERS 1
 
5316
_ACEOF
 
5317
 
 
5318
fi
 
5319
 
 
5320
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5321
 
 
5322
 
 
5323
 
 
5324
 
 
5325
 
 
5326
 
 
5327
 
 
5328
 
 
5329
 
 
5330
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5331
                  inttypes.h stdint.h unistd.h
 
5332
do
 
5333
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5334
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5335
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5336
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5337
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5338
else
 
5339
  cat >conftest.$ac_ext <<_ACEOF
 
5340
/* confdefs.h.  */
 
5341
_ACEOF
 
5342
cat confdefs.h >>conftest.$ac_ext
 
5343
cat >>conftest.$ac_ext <<_ACEOF
 
5344
/* end confdefs.h.  */
 
5345
$ac_includes_default
 
5346
 
 
5347
#include <$ac_header>
 
5348
_ACEOF
 
5349
rm -f conftest.$ac_objext
 
5350
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5351
  (eval $ac_compile) 2>conftest.er1
 
5352
  ac_status=$?
 
5353
  grep -v '^ *+' conftest.er1 >conftest.err
 
5354
  rm -f conftest.er1
 
5355
  cat conftest.err >&5
 
5356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5357
  (exit $ac_status); } &&
 
5358
         { ac_try='test -z "$ac_c_werror_flag"
 
5359
                         || test ! -s conftest.err'
 
5360
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5361
  (eval $ac_try) 2>&5
 
5362
  ac_status=$?
 
5363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5364
  (exit $ac_status); }; } &&
 
5365
         { ac_try='test -s conftest.$ac_objext'
 
5366
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5367
  (eval $ac_try) 2>&5
 
5368
  ac_status=$?
 
5369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5370
  (exit $ac_status); }; }; then
 
5371
  eval "$as_ac_Header=yes"
 
5372
else
 
5373
  echo "$as_me: failed program was:" >&5
 
5374
sed 's/^/| /' conftest.$ac_ext >&5
 
5375
 
 
5376
eval "$as_ac_Header=no"
 
5377
fi
 
5378
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5379
fi
 
5380
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5381
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5382
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5383
  cat >>confdefs.h <<_ACEOF
 
5384
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5385
_ACEOF
 
5386
 
 
5387
fi
 
5388
 
 
5389
done
 
5390
 
 
5391
 
 
5392
 
 
5393
for ac_header in dlfcn.h
 
5394
do
 
5395
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5396
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5397
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5398
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5399
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5400
else
 
5401
  cat >conftest.$ac_ext <<_ACEOF
 
5402
/* confdefs.h.  */
 
5403
_ACEOF
 
5404
cat confdefs.h >>conftest.$ac_ext
 
5405
cat >>conftest.$ac_ext <<_ACEOF
 
5406
/* end confdefs.h.  */
 
5407
$ac_includes_default
 
5408
 
 
5409
#include <$ac_header>
 
5410
_ACEOF
 
5411
rm -f conftest.$ac_objext
 
5412
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5413
  (eval $ac_compile) 2>conftest.er1
 
5414
  ac_status=$?
 
5415
  grep -v '^ *+' conftest.er1 >conftest.err
 
5416
  rm -f conftest.er1
 
5417
  cat conftest.err >&5
 
5418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5419
  (exit $ac_status); } &&
 
5420
         { ac_try='test -z "$ac_c_werror_flag"
 
5421
                         || test ! -s conftest.err'
 
5422
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5423
  (eval $ac_try) 2>&5
 
5424
  ac_status=$?
 
5425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5426
  (exit $ac_status); }; } &&
 
5427
         { ac_try='test -s conftest.$ac_objext'
 
5428
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5429
  (eval $ac_try) 2>&5
 
5430
  ac_status=$?
 
5431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5432
  (exit $ac_status); }; }; then
 
5433
  eval "$as_ac_Header=yes"
 
5434
else
 
5435
  echo "$as_me: failed program was:" >&5
 
5436
sed 's/^/| /' conftest.$ac_ext >&5
 
5437
 
 
5438
eval "$as_ac_Header=no"
 
5439
fi
 
5440
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5441
fi
 
5442
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5443
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5444
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5445
  cat >>confdefs.h <<_ACEOF
 
5446
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5447
_ACEOF
 
5448
 
 
5449
fi
 
5450
 
 
5451
done
 
5452
 
 
5453
 
 
5454
# This can be used to rebuild libtool when needed
 
5455
LIBTOOL_DEPS="$ltmain"
 
5456
 
 
5457
# Always use our own libtool.
 
5458
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
5459
 
 
5460
# Set options
 
5461
enable_dlopen=no
 
5462
 
 
5463
enable_win32_dll=no
 
5464
 
 
5465
# Check whether --enable-shared or --disable-shared was given.
 
5466
if test "${enable_shared+set}" = set; then
 
5467
  enableval="$enable_shared"
 
5468
  p=${PACKAGE-default}
 
5469
    case $enableval in
 
5470
    yes) enable_shared=yes ;;
 
5471
    no) enable_shared=no ;;
 
5472
    *)
 
5473
      enable_shared=no
 
5474
      # Look at the argument we got.  We use all the common list separators.
 
5475
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5476
      for pkg in $enableval; do
 
5477
        IFS="$lt_save_ifs"
 
5478
        if test "X$pkg" = "X$p"; then
 
5479
          enable_shared=yes
 
5480
        fi
 
5481
      done
 
5482
      IFS="$lt_save_ifs"
 
5483
      ;;
 
5484
    esac
 
5485
else
 
5486
  enable_shared=yes
 
5487
fi;
 
5488
 
 
5489
 
 
5490
 
 
5491
 
 
5492
 
 
5493
 
 
5494
 
 
5495
 
 
5496
# Check whether --enable-static or --disable-static was given.
 
5497
if test "${enable_static+set}" = set; then
 
5498
  enableval="$enable_static"
 
5499
  p=${PACKAGE-default}
 
5500
    case $enableval in
 
5501
    yes) enable_static=yes ;;
 
5502
    no) enable_static=no ;;
 
5503
    *)
 
5504
     enable_static=no
 
5505
      # Look at the argument we got.  We use all the common list separators.
 
5506
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5507
      for pkg in $enableval; do
 
5508
        IFS="$lt_save_ifs"
 
5509
        if test "X$pkg" = "X$p"; then
 
5510
          enable_static=yes
 
5511
        fi
 
5512
      done
 
5513
      IFS="$lt_save_ifs"
 
5514
      ;;
 
5515
    esac
 
5516
else
 
5517
  enable_static=yes
 
5518
fi;
 
5519
 
 
5520
 
 
5521
 
 
5522
 
 
5523
 
 
5524
 
 
5525
 
 
5526
 
 
5527
 
 
5528
# Check whether --with-pic or --without-pic was given.
 
5529
if test "${with_pic+set}" = set; then
 
5530
  withval="$with_pic"
 
5531
  pic_mode="$withval"
 
5532
else
 
5533
  pic_mode=default
 
5534
fi;
 
5535
 
 
5536
test -z "$pic_mode" && pic_mode=default
 
5537
 
 
5538
 
 
5539
 
 
5540
 
 
5541
 
 
5542
 
 
5543
 
 
5544
# Check whether --enable-fast-install or --disable-fast-install was given.
 
5545
if test "${enable_fast_install+set}" = set; then
 
5546
  enableval="$enable_fast_install"
 
5547
  p=${PACKAGE-default}
 
5548
    case $enableval in
 
5549
    yes) enable_fast_install=yes ;;
 
5550
    no) enable_fast_install=no ;;
 
5551
    *)
 
5552
      enable_fast_install=no
 
5553
      # Look at the argument we got.  We use all the common list separators.
 
5554
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5555
      for pkg in $enableval; do
 
5556
        IFS="$lt_save_ifs"
 
5557
        if test "X$pkg" = "X$p"; then
 
5558
          enable_fast_install=yes
 
5559
        fi
 
5560
      done
 
5561
      IFS="$lt_save_ifs"
 
5562
      ;;
 
5563
    esac
 
5564
else
 
5565
  enable_fast_install=yes
 
5566
fi;
 
5567
 
 
5568
 
 
5569
 
 
5570
 
 
5571
 
 
5572
 
 
5573
 
 
5574
 
 
5575
 
 
5576
 
 
5577
 
 
5578
 
 
5579
 
 
5580
 
 
5581
 
 
5582
 
 
5583
test -z "$LN_S" && LN_S="ln -s"
 
5584
 
 
5585
 
 
5586
 
 
5587
 
 
5588
 
 
5589
 
 
5590
 
 
5591
 
 
5592
 
 
5593
 
 
5594
 
 
5595
 
 
5596
 
 
5597
 
 
5598
if test -n "${ZSH_VERSION+set}" ; then
 
5599
   setopt NO_GLOB_SUBST
 
5600
fi
 
5601
 
 
5602
echo "$as_me:$LINENO: checking for objdir" >&5
 
5603
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
5604
if test "${lt_cv_objdir+set}" = set; then
 
5605
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5606
else
 
5607
  rm -f .libs 2>/dev/null
 
5608
mkdir .libs 2>/dev/null
 
5609
if test -d .libs; then
 
5610
  lt_cv_objdir=.libs
 
5611
else
 
5612
  # MS-DOS does not allow filenames that begin with a dot.
 
5613
  lt_cv_objdir=_libs
 
5614
fi
 
5615
rmdir .libs 2>/dev/null
 
5616
fi
 
5617
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
5618
echo "${ECHO_T}$lt_cv_objdir" >&6
 
5619
objdir=$lt_cv_objdir
 
5620
 
 
5621
 
 
5622
 
 
5623
 
 
5624
 
 
5625
 
 
5626
 
 
5627
 
 
5628
 
 
5629
 
 
5630
 
 
5631
 
 
5632
 
 
5633
 
 
5634
 
 
5635
 
 
5636
 
 
5637
 
 
5638
 
 
5639
 
 
5640
case $host_os in
 
5641
aix3*)
 
5642
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
5643
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
5644
  # vanish in a puff of smoke.
 
5645
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
5646
    COLLECT_NAMES=
 
5647
    export COLLECT_NAMES
 
5648
  fi
 
5649
  ;;
 
5650
esac
 
5651
 
 
5652
# Sed substitution that helps us do robust quoting.  It backslashifies
 
5653
# metacharacters that are still active within double-quoted strings.
 
5654
Xsed='sed -e s/^X//'
 
5655
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
5656
 
 
5657
# Same as above, but do not quote variable references.
 
5658
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
5659
 
 
5660
# Sed substitution to delay expansion of an escaped shell variable in a
 
5661
# double_quote_subst'ed string.
 
5662
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5663
 
 
5664
# Sed substitution to delay expansion of an escaped single quote.
 
5665
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
5666
 
 
5667
# Sed substitution to avoid accidental globbing in evaled expressions
 
5668
no_glob_subst='s/\*/\\\*/g'
 
5669
 
 
5670
# Constants:
 
5671
rm="rm -f"
 
5672
 
 
5673
# Global variables:
 
5674
default_ofile=libtool
 
5675
ofile="$default_ofile"
 
5676
can_build_shared=yes
 
5677
 
 
5678
# All known linkers require a `.a' archive for static linking (except M$VC,
 
5679
# which needs '.lib').
 
5680
libext=a
 
5681
 
 
5682
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
5683
 
 
5684
old_CC="$CC"
 
5685
old_CFLAGS="$CFLAGS"
 
5686
 
 
5687
# Set sane defaults for various variables
 
5688
test -z "$CC" && CC=cc
 
5689
test -z "$LTCC" && LTCC=$CC
 
5690
test -z "$LD" && LD=ld
 
5691
test -z "$ac_objext" && ac_objext=o
 
5692
 
 
5693
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
5694
 
 
5695
# Only perform the check for file, if the check method requires it
 
5696
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
5697
case $deplibs_check_method in
 
5698
file_magic*)
 
5699
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
5700
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
5701
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
5702
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
5703
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5704
else
 
5705
  case $MAGIC_CMD in
 
5706
[\\/*] |  ?:[\\/]*)
 
5707
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
5708
  ;;
 
5709
*)
 
5710
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
5711
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5712
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
5713
  for ac_dir in $ac_dummy; do
 
5714
    IFS="$lt_save_ifs"
 
5715
    test -z "$ac_dir" && ac_dir=.
 
5716
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
5717
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
5718
      if test -n "$file_magic_test_file"; then
 
5719
        case $deplibs_check_method in
 
5720
        "file_magic "*)
 
5721
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
5722
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5723
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
5724
            $EGREP "$file_magic_regex" > /dev/null; then
 
5725
            :
 
5726
          else
 
5727
            cat <<_LT_EOF 1>&2
 
5728
 
 
5729
*** Warning: the command libtool uses to detect shared libraries,
 
5730
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
5731
*** The result is that libtool may fail to recognize shared libraries
 
5732
*** as such.  This will affect the creation of libtool libraries that
 
5733
*** depend on shared libraries, but programs linked with such libtool
 
5734
*** libraries will work regardless of this problem.  Nevertheless, you
 
5735
*** may want to report the problem to your system manager and/or to
 
5736
*** bug-libtool@gnu.org
 
5737
 
 
5738
_LT_EOF
 
5739
          fi ;;
 
5740
        esac
 
5741
      fi
 
5742
      break
 
5743
    fi
 
5744
  done
 
5745
  IFS="$lt_save_ifs"
 
5746
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
5747
  ;;
 
5748
esac
 
5749
fi
 
5750
 
 
5751
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5752
if test -n "$MAGIC_CMD"; then
 
5753
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
5754
echo "${ECHO_T}$MAGIC_CMD" >&6
 
5755
else
 
5756
  echo "$as_me:$LINENO: result: no" >&5
 
5757
echo "${ECHO_T}no" >&6
 
5758
fi
 
5759
 
 
5760
 
 
5761
 
 
5762
 
 
5763
 
 
5764
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
5765
  if test -n "$ac_tool_prefix"; then
 
5766
    echo "$as_me:$LINENO: checking for file" >&5
 
5767
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
5768
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
5769
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5770
else
 
5771
  case $MAGIC_CMD in
 
5772
[\\/*] |  ?:[\\/]*)
 
5773
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
5774
  ;;
 
5775
*)
 
5776
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
5777
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5778
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
5779
  for ac_dir in $ac_dummy; do
 
5780
    IFS="$lt_save_ifs"
 
5781
    test -z "$ac_dir" && ac_dir=.
 
5782
    if test -f $ac_dir/file; then
 
5783
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
5784
      if test -n "$file_magic_test_file"; then
 
5785
        case $deplibs_check_method in
 
5786
        "file_magic "*)
 
5787
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
5788
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5789
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
5790
            $EGREP "$file_magic_regex" > /dev/null; then
 
5791
            :
 
5792
          else
 
5793
            cat <<_LT_EOF 1>&2
 
5794
 
 
5795
*** Warning: the command libtool uses to detect shared libraries,
 
5796
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
5797
*** The result is that libtool may fail to recognize shared libraries
 
5798
*** as such.  This will affect the creation of libtool libraries that
 
5799
*** depend on shared libraries, but programs linked with such libtool
 
5800
*** libraries will work regardless of this problem.  Nevertheless, you
 
5801
*** may want to report the problem to your system manager and/or to
 
5802
*** bug-libtool@gnu.org
 
5803
 
 
5804
_LT_EOF
 
5805
          fi ;;
 
5806
        esac
 
5807
      fi
 
5808
      break
 
5809
    fi
 
5810
  done
 
5811
  IFS="$lt_save_ifs"
 
5812
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
5813
  ;;
 
5814
esac
 
5815
fi
 
5816
 
 
5817
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5818
if test -n "$MAGIC_CMD"; then
 
5819
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
5820
echo "${ECHO_T}$MAGIC_CMD" >&6
 
5821
else
 
5822
  echo "$as_me:$LINENO: result: no" >&5
 
5823
echo "${ECHO_T}no" >&6
 
5824
fi
 
5825
 
 
5826
 
 
5827
  else
 
5828
    MAGIC_CMD=:
 
5829
  fi
 
5830
fi
 
5831
 
 
5832
  fi
 
5833
  ;;
 
5834
esac
 
5835
 
 
5836
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
5837
if test "${enable_libtool_lock+set}" = set; then
 
5838
  enableval="$enable_libtool_lock"
 
5839
 
 
5840
fi;
 
5841
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5842
 
 
5843
# Use C for the default configuration in the libtool script
 
5844
 
 
5845
 
 
5846
lt_save_CC="$CC"
 
5847
ac_ext=c
 
5848
ac_cpp='$CPP $CPPFLAGS'
 
5849
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5850
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5851
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5852
 
 
5853
 
 
5854
# Source file extension for C test sources.
 
5855
ac_ext=c
 
5856
 
 
5857
# Object file extension for compiled C test sources.
 
5858
objext=o
 
5859
objext=$objext
 
5860
 
 
5861
# Code to be used in simple compile tests
 
5862
lt_simple_compile_test_code="int some_variable = 0;\n"
 
5863
 
 
5864
# Code to be used in simple link tests
 
5865
lt_simple_link_test_code='int main(){return(0);}\n'
 
5866
 
 
5867
 
 
5868
 
 
5869
 
 
5870
 
 
5871
 
 
5872
 
 
5873
 
 
5874
# If no C compiler was specified, use CC.
 
5875
LTCC=${LTCC-"$CC"}
 
5876
 
 
5877
# Allow CC to be a program name with arguments.
 
5878
compiler=$CC
 
5879
 
 
5880
# Save the default compiler, since it gets overwritten when the other
 
5881
# tags are being tested, and _LT_AC_TAGVAR(compiler, []) is a NOP.
 
5882
compiler_DEFAULT=$CC
 
5883
 
 
5884
#
 
5885
# Check for any special shared library compilation flags.
 
5886
#
 
5887
lt_prog_cc_shlib=
 
5888
if test "$GCC" = no; then
 
5889
  case $host_os in
 
5890
  sco3.2v5*)
 
5891
    lt_prog_cc_shlib='-belf'
 
5892
    ;;
 
5893
  esac
 
5894
fi
 
5895
if test -n "$lt_prog_cc_shlib"; then
 
5896
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
5897
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
5898
  if echo "$old_CC $old_CFLAGS " | $GREP "[     ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
5899
  else
 
5900
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
5901
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
5902
    lt_cv_prog_cc_can_build_shared=no
 
5903
  fi
 
5904
fi
 
5905
 
 
5906
 
 
5907
## CAVEAT EMPTOR:
 
5908
## There is no encapsulation within the following macros, do not change
 
5909
## the running order or otherwise move them around unless you know exactly
 
5910
## what you are doing...
 
5911
if test -n "$compiler"; then
 
5912
 
 
5913
lt_prog_compiler_no_builtin_flag=
 
5914
 
 
5915
if test "$GCC" = yes; then
 
5916
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
5917
 
 
5918
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
5919
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
5920
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
5921
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5922
else
 
5923
  lt_cv_prog_compiler_rtti_exceptions=no
 
5924
  ac_outfile=conftest.$ac_objext
 
5925
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5926
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
5927
   # Insert the option either (1) after the last *FLAGS variable, or
 
5928
   # (2) before a word containing "conftest.", or (3) at the end.
 
5929
   # Note that $ac_compile itself does not contain backslashes and begins
 
5930
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
5931
   # The option is referenced via a variable to avoid confusing sed.
 
5932
   lt_compile=`echo "$ac_compile" | $SED \
 
5933
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
5934
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
5935
   -e 's:$: $lt_compiler_flag:'`
 
5936
   (eval echo "\"\$as_me:5936: $lt_compile\"" >&5)
 
5937
   (eval "$lt_compile" 2>conftest.err)
 
5938
   ac_status=$?
 
5939
   cat conftest.err >&5
 
5940
   echo "$as_me:5940: \$? = $ac_status" >&5
 
5941
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
5942
     # The compiler can only warn and ignore the option if not recognized
 
5943
     # So say no if there are warnings
 
5944
     if test ! -s conftest.err; then
 
5945
       lt_cv_prog_compiler_rtti_exceptions=yes
 
5946
     fi
 
5947
   fi
 
5948
   $rm conftest*
 
5949
 
 
5950
fi
 
5951
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
5952
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
5953
 
 
5954
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
5955
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
5956
else
 
5957
    :
 
5958
fi
 
5959
 
 
5960
fi
 
5961
 
 
5962
 
 
5963
 
 
5964
 
 
5965
 
 
5966
 
 
5967
  lt_prog_compiler_wl=
 
5968
lt_prog_compiler_pic=
 
5969
lt_prog_compiler_static=
 
5970
 
 
5971
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
5972
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
5973
 
 
5974
  if test "$GCC" = yes; then
 
5975
    lt_prog_compiler_wl='-Wl,'
 
5976
    lt_prog_compiler_static='-static'
 
5977
 
 
5978
    case $host_os in
 
5979
      aix*)
 
5980
      # All AIX code is PIC.
 
5981
      if test "$host_cpu" = ia64; then
 
5982
        # AIX 5 now supports IA64 processor
 
5983
        lt_prog_compiler_static='-Bstatic'
 
5984
      fi
 
5985
      ;;
 
5986
 
 
5987
    amigaos*)
 
5988
      if test "$host_cpu" = m68k; then
 
5989
        # FIXME: we need at least 68020 code to build shared libraries, but
 
5990
        # adding the `-m68020' flag to GCC prevents building anything better,
 
5991
        # like `-m68040'.
 
5992
        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
5993
      fi
 
5994
      ;;
 
5995
 
 
5996
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5997
      # PIC is the default for these OSes.
 
5998
      ;;
 
5999
 
 
6000
    mingw* | pw32* | os2*)
 
6001
      # This hack is so that the source file can tell whether it is being
 
6002
      # built for inclusion in a dll (and should export symbols for example).
 
6003
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6004
      ;;
 
6005
 
 
6006
    darwin* | rhapsody*)
 
6007
      # PIC is the default on this platform
 
6008
      # Common symbols not allowed in MH_DYLIB files
 
6009
      lt_prog_compiler_pic='-fno-common'
 
6010
      ;;
 
6011
 
 
6012
    hpux*)
 
6013
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6014
      # not for PA HP-UX.
 
6015
      case "$host_cpu" in
 
6016
      hppa*64*|ia64*)
 
6017
        # +Z the default
 
6018
        ;;
 
6019
      *)
 
6020
        lt_prog_compiler_pic='-fPIC'
 
6021
        ;;
 
6022
      esac
 
6023
      ;;
 
6024
 
 
6025
    msdosdjgpp*)
 
6026
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
6027
      # on systems that don't support them.
 
6028
      lt_prog_compiler_can_build_shared=no
 
6029
      enable_shared=no
 
6030
      ;;
 
6031
 
 
6032
    *nto* | *qnx*)
 
6033
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
6034
      # it will coredump.
 
6035
      lt_prog_compiler_pic='-fPIC -shared'
 
6036
      ;;
 
6037
 
 
6038
    sysv4*MP*)
 
6039
      if test -d /usr/nec; then
 
6040
        lt_prog_compiler_pic=-Kconform_pic
 
6041
      fi
 
6042
      ;;
 
6043
 
 
6044
    *)
 
6045
      lt_prog_compiler_pic='-fPIC'
 
6046
      ;;
 
6047
    esac
 
6048
  else
 
6049
    # PORTME Check for flag to pass linker flags through the system compiler.
 
6050
    case $host_os in
 
6051
    aix*)
 
6052
      lt_prog_compiler_wl='-Wl,'
 
6053
      if test "$host_cpu" = ia64; then
 
6054
        # AIX 5 now supports IA64 processor
 
6055
        lt_prog_compiler_static='-Bstatic'
 
6056
      else
 
6057
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
6058
      fi
 
6059
      ;;
 
6060
      darwin*)
 
6061
        # PIC is the default on this platform
 
6062
        # Common symbols not allowed in MH_DYLIB files
 
6063
       case "$cc_basename" in
 
6064
         xlc*)
 
6065
         lt_prog_compiler_pic='-qnocommon'
 
6066
         lt_prog_compiler_wl='-Wl,'
 
6067
         ;;
 
6068
       esac
 
6069
       ;;
 
6070
 
 
6071
    mingw* | pw32* | os2*)
 
6072
      # This hack is so that the source file can tell whether it is being
 
6073
      # built for inclusion in a dll (and should export symbols for example).
 
6074
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6075
      ;;
 
6076
 
 
6077
    hpux9* | hpux10* | hpux11*)
 
6078
      lt_prog_compiler_wl='-Wl,'
 
6079
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6080
      # not for PA HP-UX.
 
6081
      case "$host_cpu" in
 
6082
      hppa*64*|ia64*)
 
6083
        # +Z the default
 
6084
        ;;
 
6085
      *)
 
6086
        lt_prog_compiler_pic='+Z'
 
6087
        ;;
 
6088
      esac
 
6089
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
6090
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
6091
      ;;
 
6092
 
 
6093
    irix5* | irix6* | nonstopux*)
 
6094
      lt_prog_compiler_wl='-Wl,'
 
6095
      # PIC (with -KPIC) is the default.
 
6096
      lt_prog_compiler_static='-non_shared'
 
6097
      ;;
 
6098
 
 
6099
    linux*)
 
6100
      case $CC in
 
6101
      icc* | ecc*)
 
6102
        lt_prog_compiler_wl='-Wl,'
 
6103
        lt_prog_compiler_pic='-KPIC'
 
6104
        lt_prog_compiler_static='-static'
 
6105
        ;;
 
6106
      ccc*)
 
6107
        lt_prog_compiler_wl='-Wl,'
 
6108
        # All Alpha code is PIC.
 
6109
        lt_prog_compiler_static='-non_shared'
 
6110
        ;;
 
6111
      esac
 
6112
      ;;
 
6113
 
 
6114
    newsos6)
 
6115
      lt_prog_compiler_pic='-KPIC'
 
6116
      lt_prog_compiler_static='-Bstatic'
 
6117
      ;;
 
6118
 
 
6119
    *nto* | *qnx*)
 
6120
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
6121
      # it will coredump.
 
6122
      lt_prog_compiler_pic='-fPIC -shared'
 
6123
      ;;
 
6124
 
 
6125
    osf3* | osf4* | osf5*)
 
6126
      lt_prog_compiler_wl='-Wl,'
 
6127
      # All OSF/1 code is PIC.
 
6128
      lt_prog_compiler_static='-non_shared'
 
6129
      ;;
 
6130
 
 
6131
    sco3.2v5*)
 
6132
      lt_prog_compiler_pic='-Kpic'
 
6133
      lt_prog_compiler_static='-dn'
 
6134
      ;;
 
6135
 
 
6136
    solaris*)
 
6137
      lt_prog_compiler_wl='-Wl,'
 
6138
      lt_prog_compiler_pic='-KPIC'
 
6139
      lt_prog_compiler_static='-Bstatic'
 
6140
      ;;
 
6141
 
 
6142
    sunos4*)
 
6143
      lt_prog_compiler_wl='-Qoption ld '
 
6144
      lt_prog_compiler_pic='-PIC'
 
6145
      lt_prog_compiler_static='-Bstatic'
 
6146
      ;;
 
6147
 
 
6148
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6149
      lt_prog_compiler_wl='-Wl,'
 
6150
      lt_prog_compiler_pic='-KPIC'
 
6151
      lt_prog_compiler_static='-Bstatic'
 
6152
      ;;
 
6153
 
 
6154
    sysv4*MP*)
 
6155
      if test -d /usr/nec ;then
 
6156
        lt_prog_compiler_pic='-Kconform_pic'
 
6157
        lt_prog_compiler_static='-Bstatic'
 
6158
      fi
 
6159
      ;;
 
6160
 
 
6161
    uts4*)
 
6162
      lt_prog_compiler_pic='-pic'
 
6163
      lt_prog_compiler_static='-Bstatic'
 
6164
      ;;
 
6165
 
 
6166
    *)
 
6167
      lt_prog_compiler_can_build_shared=no
 
6168
      ;;
 
6169
    esac
 
6170
  fi
 
6171
 
 
6172
case "$host_os" in
 
6173
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6174
  *djgpp*)
 
6175
    lt_prog_compiler_pic=
 
6176
    ;;
 
6177
  *)
 
6178
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
6179
    ;;
 
6180
esac
 
6181
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
6182
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
6183
 
 
6184
 
 
6185
 
 
6186
 
 
6187
 
 
6188
 
 
6189
#
 
6190
# Check to make sure the PIC flag actually works.
 
6191
#
 
6192
if test -n "$lt_prog_compiler_pic"; then
 
6193
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
6194
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
6195
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
6196
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6197
else
 
6198
  lt_prog_compiler_pic_works=no
 
6199
  ac_outfile=conftest.$ac_objext
 
6200
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6201
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
6202
   # Insert the option either (1) after the last *FLAGS variable, or
 
6203
   # (2) before a word containing "conftest.", or (3) at the end.
 
6204
   # Note that $ac_compile itself does not contain backslashes and begins
 
6205
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6206
   # The option is referenced via a variable to avoid confusing sed.
 
6207
   lt_compile=`echo "$ac_compile" | $SED \
 
6208
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6209
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6210
   -e 's:$: $lt_compiler_flag:'`
 
6211
   (eval echo "\"\$as_me:6211: $lt_compile\"" >&5)
 
6212
   (eval "$lt_compile" 2>conftest.err)
 
6213
   ac_status=$?
 
6214
   cat conftest.err >&5
 
6215
   echo "$as_me:6215: \$? = $ac_status" >&5
 
6216
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6217
     # The compiler can only warn and ignore the option if not recognized
 
6218
     # So say no if there are warnings
 
6219
     if test ! -s conftest.err; then
 
6220
       lt_prog_compiler_pic_works=yes
 
6221
     fi
 
6222
   fi
 
6223
   $rm conftest*
 
6224
 
 
6225
fi
 
6226
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
6227
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
6228
 
 
6229
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
6230
    case $lt_prog_compiler_pic in
 
6231
     "" | " "*) ;;
 
6232
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
6233
     esac
 
6234
else
 
6235
    lt_prog_compiler_pic=
 
6236
     lt_prog_compiler_can_build_shared=no
 
6237
fi
 
6238
 
 
6239
fi
 
6240
 
 
6241
 
 
6242
 
 
6243
 
 
6244
 
 
6245
 
 
6246
#
 
6247
# Check to make sure the static flag actually works.
 
6248
#
 
6249
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
6250
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
6251
if test "${lt_prog_compiler_static_works+set}" = set; then
 
6252
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6253
else
 
6254
  lt_prog_compiler_static_works=no
 
6255
   save_LDFLAGS="$LDFLAGS"
 
6256
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
6257
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6258
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
6259
     # The compiler can only warn and ignore the option if not recognized
 
6260
     # So say no if there are warnings
 
6261
     if test -s conftest.err; then
 
6262
       # Append any errors to the config.log.
 
6263
       cat conftest.err 1>&5
 
6264
     else
 
6265
       lt_prog_compiler_static_works=yes
 
6266
     fi
 
6267
   fi
 
6268
   $rm conftest*
 
6269
   LDFLAGS="$save_LDFLAGS"
 
6270
 
 
6271
fi
 
6272
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
6273
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
6274
 
 
6275
if test x"$lt_prog_compiler_static_works" = xyes; then
 
6276
    :
 
6277
else
 
6278
    lt_prog_compiler_static=
 
6279
fi
 
6280
 
 
6281
 
 
6282
 
 
6283
 
 
6284
 
 
6285
 
 
6286
 
 
6287
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
6288
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
6289
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
6290
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6291
else
 
6292
  lt_cv_prog_compiler_c_o=no
 
6293
   $rm -r conftest 2>/dev/null
 
6294
   mkdir conftest
 
6295
   cd conftest
 
6296
   mkdir out
 
6297
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6298
 
 
6299
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
6300
   # Insert the option either (1) after the last *FLAGS variable, or
 
6301
   # (2) before a word containing "conftest.", or (3) at the end.
 
6302
   # Note that $ac_compile itself does not contain backslashes and begins
 
6303
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6304
   lt_compile=`echo "$ac_compile" | $SED \
 
6305
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6306
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6307
   -e 's:$: $lt_compiler_flag:'`
 
6308
   (eval echo "\"\$as_me:6308: $lt_compile\"" >&5)
 
6309
   (eval "$lt_compile" 2>out/conftest.err)
 
6310
   ac_status=$?
 
6311
   cat out/conftest.err >&5
 
6312
   echo "$as_me:6312: \$? = $ac_status" >&5
 
6313
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
6314
   then
 
6315
     # The compiler can only warn and ignore the option if not recognized
 
6316
     # So say no if there are warnings
 
6317
     if test ! -s out/conftest.err; then
 
6318
       lt_cv_prog_compiler_c_o=yes
 
6319
     fi
 
6320
   fi
 
6321
   chmod u+w .
 
6322
   $rm conftest*
 
6323
   # SGI C++ compiler will create directory out/ii_files/ for
 
6324
   # template instantiation
 
6325
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
6326
   $rm out/* && rmdir out
 
6327
   cd ..
 
6328
   rmdir conftest
 
6329
   $rm conftest*
 
6330
 
 
6331
fi
 
6332
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
6333
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
6334
 
 
6335
 
 
6336
 
 
6337
 
 
6338
 
 
6339
 
 
6340
 
 
6341
hard_links="nottested"
 
6342
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
6343
  # do not overwrite the value of need_locks provided by the user
 
6344
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
6345
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
6346
  hard_links=yes
 
6347
  $rm conftest*
 
6348
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6349
  touch conftest.a
 
6350
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
6351
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6352
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
6353
echo "${ECHO_T}$hard_links" >&6
 
6354
  if test "$hard_links" = no; then
 
6355
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
6356
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
6357
    need_locks=warn
 
6358
  fi
 
6359
else
 
6360
  need_locks=no
 
6361
fi
 
6362
 
 
6363
 
 
6364
 
 
6365
 
 
6366
 
 
6367
 
 
6368
  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
6369
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
6370
 
 
6371
  runpath_var=
 
6372
  allow_undefined_flag=
 
6373
  always_export_symbols=no
 
6374
  archive_cmds=
 
6375
  archive_expsym_cmds=
 
6376
  enable_shared_with_static_runtimes=no
 
6377
  export_dynamic_flag_spec=
 
6378
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6379
  hardcode_automatic=no
 
6380
  hardcode_direct=no
 
6381
  hardcode_libdir_flag_spec=
 
6382
  hardcode_libdir_flag_spec_ld=
 
6383
  hardcode_libdir_separator=
 
6384
  hardcode_minus_L=no
 
6385
  hardcode_shlibpath_var=unsupported
 
6386
  inherit_rpath=no
 
6387
  link_all_deplibs=unknown
 
6388
  module_cmds=
 
6389
  module_expsym_cmds=
 
6390
  old_archive_from_new_cmds=
 
6391
  old_archive_from_expsyms_cmds=
 
6392
  thread_safe_flag_spec=
 
6393
  whole_archive_flag_spec=
 
6394
  # include_expsyms should be a list of space-separated symbols to be *always*
 
6395
  # included in the symbol list
 
6396
  include_expsyms=
 
6397
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
6398
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
6399
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6400
  # as well as any symbol that contains `d'.
 
6401
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
6402
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6403
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
6404
  # the symbol is explicitly referenced.  Since portable code cannot
 
6405
  # rely on this symbol name, it's probably fine to never include it in
 
6406
  # preloaded symbol tables.
 
6407
  extract_expsyms_cmds=
 
6408
 
 
6409
  case $host_os in
 
6410
  cygwin* | mingw* | pw32*)
 
6411
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6412
    # When not using gcc, we currently assume that we are using
 
6413
    # Microsoft Visual C++.
 
6414
    if test "$GCC" != yes; then
 
6415
      with_gnu_ld=no
 
6416
    fi
 
6417
    ;;
 
6418
  openbsd*)
 
6419
    with_gnu_ld=no
 
6420
    ;;
 
6421
  esac
 
6422
 
 
6423
  ld_shlibs=yes
 
6424
  if test "$with_gnu_ld" = yes; then
 
6425
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
6426
    wlarc='${wl}'
 
6427
 
 
6428
    # See if GNU ld supports shared libraries.
 
6429
    case $host_os in
 
6430
    aix3* | aix4* | aix5*)
 
6431
      # On AIX/PPC, the GNU linker is very broken
 
6432
      if test "$host_cpu" != ia64; then
 
6433
        ld_shlibs=no
 
6434
        cat <<_LT_EOF 1>&2
 
6435
 
 
6436
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6437
*** to be unable to reliably create shared libraries on AIX.
 
6438
*** Therefore, libtool is disabling shared libraries support.  If you
 
6439
*** really care for shared libraries, you may want to modify your PATH
 
6440
*** so that a non-GNU linker is found, and then restart.
 
6441
 
 
6442
_LT_EOF
 
6443
      fi
 
6444
      ;;
 
6445
 
 
6446
    amigaos*)
 
6447
      if test "$host_cpu" = m68k; then
 
6448
        archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
6449
        hardcode_libdir_flag_spec='-L$libdir'
 
6450
        hardcode_minus_L=yes
 
6451
      fi
 
6452
 
 
6453
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6454
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6455
      # to version 4, is to share data among multiple programs linked
 
6456
      # with the same dynamic library.  Since this doesn't match the
 
6457
      # behavior of shared libraries on other platforms, we can't use
 
6458
      # them.
 
6459
      ld_shlibs=no
 
6460
      ;;
 
6461
 
 
6462
    beos*)
 
6463
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
6464
        allow_undefined_flag=unsupported
 
6465
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6466
        # support --undefined.  This deserves some investigation.  FIXME
 
6467
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6468
      else
 
6469
        ld_shlibs=no
 
6470
      fi
 
6471
      ;;
 
6472
 
 
6473
    cygwin* | mingw* | pw32*)
 
6474
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
6475
      # as there is no search path for DLLs.
 
6476
      hardcode_libdir_flag_spec='-L$libdir'
 
6477
      allow_undefined_flag=unsupported
 
6478
      always_export_symbols=no
 
6479
      enable_shared_with_static_runtimes=yes
 
6480
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6481
 
 
6482
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
6483
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
6484
        # If the export-symbols file already is a .def file (1st line
 
6485
        # is EXPORTS), use it as is; otherwise, prepend...
 
6486
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6487
          cp $export_symbols $output_objdir/$soname.def;
 
6488
        else
 
6489
          echo EXPORTS > $output_objdir/$soname.def;
 
6490
          cat $export_symbols >> $output_objdir/$soname.def;
 
6491
        fi~
 
6492
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
6493
      else
 
6494
        ld_shlibs=no
 
6495
      fi
 
6496
      ;;
 
6497
 
 
6498
    netbsd*)
 
6499
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
6500
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6501
        wlarc=
 
6502
      else
 
6503
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6504
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6505
      fi
 
6506
      ;;
 
6507
 
 
6508
    solaris* | sysv5*)
 
6509
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
6510
        ld_shlibs=no
 
6511
        cat <<_LT_EOF 1>&2
 
6512
 
 
6513
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
6514
*** create shared libraries on Solaris systems.  Therefore, libtool
 
6515
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6516
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
6517
*** your PATH or compiler configuration so that the native linker is
 
6518
*** used, and then restart.
 
6519
 
 
6520
_LT_EOF
 
6521
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
6522
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6523
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6524
      else
 
6525
        ld_shlibs=no
 
6526
      fi
 
6527
      ;;
 
6528
 
 
6529
    sunos4*)
 
6530
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6531
      wlarc=
 
6532
      hardcode_direct=yes
 
6533
      hardcode_shlibpath_var=no
 
6534
      ;;
 
6535
 
 
6536
  linux*)
 
6537
    if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null; then
 
6538
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6539
      case `$LD -v 2>&1` in
 
6540
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6541
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6542
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6543
        *\ 2.11.*) ;; # other 2.11 versions
 
6544
        *) supports_anon_versioning=yes ;;
 
6545
      esac
 
6546
      if test "x$supports_anon_versioning" = xyes; then
 
6547
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~$echo "local: *; };" >> $output_objdir/$libname.ver~$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6548
      else
 
6549
        archive_expsym_cmds=$archive_cmds
 
6550
      fi
 
6551
    else
 
6552
      ld_shlibs=no
 
6553
    fi
 
6554
    ;;
 
6555
 
 
6556
    *)
 
6557
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
6558
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6559
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6560
      else
 
6561
        ld_shlibs=no
 
6562
      fi
 
6563
      ;;
 
6564
    esac
 
6565
 
 
6566
    if test "$ld_shlibs" = yes; then
 
6567
      runpath_var=LD_RUN_PATH
 
6568
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6569
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
6570
      # ancient GNU ld didn't support --whole-archive et. al.
 
6571
      if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
6572
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6573
      else
 
6574
        whole_archive_flag_spec=
 
6575
      fi
 
6576
    fi
 
6577
  else
 
6578
    # PORTME fill in a description of your system's linker (not GNU ld)
 
6579
    case $host_os in
 
6580
    aix3*)
 
6581
      allow_undefined_flag=unsupported
 
6582
      always_export_symbols=yes
 
6583
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
6584
      # Note: this linker hardcodes the directories in LIBPATH if there
 
6585
      # are no directories specified by -L.
 
6586
      hardcode_minus_L=yes
 
6587
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
6588
        # Neither direct hardcoding nor static linking is supported with a
 
6589
        # broken collect2.
 
6590
        hardcode_direct=unsupported
 
6591
      fi
 
6592
      ;;
 
6593
 
 
6594
    aix4* | aix5*)
 
6595
      if test "$host_cpu" = ia64; then
 
6596
        # On IA64, the linker does run time linking by default, so we don't
 
6597
        # have to do anything special.
 
6598
        aix_use_runtimelinking=no
 
6599
        exp_sym_flag='-Bexport'
 
6600
        no_entry_flag=""
 
6601
      else
 
6602
        # If we're using GNU nm, then we don't want the "-C" option.
 
6603
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6604
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
6605
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
6606
        else
 
6607
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
6608
        fi
 
6609
        aix_use_runtimelinking=no
 
6610
 
 
6611
        # Test if we are trying to use run time linking or normal
 
6612
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6613
        # need to do runtime linking.
 
6614
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
6615
          for ld_flag in $LDFLAGS; do
 
6616
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6617
            aix_use_runtimelinking=yes
 
6618
            break
 
6619
          fi
 
6620
          done
 
6621
        esac
 
6622
 
 
6623
        exp_sym_flag='-bexport'
 
6624
        no_entry_flag='-bnoentry'
 
6625
      fi
 
6626
 
 
6627
      # When large executables or shared objects are built, AIX ld can
 
6628
      # have problems creating the table of contents.  If linking a library
 
6629
      # or program results in "error TOC overflow" add -mminimal-toc to
 
6630
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6631
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6632
 
 
6633
      archive_cmds=''
 
6634
      hardcode_direct=yes
 
6635
      hardcode_libdir_separator=':'
 
6636
      link_all_deplibs=yes
 
6637
 
 
6638
      if test "$GCC" = yes; then
 
6639
        case $host_os in aix4.012|aix4.012.*)
 
6640
        # We only want to do this on AIX 4.2 and lower, the check
 
6641
        # below for broken collect2 doesn't work under 4.3+
 
6642
          collect2name=`${CC} -print-prog-name=collect2`
 
6643
          if test -f "$collect2name" &&
 
6644
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
6645
          then
 
6646
          # We have reworked collect2
 
6647
          hardcode_direct=yes
 
6648
          else
 
6649
          # We have old collect2
 
6650
          hardcode_direct=unsupported
 
6651
          # It fails to find uninstalled libraries when the uninstalled
 
6652
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
6653
          # to unsupported forces relinking
 
6654
          hardcode_minus_L=yes
 
6655
          hardcode_libdir_flag_spec='-L$libdir'
 
6656
          hardcode_libdir_separator=
 
6657
          fi
 
6658
        esac
 
6659
        shared_flag='-shared'
 
6660
      else
 
6661
        # not using gcc
 
6662
        if test "$host_cpu" = ia64; then
 
6663
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6664
        # chokes on -Wl,-G. The following line is correct:
 
6665
          shared_flag='-G'
 
6666
        else
 
6667
        if test "$aix_use_runtimelinking" = yes; then
 
6668
            shared_flag='${wl}-G'
 
6669
          else
 
6670
            shared_flag='${wl}-bM:SRE'
 
6671
        fi
 
6672
        fi
 
6673
      fi
 
6674
 
 
6675
      # It seems that -bexpall does not export symbols beginning with
 
6676
      # underscore (_), so it is better to generate a list of symbols to export.
 
6677
      always_export_symbols=yes
 
6678
      if test "$aix_use_runtimelinking" = yes; then
 
6679
        # Warning - without using the other runtime loading flags (-brtl),
 
6680
        # -berok will link without error, but may produce a broken library.
 
6681
        allow_undefined_flag='-berok'
 
6682
        # Determine the default libpath from the value encoded in an
 
6683
        # empty executable.
 
6684
       cat >conftest.$ac_ext <<_ACEOF
 
6685
/* confdefs.h.  */
 
6686
_ACEOF
 
6687
cat confdefs.h >>conftest.$ac_ext
 
6688
cat >>conftest.$ac_ext <<_ACEOF
 
6689
/* end confdefs.h.  */
 
6690
 
 
6691
int
 
6692
main ()
 
6693
{
 
6694
 
 
6695
  ;
 
6696
  return 0;
 
6697
}
 
6698
_ACEOF
 
6699
rm -f conftest.$ac_objext conftest$ac_exeext
 
6700
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6701
  (eval $ac_link) 2>conftest.er1
 
6702
  ac_status=$?
 
6703
  grep -v '^ *+' conftest.er1 >conftest.err
 
6704
  rm -f conftest.er1
 
6705
  cat conftest.err >&5
 
6706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6707
  (exit $ac_status); } &&
 
6708
         { ac_try='test -z "$ac_c_werror_flag"
 
6709
                         || test ! -s conftest.err'
 
6710
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6711
  (eval $ac_try) 2>&5
 
6712
  ac_status=$?
 
6713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6714
  (exit $ac_status); }; } &&
 
6715
         { ac_try='test -s conftest$ac_exeext'
 
6716
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6717
  (eval $ac_try) 2>&5
 
6718
  ac_status=$?
 
6719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6720
  (exit $ac_status); }; }; then
 
6721
 
 
6722
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6723
}'`
 
6724
# Check for a 64-bit object if we didn't find anything.
 
6725
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6726
}'`; fi
 
6727
else
 
6728
  echo "$as_me: failed program was:" >&5
 
6729
sed 's/^/| /' conftest.$ac_ext >&5
 
6730
 
 
6731
fi
 
6732
rm -f conftest.err conftest.$ac_objext \
 
6733
      conftest$ac_exeext conftest.$ac_ext
 
6734
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
6735
 
 
6736
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6737
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
6738
      else
 
6739
        if test "$host_cpu" = ia64; then
 
6740
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
6741
          allow_undefined_flag="-z nodefs"
 
6742
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
6743
        else
 
6744
         # Determine the default libpath from the value encoded in an
 
6745
         # empty executable.
 
6746
         cat >conftest.$ac_ext <<_ACEOF
 
6747
/* confdefs.h.  */
 
6748
_ACEOF
 
6749
cat confdefs.h >>conftest.$ac_ext
 
6750
cat >>conftest.$ac_ext <<_ACEOF
 
6751
/* end confdefs.h.  */
 
6752
 
 
6753
int
 
6754
main ()
 
6755
{
 
6756
 
 
6757
  ;
 
6758
  return 0;
 
6759
}
 
6760
_ACEOF
 
6761
rm -f conftest.$ac_objext conftest$ac_exeext
 
6762
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6763
  (eval $ac_link) 2>conftest.er1
 
6764
  ac_status=$?
 
6765
  grep -v '^ *+' conftest.er1 >conftest.err
 
6766
  rm -f conftest.er1
 
6767
  cat conftest.err >&5
 
6768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6769
  (exit $ac_status); } &&
 
6770
         { ac_try='test -z "$ac_c_werror_flag"
 
6771
                         || test ! -s conftest.err'
 
6772
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6773
  (eval $ac_try) 2>&5
 
6774
  ac_status=$?
 
6775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6776
  (exit $ac_status); }; } &&
 
6777
         { ac_try='test -s conftest$ac_exeext'
 
6778
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6779
  (eval $ac_try) 2>&5
 
6780
  ac_status=$?
 
6781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6782
  (exit $ac_status); }; }; then
 
6783
 
 
6784
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6785
}'`
 
6786
# Check for a 64-bit object if we didn't find anything.
 
6787
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6788
}'`; fi
 
6789
else
 
6790
  echo "$as_me: failed program was:" >&5
 
6791
sed 's/^/| /' conftest.$ac_ext >&5
 
6792
 
 
6793
fi
 
6794
rm -f conftest.err conftest.$ac_objext \
 
6795
      conftest$ac_exeext conftest.$ac_ext
 
6796
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
6797
 
 
6798
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6799
          # Warning - without using the other run time loading flags,
 
6800
          # -berok will link without error, but may produce a broken library.
 
6801
          no_undefined_flag=' ${wl}-bernotok'
 
6802
          allow_undefined_flag=' ${wl}-berok'
 
6803
          # -bexpall does not export symbols beginning with underscore (_)
 
6804
          always_export_symbols=yes
 
6805
          # Exported symbols can be pulled into shared objects from archives
 
6806
          whole_archive_flag_spec=' '
 
6807
          archive_cmds_need_lc=yes
 
6808
          # This is similar to how AIX traditionally builds it's shared libraries.
 
6809
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
6810
        fi
 
6811
      fi
 
6812
      ;;
 
6813
 
 
6814
    amigaos*)
 
6815
      if test "$host_cpu" = m68k; then
 
6816
        archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
6817
        hardcode_libdir_flag_spec='-L$libdir'
 
6818
        hardcode_minus_L=yes
 
6819
      fi
 
6820
      # see comment about different semantics on the GNU ld section
 
6821
      ld_shlibs=no
 
6822
      ;;
 
6823
 
 
6824
    bsdi[45]*)
 
6825
      export_dynamic_flag_spec=-rdynamic
 
6826
      ;;
 
6827
 
 
6828
    cygwin* | mingw* | pw32*)
 
6829
      # When not using gcc, we currently assume that we are using
 
6830
      # Microsoft Visual C++.
 
6831
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6832
      # no search path for DLLs.
 
6833
      hardcode_libdir_flag_spec=' '
 
6834
      allow_undefined_flag=unsupported
 
6835
      # Tell ltmain to make .lib files, not .a files.
 
6836
      libext=lib
 
6837
      # Tell ltmain to make .dll files, not .so files.
 
6838
      shrext_cmds=".dll"
 
6839
      # FIXME: Setting linknames here is a bad hack.
 
6840
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
6841
      # The linker will automatically build a .lib file if we build a DLL.
 
6842
      old_archive_from_new_cmds='true'
 
6843
      # FIXME: Should let the user specify the lib program.
 
6844
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6845
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
6846
      enable_shared_with_static_runtimes=yes
 
6847
      ;;
 
6848
 
 
6849
    darwin* | rhapsody*)
 
6850
      case "$host_os" in
 
6851
        rhapsody* | darwin1.[012])
 
6852
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
6853
         ;;
 
6854
       *) # Darwin 1.3 on
 
6855
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
6856
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6857
         else
 
6858
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
6859
             10.[012])
 
6860
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6861
               ;;
 
6862
             10.*)
 
6863
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
6864
               ;;
 
6865
           esac
 
6866
         fi
 
6867
         ;;
 
6868
      esac
 
6869
      archive_cmds_need_lc=no
 
6870
      hardcode_direct=no
 
6871
      hardcode_automatic=yes
 
6872
      hardcode_shlibpath_var=unsupported
 
6873
      whole_archive_flag_spec=''
 
6874
      link_all_deplibs=yes
 
6875
    if test "$GCC" = yes ; then
 
6876
        output_verbose_link_cmd='echo'
 
6877
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
6878
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6879
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
6880
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6881
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6882
    else
 
6883
      case "$cc_basename" in
 
6884
        xlc*)
 
6885
         output_verbose_link_cmd='echo'
 
6886
          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
6887
          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6888
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
6889
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6890
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6891
          ;;
 
6892
       *)
 
6893
         ld_shlibs=no
 
6894
          ;;
 
6895
      esac
 
6896
    fi
 
6897
      ;;
 
6898
    dgux*)
 
6899
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6900
      hardcode_libdir_flag_spec='-L$libdir'
 
6901
      hardcode_shlibpath_var=no
 
6902
      ;;
 
6903
 
 
6904
    freebsd1*)
 
6905
      ld_shlibs=no
 
6906
      ;;
 
6907
 
 
6908
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
6909
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
6910
    # does not break anything, and helps significantly (at the cost of a little
 
6911
    # extra space).
 
6912
    freebsd2.2*)
 
6913
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
6914
      hardcode_libdir_flag_spec='-R$libdir'
 
6915
      hardcode_direct=yes
 
6916
      hardcode_shlibpath_var=no
 
6917
      ;;
 
6918
 
 
6919
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
6920
    freebsd2*)
 
6921
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6922
      hardcode_direct=yes
 
6923
      hardcode_minus_L=yes
 
6924
      hardcode_shlibpath_var=no
 
6925
      ;;
 
6926
 
 
6927
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
6928
    freebsd* | kfreebsd*-gnu)
 
6929
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6930
      hardcode_libdir_flag_spec='-R$libdir'
 
6931
      hardcode_direct=yes
 
6932
      hardcode_shlibpath_var=no
 
6933
      ;;
 
6934
 
 
6935
    hpux9*)
 
6936
      if test "$GCC" = yes; then
 
6937
        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
6938
      else
 
6939
        archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
6940
      fi
 
6941
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6942
      hardcode_libdir_separator=:
 
6943
      hardcode_direct=yes
 
6944
 
 
6945
      # hardcode_minus_L: Not really in the search PATH,
 
6946
      # but as the default location of the library.
 
6947
      hardcode_minus_L=yes
 
6948
      export_dynamic_flag_spec='${wl}-E'
 
6949
      ;;
 
6950
 
 
6951
    hpux10*)
 
6952
     if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6953
       archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6954
     else
 
6955
       archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6956
     fi
 
6957
     if test "$with_gnu_ld" = no; then
 
6958
       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6959
       hardcode_libdir_flag_spec_ld='+b $libdir'
 
6960
       hardcode_libdir_separator=:
 
6961
       hardcode_direct=yes
 
6962
       export_dynamic_flag_spec='${wl}-E'
 
6963
       # hardcode_minus_L: Not really in the search PATH,
 
6964
       # but as the default location of the library.
 
6965
       hardcode_minus_L=yes
 
6966
     fi
 
6967
     ;;
 
6968
 
 
6969
     hpux11*)
 
6970
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6971
        case "$host_cpu" in
 
6972
        hppa*64*|ia64*)
 
6973
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6974
          ;;
 
6975
        *)
 
6976
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6977
          ;;
 
6978
        esac
 
6979
      else
 
6980
        case "$host_cpu" in
 
6981
        hppa*64*|ia64*)
 
6982
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6983
          ;;
 
6984
        *)
 
6985
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6986
          ;;
 
6987
        esac
 
6988
      fi
 
6989
      if test "$with_gnu_ld" = no; then
 
6990
        case "$host_cpu" in
 
6991
        hppa*64*)
 
6992
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6993
          hardcode_libdir_separator=:
 
6994
          hardcode_direct=no
 
6995
          hardcode_shlibpath_var=no
 
6996
          ;;
 
6997
        ia64*)
 
6998
          hardcode_libdir_flag_spec='-L$libdir'
 
6999
          hardcode_direct=no
 
7000
          hardcode_shlibpath_var=no
 
7001
 
 
7002
          # hardcode_minus_L: Not really in the search PATH,
 
7003
          # but as the default location of the library.
 
7004
          hardcode_minus_L=yes
 
7005
          ;;
 
7006
        *)
 
7007
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7008
          hardcode_libdir_separator=:
 
7009
          hardcode_direct=yes
 
7010
          export_dynamic_flag_spec='${wl}-E'
 
7011
 
 
7012
          # hardcode_minus_L: Not really in the search PATH,
 
7013
          # but as the default location of the library.
 
7014
          hardcode_minus_L=yes
 
7015
          ;;
 
7016
        esac
 
7017
      fi
 
7018
      ;;
 
7019
 
 
7020
    irix5* | irix6* | nonstopux*)
 
7021
      if test "$GCC" = yes; then
 
7022
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7023
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
7024
      else
 
7025
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
7026
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
7027
      fi
 
7028
      archive_cmds_need_lc='no'
 
7029
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7030
      hardcode_libdir_separator=:
 
7031
      inherit_rpath=yes
 
7032
      link_all_deplibs=yes
 
7033
      ;;
 
7034
 
 
7035
    netbsd*)
 
7036
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
7037
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
7038
      else
 
7039
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
7040
      fi
 
7041
      hardcode_libdir_flag_spec='-R$libdir'
 
7042
      hardcode_direct=yes
 
7043
      hardcode_shlibpath_var=no
 
7044
      ;;
 
7045
 
 
7046
    newsos6)
 
7047
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7048
      hardcode_direct=yes
 
7049
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7050
      hardcode_libdir_separator=:
 
7051
      hardcode_shlibpath_var=no
 
7052
      ;;
 
7053
 
 
7054
    *nto* | *qnx*)
 
7055
      ;;
 
7056
 
 
7057
    openbsd*)
 
7058
      hardcode_direct=yes
 
7059
      hardcode_shlibpath_var=no
 
7060
      if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7061
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7062
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
7063
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7064
        export_dynamic_flag_spec='${wl}-E'
 
7065
      else
 
7066
       case $host_os in
 
7067
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
7068
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7069
           hardcode_libdir_flag_spec='-R$libdir'
 
7070
           ;;
 
7071
         *)
 
7072
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7073
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7074
           ;;
 
7075
       esac
 
7076
      fi
 
7077
      ;;
 
7078
 
 
7079
    os2*)
 
7080
      hardcode_libdir_flag_spec='-L$libdir'
 
7081
      hardcode_minus_L=yes
 
7082
      allow_undefined_flag=unsupported
 
7083
      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
7084
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7085
      ;;
 
7086
 
 
7087
    osf3*)
 
7088
      if test "$GCC" = yes; then
 
7089
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7090
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7091
      else
 
7092
        allow_undefined_flag=' -expect_unresolved \*'
 
7093
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
7094
      fi
 
7095
      archive_cmds_need_lc='no'
 
7096
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7097
      hardcode_libdir_separator=:
 
7098
      ;;
 
7099
 
 
7100
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
7101
      if test "$GCC" = yes; then
 
7102
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7103
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7104
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7105
      else
 
7106
        allow_undefined_flag=' -expect_unresolved \*'
 
7107
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
7108
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7109
        $CC -shared${allow_undefined_flag} -input $lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
7110
 
 
7111
        # Both c and cxx compiler support -rpath directly
 
7112
        hardcode_libdir_flag_spec='-rpath $libdir'
 
7113
      fi
 
7114
      archive_cmds_need_lc='no'
 
7115
      hardcode_libdir_separator=:
 
7116
      ;;
 
7117
 
 
7118
    sco3.2v5*)
 
7119
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7120
      hardcode_shlibpath_var=no
 
7121
      export_dynamic_flag_spec='${wl}-Bexport'
 
7122
      runpath_var=LD_RUN_PATH
 
7123
      hardcode_runpath_var=yes
 
7124
      ;;
 
7125
 
 
7126
    solaris*)
 
7127
      no_undefined_flag=' -z text'
 
7128
      if test "$GCC" = yes; then
 
7129
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7130
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7131
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
7132
      else
 
7133
        case `$CC -V 2>&1` in
 
7134
        *"Compilers 5.0"*)
 
7135
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7136
          archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7137
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7138
          ;;
 
7139
        *)
 
7140
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7141
          archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7142
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
7143
          ;;
 
7144
        esac
 
7145
      fi
 
7146
      hardcode_libdir_flag_spec='-R$libdir'
 
7147
      hardcode_shlibpath_var=no
 
7148
      case $host_os in
 
7149
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
7150
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7151
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7152
      esac
 
7153
      link_all_deplibs=yes
 
7154
      ;;
 
7155
 
 
7156
    sunos4*)
 
7157
      if test "x$host_vendor" = xsequent; then
 
7158
        # Use $CC to link under sequent, because it throws in some extra .o
 
7159
        # files that make .init and .fini sections work.
 
7160
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7161
      else
 
7162
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7163
      fi
 
7164
      hardcode_libdir_flag_spec='-L$libdir'
 
7165
      hardcode_direct=yes
 
7166
      hardcode_minus_L=yes
 
7167
      hardcode_shlibpath_var=no
 
7168
      ;;
 
7169
 
 
7170
    sysv4)
 
7171
      case $host_vendor in
 
7172
        sni)
 
7173
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7174
          hardcode_direct=yes # is this really true???
 
7175
        ;;
 
7176
        siemens)
 
7177
          ## LD is ld it makes a PLAMLIB
 
7178
          ## CC just makes a GrossModule.
 
7179
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7180
          reload_cmds='$CC -r -o $output$reload_objs'
 
7181
          hardcode_direct=no
 
7182
        ;;
 
7183
        motorola)
 
7184
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7185
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
7186
        ;;
 
7187
      esac
 
7188
      runpath_var='LD_RUN_PATH'
 
7189
      hardcode_shlibpath_var=no
 
7190
      ;;
 
7191
 
 
7192
    sysv4.3*)
 
7193
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7194
      hardcode_shlibpath_var=no
 
7195
      export_dynamic_flag_spec='-Bexport'
 
7196
      ;;
 
7197
 
 
7198
    sysv4*MP*)
 
7199
      if test -d /usr/nec; then
 
7200
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7201
        hardcode_shlibpath_var=no
 
7202
        runpath_var=LD_RUN_PATH
 
7203
        hardcode_runpath_var=yes
 
7204
        ld_shlibs=yes
 
7205
      fi
 
7206
      ;;
 
7207
 
 
7208
    sysv4.2uw2*)
 
7209
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7210
      hardcode_direct=yes
 
7211
      hardcode_minus_L=no
 
7212
      hardcode_shlibpath_var=no
 
7213
      hardcode_runpath_var=yes
 
7214
      runpath_var=LD_RUN_PATH
 
7215
      ;;
 
7216
 
 
7217
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
7218
      no_undefined_flag='${wl}-z ${wl}text'
 
7219
      if test "$GCC" = yes; then
 
7220
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7221
      else
 
7222
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7223
      fi
 
7224
      runpath_var='LD_RUN_PATH'
 
7225
      hardcode_shlibpath_var=no
 
7226
      ;;
 
7227
 
 
7228
    sysv5*)
 
7229
      no_undefined_flag=' -z text'
 
7230
      # $CC -shared without GNU ld will not create a library from C++
 
7231
      # object files and a static libstdc++, better avoid it by now
 
7232
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7233
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7234
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7235
      hardcode_libdir_flag_spec=
 
7236
      hardcode_shlibpath_var=no
 
7237
      runpath_var='LD_RUN_PATH'
 
7238
      ;;
 
7239
 
 
7240
    uts4*)
 
7241
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7242
      hardcode_libdir_flag_spec='-L$libdir'
 
7243
      hardcode_shlibpath_var=no
 
7244
      ;;
 
7245
 
 
7246
    *)
 
7247
      ld_shlibs=no
 
7248
      ;;
 
7249
    esac
 
7250
 
 
7251
    if test x$host_vendor = xsni; then
 
7252
      case $host in
 
7253
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7254
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
7255
        ;;
 
7256
      esac
 
7257
    fi
 
7258
  fi
 
7259
 
 
7260
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
7261
echo "${ECHO_T}$ld_shlibs" >&6
 
7262
test "$ld_shlibs" = no && can_build_shared=no
 
7263
 
 
7264
 
 
7265
 
 
7266
 
 
7267
 
 
7268
 
 
7269
 
 
7270
 
 
7271
 
 
7272
 
 
7273
 
 
7274
 
 
7275
 
 
7276
 
 
7277
 
 
7278
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
7279
if test "$GCC" = yes; then
 
7280
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7281
fi
 
7282
 
 
7283
 
 
7284
 
 
7285
 
 
7286
 
 
7287
 
 
7288
#
 
7289
# Do we need to explicitly link libc?
 
7290
#
 
7291
case "x$archive_cmds_need_lc" in
 
7292
x|xyes)
 
7293
  # Assume -lc should be added
 
7294
  archive_cmds_need_lc=yes
 
7295
 
 
7296
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7297
    case $archive_cmds in
 
7298
    *'~'*)
 
7299
      # FIXME: we may have to deal with multi-command sequences.
 
7300
      ;;
 
7301
    '$CC '*)
 
7302
      # Test whether the compiler implicitly links with -lc since on some
 
7303
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7304
      # to ld, don't add -lc before -lgcc.
 
7305
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
7306
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7307
      $rm conftest*
 
7308
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7309
 
 
7310
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7311
  (eval $ac_compile) 2>&5
 
7312
  ac_status=$?
 
7313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7314
  (exit $ac_status); } 2>conftest.err; then
 
7315
        soname=conftest
 
7316
        lib=conftest
 
7317
        libobjs=conftest.$ac_objext
 
7318
        deplibs=
 
7319
        wl=$lt_prog_compiler_wl
 
7320
        compiler_flags=-v
 
7321
        linker_flags=-v
 
7322
        verstring=
 
7323
        output_objdir=.
 
7324
        libname=conftest
 
7325
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
7326
        allow_undefined_flag=
 
7327
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7328
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7329
  ac_status=$?
 
7330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7331
  (exit $ac_status); }
 
7332
        then
 
7333
          archive_cmds_need_lc=no
 
7334
        else
 
7335
          archive_cmds_need_lc=yes
 
7336
        fi
 
7337
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
7338
      else
 
7339
        cat conftest.err 1>&5
 
7340
      fi
 
7341
      $rm conftest*
 
7342
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
7343
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
7344
      ;;
 
7345
    esac
 
7346
  fi
 
7347
  ;;
 
7348
esac
 
7349
 
 
7350
 
 
7351
 
 
7352
 
 
7353
 
 
7354
 
 
7355
 
 
7356
 
 
7357
 
 
7358
 
 
7359
 
 
7360
 
 
7361
 
 
7362
 
 
7363
 
 
7364
 
 
7365
 
 
7366
 
 
7367
 
 
7368
 
 
7369
 
 
7370
 
 
7371
 
 
7372
 
 
7373
 
 
7374
 
 
7375
 
 
7376
 
 
7377
 
 
7378
 
 
7379
 
 
7380
 
 
7381
 
 
7382
 
 
7383
 
 
7384
 
 
7385
 
 
7386
 
 
7387
 
 
7388
 
 
7389
 
 
7390
 
 
7391
 
 
7392
 
 
7393
 
 
7394
 
 
7395
 
 
7396
 
 
7397
 
 
7398
 
 
7399
 
 
7400
 
 
7401
 
 
7402
 
 
7403
 
 
7404
 
 
7405
 
 
7406
 
 
7407
 
 
7408
 
 
7409
 
 
7410
 
 
7411
 
 
7412
 
 
7413
 
 
7414
 
 
7415
 
 
7416
 
 
7417
 
 
7418
 
 
7419
 
 
7420
 
 
7421
 
 
7422
 
 
7423
 
 
7424
 
 
7425
 
 
7426
 
 
7427
 
 
7428
 
 
7429
 
 
7430
 
 
7431
 
 
7432
 
 
7433
 
 
7434
 
 
7435
 
 
7436
 
 
7437
 
 
7438
 
 
7439
 
 
7440
 
 
7441
 
 
7442
 
 
7443
 
 
7444
 
 
7445
 
 
7446
 
 
7447
 
 
7448
 
 
7449
 
 
7450
 
 
7451
 
 
7452
 
 
7453
 
 
7454
 
 
7455
 
 
7456
 
 
7457
 
 
7458
 
 
7459
 
 
7460
 
 
7461
 
 
7462
 
 
7463
 
 
7464
 
 
7465
 
 
7466
 
 
7467
 
 
7468
 
 
7469
 
 
7470
 
 
7471
 
 
7472
 
 
7473
 
 
7474
 
 
7475
 
 
7476
 
 
7477
 
 
7478
 
 
7479
 
 
7480
 
 
7481
 
 
7482
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
7483
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
7484
withGCC=$GCC
 
7485
library_names_spec=
 
7486
libname_spec='lib$name'
 
7487
soname_spec=
 
7488
shrext_cmds=".so"
 
7489
postinstall_cmds=
 
7490
postuninstall_cmds=
 
7491
finish_cmds=
 
7492
finish_eval=
 
7493
shlibpath_var=
 
7494
shlibpath_overrides_runpath=unknown
 
7495
version_type=none
 
7496
dynamic_linker="$host_os ld.so"
 
7497
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
7498
if test "$withGCC" = yes; then
 
7499
  sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7500
  if echo "$sys_lib_search_path_spec" | $GREP ';' >/dev/null ; then
 
7501
    # if the path contains ";" then we assume it to be the separator
 
7502
    # otherwise default to the standard path separator (i.e. ":") - it is
 
7503
    # assumed that no part of a normal pathname contains ";" but that should
 
7504
    # okay in the real world where ";" in dirpaths is itself problematic.
 
7505
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7506
  else
 
7507
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7508
  fi
 
7509
else
 
7510
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
7511
fi
 
7512
need_lib_prefix=unknown
 
7513
hardcode_into_libs=no
 
7514
 
 
7515
# when you set need_version to no, make sure it does not cause -set_version
 
7516
# flags to be left without arguments
 
7517
need_version=unknown
 
7518
 
 
7519
case $host_os in
 
7520
aix3*)
 
7521
  version_type=linux
 
7522
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
7523
  shlibpath_var=LIBPATH
 
7524
 
 
7525
  # AIX 3 has no versioning support, so we append a major version to the name.
 
7526
  soname_spec='${libname}${release}${shared_ext}$major'
 
7527
  ;;
 
7528
 
 
7529
aix4* | aix5*)
 
7530
  version_type=linux
 
7531
  need_lib_prefix=no
 
7532
  need_version=no
 
7533
  hardcode_into_libs=yes
 
7534
  if test "$host_cpu" = ia64; then
 
7535
    # AIX 5 supports IA64
 
7536
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
7537
    shlibpath_var=LD_LIBRARY_PATH
 
7538
  else
 
7539
    # With GCC up to 2.95.x, collect2 would create an import file
 
7540
    # for dependence libraries.  The import file would start with
 
7541
    # the line `#! .'.  This would cause the generated library to
 
7542
    # depend on `.', always an invalid library.  This was fixed in
 
7543
    # development snapshots of GCC prior to 3.0.
 
7544
    case $host_os in
 
7545
      aix4 | aix4.[01] | aix4.[01].*)
 
7546
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
7547
           echo ' yes '
 
7548
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
7549
        :
 
7550
      else
 
7551
        can_build_shared=no
 
7552
      fi
 
7553
      ;;
 
7554
    esac
 
7555
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
7556
    # soname into executable. Probably we can add versioning support to
 
7557
    # collect2, so additional links can be useful in future.
 
7558
    if test "$aix_use_runtimelinking" = yes; then
 
7559
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
7560
      # instead of lib<name>.a to let people know that these are not
 
7561
      # typical AIX shared libraries.
 
7562
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7563
    else
 
7564
      # We preserve .a as extension for shared libraries through AIX4.2
 
7565
      # and later when we are not doing run time linking.
 
7566
      library_names_spec='${libname}${release}.a $libname.a'
 
7567
      soname_spec='${libname}${release}${shared_ext}$major'
 
7568
    fi
 
7569
    shlibpath_var=LIBPATH
 
7570
  fi
 
7571
  ;;
 
7572
 
 
7573
amigaos*)
 
7574
  if test "$host_cpu" = m68k; then
 
7575
    library_names_spec='$libname.ixlibrary $libname.a'
 
7576
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
7577
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
7578
  else
 
7579
    dynamic_linker=no
 
7580
  fi
 
7581
  ;;
 
7582
 
 
7583
beos*)
 
7584
  library_names_spec='${libname}${shared_ext}'
 
7585
  dynamic_linker="$host_os ld.so"
 
7586
  shlibpath_var=LIBRARY_PATH
 
7587
  ;;
 
7588
 
 
7589
bsdi[45]*)
 
7590
  version_type=linux
 
7591
  need_version=no
 
7592
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7593
  soname_spec='${libname}${release}${shared_ext}$major'
 
7594
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
7595
  shlibpath_var=LD_LIBRARY_PATH
 
7596
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
7597
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
7598
  # the default ld.so.conf also contains /usr/contrib/lib and
 
7599
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
7600
  # libtool to hard-code these into programs
 
7601
  ;;
 
7602
 
 
7603
cygwin* | mingw* | pw32*)
 
7604
  version_type=windows
 
7605
  shrext_cmds=".dll"
 
7606
  need_version=no
 
7607
  need_lib_prefix=no
 
7608
 
 
7609
  case $withGCC,$host_os in
 
7610
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
7611
    library_names_spec='$libname.dll.a'
 
7612
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
7613
    postinstall_cmds='base_file=`basename \${file}`~
 
7614
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
7615
      dldir=$destdir/`dirname \$dlpath`~
 
7616
      test -d \$dldir || mkdir -p \$dldir~
 
7617
      $install_prog $dir/$dlname \$dldir/$dlname'
 
7618
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
7619
      dlpath=$dir/\$dldll~
 
7620
       $rm \$dlpath'
 
7621
    shlibpath_overrides_runpath=yes
 
7622
 
 
7623
    case $host_os in
 
7624
    cygwin*)
 
7625
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
7626
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7627
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
7628
      ;;
 
7629
    mingw*)
 
7630
      # MinGW DLLs use traditional 'lib' prefix
 
7631
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7632
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7633
      if echo "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
7634
        # It is most probably a Windows format PATH printed by
 
7635
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
7636
        # path with ; separators, and with drive letters. We can handle the
 
7637
        # drive letters (cygwin fileutils understands them), so leave them,
 
7638
        # especially as we might pass files found there to a mingw objdump,
 
7639
        # which wouldn't understand a cygwinified path. Ahh.
 
7640
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7641
      else
 
7642
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7643
      fi
 
7644
      ;;
 
7645
    pw32*)
 
7646
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
7647
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
7648
      ;;
 
7649
    esac
 
7650
    ;;
 
7651
 
 
7652
  *)
 
7653
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
7654
    ;;
 
7655
  esac
 
7656
  dynamic_linker='Win32 ld.exe'
 
7657
  # FIXME: first we should search . and the directory the executable is in
 
7658
  shlibpath_var=PATH
 
7659
  ;;
 
7660
 
 
7661
darwin* | rhapsody*)
 
7662
  dynamic_linker="$host_os dyld"
 
7663
  version_type=darwin
 
7664
  need_lib_prefix=no
 
7665
  need_version=no
 
7666
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
7667
  soname_spec='${libname}${release}${major}$shared_ext'
 
7668
  shlibpath_overrides_runpath=yes
 
7669
  shlibpath_var=DYLD_LIBRARY_PATH
 
7670
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
7671
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
7672
  if test "$withGCC" = yes; then
 
7673
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | $GREP "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
7674
  else
 
7675
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
7676
  fi
 
7677
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
7678
  ;;
 
7679
 
 
7680
dgux*)
 
7681
  version_type=linux
 
7682
  need_lib_prefix=no
 
7683
  need_version=no
 
7684
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
7685
  soname_spec='${libname}${release}${shared_ext}$major'
 
7686
  shlibpath_var=LD_LIBRARY_PATH
 
7687
  ;;
 
7688
 
 
7689
freebsd1*)
 
7690
  dynamic_linker=no
 
7691
  ;;
 
7692
 
 
7693
kfreebsd*-gnu)
 
7694
  version_type=linux
 
7695
  need_lib_prefix=no
 
7696
  need_version=no
 
7697
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7698
  soname_spec='${libname}${release}${shared_ext}$major'
 
7699
  shlibpath_var=LD_LIBRARY_PATH
 
7700
  shlibpath_overrides_runpath=no
 
7701
  hardcode_into_libs=yes
 
7702
  dynamic_linker='GNU ld.so'
 
7703
  ;;
 
7704
 
 
7705
freebsd*)
 
7706
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
7707
  version_type=freebsd-$objformat
 
7708
  case $version_type in
 
7709
    freebsd-elf*)
 
7710
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7711
      need_version=no
 
7712
      need_lib_prefix=no
 
7713
      ;;
 
7714
    freebsd-*)
 
7715
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
7716
      need_version=yes
 
7717
      ;;
 
7718
  esac
 
7719
  shlibpath_var=LD_LIBRARY_PATH
 
7720
  case $host_os in
 
7721
  freebsd2*)
 
7722
    shlibpath_overrides_runpath=yes
 
7723
    ;;
 
7724
  freebsd3.01* | freebsdelf3.01*)
 
7725
    shlibpath_overrides_runpath=yes
 
7726
    hardcode_into_libs=yes
 
7727
    ;;
 
7728
  *) # from 3.2 on
 
7729
    shlibpath_overrides_runpath=no
 
7730
    hardcode_into_libs=yes
 
7731
    ;;
 
7732
  esac
 
7733
  ;;
 
7734
 
 
7735
gnu*)
 
7736
  version_type=linux
 
7737
  need_lib_prefix=no
 
7738
  need_version=no
 
7739
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
7740
  soname_spec='${libname}${release}${shared_ext}$major'
 
7741
  shlibpath_var=LD_LIBRARY_PATH
 
7742
  hardcode_into_libs=yes
 
7743
  ;;
 
7744
 
 
7745
hpux9* | hpux10* | hpux11*)
 
7746
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
7747
  # link against other versions.
 
7748
  version_type=sunos
 
7749
  need_lib_prefix=no
 
7750
  need_version=no
 
7751
  case "$host_cpu" in
 
7752
  ia64*)
 
7753
    shrext_cmds='.so'
 
7754
    hardcode_into_libs=yes
 
7755
    dynamic_linker="$host_os dld.so"
 
7756
    shlibpath_var=LD_LIBRARY_PATH
 
7757
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7758
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7759
    soname_spec='${libname}${release}${shared_ext}$major'
 
7760
    if test "X$HPUX_IA64_MODE" = X32; then
 
7761
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
7762
    else
 
7763
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
7764
    fi
 
7765
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7766
    ;;
 
7767
   hppa*64*)
 
7768
     shrext_cmds='.sl'
 
7769
     hardcode_into_libs=yes
 
7770
     dynamic_linker="$host_os dld.sl"
 
7771
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
7772
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7773
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7774
     soname_spec='${libname}${release}${shared_ext}$major'
 
7775
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
7776
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7777
     ;;
 
7778
   *)
 
7779
    shrext_cmds='.sl'
 
7780
    dynamic_linker="$host_os dld.sl"
 
7781
    shlibpath_var=SHLIB_PATH
 
7782
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
7783
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7784
    soname_spec='${libname}${release}${shared_ext}$major'
 
7785
    ;;
 
7786
  esac
 
7787
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
7788
  postinstall_cmds='chmod 555 $lib'
 
7789
  ;;
 
7790
 
 
7791
irix5* | irix6* | nonstopux*)
 
7792
  case $host_os in
 
7793
    nonstopux*) version_type=nonstopux ;;
 
7794
    *)
 
7795
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
7796
                version_type=linux
 
7797
        else
 
7798
                version_type=irix
 
7799
        fi ;;
 
7800
  esac
 
7801
  need_lib_prefix=no
 
7802
  need_version=no
 
7803
  soname_spec='${libname}${release}${shared_ext}$major'
 
7804
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7805
  case $host_os in
 
7806
  irix5* | nonstopux*)
 
7807
    libsuff= shlibsuff=
 
7808
    ;;
 
7809
  *)
 
7810
    case $LD in # libtool.m4 will add one of these switches to LD
 
7811
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
7812
      libsuff= shlibsuff= libmagic=32-bit;;
 
7813
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
7814
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
7815
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
7816
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
7817
    *) libsuff= shlibsuff= libmagic=never-match;;
 
7818
    esac
 
7819
    ;;
 
7820
  esac
 
7821
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
7822
  shlibpath_overrides_runpath=no
 
7823
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
7824
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
7825
  hardcode_into_libs=yes
 
7826
  ;;
 
7827
 
 
7828
# No shared lib support for Linux oldld, aout, or coff.
 
7829
linux*oldld* | linux*aout* | linux*coff*)
 
7830
  dynamic_linker=no
 
7831
  ;;
 
7832
 
 
7833
# This must be Linux ELF.
 
7834
linux*)
 
7835
  version_type=linux
 
7836
  need_lib_prefix=no
 
7837
  need_version=no
 
7838
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7839
  soname_spec='${libname}${release}${shared_ext}$major'
 
7840
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
7841
  shlibpath_var=LD_LIBRARY_PATH
 
7842
  shlibpath_overrides_runpath=no
 
7843
  # This implies no fast_install, which is unacceptable.
 
7844
  # Some rework will be needed to allow for fast_install
 
7845
  # before this can be enabled.
 
7846
  hardcode_into_libs=yes
 
7847
 
 
7848
  # Append ld.so.conf contents to the search path
 
7849
  if test -f /etc/ld.so.conf; then
 
7850
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
7851
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
7852
  fi
 
7853
 
 
7854
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
7855
  # powerpc, because MkLinux only supported shared libraries with the
 
7856
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
7857
  # most powerpc-linux boxes support dynamic linking these days and
 
7858
  # people can always --disable-shared, the test was removed, and we
 
7859
  # assume the GNU/Linux dynamic linker is in use.
 
7860
  dynamic_linker='GNU/Linux ld.so'
 
7861
  ;;
 
7862
 
 
7863
knetbsd*-gnu)
 
7864
  version_type=linux
 
7865
  need_lib_prefix=no
 
7866
  need_version=no
 
7867
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7868
  soname_spec='${libname}${release}${shared_ext}$major'
 
7869
  shlibpath_var=LD_LIBRARY_PATH
 
7870
  shlibpath_overrides_runpath=no
 
7871
  hardcode_into_libs=yes
 
7872
  dynamic_linker='GNU ld.so'
 
7873
  ;;
 
7874
 
 
7875
netbsd*)
 
7876
  version_type=sunos
 
7877
  need_lib_prefix=no
 
7878
  need_version=no
 
7879
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
7880
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7881
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7882
    dynamic_linker='NetBSD (a.out) ld.so'
 
7883
  else
 
7884
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7885
    soname_spec='${libname}${release}${shared_ext}$major'
 
7886
    dynamic_linker='NetBSD ld.elf_so'
 
7887
  fi
 
7888
  shlibpath_var=LD_LIBRARY_PATH
 
7889
  shlibpath_overrides_runpath=yes
 
7890
  hardcode_into_libs=yes
 
7891
  ;;
 
7892
 
 
7893
newsos6)
 
7894
  version_type=linux
 
7895
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7896
  shlibpath_var=LD_LIBRARY_PATH
 
7897
  shlibpath_overrides_runpath=yes
 
7898
  ;;
 
7899
 
 
7900
*nto* | *qnx*)
 
7901
  version_type=qnx
 
7902
  need_lib_prefix=no
 
7903
  need_version=no
 
7904
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7905
  soname_spec='${libname}${release}${shared_ext}$major'
 
7906
  shlibpath_var=LD_LIBRARY_PATH
 
7907
  shlibpath_overrides_runpath=no
 
7908
  hardcode_into_libs=yes
 
7909
  dynamic_linker='ldqnx.so'
 
7910
  ;;
 
7911
 
 
7912
openbsd*)
 
7913
  version_type=sunos
 
7914
  need_lib_prefix=no
 
7915
  need_version=no
 
7916
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7917
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7918
  shlibpath_var=LD_LIBRARY_PATH
 
7919
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7920
    case $host_os in
 
7921
      openbsd2.[89] | openbsd2.[89].*)
 
7922
        shlibpath_overrides_runpath=no
 
7923
        ;;
 
7924
      *)
 
7925
        shlibpath_overrides_runpath=yes
 
7926
        ;;
 
7927
      esac
 
7928
  else
 
7929
    shlibpath_overrides_runpath=yes
 
7930
  fi
 
7931
  ;;
 
7932
 
 
7933
os2*)
 
7934
  libname_spec='$name'
 
7935
  shrext_cmds=".dll"
 
7936
  need_lib_prefix=no
 
7937
  library_names_spec='$libname${shared_ext} $libname.a'
 
7938
  dynamic_linker='OS/2 ld.exe'
 
7939
  shlibpath_var=LIBPATH
 
7940
  ;;
 
7941
 
 
7942
osf3* | osf4* | osf5*)
 
7943
  version_type=osf
 
7944
  need_lib_prefix=no
 
7945
  need_version=no
 
7946
  soname_spec='${libname}${release}${shared_ext}$major'
 
7947
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7948
  shlibpath_var=LD_LIBRARY_PATH
 
7949
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
7950
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
7951
  ;;
 
7952
 
 
7953
sco3.2v5*)
 
7954
  version_type=osf
 
7955
  soname_spec='${libname}${release}${shared_ext}$major'
 
7956
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7957
  shlibpath_var=LD_LIBRARY_PATH
 
7958
  ;;
 
7959
 
 
7960
solaris*)
 
7961
  version_type=linux
 
7962
  need_lib_prefix=no
 
7963
  need_version=no
 
7964
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7965
  soname_spec='${libname}${release}${shared_ext}$major'
 
7966
  shlibpath_var=LD_LIBRARY_PATH
 
7967
  shlibpath_overrides_runpath=yes
 
7968
  hardcode_into_libs=yes
 
7969
  # ldd complains unless libraries are executable
 
7970
  postinstall_cmds='chmod +x $lib'
 
7971
  ;;
 
7972
 
 
7973
sunos4*)
 
7974
  version_type=sunos
 
7975
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7976
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
7977
  shlibpath_var=LD_LIBRARY_PATH
 
7978
  shlibpath_overrides_runpath=yes
 
7979
  if test "$with_gnu_ld" = yes; then
 
7980
    need_lib_prefix=no
 
7981
  fi
 
7982
  need_version=yes
 
7983
  ;;
 
7984
 
 
7985
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7986
  version_type=linux
 
7987
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7988
  soname_spec='${libname}${release}${shared_ext}$major'
 
7989
  shlibpath_var=LD_LIBRARY_PATH
 
7990
  case $host_vendor in
 
7991
    sni)
 
7992
      shlibpath_overrides_runpath=no
 
7993
      need_lib_prefix=no
 
7994
      runpath_var=LD_RUN_PATH
 
7995
      ;;
 
7996
    siemens)
 
7997
      need_lib_prefix=no
 
7998
      ;;
 
7999
    motorola)
 
8000
      need_lib_prefix=no
 
8001
      need_version=no
 
8002
      shlibpath_overrides_runpath=no
 
8003
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
8004
      ;;
 
8005
  esac
 
8006
  ;;
 
8007
 
 
8008
sysv4*MP*)
 
8009
  if test -d /usr/nec ;then
 
8010
    version_type=linux
 
8011
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
8012
    soname_spec='$libname${shared_ext}.$major'
 
8013
    shlibpath_var=LD_LIBRARY_PATH
 
8014
  fi
 
8015
  ;;
 
8016
 
 
8017
uts4*)
 
8018
  version_type=linux
 
8019
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8020
  soname_spec='${libname}${release}${shared_ext}$major'
 
8021
  shlibpath_var=LD_LIBRARY_PATH
 
8022
  ;;
 
8023
 
 
8024
*)
 
8025
  dynamic_linker=no
 
8026
  ;;
 
8027
esac
 
8028
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8029
echo "${ECHO_T}$dynamic_linker" >&6
 
8030
test "$dynamic_linker" = no && can_build_shared=no
 
8031
 
 
8032
 
 
8033
 
 
8034
 
 
8035
 
 
8036
 
 
8037
 
 
8038
 
 
8039
 
 
8040
 
 
8041
 
 
8042
 
 
8043
 
 
8044
 
 
8045
 
 
8046
 
 
8047
 
 
8048
 
 
8049
 
 
8050
 
 
8051
 
 
8052
 
 
8053
 
 
8054
 
 
8055
 
 
8056
 
 
8057
 
 
8058
 
 
8059
 
 
8060
 
 
8061
 
 
8062
 
 
8063
 
 
8064
 
 
8065
 
 
8066
 
 
8067
 
 
8068
 
 
8069
 
 
8070
 
 
8071
 
 
8072
 
 
8073
 
 
8074
 
 
8075
 
 
8076
 
 
8077
 
 
8078
 
 
8079
 
 
8080
 
 
8081
 
 
8082
 
 
8083
 
 
8084
 
 
8085
 
 
8086
 
 
8087
 
 
8088
 
 
8089
 
 
8090
 
 
8091
 
 
8092
 
 
8093
 
 
8094
 
 
8095
 
 
8096
 
 
8097
 
 
8098
 
 
8099
 
 
8100
 
 
8101
 
 
8102
 
 
8103
 
 
8104
 
 
8105
 
 
8106
 
 
8107
 
 
8108
 
 
8109
 
 
8110
 
 
8111
 
 
8112
  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
8113
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
8114
hardcode_action=
 
8115
if test -n "$hardcode_libdir_flag_spec" ||
 
8116
   test -n "$runpath_var" ||
 
8117
   test "X$hardcode_automatic" = "Xyes" ; then
 
8118
 
 
8119
  # We can hardcode non-existant directories.
 
8120
  if test "$hardcode_direct" != no &&
 
8121
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
8122
     # have to relink, otherwise we might link with an installed library
 
8123
     # when we should be linking with a yet-to-be-installed one
 
8124
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
8125
     test "$hardcode_minus_L" != no; then
 
8126
    # Linking always hardcodes the temporary library directory.
 
8127
    hardcode_action=relink
 
8128
  else
 
8129
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
8130
    hardcode_action=immediate
 
8131
  fi
 
8132
else
 
8133
  # We cannot hardcode anything, or else we can only hardcode existing
 
8134
  # directories.
 
8135
  hardcode_action=unsupported
 
8136
fi
 
8137
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
8138
echo "${ECHO_T}$hardcode_action" >&6
 
8139
 
 
8140
if test "$hardcode_action" = relink ||
 
8141
   test "$inherit_rpath" = yes; then
 
8142
  # Fast installation is not supported
 
8143
  enable_fast_install=no
 
8144
elif test "$shlibpath_overrides_runpath" = yes ||
 
8145
     test "$enable_shared" = no; then
 
8146
  # Fast installation is not necessary
 
8147
  enable_fast_install=needless
 
8148
fi
 
8149
 
 
8150
 
 
8151
 
 
8152
 
 
8153
 
 
8154
 
 
8155
 
 
8156
striplib=
 
8157
old_striplib=
 
8158
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
8159
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
8160
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
8161
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
8162
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
8163
  echo "$as_me:$LINENO: result: yes" >&5
 
8164
echo "${ECHO_T}yes" >&6
 
8165
else
 
8166
# FIXME - insert some real tests, host_os isn't really good enough
 
8167
  case $host_os in
 
8168
   darwin*)
 
8169
       if test -n "$STRIP" ; then
 
8170
         striplib="$STRIP -x"
 
8171
         echo "$as_me:$LINENO: result: yes" >&5
 
8172
echo "${ECHO_T}yes" >&6
 
8173
       else
 
8174
         echo "$as_me:$LINENO: result: no" >&5
 
8175
echo "${ECHO_T}no" >&6
 
8176
       fi
 
8177
       ;;
 
8178
   *)
 
8179
  echo "$as_me:$LINENO: result: no" >&5
 
8180
echo "${ECHO_T}no" >&6
 
8181
    ;;
 
8182
  esac
 
8183
fi
 
8184
 
 
8185
 
 
8186
 
 
8187
 
 
8188
 
 
8189
 
 
8190
 
 
8191
 
 
8192
 
 
8193
 
 
8194
 
 
8195
  if test "x$enable_dlopen" != xyes; then
 
8196
  enable_dlopen=unknown
 
8197
  enable_dlopen_self=unknown
 
8198
  enable_dlopen_self_static=unknown
 
8199
else
 
8200
  lt_cv_dlopen=no
 
8201
  lt_cv_dlopen_libs=
 
8202
 
 
8203
  case $host_os in
 
8204
  beos*)
 
8205
    lt_cv_dlopen="load_add_on"
 
8206
    lt_cv_dlopen_libs=
 
8207
    lt_cv_dlopen_self=yes
 
8208
    ;;
 
8209
 
 
8210
  mingw* | pw32*)
 
8211
    lt_cv_dlopen="LoadLibrary"
 
8212
    lt_cv_dlopen_libs=
 
8213
   ;;
 
8214
 
 
8215
  cygwin*)
 
8216
    lt_cv_dlopen="dlopen"
 
8217
    lt_cv_dlopen_libs=
 
8218
   ;;
 
8219
 
 
8220
  darwin*)
 
8221
  # if libdl is installed we need to link against it
 
8222
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8223
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8224
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8225
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8226
else
 
8227
  ac_check_lib_save_LIBS=$LIBS
 
8228
LIBS="-ldl  $LIBS"
 
8229
cat >conftest.$ac_ext <<_ACEOF
 
8230
/* confdefs.h.  */
 
8231
_ACEOF
 
8232
cat confdefs.h >>conftest.$ac_ext
 
8233
cat >>conftest.$ac_ext <<_ACEOF
 
8234
/* end confdefs.h.  */
 
8235
 
 
8236
/* Override any gcc2 internal prototype to avoid an error.  */
 
8237
#ifdef __cplusplus
 
8238
extern "C"
 
8239
#endif
 
8240
/* We use char because int might match the return type of a gcc2
 
8241
   builtin and then its argument prototype would still apply.  */
 
8242
char dlopen ();
 
8243
int
 
8244
main ()
 
8245
{
 
8246
dlopen ();
 
8247
  ;
 
8248
  return 0;
 
8249
}
 
8250
_ACEOF
 
8251
rm -f conftest.$ac_objext conftest$ac_exeext
 
8252
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8253
  (eval $ac_link) 2>conftest.er1
 
8254
  ac_status=$?
 
8255
  grep -v '^ *+' conftest.er1 >conftest.err
 
8256
  rm -f conftest.er1
 
8257
  cat conftest.err >&5
 
8258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8259
  (exit $ac_status); } &&
 
8260
         { ac_try='test -z "$ac_c_werror_flag"
 
8261
                         || test ! -s conftest.err'
 
8262
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8263
  (eval $ac_try) 2>&5
 
8264
  ac_status=$?
 
8265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8266
  (exit $ac_status); }; } &&
 
8267
         { ac_try='test -s conftest$ac_exeext'
 
8268
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8269
  (eval $ac_try) 2>&5
 
8270
  ac_status=$?
 
8271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8272
  (exit $ac_status); }; }; then
 
8273
  ac_cv_lib_dl_dlopen=yes
 
8274
else
 
8275
  echo "$as_me: failed program was:" >&5
 
8276
sed 's/^/| /' conftest.$ac_ext >&5
 
8277
 
 
8278
ac_cv_lib_dl_dlopen=no
 
8279
fi
 
8280
rm -f conftest.err conftest.$ac_objext \
 
8281
      conftest$ac_exeext conftest.$ac_ext
 
8282
LIBS=$ac_check_lib_save_LIBS
 
8283
fi
 
8284
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8285
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8286
if test $ac_cv_lib_dl_dlopen = yes; then
 
8287
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8288
else
 
8289
 
 
8290
    lt_cv_dlopen="dyld"
 
8291
    lt_cv_dlopen_libs=
 
8292
    lt_cv_dlopen_self=yes
 
8293
 
 
8294
fi
 
8295
 
 
8296
   ;;
 
8297
 
 
8298
  *)
 
8299
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
8300
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
8301
if test "${ac_cv_func_shl_load+set}" = set; then
 
8302
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8303
else
 
8304
  cat >conftest.$ac_ext <<_ACEOF
 
8305
/* confdefs.h.  */
 
8306
_ACEOF
 
8307
cat confdefs.h >>conftest.$ac_ext
 
8308
cat >>conftest.$ac_ext <<_ACEOF
 
8309
/* end confdefs.h.  */
 
8310
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
8311
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8312
#define shl_load innocuous_shl_load
 
8313
 
 
8314
/* System header to define __stub macros and hopefully few prototypes,
 
8315
    which can conflict with char shl_load (); below.
 
8316
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8317
    <limits.h> exists even on freestanding compilers.  */
 
8318
 
 
8319
#ifdef __STDC__
 
8320
# include <limits.h>
 
8321
#else
 
8322
# include <assert.h>
 
8323
#endif
 
8324
 
 
8325
#undef shl_load
 
8326
 
 
8327
/* Override any gcc2 internal prototype to avoid an error.  */
 
8328
#ifdef __cplusplus
 
8329
extern "C"
 
8330
{
 
8331
#endif
 
8332
/* We use char because int might match the return type of a gcc2
 
8333
   builtin and then its argument prototype would still apply.  */
 
8334
char shl_load ();
 
8335
/* The GNU C library defines this for functions which it implements
 
8336
    to always fail with ENOSYS.  Some functions are actually named
 
8337
    something starting with __ and the normal name is an alias.  */
 
8338
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
8339
choke me
 
8340
#else
 
8341
char (*f) () = shl_load;
 
8342
#endif
 
8343
#ifdef __cplusplus
 
8344
}
 
8345
#endif
 
8346
 
 
8347
int
 
8348
main ()
 
8349
{
 
8350
return f != shl_load;
 
8351
  ;
 
8352
  return 0;
 
8353
}
 
8354
_ACEOF
 
8355
rm -f conftest.$ac_objext conftest$ac_exeext
 
8356
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8357
  (eval $ac_link) 2>conftest.er1
 
8358
  ac_status=$?
 
8359
  grep -v '^ *+' conftest.er1 >conftest.err
 
8360
  rm -f conftest.er1
 
8361
  cat conftest.err >&5
 
8362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8363
  (exit $ac_status); } &&
 
8364
         { ac_try='test -z "$ac_c_werror_flag"
 
8365
                         || test ! -s conftest.err'
 
8366
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8367
  (eval $ac_try) 2>&5
 
8368
  ac_status=$?
 
8369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8370
  (exit $ac_status); }; } &&
 
8371
         { ac_try='test -s conftest$ac_exeext'
 
8372
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8373
  (eval $ac_try) 2>&5
 
8374
  ac_status=$?
 
8375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8376
  (exit $ac_status); }; }; then
 
8377
  ac_cv_func_shl_load=yes
 
8378
else
 
8379
  echo "$as_me: failed program was:" >&5
 
8380
sed 's/^/| /' conftest.$ac_ext >&5
 
8381
 
 
8382
ac_cv_func_shl_load=no
 
8383
fi
 
8384
rm -f conftest.err conftest.$ac_objext \
 
8385
      conftest$ac_exeext conftest.$ac_ext
 
8386
fi
 
8387
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
8388
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
8389
if test $ac_cv_func_shl_load = yes; then
 
8390
  lt_cv_dlopen="shl_load"
 
8391
else
 
8392
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
8393
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
8394
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
8395
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8396
else
 
8397
  ac_check_lib_save_LIBS=$LIBS
 
8398
LIBS="-ldld  $LIBS"
 
8399
cat >conftest.$ac_ext <<_ACEOF
 
8400
/* confdefs.h.  */
 
8401
_ACEOF
 
8402
cat confdefs.h >>conftest.$ac_ext
 
8403
cat >>conftest.$ac_ext <<_ACEOF
 
8404
/* end confdefs.h.  */
 
8405
 
 
8406
/* Override any gcc2 internal prototype to avoid an error.  */
 
8407
#ifdef __cplusplus
 
8408
extern "C"
 
8409
#endif
 
8410
/* We use char because int might match the return type of a gcc2
 
8411
   builtin and then its argument prototype would still apply.  */
 
8412
char shl_load ();
 
8413
int
 
8414
main ()
 
8415
{
 
8416
shl_load ();
 
8417
  ;
 
8418
  return 0;
 
8419
}
 
8420
_ACEOF
 
8421
rm -f conftest.$ac_objext conftest$ac_exeext
 
8422
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8423
  (eval $ac_link) 2>conftest.er1
 
8424
  ac_status=$?
 
8425
  grep -v '^ *+' conftest.er1 >conftest.err
 
8426
  rm -f conftest.er1
 
8427
  cat conftest.err >&5
 
8428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8429
  (exit $ac_status); } &&
 
8430
         { ac_try='test -z "$ac_c_werror_flag"
 
8431
                         || test ! -s conftest.err'
 
8432
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8433
  (eval $ac_try) 2>&5
 
8434
  ac_status=$?
 
8435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8436
  (exit $ac_status); }; } &&
 
8437
         { ac_try='test -s conftest$ac_exeext'
 
8438
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8439
  (eval $ac_try) 2>&5
 
8440
  ac_status=$?
 
8441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8442
  (exit $ac_status); }; }; then
 
8443
  ac_cv_lib_dld_shl_load=yes
 
8444
else
 
8445
  echo "$as_me: failed program was:" >&5
 
8446
sed 's/^/| /' conftest.$ac_ext >&5
 
8447
 
 
8448
ac_cv_lib_dld_shl_load=no
 
8449
fi
 
8450
rm -f conftest.err conftest.$ac_objext \
 
8451
      conftest$ac_exeext conftest.$ac_ext
 
8452
LIBS=$ac_check_lib_save_LIBS
 
8453
fi
 
8454
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
8455
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
8456
if test $ac_cv_lib_dld_shl_load = yes; then
 
8457
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
8458
else
 
8459
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
8460
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
8461
if test "${ac_cv_func_dlopen+set}" = set; then
 
8462
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8463
else
 
8464
  cat >conftest.$ac_ext <<_ACEOF
 
8465
/* confdefs.h.  */
 
8466
_ACEOF
 
8467
cat confdefs.h >>conftest.$ac_ext
 
8468
cat >>conftest.$ac_ext <<_ACEOF
 
8469
/* end confdefs.h.  */
 
8470
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
8471
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8472
#define dlopen innocuous_dlopen
 
8473
 
 
8474
/* System header to define __stub macros and hopefully few prototypes,
 
8475
    which can conflict with char dlopen (); below.
 
8476
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8477
    <limits.h> exists even on freestanding compilers.  */
 
8478
 
 
8479
#ifdef __STDC__
 
8480
# include <limits.h>
 
8481
#else
 
8482
# include <assert.h>
 
8483
#endif
 
8484
 
 
8485
#undef dlopen
 
8486
 
 
8487
/* Override any gcc2 internal prototype to avoid an error.  */
 
8488
#ifdef __cplusplus
 
8489
extern "C"
 
8490
{
 
8491
#endif
 
8492
/* We use char because int might match the return type of a gcc2
 
8493
   builtin and then its argument prototype would still apply.  */
 
8494
char dlopen ();
 
8495
/* The GNU C library defines this for functions which it implements
 
8496
    to always fail with ENOSYS.  Some functions are actually named
 
8497
    something starting with __ and the normal name is an alias.  */
 
8498
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
8499
choke me
 
8500
#else
 
8501
char (*f) () = dlopen;
 
8502
#endif
 
8503
#ifdef __cplusplus
 
8504
}
 
8505
#endif
 
8506
 
 
8507
int
 
8508
main ()
 
8509
{
 
8510
return f != dlopen;
 
8511
  ;
 
8512
  return 0;
 
8513
}
 
8514
_ACEOF
 
8515
rm -f conftest.$ac_objext conftest$ac_exeext
 
8516
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8517
  (eval $ac_link) 2>conftest.er1
 
8518
  ac_status=$?
 
8519
  grep -v '^ *+' conftest.er1 >conftest.err
 
8520
  rm -f conftest.er1
 
8521
  cat conftest.err >&5
 
8522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8523
  (exit $ac_status); } &&
 
8524
         { ac_try='test -z "$ac_c_werror_flag"
 
8525
                         || test ! -s conftest.err'
 
8526
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8527
  (eval $ac_try) 2>&5
 
8528
  ac_status=$?
 
8529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8530
  (exit $ac_status); }; } &&
 
8531
         { ac_try='test -s conftest$ac_exeext'
 
8532
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8533
  (eval $ac_try) 2>&5
 
8534
  ac_status=$?
 
8535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8536
  (exit $ac_status); }; }; then
 
8537
  ac_cv_func_dlopen=yes
 
8538
else
 
8539
  echo "$as_me: failed program was:" >&5
 
8540
sed 's/^/| /' conftest.$ac_ext >&5
 
8541
 
 
8542
ac_cv_func_dlopen=no
 
8543
fi
 
8544
rm -f conftest.err conftest.$ac_objext \
 
8545
      conftest$ac_exeext conftest.$ac_ext
 
8546
fi
 
8547
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
8548
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
8549
if test $ac_cv_func_dlopen = yes; then
 
8550
  lt_cv_dlopen="dlopen"
 
8551
else
 
8552
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8553
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8554
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8555
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8556
else
 
8557
  ac_check_lib_save_LIBS=$LIBS
 
8558
LIBS="-ldl  $LIBS"
 
8559
cat >conftest.$ac_ext <<_ACEOF
 
8560
/* confdefs.h.  */
 
8561
_ACEOF
 
8562
cat confdefs.h >>conftest.$ac_ext
 
8563
cat >>conftest.$ac_ext <<_ACEOF
 
8564
/* end confdefs.h.  */
 
8565
 
 
8566
/* Override any gcc2 internal prototype to avoid an error.  */
 
8567
#ifdef __cplusplus
 
8568
extern "C"
 
8569
#endif
 
8570
/* We use char because int might match the return type of a gcc2
 
8571
   builtin and then its argument prototype would still apply.  */
 
8572
char dlopen ();
 
8573
int
 
8574
main ()
 
8575
{
 
8576
dlopen ();
 
8577
  ;
 
8578
  return 0;
 
8579
}
 
8580
_ACEOF
 
8581
rm -f conftest.$ac_objext conftest$ac_exeext
 
8582
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8583
  (eval $ac_link) 2>conftest.er1
 
8584
  ac_status=$?
 
8585
  grep -v '^ *+' conftest.er1 >conftest.err
 
8586
  rm -f conftest.er1
 
8587
  cat conftest.err >&5
 
8588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8589
  (exit $ac_status); } &&
 
8590
         { ac_try='test -z "$ac_c_werror_flag"
 
8591
                         || test ! -s conftest.err'
 
8592
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8593
  (eval $ac_try) 2>&5
 
8594
  ac_status=$?
 
8595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8596
  (exit $ac_status); }; } &&
 
8597
         { ac_try='test -s conftest$ac_exeext'
 
8598
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8599
  (eval $ac_try) 2>&5
 
8600
  ac_status=$?
 
8601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8602
  (exit $ac_status); }; }; then
 
8603
  ac_cv_lib_dl_dlopen=yes
 
8604
else
 
8605
  echo "$as_me: failed program was:" >&5
 
8606
sed 's/^/| /' conftest.$ac_ext >&5
 
8607
 
 
8608
ac_cv_lib_dl_dlopen=no
 
8609
fi
 
8610
rm -f conftest.err conftest.$ac_objext \
 
8611
      conftest$ac_exeext conftest.$ac_ext
 
8612
LIBS=$ac_check_lib_save_LIBS
 
8613
fi
 
8614
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8615
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8616
if test $ac_cv_lib_dl_dlopen = yes; then
 
8617
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8618
else
 
8619
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
8620
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
8621
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
8622
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8623
else
 
8624
  ac_check_lib_save_LIBS=$LIBS
 
8625
LIBS="-lsvld  $LIBS"
 
8626
cat >conftest.$ac_ext <<_ACEOF
 
8627
/* confdefs.h.  */
 
8628
_ACEOF
 
8629
cat confdefs.h >>conftest.$ac_ext
 
8630
cat >>conftest.$ac_ext <<_ACEOF
 
8631
/* end confdefs.h.  */
 
8632
 
 
8633
/* Override any gcc2 internal prototype to avoid an error.  */
 
8634
#ifdef __cplusplus
 
8635
extern "C"
 
8636
#endif
 
8637
/* We use char because int might match the return type of a gcc2
 
8638
   builtin and then its argument prototype would still apply.  */
 
8639
char dlopen ();
 
8640
int
 
8641
main ()
 
8642
{
 
8643
dlopen ();
 
8644
  ;
 
8645
  return 0;
 
8646
}
 
8647
_ACEOF
 
8648
rm -f conftest.$ac_objext conftest$ac_exeext
 
8649
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8650
  (eval $ac_link) 2>conftest.er1
 
8651
  ac_status=$?
 
8652
  grep -v '^ *+' conftest.er1 >conftest.err
 
8653
  rm -f conftest.er1
 
8654
  cat conftest.err >&5
 
8655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8656
  (exit $ac_status); } &&
 
8657
         { ac_try='test -z "$ac_c_werror_flag"
 
8658
                         || test ! -s conftest.err'
 
8659
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8660
  (eval $ac_try) 2>&5
 
8661
  ac_status=$?
 
8662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8663
  (exit $ac_status); }; } &&
 
8664
         { ac_try='test -s conftest$ac_exeext'
 
8665
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8666
  (eval $ac_try) 2>&5
 
8667
  ac_status=$?
 
8668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8669
  (exit $ac_status); }; }; then
 
8670
  ac_cv_lib_svld_dlopen=yes
 
8671
else
 
8672
  echo "$as_me: failed program was:" >&5
 
8673
sed 's/^/| /' conftest.$ac_ext >&5
 
8674
 
 
8675
ac_cv_lib_svld_dlopen=no
 
8676
fi
 
8677
rm -f conftest.err conftest.$ac_objext \
 
8678
      conftest$ac_exeext conftest.$ac_ext
 
8679
LIBS=$ac_check_lib_save_LIBS
 
8680
fi
 
8681
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
8682
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
8683
if test $ac_cv_lib_svld_dlopen = yes; then
 
8684
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
8685
else
 
8686
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
8687
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
8688
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
8689
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8690
else
 
8691
  ac_check_lib_save_LIBS=$LIBS
 
8692
LIBS="-ldld  $LIBS"
 
8693
cat >conftest.$ac_ext <<_ACEOF
 
8694
/* confdefs.h.  */
 
8695
_ACEOF
 
8696
cat confdefs.h >>conftest.$ac_ext
 
8697
cat >>conftest.$ac_ext <<_ACEOF
 
8698
/* end confdefs.h.  */
 
8699
 
 
8700
/* Override any gcc2 internal prototype to avoid an error.  */
 
8701
#ifdef __cplusplus
 
8702
extern "C"
 
8703
#endif
 
8704
/* We use char because int might match the return type of a gcc2
 
8705
   builtin and then its argument prototype would still apply.  */
 
8706
char dld_link ();
 
8707
int
 
8708
main ()
 
8709
{
 
8710
dld_link ();
 
8711
  ;
 
8712
  return 0;
 
8713
}
 
8714
_ACEOF
 
8715
rm -f conftest.$ac_objext conftest$ac_exeext
 
8716
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8717
  (eval $ac_link) 2>conftest.er1
 
8718
  ac_status=$?
 
8719
  grep -v '^ *+' conftest.er1 >conftest.err
 
8720
  rm -f conftest.er1
 
8721
  cat conftest.err >&5
 
8722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8723
  (exit $ac_status); } &&
 
8724
         { ac_try='test -z "$ac_c_werror_flag"
 
8725
                         || test ! -s conftest.err'
 
8726
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8727
  (eval $ac_try) 2>&5
 
8728
  ac_status=$?
 
8729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8730
  (exit $ac_status); }; } &&
 
8731
         { ac_try='test -s conftest$ac_exeext'
 
8732
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8733
  (eval $ac_try) 2>&5
 
8734
  ac_status=$?
 
8735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8736
  (exit $ac_status); }; }; then
 
8737
  ac_cv_lib_dld_dld_link=yes
 
8738
else
 
8739
  echo "$as_me: failed program was:" >&5
 
8740
sed 's/^/| /' conftest.$ac_ext >&5
 
8741
 
 
8742
ac_cv_lib_dld_dld_link=no
 
8743
fi
 
8744
rm -f conftest.err conftest.$ac_objext \
 
8745
      conftest$ac_exeext conftest.$ac_ext
 
8746
LIBS=$ac_check_lib_save_LIBS
 
8747
fi
 
8748
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
8749
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
8750
if test $ac_cv_lib_dld_dld_link = yes; then
 
8751
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
8752
fi
 
8753
 
 
8754
 
 
8755
fi
 
8756
 
 
8757
 
 
8758
fi
 
8759
 
 
8760
 
 
8761
fi
 
8762
 
 
8763
 
 
8764
fi
 
8765
 
 
8766
 
 
8767
fi
 
8768
 
 
8769
    ;;
 
8770
  esac
 
8771
 
 
8772
  if test "x$lt_cv_dlopen" != xno; then
 
8773
    enable_dlopen=yes
 
8774
  else
 
8775
    enable_dlopen=no
 
8776
  fi
 
8777
 
 
8778
  case $lt_cv_dlopen in
 
8779
  dlopen)
 
8780
    save_CPPFLAGS="$CPPFLAGS"
 
8781
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
8782
 
 
8783
    save_LDFLAGS="$LDFLAGS"
 
8784
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
8785
 
 
8786
    save_LIBS="$LIBS"
 
8787
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
8788
 
 
8789
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
8790
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
8791
if test "${lt_cv_dlopen_self+set}" = set; then
 
8792
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8793
else
 
8794
          if test "$cross_compiling" = yes; then :
 
8795
  lt_cv_dlopen_self=cross
 
8796
else
 
8797
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8798
  lt_status=$lt_dlunknown
 
8799
  cat > conftest.$ac_ext <<_LT_EOF
 
8800
#line 8800 "configure"
 
8801
#include "confdefs.h"
 
8802
 
 
8803
#if HAVE_DLFCN_H
 
8804
#include <dlfcn.h>
 
8805
#endif
 
8806
 
 
8807
#include <stdio.h>
 
8808
 
 
8809
#ifdef RTLD_GLOBAL
 
8810
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8811
#else
 
8812
#  ifdef DL_GLOBAL
 
8813
#    define LT_DLGLOBAL         DL_GLOBAL
 
8814
#  else
 
8815
#    define LT_DLGLOBAL         0
 
8816
#  endif
 
8817
#endif
 
8818
 
 
8819
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8820
   find out it does not work in some platform. */
 
8821
#ifndef LT_DLLAZY_OR_NOW
 
8822
#  ifdef RTLD_LAZY
 
8823
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8824
#  else
 
8825
#    ifdef DL_LAZY
 
8826
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8827
#    else
 
8828
#      ifdef RTLD_NOW
 
8829
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8830
#      else
 
8831
#        ifdef DL_NOW
 
8832
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8833
#        else
 
8834
#          define LT_DLLAZY_OR_NOW      0
 
8835
#        endif
 
8836
#      endif
 
8837
#    endif
 
8838
#  endif
 
8839
#endif
 
8840
 
 
8841
#ifdef __cplusplus
 
8842
extern "C" void exit (int);
 
8843
#endif
 
8844
 
 
8845
void fnord() { int i=42;}
 
8846
int main ()
 
8847
{
 
8848
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8849
  int status = $lt_dlunknown;
 
8850
 
 
8851
  if (self)
 
8852
    {
 
8853
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8854
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8855
      /* dlclose (self); */
 
8856
    }
 
8857
 
 
8858
    exit (status);
 
8859
}
 
8860
_LT_EOF
 
8861
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8862
  (eval $ac_link) 2>&5
 
8863
  ac_status=$?
 
8864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8865
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8866
    (./conftest; exit; ) 2>/dev/null
 
8867
    lt_status=$?
 
8868
    case x$lt_status in
 
8869
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
8870
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
8871
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
8872
    esac
 
8873
  else :
 
8874
    # compilation failed
 
8875
    lt_cv_dlopen_self=no
 
8876
  fi
 
8877
fi
 
8878
rm -fr conftest*
 
8879
 
 
8880
 
 
8881
fi
 
8882
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
8883
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
8884
 
 
8885
    if test "x$lt_cv_dlopen_self" = xyes; then
 
8886
      LDFLAGS="$LDFLAGS $link_static_flag"
 
8887
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
8888
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
8889
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
8890
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8891
else
 
8892
          if test "$cross_compiling" = yes; then :
 
8893
  lt_cv_dlopen_self_static=cross
 
8894
else
 
8895
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8896
  lt_status=$lt_dlunknown
 
8897
  cat > conftest.$ac_ext <<_LT_EOF
 
8898
#line 8898 "configure"
 
8899
#include "confdefs.h"
 
8900
 
 
8901
#if HAVE_DLFCN_H
 
8902
#include <dlfcn.h>
 
8903
#endif
 
8904
 
 
8905
#include <stdio.h>
 
8906
 
 
8907
#ifdef RTLD_GLOBAL
 
8908
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8909
#else
 
8910
#  ifdef DL_GLOBAL
 
8911
#    define LT_DLGLOBAL         DL_GLOBAL
 
8912
#  else
 
8913
#    define LT_DLGLOBAL         0
 
8914
#  endif
 
8915
#endif
 
8916
 
 
8917
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8918
   find out it does not work in some platform. */
 
8919
#ifndef LT_DLLAZY_OR_NOW
 
8920
#  ifdef RTLD_LAZY
 
8921
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8922
#  else
 
8923
#    ifdef DL_LAZY
 
8924
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8925
#    else
 
8926
#      ifdef RTLD_NOW
 
8927
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8928
#      else
 
8929
#        ifdef DL_NOW
 
8930
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8931
#        else
 
8932
#          define LT_DLLAZY_OR_NOW      0
 
8933
#        endif
 
8934
#      endif
 
8935
#    endif
 
8936
#  endif
 
8937
#endif
 
8938
 
 
8939
#ifdef __cplusplus
 
8940
extern "C" void exit (int);
 
8941
#endif
 
8942
 
 
8943
void fnord() { int i=42;}
 
8944
int main ()
 
8945
{
 
8946
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8947
  int status = $lt_dlunknown;
 
8948
 
 
8949
  if (self)
 
8950
    {
 
8951
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8952
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8953
      /* dlclose (self); */
 
8954
    }
 
8955
 
 
8956
    exit (status);
 
8957
}
 
8958
_LT_EOF
 
8959
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8960
  (eval $ac_link) 2>&5
 
8961
  ac_status=$?
 
8962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8963
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8964
    (./conftest; exit; ) 2>/dev/null
 
8965
    lt_status=$?
 
8966
    case x$lt_status in
 
8967
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
8968
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
8969
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
8970
    esac
 
8971
  else :
 
8972
    # compilation failed
 
8973
    lt_cv_dlopen_self_static=no
 
8974
  fi
 
8975
fi
 
8976
rm -fr conftest*
 
8977
 
 
8978
 
 
8979
fi
 
8980
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
8981
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
8982
    fi
 
8983
 
 
8984
    CPPFLAGS="$save_CPPFLAGS"
 
8985
    LDFLAGS="$save_LDFLAGS"
 
8986
    LIBS="$save_LIBS"
 
8987
    ;;
 
8988
  esac
 
8989
 
 
8990
  case $lt_cv_dlopen_self in
 
8991
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
8992
  *) enable_dlopen_self=unknown ;;
 
8993
  esac
 
8994
 
 
8995
  case $lt_cv_dlopen_self_static in
 
8996
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
8997
  *) enable_dlopen_self_static=unknown ;;
 
8998
  esac
 
8999
fi
 
9000
 
 
9001
 
 
9002
 
 
9003
 
 
9004
 
 
9005
 
 
9006
 
 
9007
 
 
9008
 
 
9009
 
 
9010
 
 
9011
 
 
9012
 
 
9013
 
 
9014
 
 
9015
 
 
9016
 
 
9017
  # Report which library types will actually be built
 
9018
  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
9019
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
9020
  echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
9021
echo "${ECHO_T}$can_build_shared" >&6
 
9022
 
 
9023
  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
9024
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
9025
  test "$can_build_shared" = "no" && enable_shared=no
 
9026
 
 
9027
  # On AIX, shared libraries and static libraries use the same namespace, and
 
9028
  # are all built from PIC.
 
9029
  case "$host_os" in
 
9030
  aix3*)
 
9031
    test "$enable_shared" = yes && enable_static=no
 
9032
    if test -n "$RANLIB"; then
 
9033
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
9034
      postinstall_cmds='$RANLIB $lib'
 
9035
    fi
 
9036
    ;;
 
9037
 
 
9038
  aix4* | aix5*)
 
9039
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
9040
      test "$enable_shared" = yes && enable_static=no
 
9041
    fi
 
9042
    ;;
 
9043
  esac
 
9044
  echo "$as_me:$LINENO: result: $enable_shared" >&5
 
9045
echo "${ECHO_T}$enable_shared" >&6
 
9046
 
 
9047
  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
9048
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
9049
  # Make sure either enable_shared or enable_static is yes.
 
9050
  test "$enable_shared" = yes || enable_static=yes
 
9051
  echo "$as_me:$LINENO: result: $enable_static" >&5
 
9052
echo "${ECHO_T}$enable_static" >&6
 
9053
 
 
9054
 
 
9055
 
 
9056
 
 
9057
fi
 
9058
ac_ext=c
 
9059
ac_cpp='$CPP $CPPFLAGS'
 
9060
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9061
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9062
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9063
 
 
9064
CC="$lt_save_CC"
 
9065
 
 
9066
 
 
9067
 
 
9068
 
 
9069
 
 
9070
 
 
9071
 
 
9072
 
 
9073
 
 
9074
 
 
9075
 
 
9076
          ac_config_commands="$ac_config_commands libtool"
 
9077
 
 
9078
 
 
9079
 
 
9080
 
 
9081
# Only expand once:
 
9082
 
 
9083
 
 
9084
 
 
9085
# Check whether --enable-vtysh or --disable-vtysh was given.
 
9086
if test "${enable_vtysh+set}" = set; then
 
9087
  enableval="$enable_vtysh"
 
9088
 
 
9089
fi;
 
9090
# Check whether --enable-ipv6 or --disable-ipv6 was given.
 
9091
if test "${enable_ipv6+set}" = set; then
 
9092
  enableval="$enable_ipv6"
 
9093
 
 
9094
fi;
 
9095
# Check whether --enable-zebra or --disable-zebra was given.
 
9096
if test "${enable_zebra+set}" = set; then
 
9097
  enableval="$enable_zebra"
 
9098
 
 
9099
fi;
 
9100
# Check whether --enable-bgpd or --disable-bgpd was given.
 
9101
if test "${enable_bgpd+set}" = set; then
 
9102
  enableval="$enable_bgpd"
 
9103
 
 
9104
fi;
 
9105
# Check whether --enable-ripd or --disable-ripd was given.
 
9106
if test "${enable_ripd+set}" = set; then
 
9107
  enableval="$enable_ripd"
 
9108
 
 
9109
fi;
 
9110
# Check whether --enable-ripngd or --disable-ripngd was given.
 
9111
if test "${enable_ripngd+set}" = set; then
 
9112
  enableval="$enable_ripngd"
 
9113
 
 
9114
fi;
 
9115
# Check whether --enable-ospfd or --disable-ospfd was given.
 
9116
if test "${enable_ospfd+set}" = set; then
 
9117
  enableval="$enable_ospfd"
 
9118
 
 
9119
fi;
 
9120
# Check whether --enable-ospf6d or --disable-ospf6d was given.
 
9121
if test "${enable_ospf6d+set}" = set; then
 
9122
  enableval="$enable_ospf6d"
 
9123
 
 
9124
fi;
 
9125
# Check whether --enable-watchquagga or --disable-watchquagga was given.
 
9126
if test "${enable_watchquagga+set}" = set; then
 
9127
  enableval="$enable_watchquagga"
 
9128
 
 
9129
fi;
 
9130
# Check whether --enable-isisd or --disable-isisd was given.
 
9131
if test "${enable_isisd+set}" = set; then
 
9132
  enableval="$enable_isisd"
 
9133
 
 
9134
fi;
 
9135
# Check whether --enable-bgp-announce or --disable-bgp-announce was given.
 
9136
if test "${enable_bgp_announce+set}" = set; then
 
9137
  enableval="$enable_bgp_announce"
 
9138
 
 
9139
fi;
 
9140
# Check whether --enable-netlink or --disable-netlink was given.
 
9141
if test "${enable_netlink+set}" = set; then
 
9142
  enableval="$enable_netlink"
 
9143
 
 
9144
fi;
 
9145
# Check whether --enable-broken-aliases or --disable-broken-aliases was given.
 
9146
if test "${enable_broken_aliases+set}" = set; then
 
9147
  enableval="$enable_broken_aliases"
 
9148
 
 
9149
fi;
 
9150
# Check whether --enable-snmp or --disable-snmp was given.
 
9151
if test "${enable_snmp+set}" = set; then
 
9152
  enableval="$enable_snmp"
 
9153
 
 
9154
fi;
 
9155
 
 
9156
# Check whether --with-libpam or --without-libpam was given.
 
9157
if test "${with_libpam+set}" = set; then
 
9158
  withval="$with_libpam"
 
9159
 
 
9160
fi;
 
9161
# Check whether --enable-tcp-zebra or --disable-tcp-zebra was given.
 
9162
if test "${enable_tcp_zebra+set}" = set; then
 
9163
  enableval="$enable_tcp_zebra"
 
9164
 
 
9165
fi;
 
9166
# Check whether --enable-opaque-lsa or --disable-opaque-lsa was given.
 
9167
if test "${enable_opaque_lsa+set}" = set; then
 
9168
  enableval="$enable_opaque_lsa"
 
9169
 
 
9170
fi;
 
9171
# Check whether --enable-ospfapi or --disable-ospfapi was given.
 
9172
if test "${enable_ospfapi+set}" = set; then
 
9173
  enableval="$enable_ospfapi"
 
9174
 
 
9175
fi;
 
9176
# Check whether --enable-ospfclient or --disable-ospfclient was given.
 
9177
if test "${enable_ospfclient+set}" = set; then
 
9178
  enableval="$enable_ospfclient"
 
9179
 
 
9180
fi;
 
9181
# Check whether --enable-ospf-te or --disable-ospf-te was given.
 
9182
if test "${enable_ospf_te+set}" = set; then
 
9183
  enableval="$enable_ospf_te"
 
9184
 
 
9185
fi;
 
9186
# Check whether --enable-multipath or --disable-multipath was given.
 
9187
if test "${enable_multipath+set}" = set; then
 
9188
  enableval="$enable_multipath"
 
9189
 
 
9190
fi;
 
9191
# Check whether --enable-quagga_user or --disable-quagga_user was given.
 
9192
if test "${enable_quagga_user+set}" = set; then
 
9193
  enableval="$enable_quagga_user"
 
9194
 
 
9195
fi;
 
9196
# Check whether --enable-quagga_group or --disable-quagga_group was given.
 
9197
if test "${enable_quagga_group+set}" = set; then
 
9198
  enableval="$enable_quagga_group"
 
9199
 
 
9200
fi;
 
9201
# Check whether --enable-vty_group or --disable-vty_group was given.
 
9202
if test "${enable_vty_group+set}" = set; then
 
9203
  enableval="$enable_vty_group"
 
9204
 
 
9205
fi;
 
9206
# Check whether --enable-configfile_mask or --disable-configfile_mask was given.
 
9207
if test "${enable_configfile_mask+set}" = set; then
 
9208
  enableval="$enable_configfile_mask"
 
9209
 
 
9210
fi;
 
9211
# Check whether --enable-logfile_mask or --disable-logfile_mask was given.
 
9212
if test "${enable_logfile_mask+set}" = set; then
 
9213
  enableval="$enable_logfile_mask"
 
9214
 
 
9215
fi;
 
9216
 
 
9217
# Check whether --enable-rtadv or --disable-rtadv was given.
 
9218
if test "${enable_rtadv+set}" = set; then
 
9219
  enableval="$enable_rtadv"
 
9220
 
 
9221
fi;
 
9222
# Check whether --enable-irdp or --disable-irdp was given.
 
9223
if test "${enable_irdp+set}" = set; then
 
9224
  enableval="$enable_irdp"
 
9225
 
 
9226
fi;
 
9227
# Check whether --enable-isis_topology or --disable-isis_topology was given.
 
9228
if test "${enable_isis_topology+set}" = set; then
 
9229
  enableval="$enable_isis_topology"
 
9230
 
 
9231
fi;
 
9232
# Check whether --enable-capabilities or --disable-capabilities was given.
 
9233
if test "${enable_capabilities+set}" = set; then
 
9234
  enableval="$enable_capabilities"
 
9235
 
 
9236
fi;
 
9237
# Check whether --enable-gcc_ultra_verbose or --disable-gcc_ultra_verbose was given.
 
9238
if test "${enable_gcc_ultra_verbose+set}" = set; then
 
9239
  enableval="$enable_gcc_ultra_verbose"
 
9240
 
 
9241
fi;
 
9242
# Check whether --enable-gcc-rdynamic or --disable-gcc-rdynamic was given.
 
9243
if test "${enable_gcc_rdynamic+set}" = set; then
 
9244
  enableval="$enable_gcc_rdynamic"
 
9245
 
 
9246
fi;
 
9247
# Check whether --enable-time-check or --disable-time-check was given.
 
9248
if test "${enable_time_check+set}" = set; then
 
9249
  enableval="$enable_time_check"
 
9250
 
 
9251
fi;
 
9252
 
 
9253
if test x"${enable_gcc_ultra_verbose}" = x"yes" ; then
 
9254
  CFLAGS="${CFLAGS} -W -Wcast-qual -Wstrict-prototypes"
 
9255
  CFLAGS="${CFLAGS} -Wmissing-declarations -Wmissing-noreturn"
 
9256
  CFLAGS="${CFLAGS} -Wmissing-format-attribute -Wunreachable-code"
 
9257
  CFLAGS="${CFLAGS} -Wpacked -Wpadded"
 
9258
fi
 
9259
 
 
9260
if test x"${enable_gcc_rdynamic}" = x"yes" ; then
 
9261
  LDFLAGS="${LDFLAGS} -rdynamic"
 
9262
fi
 
9263
 
 
9264
if test x"${enable_time_check}" != x"no" ; then
 
9265
  if test x"${enable_time_check}" = x"yes" -o x"${enable_time_check}" = x ; then
 
9266
 
 
9267
cat >>confdefs.h <<\_ACEOF
 
9268
#define CONSUMED_TIME_CHECK 5000000
 
9269
_ACEOF
 
9270
 
 
9271
  else
 
9272
 
 
9273
cat >>confdefs.h <<_ACEOF
 
9274
#define CONSUMED_TIME_CHECK $enable_time_check
 
9275
_ACEOF
 
9276
 
 
9277
  fi
 
9278
fi
 
9279
 
 
9280
if test "${enable_broken_aliases}" = "yes"; then
 
9281
  if test "${enable_netlink}" = "yes"
 
9282
  then
 
9283
    echo "Sorry, you can't use netlink with broken aliases"
 
9284
    exit 1
 
9285
  fi
 
9286
 
 
9287
cat >>confdefs.h <<\_ACEOF
 
9288
#define HAVE_BROKEN_ALIASES
 
9289
_ACEOF
 
9290
 
 
9291
  enable_netlink=no
 
9292
fi
 
9293
 
 
9294
if test "${enable_tcp_zebra}" = "yes"; then
 
9295
 
 
9296
cat >>confdefs.h <<\_ACEOF
 
9297
#define HAVE_TCP_ZEBRA
 
9298
_ACEOF
 
9299
 
 
9300
fi
 
9301
 
 
9302
if test "${enable_opaque_lsa}" = "yes"; then
 
9303
 
 
9304
cat >>confdefs.h <<\_ACEOF
 
9305
#define HAVE_OPAQUE_LSA
 
9306
_ACEOF
 
9307
 
 
9308
fi
 
9309
 
 
9310
if test "${enable_ospf_te}" = "yes"; then
 
9311
 
 
9312
cat >>confdefs.h <<\_ACEOF
 
9313
#define HAVE_OPAQUE_LSA
 
9314
_ACEOF
 
9315
 
 
9316
 
 
9317
cat >>confdefs.h <<\_ACEOF
 
9318
#define HAVE_OSPF_TE
 
9319
_ACEOF
 
9320
 
 
9321
fi
 
9322
 
 
9323
echo "$as_me:$LINENO: checking if zebra should be configurable to send Route Advertisements" >&5
 
9324
echo $ECHO_N "checking if zebra should be configurable to send Route Advertisements... $ECHO_C" >&6
 
9325
if test "${enable_rtadv}" != "no"; then
 
9326
  echo "$as_me:$LINENO: result: yes" >&5
 
9327
echo "${ECHO_T}yes" >&6
 
9328
 
 
9329
cat >>confdefs.h <<\_ACEOF
 
9330
#define HAVE_RTADV
 
9331
_ACEOF
 
9332
 
 
9333
else
 
9334
  echo "$as_me:$LINENO: result: no" >&5
 
9335
echo "${ECHO_T}no" >&6
 
9336
fi
 
9337
 
 
9338
if test "${enable_irdp}" = "yes"; then
 
9339
 
 
9340
cat >>confdefs.h <<\_ACEOF
 
9341
#define HAVE_IRDP
 
9342
_ACEOF
 
9343
 
 
9344
fi
 
9345
 
 
9346
if test "${enable_isisd}" = "yes" && test "${enable_isis_topology}" = yes; then
 
9347
 
 
9348
cat >>confdefs.h <<\_ACEOF
 
9349
#define TOPOLOGY_GENERATE
 
9350
_ACEOF
 
9351
 
 
9352
  ISIS_TOPOLOGY_INCLUDES="-I./topology"
 
9353
  ISIS_TOPOLOGY_DIR="topology"
 
9354
  ISIS_TOPOLOGY_LIB="./topology/libtopology.a"
 
9355
fi
 
9356
 
 
9357
 
 
9358
 
 
9359
 
 
9360
 
 
9361
if test "${enable_user}" = "yes" || test x"${enable_user}" = x""; then
 
9362
  enable_user="quagga"
 
9363
elif test "${enable_user}" = "no"; then
 
9364
  enable_user="root"
 
9365
fi
 
9366
 
 
9367
if test "${enable_group}" = "yes" || test x"${enable_group}" = x""; then
 
9368
  enable_group="quagga"
 
9369
elif test "${enable_group}" = "no"; then
 
9370
  enable_group="root"
 
9371
fi
 
9372
 
 
9373
if test x"${enable_vty_group}" = x"yes" ; then
 
9374
  { { echo "$as_me:$LINENO: error: --enable-vty-group requires a group as argument, not yes" >&5
 
9375
echo "$as_me: error: --enable-vty-group requires a group as argument, not yes" >&2;}
 
9376
   { (exit 1); exit 1; }; }
 
9377
elif test x"${enable_vty_group}" != x""; then
 
9378
  if test x"${enable_vty_group}" != x"no"; then
 
9379
 
 
9380
cat >>confdefs.h <<_ACEOF
 
9381
#define VTY_GROUP "${enable_vty_group}"
 
9382
_ACEOF
 
9383
 
 
9384
  fi
 
9385
fi
 
9386
 
 
9387
 
 
9388
 
 
9389
 
 
9390
cat >>confdefs.h <<_ACEOF
 
9391
#define QUAGGA_USER "${enable_user}"
 
9392
_ACEOF
 
9393
 
 
9394
 
 
9395
cat >>confdefs.h <<_ACEOF
 
9396
#define QUAGGA_GROUP "${enable_group}"
 
9397
_ACEOF
 
9398
 
 
9399
 
 
9400
enable_configfile_mask=${enable_configfile_mask:-0600}
 
9401
 
 
9402
cat >>confdefs.h <<_ACEOF
 
9403
#define CONFIGFILE_MASK ${enable_configfile_mask}
 
9404
_ACEOF
 
9405
 
 
9406
 
 
9407
enable_logfile_mask=${enable_logfile_mask:-0600}
 
9408
 
 
9409
cat >>confdefs.h <<_ACEOF
 
9410
#define LOGFILE_MASK ${enable_logfile_mask}
 
9411
_ACEOF
 
9412
 
 
9413
 
 
9414
 
 
9415
MULTIPATH_NUM=1
 
9416
 
 
9417
case "${enable_multipath}" in
 
9418
  [0-9]|[1-9][0-9])
 
9419
    MULTIPATH_NUM="${enable_multipath}"
 
9420
    ;;
 
9421
  "")
 
9422
    ;;
 
9423
  *)
 
9424
    echo "Please specify digit to --enable-multipath ARG."
 
9425
    exit 1
 
9426
    ;;
 
9427
esac
 
9428
 
 
9429
 
 
9430
 
 
9431
 
 
9432
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
9433
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
9434
if test "${ac_cv_header_stdc+set}" = set; then
 
9435
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9436
else
 
9437
  cat >conftest.$ac_ext <<_ACEOF
 
9438
/* confdefs.h.  */
 
9439
_ACEOF
 
9440
cat confdefs.h >>conftest.$ac_ext
 
9441
cat >>conftest.$ac_ext <<_ACEOF
 
9442
/* end confdefs.h.  */
 
9443
#include <stdlib.h>
 
9444
#include <stdarg.h>
 
9445
#include <string.h>
 
9446
#include <float.h>
 
9447
 
 
9448
int
 
9449
main ()
 
9450
{
 
9451
 
 
9452
  ;
 
9453
  return 0;
 
9454
}
 
9455
_ACEOF
 
9456
rm -f conftest.$ac_objext
 
9457
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9458
  (eval $ac_compile) 2>conftest.er1
 
9459
  ac_status=$?
 
9460
  grep -v '^ *+' conftest.er1 >conftest.err
 
9461
  rm -f conftest.er1
 
9462
  cat conftest.err >&5
 
9463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9464
  (exit $ac_status); } &&
 
9465
         { ac_try='test -z "$ac_c_werror_flag"
 
9466
                         || test ! -s conftest.err'
 
9467
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9468
  (eval $ac_try) 2>&5
 
9469
  ac_status=$?
 
9470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9471
  (exit $ac_status); }; } &&
 
9472
         { ac_try='test -s conftest.$ac_objext'
 
9473
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9474
  (eval $ac_try) 2>&5
 
9475
  ac_status=$?
 
9476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9477
  (exit $ac_status); }; }; then
 
9478
  ac_cv_header_stdc=yes
 
9479
else
 
9480
  echo "$as_me: failed program was:" >&5
 
9481
sed 's/^/| /' conftest.$ac_ext >&5
 
9482
 
 
9483
ac_cv_header_stdc=no
 
9484
fi
 
9485
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9486
 
 
9487
if test $ac_cv_header_stdc = yes; then
 
9488
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
9489
  cat >conftest.$ac_ext <<_ACEOF
 
9490
/* confdefs.h.  */
 
9491
_ACEOF
 
9492
cat confdefs.h >>conftest.$ac_ext
 
9493
cat >>conftest.$ac_ext <<_ACEOF
 
9494
/* end confdefs.h.  */
 
9495
#include <string.h>
 
9496
 
 
9497
_ACEOF
 
9498
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
9499
  $EGREP "memchr" >/dev/null 2>&1; then
 
9500
  :
 
9501
else
 
9502
  ac_cv_header_stdc=no
 
9503
fi
 
9504
rm -f conftest*
 
9505
 
 
9506
fi
 
9507
 
 
9508
if test $ac_cv_header_stdc = yes; then
 
9509
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
9510
  cat >conftest.$ac_ext <<_ACEOF
 
9511
/* confdefs.h.  */
 
9512
_ACEOF
 
9513
cat confdefs.h >>conftest.$ac_ext
 
9514
cat >>conftest.$ac_ext <<_ACEOF
 
9515
/* end confdefs.h.  */
 
9516
#include <stdlib.h>
 
9517
 
 
9518
_ACEOF
 
9519
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
9520
  $EGREP "free" >/dev/null 2>&1; then
 
9521
  :
 
9522
else
 
9523
  ac_cv_header_stdc=no
 
9524
fi
 
9525
rm -f conftest*
 
9526
 
 
9527
fi
 
9528
 
 
9529
if test $ac_cv_header_stdc = yes; then
 
9530
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
9531
  if test "$cross_compiling" = yes; then
 
9532
  :
 
9533
else
 
9534
  cat >conftest.$ac_ext <<_ACEOF
 
9535
/* confdefs.h.  */
 
9536
_ACEOF
 
9537
cat confdefs.h >>conftest.$ac_ext
 
9538
cat >>conftest.$ac_ext <<_ACEOF
 
9539
/* end confdefs.h.  */
 
9540
#include <ctype.h>
 
9541
#if ((' ' & 0x0FF) == 0x020)
 
9542
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
9543
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
9544
#else
 
9545
# define ISLOWER(c) \
 
9546
                   (('a' <= (c) && (c) <= 'i') \
 
9547
                     || ('j' <= (c) && (c) <= 'r') \
 
9548
                     || ('s' <= (c) && (c) <= 'z'))
 
9549
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
9550
#endif
 
9551
 
 
9552
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
9553
int
 
9554
main ()
 
9555
{
 
9556
  int i;
 
9557
  for (i = 0; i < 256; i++)
 
9558
    if (XOR (islower (i), ISLOWER (i))
 
9559
        || toupper (i) != TOUPPER (i))
 
9560
      exit(2);
 
9561
  exit (0);
 
9562
}
 
9563
_ACEOF
 
9564
rm -f conftest$ac_exeext
 
9565
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9566
  (eval $ac_link) 2>&5
 
9567
  ac_status=$?
 
9568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9569
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9570
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9571
  (eval $ac_try) 2>&5
 
9572
  ac_status=$?
 
9573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9574
  (exit $ac_status); }; }; then
 
9575
  :
 
9576
else
 
9577
  echo "$as_me: program exited with status $ac_status" >&5
 
9578
echo "$as_me: failed program was:" >&5
 
9579
sed 's/^/| /' conftest.$ac_ext >&5
 
9580
 
 
9581
( exit $ac_status )
 
9582
ac_cv_header_stdc=no
 
9583
fi
 
9584
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9585
fi
 
9586
fi
 
9587
fi
 
9588
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
9589
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
9590
if test $ac_cv_header_stdc = yes; then
 
9591
 
 
9592
cat >>confdefs.h <<\_ACEOF
 
9593
#define STDC_HEADERS 1
 
9594
_ACEOF
 
9595
 
 
9596
fi
 
9597
 
 
9598
 
 
9599
 
 
9600
 
 
9601
 
 
9602
 
 
9603
 
 
9604
 
 
9605
 
 
9606
 
 
9607
 
 
9608
 
 
9609
 
 
9610
 
 
9611
 
 
9612
 
 
9613
 
 
9614
for ac_header in string.h stropts.h sys/conf.h sys/ksym.h sys/time.h \
 
9615
                 sys/times.h sys/select.h sys/sysctl.h sys/sockio.h \
 
9616
                 sys/types.h linux/version.h kvm.h netdb.h asm/types.h \
 
9617
                 libutil.h limits.h
 
9618
do
 
9619
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9620
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9621
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9622
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9623
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9624
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9625
fi
 
9626
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9627
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9628
else
 
9629
  # Is the header compilable?
 
9630
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9631
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
9632
cat >conftest.$ac_ext <<_ACEOF
 
9633
/* confdefs.h.  */
 
9634
_ACEOF
 
9635
cat confdefs.h >>conftest.$ac_ext
 
9636
cat >>conftest.$ac_ext <<_ACEOF
 
9637
/* end confdefs.h.  */
 
9638
$ac_includes_default
 
9639
#include <$ac_header>
 
9640
_ACEOF
 
9641
rm -f conftest.$ac_objext
 
9642
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9643
  (eval $ac_compile) 2>conftest.er1
 
9644
  ac_status=$?
 
9645
  grep -v '^ *+' conftest.er1 >conftest.err
 
9646
  rm -f conftest.er1
 
9647
  cat conftest.err >&5
 
9648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9649
  (exit $ac_status); } &&
 
9650
         { ac_try='test -z "$ac_c_werror_flag"
 
9651
                         || test ! -s conftest.err'
 
9652
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9653
  (eval $ac_try) 2>&5
 
9654
  ac_status=$?
 
9655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9656
  (exit $ac_status); }; } &&
 
9657
         { ac_try='test -s conftest.$ac_objext'
 
9658
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9659
  (eval $ac_try) 2>&5
 
9660
  ac_status=$?
 
9661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9662
  (exit $ac_status); }; }; then
 
9663
  ac_header_compiler=yes
 
9664
else
 
9665
  echo "$as_me: failed program was:" >&5
 
9666
sed 's/^/| /' conftest.$ac_ext >&5
 
9667
 
 
9668
ac_header_compiler=no
 
9669
fi
 
9670
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9671
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9672
echo "${ECHO_T}$ac_header_compiler" >&6
 
9673
 
 
9674
# Is the header present?
 
9675
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9676
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
9677
cat >conftest.$ac_ext <<_ACEOF
 
9678
/* confdefs.h.  */
 
9679
_ACEOF
 
9680
cat confdefs.h >>conftest.$ac_ext
 
9681
cat >>conftest.$ac_ext <<_ACEOF
 
9682
/* end confdefs.h.  */
 
9683
#include <$ac_header>
 
9684
_ACEOF
 
9685
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9686
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9687
  ac_status=$?
 
9688
  grep -v '^ *+' conftest.er1 >conftest.err
 
9689
  rm -f conftest.er1
 
9690
  cat conftest.err >&5
 
9691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9692
  (exit $ac_status); } >/dev/null; then
 
9693
  if test -s conftest.err; then
 
9694
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9695
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
9696
  else
 
9697
    ac_cpp_err=
 
9698
  fi
 
9699
else
 
9700
  ac_cpp_err=yes
 
9701
fi
 
9702
if test -z "$ac_cpp_err"; then
 
9703
  ac_header_preproc=yes
 
9704
else
 
9705
  echo "$as_me: failed program was:" >&5
 
9706
sed 's/^/| /' conftest.$ac_ext >&5
 
9707
 
 
9708
  ac_header_preproc=no
 
9709
fi
 
9710
rm -f conftest.err conftest.$ac_ext
 
9711
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9712
echo "${ECHO_T}$ac_header_preproc" >&6
 
9713
 
 
9714
# So?  What about this header?
 
9715
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9716
  yes:no: )
 
9717
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9718
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9719
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9720
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9721
    ac_header_preproc=yes
 
9722
    ;;
 
9723
  no:yes:* )
 
9724
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9725
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9726
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9727
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9728
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9729
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9730
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9731
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9732
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9733
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9734
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9735
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9736
    (
 
9737
      cat <<\_ASBOX
 
9738
## ----------------------------------------- ##
 
9739
## Report this to http://bugzilla.quagga.net ##
 
9740
## ----------------------------------------- ##
 
9741
_ASBOX
 
9742
    ) |
 
9743
      sed "s/^/$as_me: WARNING:     /" >&2
 
9744
    ;;
 
9745
esac
 
9746
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9747
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9748
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9749
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9750
else
 
9751
  eval "$as_ac_Header=\$ac_header_preproc"
 
9752
fi
 
9753
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9754
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9755
 
 
9756
fi
 
9757
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9758
  cat >>confdefs.h <<_ACEOF
 
9759
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9760
_ACEOF
 
9761
 
 
9762
fi
 
9763
 
 
9764
done
 
9765
 
 
9766
 
 
9767
 
 
9768
 
 
9769
 
 
9770
 
 
9771
 
 
9772
 
 
9773
 
 
9774
 
 
9775
 
 
9776
 
 
9777
for ac_header in sys/socket.h netinet/in_systm.h netinet/in.h \
 
9778
                 net/if_dl.h net/netopt.h inet/nd.h net/route.h \
 
9779
                 net/if.h net/if_var.h netinet/in_var.h
 
9780
do
 
9781
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9782
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9783
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9784
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9785
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9786
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9787
fi
 
9788
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9789
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9790
else
 
9791
  # Is the header compilable?
 
9792
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9793
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
9794
cat >conftest.$ac_ext <<_ACEOF
 
9795
/* confdefs.h.  */
 
9796
_ACEOF
 
9797
cat confdefs.h >>conftest.$ac_ext
 
9798
cat >>conftest.$ac_ext <<_ACEOF
 
9799
/* end confdefs.h.  */
 
9800
$ac_includes_default
 
9801
#include <$ac_header>
 
9802
_ACEOF
 
9803
rm -f conftest.$ac_objext
 
9804
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9805
  (eval $ac_compile) 2>conftest.er1
 
9806
  ac_status=$?
 
9807
  grep -v '^ *+' conftest.er1 >conftest.err
 
9808
  rm -f conftest.er1
 
9809
  cat conftest.err >&5
 
9810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9811
  (exit $ac_status); } &&
 
9812
         { ac_try='test -z "$ac_c_werror_flag"
 
9813
                         || test ! -s conftest.err'
 
9814
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9815
  (eval $ac_try) 2>&5
 
9816
  ac_status=$?
 
9817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9818
  (exit $ac_status); }; } &&
 
9819
         { ac_try='test -s conftest.$ac_objext'
 
9820
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9821
  (eval $ac_try) 2>&5
 
9822
  ac_status=$?
 
9823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9824
  (exit $ac_status); }; }; then
 
9825
  ac_header_compiler=yes
 
9826
else
 
9827
  echo "$as_me: failed program was:" >&5
 
9828
sed 's/^/| /' conftest.$ac_ext >&5
 
9829
 
 
9830
ac_header_compiler=no
 
9831
fi
 
9832
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9833
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9834
echo "${ECHO_T}$ac_header_compiler" >&6
 
9835
 
 
9836
# Is the header present?
 
9837
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9838
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
9839
cat >conftest.$ac_ext <<_ACEOF
 
9840
/* confdefs.h.  */
 
9841
_ACEOF
 
9842
cat confdefs.h >>conftest.$ac_ext
 
9843
cat >>conftest.$ac_ext <<_ACEOF
 
9844
/* end confdefs.h.  */
 
9845
#include <$ac_header>
 
9846
_ACEOF
 
9847
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9848
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9849
  ac_status=$?
 
9850
  grep -v '^ *+' conftest.er1 >conftest.err
 
9851
  rm -f conftest.er1
 
9852
  cat conftest.err >&5
 
9853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9854
  (exit $ac_status); } >/dev/null; then
 
9855
  if test -s conftest.err; then
 
9856
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9857
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
9858
  else
 
9859
    ac_cpp_err=
 
9860
  fi
 
9861
else
 
9862
  ac_cpp_err=yes
 
9863
fi
 
9864
if test -z "$ac_cpp_err"; then
 
9865
  ac_header_preproc=yes
 
9866
else
 
9867
  echo "$as_me: failed program was:" >&5
 
9868
sed 's/^/| /' conftest.$ac_ext >&5
 
9869
 
 
9870
  ac_header_preproc=no
 
9871
fi
 
9872
rm -f conftest.err conftest.$ac_ext
 
9873
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9874
echo "${ECHO_T}$ac_header_preproc" >&6
 
9875
 
 
9876
# So?  What about this header?
 
9877
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9878
  yes:no: )
 
9879
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9880
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9881
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9882
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9883
    ac_header_preproc=yes
 
9884
    ;;
 
9885
  no:yes:* )
 
9886
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9887
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9888
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9889
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9890
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9891
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9892
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9893
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9894
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9895
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9896
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9897
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9898
    (
 
9899
      cat <<\_ASBOX
 
9900
## ----------------------------------------- ##
 
9901
## Report this to http://bugzilla.quagga.net ##
 
9902
## ----------------------------------------- ##
 
9903
_ASBOX
 
9904
    ) |
 
9905
      sed "s/^/$as_me: WARNING:     /" >&2
 
9906
    ;;
 
9907
esac
 
9908
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9909
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9910
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9911
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9912
else
 
9913
  eval "$as_ac_Header=\$ac_header_preproc"
 
9914
fi
 
9915
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9916
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9917
 
 
9918
fi
 
9919
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9920
  cat >>confdefs.h <<_ACEOF
 
9921
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9922
_ACEOF
 
9923
 
 
9924
fi
 
9925
 
 
9926
done
 
9927
 
 
9928
 
 
9929
 
 
9930
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
9931
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
9932
if test "${ac_cv_c_const+set}" = set; then
 
9933
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9934
else
 
9935
  cat >conftest.$ac_ext <<_ACEOF
 
9936
/* confdefs.h.  */
 
9937
_ACEOF
 
9938
cat confdefs.h >>conftest.$ac_ext
 
9939
cat >>conftest.$ac_ext <<_ACEOF
 
9940
/* end confdefs.h.  */
 
9941
 
 
9942
int
 
9943
main ()
 
9944
{
 
9945
/* FIXME: Include the comments suggested by Paul. */
 
9946
#ifndef __cplusplus
 
9947
  /* Ultrix mips cc rejects this.  */
 
9948
  typedef int charset[2];
 
9949
  const charset x;
 
9950
  /* SunOS 4.1.1 cc rejects this.  */
 
9951
  char const *const *ccp;
 
9952
  char **p;
 
9953
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
9954
  struct point {int x, y;};
 
9955
  static struct point const zero = {0,0};
 
9956
  /* AIX XL C 1.02.0.0 rejects this.
 
9957
     It does not let you subtract one const X* pointer from another in
 
9958
     an arm of an if-expression whose if-part is not a constant
 
9959
     expression */
 
9960
  const char *g = "string";
 
9961
  ccp = &g + (g ? g-g : 0);
 
9962
  /* HPUX 7.0 cc rejects these. */
 
9963
  ++ccp;
 
9964
  p = (char**) ccp;
 
9965
  ccp = (char const *const *) p;
 
9966
  { /* SCO 3.2v4 cc rejects this.  */
 
9967
    char *t;
 
9968
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
9969
 
 
9970
    *t++ = 0;
 
9971
  }
 
9972
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
9973
    int x[] = {25, 17};
 
9974
    const int *foo = &x[0];
 
9975
    ++foo;
 
9976
  }
 
9977
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
9978
    typedef const int *iptr;
 
9979
    iptr p = 0;
 
9980
    ++p;
 
9981
  }
 
9982
  { /* AIX XL C 1.02.0.0 rejects this saying
 
9983
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
9984
    struct s { int j; const int *ap[3]; };
 
9985
    struct s *b; b->j = 5;
 
9986
  }
 
9987
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
9988
    const int foo = 10;
 
9989
  }
 
9990
#endif
 
9991
 
 
9992
  ;
 
9993
  return 0;
 
9994
}
 
9995
_ACEOF
 
9996
rm -f conftest.$ac_objext
 
9997
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9998
  (eval $ac_compile) 2>conftest.er1
 
9999
  ac_status=$?
 
10000
  grep -v '^ *+' conftest.er1 >conftest.err
 
10001
  rm -f conftest.er1
 
10002
  cat conftest.err >&5
 
10003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10004
  (exit $ac_status); } &&
 
10005
         { ac_try='test -z "$ac_c_werror_flag"
 
10006
                         || test ! -s conftest.err'
 
10007
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10008
  (eval $ac_try) 2>&5
 
10009
  ac_status=$?
 
10010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10011
  (exit $ac_status); }; } &&
 
10012
         { ac_try='test -s conftest.$ac_objext'
 
10013
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10014
  (eval $ac_try) 2>&5
 
10015
  ac_status=$?
 
10016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10017
  (exit $ac_status); }; }; then
 
10018
  ac_cv_c_const=yes
 
10019
else
 
10020
  echo "$as_me: failed program was:" >&5
 
10021
sed 's/^/| /' conftest.$ac_ext >&5
 
10022
 
 
10023
ac_cv_c_const=no
 
10024
fi
 
10025
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10026
fi
 
10027
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
10028
echo "${ECHO_T}$ac_cv_c_const" >&6
 
10029
if test $ac_cv_c_const = no; then
 
10030
 
 
10031
cat >>confdefs.h <<\_ACEOF
 
10032
#define const
 
10033
_ACEOF
 
10034
 
 
10035
fi
 
10036
 
 
10037
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
10038
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
 
10039
if test "${ac_cv_type_signal+set}" = set; then
 
10040
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10041
else
 
10042
  cat >conftest.$ac_ext <<_ACEOF
 
10043
/* confdefs.h.  */
 
10044
_ACEOF
 
10045
cat confdefs.h >>conftest.$ac_ext
 
10046
cat >>conftest.$ac_ext <<_ACEOF
 
10047
/* end confdefs.h.  */
 
10048
#include <sys/types.h>
 
10049
#include <signal.h>
 
10050
#ifdef signal
 
10051
# undef signal
 
10052
#endif
 
10053
#ifdef __cplusplus
 
10054
extern "C" void (*signal (int, void (*)(int)))(int);
 
10055
#else
 
10056
void (*signal ()) ();
 
10057
#endif
 
10058
 
 
10059
int
 
10060
main ()
 
10061
{
 
10062
int i;
 
10063
  ;
 
10064
  return 0;
 
10065
}
 
10066
_ACEOF
 
10067
rm -f conftest.$ac_objext
 
10068
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10069
  (eval $ac_compile) 2>conftest.er1
 
10070
  ac_status=$?
 
10071
  grep -v '^ *+' conftest.er1 >conftest.err
 
10072
  rm -f conftest.er1
 
10073
  cat conftest.err >&5
 
10074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10075
  (exit $ac_status); } &&
 
10076
         { ac_try='test -z "$ac_c_werror_flag"
 
10077
                         || test ! -s conftest.err'
 
10078
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10079
  (eval $ac_try) 2>&5
 
10080
  ac_status=$?
 
10081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10082
  (exit $ac_status); }; } &&
 
10083
         { ac_try='test -s conftest.$ac_objext'
 
10084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10085
  (eval $ac_try) 2>&5
 
10086
  ac_status=$?
 
10087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10088
  (exit $ac_status); }; }; then
 
10089
  ac_cv_type_signal=void
 
10090
else
 
10091
  echo "$as_me: failed program was:" >&5
 
10092
sed 's/^/| /' conftest.$ac_ext >&5
 
10093
 
 
10094
ac_cv_type_signal=int
 
10095
fi
 
10096
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10097
fi
 
10098
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
10099
echo "${ECHO_T}$ac_cv_type_signal" >&6
 
10100
 
 
10101
cat >>confdefs.h <<_ACEOF
 
10102
#define RETSIGTYPE $ac_cv_type_signal
 
10103
_ACEOF
 
10104
 
 
10105
 
 
10106
 
 
10107
case "$host" in
 
10108
  *-sunos5.[6-7]* | *-solaris2.[6-7]*)
 
10109
      opsys=sol2-6
 
10110
 
 
10111
cat >>confdefs.h <<\_ACEOF
 
10112
#define SUNOS_56 1
 
10113
_ACEOF
 
10114
 
 
10115
 
 
10116
cat >>confdefs.h <<\_ACEOF
 
10117
#define SUNOS_5 1
 
10118
_ACEOF
 
10119
 
 
10120
 
 
10121
echo "$as_me:$LINENO: checking for main in -lxnet" >&5
 
10122
echo $ECHO_N "checking for main in -lxnet... $ECHO_C" >&6
 
10123
if test "${ac_cv_lib_xnet_main+set}" = set; then
 
10124
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10125
else
 
10126
  ac_check_lib_save_LIBS=$LIBS
 
10127
LIBS="-lxnet  $LIBS"
 
10128
cat >conftest.$ac_ext <<_ACEOF
 
10129
/* confdefs.h.  */
 
10130
_ACEOF
 
10131
cat confdefs.h >>conftest.$ac_ext
 
10132
cat >>conftest.$ac_ext <<_ACEOF
 
10133
/* end confdefs.h.  */
 
10134
 
 
10135
 
 
10136
int
 
10137
main ()
 
10138
{
 
10139
main ();
 
10140
  ;
 
10141
  return 0;
 
10142
}
 
10143
_ACEOF
 
10144
rm -f conftest.$ac_objext conftest$ac_exeext
 
10145
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10146
  (eval $ac_link) 2>conftest.er1
 
10147
  ac_status=$?
 
10148
  grep -v '^ *+' conftest.er1 >conftest.err
 
10149
  rm -f conftest.er1
 
10150
  cat conftest.err >&5
 
10151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10152
  (exit $ac_status); } &&
 
10153
         { ac_try='test -z "$ac_c_werror_flag"
 
10154
                         || test ! -s conftest.err'
 
10155
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10156
  (eval $ac_try) 2>&5
 
10157
  ac_status=$?
 
10158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10159
  (exit $ac_status); }; } &&
 
10160
         { ac_try='test -s conftest$ac_exeext'
 
10161
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10162
  (eval $ac_try) 2>&5
 
10163
  ac_status=$?
 
10164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10165
  (exit $ac_status); }; }; then
 
10166
  ac_cv_lib_xnet_main=yes
 
10167
else
 
10168
  echo "$as_me: failed program was:" >&5
 
10169
sed 's/^/| /' conftest.$ac_ext >&5
 
10170
 
 
10171
ac_cv_lib_xnet_main=no
 
10172
fi
 
10173
rm -f conftest.err conftest.$ac_objext \
 
10174
      conftest$ac_exeext conftest.$ac_ext
 
10175
LIBS=$ac_check_lib_save_LIBS
 
10176
fi
 
10177
echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_main" >&5
 
10178
echo "${ECHO_T}$ac_cv_lib_xnet_main" >&6
 
10179
if test $ac_cv_lib_xnet_main = yes; then
 
10180
  cat >>confdefs.h <<_ACEOF
 
10181
#define HAVE_LIBXNET 1
 
10182
_ACEOF
 
10183
 
 
10184
  LIBS="-lxnet $LIBS"
 
10185
 
 
10186
fi
 
10187
 
 
10188
      CURSES=-lcurses
 
10189
  ;;
 
10190
  *-sunos5.[8-9] \
 
10191
  | *-sunos5.1[0-9] \
 
10192
  | *-sunos5.1[0-9].[0-9] \
 
10193
  | *-solaris2.[8-9] \
 
10194
  | *-solaris2.1[0-9] \
 
10195
  | *-solaris2.1[0-9].[0-9])
 
10196
      opsys=sol8
 
10197
 
 
10198
cat >>confdefs.h <<\_ACEOF
 
10199
#define SUNOS_59
 
10200
_ACEOF
 
10201
 
 
10202
 
 
10203
cat >>confdefs.h <<\_ACEOF
 
10204
#define SUNOS_5 1
 
10205
_ACEOF
 
10206
 
 
10207
 
 
10208
echo "$as_me:$LINENO: checking for main in -lsocket" >&5
 
10209
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
 
10210
if test "${ac_cv_lib_socket_main+set}" = set; then
 
10211
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10212
else
 
10213
  ac_check_lib_save_LIBS=$LIBS
 
10214
LIBS="-lsocket  $LIBS"
 
10215
cat >conftest.$ac_ext <<_ACEOF
 
10216
/* confdefs.h.  */
 
10217
_ACEOF
 
10218
cat confdefs.h >>conftest.$ac_ext
 
10219
cat >>conftest.$ac_ext <<_ACEOF
 
10220
/* end confdefs.h.  */
 
10221
 
 
10222
 
 
10223
int
 
10224
main ()
 
10225
{
 
10226
main ();
 
10227
  ;
 
10228
  return 0;
 
10229
}
 
10230
_ACEOF
 
10231
rm -f conftest.$ac_objext conftest$ac_exeext
 
10232
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10233
  (eval $ac_link) 2>conftest.er1
 
10234
  ac_status=$?
 
10235
  grep -v '^ *+' conftest.er1 >conftest.err
 
10236
  rm -f conftest.er1
 
10237
  cat conftest.err >&5
 
10238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10239
  (exit $ac_status); } &&
 
10240
         { ac_try='test -z "$ac_c_werror_flag"
 
10241
                         || test ! -s conftest.err'
 
10242
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10243
  (eval $ac_try) 2>&5
 
10244
  ac_status=$?
 
10245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10246
  (exit $ac_status); }; } &&
 
10247
         { ac_try='test -s conftest$ac_exeext'
 
10248
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10249
  (eval $ac_try) 2>&5
 
10250
  ac_status=$?
 
10251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10252
  (exit $ac_status); }; }; then
 
10253
  ac_cv_lib_socket_main=yes
 
10254
else
 
10255
  echo "$as_me: failed program was:" >&5
 
10256
sed 's/^/| /' conftest.$ac_ext >&5
 
10257
 
 
10258
ac_cv_lib_socket_main=no
 
10259
fi
 
10260
rm -f conftest.err conftest.$ac_objext \
 
10261
      conftest$ac_exeext conftest.$ac_ext
 
10262
LIBS=$ac_check_lib_save_LIBS
 
10263
fi
 
10264
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
 
10265
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
 
10266
if test $ac_cv_lib_socket_main = yes; then
 
10267
  cat >>confdefs.h <<_ACEOF
 
10268
#define HAVE_LIBSOCKET 1
 
10269
_ACEOF
 
10270
 
 
10271
  LIBS="-lsocket $LIBS"
 
10272
 
 
10273
fi
 
10274
 
 
10275
 
 
10276
echo "$as_me:$LINENO: checking for main in -lnsl" >&5
 
10277
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
 
10278
if test "${ac_cv_lib_nsl_main+set}" = set; then
 
10279
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10280
else
 
10281
  ac_check_lib_save_LIBS=$LIBS
 
10282
LIBS="-lnsl  $LIBS"
 
10283
cat >conftest.$ac_ext <<_ACEOF
 
10284
/* confdefs.h.  */
 
10285
_ACEOF
 
10286
cat confdefs.h >>conftest.$ac_ext
 
10287
cat >>conftest.$ac_ext <<_ACEOF
 
10288
/* end confdefs.h.  */
 
10289
 
 
10290
 
 
10291
int
 
10292
main ()
 
10293
{
 
10294
main ();
 
10295
  ;
 
10296
  return 0;
 
10297
}
 
10298
_ACEOF
 
10299
rm -f conftest.$ac_objext conftest$ac_exeext
 
10300
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10301
  (eval $ac_link) 2>conftest.er1
 
10302
  ac_status=$?
 
10303
  grep -v '^ *+' conftest.er1 >conftest.err
 
10304
  rm -f conftest.er1
 
10305
  cat conftest.err >&5
 
10306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10307
  (exit $ac_status); } &&
 
10308
         { ac_try='test -z "$ac_c_werror_flag"
 
10309
                         || test ! -s conftest.err'
 
10310
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10311
  (eval $ac_try) 2>&5
 
10312
  ac_status=$?
 
10313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10314
  (exit $ac_status); }; } &&
 
10315
         { ac_try='test -s conftest$ac_exeext'
 
10316
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10317
  (eval $ac_try) 2>&5
 
10318
  ac_status=$?
 
10319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10320
  (exit $ac_status); }; }; then
 
10321
  ac_cv_lib_nsl_main=yes
 
10322
else
 
10323
  echo "$as_me: failed program was:" >&5
 
10324
sed 's/^/| /' conftest.$ac_ext >&5
 
10325
 
 
10326
ac_cv_lib_nsl_main=no
 
10327
fi
 
10328
rm -f conftest.err conftest.$ac_objext \
 
10329
      conftest$ac_exeext conftest.$ac_ext
 
10330
LIBS=$ac_check_lib_save_LIBS
 
10331
fi
 
10332
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
 
10333
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
 
10334
if test $ac_cv_lib_nsl_main = yes; then
 
10335
  cat >>confdefs.h <<_ACEOF
 
10336
#define HAVE_LIBNSL 1
 
10337
_ACEOF
 
10338
 
 
10339
  LIBS="-lnsl $LIBS"
 
10340
 
 
10341
fi
 
10342
 
 
10343
 
 
10344
echo "$as_me:$LINENO: checking for main in -lumem" >&5
 
10345
echo $ECHO_N "checking for main in -lumem... $ECHO_C" >&6
 
10346
if test "${ac_cv_lib_umem_main+set}" = set; then
 
10347
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10348
else
 
10349
  ac_check_lib_save_LIBS=$LIBS
 
10350
LIBS="-lumem  $LIBS"
 
10351
cat >conftest.$ac_ext <<_ACEOF
 
10352
/* confdefs.h.  */
 
10353
_ACEOF
 
10354
cat confdefs.h >>conftest.$ac_ext
 
10355
cat >>conftest.$ac_ext <<_ACEOF
 
10356
/* end confdefs.h.  */
 
10357
 
 
10358
 
 
10359
int
 
10360
main ()
 
10361
{
 
10362
main ();
 
10363
  ;
 
10364
  return 0;
 
10365
}
 
10366
_ACEOF
 
10367
rm -f conftest.$ac_objext conftest$ac_exeext
 
10368
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10369
  (eval $ac_link) 2>conftest.er1
 
10370
  ac_status=$?
 
10371
  grep -v '^ *+' conftest.er1 >conftest.err
 
10372
  rm -f conftest.er1
 
10373
  cat conftest.err >&5
 
10374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10375
  (exit $ac_status); } &&
 
10376
         { ac_try='test -z "$ac_c_werror_flag"
 
10377
                         || test ! -s conftest.err'
 
10378
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10379
  (eval $ac_try) 2>&5
 
10380
  ac_status=$?
 
10381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10382
  (exit $ac_status); }; } &&
 
10383
         { ac_try='test -s conftest$ac_exeext'
 
10384
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10385
  (eval $ac_try) 2>&5
 
10386
  ac_status=$?
 
10387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10388
  (exit $ac_status); }; }; then
 
10389
  ac_cv_lib_umem_main=yes
 
10390
else
 
10391
  echo "$as_me: failed program was:" >&5
 
10392
sed 's/^/| /' conftest.$ac_ext >&5
 
10393
 
 
10394
ac_cv_lib_umem_main=no
 
10395
fi
 
10396
rm -f conftest.err conftest.$ac_objext \
 
10397
      conftest$ac_exeext conftest.$ac_ext
 
10398
LIBS=$ac_check_lib_save_LIBS
 
10399
fi
 
10400
echo "$as_me:$LINENO: result: $ac_cv_lib_umem_main" >&5
 
10401
echo "${ECHO_T}$ac_cv_lib_umem_main" >&6
 
10402
if test $ac_cv_lib_umem_main = yes; then
 
10403
  cat >>confdefs.h <<_ACEOF
 
10404
#define HAVE_LIBUMEM 1
 
10405
_ACEOF
 
10406
 
 
10407
  LIBS="-lumem $LIBS"
 
10408
 
 
10409
fi
 
10410
 
 
10411
      CURSES=-lcurses
 
10412
  ;;
 
10413
  *-sunos5* | *-solaris2*)
 
10414
 
 
10415
cat >>confdefs.h <<\_ACEOF
 
10416
#define SUNOS_5 1
 
10417
_ACEOF
 
10418
 
 
10419
 
 
10420
echo "$as_me:$LINENO: checking for main in -lsocket" >&5
 
10421
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
 
10422
if test "${ac_cv_lib_socket_main+set}" = set; then
 
10423
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10424
else
 
10425
  ac_check_lib_save_LIBS=$LIBS
 
10426
LIBS="-lsocket  $LIBS"
 
10427
cat >conftest.$ac_ext <<_ACEOF
 
10428
/* confdefs.h.  */
 
10429
_ACEOF
 
10430
cat confdefs.h >>conftest.$ac_ext
 
10431
cat >>conftest.$ac_ext <<_ACEOF
 
10432
/* end confdefs.h.  */
 
10433
 
 
10434
 
 
10435
int
 
10436
main ()
 
10437
{
 
10438
main ();
 
10439
  ;
 
10440
  return 0;
 
10441
}
 
10442
_ACEOF
 
10443
rm -f conftest.$ac_objext conftest$ac_exeext
 
10444
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10445
  (eval $ac_link) 2>conftest.er1
 
10446
  ac_status=$?
 
10447
  grep -v '^ *+' conftest.er1 >conftest.err
 
10448
  rm -f conftest.er1
 
10449
  cat conftest.err >&5
 
10450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10451
  (exit $ac_status); } &&
 
10452
         { ac_try='test -z "$ac_c_werror_flag"
 
10453
                         || test ! -s conftest.err'
 
10454
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10455
  (eval $ac_try) 2>&5
 
10456
  ac_status=$?
 
10457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10458
  (exit $ac_status); }; } &&
 
10459
         { ac_try='test -s conftest$ac_exeext'
 
10460
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10461
  (eval $ac_try) 2>&5
 
10462
  ac_status=$?
 
10463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10464
  (exit $ac_status); }; }; then
 
10465
  ac_cv_lib_socket_main=yes
 
10466
else
 
10467
  echo "$as_me: failed program was:" >&5
 
10468
sed 's/^/| /' conftest.$ac_ext >&5
 
10469
 
 
10470
ac_cv_lib_socket_main=no
 
10471
fi
 
10472
rm -f conftest.err conftest.$ac_objext \
 
10473
      conftest$ac_exeext conftest.$ac_ext
 
10474
LIBS=$ac_check_lib_save_LIBS
 
10475
fi
 
10476
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
 
10477
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
 
10478
if test $ac_cv_lib_socket_main = yes; then
 
10479
  cat >>confdefs.h <<_ACEOF
 
10480
#define HAVE_LIBSOCKET 1
 
10481
_ACEOF
 
10482
 
 
10483
  LIBS="-lsocket $LIBS"
 
10484
 
 
10485
fi
 
10486
 
 
10487
 
 
10488
echo "$as_me:$LINENO: checking for main in -lnsl" >&5
 
10489
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
 
10490
if test "${ac_cv_lib_nsl_main+set}" = set; then
 
10491
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10492
else
 
10493
  ac_check_lib_save_LIBS=$LIBS
 
10494
LIBS="-lnsl  $LIBS"
 
10495
cat >conftest.$ac_ext <<_ACEOF
 
10496
/* confdefs.h.  */
 
10497
_ACEOF
 
10498
cat confdefs.h >>conftest.$ac_ext
 
10499
cat >>conftest.$ac_ext <<_ACEOF
 
10500
/* end confdefs.h.  */
 
10501
 
 
10502
 
 
10503
int
 
10504
main ()
 
10505
{
 
10506
main ();
 
10507
  ;
 
10508
  return 0;
 
10509
}
 
10510
_ACEOF
 
10511
rm -f conftest.$ac_objext conftest$ac_exeext
 
10512
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10513
  (eval $ac_link) 2>conftest.er1
 
10514
  ac_status=$?
 
10515
  grep -v '^ *+' conftest.er1 >conftest.err
 
10516
  rm -f conftest.er1
 
10517
  cat conftest.err >&5
 
10518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10519
  (exit $ac_status); } &&
 
10520
         { ac_try='test -z "$ac_c_werror_flag"
 
10521
                         || test ! -s conftest.err'
 
10522
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10523
  (eval $ac_try) 2>&5
 
10524
  ac_status=$?
 
10525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10526
  (exit $ac_status); }; } &&
 
10527
         { ac_try='test -s conftest$ac_exeext'
 
10528
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10529
  (eval $ac_try) 2>&5
 
10530
  ac_status=$?
 
10531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10532
  (exit $ac_status); }; }; then
 
10533
  ac_cv_lib_nsl_main=yes
 
10534
else
 
10535
  echo "$as_me: failed program was:" >&5
 
10536
sed 's/^/| /' conftest.$ac_ext >&5
 
10537
 
 
10538
ac_cv_lib_nsl_main=no
 
10539
fi
 
10540
rm -f conftest.err conftest.$ac_objext \
 
10541
      conftest$ac_exeext conftest.$ac_ext
 
10542
LIBS=$ac_check_lib_save_LIBS
 
10543
fi
 
10544
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
 
10545
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
 
10546
if test $ac_cv_lib_nsl_main = yes; then
 
10547
  cat >>confdefs.h <<_ACEOF
 
10548
#define HAVE_LIBNSL 1
 
10549
_ACEOF
 
10550
 
 
10551
  LIBS="-lnsl $LIBS"
 
10552
 
 
10553
fi
 
10554
 
 
10555
      CURSES=-lcurses
 
10556
  ;;
 
10557
  *-linux*)
 
10558
      opsys=gnu-linux
 
10559
 
 
10560
cat >>confdefs.h <<\_ACEOF
 
10561
#define GNU_LINUX
 
10562
_ACEOF
 
10563
 
 
10564
  ;;
 
10565
  *-nec-sysv4*)
 
10566
 
 
10567
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
 
10568
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
 
10569
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
 
10570
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10571
else
 
10572
  ac_check_lib_save_LIBS=$LIBS
 
10573
LIBS="-lnsl  $LIBS"
 
10574
cat >conftest.$ac_ext <<_ACEOF
 
10575
/* confdefs.h.  */
 
10576
_ACEOF
 
10577
cat confdefs.h >>conftest.$ac_ext
 
10578
cat >>conftest.$ac_ext <<_ACEOF
 
10579
/* end confdefs.h.  */
 
10580
 
 
10581
/* Override any gcc2 internal prototype to avoid an error.  */
 
10582
#ifdef __cplusplus
 
10583
extern "C"
 
10584
#endif
 
10585
/* We use char because int might match the return type of a gcc2
 
10586
   builtin and then its argument prototype would still apply.  */
 
10587
char gethostbyname ();
 
10588
int
 
10589
main ()
 
10590
{
 
10591
gethostbyname ();
 
10592
  ;
 
10593
  return 0;
 
10594
}
 
10595
_ACEOF
 
10596
rm -f conftest.$ac_objext conftest$ac_exeext
 
10597
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10598
  (eval $ac_link) 2>conftest.er1
 
10599
  ac_status=$?
 
10600
  grep -v '^ *+' conftest.er1 >conftest.err
 
10601
  rm -f conftest.er1
 
10602
  cat conftest.err >&5
 
10603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10604
  (exit $ac_status); } &&
 
10605
         { ac_try='test -z "$ac_c_werror_flag"
 
10606
                         || test ! -s conftest.err'
 
10607
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10608
  (eval $ac_try) 2>&5
 
10609
  ac_status=$?
 
10610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10611
  (exit $ac_status); }; } &&
 
10612
         { ac_try='test -s conftest$ac_exeext'
 
10613
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10614
  (eval $ac_try) 2>&5
 
10615
  ac_status=$?
 
10616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10617
  (exit $ac_status); }; }; then
 
10618
  ac_cv_lib_nsl_gethostbyname=yes
 
10619
else
 
10620
  echo "$as_me: failed program was:" >&5
 
10621
sed 's/^/| /' conftest.$ac_ext >&5
 
10622
 
 
10623
ac_cv_lib_nsl_gethostbyname=no
 
10624
fi
 
10625
rm -f conftest.err conftest.$ac_objext \
 
10626
      conftest$ac_exeext conftest.$ac_ext
 
10627
LIBS=$ac_check_lib_save_LIBS
 
10628
fi
 
10629
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
10630
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
 
10631
if test $ac_cv_lib_nsl_gethostbyname = yes; then
 
10632
  cat >>confdefs.h <<_ACEOF
 
10633
#define HAVE_LIBNSL 1
 
10634
_ACEOF
 
10635
 
 
10636
  LIBS="-lnsl $LIBS"
 
10637
 
 
10638
fi
 
10639
 
 
10640
 
 
10641
echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
 
10642
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
 
10643
if test "${ac_cv_lib_socket_socket+set}" = set; then
 
10644
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10645
else
 
10646
  ac_check_lib_save_LIBS=$LIBS
 
10647
LIBS="-lsocket  $LIBS"
 
10648
cat >conftest.$ac_ext <<_ACEOF
 
10649
/* confdefs.h.  */
 
10650
_ACEOF
 
10651
cat confdefs.h >>conftest.$ac_ext
 
10652
cat >>conftest.$ac_ext <<_ACEOF
 
10653
/* end confdefs.h.  */
 
10654
 
 
10655
/* Override any gcc2 internal prototype to avoid an error.  */
 
10656
#ifdef __cplusplus
 
10657
extern "C"
 
10658
#endif
 
10659
/* We use char because int might match the return type of a gcc2
 
10660
   builtin and then its argument prototype would still apply.  */
 
10661
char socket ();
 
10662
int
 
10663
main ()
 
10664
{
 
10665
socket ();
 
10666
  ;
 
10667
  return 0;
 
10668
}
 
10669
_ACEOF
 
10670
rm -f conftest.$ac_objext conftest$ac_exeext
 
10671
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10672
  (eval $ac_link) 2>conftest.er1
 
10673
  ac_status=$?
 
10674
  grep -v '^ *+' conftest.er1 >conftest.err
 
10675
  rm -f conftest.er1
 
10676
  cat conftest.err >&5
 
10677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10678
  (exit $ac_status); } &&
 
10679
         { ac_try='test -z "$ac_c_werror_flag"
 
10680
                         || test ! -s conftest.err'
 
10681
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10682
  (eval $ac_try) 2>&5
 
10683
  ac_status=$?
 
10684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10685
  (exit $ac_status); }; } &&
 
10686
         { ac_try='test -s conftest$ac_exeext'
 
10687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10688
  (eval $ac_try) 2>&5
 
10689
  ac_status=$?
 
10690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10691
  (exit $ac_status); }; }; then
 
10692
  ac_cv_lib_socket_socket=yes
 
10693
else
 
10694
  echo "$as_me: failed program was:" >&5
 
10695
sed 's/^/| /' conftest.$ac_ext >&5
 
10696
 
 
10697
ac_cv_lib_socket_socket=no
 
10698
fi
 
10699
rm -f conftest.err conftest.$ac_objext \
 
10700
      conftest$ac_exeext conftest.$ac_ext
 
10701
LIBS=$ac_check_lib_save_LIBS
 
10702
fi
 
10703
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
 
10704
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
 
10705
if test $ac_cv_lib_socket_socket = yes; then
 
10706
  cat >>confdefs.h <<_ACEOF
 
10707
#define HAVE_LIBSOCKET 1
 
10708
_ACEOF
 
10709
 
 
10710
  LIBS="-lsocket $LIBS"
 
10711
 
 
10712
fi
 
10713
 
 
10714
  ;;
 
10715
  *-freebsd3.2)
 
10716
 
 
10717
cat >>confdefs.h <<\_ACEOF
 
10718
#define FREEBSD_32
 
10719
_ACEOF
 
10720
 
 
10721
  ;;
 
10722
  *-openbsd*)
 
10723
      opsys=openbsd
 
10724
 
 
10725
cat >>confdefs.h <<\_ACEOF
 
10726
#define OPEN_BSD
 
10727
_ACEOF
 
10728
 
 
10729
  ;;
 
10730
  *-bsdi*)
 
10731
      opsys=bsdi
 
10732
      OTHER_METHOD="mtu_kvm.o"
 
10733
 
 
10734
echo "$as_me:$LINENO: checking for main in -lkvm" >&5
 
10735
echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6
 
10736
if test "${ac_cv_lib_kvm_main+set}" = set; then
 
10737
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10738
else
 
10739
  ac_check_lib_save_LIBS=$LIBS
 
10740
LIBS="-lkvm  $LIBS"
 
10741
cat >conftest.$ac_ext <<_ACEOF
 
10742
/* confdefs.h.  */
 
10743
_ACEOF
 
10744
cat confdefs.h >>conftest.$ac_ext
 
10745
cat >>conftest.$ac_ext <<_ACEOF
 
10746
/* end confdefs.h.  */
 
10747
 
 
10748
 
 
10749
int
 
10750
main ()
 
10751
{
 
10752
main ();
 
10753
  ;
 
10754
  return 0;
 
10755
}
 
10756
_ACEOF
 
10757
rm -f conftest.$ac_objext conftest$ac_exeext
 
10758
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10759
  (eval $ac_link) 2>conftest.er1
 
10760
  ac_status=$?
 
10761
  grep -v '^ *+' conftest.er1 >conftest.err
 
10762
  rm -f conftest.er1
 
10763
  cat conftest.err >&5
 
10764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10765
  (exit $ac_status); } &&
 
10766
         { ac_try='test -z "$ac_c_werror_flag"
 
10767
                         || test ! -s conftest.err'
 
10768
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10769
  (eval $ac_try) 2>&5
 
10770
  ac_status=$?
 
10771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10772
  (exit $ac_status); }; } &&
 
10773
         { ac_try='test -s conftest$ac_exeext'
 
10774
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10775
  (eval $ac_try) 2>&5
 
10776
  ac_status=$?
 
10777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10778
  (exit $ac_status); }; }; then
 
10779
  ac_cv_lib_kvm_main=yes
 
10780
else
 
10781
  echo "$as_me: failed program was:" >&5
 
10782
sed 's/^/| /' conftest.$ac_ext >&5
 
10783
 
 
10784
ac_cv_lib_kvm_main=no
 
10785
fi
 
10786
rm -f conftest.err conftest.$ac_objext \
 
10787
      conftest$ac_exeext conftest.$ac_ext
 
10788
LIBS=$ac_check_lib_save_LIBS
 
10789
fi
 
10790
echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5
 
10791
echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6
 
10792
if test $ac_cv_lib_kvm_main = yes; then
 
10793
  cat >>confdefs.h <<_ACEOF
 
10794
#define HAVE_LIBKVM 1
 
10795
_ACEOF
 
10796
 
 
10797
  LIBS="-lkvm $LIBS"
 
10798
 
 
10799
fi
 
10800
 
 
10801
  ;;
 
10802
  *-irix6.5)
 
10803
      opsys=irix
 
10804
 
 
10805
cat >>confdefs.h <<\_ACEOF
 
10806
#define IRIX_65
 
10807
_ACEOF
 
10808
 
 
10809
  ;;
 
10810
esac
 
10811
 
 
10812
case "${enable_vtysh}" in
 
10813
  "yes") VTYSH="vtysh";
 
10814
 
 
10815
cat >>confdefs.h <<\_ACEOF
 
10816
#define VTYSH
 
10817
_ACEOF
 
10818
 
 
10819
         # Extract the first word of "perl", so it can be a program name with args.
 
10820
set dummy perl; ac_word=$2
 
10821
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10822
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
10823
if test "${ac_cv_path_PERL+set}" = set; then
 
10824
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10825
else
 
10826
  case $PERL in
 
10827
  [\\/]* | ?:[\\/]*)
 
10828
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
 
10829
  ;;
 
10830
  *)
 
10831
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10832
for as_dir in $PATH
 
10833
do
 
10834
  IFS=$as_save_IFS
 
10835
  test -z "$as_dir" && as_dir=.
 
10836
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10837
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
10838
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
 
10839
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10840
    break 2
 
10841
  fi
 
10842
done
 
10843
done
 
10844
 
 
10845
  ;;
 
10846
esac
 
10847
fi
 
10848
PERL=$ac_cv_path_PERL
 
10849
 
 
10850
if test -n "$PERL"; then
 
10851
  echo "$as_me:$LINENO: result: $PERL" >&5
 
10852
echo "${ECHO_T}$PERL" >&6
 
10853
else
 
10854
  echo "$as_me:$LINENO: result: no" >&5
 
10855
echo "${ECHO_T}no" >&6
 
10856
fi
 
10857
 
 
10858
 
 
10859
echo "$as_me:$LINENO: checking for tputs in -ltermcap" >&5
 
10860
echo $ECHO_N "checking for tputs in -ltermcap... $ECHO_C" >&6
 
10861
if test "${ac_cv_lib_termcap_tputs+set}" = set; then
 
10862
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10863
else
 
10864
  ac_check_lib_save_LIBS=$LIBS
 
10865
LIBS="-ltermcap  $LIBS"
 
10866
cat >conftest.$ac_ext <<_ACEOF
 
10867
/* confdefs.h.  */
 
10868
_ACEOF
 
10869
cat confdefs.h >>conftest.$ac_ext
 
10870
cat >>conftest.$ac_ext <<_ACEOF
 
10871
/* end confdefs.h.  */
 
10872
 
 
10873
/* Override any gcc2 internal prototype to avoid an error.  */
 
10874
#ifdef __cplusplus
 
10875
extern "C"
 
10876
#endif
 
10877
/* We use char because int might match the return type of a gcc2
 
10878
   builtin and then its argument prototype would still apply.  */
 
10879
char tputs ();
 
10880
int
 
10881
main ()
 
10882
{
 
10883
tputs ();
 
10884
  ;
 
10885
  return 0;
 
10886
}
 
10887
_ACEOF
 
10888
rm -f conftest.$ac_objext conftest$ac_exeext
 
10889
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10890
  (eval $ac_link) 2>conftest.er1
 
10891
  ac_status=$?
 
10892
  grep -v '^ *+' conftest.er1 >conftest.err
 
10893
  rm -f conftest.er1
 
10894
  cat conftest.err >&5
 
10895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10896
  (exit $ac_status); } &&
 
10897
         { ac_try='test -z "$ac_c_werror_flag"
 
10898
                         || test ! -s conftest.err'
 
10899
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10900
  (eval $ac_try) 2>&5
 
10901
  ac_status=$?
 
10902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10903
  (exit $ac_status); }; } &&
 
10904
         { ac_try='test -s conftest$ac_exeext'
 
10905
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10906
  (eval $ac_try) 2>&5
 
10907
  ac_status=$?
 
10908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10909
  (exit $ac_status); }; }; then
 
10910
  ac_cv_lib_termcap_tputs=yes
 
10911
else
 
10912
  echo "$as_me: failed program was:" >&5
 
10913
sed 's/^/| /' conftest.$ac_ext >&5
 
10914
 
 
10915
ac_cv_lib_termcap_tputs=no
 
10916
fi
 
10917
rm -f conftest.err conftest.$ac_objext \
 
10918
      conftest$ac_exeext conftest.$ac_ext
 
10919
LIBS=$ac_check_lib_save_LIBS
 
10920
fi
 
10921
echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tputs" >&5
 
10922
echo "${ECHO_T}$ac_cv_lib_termcap_tputs" >&6
 
10923
if test $ac_cv_lib_termcap_tputs = yes; then
 
10924
  cat >>confdefs.h <<_ACEOF
 
10925
#define HAVE_LIBTERMCAP 1
 
10926
_ACEOF
 
10927
 
 
10928
  LIBS="-ltermcap $LIBS"
 
10929
 
 
10930
else
 
10931
 
 
10932
echo "$as_me:$LINENO: checking for tputs in -ltinfo" >&5
 
10933
echo $ECHO_N "checking for tputs in -ltinfo... $ECHO_C" >&6
 
10934
if test "${ac_cv_lib_tinfo_tputs+set}" = set; then
 
10935
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10936
else
 
10937
  ac_check_lib_save_LIBS=$LIBS
 
10938
LIBS="-ltinfo  $LIBS"
 
10939
cat >conftest.$ac_ext <<_ACEOF
 
10940
/* confdefs.h.  */
 
10941
_ACEOF
 
10942
cat confdefs.h >>conftest.$ac_ext
 
10943
cat >>conftest.$ac_ext <<_ACEOF
 
10944
/* end confdefs.h.  */
 
10945
 
 
10946
/* Override any gcc2 internal prototype to avoid an error.  */
 
10947
#ifdef __cplusplus
 
10948
extern "C"
 
10949
#endif
 
10950
/* We use char because int might match the return type of a gcc2
 
10951
   builtin and then its argument prototype would still apply.  */
 
10952
char tputs ();
 
10953
int
 
10954
main ()
 
10955
{
 
10956
tputs ();
 
10957
  ;
 
10958
  return 0;
 
10959
}
 
10960
_ACEOF
 
10961
rm -f conftest.$ac_objext conftest$ac_exeext
 
10962
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10963
  (eval $ac_link) 2>conftest.er1
 
10964
  ac_status=$?
 
10965
  grep -v '^ *+' conftest.er1 >conftest.err
 
10966
  rm -f conftest.er1
 
10967
  cat conftest.err >&5
 
10968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10969
  (exit $ac_status); } &&
 
10970
         { ac_try='test -z "$ac_c_werror_flag"
 
10971
                         || test ! -s conftest.err'
 
10972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10973
  (eval $ac_try) 2>&5
 
10974
  ac_status=$?
 
10975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10976
  (exit $ac_status); }; } &&
 
10977
         { ac_try='test -s conftest$ac_exeext'
 
10978
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10979
  (eval $ac_try) 2>&5
 
10980
  ac_status=$?
 
10981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10982
  (exit $ac_status); }; }; then
 
10983
  ac_cv_lib_tinfo_tputs=yes
 
10984
else
 
10985
  echo "$as_me: failed program was:" >&5
 
10986
sed 's/^/| /' conftest.$ac_ext >&5
 
10987
 
 
10988
ac_cv_lib_tinfo_tputs=no
 
10989
fi
 
10990
rm -f conftest.err conftest.$ac_objext \
 
10991
      conftest$ac_exeext conftest.$ac_ext
 
10992
LIBS=$ac_check_lib_save_LIBS
 
10993
fi
 
10994
echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tputs" >&5
 
10995
echo "${ECHO_T}$ac_cv_lib_tinfo_tputs" >&6
 
10996
if test $ac_cv_lib_tinfo_tputs = yes; then
 
10997
  cat >>confdefs.h <<_ACEOF
 
10998
#define HAVE_LIBTINFO 1
 
10999
_ACEOF
 
11000
 
 
11001
  LIBS="-ltinfo $LIBS"
 
11002
 
 
11003
else
 
11004
 
 
11005
echo "$as_me:$LINENO: checking for tputs in -lcurses" >&5
 
11006
echo $ECHO_N "checking for tputs in -lcurses... $ECHO_C" >&6
 
11007
if test "${ac_cv_lib_curses_tputs+set}" = set; then
 
11008
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11009
else
 
11010
  ac_check_lib_save_LIBS=$LIBS
 
11011
LIBS="-lcurses  $LIBS"
 
11012
cat >conftest.$ac_ext <<_ACEOF
 
11013
/* confdefs.h.  */
 
11014
_ACEOF
 
11015
cat confdefs.h >>conftest.$ac_ext
 
11016
cat >>conftest.$ac_ext <<_ACEOF
 
11017
/* end confdefs.h.  */
 
11018
 
 
11019
/* Override any gcc2 internal prototype to avoid an error.  */
 
11020
#ifdef __cplusplus
 
11021
extern "C"
 
11022
#endif
 
11023
/* We use char because int might match the return type of a gcc2
 
11024
   builtin and then its argument prototype would still apply.  */
 
11025
char tputs ();
 
11026
int
 
11027
main ()
 
11028
{
 
11029
tputs ();
 
11030
  ;
 
11031
  return 0;
 
11032
}
 
11033
_ACEOF
 
11034
rm -f conftest.$ac_objext conftest$ac_exeext
 
11035
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11036
  (eval $ac_link) 2>conftest.er1
 
11037
  ac_status=$?
 
11038
  grep -v '^ *+' conftest.er1 >conftest.err
 
11039
  rm -f conftest.er1
 
11040
  cat conftest.err >&5
 
11041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11042
  (exit $ac_status); } &&
 
11043
         { ac_try='test -z "$ac_c_werror_flag"
 
11044
                         || test ! -s conftest.err'
 
11045
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11046
  (eval $ac_try) 2>&5
 
11047
  ac_status=$?
 
11048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11049
  (exit $ac_status); }; } &&
 
11050
         { ac_try='test -s conftest$ac_exeext'
 
11051
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11052
  (eval $ac_try) 2>&5
 
11053
  ac_status=$?
 
11054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11055
  (exit $ac_status); }; }; then
 
11056
  ac_cv_lib_curses_tputs=yes
 
11057
else
 
11058
  echo "$as_me: failed program was:" >&5
 
11059
sed 's/^/| /' conftest.$ac_ext >&5
 
11060
 
 
11061
ac_cv_lib_curses_tputs=no
 
11062
fi
 
11063
rm -f conftest.err conftest.$ac_objext \
 
11064
      conftest$ac_exeext conftest.$ac_ext
 
11065
LIBS=$ac_check_lib_save_LIBS
 
11066
fi
 
11067
echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tputs" >&5
 
11068
echo "${ECHO_T}$ac_cv_lib_curses_tputs" >&6
 
11069
if test $ac_cv_lib_curses_tputs = yes; then
 
11070
  cat >>confdefs.h <<_ACEOF
 
11071
#define HAVE_LIBCURSES 1
 
11072
_ACEOF
 
11073
 
 
11074
  LIBS="-lcurses $LIBS"
 
11075
 
 
11076
else
 
11077
 
 
11078
echo "$as_me:$LINENO: checking for tputs in -lncurses" >&5
 
11079
echo $ECHO_N "checking for tputs in -lncurses... $ECHO_C" >&6
 
11080
if test "${ac_cv_lib_ncurses_tputs+set}" = set; then
 
11081
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11082
else
 
11083
  ac_check_lib_save_LIBS=$LIBS
 
11084
LIBS="-lncurses  $LIBS"
 
11085
cat >conftest.$ac_ext <<_ACEOF
 
11086
/* confdefs.h.  */
 
11087
_ACEOF
 
11088
cat confdefs.h >>conftest.$ac_ext
 
11089
cat >>conftest.$ac_ext <<_ACEOF
 
11090
/* end confdefs.h.  */
 
11091
 
 
11092
/* Override any gcc2 internal prototype to avoid an error.  */
 
11093
#ifdef __cplusplus
 
11094
extern "C"
 
11095
#endif
 
11096
/* We use char because int might match the return type of a gcc2
 
11097
   builtin and then its argument prototype would still apply.  */
 
11098
char tputs ();
 
11099
int
 
11100
main ()
 
11101
{
 
11102
tputs ();
 
11103
  ;
 
11104
  return 0;
 
11105
}
 
11106
_ACEOF
 
11107
rm -f conftest.$ac_objext conftest$ac_exeext
 
11108
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11109
  (eval $ac_link) 2>conftest.er1
 
11110
  ac_status=$?
 
11111
  grep -v '^ *+' conftest.er1 >conftest.err
 
11112
  rm -f conftest.er1
 
11113
  cat conftest.err >&5
 
11114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11115
  (exit $ac_status); } &&
 
11116
         { ac_try='test -z "$ac_c_werror_flag"
 
11117
                         || test ! -s conftest.err'
 
11118
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11119
  (eval $ac_try) 2>&5
 
11120
  ac_status=$?
 
11121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11122
  (exit $ac_status); }; } &&
 
11123
         { ac_try='test -s conftest$ac_exeext'
 
11124
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11125
  (eval $ac_try) 2>&5
 
11126
  ac_status=$?
 
11127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11128
  (exit $ac_status); }; }; then
 
11129
  ac_cv_lib_ncurses_tputs=yes
 
11130
else
 
11131
  echo "$as_me: failed program was:" >&5
 
11132
sed 's/^/| /' conftest.$ac_ext >&5
 
11133
 
 
11134
ac_cv_lib_ncurses_tputs=no
 
11135
fi
 
11136
rm -f conftest.err conftest.$ac_objext \
 
11137
      conftest$ac_exeext conftest.$ac_ext
 
11138
LIBS=$ac_check_lib_save_LIBS
 
11139
fi
 
11140
echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tputs" >&5
 
11141
echo "${ECHO_T}$ac_cv_lib_ncurses_tputs" >&6
 
11142
if test $ac_cv_lib_ncurses_tputs = yes; then
 
11143
  cat >>confdefs.h <<_ACEOF
 
11144
#define HAVE_LIBNCURSES 1
 
11145
_ACEOF
 
11146
 
 
11147
  LIBS="-lncurses $LIBS"
 
11148
 
 
11149
fi
 
11150
 
 
11151
fi
 
11152
 
 
11153
fi
 
11154
 
 
11155
fi
 
11156
 
 
11157
 
 
11158
echo "$as_me:$LINENO: checking for main in -lreadline" >&5
 
11159
echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
 
11160
if test "${ac_cv_lib_readline_main+set}" = set; then
 
11161
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11162
else
 
11163
  ac_check_lib_save_LIBS=$LIBS
 
11164
LIBS="-lreadline  $LIBS"
 
11165
cat >conftest.$ac_ext <<_ACEOF
 
11166
/* confdefs.h.  */
 
11167
_ACEOF
 
11168
cat confdefs.h >>conftest.$ac_ext
 
11169
cat >>conftest.$ac_ext <<_ACEOF
 
11170
/* end confdefs.h.  */
 
11171
 
 
11172
 
 
11173
int
 
11174
main ()
 
11175
{
 
11176
main ();
 
11177
  ;
 
11178
  return 0;
 
11179
}
 
11180
_ACEOF
 
11181
rm -f conftest.$ac_objext conftest$ac_exeext
 
11182
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11183
  (eval $ac_link) 2>conftest.er1
 
11184
  ac_status=$?
 
11185
  grep -v '^ *+' conftest.er1 >conftest.err
 
11186
  rm -f conftest.er1
 
11187
  cat conftest.err >&5
 
11188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11189
  (exit $ac_status); } &&
 
11190
         { ac_try='test -z "$ac_c_werror_flag"
 
11191
                         || test ! -s conftest.err'
 
11192
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11193
  (eval $ac_try) 2>&5
 
11194
  ac_status=$?
 
11195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11196
  (exit $ac_status); }; } &&
 
11197
         { ac_try='test -s conftest$ac_exeext'
 
11198
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11199
  (eval $ac_try) 2>&5
 
11200
  ac_status=$?
 
11201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11202
  (exit $ac_status); }; }; then
 
11203
  ac_cv_lib_readline_main=yes
 
11204
else
 
11205
  echo "$as_me: failed program was:" >&5
 
11206
sed 's/^/| /' conftest.$ac_ext >&5
 
11207
 
 
11208
ac_cv_lib_readline_main=no
 
11209
fi
 
11210
rm -f conftest.err conftest.$ac_objext \
 
11211
      conftest$ac_exeext conftest.$ac_ext
 
11212
LIBS=$ac_check_lib_save_LIBS
 
11213
fi
 
11214
echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
 
11215
echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
 
11216
if test $ac_cv_lib_readline_main = yes; then
 
11217
  cat >>confdefs.h <<_ACEOF
 
11218
#define HAVE_LIBREADLINE 1
 
11219
_ACEOF
 
11220
 
 
11221
  LIBS="-lreadline $LIBS"
 
11222
 
 
11223
fi
 
11224
 
 
11225
         if test $ac_cv_lib_readline_main = no; then
 
11226
           { { echo "$as_me:$LINENO: error: vtysh needs libreadline but was not found and usable on your system." >&5
 
11227
echo "$as_me: error: vtysh needs libreadline but was not found and usable on your system." >&2;}
 
11228
   { (exit 1); exit 1; }; }
 
11229
         fi
 
11230
         if test "${ac_cv_header_readline_history_h+set}" = set; then
 
11231
  echo "$as_me:$LINENO: checking for readline/history.h" >&5
 
11232
echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
 
11233
if test "${ac_cv_header_readline_history_h+set}" = set; then
 
11234
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11235
fi
 
11236
echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
 
11237
echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
 
11238
else
 
11239
  # Is the header compilable?
 
11240
echo "$as_me:$LINENO: checking readline/history.h usability" >&5
 
11241
echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6
 
11242
cat >conftest.$ac_ext <<_ACEOF
 
11243
/* confdefs.h.  */
 
11244
_ACEOF
 
11245
cat confdefs.h >>conftest.$ac_ext
 
11246
cat >>conftest.$ac_ext <<_ACEOF
 
11247
/* end confdefs.h.  */
 
11248
$ac_includes_default
 
11249
#include <readline/history.h>
 
11250
_ACEOF
 
11251
rm -f conftest.$ac_objext
 
11252
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11253
  (eval $ac_compile) 2>conftest.er1
 
11254
  ac_status=$?
 
11255
  grep -v '^ *+' conftest.er1 >conftest.err
 
11256
  rm -f conftest.er1
 
11257
  cat conftest.err >&5
 
11258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11259
  (exit $ac_status); } &&
 
11260
         { ac_try='test -z "$ac_c_werror_flag"
 
11261
                         || test ! -s conftest.err'
 
11262
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11263
  (eval $ac_try) 2>&5
 
11264
  ac_status=$?
 
11265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11266
  (exit $ac_status); }; } &&
 
11267
         { ac_try='test -s conftest.$ac_objext'
 
11268
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11269
  (eval $ac_try) 2>&5
 
11270
  ac_status=$?
 
11271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11272
  (exit $ac_status); }; }; then
 
11273
  ac_header_compiler=yes
 
11274
else
 
11275
  echo "$as_me: failed program was:" >&5
 
11276
sed 's/^/| /' conftest.$ac_ext >&5
 
11277
 
 
11278
ac_header_compiler=no
 
11279
fi
 
11280
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11281
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11282
echo "${ECHO_T}$ac_header_compiler" >&6
 
11283
 
 
11284
# Is the header present?
 
11285
echo "$as_me:$LINENO: checking readline/history.h presence" >&5
 
11286
echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6
 
11287
cat >conftest.$ac_ext <<_ACEOF
 
11288
/* confdefs.h.  */
 
11289
_ACEOF
 
11290
cat confdefs.h >>conftest.$ac_ext
 
11291
cat >>conftest.$ac_ext <<_ACEOF
 
11292
/* end confdefs.h.  */
 
11293
#include <readline/history.h>
 
11294
_ACEOF
 
11295
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11296
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11297
  ac_status=$?
 
11298
  grep -v '^ *+' conftest.er1 >conftest.err
 
11299
  rm -f conftest.er1
 
11300
  cat conftest.err >&5
 
11301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11302
  (exit $ac_status); } >/dev/null; then
 
11303
  if test -s conftest.err; then
 
11304
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11305
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
11306
  else
 
11307
    ac_cpp_err=
 
11308
  fi
 
11309
else
 
11310
  ac_cpp_err=yes
 
11311
fi
 
11312
if test -z "$ac_cpp_err"; then
 
11313
  ac_header_preproc=yes
 
11314
else
 
11315
  echo "$as_me: failed program was:" >&5
 
11316
sed 's/^/| /' conftest.$ac_ext >&5
 
11317
 
 
11318
  ac_header_preproc=no
 
11319
fi
 
11320
rm -f conftest.err conftest.$ac_ext
 
11321
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11322
echo "${ECHO_T}$ac_header_preproc" >&6
 
11323
 
 
11324
# So?  What about this header?
 
11325
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11326
  yes:no: )
 
11327
    { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
11328
echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11329
    { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the compiler's result" >&5
 
11330
echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result" >&2;}
 
11331
    ac_header_preproc=yes
 
11332
    ;;
 
11333
  no:yes:* )
 
11334
    { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
 
11335
echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
 
11336
    { echo "$as_me:$LINENO: WARNING: readline/history.h:     check for missing prerequisite headers?" >&5
 
11337
echo "$as_me: WARNING: readline/history.h:     check for missing prerequisite headers?" >&2;}
 
11338
    { echo "$as_me:$LINENO: WARNING: readline/history.h: see the Autoconf documentation" >&5
 
11339
echo "$as_me: WARNING: readline/history.h: see the Autoconf documentation" >&2;}
 
11340
    { echo "$as_me:$LINENO: WARNING: readline/history.h:     section \"Present But Cannot Be Compiled\"" >&5
 
11341
echo "$as_me: WARNING: readline/history.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11342
    { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
 
11343
echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
 
11344
    { echo "$as_me:$LINENO: WARNING: readline/history.h: in the future, the compiler will take precedence" >&5
 
11345
echo "$as_me: WARNING: readline/history.h: in the future, the compiler will take precedence" >&2;}
 
11346
    (
 
11347
      cat <<\_ASBOX
 
11348
## ----------------------------------------- ##
 
11349
## Report this to http://bugzilla.quagga.net ##
 
11350
## ----------------------------------------- ##
 
11351
_ASBOX
 
11352
    ) |
 
11353
      sed "s/^/$as_me: WARNING:     /" >&2
 
11354
    ;;
 
11355
esac
 
11356
echo "$as_me:$LINENO: checking for readline/history.h" >&5
 
11357
echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
 
11358
if test "${ac_cv_header_readline_history_h+set}" = set; then
 
11359
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11360
else
 
11361
  ac_cv_header_readline_history_h=$ac_header_preproc
 
11362
fi
 
11363
echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
 
11364
echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
 
11365
 
 
11366
fi
 
11367
 
 
11368
 
 
11369
         if test $ac_cv_header_readline_history_h = no;then
 
11370
           { { echo "$as_me:$LINENO: error: readline is too old to have readline/history.h, please update to the latest readline library." >&5
 
11371
echo "$as_me: error: readline is too old to have readline/history.h, please update to the latest readline library." >&2;}
 
11372
   { (exit 1); exit 1; }; }
 
11373
         fi
 
11374
 
 
11375
echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
 
11376
echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
 
11377
if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
 
11378
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11379
else
 
11380
  ac_check_lib_save_LIBS=$LIBS
 
11381
LIBS="-lreadline  $LIBS"
 
11382
cat >conftest.$ac_ext <<_ACEOF
 
11383
/* confdefs.h.  */
 
11384
_ACEOF
 
11385
cat confdefs.h >>conftest.$ac_ext
 
11386
cat >>conftest.$ac_ext <<_ACEOF
 
11387
/* end confdefs.h.  */
 
11388
 
 
11389
/* Override any gcc2 internal prototype to avoid an error.  */
 
11390
#ifdef __cplusplus
 
11391
extern "C"
 
11392
#endif
 
11393
/* We use char because int might match the return type of a gcc2
 
11394
   builtin and then its argument prototype would still apply.  */
 
11395
char rl_completion_matches ();
 
11396
int
 
11397
main ()
 
11398
{
 
11399
rl_completion_matches ();
 
11400
  ;
 
11401
  return 0;
 
11402
}
 
11403
_ACEOF
 
11404
rm -f conftest.$ac_objext conftest$ac_exeext
 
11405
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11406
  (eval $ac_link) 2>conftest.er1
 
11407
  ac_status=$?
 
11408
  grep -v '^ *+' conftest.er1 >conftest.err
 
11409
  rm -f conftest.er1
 
11410
  cat conftest.err >&5
 
11411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11412
  (exit $ac_status); } &&
 
11413
         { ac_try='test -z "$ac_c_werror_flag"
 
11414
                         || test ! -s conftest.err'
 
11415
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11416
  (eval $ac_try) 2>&5
 
11417
  ac_status=$?
 
11418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11419
  (exit $ac_status); }; } &&
 
11420
         { ac_try='test -s conftest$ac_exeext'
 
11421
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11422
  (eval $ac_try) 2>&5
 
11423
  ac_status=$?
 
11424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11425
  (exit $ac_status); }; }; then
 
11426
  ac_cv_lib_readline_rl_completion_matches=yes
 
11427
else
 
11428
  echo "$as_me: failed program was:" >&5
 
11429
sed 's/^/| /' conftest.$ac_ext >&5
 
11430
 
 
11431
ac_cv_lib_readline_rl_completion_matches=no
 
11432
fi
 
11433
rm -f conftest.err conftest.$ac_objext \
 
11434
      conftest$ac_exeext conftest.$ac_ext
 
11435
LIBS=$ac_check_lib_save_LIBS
 
11436
fi
 
11437
echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
 
11438
echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
 
11439
if test $ac_cv_lib_readline_rl_completion_matches = yes; then
 
11440
  cat >>confdefs.h <<_ACEOF
 
11441
#define HAVE_LIBREADLINE 1
 
11442
_ACEOF
 
11443
 
 
11444
  LIBS="-lreadline $LIBS"
 
11445
 
 
11446
fi
 
11447
 
 
11448
         if test $ac_cv_lib_readline_rl_completion_matches = no; then
 
11449
 
 
11450
cat >>confdefs.h <<\_ACEOF
 
11451
#define rl_completion_matches completion_matches
 
11452
_ACEOF
 
11453
 
 
11454
         fi
 
11455
         ;;
 
11456
  "no" ) VTYSH="";;
 
11457
  *    ) ;;
 
11458
esac
 
11459
 
 
11460
if test "$with_libpam" = "yes"; then
 
11461
  if test "${ac_cv_header_security_pam_misc_h+set}" = set; then
 
11462
  echo "$as_me:$LINENO: checking for security/pam_misc.h" >&5
 
11463
echo $ECHO_N "checking for security/pam_misc.h... $ECHO_C" >&6
 
11464
if test "${ac_cv_header_security_pam_misc_h+set}" = set; then
 
11465
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11466
fi
 
11467
echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_misc_h" >&5
 
11468
echo "${ECHO_T}$ac_cv_header_security_pam_misc_h" >&6
 
11469
else
 
11470
  # Is the header compilable?
 
11471
echo "$as_me:$LINENO: checking security/pam_misc.h usability" >&5
 
11472
echo $ECHO_N "checking security/pam_misc.h usability... $ECHO_C" >&6
 
11473
cat >conftest.$ac_ext <<_ACEOF
 
11474
/* confdefs.h.  */
 
11475
_ACEOF
 
11476
cat confdefs.h >>conftest.$ac_ext
 
11477
cat >>conftest.$ac_ext <<_ACEOF
 
11478
/* end confdefs.h.  */
 
11479
$ac_includes_default
 
11480
#include <security/pam_misc.h>
 
11481
_ACEOF
 
11482
rm -f conftest.$ac_objext
 
11483
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11484
  (eval $ac_compile) 2>conftest.er1
 
11485
  ac_status=$?
 
11486
  grep -v '^ *+' conftest.er1 >conftest.err
 
11487
  rm -f conftest.er1
 
11488
  cat conftest.err >&5
 
11489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11490
  (exit $ac_status); } &&
 
11491
         { ac_try='test -z "$ac_c_werror_flag"
 
11492
                         || test ! -s conftest.err'
 
11493
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11494
  (eval $ac_try) 2>&5
 
11495
  ac_status=$?
 
11496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11497
  (exit $ac_status); }; } &&
 
11498
         { ac_try='test -s conftest.$ac_objext'
 
11499
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11500
  (eval $ac_try) 2>&5
 
11501
  ac_status=$?
 
11502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11503
  (exit $ac_status); }; }; then
 
11504
  ac_header_compiler=yes
 
11505
else
 
11506
  echo "$as_me: failed program was:" >&5
 
11507
sed 's/^/| /' conftest.$ac_ext >&5
 
11508
 
 
11509
ac_header_compiler=no
 
11510
fi
 
11511
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11512
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11513
echo "${ECHO_T}$ac_header_compiler" >&6
 
11514
 
 
11515
# Is the header present?
 
11516
echo "$as_me:$LINENO: checking security/pam_misc.h presence" >&5
 
11517
echo $ECHO_N "checking security/pam_misc.h presence... $ECHO_C" >&6
 
11518
cat >conftest.$ac_ext <<_ACEOF
 
11519
/* confdefs.h.  */
 
11520
_ACEOF
 
11521
cat confdefs.h >>conftest.$ac_ext
 
11522
cat >>conftest.$ac_ext <<_ACEOF
 
11523
/* end confdefs.h.  */
 
11524
#include <security/pam_misc.h>
 
11525
_ACEOF
 
11526
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11527
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11528
  ac_status=$?
 
11529
  grep -v '^ *+' conftest.er1 >conftest.err
 
11530
  rm -f conftest.er1
 
11531
  cat conftest.err >&5
 
11532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11533
  (exit $ac_status); } >/dev/null; then
 
11534
  if test -s conftest.err; then
 
11535
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11536
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
11537
  else
 
11538
    ac_cpp_err=
 
11539
  fi
 
11540
else
 
11541
  ac_cpp_err=yes
 
11542
fi
 
11543
if test -z "$ac_cpp_err"; then
 
11544
  ac_header_preproc=yes
 
11545
else
 
11546
  echo "$as_me: failed program was:" >&5
 
11547
sed 's/^/| /' conftest.$ac_ext >&5
 
11548
 
 
11549
  ac_header_preproc=no
 
11550
fi
 
11551
rm -f conftest.err conftest.$ac_ext
 
11552
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11553
echo "${ECHO_T}$ac_header_preproc" >&6
 
11554
 
 
11555
# So?  What about this header?
 
11556
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11557
  yes:no: )
 
11558
    { echo "$as_me:$LINENO: WARNING: security/pam_misc.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
11559
echo "$as_me: WARNING: security/pam_misc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11560
    { echo "$as_me:$LINENO: WARNING: security/pam_misc.h: proceeding with the compiler's result" >&5
 
11561
echo "$as_me: WARNING: security/pam_misc.h: proceeding with the compiler's result" >&2;}
 
11562
    ac_header_preproc=yes
 
11563
    ;;
 
11564
  no:yes:* )
 
11565
    { echo "$as_me:$LINENO: WARNING: security/pam_misc.h: present but cannot be compiled" >&5
 
11566
echo "$as_me: WARNING: security/pam_misc.h: present but cannot be compiled" >&2;}
 
11567
    { echo "$as_me:$LINENO: WARNING: security/pam_misc.h:     check for missing prerequisite headers?" >&5
 
11568
echo "$as_me: WARNING: security/pam_misc.h:     check for missing prerequisite headers?" >&2;}
 
11569
    { echo "$as_me:$LINENO: WARNING: security/pam_misc.h: see the Autoconf documentation" >&5
 
11570
echo "$as_me: WARNING: security/pam_misc.h: see the Autoconf documentation" >&2;}
 
11571
    { echo "$as_me:$LINENO: WARNING: security/pam_misc.h:     section \"Present But Cannot Be Compiled\"" >&5
 
11572
echo "$as_me: WARNING: security/pam_misc.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11573
    { echo "$as_me:$LINENO: WARNING: security/pam_misc.h: proceeding with the preprocessor's result" >&5
 
11574
echo "$as_me: WARNING: security/pam_misc.h: proceeding with the preprocessor's result" >&2;}
 
11575
    { echo "$as_me:$LINENO: WARNING: security/pam_misc.h: in the future, the compiler will take precedence" >&5
 
11576
echo "$as_me: WARNING: security/pam_misc.h: in the future, the compiler will take precedence" >&2;}
 
11577
    (
 
11578
      cat <<\_ASBOX
 
11579
## ----------------------------------------- ##
 
11580
## Report this to http://bugzilla.quagga.net ##
 
11581
## ----------------------------------------- ##
 
11582
_ASBOX
 
11583
    ) |
 
11584
      sed "s/^/$as_me: WARNING:     /" >&2
 
11585
    ;;
 
11586
esac
 
11587
echo "$as_me:$LINENO: checking for security/pam_misc.h" >&5
 
11588
echo $ECHO_N "checking for security/pam_misc.h... $ECHO_C" >&6
 
11589
if test "${ac_cv_header_security_pam_misc_h+set}" = set; then
 
11590
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11591
else
 
11592
  ac_cv_header_security_pam_misc_h=$ac_header_preproc
 
11593
fi
 
11594
echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_misc_h" >&5
 
11595
echo "${ECHO_T}$ac_cv_header_security_pam_misc_h" >&6
 
11596
 
 
11597
fi
 
11598
 
 
11599
 
 
11600
  if test "$ac_cv_header_security_pam_misc_h" = yes; then
 
11601
 
 
11602
cat >>confdefs.h <<\_ACEOF
 
11603
#define HAVE_PAM_MISC_H
 
11604
_ACEOF
 
11605
 
 
11606
 
 
11607
cat >>confdefs.h <<\_ACEOF
 
11608
#define PAM_CONV_FUNC misc_conv
 
11609
_ACEOF
 
11610
 
 
11611
    pam_conv_func="misc_conv"
 
11612
  fi
 
11613
  if test "${ac_cv_header_security_openpam_h+set}" = set; then
 
11614
  echo "$as_me:$LINENO: checking for security/openpam.h" >&5
 
11615
echo $ECHO_N "checking for security/openpam.h... $ECHO_C" >&6
 
11616
if test "${ac_cv_header_security_openpam_h+set}" = set; then
 
11617
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11618
fi
 
11619
echo "$as_me:$LINENO: result: $ac_cv_header_security_openpam_h" >&5
 
11620
echo "${ECHO_T}$ac_cv_header_security_openpam_h" >&6
 
11621
else
 
11622
  # Is the header compilable?
 
11623
echo "$as_me:$LINENO: checking security/openpam.h usability" >&5
 
11624
echo $ECHO_N "checking security/openpam.h usability... $ECHO_C" >&6
 
11625
cat >conftest.$ac_ext <<_ACEOF
 
11626
/* confdefs.h.  */
 
11627
_ACEOF
 
11628
cat confdefs.h >>conftest.$ac_ext
 
11629
cat >>conftest.$ac_ext <<_ACEOF
 
11630
/* end confdefs.h.  */
 
11631
$ac_includes_default
 
11632
#include <security/openpam.h>
 
11633
_ACEOF
 
11634
rm -f conftest.$ac_objext
 
11635
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11636
  (eval $ac_compile) 2>conftest.er1
 
11637
  ac_status=$?
 
11638
  grep -v '^ *+' conftest.er1 >conftest.err
 
11639
  rm -f conftest.er1
 
11640
  cat conftest.err >&5
 
11641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11642
  (exit $ac_status); } &&
 
11643
         { ac_try='test -z "$ac_c_werror_flag"
 
11644
                         || test ! -s conftest.err'
 
11645
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11646
  (eval $ac_try) 2>&5
 
11647
  ac_status=$?
 
11648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11649
  (exit $ac_status); }; } &&
 
11650
         { ac_try='test -s conftest.$ac_objext'
 
11651
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11652
  (eval $ac_try) 2>&5
 
11653
  ac_status=$?
 
11654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11655
  (exit $ac_status); }; }; then
 
11656
  ac_header_compiler=yes
 
11657
else
 
11658
  echo "$as_me: failed program was:" >&5
 
11659
sed 's/^/| /' conftest.$ac_ext >&5
 
11660
 
 
11661
ac_header_compiler=no
 
11662
fi
 
11663
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11664
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11665
echo "${ECHO_T}$ac_header_compiler" >&6
 
11666
 
 
11667
# Is the header present?
 
11668
echo "$as_me:$LINENO: checking security/openpam.h presence" >&5
 
11669
echo $ECHO_N "checking security/openpam.h presence... $ECHO_C" >&6
 
11670
cat >conftest.$ac_ext <<_ACEOF
 
11671
/* confdefs.h.  */
 
11672
_ACEOF
 
11673
cat confdefs.h >>conftest.$ac_ext
 
11674
cat >>conftest.$ac_ext <<_ACEOF
 
11675
/* end confdefs.h.  */
 
11676
#include <security/openpam.h>
 
11677
_ACEOF
 
11678
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11679
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11680
  ac_status=$?
 
11681
  grep -v '^ *+' conftest.er1 >conftest.err
 
11682
  rm -f conftest.er1
 
11683
  cat conftest.err >&5
 
11684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11685
  (exit $ac_status); } >/dev/null; then
 
11686
  if test -s conftest.err; then
 
11687
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11688
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
11689
  else
 
11690
    ac_cpp_err=
 
11691
  fi
 
11692
else
 
11693
  ac_cpp_err=yes
 
11694
fi
 
11695
if test -z "$ac_cpp_err"; then
 
11696
  ac_header_preproc=yes
 
11697
else
 
11698
  echo "$as_me: failed program was:" >&5
 
11699
sed 's/^/| /' conftest.$ac_ext >&5
 
11700
 
 
11701
  ac_header_preproc=no
 
11702
fi
 
11703
rm -f conftest.err conftest.$ac_ext
 
11704
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11705
echo "${ECHO_T}$ac_header_preproc" >&6
 
11706
 
 
11707
# So?  What about this header?
 
11708
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11709
  yes:no: )
 
11710
    { echo "$as_me:$LINENO: WARNING: security/openpam.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
11711
echo "$as_me: WARNING: security/openpam.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11712
    { echo "$as_me:$LINENO: WARNING: security/openpam.h: proceeding with the compiler's result" >&5
 
11713
echo "$as_me: WARNING: security/openpam.h: proceeding with the compiler's result" >&2;}
 
11714
    ac_header_preproc=yes
 
11715
    ;;
 
11716
  no:yes:* )
 
11717
    { echo "$as_me:$LINENO: WARNING: security/openpam.h: present but cannot be compiled" >&5
 
11718
echo "$as_me: WARNING: security/openpam.h: present but cannot be compiled" >&2;}
 
11719
    { echo "$as_me:$LINENO: WARNING: security/openpam.h:     check for missing prerequisite headers?" >&5
 
11720
echo "$as_me: WARNING: security/openpam.h:     check for missing prerequisite headers?" >&2;}
 
11721
    { echo "$as_me:$LINENO: WARNING: security/openpam.h: see the Autoconf documentation" >&5
 
11722
echo "$as_me: WARNING: security/openpam.h: see the Autoconf documentation" >&2;}
 
11723
    { echo "$as_me:$LINENO: WARNING: security/openpam.h:     section \"Present But Cannot Be Compiled\"" >&5
 
11724
echo "$as_me: WARNING: security/openpam.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11725
    { echo "$as_me:$LINENO: WARNING: security/openpam.h: proceeding with the preprocessor's result" >&5
 
11726
echo "$as_me: WARNING: security/openpam.h: proceeding with the preprocessor's result" >&2;}
 
11727
    { echo "$as_me:$LINENO: WARNING: security/openpam.h: in the future, the compiler will take precedence" >&5
 
11728
echo "$as_me: WARNING: security/openpam.h: in the future, the compiler will take precedence" >&2;}
 
11729
    (
 
11730
      cat <<\_ASBOX
 
11731
## ----------------------------------------- ##
 
11732
## Report this to http://bugzilla.quagga.net ##
 
11733
## ----------------------------------------- ##
 
11734
_ASBOX
 
11735
    ) |
 
11736
      sed "s/^/$as_me: WARNING:     /" >&2
 
11737
    ;;
 
11738
esac
 
11739
echo "$as_me:$LINENO: checking for security/openpam.h" >&5
 
11740
echo $ECHO_N "checking for security/openpam.h... $ECHO_C" >&6
 
11741
if test "${ac_cv_header_security_openpam_h+set}" = set; then
 
11742
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11743
else
 
11744
  ac_cv_header_security_openpam_h=$ac_header_preproc
 
11745
fi
 
11746
echo "$as_me:$LINENO: result: $ac_cv_header_security_openpam_h" >&5
 
11747
echo "${ECHO_T}$ac_cv_header_security_openpam_h" >&6
 
11748
 
 
11749
fi
 
11750
 
 
11751
 
 
11752
  if test "$ac_cv_header_security_openpam_h" = yes; then
 
11753
 
 
11754
cat >>confdefs.h <<\_ACEOF
 
11755
#define HAVE_OPENPAM_H
 
11756
_ACEOF
 
11757
 
 
11758
 
 
11759
cat >>confdefs.h <<\_ACEOF
 
11760
#define PAM_CONV_FUNC openpam_ttyconv
 
11761
_ACEOF
 
11762
 
 
11763
    pam_conv_func="openpam_ttyconv"
 
11764
  fi
 
11765
  if test -z "$ac_cv_header_security_pam_misc_h$ac_cv_header_security_openpam_h" ; then
 
11766
    { echo "$as_me:$LINENO: WARNING: *** pam support will not be built ***" >&5
 
11767
echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
 
11768
    with_libpam="no"
 
11769
  fi
 
11770
fi
 
11771
 
 
11772
if test "$with_libpam" = "yes"; then
 
11773
echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
 
11774
echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
 
11775
if test "${ac_cv_lib_pam_pam_start+set}" = set; then
 
11776
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11777
else
 
11778
  ac_check_lib_save_LIBS=$LIBS
 
11779
LIBS="-lpam  $LIBS"
 
11780
cat >conftest.$ac_ext <<_ACEOF
 
11781
/* confdefs.h.  */
 
11782
_ACEOF
 
11783
cat confdefs.h >>conftest.$ac_ext
 
11784
cat >>conftest.$ac_ext <<_ACEOF
 
11785
/* end confdefs.h.  */
 
11786
 
 
11787
/* Override any gcc2 internal prototype to avoid an error.  */
 
11788
#ifdef __cplusplus
 
11789
extern "C"
 
11790
#endif
 
11791
/* We use char because int might match the return type of a gcc2
 
11792
   builtin and then its argument prototype would still apply.  */
 
11793
char pam_start ();
 
11794
int
 
11795
main ()
 
11796
{
 
11797
pam_start ();
 
11798
  ;
 
11799
  return 0;
 
11800
}
 
11801
_ACEOF
 
11802
rm -f conftest.$ac_objext conftest$ac_exeext
 
11803
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11804
  (eval $ac_link) 2>conftest.er1
 
11805
  ac_status=$?
 
11806
  grep -v '^ *+' conftest.er1 >conftest.err
 
11807
  rm -f conftest.er1
 
11808
  cat conftest.err >&5
 
11809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11810
  (exit $ac_status); } &&
 
11811
         { ac_try='test -z "$ac_c_werror_flag"
 
11812
                         || test ! -s conftest.err'
 
11813
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11814
  (eval $ac_try) 2>&5
 
11815
  ac_status=$?
 
11816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11817
  (exit $ac_status); }; } &&
 
11818
         { ac_try='test -s conftest$ac_exeext'
 
11819
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11820
  (eval $ac_try) 2>&5
 
11821
  ac_status=$?
 
11822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11823
  (exit $ac_status); }; }; then
 
11824
  ac_cv_lib_pam_pam_start=yes
 
11825
else
 
11826
  echo "$as_me: failed program was:" >&5
 
11827
sed 's/^/| /' conftest.$ac_ext >&5
 
11828
 
 
11829
ac_cv_lib_pam_pam_start=no
 
11830
fi
 
11831
rm -f conftest.err conftest.$ac_objext \
 
11832
      conftest$ac_exeext conftest.$ac_ext
 
11833
LIBS=$ac_check_lib_save_LIBS
 
11834
fi
 
11835
echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
 
11836
echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
 
11837
if test $ac_cv_lib_pam_pam_start = yes; then
 
11838
  as_ac_Lib=`echo "ac_cv_lib_pam_$pam_conv_func" | $as_tr_sh`
 
11839
echo "$as_me:$LINENO: checking for $pam_conv_func in -lpam" >&5
 
11840
echo $ECHO_N "checking for $pam_conv_func in -lpam... $ECHO_C" >&6
 
11841
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
 
11842
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11843
else
 
11844
  ac_check_lib_save_LIBS=$LIBS
 
11845
LIBS="-lpam  $LIBS"
 
11846
cat >conftest.$ac_ext <<_ACEOF
 
11847
/* confdefs.h.  */
 
11848
_ACEOF
 
11849
cat confdefs.h >>conftest.$ac_ext
 
11850
cat >>conftest.$ac_ext <<_ACEOF
 
11851
/* end confdefs.h.  */
 
11852
 
 
11853
/* Override any gcc2 internal prototype to avoid an error.  */
 
11854
#ifdef __cplusplus
 
11855
extern "C"
 
11856
#endif
 
11857
/* We use char because int might match the return type of a gcc2
 
11858
   builtin and then its argument prototype would still apply.  */
 
11859
char $pam_conv_func ();
 
11860
int
 
11861
main ()
 
11862
{
 
11863
$pam_conv_func ();
 
11864
  ;
 
11865
  return 0;
 
11866
}
 
11867
_ACEOF
 
11868
rm -f conftest.$ac_objext conftest$ac_exeext
 
11869
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11870
  (eval $ac_link) 2>conftest.er1
 
11871
  ac_status=$?
 
11872
  grep -v '^ *+' conftest.er1 >conftest.err
 
11873
  rm -f conftest.er1
 
11874
  cat conftest.err >&5
 
11875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11876
  (exit $ac_status); } &&
 
11877
         { ac_try='test -z "$ac_c_werror_flag"
 
11878
                         || test ! -s conftest.err'
 
11879
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11880
  (eval $ac_try) 2>&5
 
11881
  ac_status=$?
 
11882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11883
  (exit $ac_status); }; } &&
 
11884
         { ac_try='test -s conftest$ac_exeext'
 
11885
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11886
  (eval $ac_try) 2>&5
 
11887
  ac_status=$?
 
11888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11889
  (exit $ac_status); }; }; then
 
11890
  eval "$as_ac_Lib=yes"
 
11891
else
 
11892
  echo "$as_me: failed program was:" >&5
 
11893
sed 's/^/| /' conftest.$ac_ext >&5
 
11894
 
 
11895
eval "$as_ac_Lib=no"
 
11896
fi
 
11897
rm -f conftest.err conftest.$ac_objext \
 
11898
      conftest$ac_exeext conftest.$ac_ext
 
11899
LIBS=$ac_check_lib_save_LIBS
 
11900
fi
 
11901
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
 
11902
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
 
11903
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
11904
 
 
11905
cat >>confdefs.h <<\_ACEOF
 
11906
#define USE_PAM
 
11907
_ACEOF
 
11908
 
 
11909
     LIBPAM="-lpam"
 
11910
else
 
11911
 
 
11912
cat >>confdefs.h <<\_ACEOF
 
11913
#define USE_PAM
 
11914
_ACEOF
 
11915
 
 
11916
     LIBPAM="-lpam -lpam_misc"
 
11917
 
 
11918
fi
 
11919
 
 
11920
 
 
11921
else
 
11922
  echo "$as_me:$LINENO: checking for pam_end in -lpam" >&5
 
11923
echo $ECHO_N "checking for pam_end in -lpam... $ECHO_C" >&6
 
11924
if test "${ac_cv_lib_pam_pam_end+set}" = set; then
 
11925
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11926
else
 
11927
  ac_check_lib_save_LIBS=$LIBS
 
11928
LIBS="-lpam -ldl $LIBS"
 
11929
cat >conftest.$ac_ext <<_ACEOF
 
11930
/* confdefs.h.  */
 
11931
_ACEOF
 
11932
cat confdefs.h >>conftest.$ac_ext
 
11933
cat >>conftest.$ac_ext <<_ACEOF
 
11934
/* end confdefs.h.  */
 
11935
 
 
11936
/* Override any gcc2 internal prototype to avoid an error.  */
 
11937
#ifdef __cplusplus
 
11938
extern "C"
 
11939
#endif
 
11940
/* We use char because int might match the return type of a gcc2
 
11941
   builtin and then its argument prototype would still apply.  */
 
11942
char pam_end ();
 
11943
int
 
11944
main ()
 
11945
{
 
11946
pam_end ();
 
11947
  ;
 
11948
  return 0;
 
11949
}
 
11950
_ACEOF
 
11951
rm -f conftest.$ac_objext conftest$ac_exeext
 
11952
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11953
  (eval $ac_link) 2>conftest.er1
 
11954
  ac_status=$?
 
11955
  grep -v '^ *+' conftest.er1 >conftest.err
 
11956
  rm -f conftest.er1
 
11957
  cat conftest.err >&5
 
11958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11959
  (exit $ac_status); } &&
 
11960
         { ac_try='test -z "$ac_c_werror_flag"
 
11961
                         || test ! -s conftest.err'
 
11962
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11963
  (eval $ac_try) 2>&5
 
11964
  ac_status=$?
 
11965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11966
  (exit $ac_status); }; } &&
 
11967
         { ac_try='test -s conftest$ac_exeext'
 
11968
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11969
  (eval $ac_try) 2>&5
 
11970
  ac_status=$?
 
11971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11972
  (exit $ac_status); }; }; then
 
11973
  ac_cv_lib_pam_pam_end=yes
 
11974
else
 
11975
  echo "$as_me: failed program was:" >&5
 
11976
sed 's/^/| /' conftest.$ac_ext >&5
 
11977
 
 
11978
ac_cv_lib_pam_pam_end=no
 
11979
fi
 
11980
rm -f conftest.err conftest.$ac_objext \
 
11981
      conftest$ac_exeext conftest.$ac_ext
 
11982
LIBS=$ac_check_lib_save_LIBS
 
11983
fi
 
11984
echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_end" >&5
 
11985
echo "${ECHO_T}$ac_cv_lib_pam_pam_end" >&6
 
11986
if test $ac_cv_lib_pam_pam_end = yes; then
 
11987
  as_ac_Lib=`echo "ac_cv_lib_pam_$pam_conv_func" | $as_tr_sh`
 
11988
echo "$as_me:$LINENO: checking for $pam_conv_func in -lpam" >&5
 
11989
echo $ECHO_N "checking for $pam_conv_func in -lpam... $ECHO_C" >&6
 
11990
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
 
11991
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11992
else
 
11993
  ac_check_lib_save_LIBS=$LIBS
 
11994
LIBS="-lpam  $LIBS"
 
11995
cat >conftest.$ac_ext <<_ACEOF
 
11996
/* confdefs.h.  */
 
11997
_ACEOF
 
11998
cat confdefs.h >>conftest.$ac_ext
 
11999
cat >>conftest.$ac_ext <<_ACEOF
 
12000
/* end confdefs.h.  */
 
12001
 
 
12002
/* Override any gcc2 internal prototype to avoid an error.  */
 
12003
#ifdef __cplusplus
 
12004
extern "C"
 
12005
#endif
 
12006
/* We use char because int might match the return type of a gcc2
 
12007
   builtin and then its argument prototype would still apply.  */
 
12008
char $pam_conv_func ();
 
12009
int
 
12010
main ()
 
12011
{
 
12012
$pam_conv_func ();
 
12013
  ;
 
12014
  return 0;
 
12015
}
 
12016
_ACEOF
 
12017
rm -f conftest.$ac_objext conftest$ac_exeext
 
12018
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12019
  (eval $ac_link) 2>conftest.er1
 
12020
  ac_status=$?
 
12021
  grep -v '^ *+' conftest.er1 >conftest.err
 
12022
  rm -f conftest.er1
 
12023
  cat conftest.err >&5
 
12024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12025
  (exit $ac_status); } &&
 
12026
         { ac_try='test -z "$ac_c_werror_flag"
 
12027
                         || test ! -s conftest.err'
 
12028
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12029
  (eval $ac_try) 2>&5
 
12030
  ac_status=$?
 
12031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12032
  (exit $ac_status); }; } &&
 
12033
         { ac_try='test -s conftest$ac_exeext'
 
12034
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12035
  (eval $ac_try) 2>&5
 
12036
  ac_status=$?
 
12037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12038
  (exit $ac_status); }; }; then
 
12039
  eval "$as_ac_Lib=yes"
 
12040
else
 
12041
  echo "$as_me: failed program was:" >&5
 
12042
sed 's/^/| /' conftest.$ac_ext >&5
 
12043
 
 
12044
eval "$as_ac_Lib=no"
 
12045
fi
 
12046
rm -f conftest.err conftest.$ac_objext \
 
12047
      conftest$ac_exeext conftest.$ac_ext
 
12048
LIBS=$ac_check_lib_save_LIBS
 
12049
fi
 
12050
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
 
12051
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
 
12052
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
12053
 
 
12054
cat >>confdefs.h <<\_ACEOF
 
12055
#define USE_PAM
 
12056
_ACEOF
 
12057
 
 
12058
       LIBPAM="-lpam -ldl"
 
12059
else
 
12060
 
 
12061
cat >>confdefs.h <<\_ACEOF
 
12062
#define USE_PAM
 
12063
_ACEOF
 
12064
 
 
12065
       LIBPAM="-lpam -ldl -lpam_misc"
 
12066
 
 
12067
fi
 
12068
 
 
12069
 
 
12070
else
 
12071
  { echo "$as_me:$LINENO: WARNING: *** pam support will not be built ***" >&5
 
12072
echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
 
12073
fi
 
12074
 
 
12075
 
 
12076
 
 
12077
fi
 
12078
 
 
12079
fi
 
12080
 
 
12081
 
 
12082
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
12083
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
12084
if test "${ac_cv_c_bigendian+set}" = set; then
 
12085
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12086
else
 
12087
  # See if sys/param.h defines the BYTE_ORDER macro.
 
12088
cat >conftest.$ac_ext <<_ACEOF
 
12089
/* confdefs.h.  */
 
12090
_ACEOF
 
12091
cat confdefs.h >>conftest.$ac_ext
 
12092
cat >>conftest.$ac_ext <<_ACEOF
 
12093
/* end confdefs.h.  */
 
12094
#include <sys/types.h>
 
12095
#include <sys/param.h>
 
12096
 
 
12097
int
 
12098
main ()
 
12099
{
 
12100
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
12101
 bogus endian macros
 
12102
#endif
 
12103
 
 
12104
  ;
 
12105
  return 0;
 
12106
}
 
12107
_ACEOF
 
12108
rm -f conftest.$ac_objext
 
12109
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12110
  (eval $ac_compile) 2>conftest.er1
 
12111
  ac_status=$?
 
12112
  grep -v '^ *+' conftest.er1 >conftest.err
 
12113
  rm -f conftest.er1
 
12114
  cat conftest.err >&5
 
12115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12116
  (exit $ac_status); } &&
 
12117
         { ac_try='test -z "$ac_c_werror_flag"
 
12118
                         || test ! -s conftest.err'
 
12119
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12120
  (eval $ac_try) 2>&5
 
12121
  ac_status=$?
 
12122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12123
  (exit $ac_status); }; } &&
 
12124
         { ac_try='test -s conftest.$ac_objext'
 
12125
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12126
  (eval $ac_try) 2>&5
 
12127
  ac_status=$?
 
12128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12129
  (exit $ac_status); }; }; then
 
12130
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
12131
cat >conftest.$ac_ext <<_ACEOF
 
12132
/* confdefs.h.  */
 
12133
_ACEOF
 
12134
cat confdefs.h >>conftest.$ac_ext
 
12135
cat >>conftest.$ac_ext <<_ACEOF
 
12136
/* end confdefs.h.  */
 
12137
#include <sys/types.h>
 
12138
#include <sys/param.h>
 
12139
 
 
12140
int
 
12141
main ()
 
12142
{
 
12143
#if BYTE_ORDER != BIG_ENDIAN
 
12144
 not big endian
 
12145
#endif
 
12146
 
 
12147
  ;
 
12148
  return 0;
 
12149
}
 
12150
_ACEOF
 
12151
rm -f conftest.$ac_objext
 
12152
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12153
  (eval $ac_compile) 2>conftest.er1
 
12154
  ac_status=$?
 
12155
  grep -v '^ *+' conftest.er1 >conftest.err
 
12156
  rm -f conftest.er1
 
12157
  cat conftest.err >&5
 
12158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12159
  (exit $ac_status); } &&
 
12160
         { ac_try='test -z "$ac_c_werror_flag"
 
12161
                         || test ! -s conftest.err'
 
12162
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12163
  (eval $ac_try) 2>&5
 
12164
  ac_status=$?
 
12165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12166
  (exit $ac_status); }; } &&
 
12167
         { ac_try='test -s conftest.$ac_objext'
 
12168
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12169
  (eval $ac_try) 2>&5
 
12170
  ac_status=$?
 
12171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12172
  (exit $ac_status); }; }; then
 
12173
  ac_cv_c_bigendian=yes
 
12174
else
 
12175
  echo "$as_me: failed program was:" >&5
 
12176
sed 's/^/| /' conftest.$ac_ext >&5
 
12177
 
 
12178
ac_cv_c_bigendian=no
 
12179
fi
 
12180
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12181
else
 
12182
  echo "$as_me: failed program was:" >&5
 
12183
sed 's/^/| /' conftest.$ac_ext >&5
 
12184
 
 
12185
# It does not; compile a test program.
 
12186
if test "$cross_compiling" = yes; then
 
12187
  # try to guess the endianness by grepping values into an object file
 
12188
  ac_cv_c_bigendian=unknown
 
12189
  cat >conftest.$ac_ext <<_ACEOF
 
12190
/* confdefs.h.  */
 
12191
_ACEOF
 
12192
cat confdefs.h >>conftest.$ac_ext
 
12193
cat >>conftest.$ac_ext <<_ACEOF
 
12194
/* end confdefs.h.  */
 
12195
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
12196
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
12197
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
12198
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
12199
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
12200
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
12201
int
 
12202
main ()
 
12203
{
 
12204
 _ascii (); _ebcdic ();
 
12205
  ;
 
12206
  return 0;
 
12207
}
 
12208
_ACEOF
 
12209
rm -f conftest.$ac_objext
 
12210
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12211
  (eval $ac_compile) 2>conftest.er1
 
12212
  ac_status=$?
 
12213
  grep -v '^ *+' conftest.er1 >conftest.err
 
12214
  rm -f conftest.er1
 
12215
  cat conftest.err >&5
 
12216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12217
  (exit $ac_status); } &&
 
12218
         { ac_try='test -z "$ac_c_werror_flag"
 
12219
                         || test ! -s conftest.err'
 
12220
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12221
  (eval $ac_try) 2>&5
 
12222
  ac_status=$?
 
12223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12224
  (exit $ac_status); }; } &&
 
12225
         { ac_try='test -s conftest.$ac_objext'
 
12226
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12227
  (eval $ac_try) 2>&5
 
12228
  ac_status=$?
 
12229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12230
  (exit $ac_status); }; }; then
 
12231
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
12232
  ac_cv_c_bigendian=yes
 
12233
fi
 
12234
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
12235
  if test "$ac_cv_c_bigendian" = unknown; then
 
12236
    ac_cv_c_bigendian=no
 
12237
  else
 
12238
    # finding both strings is unlikely to happen, but who knows?
 
12239
    ac_cv_c_bigendian=unknown
 
12240
  fi
 
12241
fi
 
12242
else
 
12243
  echo "$as_me: failed program was:" >&5
 
12244
sed 's/^/| /' conftest.$ac_ext >&5
 
12245
 
 
12246
fi
 
12247
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12248
else
 
12249
  cat >conftest.$ac_ext <<_ACEOF
 
12250
/* confdefs.h.  */
 
12251
_ACEOF
 
12252
cat confdefs.h >>conftest.$ac_ext
 
12253
cat >>conftest.$ac_ext <<_ACEOF
 
12254
/* end confdefs.h.  */
 
12255
int
 
12256
main ()
 
12257
{
 
12258
  /* Are we little or big endian?  From Harbison&Steele.  */
 
12259
  union
 
12260
  {
 
12261
    long l;
 
12262
    char c[sizeof (long)];
 
12263
  } u;
 
12264
  u.l = 1;
 
12265
  exit (u.c[sizeof (long) - 1] == 1);
 
12266
}
 
12267
_ACEOF
 
12268
rm -f conftest$ac_exeext
 
12269
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12270
  (eval $ac_link) 2>&5
 
12271
  ac_status=$?
 
12272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12273
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12274
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12275
  (eval $ac_try) 2>&5
 
12276
  ac_status=$?
 
12277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12278
  (exit $ac_status); }; }; then
 
12279
  ac_cv_c_bigendian=no
 
12280
else
 
12281
  echo "$as_me: program exited with status $ac_status" >&5
 
12282
echo "$as_me: failed program was:" >&5
 
12283
sed 's/^/| /' conftest.$ac_ext >&5
 
12284
 
 
12285
( exit $ac_status )
 
12286
ac_cv_c_bigendian=yes
 
12287
fi
 
12288
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
12289
fi
 
12290
fi
 
12291
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12292
fi
 
12293
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
12294
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
12295
case $ac_cv_c_bigendian in
 
12296
  yes)
 
12297
 
 
12298
cat >>confdefs.h <<\_ACEOF
 
12299
#define WORDS_BIGENDIAN 1
 
12300
_ACEOF
 
12301
 ;;
 
12302
  no)
 
12303
     ;;
 
12304
  *)
 
12305
    { { echo "$as_me:$LINENO: error: unknown endianness
 
12306
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
12307
echo "$as_me: error: unknown endianness
 
12308
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
12309
   { (exit 1); exit 1; }; } ;;
 
12310
esac
 
12311
 
 
12312
 
 
12313
 
 
12314
 
 
12315
 
 
12316
 
 
12317
 
 
12318
 
 
12319
 
 
12320
 
 
12321
 
 
12322
 
 
12323
 
 
12324
 
 
12325
 
 
12326
 
 
12327
 
 
12328
for ac_func in memset memcpy strerror inet_aton daemon snprintf vsnprintf \
 
12329
               strlcat strlcpy if_nametoindex if_indextoname getifaddrs \
 
12330
               fcntl strnlen
 
12331
do
 
12332
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
12333
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
12334
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
12335
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
12336
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12337
else
 
12338
  cat >conftest.$ac_ext <<_ACEOF
 
12339
/* confdefs.h.  */
 
12340
_ACEOF
 
12341
cat confdefs.h >>conftest.$ac_ext
 
12342
cat >>conftest.$ac_ext <<_ACEOF
 
12343
/* end confdefs.h.  */
 
12344
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
12345
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12346
#define $ac_func innocuous_$ac_func
 
12347
 
 
12348
/* System header to define __stub macros and hopefully few prototypes,
 
12349
    which can conflict with char $ac_func (); below.
 
12350
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12351
    <limits.h> exists even on freestanding compilers.  */
 
12352
 
 
12353
#ifdef __STDC__
 
12354
# include <limits.h>
 
12355
#else
 
12356
# include <assert.h>
 
12357
#endif
 
12358
 
 
12359
#undef $ac_func
 
12360
 
 
12361
/* Override any gcc2 internal prototype to avoid an error.  */
 
12362
#ifdef __cplusplus
 
12363
extern "C"
 
12364
{
 
12365
#endif
 
12366
/* We use char because int might match the return type of a gcc2
 
12367
   builtin and then its argument prototype would still apply.  */
 
12368
char $ac_func ();
 
12369
/* The GNU C library defines this for functions which it implements
 
12370
    to always fail with ENOSYS.  Some functions are actually named
 
12371
    something starting with __ and the normal name is an alias.  */
 
12372
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
12373
choke me
 
12374
#else
 
12375
char (*f) () = $ac_func;
 
12376
#endif
 
12377
#ifdef __cplusplus
 
12378
}
 
12379
#endif
 
12380
 
 
12381
int
 
12382
main ()
 
12383
{
 
12384
return f != $ac_func;
 
12385
  ;
 
12386
  return 0;
 
12387
}
 
12388
_ACEOF
 
12389
rm -f conftest.$ac_objext conftest$ac_exeext
 
12390
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12391
  (eval $ac_link) 2>conftest.er1
 
12392
  ac_status=$?
 
12393
  grep -v '^ *+' conftest.er1 >conftest.err
 
12394
  rm -f conftest.er1
 
12395
  cat conftest.err >&5
 
12396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12397
  (exit $ac_status); } &&
 
12398
         { ac_try='test -z "$ac_c_werror_flag"
 
12399
                         || test ! -s conftest.err'
 
12400
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12401
  (eval $ac_try) 2>&5
 
12402
  ac_status=$?
 
12403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12404
  (exit $ac_status); }; } &&
 
12405
         { ac_try='test -s conftest$ac_exeext'
 
12406
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12407
  (eval $ac_try) 2>&5
 
12408
  ac_status=$?
 
12409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12410
  (exit $ac_status); }; }; then
 
12411
  eval "$as_ac_var=yes"
 
12412
else
 
12413
  echo "$as_me: failed program was:" >&5
 
12414
sed 's/^/| /' conftest.$ac_ext >&5
 
12415
 
 
12416
eval "$as_ac_var=no"
 
12417
fi
 
12418
rm -f conftest.err conftest.$ac_objext \
 
12419
      conftest$ac_exeext conftest.$ac_ext
 
12420
fi
 
12421
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
12422
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
12423
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
12424
  cat >>confdefs.h <<_ACEOF
 
12425
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
12426
_ACEOF
 
12427
 
 
12428
fi
 
12429
done
 
12430
 
 
12431
 
 
12432
for ac_func in setproctitle
 
12433
do
 
12434
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
12435
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
12436
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
12437
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
12438
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12439
else
 
12440
  cat >conftest.$ac_ext <<_ACEOF
 
12441
/* confdefs.h.  */
 
12442
_ACEOF
 
12443
cat confdefs.h >>conftest.$ac_ext
 
12444
cat >>conftest.$ac_ext <<_ACEOF
 
12445
/* end confdefs.h.  */
 
12446
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
12447
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12448
#define $ac_func innocuous_$ac_func
 
12449
 
 
12450
/* System header to define __stub macros and hopefully few prototypes,
 
12451
    which can conflict with char $ac_func (); below.
 
12452
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12453
    <limits.h> exists even on freestanding compilers.  */
 
12454
 
 
12455
#ifdef __STDC__
 
12456
# include <limits.h>
 
12457
#else
 
12458
# include <assert.h>
 
12459
#endif
 
12460
 
 
12461
#undef $ac_func
 
12462
 
 
12463
/* Override any gcc2 internal prototype to avoid an error.  */
 
12464
#ifdef __cplusplus
 
12465
extern "C"
 
12466
{
 
12467
#endif
 
12468
/* We use char because int might match the return type of a gcc2
 
12469
   builtin and then its argument prototype would still apply.  */
 
12470
char $ac_func ();
 
12471
/* The GNU C library defines this for functions which it implements
 
12472
    to always fail with ENOSYS.  Some functions are actually named
 
12473
    something starting with __ and the normal name is an alias.  */
 
12474
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
12475
choke me
 
12476
#else
 
12477
char (*f) () = $ac_func;
 
12478
#endif
 
12479
#ifdef __cplusplus
 
12480
}
 
12481
#endif
 
12482
 
 
12483
int
 
12484
main ()
 
12485
{
 
12486
return f != $ac_func;
 
12487
  ;
 
12488
  return 0;
 
12489
}
 
12490
_ACEOF
 
12491
rm -f conftest.$ac_objext conftest$ac_exeext
 
12492
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12493
  (eval $ac_link) 2>conftest.er1
 
12494
  ac_status=$?
 
12495
  grep -v '^ *+' conftest.er1 >conftest.err
 
12496
  rm -f conftest.er1
 
12497
  cat conftest.err >&5
 
12498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12499
  (exit $ac_status); } &&
 
12500
         { ac_try='test -z "$ac_c_werror_flag"
 
12501
                         || test ! -s conftest.err'
 
12502
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12503
  (eval $ac_try) 2>&5
 
12504
  ac_status=$?
 
12505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12506
  (exit $ac_status); }; } &&
 
12507
         { ac_try='test -s conftest$ac_exeext'
 
12508
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12509
  (eval $ac_try) 2>&5
 
12510
  ac_status=$?
 
12511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12512
  (exit $ac_status); }; }; then
 
12513
  eval "$as_ac_var=yes"
 
12514
else
 
12515
  echo "$as_me: failed program was:" >&5
 
12516
sed 's/^/| /' conftest.$ac_ext >&5
 
12517
 
 
12518
eval "$as_ac_var=no"
 
12519
fi
 
12520
rm -f conftest.err conftest.$ac_objext \
 
12521
      conftest$ac_exeext conftest.$ac_ext
 
12522
fi
 
12523
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
12524
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
12525
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
12526
  cat >>confdefs.h <<_ACEOF
 
12527
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
12528
_ACEOF
 
12529
 
 
12530
else
 
12531
  echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
 
12532
echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
 
12533
if test "${ac_cv_lib_util_setproctitle+set}" = set; then
 
12534
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12535
else
 
12536
  ac_check_lib_save_LIBS=$LIBS
 
12537
LIBS="-lutil  $LIBS"
 
12538
cat >conftest.$ac_ext <<_ACEOF
 
12539
/* confdefs.h.  */
 
12540
_ACEOF
 
12541
cat confdefs.h >>conftest.$ac_ext
 
12542
cat >>conftest.$ac_ext <<_ACEOF
 
12543
/* end confdefs.h.  */
 
12544
 
 
12545
/* Override any gcc2 internal prototype to avoid an error.  */
 
12546
#ifdef __cplusplus
 
12547
extern "C"
 
12548
#endif
 
12549
/* We use char because int might match the return type of a gcc2
 
12550
   builtin and then its argument prototype would still apply.  */
 
12551
char setproctitle ();
 
12552
int
 
12553
main ()
 
12554
{
 
12555
setproctitle ();
 
12556
  ;
 
12557
  return 0;
 
12558
}
 
12559
_ACEOF
 
12560
rm -f conftest.$ac_objext conftest$ac_exeext
 
12561
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12562
  (eval $ac_link) 2>conftest.er1
 
12563
  ac_status=$?
 
12564
  grep -v '^ *+' conftest.er1 >conftest.err
 
12565
  rm -f conftest.er1
 
12566
  cat conftest.err >&5
 
12567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12568
  (exit $ac_status); } &&
 
12569
         { ac_try='test -z "$ac_c_werror_flag"
 
12570
                         || test ! -s conftest.err'
 
12571
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12572
  (eval $ac_try) 2>&5
 
12573
  ac_status=$?
 
12574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12575
  (exit $ac_status); }; } &&
 
12576
         { ac_try='test -s conftest$ac_exeext'
 
12577
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12578
  (eval $ac_try) 2>&5
 
12579
  ac_status=$?
 
12580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12581
  (exit $ac_status); }; }; then
 
12582
  ac_cv_lib_util_setproctitle=yes
 
12583
else
 
12584
  echo "$as_me: failed program was:" >&5
 
12585
sed 's/^/| /' conftest.$ac_ext >&5
 
12586
 
 
12587
ac_cv_lib_util_setproctitle=no
 
12588
fi
 
12589
rm -f conftest.err conftest.$ac_objext \
 
12590
      conftest$ac_exeext conftest.$ac_ext
 
12591
LIBS=$ac_check_lib_save_LIBS
 
12592
fi
 
12593
echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
 
12594
echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
 
12595
if test $ac_cv_lib_util_setproctitle = yes; then
 
12596
  LIBS="$LIBS -lutil"
 
12597
 
 
12598
cat >>confdefs.h <<\_ACEOF
 
12599
#define HAVE_SETPROCTITLE
 
12600
_ACEOF
 
12601
 
 
12602
 
 
12603
 
 
12604
fi
 
12605
 
 
12606
 
 
12607
 
 
12608
fi
 
12609
done
 
12610
 
 
12611
 
 
12612
echo "$as_me:$LINENO: checking zebra between kernel interface method" >&5
 
12613
echo $ECHO_N "checking zebra between kernel interface method... $ECHO_C" >&6
 
12614
if test x"$opsys" = x"gnu-linux"; then
 
12615
  if test "${enable_netlink}" = "yes";then
 
12616
    echo "$as_me:$LINENO: result: netlink" >&5
 
12617
echo "${ECHO_T}netlink" >&6
 
12618
    RT_METHOD=rt_netlink.o
 
12619
 
 
12620
cat >>confdefs.h <<\_ACEOF
 
12621
#define HAVE_NETLINK
 
12622
_ACEOF
 
12623
 
 
12624
    netlink=yes
 
12625
  elif test "${enable_netlink}" = "no"; then
 
12626
    echo "$as_me:$LINENO: result: ioctl" >&5
 
12627
echo "${ECHO_T}ioctl" >&6
 
12628
    RT_METHOD=rt_ioctl.o
 
12629
    netlink=no
 
12630
  else
 
12631
    echo "$as_me:$LINENO: result: netlink" >&5
 
12632
echo "${ECHO_T}netlink" >&6
 
12633
    RT_METHOD=rt_netlink.o
 
12634
 
 
12635
cat >>confdefs.h <<\_ACEOF
 
12636
#define HAVE_NETLINK
 
12637
_ACEOF
 
12638
 
 
12639
    netlink=yes
 
12640
  fi
 
12641
elif test x"$opsys" = x"sol2-6";then
 
12642
  echo "$as_me:$LINENO: result: Route socket" >&5
 
12643
echo "${ECHO_T}Route socket" >&6
 
12644
  KERNEL_METHOD="kernel_socket.o"
 
12645
  RT_METHOD="rt_socket.o"
 
12646
elif test x"$opsys" = x"sol8";then
 
12647
  echo "$as_me:$LINENO: result: Route socket" >&5
 
12648
echo "${ECHO_T}Route socket" >&6
 
12649
  KERNEL_METHOD="kernel_socket.o"
 
12650
  RT_METHOD="rt_socket.o"
 
12651
elif test "$opsys" = "irix" ; then
 
12652
  echo "$as_me:$LINENO: result: Route socket" >&5
 
12653
echo "${ECHO_T}Route socket" >&6
 
12654
  KERNEL_METHOD="kernel_socket.o"
 
12655
  RT_METHOD="rt_socket.o"
 
12656
else
 
12657
  if test "$cross_compiling" = yes; then
 
12658
  KERNEL_METHOD=kernel_socket.o
 
12659
   RT_METHOD=rt_socket.o
 
12660
   echo "$as_me:$LINENO: result: socket" >&5
 
12661
echo "${ECHO_T}socket" >&6
 
12662
else
 
12663
  cat >conftest.$ac_ext <<_ACEOF
 
12664
/* confdefs.h.  */
 
12665
_ACEOF
 
12666
cat confdefs.h >>conftest.$ac_ext
 
12667
cat >>conftest.$ac_ext <<_ACEOF
 
12668
/* end confdefs.h.  */
 
12669
#include <errno.h>
 
12670
#include <sys/types.h>
 
12671
#include <sys/socket.h>
 
12672
 
 
12673
main ()
 
12674
{
 
12675
  int ac_sock;
 
12676
 
 
12677
  ac_sock = socket (AF_ROUTE, SOCK_RAW, 0);
 
12678
  if (ac_sock < 0 && errno == EINVAL)
 
12679
    exit (1);
 
12680
  exit (0);
 
12681
}
 
12682
_ACEOF
 
12683
rm -f conftest$ac_exeext
 
12684
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12685
  (eval $ac_link) 2>&5
 
12686
  ac_status=$?
 
12687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12688
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12689
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12690
  (eval $ac_try) 2>&5
 
12691
  ac_status=$?
 
12692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12693
  (exit $ac_status); }; }; then
 
12694
  KERNEL_METHOD=kernel_socket.o
 
12695
   RT_METHOD=rt_socket.o
 
12696
   echo "$as_me:$LINENO: result: socket" >&5
 
12697
echo "${ECHO_T}socket" >&6
 
12698
else
 
12699
  echo "$as_me: program exited with status $ac_status" >&5
 
12700
echo "$as_me: failed program was:" >&5
 
12701
sed 's/^/| /' conftest.$ac_ext >&5
 
12702
 
 
12703
( exit $ac_status )
 
12704
RT_METHOD=rt_ioctl.o
 
12705
   echo "$as_me:$LINENO: result: ioctl" >&5
 
12706
echo "${ECHO_T}ioctl" >&6
 
12707
fi
 
12708
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
12709
fi
 
12710
fi
 
12711
 
 
12712
 
 
12713
 
 
12714
 
 
12715
echo "$as_me:$LINENO: checking for broken CMSG_FIRSTHDR" >&5
 
12716
echo $ECHO_N "checking for broken CMSG_FIRSTHDR... $ECHO_C" >&6
 
12717
if test "$cross_compiling" = yes; then
 
12718
  echo "$as_me:$LINENO: result: no" >&5
 
12719
echo "${ECHO_T}no" >&6
 
12720
else
 
12721
  cat >conftest.$ac_ext <<_ACEOF
 
12722
/* confdefs.h.  */
 
12723
_ACEOF
 
12724
cat confdefs.h >>conftest.$ac_ext
 
12725
cat >>conftest.$ac_ext <<_ACEOF
 
12726
/* end confdefs.h.  */
 
12727
 
 
12728
#ifdef SUNOS_5
 
12729
#define _XPG4_2
 
12730
#define __EXTENSIONS__
 
12731
#endif
 
12732
#include <stdlib.h>
 
12733
#include <sys/types.h>
 
12734
#include <sys/socket.h>
 
12735
 
 
12736
main()
 
12737
{
 
12738
  struct msghdr msg;
 
12739
  char buf[4];
 
12740
 
 
12741
  msg.msg_control = buf;
 
12742
  msg.msg_controllen = 0;
 
12743
 
 
12744
  if (CMSG_FIRSTHDR(&msg) != NULL)
 
12745
    exit(0);
 
12746
  exit (1);
 
12747
}
 
12748
_ACEOF
 
12749
rm -f conftest$ac_exeext
 
12750
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12751
  (eval $ac_link) 2>&5
 
12752
  ac_status=$?
 
12753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12754
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
12755
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12756
  (eval $ac_try) 2>&5
 
12757
  ac_status=$?
 
12758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12759
  (exit $ac_status); }; }; then
 
12760
  echo "$as_me:$LINENO: result: yes - using workaround" >&5
 
12761
echo "${ECHO_T}yes - using workaround" >&6
 
12762
cat >>confdefs.h <<\_ACEOF
 
12763
#define HAVE_BROKEN_CMSG_FIRSTHDR
 
12764
_ACEOF
 
12765
 
 
12766
else
 
12767
  echo "$as_me: program exited with status $ac_status" >&5
 
12768
echo "$as_me: failed program was:" >&5
 
12769
sed 's/^/| /' conftest.$ac_ext >&5
 
12770
 
 
12771
( exit $ac_status )
 
12772
echo "$as_me:$LINENO: result: no" >&5
 
12773
echo "${ECHO_T}no" >&6
 
12774
fi
 
12775
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
12776
fi
 
12777
 
 
12778
echo "$as_me:$LINENO: checking route read method check" >&5
 
12779
echo $ECHO_N "checking route read method check... $ECHO_C" >&6
 
12780
if test "${zebra_rtread+set}" = set; then
 
12781
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12782
else
 
12783
  if test "$netlink" = yes; then
 
12784
  RTREAD_METHOD="rtread_netlink.o"
 
12785
  zebra_rtread="netlink"
 
12786
else
 
12787
for zebra_rtread in /proc/net/route /dev/ip /dev/null;
 
12788
do
 
12789
  test x`ls $zebra_rtread 2>/dev/null` = x"$zebra_rtread" && break
 
12790
done
 
12791
case $zebra_rtread in
 
12792
  "/proc/net/route") RTREAD_METHOD="rtread_proc.o"
 
12793
                     zebra_rtread="proc";;
 
12794
  "/dev/ip")
 
12795
                     case "$host" in
 
12796
                       *-freebsd*)    RTREAD_METHOD=rtread_sysctl.o
 
12797
                                      zebra_rtread="sysctl";;
 
12798
                       *)             RTREAD_METHOD="rtread_getmsg.o"
 
12799
                                      zebra_rtread="getmsg";;
 
12800
                     esac;;
 
12801
  *)                 RTREAD_METHOD="rtread_sysctl.o"
 
12802
                     zebra_rtread="sysctl";;
 
12803
esac
 
12804
fi
 
12805
fi
 
12806
echo "$as_me:$LINENO: result: $zebra_rtread" >&5
 
12807
echo "${ECHO_T}$zebra_rtread" >&6
 
12808
 
 
12809
 
 
12810
IOCTL_METHOD=ioctl.o
 
12811
echo "$as_me:$LINENO: checking interface looking up method" >&5
 
12812
echo $ECHO_N "checking interface looking up method... $ECHO_C" >&6
 
12813
if test "$netlink" = yes; then
 
12814
  echo "$as_me:$LINENO: result: netlink" >&5
 
12815
echo "${ECHO_T}netlink" >&6
 
12816
  IF_METHOD=if_netlink.o
 
12817
elif test "$opsys" = "sol2-6";then
 
12818
  echo "$as_me:$LINENO: result: Solaris GIF" >&5
 
12819
echo "${ECHO_T}Solaris GIF" >&6
 
12820
  IF_METHOD=if_ioctl.o
 
12821
elif test "$opsys" = "sol8";then
 
12822
  echo "$as_me:$LINENO: result: Solaris GLIF" >&5
 
12823
echo "${ECHO_T}Solaris GLIF" >&6
 
12824
  IF_METHOD=if_ioctl_solaris.o
 
12825
  IOCTL_METHOD=ioctl_solaris.o
 
12826
elif test "$opsys" = "irix" ; then
 
12827
  echo "$as_me:$LINENO: result: IRIX" >&5
 
12828
echo "${ECHO_T}IRIX" >&6
 
12829
  IF_METHOD=if_ioctl.o
 
12830
elif test "$opsys" = "openbsd";then
 
12831
  echo "$as_me:$LINENO: result: openbsd" >&5
 
12832
echo "${ECHO_T}openbsd" >&6
 
12833
  IF_METHOD=if_ioctl.o
 
12834
elif grep NET_RT_IFLIST /usr/include/sys/socket.h >/dev/null 2>&1; then
 
12835
  echo "$as_me:$LINENO: result: sysctl" >&5
 
12836
echo "${ECHO_T}sysctl" >&6
 
12837
    IF_METHOD=if_sysctl.o
 
12838
 
 
12839
cat >>confdefs.h <<\_ACEOF
 
12840
#define HAVE_NET_RT_IFLIST
 
12841
_ACEOF
 
12842
 
 
12843
else
 
12844
    echo "$as_me:$LINENO: result: ioctl" >&5
 
12845
echo "${ECHO_T}ioctl" >&6
 
12846
    IF_METHOD=if_ioctl.o
 
12847
fi
 
12848
 
 
12849
 
 
12850
 
 
12851
if test -r /proc/net/dev; then
 
12852
 
 
12853
cat >>confdefs.h <<\_ACEOF
 
12854
#define HAVE_PROC_NET_DEV
 
12855
_ACEOF
 
12856
 
 
12857
  IF_PROC=if_proc.o
 
12858
fi
 
12859
 
 
12860
if test -r /proc/net/if_inet6; then
 
12861
 
 
12862
cat >>confdefs.h <<\_ACEOF
 
12863
#define HAVE_PROC_NET_IF_INET6
 
12864
_ACEOF
 
12865
 
 
12866
  IF_PROC=if_proc.o
 
12867
fi
 
12868
 
 
12869
 
 
12870
echo "$as_me:$LINENO: checking ipforward method check" >&5
 
12871
echo $ECHO_N "checking ipforward method check... $ECHO_C" >&6
 
12872
if test "${zebra_ipforward_path+set}" = set; then
 
12873
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12874
else
 
12875
  for zebra_ipforward_path in /proc/net/snmp /dev/ip /dev/null;
 
12876
do
 
12877
  test x`ls $zebra_ipforward_path 2>/dev/null` = x"$zebra_ipforward_path" && break
 
12878
done
 
12879
case $zebra_ipforward_path in
 
12880
  "/proc/net/snmp")  IPFORWARD=ipforward_proc.o
 
12881
                     zebra_ipforward_path="proc";;
 
12882
  "/dev/ip")
 
12883
                     case "$host" in
 
12884
                       *-nec-sysv4*)  IPFORWARD=ipforward_ews.o
 
12885
                                      zebra_ipforward_path="ews";;
 
12886
                       *-freebsd*)    IPFORWARD=ipforward_sysctl.o
 
12887
                                      zebra_ipforward_path="sysctl";;
 
12888
                       *)             IPFORWARD=ipforward_solaris.o
 
12889
                                      zebra_ipforward_path="solaris";;
 
12890
                     esac;;
 
12891
  *)                 IPFORWARD=ipforward_sysctl.o
 
12892
                     zebra_ipforward_path="sysctl";;
 
12893
esac
 
12894
fi
 
12895
echo "$as_me:$LINENO: result: $zebra_ipforward_path" >&5
 
12896
echo "${ECHO_T}$zebra_ipforward_path" >&6
 
12897
 
 
12898
 
 
12899
 
 
12900
for ac_func in getaddrinfo
 
12901
do
 
12902
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
12903
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
12904
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
12905
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
12906
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12907
else
 
12908
  cat >conftest.$ac_ext <<_ACEOF
 
12909
/* confdefs.h.  */
 
12910
_ACEOF
 
12911
cat confdefs.h >>conftest.$ac_ext
 
12912
cat >>conftest.$ac_ext <<_ACEOF
 
12913
/* end confdefs.h.  */
 
12914
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
12915
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12916
#define $ac_func innocuous_$ac_func
 
12917
 
 
12918
/* System header to define __stub macros and hopefully few prototypes,
 
12919
    which can conflict with char $ac_func (); below.
 
12920
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12921
    <limits.h> exists even on freestanding compilers.  */
 
12922
 
 
12923
#ifdef __STDC__
 
12924
# include <limits.h>
 
12925
#else
 
12926
# include <assert.h>
 
12927
#endif
 
12928
 
 
12929
#undef $ac_func
 
12930
 
 
12931
/* Override any gcc2 internal prototype to avoid an error.  */
 
12932
#ifdef __cplusplus
 
12933
extern "C"
 
12934
{
 
12935
#endif
 
12936
/* We use char because int might match the return type of a gcc2
 
12937
   builtin and then its argument prototype would still apply.  */
 
12938
char $ac_func ();
 
12939
/* The GNU C library defines this for functions which it implements
 
12940
    to always fail with ENOSYS.  Some functions are actually named
 
12941
    something starting with __ and the normal name is an alias.  */
 
12942
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
12943
choke me
 
12944
#else
 
12945
char (*f) () = $ac_func;
 
12946
#endif
 
12947
#ifdef __cplusplus
 
12948
}
 
12949
#endif
 
12950
 
 
12951
int
 
12952
main ()
 
12953
{
 
12954
return f != $ac_func;
 
12955
  ;
 
12956
  return 0;
 
12957
}
 
12958
_ACEOF
 
12959
rm -f conftest.$ac_objext conftest$ac_exeext
 
12960
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12961
  (eval $ac_link) 2>conftest.er1
 
12962
  ac_status=$?
 
12963
  grep -v '^ *+' conftest.er1 >conftest.err
 
12964
  rm -f conftest.er1
 
12965
  cat conftest.err >&5
 
12966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12967
  (exit $ac_status); } &&
 
12968
         { ac_try='test -z "$ac_c_werror_flag"
 
12969
                         || test ! -s conftest.err'
 
12970
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12971
  (eval $ac_try) 2>&5
 
12972
  ac_status=$?
 
12973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12974
  (exit $ac_status); }; } &&
 
12975
         { ac_try='test -s conftest$ac_exeext'
 
12976
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12977
  (eval $ac_try) 2>&5
 
12978
  ac_status=$?
 
12979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12980
  (exit $ac_status); }; }; then
 
12981
  eval "$as_ac_var=yes"
 
12982
else
 
12983
  echo "$as_me: failed program was:" >&5
 
12984
sed 's/^/| /' conftest.$ac_ext >&5
 
12985
 
 
12986
eval "$as_ac_var=no"
 
12987
fi
 
12988
rm -f conftest.err conftest.$ac_objext \
 
12989
      conftest$ac_exeext conftest.$ac_ext
 
12990
fi
 
12991
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
12992
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
12993
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
12994
  cat >>confdefs.h <<_ACEOF
 
12995
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
12996
_ACEOF
 
12997
 have_getaddrinfo=yes
 
12998
else
 
12999
  have_getaddrinfo=no
 
13000
fi
 
13001
done
 
13002
 
 
13003
 
 
13004
echo "$as_me:$LINENO: checking whether does this OS have IPv6 stack" >&5
 
13005
echo $ECHO_N "checking whether does this OS have IPv6 stack... $ECHO_C" >&6
 
13006
if test "${enable_ipv6}" = "no"; then
 
13007
  echo "$as_me:$LINENO: result: disabled" >&5
 
13008
echo "${ECHO_T}disabled" >&6
 
13009
else
 
13010
  if grep IPV6_INRIA_VERSION /usr/include/netinet/in.h >/dev/null 2>&1; then
 
13011
    zebra_cv_ipv6=yes
 
13012
 
 
13013
cat >>confdefs.h <<\_ACEOF
 
13014
#define HAVE_IPV6 1
 
13015
_ACEOF
 
13016
 
 
13017
 
 
13018
cat >>confdefs.h <<\_ACEOF
 
13019
#define INRIA_IPV6 1
 
13020
_ACEOF
 
13021
 
 
13022
    RIPNGD="ripngd"
 
13023
    OSPF6D="ospf6d"
 
13024
    LIB_IPV6=""
 
13025
    echo "$as_me:$LINENO: result: INRIA IPv6" >&5
 
13026
echo "${ECHO_T}INRIA IPv6" >&6
 
13027
  elif grep WIDE /usr/include/netinet6/in6.h >/dev/null 2>&1; then
 
13028
    zebra_cv_ipv6=yes
 
13029
 
 
13030
cat >>confdefs.h <<\_ACEOF
 
13031
#define HAVE_IPV6 1
 
13032
_ACEOF
 
13033
 
 
13034
 
 
13035
cat >>confdefs.h <<\_ACEOF
 
13036
#define KAME 1
 
13037
_ACEOF
 
13038
 
 
13039
    RIPNGD="ripngd"
 
13040
    OSPF6D="ospf6d"
 
13041
    if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then
 
13042
      LIB_IPV6="-L/usr/local/v6/lib -linet6"
 
13043
    fi
 
13044
    echo "$as_me:$LINENO: result: KAME" >&5
 
13045
echo "${ECHO_T}KAME" >&6
 
13046
  elif grep MUSICA /usr/include6/netinet6/in6.h >/dev/null 2>&1; then
 
13047
    zebra_cv_ipv6=yes
 
13048
 
 
13049
cat >>confdefs.h <<\_ACEOF
 
13050
#define HAVE_IPV6 1
 
13051
_ACEOF
 
13052
 
 
13053
 
 
13054
cat >>confdefs.h <<\_ACEOF
 
13055
#define MUSICA 1
 
13056
_ACEOF
 
13057
 
 
13058
 
 
13059
cat >>confdefs.h <<\_ACEOF
 
13060
#define KAME 1
 
13061
_ACEOF
 
13062
 
 
13063
    RIPNGD="ripngd"
 
13064
    OSPF6D="ospf6d"
 
13065
    if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then
 
13066
      LIB_IPV6="-L/usr/local/v6/lib -linet6"
 
13067
    fi
 
13068
    echo "$as_me:$LINENO: result: MUSICA" >&5
 
13069
echo "${ECHO_T}MUSICA" >&6
 
13070
  elif grep NRL /usr/include/netinet6/in6.h >/dev/null 2>&1; then
 
13071
    zebra_cv_ipv6=yes
 
13072
 
 
13073
cat >>confdefs.h <<\_ACEOF
 
13074
#define HAVE_IPV6 1
 
13075
_ACEOF
 
13076
 
 
13077
 
 
13078
cat >>confdefs.h <<\_ACEOF
 
13079
#define NRL 1
 
13080
_ACEOF
 
13081
 
 
13082
    RIPNGD="ripngd"
 
13083
    OSPF6D="ospf6d"
 
13084
    if test x"$opsys" = x"bsdi";then
 
13085
 
 
13086
cat >>confdefs.h <<\_ACEOF
 
13087
#define BSDI_NRL
 
13088
_ACEOF
 
13089
 
 
13090
      echo "$as_me:$LINENO: result: BSDI_NRL" >&5
 
13091
echo "${ECHO_T}BSDI_NRL" >&6
 
13092
    else
 
13093
      echo "$as_me:$LINENO: result: NRL" >&5
 
13094
echo "${ECHO_T}NRL" >&6
 
13095
    fi
 
13096
  elif test x"$opsys" = x"sol8"; then
 
13097
    zebra_cv_ipv6=yes;
 
13098
 
 
13099
cat >>confdefs.h <<\_ACEOF
 
13100
#define HAVE_IPV6 1
 
13101
_ACEOF
 
13102
 
 
13103
 
 
13104
cat >>confdefs.h <<\_ACEOF
 
13105
#define SOLARIS_IPV6 1
 
13106
_ACEOF
 
13107
 
 
13108
    RIPNGD="ripngd"
 
13109
    OSPF6D="ospf6d"
 
13110
    echo "$as_me:$LINENO: result: Solaris IPv6" >&5
 
13111
echo "${ECHO_T}Solaris IPv6" >&6
 
13112
  elif test "${enable_ipv6}" = "yes"; then
 
13113
    cat >conftest.$ac_ext <<_ACEOF
 
13114
/* confdefs.h.  */
 
13115
_ACEOF
 
13116
cat confdefs.h >>conftest.$ac_ext
 
13117
cat >>conftest.$ac_ext <<_ACEOF
 
13118
/* end confdefs.h.  */
 
13119
 
 
13120
      #include <linux/version.h>
 
13121
      /* 2.1.128 or later */
 
13122
      #if LINUX_VERSION_CODE >= 0x020180
 
13123
      yes
 
13124
      #endif
 
13125
_ACEOF
 
13126
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13127
  $EGREP "yes" >/dev/null 2>&1; then
 
13128
  zebra_cv_ipv6=yes
 
13129
       zebra_cv_linux_ipv6=yes
 
13130
       echo "$as_me:$LINENO: result: Linux IPv6" >&5
 
13131
echo "${ECHO_T}Linux IPv6" >&6
 
13132
fi
 
13133
rm -f conftest*
 
13134
 
 
13135
  else
 
13136
    if test x`ls /proc/net/ipv6_route 2>/dev/null` = x"/proc/net/ipv6_route"
 
13137
     then
 
13138
      zebra_cv_ipv6=yes
 
13139
      zebra_cv_linux_ipv6=yes
 
13140
      echo "$as_me:$LINENO: result: Linux IPv6" >&5
 
13141
echo "${ECHO_T}Linux IPv6" >&6
 
13142
    fi
 
13143
  fi
 
13144
 
 
13145
  if test "$zebra_cv_linux_ipv6" = "yes";then
 
13146
    echo "$as_me:$LINENO: checking for GNU libc >= 2.1" >&5
 
13147
echo $ECHO_N "checking for GNU libc >= 2.1... $ECHO_C" >&6
 
13148
 
 
13149
cat >>confdefs.h <<\_ACEOF
 
13150
#define HAVE_IPV6 1
 
13151
_ACEOF
 
13152
 
 
13153
    cat >conftest.$ac_ext <<_ACEOF
 
13154
/* confdefs.h.  */
 
13155
_ACEOF
 
13156
cat confdefs.h >>conftest.$ac_ext
 
13157
cat >>conftest.$ac_ext <<_ACEOF
 
13158
/* end confdefs.h.  */
 
13159
 
 
13160
#include <features.h>
 
13161
#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
 
13162
  yes
 
13163
#endif
 
13164
_ACEOF
 
13165
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13166
  $EGREP "yes" >/dev/null 2>&1; then
 
13167
  glibc=yes
 
13168
 
 
13169
cat >>confdefs.h <<\_ACEOF
 
13170
#define LINUX_IPV6 1
 
13171
_ACEOF
 
13172
 
 
13173
       echo "$as_me:$LINENO: result: yes" >&5
 
13174
echo "${ECHO_T}yes" >&6
 
13175
else
 
13176
  echo "$as_me:$LINENO: result: no" >&5
 
13177
echo "${ECHO_T}no" >&6
 
13178
 
 
13179
fi
 
13180
rm -f conftest*
 
13181
 
 
13182
    RIPNGD="ripngd"
 
13183
    OSPF6D="ospf6d"
 
13184
    if test "$glibc" != "yes"; then
 
13185
      INCLUDES="-I/usr/inet6/include"
 
13186
      if test x`ls /usr/inet6/lib/libinet6.a 2>/dev/null` != x;then
 
13187
         LIB_IPV6="-L/usr/inet6/lib -linet6"
 
13188
      fi
 
13189
    fi
 
13190
  fi
 
13191
 
 
13192
  LIBS="$LIB_IPV6 $LIBS"
 
13193
 
 
13194
 
 
13195
  if test x"$RIPNGD" = x""; then
 
13196
    echo "$as_me:$LINENO: result: IPv4 only" >&5
 
13197
echo "${ECHO_T}IPv4 only" >&6
 
13198
  fi
 
13199
fi
 
13200
 
 
13201
if test "x${zebra_cv_ipv6}" = "xyes"; then
 
13202
 
 
13203
 
 
13204
 
 
13205
 
 
13206
 
 
13207
for ac_header in netinet6/in6.h netinet/in6_var.h netinet/icmp6.h \
 
13208
                 netinet6/in6_var.h netinet6/nd6.h
 
13209
do
 
13210
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13211
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13212
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13213
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
13214
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13215
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13216
fi
 
13217
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
13218
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
13219
else
 
13220
  # Is the header compilable?
 
13221
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
13222
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
13223
cat >conftest.$ac_ext <<_ACEOF
 
13224
/* confdefs.h.  */
 
13225
_ACEOF
 
13226
cat confdefs.h >>conftest.$ac_ext
 
13227
cat >>conftest.$ac_ext <<_ACEOF
 
13228
/* end confdefs.h.  */
 
13229
$ac_includes_default
 
13230
#include <$ac_header>
 
13231
_ACEOF
 
13232
rm -f conftest.$ac_objext
 
13233
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13234
  (eval $ac_compile) 2>conftest.er1
 
13235
  ac_status=$?
 
13236
  grep -v '^ *+' conftest.er1 >conftest.err
 
13237
  rm -f conftest.er1
 
13238
  cat conftest.err >&5
 
13239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13240
  (exit $ac_status); } &&
 
13241
         { ac_try='test -z "$ac_c_werror_flag"
 
13242
                         || test ! -s conftest.err'
 
13243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13244
  (eval $ac_try) 2>&5
 
13245
  ac_status=$?
 
13246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13247
  (exit $ac_status); }; } &&
 
13248
         { ac_try='test -s conftest.$ac_objext'
 
13249
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13250
  (eval $ac_try) 2>&5
 
13251
  ac_status=$?
 
13252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13253
  (exit $ac_status); }; }; then
 
13254
  ac_header_compiler=yes
 
13255
else
 
13256
  echo "$as_me: failed program was:" >&5
 
13257
sed 's/^/| /' conftest.$ac_ext >&5
 
13258
 
 
13259
ac_header_compiler=no
 
13260
fi
 
13261
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13262
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13263
echo "${ECHO_T}$ac_header_compiler" >&6
 
13264
 
 
13265
# Is the header present?
 
13266
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
13267
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
13268
cat >conftest.$ac_ext <<_ACEOF
 
13269
/* confdefs.h.  */
 
13270
_ACEOF
 
13271
cat confdefs.h >>conftest.$ac_ext
 
13272
cat >>conftest.$ac_ext <<_ACEOF
 
13273
/* end confdefs.h.  */
 
13274
#include <$ac_header>
 
13275
_ACEOF
 
13276
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
13277
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
13278
  ac_status=$?
 
13279
  grep -v '^ *+' conftest.er1 >conftest.err
 
13280
  rm -f conftest.er1
 
13281
  cat conftest.err >&5
 
13282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13283
  (exit $ac_status); } >/dev/null; then
 
13284
  if test -s conftest.err; then
 
13285
    ac_cpp_err=$ac_c_preproc_warn_flag
 
13286
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
13287
  else
 
13288
    ac_cpp_err=
 
13289
  fi
 
13290
else
 
13291
  ac_cpp_err=yes
 
13292
fi
 
13293
if test -z "$ac_cpp_err"; then
 
13294
  ac_header_preproc=yes
 
13295
else
 
13296
  echo "$as_me: failed program was:" >&5
 
13297
sed 's/^/| /' conftest.$ac_ext >&5
 
13298
 
 
13299
  ac_header_preproc=no
 
13300
fi
 
13301
rm -f conftest.err conftest.$ac_ext
 
13302
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13303
echo "${ECHO_T}$ac_header_preproc" >&6
 
13304
 
 
13305
# So?  What about this header?
 
13306
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
13307
  yes:no: )
 
13308
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
13309
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
13310
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
13311
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
13312
    ac_header_preproc=yes
 
13313
    ;;
 
13314
  no:yes:* )
 
13315
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
13316
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
13317
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
13318
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
13319
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
13320
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
13321
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
13322
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
13323
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
13324
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
13325
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
13326
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
13327
    (
 
13328
      cat <<\_ASBOX
 
13329
## ----------------------------------------- ##
 
13330
## Report this to http://bugzilla.quagga.net ##
 
13331
## ----------------------------------------- ##
 
13332
_ASBOX
 
13333
    ) |
 
13334
      sed "s/^/$as_me: WARNING:     /" >&2
 
13335
    ;;
 
13336
esac
 
13337
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13338
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
13339
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13340
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13341
else
 
13342
  eval "$as_ac_Header=\$ac_header_preproc"
 
13343
fi
 
13344
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
13345
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
13346
 
 
13347
fi
 
13348
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
13349
  cat >>confdefs.h <<_ACEOF
 
13350
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13351
_ACEOF
 
13352
 
 
13353
fi
 
13354
 
 
13355
done
 
13356
 
 
13357
fi
 
13358
 
 
13359
if test "${enable_zebra}" = "no";then
 
13360
  ZEBRA=""
 
13361
else
 
13362
  ZEBRA="zebra"
 
13363
fi
 
13364
 
 
13365
if test "${enable_bgpd}" = "no";then
 
13366
  BGPD=""
 
13367
else
 
13368
  BGPD="bgpd"
 
13369
fi
 
13370
 
 
13371
if test "${enable_ripd}" = "no";then
 
13372
  RIPD=""
 
13373
else
 
13374
  RIPD="ripd"
 
13375
fi
 
13376
 
 
13377
if test "${enable_ospfd}" = "no";then
 
13378
  OSPFD=""
 
13379
else
 
13380
  OSPFD="ospfd"
 
13381
fi
 
13382
 
 
13383
if test "${enable_watchquagga}" = "no";then
 
13384
  WATCHQUAGGA=""
 
13385
else
 
13386
  WATCHQUAGGA="watchquagga"
 
13387
fi
 
13388
 
 
13389
OSPFCLIENT=""
 
13390
if test "${enable_opaque_lsa}" = "yes"; then
 
13391
  if test "${enable_ospfapi}" != "no";then
 
13392
 
 
13393
cat >>confdefs.h <<\_ACEOF
 
13394
#define SUPPORT_OSPF_API
 
13395
_ACEOF
 
13396
 
 
13397
 
 
13398
    if test "${enable_ospfclient}" != "no";then
 
13399
      OSPFCLIENT="ospfclient"
 
13400
    fi
 
13401
  fi
 
13402
 
 
13403
fi
 
13404
 
 
13405
case "${enable_ripngd}" in
 
13406
  "yes") RIPNGD="ripngd";;
 
13407
  "no" ) RIPNGD="";;
 
13408
  *    ) ;;
 
13409
esac
 
13410
 
 
13411
case "${enable_ospf6d}" in
 
13412
  "yes") OSPF6D="ospf6d";;
 
13413
  "no" ) OSPF6D="";;
 
13414
  *    ) ;;
 
13415
esac
 
13416
 
 
13417
case "${enable_isisd}" in
 
13418
  "yes") ISISD="isisd";;
 
13419
  "no" ) ISISD="";;
 
13420
  *    ) ;;
 
13421
esac
 
13422
 
 
13423
if test "${enable_bgp_announce}" = "no";then
 
13424
 
 
13425
cat >>confdefs.h <<\_ACEOF
 
13426
#define DISABLE_BGP_ANNOUNCE
 
13427
_ACEOF
 
13428
 
 
13429
fi
 
13430
 
 
13431
 
 
13432
 
 
13433
 
 
13434
 
 
13435
 
 
13436
 
 
13437
 
 
13438
 
 
13439
 
 
13440
 
 
13441
 
 
13442
 
 
13443
 
 
13444
echo "$as_me:$LINENO: checking for inet_ntop in -lc" >&5
 
13445
echo $ECHO_N "checking for inet_ntop in -lc... $ECHO_C" >&6
 
13446
if test "${ac_cv_lib_c_inet_ntop+set}" = set; then
 
13447
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13448
else
 
13449
  ac_check_lib_save_LIBS=$LIBS
 
13450
LIBS="-lc  $LIBS"
 
13451
cat >conftest.$ac_ext <<_ACEOF
 
13452
/* confdefs.h.  */
 
13453
_ACEOF
 
13454
cat confdefs.h >>conftest.$ac_ext
 
13455
cat >>conftest.$ac_ext <<_ACEOF
 
13456
/* end confdefs.h.  */
 
13457
 
 
13458
/* Override any gcc2 internal prototype to avoid an error.  */
 
13459
#ifdef __cplusplus
 
13460
extern "C"
 
13461
#endif
 
13462
/* We use char because int might match the return type of a gcc2
 
13463
   builtin and then its argument prototype would still apply.  */
 
13464
char inet_ntop ();
 
13465
int
 
13466
main ()
 
13467
{
 
13468
inet_ntop ();
 
13469
  ;
 
13470
  return 0;
 
13471
}
 
13472
_ACEOF
 
13473
rm -f conftest.$ac_objext conftest$ac_exeext
 
13474
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13475
  (eval $ac_link) 2>conftest.er1
 
13476
  ac_status=$?
 
13477
  grep -v '^ *+' conftest.er1 >conftest.err
 
13478
  rm -f conftest.er1
 
13479
  cat conftest.err >&5
 
13480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13481
  (exit $ac_status); } &&
 
13482
         { ac_try='test -z "$ac_c_werror_flag"
 
13483
                         || test ! -s conftest.err'
 
13484
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13485
  (eval $ac_try) 2>&5
 
13486
  ac_status=$?
 
13487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13488
  (exit $ac_status); }; } &&
 
13489
         { ac_try='test -s conftest$ac_exeext'
 
13490
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13491
  (eval $ac_try) 2>&5
 
13492
  ac_status=$?
 
13493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13494
  (exit $ac_status); }; }; then
 
13495
  ac_cv_lib_c_inet_ntop=yes
 
13496
else
 
13497
  echo "$as_me: failed program was:" >&5
 
13498
sed 's/^/| /' conftest.$ac_ext >&5
 
13499
 
 
13500
ac_cv_lib_c_inet_ntop=no
 
13501
fi
 
13502
rm -f conftest.err conftest.$ac_objext \
 
13503
      conftest$ac_exeext conftest.$ac_ext
 
13504
LIBS=$ac_check_lib_save_LIBS
 
13505
fi
 
13506
echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_ntop" >&5
 
13507
echo "${ECHO_T}$ac_cv_lib_c_inet_ntop" >&6
 
13508
if test $ac_cv_lib_c_inet_ntop = yes; then
 
13509
 
 
13510
cat >>confdefs.h <<\_ACEOF
 
13511
#define HAVE_INET_NTOP
 
13512
_ACEOF
 
13513
 
 
13514
fi
 
13515
 
 
13516
echo "$as_me:$LINENO: checking for inet_pton in -lc" >&5
 
13517
echo $ECHO_N "checking for inet_pton in -lc... $ECHO_C" >&6
 
13518
if test "${ac_cv_lib_c_inet_pton+set}" = set; then
 
13519
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13520
else
 
13521
  ac_check_lib_save_LIBS=$LIBS
 
13522
LIBS="-lc  $LIBS"
 
13523
cat >conftest.$ac_ext <<_ACEOF
 
13524
/* confdefs.h.  */
 
13525
_ACEOF
 
13526
cat confdefs.h >>conftest.$ac_ext
 
13527
cat >>conftest.$ac_ext <<_ACEOF
 
13528
/* end confdefs.h.  */
 
13529
 
 
13530
/* Override any gcc2 internal prototype to avoid an error.  */
 
13531
#ifdef __cplusplus
 
13532
extern "C"
 
13533
#endif
 
13534
/* We use char because int might match the return type of a gcc2
 
13535
   builtin and then its argument prototype would still apply.  */
 
13536
char inet_pton ();
 
13537
int
 
13538
main ()
 
13539
{
 
13540
inet_pton ();
 
13541
  ;
 
13542
  return 0;
 
13543
}
 
13544
_ACEOF
 
13545
rm -f conftest.$ac_objext conftest$ac_exeext
 
13546
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13547
  (eval $ac_link) 2>conftest.er1
 
13548
  ac_status=$?
 
13549
  grep -v '^ *+' conftest.er1 >conftest.err
 
13550
  rm -f conftest.er1
 
13551
  cat conftest.err >&5
 
13552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13553
  (exit $ac_status); } &&
 
13554
         { ac_try='test -z "$ac_c_werror_flag"
 
13555
                         || test ! -s conftest.err'
 
13556
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13557
  (eval $ac_try) 2>&5
 
13558
  ac_status=$?
 
13559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13560
  (exit $ac_status); }; } &&
 
13561
         { ac_try='test -s conftest$ac_exeext'
 
13562
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13563
  (eval $ac_try) 2>&5
 
13564
  ac_status=$?
 
13565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13566
  (exit $ac_status); }; }; then
 
13567
  ac_cv_lib_c_inet_pton=yes
 
13568
else
 
13569
  echo "$as_me: failed program was:" >&5
 
13570
sed 's/^/| /' conftest.$ac_ext >&5
 
13571
 
 
13572
ac_cv_lib_c_inet_pton=no
 
13573
fi
 
13574
rm -f conftest.err conftest.$ac_objext \
 
13575
      conftest$ac_exeext conftest.$ac_ext
 
13576
LIBS=$ac_check_lib_save_LIBS
 
13577
fi
 
13578
echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_pton" >&5
 
13579
echo "${ECHO_T}$ac_cv_lib_c_inet_pton" >&6
 
13580
if test $ac_cv_lib_c_inet_pton = yes; then
 
13581
 
 
13582
cat >>confdefs.h <<\_ACEOF
 
13583
#define HAVE_INET_PTON
 
13584
_ACEOF
 
13585
 
 
13586
fi
 
13587
 
 
13588
 
 
13589
echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
 
13590
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
 
13591
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
 
13592
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13593
else
 
13594
  ac_check_lib_save_LIBS=$LIBS
 
13595
LIBS="-lcrypt  $LIBS"
 
13596
cat >conftest.$ac_ext <<_ACEOF
 
13597
/* confdefs.h.  */
 
13598
_ACEOF
 
13599
cat confdefs.h >>conftest.$ac_ext
 
13600
cat >>conftest.$ac_ext <<_ACEOF
 
13601
/* end confdefs.h.  */
 
13602
 
 
13603
/* Override any gcc2 internal prototype to avoid an error.  */
 
13604
#ifdef __cplusplus
 
13605
extern "C"
 
13606
#endif
 
13607
/* We use char because int might match the return type of a gcc2
 
13608
   builtin and then its argument prototype would still apply.  */
 
13609
char crypt ();
 
13610
int
 
13611
main ()
 
13612
{
 
13613
crypt ();
 
13614
  ;
 
13615
  return 0;
 
13616
}
 
13617
_ACEOF
 
13618
rm -f conftest.$ac_objext conftest$ac_exeext
 
13619
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13620
  (eval $ac_link) 2>conftest.er1
 
13621
  ac_status=$?
 
13622
  grep -v '^ *+' conftest.er1 >conftest.err
 
13623
  rm -f conftest.er1
 
13624
  cat conftest.err >&5
 
13625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13626
  (exit $ac_status); } &&
 
13627
         { ac_try='test -z "$ac_c_werror_flag"
 
13628
                         || test ! -s conftest.err'
 
13629
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13630
  (eval $ac_try) 2>&5
 
13631
  ac_status=$?
 
13632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13633
  (exit $ac_status); }; } &&
 
13634
         { ac_try='test -s conftest$ac_exeext'
 
13635
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13636
  (eval $ac_try) 2>&5
 
13637
  ac_status=$?
 
13638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13639
  (exit $ac_status); }; }; then
 
13640
  ac_cv_lib_crypt_crypt=yes
 
13641
else
 
13642
  echo "$as_me: failed program was:" >&5
 
13643
sed 's/^/| /' conftest.$ac_ext >&5
 
13644
 
 
13645
ac_cv_lib_crypt_crypt=no
 
13646
fi
 
13647
rm -f conftest.err conftest.$ac_objext \
 
13648
      conftest$ac_exeext conftest.$ac_ext
 
13649
LIBS=$ac_check_lib_save_LIBS
 
13650
fi
 
13651
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
 
13652
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
 
13653
if test $ac_cv_lib_crypt_crypt = yes; then
 
13654
  cat >>confdefs.h <<_ACEOF
 
13655
#define HAVE_LIBCRYPT 1
 
13656
_ACEOF
 
13657
 
 
13658
  LIBS="-lcrypt $LIBS"
 
13659
 
 
13660
fi
 
13661
 
 
13662
 
 
13663
echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
 
13664
echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
 
13665
if test "${ac_cv_lib_resolv_res_init+set}" = set; then
 
13666
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13667
else
 
13668
  ac_check_lib_save_LIBS=$LIBS
 
13669
LIBS="-lresolv  $LIBS"
 
13670
cat >conftest.$ac_ext <<_ACEOF
 
13671
/* confdefs.h.  */
 
13672
_ACEOF
 
13673
cat confdefs.h >>conftest.$ac_ext
 
13674
cat >>conftest.$ac_ext <<_ACEOF
 
13675
/* end confdefs.h.  */
 
13676
 
 
13677
/* Override any gcc2 internal prototype to avoid an error.  */
 
13678
#ifdef __cplusplus
 
13679
extern "C"
 
13680
#endif
 
13681
/* We use char because int might match the return type of a gcc2
 
13682
   builtin and then its argument prototype would still apply.  */
 
13683
char res_init ();
 
13684
int
 
13685
main ()
 
13686
{
 
13687
res_init ();
 
13688
  ;
 
13689
  return 0;
 
13690
}
 
13691
_ACEOF
 
13692
rm -f conftest.$ac_objext conftest$ac_exeext
 
13693
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13694
  (eval $ac_link) 2>conftest.er1
 
13695
  ac_status=$?
 
13696
  grep -v '^ *+' conftest.er1 >conftest.err
 
13697
  rm -f conftest.er1
 
13698
  cat conftest.err >&5
 
13699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13700
  (exit $ac_status); } &&
 
13701
         { ac_try='test -z "$ac_c_werror_flag"
 
13702
                         || test ! -s conftest.err'
 
13703
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13704
  (eval $ac_try) 2>&5
 
13705
  ac_status=$?
 
13706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13707
  (exit $ac_status); }; } &&
 
13708
         { ac_try='test -s conftest$ac_exeext'
 
13709
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13710
  (eval $ac_try) 2>&5
 
13711
  ac_status=$?
 
13712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13713
  (exit $ac_status); }; }; then
 
13714
  ac_cv_lib_resolv_res_init=yes
 
13715
else
 
13716
  echo "$as_me: failed program was:" >&5
 
13717
sed 's/^/| /' conftest.$ac_ext >&5
 
13718
 
 
13719
ac_cv_lib_resolv_res_init=no
 
13720
fi
 
13721
rm -f conftest.err conftest.$ac_objext \
 
13722
      conftest$ac_exeext conftest.$ac_ext
 
13723
LIBS=$ac_check_lib_save_LIBS
 
13724
fi
 
13725
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
 
13726
echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
 
13727
if test $ac_cv_lib_resolv_res_init = yes; then
 
13728
  cat >>confdefs.h <<_ACEOF
 
13729
#define HAVE_LIBRESOLV 1
 
13730
_ACEOF
 
13731
 
 
13732
  LIBS="-lresolv $LIBS"
 
13733
 
 
13734
fi
 
13735
 
 
13736
 
 
13737
echo "$as_me:$LINENO: checking for main in -lm" >&5
 
13738
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
 
13739
if test "${ac_cv_lib_m_main+set}" = set; then
 
13740
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13741
else
 
13742
  ac_check_lib_save_LIBS=$LIBS
 
13743
LIBS="-lm  $LIBS"
 
13744
cat >conftest.$ac_ext <<_ACEOF
 
13745
/* confdefs.h.  */
 
13746
_ACEOF
 
13747
cat confdefs.h >>conftest.$ac_ext
 
13748
cat >>conftest.$ac_ext <<_ACEOF
 
13749
/* end confdefs.h.  */
 
13750
 
 
13751
 
 
13752
int
 
13753
main ()
 
13754
{
 
13755
main ();
 
13756
  ;
 
13757
  return 0;
 
13758
}
 
13759
_ACEOF
 
13760
rm -f conftest.$ac_objext conftest$ac_exeext
 
13761
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13762
  (eval $ac_link) 2>conftest.er1
 
13763
  ac_status=$?
 
13764
  grep -v '^ *+' conftest.er1 >conftest.err
 
13765
  rm -f conftest.er1
 
13766
  cat conftest.err >&5
 
13767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13768
  (exit $ac_status); } &&
 
13769
         { ac_try='test -z "$ac_c_werror_flag"
 
13770
                         || test ! -s conftest.err'
 
13771
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13772
  (eval $ac_try) 2>&5
 
13773
  ac_status=$?
 
13774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13775
  (exit $ac_status); }; } &&
 
13776
         { ac_try='test -s conftest$ac_exeext'
 
13777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13778
  (eval $ac_try) 2>&5
 
13779
  ac_status=$?
 
13780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13781
  (exit $ac_status); }; }; then
 
13782
  ac_cv_lib_m_main=yes
 
13783
else
 
13784
  echo "$as_me: failed program was:" >&5
 
13785
sed 's/^/| /' conftest.$ac_ext >&5
 
13786
 
 
13787
ac_cv_lib_m_main=no
 
13788
fi
 
13789
rm -f conftest.err conftest.$ac_objext \
 
13790
      conftest$ac_exeext conftest.$ac_ext
 
13791
LIBS=$ac_check_lib_save_LIBS
 
13792
fi
 
13793
echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
 
13794
echo "${ECHO_T}$ac_cv_lib_m_main" >&6
 
13795
if test $ac_cv_lib_m_main = yes; then
 
13796
  cat >>confdefs.h <<_ACEOF
 
13797
#define HAVE_LIBM 1
 
13798
_ACEOF
 
13799
 
 
13800
  LIBS="-lm $LIBS"
 
13801
 
 
13802
fi
 
13803
 
 
13804
 
 
13805
echo "$as_me:$LINENO: checking for __inet_ntop" >&5
 
13806
echo $ECHO_N "checking for __inet_ntop... $ECHO_C" >&6
 
13807
if test "${ac_cv_func___inet_ntop+set}" = set; then
 
13808
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13809
else
 
13810
  cat >conftest.$ac_ext <<_ACEOF
 
13811
/* confdefs.h.  */
 
13812
_ACEOF
 
13813
cat confdefs.h >>conftest.$ac_ext
 
13814
cat >>conftest.$ac_ext <<_ACEOF
 
13815
/* end confdefs.h.  */
 
13816
/* Define __inet_ntop to an innocuous variant, in case <limits.h> declares __inet_ntop.
 
13817
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13818
#define __inet_ntop innocuous___inet_ntop
 
13819
 
 
13820
/* System header to define __stub macros and hopefully few prototypes,
 
13821
    which can conflict with char __inet_ntop (); below.
 
13822
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13823
    <limits.h> exists even on freestanding compilers.  */
 
13824
 
 
13825
#ifdef __STDC__
 
13826
# include <limits.h>
 
13827
#else
 
13828
# include <assert.h>
 
13829
#endif
 
13830
 
 
13831
#undef __inet_ntop
 
13832
 
 
13833
/* Override any gcc2 internal prototype to avoid an error.  */
 
13834
#ifdef __cplusplus
 
13835
extern "C"
 
13836
{
 
13837
#endif
 
13838
/* We use char because int might match the return type of a gcc2
 
13839
   builtin and then its argument prototype would still apply.  */
 
13840
char __inet_ntop ();
 
13841
/* The GNU C library defines this for functions which it implements
 
13842
    to always fail with ENOSYS.  Some functions are actually named
 
13843
    something starting with __ and the normal name is an alias.  */
 
13844
#if defined (__stub___inet_ntop) || defined (__stub_____inet_ntop)
 
13845
choke me
 
13846
#else
 
13847
char (*f) () = __inet_ntop;
 
13848
#endif
 
13849
#ifdef __cplusplus
 
13850
}
 
13851
#endif
 
13852
 
 
13853
int
 
13854
main ()
 
13855
{
 
13856
return f != __inet_ntop;
 
13857
  ;
 
13858
  return 0;
 
13859
}
 
13860
_ACEOF
 
13861
rm -f conftest.$ac_objext conftest$ac_exeext
 
13862
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13863
  (eval $ac_link) 2>conftest.er1
 
13864
  ac_status=$?
 
13865
  grep -v '^ *+' conftest.er1 >conftest.err
 
13866
  rm -f conftest.er1
 
13867
  cat conftest.err >&5
 
13868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13869
  (exit $ac_status); } &&
 
13870
         { ac_try='test -z "$ac_c_werror_flag"
 
13871
                         || test ! -s conftest.err'
 
13872
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13873
  (eval $ac_try) 2>&5
 
13874
  ac_status=$?
 
13875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13876
  (exit $ac_status); }; } &&
 
13877
         { ac_try='test -s conftest$ac_exeext'
 
13878
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13879
  (eval $ac_try) 2>&5
 
13880
  ac_status=$?
 
13881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13882
  (exit $ac_status); }; }; then
 
13883
  ac_cv_func___inet_ntop=yes
 
13884
else
 
13885
  echo "$as_me: failed program was:" >&5
 
13886
sed 's/^/| /' conftest.$ac_ext >&5
 
13887
 
 
13888
ac_cv_func___inet_ntop=no
 
13889
fi
 
13890
rm -f conftest.err conftest.$ac_objext \
 
13891
      conftest$ac_exeext conftest.$ac_ext
 
13892
fi
 
13893
echo "$as_me:$LINENO: result: $ac_cv_func___inet_ntop" >&5
 
13894
echo "${ECHO_T}$ac_cv_func___inet_ntop" >&6
 
13895
if test $ac_cv_func___inet_ntop = yes; then
 
13896
 
 
13897
cat >>confdefs.h <<\_ACEOF
 
13898
#define HAVE_INET_NTOP
 
13899
_ACEOF
 
13900
 
 
13901
fi
 
13902
 
 
13903
echo "$as_me:$LINENO: checking for __inet_pton" >&5
 
13904
echo $ECHO_N "checking for __inet_pton... $ECHO_C" >&6
 
13905
if test "${ac_cv_func___inet_pton+set}" = set; then
 
13906
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13907
else
 
13908
  cat >conftest.$ac_ext <<_ACEOF
 
13909
/* confdefs.h.  */
 
13910
_ACEOF
 
13911
cat confdefs.h >>conftest.$ac_ext
 
13912
cat >>conftest.$ac_ext <<_ACEOF
 
13913
/* end confdefs.h.  */
 
13914
/* Define __inet_pton to an innocuous variant, in case <limits.h> declares __inet_pton.
 
13915
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13916
#define __inet_pton innocuous___inet_pton
 
13917
 
 
13918
/* System header to define __stub macros and hopefully few prototypes,
 
13919
    which can conflict with char __inet_pton (); below.
 
13920
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13921
    <limits.h> exists even on freestanding compilers.  */
 
13922
 
 
13923
#ifdef __STDC__
 
13924
# include <limits.h>
 
13925
#else
 
13926
# include <assert.h>
 
13927
#endif
 
13928
 
 
13929
#undef __inet_pton
 
13930
 
 
13931
/* Override any gcc2 internal prototype to avoid an error.  */
 
13932
#ifdef __cplusplus
 
13933
extern "C"
 
13934
{
 
13935
#endif
 
13936
/* We use char because int might match the return type of a gcc2
 
13937
   builtin and then its argument prototype would still apply.  */
 
13938
char __inet_pton ();
 
13939
/* The GNU C library defines this for functions which it implements
 
13940
    to always fail with ENOSYS.  Some functions are actually named
 
13941
    something starting with __ and the normal name is an alias.  */
 
13942
#if defined (__stub___inet_pton) || defined (__stub_____inet_pton)
 
13943
choke me
 
13944
#else
 
13945
char (*f) () = __inet_pton;
 
13946
#endif
 
13947
#ifdef __cplusplus
 
13948
}
 
13949
#endif
 
13950
 
 
13951
int
 
13952
main ()
 
13953
{
 
13954
return f != __inet_pton;
 
13955
  ;
 
13956
  return 0;
 
13957
}
 
13958
_ACEOF
 
13959
rm -f conftest.$ac_objext conftest$ac_exeext
 
13960
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13961
  (eval $ac_link) 2>conftest.er1
 
13962
  ac_status=$?
 
13963
  grep -v '^ *+' conftest.er1 >conftest.err
 
13964
  rm -f conftest.er1
 
13965
  cat conftest.err >&5
 
13966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13967
  (exit $ac_status); } &&
 
13968
         { ac_try='test -z "$ac_c_werror_flag"
 
13969
                         || test ! -s conftest.err'
 
13970
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13971
  (eval $ac_try) 2>&5
 
13972
  ac_status=$?
 
13973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13974
  (exit $ac_status); }; } &&
 
13975
         { ac_try='test -s conftest$ac_exeext'
 
13976
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13977
  (eval $ac_try) 2>&5
 
13978
  ac_status=$?
 
13979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13980
  (exit $ac_status); }; }; then
 
13981
  ac_cv_func___inet_pton=yes
 
13982
else
 
13983
  echo "$as_me: failed program was:" >&5
 
13984
sed 's/^/| /' conftest.$ac_ext >&5
 
13985
 
 
13986
ac_cv_func___inet_pton=no
 
13987
fi
 
13988
rm -f conftest.err conftest.$ac_objext \
 
13989
      conftest$ac_exeext conftest.$ac_ext
 
13990
fi
 
13991
echo "$as_me:$LINENO: result: $ac_cv_func___inet_pton" >&5
 
13992
echo "${ECHO_T}$ac_cv_func___inet_pton" >&6
 
13993
if test $ac_cv_func___inet_pton = yes; then
 
13994
 
 
13995
cat >>confdefs.h <<\_ACEOF
 
13996
#define HAVE_INET_PTON
 
13997
_ACEOF
 
13998
 
 
13999
fi
 
14000
 
 
14001
echo "$as_me:$LINENO: checking for __inet_aton" >&5
 
14002
echo $ECHO_N "checking for __inet_aton... $ECHO_C" >&6
 
14003
if test "${ac_cv_func___inet_aton+set}" = set; then
 
14004
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14005
else
 
14006
  cat >conftest.$ac_ext <<_ACEOF
 
14007
/* confdefs.h.  */
 
14008
_ACEOF
 
14009
cat confdefs.h >>conftest.$ac_ext
 
14010
cat >>conftest.$ac_ext <<_ACEOF
 
14011
/* end confdefs.h.  */
 
14012
/* Define __inet_aton to an innocuous variant, in case <limits.h> declares __inet_aton.
 
14013
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14014
#define __inet_aton innocuous___inet_aton
 
14015
 
 
14016
/* System header to define __stub macros and hopefully few prototypes,
 
14017
    which can conflict with char __inet_aton (); below.
 
14018
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14019
    <limits.h> exists even on freestanding compilers.  */
 
14020
 
 
14021
#ifdef __STDC__
 
14022
# include <limits.h>
 
14023
#else
 
14024
# include <assert.h>
 
14025
#endif
 
14026
 
 
14027
#undef __inet_aton
 
14028
 
 
14029
/* Override any gcc2 internal prototype to avoid an error.  */
 
14030
#ifdef __cplusplus
 
14031
extern "C"
 
14032
{
 
14033
#endif
 
14034
/* We use char because int might match the return type of a gcc2
 
14035
   builtin and then its argument prototype would still apply.  */
 
14036
char __inet_aton ();
 
14037
/* The GNU C library defines this for functions which it implements
 
14038
    to always fail with ENOSYS.  Some functions are actually named
 
14039
    something starting with __ and the normal name is an alias.  */
 
14040
#if defined (__stub___inet_aton) || defined (__stub_____inet_aton)
 
14041
choke me
 
14042
#else
 
14043
char (*f) () = __inet_aton;
 
14044
#endif
 
14045
#ifdef __cplusplus
 
14046
}
 
14047
#endif
 
14048
 
 
14049
int
 
14050
main ()
 
14051
{
 
14052
return f != __inet_aton;
 
14053
  ;
 
14054
  return 0;
 
14055
}
 
14056
_ACEOF
 
14057
rm -f conftest.$ac_objext conftest$ac_exeext
 
14058
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14059
  (eval $ac_link) 2>conftest.er1
 
14060
  ac_status=$?
 
14061
  grep -v '^ *+' conftest.er1 >conftest.err
 
14062
  rm -f conftest.er1
 
14063
  cat conftest.err >&5
 
14064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14065
  (exit $ac_status); } &&
 
14066
         { ac_try='test -z "$ac_c_werror_flag"
 
14067
                         || test ! -s conftest.err'
 
14068
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14069
  (eval $ac_try) 2>&5
 
14070
  ac_status=$?
 
14071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14072
  (exit $ac_status); }; } &&
 
14073
         { ac_try='test -s conftest$ac_exeext'
 
14074
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14075
  (eval $ac_try) 2>&5
 
14076
  ac_status=$?
 
14077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14078
  (exit $ac_status); }; }; then
 
14079
  ac_cv_func___inet_aton=yes
 
14080
else
 
14081
  echo "$as_me: failed program was:" >&5
 
14082
sed 's/^/| /' conftest.$ac_ext >&5
 
14083
 
 
14084
ac_cv_func___inet_aton=no
 
14085
fi
 
14086
rm -f conftest.err conftest.$ac_objext \
 
14087
      conftest$ac_exeext conftest.$ac_ext
 
14088
fi
 
14089
echo "$as_me:$LINENO: result: $ac_cv_func___inet_aton" >&5
 
14090
echo "${ECHO_T}$ac_cv_func___inet_aton" >&6
 
14091
if test $ac_cv_func___inet_aton = yes; then
 
14092
 
 
14093
cat >>confdefs.h <<\_ACEOF
 
14094
#define HAVE_INET_ATON
 
14095
_ACEOF
 
14096
 
 
14097
fi
 
14098
 
 
14099
 
 
14100
echo "$as_me:$LINENO: checking for regexec in -lc" >&5
 
14101
echo $ECHO_N "checking for regexec in -lc... $ECHO_C" >&6
 
14102
if test "${ac_cv_lib_c_regexec+set}" = set; then
 
14103
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14104
else
 
14105
  ac_check_lib_save_LIBS=$LIBS
 
14106
LIBS="-lc  $LIBS"
 
14107
cat >conftest.$ac_ext <<_ACEOF
 
14108
/* confdefs.h.  */
 
14109
_ACEOF
 
14110
cat confdefs.h >>conftest.$ac_ext
 
14111
cat >>conftest.$ac_ext <<_ACEOF
 
14112
/* end confdefs.h.  */
 
14113
 
 
14114
/* Override any gcc2 internal prototype to avoid an error.  */
 
14115
#ifdef __cplusplus
 
14116
extern "C"
 
14117
#endif
 
14118
/* We use char because int might match the return type of a gcc2
 
14119
   builtin and then its argument prototype would still apply.  */
 
14120
char regexec ();
 
14121
int
 
14122
main ()
 
14123
{
 
14124
regexec ();
 
14125
  ;
 
14126
  return 0;
 
14127
}
 
14128
_ACEOF
 
14129
rm -f conftest.$ac_objext conftest$ac_exeext
 
14130
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14131
  (eval $ac_link) 2>conftest.er1
 
14132
  ac_status=$?
 
14133
  grep -v '^ *+' conftest.er1 >conftest.err
 
14134
  rm -f conftest.er1
 
14135
  cat conftest.err >&5
 
14136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14137
  (exit $ac_status); } &&
 
14138
         { ac_try='test -z "$ac_c_werror_flag"
 
14139
                         || test ! -s conftest.err'
 
14140
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14141
  (eval $ac_try) 2>&5
 
14142
  ac_status=$?
 
14143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14144
  (exit $ac_status); }; } &&
 
14145
         { ac_try='test -s conftest$ac_exeext'
 
14146
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14147
  (eval $ac_try) 2>&5
 
14148
  ac_status=$?
 
14149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14150
  (exit $ac_status); }; }; then
 
14151
  ac_cv_lib_c_regexec=yes
 
14152
else
 
14153
  echo "$as_me: failed program was:" >&5
 
14154
sed 's/^/| /' conftest.$ac_ext >&5
 
14155
 
 
14156
ac_cv_lib_c_regexec=no
 
14157
fi
 
14158
rm -f conftest.err conftest.$ac_objext \
 
14159
      conftest$ac_exeext conftest.$ac_ext
 
14160
LIBS=$ac_check_lib_save_LIBS
 
14161
fi
 
14162
echo "$as_me:$LINENO: result: $ac_cv_lib_c_regexec" >&5
 
14163
echo "${ECHO_T}$ac_cv_lib_c_regexec" >&6
 
14164
if test $ac_cv_lib_c_regexec = yes; then
 
14165
 
 
14166
cat >>confdefs.h <<\_ACEOF
 
14167
#define HAVE_GNU_REGEX
 
14168
_ACEOF
 
14169
 
 
14170
 LIB_REGEX=""
 
14171
else
 
14172
  LIB_REGEX="regex.o"
 
14173
fi
 
14174
 
 
14175
 
 
14176
 
 
14177
if test "${enable_snmp}" = "yes";then
 
14178
  if test "${HAVE_SNMP}" = ""; then
 
14179
    old_libs="${LIBS}"
 
14180
    LIBS="-L/usr/lib"
 
14181
    unset ac_cv_lib_snmp_asn_parse_int
 
14182
    echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
 
14183
echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
 
14184
if test "${ac_cv_lib_crypto_main+set}" = set; then
 
14185
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14186
else
 
14187
  ac_check_lib_save_LIBS=$LIBS
 
14188
LIBS="-lcrypto  $LIBS"
 
14189
cat >conftest.$ac_ext <<_ACEOF
 
14190
/* confdefs.h.  */
 
14191
_ACEOF
 
14192
cat confdefs.h >>conftest.$ac_ext
 
14193
cat >>conftest.$ac_ext <<_ACEOF
 
14194
/* end confdefs.h.  */
 
14195
 
 
14196
 
 
14197
int
 
14198
main ()
 
14199
{
 
14200
main ();
 
14201
  ;
 
14202
  return 0;
 
14203
}
 
14204
_ACEOF
 
14205
rm -f conftest.$ac_objext conftest$ac_exeext
 
14206
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14207
  (eval $ac_link) 2>conftest.er1
 
14208
  ac_status=$?
 
14209
  grep -v '^ *+' conftest.er1 >conftest.err
 
14210
  rm -f conftest.er1
 
14211
  cat conftest.err >&5
 
14212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14213
  (exit $ac_status); } &&
 
14214
         { ac_try='test -z "$ac_c_werror_flag"
 
14215
                         || test ! -s conftest.err'
 
14216
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14217
  (eval $ac_try) 2>&5
 
14218
  ac_status=$?
 
14219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14220
  (exit $ac_status); }; } &&
 
14221
         { ac_try='test -s conftest$ac_exeext'
 
14222
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14223
  (eval $ac_try) 2>&5
 
14224
  ac_status=$?
 
14225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14226
  (exit $ac_status); }; }; then
 
14227
  ac_cv_lib_crypto_main=yes
 
14228
else
 
14229
  echo "$as_me: failed program was:" >&5
 
14230
sed 's/^/| /' conftest.$ac_ext >&5
 
14231
 
 
14232
ac_cv_lib_crypto_main=no
 
14233
fi
 
14234
rm -f conftest.err conftest.$ac_objext \
 
14235
      conftest$ac_exeext conftest.$ac_ext
 
14236
LIBS=$ac_check_lib_save_LIBS
 
14237
fi
 
14238
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
 
14239
echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
 
14240
if test $ac_cv_lib_crypto_main = yes; then
 
14241
  NEED_CRYPTO=yes
 
14242
fi
 
14243
 
 
14244
    if test "${NEED_CRYPTO}" = ""; then
 
14245
      echo "$as_me:$LINENO: checking for asn_parse_int in -lnetsnmp" >&5
 
14246
echo $ECHO_N "checking for asn_parse_int in -lnetsnmp... $ECHO_C" >&6
 
14247
if test "${ac_cv_lib_netsnmp_asn_parse_int+set}" = set; then
 
14248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14249
else
 
14250
  ac_check_lib_save_LIBS=$LIBS
 
14251
LIBS="-lnetsnmp  $LIBS"
 
14252
cat >conftest.$ac_ext <<_ACEOF
 
14253
/* confdefs.h.  */
 
14254
_ACEOF
 
14255
cat confdefs.h >>conftest.$ac_ext
 
14256
cat >>conftest.$ac_ext <<_ACEOF
 
14257
/* end confdefs.h.  */
 
14258
 
 
14259
/* Override any gcc2 internal prototype to avoid an error.  */
 
14260
#ifdef __cplusplus
 
14261
extern "C"
 
14262
#endif
 
14263
/* We use char because int might match the return type of a gcc2
 
14264
   builtin and then its argument prototype would still apply.  */
 
14265
char asn_parse_int ();
 
14266
int
 
14267
main ()
 
14268
{
 
14269
asn_parse_int ();
 
14270
  ;
 
14271
  return 0;
 
14272
}
 
14273
_ACEOF
 
14274
rm -f conftest.$ac_objext conftest$ac_exeext
 
14275
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14276
  (eval $ac_link) 2>conftest.er1
 
14277
  ac_status=$?
 
14278
  grep -v '^ *+' conftest.er1 >conftest.err
 
14279
  rm -f conftest.er1
 
14280
  cat conftest.err >&5
 
14281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14282
  (exit $ac_status); } &&
 
14283
         { ac_try='test -z "$ac_c_werror_flag"
 
14284
                         || test ! -s conftest.err'
 
14285
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14286
  (eval $ac_try) 2>&5
 
14287
  ac_status=$?
 
14288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14289
  (exit $ac_status); }; } &&
 
14290
         { ac_try='test -s conftest$ac_exeext'
 
14291
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14292
  (eval $ac_try) 2>&5
 
14293
  ac_status=$?
 
14294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14295
  (exit $ac_status); }; }; then
 
14296
  ac_cv_lib_netsnmp_asn_parse_int=yes
 
14297
else
 
14298
  echo "$as_me: failed program was:" >&5
 
14299
sed 's/^/| /' conftest.$ac_ext >&5
 
14300
 
 
14301
ac_cv_lib_netsnmp_asn_parse_int=no
 
14302
fi
 
14303
rm -f conftest.err conftest.$ac_objext \
 
14304
      conftest$ac_exeext conftest.$ac_ext
 
14305
LIBS=$ac_check_lib_save_LIBS
 
14306
fi
 
14307
echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_asn_parse_int" >&5
 
14308
echo "${ECHO_T}$ac_cv_lib_netsnmp_asn_parse_int" >&6
 
14309
if test $ac_cv_lib_netsnmp_asn_parse_int = yes; then
 
14310
  HAVE_NETSNMP=yes; HAVE_SNMP=yes
 
14311
fi
 
14312
 
 
14313
    else
 
14314
      echo "$as_me:$LINENO: checking for asn_parse_int in -lnetsnmp" >&5
 
14315
echo $ECHO_N "checking for asn_parse_int in -lnetsnmp... $ECHO_C" >&6
 
14316
if test "${ac_cv_lib_netsnmp_asn_parse_int+set}" = set; then
 
14317
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14318
else
 
14319
  ac_check_lib_save_LIBS=$LIBS
 
14320
LIBS="-lnetsnmp "-lcrypto" $LIBS"
 
14321
cat >conftest.$ac_ext <<_ACEOF
 
14322
/* confdefs.h.  */
 
14323
_ACEOF
 
14324
cat confdefs.h >>conftest.$ac_ext
 
14325
cat >>conftest.$ac_ext <<_ACEOF
 
14326
/* end confdefs.h.  */
 
14327
 
 
14328
/* Override any gcc2 internal prototype to avoid an error.  */
 
14329
#ifdef __cplusplus
 
14330
extern "C"
 
14331
#endif
 
14332
/* We use char because int might match the return type of a gcc2
 
14333
   builtin and then its argument prototype would still apply.  */
 
14334
char asn_parse_int ();
 
14335
int
 
14336
main ()
 
14337
{
 
14338
asn_parse_int ();
 
14339
  ;
 
14340
  return 0;
 
14341
}
 
14342
_ACEOF
 
14343
rm -f conftest.$ac_objext conftest$ac_exeext
 
14344
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14345
  (eval $ac_link) 2>conftest.er1
 
14346
  ac_status=$?
 
14347
  grep -v '^ *+' conftest.er1 >conftest.err
 
14348
  rm -f conftest.er1
 
14349
  cat conftest.err >&5
 
14350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14351
  (exit $ac_status); } &&
 
14352
         { ac_try='test -z "$ac_c_werror_flag"
 
14353
                         || test ! -s conftest.err'
 
14354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14355
  (eval $ac_try) 2>&5
 
14356
  ac_status=$?
 
14357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14358
  (exit $ac_status); }; } &&
 
14359
         { ac_try='test -s conftest$ac_exeext'
 
14360
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14361
  (eval $ac_try) 2>&5
 
14362
  ac_status=$?
 
14363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14364
  (exit $ac_status); }; }; then
 
14365
  ac_cv_lib_netsnmp_asn_parse_int=yes
 
14366
else
 
14367
  echo "$as_me: failed program was:" >&5
 
14368
sed 's/^/| /' conftest.$ac_ext >&5
 
14369
 
 
14370
ac_cv_lib_netsnmp_asn_parse_int=no
 
14371
fi
 
14372
rm -f conftest.err conftest.$ac_objext \
 
14373
      conftest$ac_exeext conftest.$ac_ext
 
14374
LIBS=$ac_check_lib_save_LIBS
 
14375
fi
 
14376
echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_asn_parse_int" >&5
 
14377
echo "${ECHO_T}$ac_cv_lib_netsnmp_asn_parse_int" >&6
 
14378
if test $ac_cv_lib_netsnmp_asn_parse_int = yes; then
 
14379
  HAVE_NETSNMP=yes; HAVE_SNMP=yes; NEED_CRYPTO=yes;LIBS="$LIBS -lcrypto"
 
14380
fi
 
14381
 
 
14382
    fi
 
14383
    LIBS="${old_libs}"
 
14384
  fi
 
14385
  if test "${HAVE_SNMP}" = ""; then
 
14386
    old_libs="${LIBS}"
 
14387
    LIBS="-L/usr/lib"
 
14388
    unset ac_cv_lib_snmp_asn_parse_int
 
14389
    echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
 
14390
echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
 
14391
if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
 
14392
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14393
else
 
14394
  ac_check_lib_save_LIBS=$LIBS
 
14395
LIBS="-lsnmp  $LIBS"
 
14396
cat >conftest.$ac_ext <<_ACEOF
 
14397
/* confdefs.h.  */
 
14398
_ACEOF
 
14399
cat confdefs.h >>conftest.$ac_ext
 
14400
cat >>conftest.$ac_ext <<_ACEOF
 
14401
/* end confdefs.h.  */
 
14402
 
 
14403
/* Override any gcc2 internal prototype to avoid an error.  */
 
14404
#ifdef __cplusplus
 
14405
extern "C"
 
14406
#endif
 
14407
/* We use char because int might match the return type of a gcc2
 
14408
   builtin and then its argument prototype would still apply.  */
 
14409
char asn_parse_int ();
 
14410
int
 
14411
main ()
 
14412
{
 
14413
asn_parse_int ();
 
14414
  ;
 
14415
  return 0;
 
14416
}
 
14417
_ACEOF
 
14418
rm -f conftest.$ac_objext conftest$ac_exeext
 
14419
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14420
  (eval $ac_link) 2>conftest.er1
 
14421
  ac_status=$?
 
14422
  grep -v '^ *+' conftest.er1 >conftest.err
 
14423
  rm -f conftest.er1
 
14424
  cat conftest.err >&5
 
14425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14426
  (exit $ac_status); } &&
 
14427
         { ac_try='test -z "$ac_c_werror_flag"
 
14428
                         || test ! -s conftest.err'
 
14429
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14430
  (eval $ac_try) 2>&5
 
14431
  ac_status=$?
 
14432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14433
  (exit $ac_status); }; } &&
 
14434
         { ac_try='test -s conftest$ac_exeext'
 
14435
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14436
  (eval $ac_try) 2>&5
 
14437
  ac_status=$?
 
14438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14439
  (exit $ac_status); }; }; then
 
14440
  ac_cv_lib_snmp_asn_parse_int=yes
 
14441
else
 
14442
  echo "$as_me: failed program was:" >&5
 
14443
sed 's/^/| /' conftest.$ac_ext >&5
 
14444
 
 
14445
ac_cv_lib_snmp_asn_parse_int=no
 
14446
fi
 
14447
rm -f conftest.err conftest.$ac_objext \
 
14448
      conftest$ac_exeext conftest.$ac_ext
 
14449
LIBS=$ac_check_lib_save_LIBS
 
14450
fi
 
14451
echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
 
14452
echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
 
14453
if test $ac_cv_lib_snmp_asn_parse_int = yes; then
 
14454
  HAVE_SNMP=yes
 
14455
fi
 
14456
 
 
14457
    if test "${HAVE_SNMP}" = ""; then
 
14458
      unset ac_cv_lib_snmp_asn_parse_int
 
14459
      echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
 
14460
echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
 
14461
if test "${ac_cv_lib_crypto_main+set}" = set; then
 
14462
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14463
else
 
14464
  ac_check_lib_save_LIBS=$LIBS
 
14465
LIBS="-lcrypto  $LIBS"
 
14466
cat >conftest.$ac_ext <<_ACEOF
 
14467
/* confdefs.h.  */
 
14468
_ACEOF
 
14469
cat confdefs.h >>conftest.$ac_ext
 
14470
cat >>conftest.$ac_ext <<_ACEOF
 
14471
/* end confdefs.h.  */
 
14472
 
 
14473
 
 
14474
int
 
14475
main ()
 
14476
{
 
14477
main ();
 
14478
  ;
 
14479
  return 0;
 
14480
}
 
14481
_ACEOF
 
14482
rm -f conftest.$ac_objext conftest$ac_exeext
 
14483
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14484
  (eval $ac_link) 2>conftest.er1
 
14485
  ac_status=$?
 
14486
  grep -v '^ *+' conftest.er1 >conftest.err
 
14487
  rm -f conftest.er1
 
14488
  cat conftest.err >&5
 
14489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14490
  (exit $ac_status); } &&
 
14491
         { ac_try='test -z "$ac_c_werror_flag"
 
14492
                         || test ! -s conftest.err'
 
14493
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14494
  (eval $ac_try) 2>&5
 
14495
  ac_status=$?
 
14496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14497
  (exit $ac_status); }; } &&
 
14498
         { ac_try='test -s conftest$ac_exeext'
 
14499
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14500
  (eval $ac_try) 2>&5
 
14501
  ac_status=$?
 
14502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14503
  (exit $ac_status); }; }; then
 
14504
  ac_cv_lib_crypto_main=yes
 
14505
else
 
14506
  echo "$as_me: failed program was:" >&5
 
14507
sed 's/^/| /' conftest.$ac_ext >&5
 
14508
 
 
14509
ac_cv_lib_crypto_main=no
 
14510
fi
 
14511
rm -f conftest.err conftest.$ac_objext \
 
14512
      conftest$ac_exeext conftest.$ac_ext
 
14513
LIBS=$ac_check_lib_save_LIBS
 
14514
fi
 
14515
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
 
14516
echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
 
14517
if test $ac_cv_lib_crypto_main = yes; then
 
14518
  NEED_CRYPTO=yes
 
14519
fi
 
14520
 
 
14521
      if test "${NEED_CRYPTO}" = "yes"; then
 
14522
        echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
 
14523
echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
 
14524
if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
 
14525
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14526
else
 
14527
  ac_check_lib_save_LIBS=$LIBS
 
14528
LIBS="-lsnmp "-lcrypto" $LIBS"
 
14529
cat >conftest.$ac_ext <<_ACEOF
 
14530
/* confdefs.h.  */
 
14531
_ACEOF
 
14532
cat confdefs.h >>conftest.$ac_ext
 
14533
cat >>conftest.$ac_ext <<_ACEOF
 
14534
/* end confdefs.h.  */
 
14535
 
 
14536
/* Override any gcc2 internal prototype to avoid an error.  */
 
14537
#ifdef __cplusplus
 
14538
extern "C"
 
14539
#endif
 
14540
/* We use char because int might match the return type of a gcc2
 
14541
   builtin and then its argument prototype would still apply.  */
 
14542
char asn_parse_int ();
 
14543
int
 
14544
main ()
 
14545
{
 
14546
asn_parse_int ();
 
14547
  ;
 
14548
  return 0;
 
14549
}
 
14550
_ACEOF
 
14551
rm -f conftest.$ac_objext conftest$ac_exeext
 
14552
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14553
  (eval $ac_link) 2>conftest.er1
 
14554
  ac_status=$?
 
14555
  grep -v '^ *+' conftest.er1 >conftest.err
 
14556
  rm -f conftest.er1
 
14557
  cat conftest.err >&5
 
14558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14559
  (exit $ac_status); } &&
 
14560
         { ac_try='test -z "$ac_c_werror_flag"
 
14561
                         || test ! -s conftest.err'
 
14562
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14563
  (eval $ac_try) 2>&5
 
14564
  ac_status=$?
 
14565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14566
  (exit $ac_status); }; } &&
 
14567
         { ac_try='test -s conftest$ac_exeext'
 
14568
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14569
  (eval $ac_try) 2>&5
 
14570
  ac_status=$?
 
14571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14572
  (exit $ac_status); }; }; then
 
14573
  ac_cv_lib_snmp_asn_parse_int=yes
 
14574
else
 
14575
  echo "$as_me: failed program was:" >&5
 
14576
sed 's/^/| /' conftest.$ac_ext >&5
 
14577
 
 
14578
ac_cv_lib_snmp_asn_parse_int=no
 
14579
fi
 
14580
rm -f conftest.err conftest.$ac_objext \
 
14581
      conftest$ac_exeext conftest.$ac_ext
 
14582
LIBS=$ac_check_lib_save_LIBS
 
14583
fi
 
14584
echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
 
14585
echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
 
14586
if test $ac_cv_lib_snmp_asn_parse_int = yes; then
 
14587
  HAVE_SNMP=yes; NEED_CRYPTO=yes; LIBS="$LIBS -lcrypto"
 
14588
fi
 
14589
 
 
14590
      fi
 
14591
    fi
 
14592
    LIBS="${old_libs}"
 
14593
  fi
 
14594
 
 
14595
  if test "${HAVE_SNMP}" = ""; then
 
14596
    old_libs="${LIBS}"
 
14597
    LIBS="-L/usr/local/lib"
 
14598
    unset ac_cv_lib_snmp_asn_parse_int
 
14599
    echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
 
14600
echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
 
14601
if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
 
14602
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14603
else
 
14604
  ac_check_lib_save_LIBS=$LIBS
 
14605
LIBS="-lsnmp  $LIBS"
 
14606
cat >conftest.$ac_ext <<_ACEOF
 
14607
/* confdefs.h.  */
 
14608
_ACEOF
 
14609
cat confdefs.h >>conftest.$ac_ext
 
14610
cat >>conftest.$ac_ext <<_ACEOF
 
14611
/* end confdefs.h.  */
 
14612
 
 
14613
/* Override any gcc2 internal prototype to avoid an error.  */
 
14614
#ifdef __cplusplus
 
14615
extern "C"
 
14616
#endif
 
14617
/* We use char because int might match the return type of a gcc2
 
14618
   builtin and then its argument prototype would still apply.  */
 
14619
char asn_parse_int ();
 
14620
int
 
14621
main ()
 
14622
{
 
14623
asn_parse_int ();
 
14624
  ;
 
14625
  return 0;
 
14626
}
 
14627
_ACEOF
 
14628
rm -f conftest.$ac_objext conftest$ac_exeext
 
14629
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14630
  (eval $ac_link) 2>conftest.er1
 
14631
  ac_status=$?
 
14632
  grep -v '^ *+' conftest.er1 >conftest.err
 
14633
  rm -f conftest.er1
 
14634
  cat conftest.err >&5
 
14635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14636
  (exit $ac_status); } &&
 
14637
         { ac_try='test -z "$ac_c_werror_flag"
 
14638
                         || test ! -s conftest.err'
 
14639
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14640
  (eval $ac_try) 2>&5
 
14641
  ac_status=$?
 
14642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14643
  (exit $ac_status); }; } &&
 
14644
         { ac_try='test -s conftest$ac_exeext'
 
14645
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14646
  (eval $ac_try) 2>&5
 
14647
  ac_status=$?
 
14648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14649
  (exit $ac_status); }; }; then
 
14650
  ac_cv_lib_snmp_asn_parse_int=yes
 
14651
else
 
14652
  echo "$as_me: failed program was:" >&5
 
14653
sed 's/^/| /' conftest.$ac_ext >&5
 
14654
 
 
14655
ac_cv_lib_snmp_asn_parse_int=no
 
14656
fi
 
14657
rm -f conftest.err conftest.$ac_objext \
 
14658
      conftest$ac_exeext conftest.$ac_ext
 
14659
LIBS=$ac_check_lib_save_LIBS
 
14660
fi
 
14661
echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
 
14662
echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
 
14663
if test $ac_cv_lib_snmp_asn_parse_int = yes; then
 
14664
  HAVE_SNMP=yes
 
14665
fi
 
14666
 
 
14667
    if test "${HAVE_SNMP}" = ""; then
 
14668
      unset ac_cv_lib_snmp_asn_parse_int
 
14669
      echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
 
14670
echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
 
14671
if test "${ac_cv_lib_crypto_main+set}" = set; then
 
14672
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14673
else
 
14674
  ac_check_lib_save_LIBS=$LIBS
 
14675
LIBS="-lcrypto  $LIBS"
 
14676
cat >conftest.$ac_ext <<_ACEOF
 
14677
/* confdefs.h.  */
 
14678
_ACEOF
 
14679
cat confdefs.h >>conftest.$ac_ext
 
14680
cat >>conftest.$ac_ext <<_ACEOF
 
14681
/* end confdefs.h.  */
 
14682
 
 
14683
 
 
14684
int
 
14685
main ()
 
14686
{
 
14687
main ();
 
14688
  ;
 
14689
  return 0;
 
14690
}
 
14691
_ACEOF
 
14692
rm -f conftest.$ac_objext conftest$ac_exeext
 
14693
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14694
  (eval $ac_link) 2>conftest.er1
 
14695
  ac_status=$?
 
14696
  grep -v '^ *+' conftest.er1 >conftest.err
 
14697
  rm -f conftest.er1
 
14698
  cat conftest.err >&5
 
14699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14700
  (exit $ac_status); } &&
 
14701
         { ac_try='test -z "$ac_c_werror_flag"
 
14702
                         || test ! -s conftest.err'
 
14703
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14704
  (eval $ac_try) 2>&5
 
14705
  ac_status=$?
 
14706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14707
  (exit $ac_status); }; } &&
 
14708
         { ac_try='test -s conftest$ac_exeext'
 
14709
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14710
  (eval $ac_try) 2>&5
 
14711
  ac_status=$?
 
14712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14713
  (exit $ac_status); }; }; then
 
14714
  ac_cv_lib_crypto_main=yes
 
14715
else
 
14716
  echo "$as_me: failed program was:" >&5
 
14717
sed 's/^/| /' conftest.$ac_ext >&5
 
14718
 
 
14719
ac_cv_lib_crypto_main=no
 
14720
fi
 
14721
rm -f conftest.err conftest.$ac_objext \
 
14722
      conftest$ac_exeext conftest.$ac_ext
 
14723
LIBS=$ac_check_lib_save_LIBS
 
14724
fi
 
14725
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
 
14726
echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
 
14727
if test $ac_cv_lib_crypto_main = yes; then
 
14728
  NEED_CRYPTO=yes
 
14729
fi
 
14730
 
 
14731
      if test "${NEED_CRYPTO}" = "yes"; then
 
14732
        echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
 
14733
echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
 
14734
if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
 
14735
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14736
else
 
14737
  ac_check_lib_save_LIBS=$LIBS
 
14738
LIBS="-lsnmp "-lcrypto" $LIBS"
 
14739
cat >conftest.$ac_ext <<_ACEOF
 
14740
/* confdefs.h.  */
 
14741
_ACEOF
 
14742
cat confdefs.h >>conftest.$ac_ext
 
14743
cat >>conftest.$ac_ext <<_ACEOF
 
14744
/* end confdefs.h.  */
 
14745
 
 
14746
/* Override any gcc2 internal prototype to avoid an error.  */
 
14747
#ifdef __cplusplus
 
14748
extern "C"
 
14749
#endif
 
14750
/* We use char because int might match the return type of a gcc2
 
14751
   builtin and then its argument prototype would still apply.  */
 
14752
char asn_parse_int ();
 
14753
int
 
14754
main ()
 
14755
{
 
14756
asn_parse_int ();
 
14757
  ;
 
14758
  return 0;
 
14759
}
 
14760
_ACEOF
 
14761
rm -f conftest.$ac_objext conftest$ac_exeext
 
14762
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14763
  (eval $ac_link) 2>conftest.er1
 
14764
  ac_status=$?
 
14765
  grep -v '^ *+' conftest.er1 >conftest.err
 
14766
  rm -f conftest.er1
 
14767
  cat conftest.err >&5
 
14768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14769
  (exit $ac_status); } &&
 
14770
         { ac_try='test -z "$ac_c_werror_flag"
 
14771
                         || test ! -s conftest.err'
 
14772
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14773
  (eval $ac_try) 2>&5
 
14774
  ac_status=$?
 
14775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14776
  (exit $ac_status); }; } &&
 
14777
         { ac_try='test -s conftest$ac_exeext'
 
14778
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14779
  (eval $ac_try) 2>&5
 
14780
  ac_status=$?
 
14781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14782
  (exit $ac_status); }; }; then
 
14783
  ac_cv_lib_snmp_asn_parse_int=yes
 
14784
else
 
14785
  echo "$as_me: failed program was:" >&5
 
14786
sed 's/^/| /' conftest.$ac_ext >&5
 
14787
 
 
14788
ac_cv_lib_snmp_asn_parse_int=no
 
14789
fi
 
14790
rm -f conftest.err conftest.$ac_objext \
 
14791
      conftest$ac_exeext conftest.$ac_ext
 
14792
LIBS=$ac_check_lib_save_LIBS
 
14793
fi
 
14794
echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
 
14795
echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
 
14796
if test $ac_cv_lib_snmp_asn_parse_int = yes; then
 
14797
  HAVE_SNMP=yes; NEED_CRYPTO=yes; LIBS="$LIBS -lcrypto"
 
14798
fi
 
14799
 
 
14800
      fi
 
14801
    fi
 
14802
    LIBS="${old_libs}"
 
14803
  fi
 
14804
 
 
14805
  if test "${HAVE_SNMP}" = "yes"; then
 
14806
    for ac_snmp in /usr/include/net-snmp/library/asn1.h /usr/include/ucd-snmp/asn1.h /usr/local/include/ucd-snmp/asn1.h /dev/null
 
14807
    do
 
14808
      test -f "${ac_snmp}" && break
 
14809
    done
 
14810
 
 
14811
    case ${ac_snmp} in
 
14812
      /usr/include/net-snmp/*)
 
14813
 
 
14814
cat >>confdefs.h <<\_ACEOF
 
14815
#define HAVE_SNMP
 
14816
_ACEOF
 
14817
 
 
14818
 
 
14819
cat >>confdefs.h <<\_ACEOF
 
14820
#define HAVE_NETSNMP
 
14821
_ACEOF
 
14822
 
 
14823
 
 
14824
cat >>confdefs.h <<\_ACEOF
 
14825
#define UCD_COMPATIBLE
 
14826
_ACEOF
 
14827
 
 
14828
                  SNMP_INCLUDES="${SNMP_INCLUDES} -I/usr/include/net-snmp -I/usr/include/net-snmp/library"
 
14829
                  if test "${HAVE_NETSNMP}" = "yes"; then
 
14830
                        LIBS="${LIBS} -lnetsnmp"
 
14831
                  else
 
14832
                        LIBS="${LIBS} -lsnmp"
 
14833
                  fi
 
14834
                  ;;
 
14835
      /usr/include/ucd-snmp/*)
 
14836
 
 
14837
cat >>confdefs.h <<\_ACEOF
 
14838
#define HAVE_SNMP
 
14839
_ACEOF
 
14840
 
 
14841
                  SNMP_INCLUDES="${SNMP_INCLUDES} -I/usr/include/ucd-snmp"
 
14842
                  LIBS="${LIBS} -lsnmp"
 
14843
                  ;;
 
14844
      /usr/local/include/ucd-snmp/*)
 
14845
 
 
14846
cat >>confdefs.h <<\_ACEOF
 
14847
#define HAVE_SNMP
 
14848
_ACEOF
 
14849
 
 
14850
                  SNMP_INCLUDES="${SNMP_INCLUDES} -I/usr/local/include/ucd-snmp"
 
14851
                  LIBS="${LIBS} -L/usr/local/lib -lsnmp"
 
14852
                  ;;
 
14853
      /usr/local/include/net-snmp/*)
 
14854
 
 
14855
cat >>confdefs.h <<\_ACEOF
 
14856
#define HAVE_SNMP
 
14857
_ACEOF
 
14858
 
 
14859
 
 
14860
cat >>confdefs.h <<\_ACEOF
 
14861
#define HAVE_NET_SNMP
 
14862
_ACEOF
 
14863
 
 
14864
 
 
14865
cat >>confdefs.h <<\_ACEOF
 
14866
#define UCD_COMPATIBLE
 
14867
_ACEOF
 
14868
 
 
14869
                SNMP_INCLUDES="${SNMP_INCLUDES} -I/usr/local/include/net-snmp"
 
14870
                LIBS="${LIBS} -L/usr/local/lib -lnetsnmp"
 
14871
                ;;
 
14872
    esac
 
14873
    if test "${NEED_CRYPTO}" = "yes"; then
 
14874
      LIBS="${LIBS} -lcrypto"
 
14875
    fi
 
14876
  fi
 
14877
fi
 
14878
 
 
14879
if test "${enable_snmp}" = "yes" -a "${HAVE_SNMP}" != "yes"; then
 
14880
  { { echo "$as_me:$LINENO: error: --enable-snmp given, but cannot find support for SNMP" >&5
 
14881
echo "$as_me: error: --enable-snmp given, but cannot find support for SNMP" >&2;}
 
14882
   { (exit 1); exit 1; }; }
 
14883
fi
 
14884
 
 
14885
 
 
14886
 
 
14887
echo "$as_me:$LINENO: checking whether struct sockaddr has a sa_len field" >&5
 
14888
echo $ECHO_N "checking whether struct sockaddr has a sa_len field... $ECHO_C" >&6
 
14889
cat >conftest.$ac_ext <<_ACEOF
 
14890
/* confdefs.h.  */
 
14891
_ACEOF
 
14892
cat confdefs.h >>conftest.$ac_ext
 
14893
cat >>conftest.$ac_ext <<_ACEOF
 
14894
/* end confdefs.h.  */
 
14895
#include <sys/types.h>
 
14896
#include <sys/socket.h>
 
14897
 
 
14898
int
 
14899
main ()
 
14900
{
 
14901
static struct sockaddr ac_i;int ac_j = sizeof (ac_i.sa_len);
 
14902
  ;
 
14903
  return 0;
 
14904
}
 
14905
_ACEOF
 
14906
rm -f conftest.$ac_objext
 
14907
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14908
  (eval $ac_compile) 2>conftest.er1
 
14909
  ac_status=$?
 
14910
  grep -v '^ *+' conftest.er1 >conftest.err
 
14911
  rm -f conftest.er1
 
14912
  cat conftest.err >&5
 
14913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14914
  (exit $ac_status); } &&
 
14915
         { ac_try='test -z "$ac_c_werror_flag"
 
14916
                         || test ! -s conftest.err'
 
14917
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14918
  (eval $ac_try) 2>&5
 
14919
  ac_status=$?
 
14920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14921
  (exit $ac_status); }; } &&
 
14922
         { ac_try='test -s conftest.$ac_objext'
 
14923
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14924
  (eval $ac_try) 2>&5
 
14925
  ac_status=$?
 
14926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14927
  (exit $ac_status); }; }; then
 
14928
  echo "$as_me:$LINENO: result: yes" >&5
 
14929
echo "${ECHO_T}yes" >&6
 
14930
 
 
14931
cat >>confdefs.h <<\_ACEOF
 
14932
#define HAVE_SA_LEN
 
14933
_ACEOF
 
14934
 
 
14935
else
 
14936
  echo "$as_me: failed program was:" >&5
 
14937
sed 's/^/| /' conftest.$ac_ext >&5
 
14938
 
 
14939
echo "$as_me:$LINENO: result: no" >&5
 
14940
echo "${ECHO_T}no" >&6
 
14941
fi
 
14942
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14943
 
 
14944
echo "$as_me:$LINENO: checking whether struct sockaddr_in has a sin_len field" >&5
 
14945
echo $ECHO_N "checking whether struct sockaddr_in has a sin_len field... $ECHO_C" >&6
 
14946
cat >conftest.$ac_ext <<_ACEOF
 
14947
/* confdefs.h.  */
 
14948
_ACEOF
 
14949
cat confdefs.h >>conftest.$ac_ext
 
14950
cat >>conftest.$ac_ext <<_ACEOF
 
14951
/* end confdefs.h.  */
 
14952
#include <sys/types.h>
 
14953
#include <netinet/in.h>
 
14954
 
 
14955
int
 
14956
main ()
 
14957
{
 
14958
static struct sockaddr_in ac_i;int ac_j = sizeof (ac_i.sin_len);
 
14959
  ;
 
14960
  return 0;
 
14961
}
 
14962
_ACEOF
 
14963
rm -f conftest.$ac_objext
 
14964
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14965
  (eval $ac_compile) 2>conftest.er1
 
14966
  ac_status=$?
 
14967
  grep -v '^ *+' conftest.er1 >conftest.err
 
14968
  rm -f conftest.er1
 
14969
  cat conftest.err >&5
 
14970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14971
  (exit $ac_status); } &&
 
14972
         { ac_try='test -z "$ac_c_werror_flag"
 
14973
                         || test ! -s conftest.err'
 
14974
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14975
  (eval $ac_try) 2>&5
 
14976
  ac_status=$?
 
14977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14978
  (exit $ac_status); }; } &&
 
14979
         { ac_try='test -s conftest.$ac_objext'
 
14980
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14981
  (eval $ac_try) 2>&5
 
14982
  ac_status=$?
 
14983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14984
  (exit $ac_status); }; }; then
 
14985
  echo "$as_me:$LINENO: result: yes" >&5
 
14986
echo "${ECHO_T}yes" >&6
 
14987
 
 
14988
cat >>confdefs.h <<\_ACEOF
 
14989
#define HAVE_SIN_LEN
 
14990
_ACEOF
 
14991
 
 
14992
else
 
14993
  echo "$as_me: failed program was:" >&5
 
14994
sed 's/^/| /' conftest.$ac_ext >&5
 
14995
 
 
14996
echo "$as_me:$LINENO: result: no" >&5
 
14997
echo "${ECHO_T}no" >&6
 
14998
fi
 
14999
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15000
 
 
15001
echo "$as_me:$LINENO: checking whether struct sockaddr_un has a sun_len field" >&5
 
15002
echo $ECHO_N "checking whether struct sockaddr_un has a sun_len field... $ECHO_C" >&6
 
15003
cat >conftest.$ac_ext <<_ACEOF
 
15004
/* confdefs.h.  */
 
15005
_ACEOF
 
15006
cat confdefs.h >>conftest.$ac_ext
 
15007
cat >>conftest.$ac_ext <<_ACEOF
 
15008
/* end confdefs.h.  */
 
15009
#include <sys/types.h>
 
15010
#include <sys/un.h>
 
15011
 
 
15012
int
 
15013
main ()
 
15014
{
 
15015
static struct sockaddr_un ac_i;int ac_j = sizeof (ac_i.sun_len);
 
15016
  ;
 
15017
  return 0;
 
15018
}
 
15019
_ACEOF
 
15020
rm -f conftest.$ac_objext
 
15021
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15022
  (eval $ac_compile) 2>conftest.er1
 
15023
  ac_status=$?
 
15024
  grep -v '^ *+' conftest.er1 >conftest.err
 
15025
  rm -f conftest.er1
 
15026
  cat conftest.err >&5
 
15027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15028
  (exit $ac_status); } &&
 
15029
         { ac_try='test -z "$ac_c_werror_flag"
 
15030
                         || test ! -s conftest.err'
 
15031
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15032
  (eval $ac_try) 2>&5
 
15033
  ac_status=$?
 
15034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15035
  (exit $ac_status); }; } &&
 
15036
         { ac_try='test -s conftest.$ac_objext'
 
15037
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15038
  (eval $ac_try) 2>&5
 
15039
  ac_status=$?
 
15040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15041
  (exit $ac_status); }; }; then
 
15042
  echo "$as_me:$LINENO: result: yes" >&5
 
15043
echo "${ECHO_T}yes" >&6
 
15044
 
 
15045
cat >>confdefs.h <<\_ACEOF
 
15046
#define HAVE_SUN_LEN
 
15047
_ACEOF
 
15048
 
 
15049
else
 
15050
  echo "$as_me: failed program was:" >&5
 
15051
sed 's/^/| /' conftest.$ac_ext >&5
 
15052
 
 
15053
echo "$as_me:$LINENO: result: no" >&5
 
15054
echo "${ECHO_T}no" >&6
 
15055
fi
 
15056
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15057
 
 
15058
if test "$zebra_cv_ipv6" = yes; then
 
15059
  echo "$as_me:$LINENO: checking whether struct sockaddr_in6 has a sin6_scope_id field" >&5
 
15060
echo $ECHO_N "checking whether struct sockaddr_in6 has a sin6_scope_id field... $ECHO_C" >&6
 
15061
  cat >conftest.$ac_ext <<_ACEOF
 
15062
/* confdefs.h.  */
 
15063
_ACEOF
 
15064
cat confdefs.h >>conftest.$ac_ext
 
15065
cat >>conftest.$ac_ext <<_ACEOF
 
15066
/* end confdefs.h.  */
 
15067
#include <sys/types.h>
 
15068
#include <netinet/in.h>
 
15069
 
 
15070
int
 
15071
main ()
 
15072
{
 
15073
static struct sockaddr_in6 ac_i;int ac_j = sizeof (ac_i.sin6_scope_id);
 
15074
  ;
 
15075
  return 0;
 
15076
}
 
15077
_ACEOF
 
15078
rm -f conftest.$ac_objext
 
15079
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15080
  (eval $ac_compile) 2>conftest.er1
 
15081
  ac_status=$?
 
15082
  grep -v '^ *+' conftest.er1 >conftest.err
 
15083
  rm -f conftest.er1
 
15084
  cat conftest.err >&5
 
15085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15086
  (exit $ac_status); } &&
 
15087
         { ac_try='test -z "$ac_c_werror_flag"
 
15088
                         || test ! -s conftest.err'
 
15089
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15090
  (eval $ac_try) 2>&5
 
15091
  ac_status=$?
 
15092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15093
  (exit $ac_status); }; } &&
 
15094
         { ac_try='test -s conftest.$ac_objext'
 
15095
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15096
  (eval $ac_try) 2>&5
 
15097
  ac_status=$?
 
15098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15099
  (exit $ac_status); }; }; then
 
15100
  echo "$as_me:$LINENO: result: yes" >&5
 
15101
echo "${ECHO_T}yes" >&6
 
15102
 
 
15103
cat >>confdefs.h <<\_ACEOF
 
15104
#define HAVE_SIN6_SCOPE_ID
 
15105
_ACEOF
 
15106
 
 
15107
else
 
15108
  echo "$as_me: failed program was:" >&5
 
15109
sed 's/^/| /' conftest.$ac_ext >&5
 
15110
 
 
15111
echo "$as_me:$LINENO: result: no" >&5
 
15112
echo "${ECHO_T}no" >&6
 
15113
fi
 
15114
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15115
fi
 
15116
 
 
15117
echo "$as_me:$LINENO: checking whther socklen_t is defined" >&5
 
15118
echo $ECHO_N "checking whther socklen_t is defined... $ECHO_C" >&6
 
15119
cat >conftest.$ac_ext <<_ACEOF
 
15120
/* confdefs.h.  */
 
15121
_ACEOF
 
15122
cat confdefs.h >>conftest.$ac_ext
 
15123
cat >>conftest.$ac_ext <<_ACEOF
 
15124
/* end confdefs.h.  */
 
15125
#include <sys/types.h>
 
15126
#include <sys/socket.h>
 
15127
#include <netinet/in.h>
 
15128
 
 
15129
int
 
15130
main ()
 
15131
{
 
15132
socklen_t ac_x;
 
15133
  ;
 
15134
  return 0;
 
15135
}
 
15136
_ACEOF
 
15137
rm -f conftest.$ac_objext
 
15138
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15139
  (eval $ac_compile) 2>conftest.er1
 
15140
  ac_status=$?
 
15141
  grep -v '^ *+' conftest.er1 >conftest.err
 
15142
  rm -f conftest.er1
 
15143
  cat conftest.err >&5
 
15144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15145
  (exit $ac_status); } &&
 
15146
         { ac_try='test -z "$ac_c_werror_flag"
 
15147
                         || test ! -s conftest.err'
 
15148
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15149
  (eval $ac_try) 2>&5
 
15150
  ac_status=$?
 
15151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15152
  (exit $ac_status); }; } &&
 
15153
         { ac_try='test -s conftest.$ac_objext'
 
15154
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15155
  (eval $ac_try) 2>&5
 
15156
  ac_status=$?
 
15157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15158
  (exit $ac_status); }; }; then
 
15159
  echo "$as_me:$LINENO: result: yes" >&5
 
15160
echo "${ECHO_T}yes" >&6
 
15161
 
 
15162
cat >>confdefs.h <<\_ACEOF
 
15163
#define HAVE_SOCKLEN_T
 
15164
_ACEOF
 
15165
 
 
15166
else
 
15167
  echo "$as_me: failed program was:" >&5
 
15168
sed 's/^/| /' conftest.$ac_ext >&5
 
15169
 
 
15170
echo "$as_me:$LINENO: result: no" >&5
 
15171
echo "${ECHO_T}no" >&6
 
15172
fi
 
15173
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15174
 
 
15175
echo "$as_me:$LINENO: checking whether struct sockaddr_dl exist" >&5
 
15176
echo $ECHO_N "checking whether struct sockaddr_dl exist... $ECHO_C" >&6
 
15177
cat >conftest.$ac_ext <<_ACEOF
 
15178
/* confdefs.h.  */
 
15179
_ACEOF
 
15180
cat confdefs.h >>conftest.$ac_ext
 
15181
cat >>conftest.$ac_ext <<_ACEOF
 
15182
/* end confdefs.h.  */
 
15183
#include <net/if_dl.h>
 
15184
 
 
15185
_ACEOF
 
15186
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
15187
  $EGREP "sockaddr_dl" >/dev/null 2>&1; then
 
15188
  echo "$as_me:$LINENO: result: yes" >&5
 
15189
echo "${ECHO_T}yes" >&6
 
15190
 
 
15191
cat >>confdefs.h <<\_ACEOF
 
15192
#define HAVE_SOCKADDR_DL
 
15193
_ACEOF
 
15194
 
 
15195
else
 
15196
  echo "$as_me:$LINENO: result: no" >&5
 
15197
echo "${ECHO_T}no" >&6
 
15198
fi
 
15199
rm -f conftest*
 
15200
 
 
15201
 
 
15202
echo "$as_me:$LINENO: checking whether struct ifaliasreq exist" >&5
 
15203
echo $ECHO_N "checking whether struct ifaliasreq exist... $ECHO_C" >&6
 
15204
cat >conftest.$ac_ext <<_ACEOF
 
15205
/* confdefs.h.  */
 
15206
_ACEOF
 
15207
cat confdefs.h >>conftest.$ac_ext
 
15208
cat >>conftest.$ac_ext <<_ACEOF
 
15209
/* end confdefs.h.  */
 
15210
#include <net/if.h>
 
15211
 
 
15212
_ACEOF
 
15213
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
15214
  $EGREP "ifaliasreq" >/dev/null 2>&1; then
 
15215
  echo "$as_me:$LINENO: result: yes" >&5
 
15216
echo "${ECHO_T}yes" >&6
 
15217
 
 
15218
cat >>confdefs.h <<\_ACEOF
 
15219
#define HAVE_IFALIASREQ
 
15220
_ACEOF
 
15221
 
 
15222
else
 
15223
  echo "$as_me:$LINENO: result: no" >&5
 
15224
echo "${ECHO_T}no" >&6
 
15225
fi
 
15226
rm -f conftest*
 
15227
 
 
15228
 
 
15229
echo "$as_me:$LINENO: checking whether struct in6_aliasreq exist" >&5
 
15230
echo $ECHO_N "checking whether struct in6_aliasreq exist... $ECHO_C" >&6
 
15231
cat >conftest.$ac_ext <<_ACEOF
 
15232
/* confdefs.h.  */
 
15233
_ACEOF
 
15234
cat confdefs.h >>conftest.$ac_ext
 
15235
cat >>conftest.$ac_ext <<_ACEOF
 
15236
/* end confdefs.h.  */
 
15237
#include <netinet6/in6_var.h>
 
15238
 
 
15239
_ACEOF
 
15240
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
15241
  $EGREP "in6_aliasreq" >/dev/null 2>&1; then
 
15242
  echo "$as_me:$LINENO: result: yes" >&5
 
15243
echo "${ECHO_T}yes" >&6
 
15244
 
 
15245
cat >>confdefs.h <<\_ACEOF
 
15246
#define HAVE_IN6_ALIASREQ
 
15247
_ACEOF
 
15248
 
 
15249
else
 
15250
  echo "$as_me:$LINENO: result: no" >&5
 
15251
echo "${ECHO_T}no" >&6
 
15252
fi
 
15253
rm -f conftest*
 
15254
 
 
15255
 
 
15256
echo "$as_me:$LINENO: checking whether in6_aliasreq.ifra_lifetime exist" >&5
 
15257
echo $ECHO_N "checking whether in6_aliasreq.ifra_lifetime exist... $ECHO_C" >&6
 
15258
cat >conftest.$ac_ext <<_ACEOF
 
15259
/* confdefs.h.  */
 
15260
_ACEOF
 
15261
cat confdefs.h >>conftest.$ac_ext
 
15262
cat >>conftest.$ac_ext <<_ACEOF
 
15263
/* end confdefs.h.  */
 
15264
#include <sys/types.h>
 
15265
#include <netinet6/in6_var.h>
 
15266
 
 
15267
int
 
15268
main ()
 
15269
{
 
15270
static struct if6_aliasreq ac_i;int ac_j = sizeof (ac_i.ifra_lifetime);
 
15271
  ;
 
15272
  return 0;
 
15273
}
 
15274
_ACEOF
 
15275
rm -f conftest.$ac_objext
 
15276
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15277
  (eval $ac_compile) 2>conftest.er1
 
15278
  ac_status=$?
 
15279
  grep -v '^ *+' conftest.er1 >conftest.err
 
15280
  rm -f conftest.er1
 
15281
  cat conftest.err >&5
 
15282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15283
  (exit $ac_status); } &&
 
15284
         { ac_try='test -z "$ac_c_werror_flag"
 
15285
                         || test ! -s conftest.err'
 
15286
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15287
  (eval $ac_try) 2>&5
 
15288
  ac_status=$?
 
15289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15290
  (exit $ac_status); }; } &&
 
15291
         { ac_try='test -s conftest.$ac_objext'
 
15292
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15293
  (eval $ac_try) 2>&5
 
15294
  ac_status=$?
 
15295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15296
  (exit $ac_status); }; }; then
 
15297
  echo "$as_me:$LINENO: result: yes" >&5
 
15298
echo "${ECHO_T}yes" >&6
 
15299
 
 
15300
cat >>confdefs.h <<\_ACEOF
 
15301
#define HAVE_IFRA_LIFETIME
 
15302
_ACEOF
 
15303
 
 
15304
else
 
15305
  echo "$as_me: failed program was:" >&5
 
15306
sed 's/^/| /' conftest.$ac_ext >&5
 
15307
 
 
15308
echo "$as_me:$LINENO: result: no" >&5
 
15309
echo "${ECHO_T}no" >&6
 
15310
fi
 
15311
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15312
 
 
15313
echo "$as_me:$LINENO: checking whether struct rt_addrinfo exist" >&5
 
15314
echo $ECHO_N "checking whether struct rt_addrinfo exist... $ECHO_C" >&6
 
15315
cat >conftest.$ac_ext <<_ACEOF
 
15316
/* confdefs.h.  */
 
15317
_ACEOF
 
15318
cat confdefs.h >>conftest.$ac_ext
 
15319
cat >>conftest.$ac_ext <<_ACEOF
 
15320
/* end confdefs.h.  */
 
15321
#include <net/route.h>
 
15322
 
 
15323
_ACEOF
 
15324
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
15325
  $EGREP "rt_addrinfo" >/dev/null 2>&1; then
 
15326
  echo "$as_me:$LINENO: result: yes" >&5
 
15327
echo "${ECHO_T}yes" >&6
 
15328
 
 
15329
cat >>confdefs.h <<\_ACEOF
 
15330
#define HAVE_RT_ADDRINFO
 
15331
_ACEOF
 
15332
 
 
15333
else
 
15334
  echo "$as_me:$LINENO: result: no" >&5
 
15335
echo "${ECHO_T}no" >&6
 
15336
fi
 
15337
rm -f conftest*
 
15338
 
 
15339
 
 
15340
echo "$as_me:$LINENO: checking whether struct in_pktinfo exist" >&5
 
15341
echo $ECHO_N "checking whether struct in_pktinfo exist... $ECHO_C" >&6
 
15342
cat >conftest.$ac_ext <<_ACEOF
 
15343
/* confdefs.h.  */
 
15344
_ACEOF
 
15345
cat confdefs.h >>conftest.$ac_ext
 
15346
cat >>conftest.$ac_ext <<_ACEOF
 
15347
/* end confdefs.h.  */
 
15348
#include <netinet/in.h>
 
15349
 
 
15350
int
 
15351
main ()
 
15352
{
 
15353
struct in_pktinfo ac_x;
 
15354
  ;
 
15355
  return 0;
 
15356
}
 
15357
_ACEOF
 
15358
rm -f conftest.$ac_objext
 
15359
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15360
  (eval $ac_compile) 2>conftest.er1
 
15361
  ac_status=$?
 
15362
  grep -v '^ *+' conftest.er1 >conftest.err
 
15363
  rm -f conftest.er1
 
15364
  cat conftest.err >&5
 
15365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15366
  (exit $ac_status); } &&
 
15367
         { ac_try='test -z "$ac_c_werror_flag"
 
15368
                         || test ! -s conftest.err'
 
15369
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15370
  (eval $ac_try) 2>&5
 
15371
  ac_status=$?
 
15372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15373
  (exit $ac_status); }; } &&
 
15374
         { ac_try='test -s conftest.$ac_objext'
 
15375
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15376
  (eval $ac_try) 2>&5
 
15377
  ac_status=$?
 
15378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15379
  (exit $ac_status); }; }; then
 
15380
  echo "$as_me:$LINENO: result: yes" >&5
 
15381
echo "${ECHO_T}yes" >&6
 
15382
 
 
15383
cat >>confdefs.h <<\_ACEOF
 
15384
#define HAVE_INPKTINFO
 
15385
_ACEOF
 
15386
 
 
15387
else
 
15388
  echo "$as_me: failed program was:" >&5
 
15389
sed 's/^/| /' conftest.$ac_ext >&5
 
15390
 
 
15391
echo "$as_me:$LINENO: result: no" >&5
 
15392
echo "${ECHO_T}no" >&6
 
15393
fi
 
15394
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15395
 
 
15396
echo "$as_me:$LINENO: checking whether struct nd_opt_homeagent_info exist" >&5
 
15397
echo $ECHO_N "checking whether struct nd_opt_homeagent_info exist... $ECHO_C" >&6
 
15398
cat >conftest.$ac_ext <<_ACEOF
 
15399
/* confdefs.h.  */
 
15400
_ACEOF
 
15401
cat confdefs.h >>conftest.$ac_ext
 
15402
cat >>conftest.$ac_ext <<_ACEOF
 
15403
/* end confdefs.h.  */
 
15404
#include <netinet/icmp6.h>
 
15405
 
 
15406
_ACEOF
 
15407
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
15408
  $EGREP "nd_opt_homeagent_info" >/dev/null 2>&1; then
 
15409
  echo "$as_me:$LINENO: result: yes" >&5
 
15410
echo "${ECHO_T}yes" >&6
 
15411
 
 
15412
cat >>confdefs.h <<\_ACEOF
 
15413
#define HAVE_ND_OPT_HOMEAGENT_INFO
 
15414
_ACEOF
 
15415
 
 
15416
else
 
15417
  echo "$as_me:$LINENO: result: no" >&5
 
15418
echo "${ECHO_T}no" >&6
 
15419
fi
 
15420
rm -f conftest*
 
15421
 
 
15422
 
 
15423
echo "$as_me:$LINENO: checking whether struct nd_opt_adv_interval exist" >&5
 
15424
echo $ECHO_N "checking whether struct nd_opt_adv_interval exist... $ECHO_C" >&6
 
15425
cat >conftest.$ac_ext <<_ACEOF
 
15426
/* confdefs.h.  */
 
15427
_ACEOF
 
15428
cat confdefs.h >>conftest.$ac_ext
 
15429
cat >>conftest.$ac_ext <<_ACEOF
 
15430
/* end confdefs.h.  */
 
15431
#include <netinet/icmp6.h>
 
15432
 
 
15433
_ACEOF
 
15434
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
15435
  $EGREP "nd_opt_adv_interval" >/dev/null 2>&1; then
 
15436
  echo "$as_me:$LINENO: result: yes" >&5
 
15437
echo "${ECHO_T}yes" >&6
 
15438
 
 
15439
cat >>confdefs.h <<\_ACEOF
 
15440
#define HAVE_ND_OPT_ADV_INTERVAL
 
15441
_ACEOF
 
15442
 
 
15443
else
 
15444
  echo "$as_me:$LINENO: result: no" >&5
 
15445
echo "${ECHO_T}no" >&6
 
15446
fi
 
15447
rm -f conftest*
 
15448
 
 
15449
 
 
15450
echo "$as_me:$LINENO: checking whether nd_opt_ai_type field exist" >&5
 
15451
echo $ECHO_N "checking whether nd_opt_ai_type field exist... $ECHO_C" >&6
 
15452
cat >conftest.$ac_ext <<_ACEOF
 
15453
/* confdefs.h.  */
 
15454
_ACEOF
 
15455
cat confdefs.h >>conftest.$ac_ext
 
15456
cat >>conftest.$ac_ext <<_ACEOF
 
15457
/* end confdefs.h.  */
 
15458
#include <netinet/icmp6.h>
 
15459
 
 
15460
_ACEOF
 
15461
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
15462
  $EGREP "nd_opt_ai_type" >/dev/null 2>&1; then
 
15463
  echo "$as_me:$LINENO: result: yes" >&5
 
15464
echo "${ECHO_T}yes" >&6
 
15465
 
 
15466
cat >>confdefs.h <<\_ACEOF
 
15467
#define HAVE_ND_OPT_ADV_INTERVAL_AI_FIELDS
 
15468
_ACEOF
 
15469
 
 
15470
else
 
15471
  echo "$as_me:$LINENO: result: no" >&5
 
15472
echo "${ECHO_T}no" >&6
 
15473
fi
 
15474
rm -f conftest*
 
15475
 
 
15476
 
 
15477
echo "$as_me:$LINENO: checking whether getrusage is available" >&5
 
15478
echo $ECHO_N "checking whether getrusage is available... $ECHO_C" >&6
 
15479
cat >conftest.$ac_ext <<_ACEOF
 
15480
/* confdefs.h.  */
 
15481
_ACEOF
 
15482
cat confdefs.h >>conftest.$ac_ext
 
15483
cat >>conftest.$ac_ext <<_ACEOF
 
15484
/* end confdefs.h.  */
 
15485
#include <sys/resource.h>
 
15486
 
 
15487
int
 
15488
main ()
 
15489
{
 
15490
struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x);
 
15491
  ;
 
15492
  return 0;
 
15493
}
 
15494
_ACEOF
 
15495
rm -f conftest.$ac_objext
 
15496
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15497
  (eval $ac_compile) 2>conftest.er1
 
15498
  ac_status=$?
 
15499
  grep -v '^ *+' conftest.er1 >conftest.err
 
15500
  rm -f conftest.er1
 
15501
  cat conftest.err >&5
 
15502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15503
  (exit $ac_status); } &&
 
15504
         { ac_try='test -z "$ac_c_werror_flag"
 
15505
                         || test ! -s conftest.err'
 
15506
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15507
  (eval $ac_try) 2>&5
 
15508
  ac_status=$?
 
15509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15510
  (exit $ac_status); }; } &&
 
15511
         { ac_try='test -s conftest.$ac_objext'
 
15512
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15513
  (eval $ac_try) 2>&5
 
15514
  ac_status=$?
 
15515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15516
  (exit $ac_status); }; }; then
 
15517
  echo "$as_me:$LINENO: result: yes" >&5
 
15518
echo "${ECHO_T}yes" >&6
 
15519
 
 
15520
cat >>confdefs.h <<\_ACEOF
 
15521
#define HAVE_RUSAGE
 
15522
_ACEOF
 
15523
 
 
15524
else
 
15525
  echo "$as_me: failed program was:" >&5
 
15526
sed 's/^/| /' conftest.$ac_ext >&5
 
15527
 
 
15528
echo "$as_me:$LINENO: result: no" >&5
 
15529
echo "${ECHO_T}no" >&6
 
15530
fi
 
15531
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15532
 
 
15533
if test "${enable_capabilities}" != "no"; then
 
15534
  echo "$as_me:$LINENO: checking whether prctl PR_SET_KEEPCAPS is available" >&5
 
15535
echo $ECHO_N "checking whether prctl PR_SET_KEEPCAPS is available... $ECHO_C" >&6
 
15536
  cat >conftest.$ac_ext <<_ACEOF
 
15537
/* confdefs.h.  */
 
15538
_ACEOF
 
15539
cat confdefs.h >>conftest.$ac_ext
 
15540
cat >>conftest.$ac_ext <<_ACEOF
 
15541
/* end confdefs.h.  */
 
15542
#include <sys/prctl.h>
 
15543
int
 
15544
main ()
 
15545
{
 
15546
prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0);
 
15547
  ;
 
15548
  return 0;
 
15549
}
 
15550
_ACEOF
 
15551
rm -f conftest.$ac_objext
 
15552
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15553
  (eval $ac_compile) 2>conftest.er1
 
15554
  ac_status=$?
 
15555
  grep -v '^ *+' conftest.er1 >conftest.err
 
15556
  rm -f conftest.er1
 
15557
  cat conftest.err >&5
 
15558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15559
  (exit $ac_status); } &&
 
15560
         { ac_try='test -z "$ac_c_werror_flag"
 
15561
                         || test ! -s conftest.err'
 
15562
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15563
  (eval $ac_try) 2>&5
 
15564
  ac_status=$?
 
15565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15566
  (exit $ac_status); }; } &&
 
15567
         { ac_try='test -s conftest.$ac_objext'
 
15568
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15569
  (eval $ac_try) 2>&5
 
15570
  ac_status=$?
 
15571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15572
  (exit $ac_status); }; }; then
 
15573
  echo "$as_me:$LINENO: result: yes" >&5
 
15574
echo "${ECHO_T}yes" >&6
 
15575
 
 
15576
cat >>confdefs.h <<\_ACEOF
 
15577
#define HAVE_PR_SET_KEEPCAPS
 
15578
_ACEOF
 
15579
 
 
15580
     quagga_ac_keepcaps="yes"
 
15581
else
 
15582
  echo "$as_me: failed program was:" >&5
 
15583
sed 's/^/| /' conftest.$ac_ext >&5
 
15584
 
 
15585
echo "$as_me:$LINENO: result: no" >&5
 
15586
echo "${ECHO_T}no" >&6
 
15587
 
 
15588
fi
 
15589
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15590
  if test x"${quagga_ac_keepcaps}" = x"yes"; then
 
15591
 
 
15592
for ac_header in sys/capability.h
 
15593
do
 
15594
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
15595
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
15596
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
15597
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
15598
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
15599
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15600
fi
 
15601
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
15602
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
15603
else
 
15604
  # Is the header compilable?
 
15605
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
15606
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
15607
cat >conftest.$ac_ext <<_ACEOF
 
15608
/* confdefs.h.  */
 
15609
_ACEOF
 
15610
cat confdefs.h >>conftest.$ac_ext
 
15611
cat >>conftest.$ac_ext <<_ACEOF
 
15612
/* end confdefs.h.  */
 
15613
$ac_includes_default
 
15614
#include <$ac_header>
 
15615
_ACEOF
 
15616
rm -f conftest.$ac_objext
 
15617
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15618
  (eval $ac_compile) 2>conftest.er1
 
15619
  ac_status=$?
 
15620
  grep -v '^ *+' conftest.er1 >conftest.err
 
15621
  rm -f conftest.er1
 
15622
  cat conftest.err >&5
 
15623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15624
  (exit $ac_status); } &&
 
15625
         { ac_try='test -z "$ac_c_werror_flag"
 
15626
                         || test ! -s conftest.err'
 
15627
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15628
  (eval $ac_try) 2>&5
 
15629
  ac_status=$?
 
15630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15631
  (exit $ac_status); }; } &&
 
15632
         { ac_try='test -s conftest.$ac_objext'
 
15633
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15634
  (eval $ac_try) 2>&5
 
15635
  ac_status=$?
 
15636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15637
  (exit $ac_status); }; }; then
 
15638
  ac_header_compiler=yes
 
15639
else
 
15640
  echo "$as_me: failed program was:" >&5
 
15641
sed 's/^/| /' conftest.$ac_ext >&5
 
15642
 
 
15643
ac_header_compiler=no
 
15644
fi
 
15645
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15646
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
15647
echo "${ECHO_T}$ac_header_compiler" >&6
 
15648
 
 
15649
# Is the header present?
 
15650
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
15651
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
15652
cat >conftest.$ac_ext <<_ACEOF
 
15653
/* confdefs.h.  */
 
15654
_ACEOF
 
15655
cat confdefs.h >>conftest.$ac_ext
 
15656
cat >>conftest.$ac_ext <<_ACEOF
 
15657
/* end confdefs.h.  */
 
15658
#include <$ac_header>
 
15659
_ACEOF
 
15660
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
15661
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
15662
  ac_status=$?
 
15663
  grep -v '^ *+' conftest.er1 >conftest.err
 
15664
  rm -f conftest.er1
 
15665
  cat conftest.err >&5
 
15666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15667
  (exit $ac_status); } >/dev/null; then
 
15668
  if test -s conftest.err; then
 
15669
    ac_cpp_err=$ac_c_preproc_warn_flag
 
15670
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
15671
  else
 
15672
    ac_cpp_err=
 
15673
  fi
 
15674
else
 
15675
  ac_cpp_err=yes
 
15676
fi
 
15677
if test -z "$ac_cpp_err"; then
 
15678
  ac_header_preproc=yes
 
15679
else
 
15680
  echo "$as_me: failed program was:" >&5
 
15681
sed 's/^/| /' conftest.$ac_ext >&5
 
15682
 
 
15683
  ac_header_preproc=no
 
15684
fi
 
15685
rm -f conftest.err conftest.$ac_ext
 
15686
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
15687
echo "${ECHO_T}$ac_header_preproc" >&6
 
15688
 
 
15689
# So?  What about this header?
 
15690
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
15691
  yes:no: )
 
15692
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
15693
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
15694
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
15695
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
15696
    ac_header_preproc=yes
 
15697
    ;;
 
15698
  no:yes:* )
 
15699
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
15700
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
15701
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
15702
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
15703
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
15704
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
15705
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
15706
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
15707
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
15708
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
15709
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
15710
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
15711
    (
 
15712
      cat <<\_ASBOX
 
15713
## ----------------------------------------- ##
 
15714
## Report this to http://bugzilla.quagga.net ##
 
15715
## ----------------------------------------- ##
 
15716
_ASBOX
 
15717
    ) |
 
15718
      sed "s/^/$as_me: WARNING:     /" >&2
 
15719
    ;;
 
15720
esac
 
15721
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
15722
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
15723
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
15724
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15725
else
 
15726
  eval "$as_ac_Header=\$ac_header_preproc"
 
15727
fi
 
15728
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
15729
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
15730
 
 
15731
fi
 
15732
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
15733
  cat >>confdefs.h <<_ACEOF
 
15734
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
15735
_ACEOF
 
15736
 
 
15737
fi
 
15738
 
 
15739
done
 
15740
 
 
15741
  fi
 
15742
  if test x"${ac_cv_header_sys_capability_h}" = x"yes"; then
 
15743
    echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
 
15744
echo $ECHO_N "checking for cap_init in -lcap... $ECHO_C" >&6
 
15745
if test "${ac_cv_lib_cap_cap_init+set}" = set; then
 
15746
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15747
else
 
15748
  ac_check_lib_save_LIBS=$LIBS
 
15749
LIBS="-lcap  $LIBS"
 
15750
cat >conftest.$ac_ext <<_ACEOF
 
15751
/* confdefs.h.  */
 
15752
_ACEOF
 
15753
cat confdefs.h >>conftest.$ac_ext
 
15754
cat >>conftest.$ac_ext <<_ACEOF
 
15755
/* end confdefs.h.  */
 
15756
 
 
15757
/* Override any gcc2 internal prototype to avoid an error.  */
 
15758
#ifdef __cplusplus
 
15759
extern "C"
 
15760
#endif
 
15761
/* We use char because int might match the return type of a gcc2
 
15762
   builtin and then its argument prototype would still apply.  */
 
15763
char cap_init ();
 
15764
int
 
15765
main ()
 
15766
{
 
15767
cap_init ();
 
15768
  ;
 
15769
  return 0;
 
15770
}
 
15771
_ACEOF
 
15772
rm -f conftest.$ac_objext conftest$ac_exeext
 
15773
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15774
  (eval $ac_link) 2>conftest.er1
 
15775
  ac_status=$?
 
15776
  grep -v '^ *+' conftest.er1 >conftest.err
 
15777
  rm -f conftest.er1
 
15778
  cat conftest.err >&5
 
15779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15780
  (exit $ac_status); } &&
 
15781
         { ac_try='test -z "$ac_c_werror_flag"
 
15782
                         || test ! -s conftest.err'
 
15783
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15784
  (eval $ac_try) 2>&5
 
15785
  ac_status=$?
 
15786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15787
  (exit $ac_status); }; } &&
 
15788
         { ac_try='test -s conftest$ac_exeext'
 
15789
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15790
  (eval $ac_try) 2>&5
 
15791
  ac_status=$?
 
15792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15793
  (exit $ac_status); }; }; then
 
15794
  ac_cv_lib_cap_cap_init=yes
 
15795
else
 
15796
  echo "$as_me: failed program was:" >&5
 
15797
sed 's/^/| /' conftest.$ac_ext >&5
 
15798
 
 
15799
ac_cv_lib_cap_cap_init=no
 
15800
fi
 
15801
rm -f conftest.err conftest.$ac_objext \
 
15802
      conftest$ac_exeext conftest.$ac_ext
 
15803
LIBS=$ac_check_lib_save_LIBS
 
15804
fi
 
15805
echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
 
15806
echo "${ECHO_T}$ac_cv_lib_cap_cap_init" >&6
 
15807
if test $ac_cv_lib_cap_cap_init = yes; then
 
15808
 
 
15809
cat >>confdefs.h <<\_ACEOF
 
15810
#define HAVE_LCAPS 1
 
15811
_ACEOF
 
15812
 
 
15813
       LIBCAP="-lcap"
 
15814
 
 
15815
 
 
15816
fi
 
15817
 
 
15818
  fi
 
15819
fi
 
15820
 
 
15821
 
 
15822
 
 
15823
for ac_header in ucontext.h
 
15824
do
 
15825
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
15826
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
15827
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
15828
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
15829
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
15830
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15831
fi
 
15832
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
15833
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
15834
else
 
15835
  # Is the header compilable?
 
15836
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
15837
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
15838
cat >conftest.$ac_ext <<_ACEOF
 
15839
/* confdefs.h.  */
 
15840
_ACEOF
 
15841
cat confdefs.h >>conftest.$ac_ext
 
15842
cat >>conftest.$ac_ext <<_ACEOF
 
15843
/* end confdefs.h.  */
 
15844
$ac_includes_default
 
15845
#include <$ac_header>
 
15846
_ACEOF
 
15847
rm -f conftest.$ac_objext
 
15848
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15849
  (eval $ac_compile) 2>conftest.er1
 
15850
  ac_status=$?
 
15851
  grep -v '^ *+' conftest.er1 >conftest.err
 
15852
  rm -f conftest.er1
 
15853
  cat conftest.err >&5
 
15854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15855
  (exit $ac_status); } &&
 
15856
         { ac_try='test -z "$ac_c_werror_flag"
 
15857
                         || test ! -s conftest.err'
 
15858
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15859
  (eval $ac_try) 2>&5
 
15860
  ac_status=$?
 
15861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15862
  (exit $ac_status); }; } &&
 
15863
         { ac_try='test -s conftest.$ac_objext'
 
15864
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15865
  (eval $ac_try) 2>&5
 
15866
  ac_status=$?
 
15867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15868
  (exit $ac_status); }; }; then
 
15869
  ac_header_compiler=yes
 
15870
else
 
15871
  echo "$as_me: failed program was:" >&5
 
15872
sed 's/^/| /' conftest.$ac_ext >&5
 
15873
 
 
15874
ac_header_compiler=no
 
15875
fi
 
15876
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15877
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
15878
echo "${ECHO_T}$ac_header_compiler" >&6
 
15879
 
 
15880
# Is the header present?
 
15881
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
15882
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
15883
cat >conftest.$ac_ext <<_ACEOF
 
15884
/* confdefs.h.  */
 
15885
_ACEOF
 
15886
cat confdefs.h >>conftest.$ac_ext
 
15887
cat >>conftest.$ac_ext <<_ACEOF
 
15888
/* end confdefs.h.  */
 
15889
#include <$ac_header>
 
15890
_ACEOF
 
15891
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
15892
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
15893
  ac_status=$?
 
15894
  grep -v '^ *+' conftest.er1 >conftest.err
 
15895
  rm -f conftest.er1
 
15896
  cat conftest.err >&5
 
15897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15898
  (exit $ac_status); } >/dev/null; then
 
15899
  if test -s conftest.err; then
 
15900
    ac_cpp_err=$ac_c_preproc_warn_flag
 
15901
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
15902
  else
 
15903
    ac_cpp_err=
 
15904
  fi
 
15905
else
 
15906
  ac_cpp_err=yes
 
15907
fi
 
15908
if test -z "$ac_cpp_err"; then
 
15909
  ac_header_preproc=yes
 
15910
else
 
15911
  echo "$as_me: failed program was:" >&5
 
15912
sed 's/^/| /' conftest.$ac_ext >&5
 
15913
 
 
15914
  ac_header_preproc=no
 
15915
fi
 
15916
rm -f conftest.err conftest.$ac_ext
 
15917
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
15918
echo "${ECHO_T}$ac_header_preproc" >&6
 
15919
 
 
15920
# So?  What about this header?
 
15921
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
15922
  yes:no: )
 
15923
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
15924
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
15925
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
15926
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
15927
    ac_header_preproc=yes
 
15928
    ;;
 
15929
  no:yes:* )
 
15930
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
15931
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
15932
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
15933
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
15934
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
15935
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
15936
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
15937
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
15938
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
15939
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
15940
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
15941
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
15942
    (
 
15943
      cat <<\_ASBOX
 
15944
## ----------------------------------------- ##
 
15945
## Report this to http://bugzilla.quagga.net ##
 
15946
## ----------------------------------------- ##
 
15947
_ASBOX
 
15948
    ) |
 
15949
      sed "s/^/$as_me: WARNING:     /" >&2
 
15950
    ;;
 
15951
esac
 
15952
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
15953
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
15954
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
15955
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15956
else
 
15957
  eval "$as_ac_Header=\$ac_header_preproc"
 
15958
fi
 
15959
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
15960
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
15961
 
 
15962
fi
 
15963
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
15964
  cat >>confdefs.h <<_ACEOF
 
15965
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
15966
_ACEOF
 
15967
 
 
15968
fi
 
15969
 
 
15970
done
 
15971
 
 
15972
 
 
15973
if test "${glibc}" = "yes"; then
 
15974
   if test "${ac_cv_header_execinfo_h+set}" = set; then
 
15975
  echo "$as_me:$LINENO: checking for execinfo.h" >&5
 
15976
echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6
 
15977
if test "${ac_cv_header_execinfo_h+set}" = set; then
 
15978
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15979
fi
 
15980
echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
 
15981
echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6
 
15982
else
 
15983
  # Is the header compilable?
 
15984
echo "$as_me:$LINENO: checking execinfo.h usability" >&5
 
15985
echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6
 
15986
cat >conftest.$ac_ext <<_ACEOF
 
15987
/* confdefs.h.  */
 
15988
_ACEOF
 
15989
cat confdefs.h >>conftest.$ac_ext
 
15990
cat >>conftest.$ac_ext <<_ACEOF
 
15991
/* end confdefs.h.  */
 
15992
$ac_includes_default
 
15993
#include <execinfo.h>
 
15994
_ACEOF
 
15995
rm -f conftest.$ac_objext
 
15996
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15997
  (eval $ac_compile) 2>conftest.er1
 
15998
  ac_status=$?
 
15999
  grep -v '^ *+' conftest.er1 >conftest.err
 
16000
  rm -f conftest.er1
 
16001
  cat conftest.err >&5
 
16002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16003
  (exit $ac_status); } &&
 
16004
         { ac_try='test -z "$ac_c_werror_flag"
 
16005
                         || test ! -s conftest.err'
 
16006
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16007
  (eval $ac_try) 2>&5
 
16008
  ac_status=$?
 
16009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16010
  (exit $ac_status); }; } &&
 
16011
         { ac_try='test -s conftest.$ac_objext'
 
16012
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16013
  (eval $ac_try) 2>&5
 
16014
  ac_status=$?
 
16015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16016
  (exit $ac_status); }; }; then
 
16017
  ac_header_compiler=yes
 
16018
else
 
16019
  echo "$as_me: failed program was:" >&5
 
16020
sed 's/^/| /' conftest.$ac_ext >&5
 
16021
 
 
16022
ac_header_compiler=no
 
16023
fi
 
16024
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16025
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
16026
echo "${ECHO_T}$ac_header_compiler" >&6
 
16027
 
 
16028
# Is the header present?
 
16029
echo "$as_me:$LINENO: checking execinfo.h presence" >&5
 
16030
echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6
 
16031
cat >conftest.$ac_ext <<_ACEOF
 
16032
/* confdefs.h.  */
 
16033
_ACEOF
 
16034
cat confdefs.h >>conftest.$ac_ext
 
16035
cat >>conftest.$ac_ext <<_ACEOF
 
16036
/* end confdefs.h.  */
 
16037
#include <execinfo.h>
 
16038
_ACEOF
 
16039
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
16040
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
16041
  ac_status=$?
 
16042
  grep -v '^ *+' conftest.er1 >conftest.err
 
16043
  rm -f conftest.er1
 
16044
  cat conftest.err >&5
 
16045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16046
  (exit $ac_status); } >/dev/null; then
 
16047
  if test -s conftest.err; then
 
16048
    ac_cpp_err=$ac_c_preproc_warn_flag
 
16049
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
16050
  else
 
16051
    ac_cpp_err=
 
16052
  fi
 
16053
else
 
16054
  ac_cpp_err=yes
 
16055
fi
 
16056
if test -z "$ac_cpp_err"; then
 
16057
  ac_header_preproc=yes
 
16058
else
 
16059
  echo "$as_me: failed program was:" >&5
 
16060
sed 's/^/| /' conftest.$ac_ext >&5
 
16061
 
 
16062
  ac_header_preproc=no
 
16063
fi
 
16064
rm -f conftest.err conftest.$ac_ext
 
16065
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
16066
echo "${ECHO_T}$ac_header_preproc" >&6
 
16067
 
 
16068
# So?  What about this header?
 
16069
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
16070
  yes:no: )
 
16071
    { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
16072
echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
16073
    { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
 
16074
echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
 
16075
    ac_header_preproc=yes
 
16076
    ;;
 
16077
  no:yes:* )
 
16078
    { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
 
16079
echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
 
16080
    { echo "$as_me:$LINENO: WARNING: execinfo.h:     check for missing prerequisite headers?" >&5
 
16081
echo "$as_me: WARNING: execinfo.h:     check for missing prerequisite headers?" >&2;}
 
16082
    { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
 
16083
echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
 
16084
    { echo "$as_me:$LINENO: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
 
16085
echo "$as_me: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
16086
    { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
 
16087
echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
 
16088
    { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
 
16089
echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
 
16090
    (
 
16091
      cat <<\_ASBOX
 
16092
## ----------------------------------------- ##
 
16093
## Report this to http://bugzilla.quagga.net ##
 
16094
## ----------------------------------------- ##
 
16095
_ASBOX
 
16096
    ) |
 
16097
      sed "s/^/$as_me: WARNING:     /" >&2
 
16098
    ;;
 
16099
esac
 
16100
echo "$as_me:$LINENO: checking for execinfo.h" >&5
 
16101
echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6
 
16102
if test "${ac_cv_header_execinfo_h+set}" = set; then
 
16103
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16104
else
 
16105
  ac_cv_header_execinfo_h=$ac_header_preproc
 
16106
fi
 
16107
echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
 
16108
echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6
 
16109
 
 
16110
fi
 
16111
 
 
16112
 
 
16113
fi
 
16114
if test x"${ac_cv_header_execinfo_h}" = x"yes"; then
 
16115
  echo "$as_me:$LINENO: checking for backtrace" >&5
 
16116
echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
 
16117
if test "${ac_cv_func_backtrace+set}" = set; then
 
16118
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16119
else
 
16120
  cat >conftest.$ac_ext <<_ACEOF
 
16121
/* confdefs.h.  */
 
16122
_ACEOF
 
16123
cat confdefs.h >>conftest.$ac_ext
 
16124
cat >>conftest.$ac_ext <<_ACEOF
 
16125
/* end confdefs.h.  */
 
16126
/* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
 
16127
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
16128
#define backtrace innocuous_backtrace
 
16129
 
 
16130
/* System header to define __stub macros and hopefully few prototypes,
 
16131
    which can conflict with char backtrace (); below.
 
16132
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16133
    <limits.h> exists even on freestanding compilers.  */
 
16134
 
 
16135
#ifdef __STDC__
 
16136
# include <limits.h>
 
16137
#else
 
16138
# include <assert.h>
 
16139
#endif
 
16140
 
 
16141
#undef backtrace
 
16142
 
 
16143
/* Override any gcc2 internal prototype to avoid an error.  */
 
16144
#ifdef __cplusplus
 
16145
extern "C"
 
16146
{
 
16147
#endif
 
16148
/* We use char because int might match the return type of a gcc2
 
16149
   builtin and then its argument prototype would still apply.  */
 
16150
char backtrace ();
 
16151
/* The GNU C library defines this for functions which it implements
 
16152
    to always fail with ENOSYS.  Some functions are actually named
 
16153
    something starting with __ and the normal name is an alias.  */
 
16154
#if defined (__stub_backtrace) || defined (__stub___backtrace)
 
16155
choke me
 
16156
#else
 
16157
char (*f) () = backtrace;
 
16158
#endif
 
16159
#ifdef __cplusplus
 
16160
}
 
16161
#endif
 
16162
 
 
16163
int
 
16164
main ()
 
16165
{
 
16166
return f != backtrace;
 
16167
  ;
 
16168
  return 0;
 
16169
}
 
16170
_ACEOF
 
16171
rm -f conftest.$ac_objext conftest$ac_exeext
 
16172
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16173
  (eval $ac_link) 2>conftest.er1
 
16174
  ac_status=$?
 
16175
  grep -v '^ *+' conftest.er1 >conftest.err
 
16176
  rm -f conftest.er1
 
16177
  cat conftest.err >&5
 
16178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16179
  (exit $ac_status); } &&
 
16180
         { ac_try='test -z "$ac_c_werror_flag"
 
16181
                         || test ! -s conftest.err'
 
16182
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16183
  (eval $ac_try) 2>&5
 
16184
  ac_status=$?
 
16185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16186
  (exit $ac_status); }; } &&
 
16187
         { ac_try='test -s conftest$ac_exeext'
 
16188
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16189
  (eval $ac_try) 2>&5
 
16190
  ac_status=$?
 
16191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16192
  (exit $ac_status); }; }; then
 
16193
  ac_cv_func_backtrace=yes
 
16194
else
 
16195
  echo "$as_me: failed program was:" >&5
 
16196
sed 's/^/| /' conftest.$ac_ext >&5
 
16197
 
 
16198
ac_cv_func_backtrace=no
 
16199
fi
 
16200
rm -f conftest.err conftest.$ac_objext \
 
16201
      conftest$ac_exeext conftest.$ac_ext
 
16202
fi
 
16203
echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
 
16204
echo "${ECHO_T}$ac_cv_func_backtrace" >&6
 
16205
if test $ac_cv_func_backtrace = yes; then
 
16206
 
 
16207
cat >>confdefs.h <<\_ACEOF
 
16208
#define HAVE_GLIBC_BACKTRACE
 
16209
_ACEOF
 
16210
 
 
16211
 
 
16212
fi
 
16213
 
 
16214
fi
 
16215
 
 
16216
CONFDATE=`date '+%Y%m%d'`
 
16217
 
 
16218
 
 
16219
if test "${prefix}" = "NONE"; then
 
16220
  quagga_statedir_prefix="";
 
16221
else
 
16222
  quagga_statedir_prefix=${prefix}
 
16223
fi
 
16224
if test "${localstatedir}" = '${prefix}/var'; then
 
16225
  echo "$as_me:$LINENO: checking state directory" >&5
 
16226
echo $ECHO_N "checking state directory... $ECHO_C" >&6
 
16227
if test "${ac_statedir+set}" = set; then
 
16228
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16229
else
 
16230
  for QUAGGA_STATE_DIR in ${quagga_statedir_prefix}/var/run                     ${quagga_statedir_prefix}/var/adm                       ${quagga_statedir_prefix}/etc                   /var/run                                /var/adm                                /etc                                    /dev/null;
 
16231
  do
 
16232
    test -d $QUAGGA_STATE_DIR && break
 
16233
  done
 
16234
  quagga_statedir=$QUAGGA_STATE_DIR
 
16235
fi
 
16236
echo "$as_me:$LINENO: result: $ac_statedir" >&5
 
16237
echo "${ECHO_T}$ac_statedir" >&6
 
16238
else
 
16239
  quagga_statedir=${localstatedir}
 
16240
  echo "$as_me:$LINENO: checking directory to use for state file" >&5
 
16241
echo $ECHO_N "checking directory to use for state file... $ECHO_C" >&6
 
16242
  echo "$as_me:$LINENO: result: ${quagga_statedir}" >&5
 
16243
echo "${ECHO_T}${quagga_statedir}" >&6
 
16244
 
 
16245
fi
 
16246
if test $quagga_statedir = "/dev/null"; then
 
16247
    { { echo "$as_me:$LINENO: error: 'STATE DIRECTORY NOT FOUND! FIX OR SPECIFY --localstatedir!'" >&5
 
16248
echo "$as_me: error: 'STATE DIRECTORY NOT FOUND! FIX OR SPECIFY --localstatedir!'" >&2;}
 
16249
   { (exit 1); exit 1; }; }
 
16250
fi
 
16251
 
 
16252
 
 
16253
cat >>confdefs.h <<_ACEOF
 
16254
#define PATH_ZEBRA_PID "$quagga_statedir/zebra.pid"
 
16255
_ACEOF
 
16256
 
 
16257
 
 
16258
cat >>confdefs.h <<_ACEOF
 
16259
#define PATH_RIPD_PID "$quagga_statedir/ripd.pid"
 
16260
_ACEOF
 
16261
 
 
16262
 
 
16263
cat >>confdefs.h <<_ACEOF
 
16264
#define PATH_RIPNGD_PID "$quagga_statedir/ripngd.pid"
 
16265
_ACEOF
 
16266
 
 
16267
 
 
16268
cat >>confdefs.h <<_ACEOF
 
16269
#define PATH_BGPD_PID "$quagga_statedir/bgpd.pid"
 
16270
_ACEOF
 
16271
 
 
16272
 
 
16273
cat >>confdefs.h <<_ACEOF
 
16274
#define PATH_OSPFD_PID "$quagga_statedir/ospfd.pid"
 
16275
_ACEOF
 
16276
 
 
16277
 
 
16278
cat >>confdefs.h <<_ACEOF
 
16279
#define PATH_OSPF6D_PID "$quagga_statedir/ospf6d.pid"
 
16280
_ACEOF
 
16281
 
 
16282
 
 
16283
cat >>confdefs.h <<_ACEOF
 
16284
#define PATH_ISISD_PID "$quagga_statedir/isisd.pid"
 
16285
_ACEOF
 
16286
 
 
16287
 
 
16288
cat >>confdefs.h <<_ACEOF
 
16289
#define PATH_WATCHQUAGGA_PID "$quagga_statedir/watchquagga.pid"
 
16290
_ACEOF
 
16291
 
 
16292
 
 
16293
cat >>confdefs.h <<_ACEOF
 
16294
#define ZEBRA_SERV_PATH "$quagga_statedir/zserv.api"
 
16295
_ACEOF
 
16296
 
 
16297
 
 
16298
cat >>confdefs.h <<_ACEOF
 
16299
#define ZEBRA_VTYSH_PATH "$quagga_statedir/zebra.vty"
 
16300
_ACEOF
 
16301
 
 
16302
 
 
16303
cat >>confdefs.h <<_ACEOF
 
16304
#define RIP_VTYSH_PATH "$quagga_statedir/ripd.vty"
 
16305
_ACEOF
 
16306
 
 
16307
 
 
16308
cat >>confdefs.h <<_ACEOF
 
16309
#define RIPNG_VTYSH_PATH "$quagga_statedir/ripngd.vty"
 
16310
_ACEOF
 
16311
 
 
16312
 
 
16313
cat >>confdefs.h <<_ACEOF
 
16314
#define BGP_VTYSH_PATH "$quagga_statedir/bgpd.vty"
 
16315
_ACEOF
 
16316
 
 
16317
 
 
16318
cat >>confdefs.h <<_ACEOF
 
16319
#define OSPF_VTYSH_PATH "$quagga_statedir/ospfd.vty"
 
16320
_ACEOF
 
16321
 
 
16322
 
 
16323
cat >>confdefs.h <<_ACEOF
 
16324
#define OSPF6_VTYSH_PATH "$quagga_statedir/ospf6d.vty"
 
16325
_ACEOF
 
16326
 
 
16327
 
 
16328
cat >>confdefs.h <<_ACEOF
 
16329
#define ISIS_VTYSH_PATH "$quagga_statedir/isisd.vty"
 
16330
_ACEOF
 
16331
 
 
16332
 
 
16333
cat >>confdefs.h <<_ACEOF
 
16334
#define DAEMON_VTY_DIR "$quagga_statedir"
 
16335
_ACEOF
 
16336
 
 
16337
 
 
16338
 
 
16339
cat >>confdefs.h <<\_ACEOF
 
16340
#define QUAGGA_NO_DEPRECATED_INTERFACES 1
 
16341
_ACEOF
 
16342
 
 
16343
 
 
16344
echo "$as_me:$LINENO: checking for working htonl" >&5
 
16345
echo $ECHO_N "checking for working htonl... $ECHO_C" >&6
 
16346
if test "${ac_cv_htonl_works+set}" = set; then
 
16347
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16348
else
 
16349
 
 
16350
cat >conftest.$ac_ext <<_ACEOF
 
16351
/* confdefs.h.  */
 
16352
_ACEOF
 
16353
cat confdefs.h >>conftest.$ac_ext
 
16354
cat >>conftest.$ac_ext <<_ACEOF
 
16355
/* end confdefs.h.  */
 
16356
#ifdef HAVE_SYS_TYPES_H
 
16357
#include <sys/types.h>
 
16358
#endif
 
16359
#ifdef HAVE_NETDB_H
 
16360
#include <netdb.h>
 
16361
#endif
 
16362
#ifdef HAVE_NETINET_IN_H
 
16363
#include <netinet/in.h>
 
16364
#endif
 
16365
int
 
16366
main ()
 
16367
{
 
16368
htonl (0);
 
16369
  ;
 
16370
  return 0;
 
16371
}
 
16372
_ACEOF
 
16373
rm -f conftest.$ac_objext conftest$ac_exeext
 
16374
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16375
  (eval $ac_link) 2>conftest.er1
 
16376
  ac_status=$?
 
16377
  grep -v '^ *+' conftest.er1 >conftest.err
 
16378
  rm -f conftest.er1
 
16379
  cat conftest.err >&5
 
16380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16381
  (exit $ac_status); } &&
 
16382
         { ac_try='test -z "$ac_c_werror_flag"
 
16383
                         || test ! -s conftest.err'
 
16384
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16385
  (eval $ac_try) 2>&5
 
16386
  ac_status=$?
 
16387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16388
  (exit $ac_status); }; } &&
 
16389
         { ac_try='test -s conftest$ac_exeext'
 
16390
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16391
  (eval $ac_try) 2>&5
 
16392
  ac_status=$?
 
16393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16394
  (exit $ac_status); }; }; then
 
16395
  ac_cv_htonl_works=yes
 
16396
else
 
16397
  echo "$as_me: failed program was:" >&5
 
16398
sed 's/^/| /' conftest.$ac_ext >&5
 
16399
 
 
16400
ac_cv_htonl_works=no
 
16401
fi
 
16402
rm -f conftest.err conftest.$ac_objext \
 
16403
      conftest$ac_exeext conftest.$ac_ext
 
16404
fi
 
16405
 
 
16406
echo "$as_me:$LINENO: result: $ac_cv_htonl_works" >&5
 
16407
echo "${ECHO_T}$ac_cv_htonl_works" >&6
 
16408
 
 
16409
                                                                                                                                                                                                                                                                              ac_config_files="$ac_config_files Makefile lib/Makefile zebra/Makefile ripd/Makefile ripngd/Makefile bgpd/Makefile ospfd/Makefile watchquagga/Makefile ospf6d/Makefile isisd/Makefile vtysh/Makefile doc/Makefile ospfclient/Makefile tests/Makefile m4/Makefile redhat/Makefile pkgsrc/Makefile redhat/quagga.spec lib/version.h doc/defines.texi isisd/topology/Makefile pkgsrc/bgpd.sh pkgsrc/ospf6d.sh pkgsrc/ospfd.sh pkgsrc/ripd.sh pkgsrc/ripngd.sh pkgsrc/zebra.sh"
 
16410
 
 
16411
          ac_config_files="$ac_config_files solaris/Makefile"
 
16412
 
 
16413
 
 
16414
          ac_config_files="$ac_config_files vtysh/extract.pl"
 
16415
 
 
16416
## Hack, but working solution to avoid rebuilding of quagga.info.
 
16417
## It's already in CVS until texinfo 4.7 is more common.
 
16418
          ac_config_commands="$ac_config_commands info-time"
 
16419
 
 
16420
cat >confcache <<\_ACEOF
 
16421
# This file is a shell script that caches the results of configure
 
16422
# tests run on this system so they can be shared between configure
 
16423
# scripts and configure runs, see configure's option --config-cache.
 
16424
# It is not useful on other systems.  If it contains results you don't
 
16425
# want to keep, you may remove or edit it.
 
16426
#
 
16427
# config.status only pays attention to the cache file if you give it
 
16428
# the --recheck option to rerun configure.
 
16429
#
 
16430
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
16431
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
16432
# following values.
 
16433
 
 
16434
_ACEOF
 
16435
 
 
16436
# The following way of writing the cache mishandles newlines in values,
 
16437
# but we know of no workaround that is simple, portable, and efficient.
 
16438
# So, don't put newlines in cache variables' values.
 
16439
# Ultrix sh set writes to stderr and can't be redirected directly,
 
16440
# and sets the high bit in the cache file unless we assign to the vars.
 
16441
{
 
16442
  (set) 2>&1 |
 
16443
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
16444
    *ac_space=\ *)
 
16445
      # `set' does not quote correctly, so add quotes (double-quote
 
16446
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
16447
      sed -n \
 
16448
        "s/'/'\\\\''/g;
 
16449
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
16450
      ;;
 
16451
    *)
 
16452
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
16453
      sed -n \
 
16454
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
16455
      ;;
 
16456
    esac;
 
16457
} |
 
16458
  sed '
 
16459
     t clear
 
16460
     : clear
 
16461
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
16462
     t end
 
16463
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
16464
     : end' >>confcache
 
16465
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
16466
  if test -w $cache_file; then
 
16467
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
16468
    cat confcache >$cache_file
 
16469
  else
 
16470
    echo "not updating unwritable cache $cache_file"
 
16471
  fi
 
16472
fi
 
16473
rm -f confcache
 
16474
 
 
16475
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
16476
# Let make expand exec_prefix.
 
16477
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
16478
 
 
16479
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
16480
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
16481
# trailing colons and then remove the whole line if VPATH becomes empty
 
16482
# (actually we leave an empty line to preserve line numbers).
 
16483
if test "x$srcdir" = x.; then
 
16484
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
16485
s/:*\$(srcdir):*/:/;
 
16486
s/:*\${srcdir}:*/:/;
 
16487
s/:*@srcdir@:*/:/;
 
16488
s/^\([^=]*=[     ]*\):*/\1/;
 
16489
s/:*$//;
 
16490
s/^[^=]*=[       ]*$//;
 
16491
}'
 
16492
fi
 
16493
 
 
16494
DEFS=-DHAVE_CONFIG_H
 
16495
 
 
16496
ac_libobjs=
 
16497
ac_ltlibobjs=
 
16498
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
16499
  # 1. Remove the extension, and $U if already installed.
 
16500
  ac_i=`echo "$ac_i" |
 
16501
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
16502
  # 2. Add them.
 
16503
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
16504
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
16505
done
 
16506
LIBOBJS=$ac_libobjs
 
16507
 
 
16508
LTLIBOBJS=$ac_ltlibobjs
 
16509
 
 
16510
 
 
16511
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
16512
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
16513
Usually this means the macro was only invoked conditionally." >&5
 
16514
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
16515
Usually this means the macro was only invoked conditionally." >&2;}
 
16516
   { (exit 1); exit 1; }; }
 
16517
fi
 
16518
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
16519
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
16520
Usually this means the macro was only invoked conditionally." >&5
 
16521
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
16522
Usually this means the macro was only invoked conditionally." >&2;}
 
16523
   { (exit 1); exit 1; }; }
 
16524
fi
 
16525
 
 
16526
: ${CONFIG_STATUS=./config.status}
 
16527
ac_clean_files_save=$ac_clean_files
 
16528
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
16529
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
16530
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
16531
cat >$CONFIG_STATUS <<_ACEOF
 
16532
#! $SHELL
 
16533
# Generated by $as_me.
 
16534
# Run this file to recreate the current configuration.
 
16535
# Compiler output produced by configure, useful for debugging
 
16536
# configure, is in config.log if it exists.
 
16537
 
 
16538
debug=false
 
16539
ac_cs_recheck=false
 
16540
ac_cs_silent=false
 
16541
SHELL=\${CONFIG_SHELL-$SHELL}
 
16542
_ACEOF
 
16543
 
 
16544
cat >>$CONFIG_STATUS <<\_ACEOF
 
16545
## --------------------- ##
 
16546
## M4sh Initialization.  ##
 
16547
## --------------------- ##
 
16548
 
 
16549
# Be Bourne compatible
 
16550
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16551
  emulate sh
 
16552
  NULLCMD=:
 
16553
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
16554
  # is contrary to our usage.  Disable this feature.
 
16555
  alias -g '${1+"$@"}'='"$@"'
 
16556
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
16557
  set -o posix
 
16558
fi
 
16559
DUALCASE=1; export DUALCASE # for MKS sh
 
16560
 
 
16561
# Support unset when possible.
 
16562
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
16563
  as_unset=unset
 
16564
else
 
16565
  as_unset=false
 
16566
fi
 
16567
 
 
16568
 
 
16569
# Work around bugs in pre-3.0 UWIN ksh.
 
16570
$as_unset ENV MAIL MAILPATH
 
16571
PS1='$ '
 
16572
PS2='> '
 
16573
PS4='+ '
 
16574
 
 
16575
# NLS nuisances.
 
16576
for as_var in \
 
16577
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
16578
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
16579
  LC_TELEPHONE LC_TIME
 
16580
do
 
16581
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
16582
    eval $as_var=C; export $as_var
 
16583
  else
 
16584
    $as_unset $as_var
 
16585
  fi
 
16586
done
 
16587
 
 
16588
# Required to use basename.
 
16589
if expr a : '\(a\)' >/dev/null 2>&1; then
 
16590
  as_expr=expr
 
16591
else
 
16592
  as_expr=false
 
16593
fi
 
16594
 
 
16595
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
16596
  as_basename=basename
 
16597
else
 
16598
  as_basename=false
 
16599
fi
 
16600
 
 
16601
 
 
16602
# Name of the executable.
 
16603
as_me=`$as_basename "$0" ||
 
16604
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
16605
         X"$0" : 'X\(//\)$' \| \
 
16606
         X"$0" : 'X\(/\)$' \| \
 
16607
         .     : '\(.\)' 2>/dev/null ||
 
16608
echo X/"$0" |
 
16609
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
16610
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
16611
          /^X\/\(\/\).*/{ s//\1/; q; }
 
16612
          s/.*/./; q'`
 
16613
 
 
16614
 
 
16615
# PATH needs CR, and LINENO needs CR and PATH.
 
16616
# Avoid depending upon Character Ranges.
 
16617
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
16618
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
16619
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
16620
as_cr_digits='0123456789'
 
16621
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
16622
 
 
16623
# The user is always right.
 
16624
if test "${PATH_SEPARATOR+set}" != set; then
 
16625
  echo "#! /bin/sh" >conf$$.sh
 
16626
  echo  "exit 0"   >>conf$$.sh
 
16627
  chmod +x conf$$.sh
 
16628
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
16629
    PATH_SEPARATOR=';'
 
16630
  else
 
16631
    PATH_SEPARATOR=:
 
16632
  fi
 
16633
  rm -f conf$$.sh
 
16634
fi
 
16635
 
 
16636
 
 
16637
  as_lineno_1=$LINENO
 
16638
  as_lineno_2=$LINENO
 
16639
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
16640
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
16641
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
16642
  # Find who we are.  Look in the path if we contain no path at all
 
16643
  # relative or not.
 
16644
  case $0 in
 
16645
    *[\\/]* ) as_myself=$0 ;;
 
16646
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16647
for as_dir in $PATH
 
16648
do
 
16649
  IFS=$as_save_IFS
 
16650
  test -z "$as_dir" && as_dir=.
 
16651
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
16652
done
 
16653
 
 
16654
       ;;
 
16655
  esac
 
16656
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
16657
  # in which case we are not to be found in the path.
 
16658
  if test "x$as_myself" = x; then
 
16659
    as_myself=$0
 
16660
  fi
 
16661
  if test ! -f "$as_myself"; then
 
16662
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
16663
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
16664
   { (exit 1); exit 1; }; }
 
16665
  fi
 
16666
  case $CONFIG_SHELL in
 
16667
  '')
 
16668
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16669
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
16670
do
 
16671
  IFS=$as_save_IFS
 
16672
  test -z "$as_dir" && as_dir=.
 
16673
  for as_base in sh bash ksh sh5; do
 
16674
         case $as_dir in
 
16675
         /*)
 
16676
           if ("$as_dir/$as_base" -c '
 
16677
  as_lineno_1=$LINENO
 
16678
  as_lineno_2=$LINENO
 
16679
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
16680
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
16681
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
16682
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
16683
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
16684
             CONFIG_SHELL=$as_dir/$as_base
 
16685
             export CONFIG_SHELL
 
16686
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
16687
           fi;;
 
16688
         esac
 
16689
       done
 
16690
done
 
16691
;;
 
16692
  esac
 
16693
 
 
16694
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
16695
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
16696
  # line-number line before each line; the second 'sed' does the real
 
16697
  # work.  The second script uses 'N' to pair each line-number line
 
16698
  # with the numbered line, and appends trailing '-' during
 
16699
  # substitution so that $LINENO is not a special case at line end.
 
16700
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
16701
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
16702
  sed '=' <$as_myself |
 
16703
    sed '
 
16704
      N
 
16705
      s,$,-,
 
16706
      : loop
 
16707
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
16708
      t loop
 
16709
      s,-$,,
 
16710
      s,^['$as_cr_digits']*\n,,
 
16711
    ' >$as_me.lineno &&
 
16712
  chmod +x $as_me.lineno ||
 
16713
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
16714
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
16715
   { (exit 1); exit 1; }; }
 
16716
 
 
16717
  # Don't try to exec as it changes $[0], causing all sort of problems
 
16718
  # (the dirname of $[0] is not the place where we might find the
 
16719
  # original and so on.  Autoconf is especially sensible to this).
 
16720
  . ./$as_me.lineno
 
16721
  # Exit status is that of the last command.
 
16722
  exit
 
16723
}
 
16724
 
 
16725
 
 
16726
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
16727
  *c*,-n*) ECHO_N= ECHO_C='
 
16728
' ECHO_T='      ' ;;
 
16729
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
16730
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
16731
esac
 
16732
 
 
16733
if expr a : '\(a\)' >/dev/null 2>&1; then
 
16734
  as_expr=expr
 
16735
else
 
16736
  as_expr=false
 
16737
fi
 
16738
 
 
16739
rm -f conf$$ conf$$.exe conf$$.file
 
16740
echo >conf$$.file
 
16741
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
16742
  # We could just check for DJGPP; but this test a) works b) is more generic
 
16743
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
16744
  if test -f conf$$.exe; then
 
16745
    # Don't use ln at all; we don't have any links
 
16746
    as_ln_s='cp -p'
 
16747
  else
 
16748
    as_ln_s='ln -s'
 
16749
  fi
 
16750
elif ln conf$$.file conf$$ 2>/dev/null; then
 
16751
  as_ln_s=ln
 
16752
else
 
16753
  as_ln_s='cp -p'
 
16754
fi
 
16755
rm -f conf$$ conf$$.exe conf$$.file
 
16756
 
 
16757
if mkdir -p . 2>/dev/null; then
 
16758
  as_mkdir_p=:
 
16759
else
 
16760
  test -d ./-p && rmdir ./-p
 
16761
  as_mkdir_p=false
 
16762
fi
 
16763
 
 
16764
as_executable_p="test -f"
 
16765
 
 
16766
# Sed expression to map a string onto a valid CPP name.
 
16767
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
16768
 
 
16769
# Sed expression to map a string onto a valid variable name.
 
16770
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
16771
 
 
16772
 
 
16773
# IFS
 
16774
# We need space, tab and new line, in precisely that order.
 
16775
as_nl='
 
16776
'
 
16777
IFS="   $as_nl"
 
16778
 
 
16779
# CDPATH.
 
16780
$as_unset CDPATH
 
16781
 
 
16782
exec 6>&1
 
16783
 
 
16784
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
16785
# report actual input values of CONFIG_FILES etc. instead of their
 
16786
# values after options handling.  Logging --version etc. is OK.
 
16787
exec 5>>config.log
 
16788
{
 
16789
  echo
 
16790
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
16791
## Running $as_me. ##
 
16792
_ASBOX
 
16793
} >&5
 
16794
cat >&5 <<_CSEOF
 
16795
 
 
16796
This file was extended by Quagga $as_me 0.99.1, which was
 
16797
generated by GNU Autoconf 2.59.  Invocation command line was
 
16798
 
 
16799
  CONFIG_FILES    = $CONFIG_FILES
 
16800
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
16801
  CONFIG_LINKS    = $CONFIG_LINKS
 
16802
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
16803
  $ $0 $@
 
16804
 
 
16805
_CSEOF
 
16806
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
16807
echo >&5
 
16808
_ACEOF
 
16809
 
 
16810
# Files that config.status was made for.
 
16811
if test -n "$ac_config_files"; then
 
16812
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
16813
fi
 
16814
 
 
16815
if test -n "$ac_config_headers"; then
 
16816
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
16817
fi
 
16818
 
 
16819
if test -n "$ac_config_links"; then
 
16820
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
16821
fi
 
16822
 
 
16823
if test -n "$ac_config_commands"; then
 
16824
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
16825
fi
 
16826
 
 
16827
cat >>$CONFIG_STATUS <<\_ACEOF
 
16828
 
 
16829
ac_cs_usage="\
 
16830
\`$as_me' instantiates files from templates according to the
 
16831
current configuration.
 
16832
 
 
16833
Usage: $0 [OPTIONS] [FILE]...
 
16834
 
 
16835
  -h, --help       print this help, then exit
 
16836
  -V, --version    print version number, then exit
 
16837
  -q, --quiet      do not print progress messages
 
16838
  -d, --debug      don't remove temporary files
 
16839
      --recheck    update $as_me by reconfiguring in the same conditions
 
16840
  --file=FILE[:TEMPLATE]
 
16841
                   instantiate the configuration file FILE
 
16842
  --header=FILE[:TEMPLATE]
 
16843
                   instantiate the configuration header FILE
 
16844
 
 
16845
Configuration files:
 
16846
$config_files
 
16847
 
 
16848
Configuration headers:
 
16849
$config_headers
 
16850
 
 
16851
Configuration commands:
 
16852
$config_commands
 
16853
 
 
16854
Report bugs to <bug-autoconf@gnu.org>."
 
16855
_ACEOF
 
16856
 
 
16857
cat >>$CONFIG_STATUS <<_ACEOF
 
16858
ac_cs_version="\\
 
16859
Quagga config.status 0.99.1
 
16860
configured by $0, generated by GNU Autoconf 2.59,
 
16861
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
16862
 
 
16863
Copyright (C) 2003 Free Software Foundation, Inc.
 
16864
This config.status script is free software; the Free Software Foundation
 
16865
gives unlimited permission to copy, distribute and modify it."
 
16866
srcdir=$srcdir
 
16867
INSTALL="$INSTALL"
 
16868
_ACEOF
 
16869
 
 
16870
cat >>$CONFIG_STATUS <<\_ACEOF
 
16871
# If no file are specified by the user, then we need to provide default
 
16872
# value.  By we need to know if files were specified by the user.
 
16873
ac_need_defaults=:
 
16874
while test $# != 0
 
16875
do
 
16876
  case $1 in
 
16877
  --*=*)
 
16878
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
16879
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
16880
    ac_shift=:
 
16881
    ;;
 
16882
  -*)
 
16883
    ac_option=$1
 
16884
    ac_optarg=$2
 
16885
    ac_shift=shift
 
16886
    ;;
 
16887
  *) # This is not an option, so the user has probably given explicit
 
16888
     # arguments.
 
16889
     ac_option=$1
 
16890
     ac_need_defaults=false;;
 
16891
  esac
 
16892
 
 
16893
  case $ac_option in
 
16894
  # Handling of the options.
 
16895
_ACEOF
 
16896
cat >>$CONFIG_STATUS <<\_ACEOF
 
16897
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
16898
    ac_cs_recheck=: ;;
 
16899
  --version | --vers* | -V )
 
16900
    echo "$ac_cs_version"; exit 0 ;;
 
16901
  --he | --h)
 
16902
    # Conflict between --help and --header
 
16903
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
16904
Try \`$0 --help' for more information." >&5
 
16905
echo "$as_me: error: ambiguous option: $1
 
16906
Try \`$0 --help' for more information." >&2;}
 
16907
   { (exit 1); exit 1; }; };;
 
16908
  --help | --hel | -h )
 
16909
    echo "$ac_cs_usage"; exit 0 ;;
 
16910
  --debug | --d* | -d )
 
16911
    debug=: ;;
 
16912
  --file | --fil | --fi | --f )
 
16913
    $ac_shift
 
16914
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
16915
    ac_need_defaults=false;;
 
16916
  --header | --heade | --head | --hea )
 
16917
    $ac_shift
 
16918
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
16919
    ac_need_defaults=false;;
 
16920
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
16921
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
16922
    ac_cs_silent=: ;;
 
16923
 
 
16924
  # This is an error.
 
16925
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
16926
Try \`$0 --help' for more information." >&5
 
16927
echo "$as_me: error: unrecognized option: $1
 
16928
Try \`$0 --help' for more information." >&2;}
 
16929
   { (exit 1); exit 1; }; } ;;
 
16930
 
 
16931
  *) ac_config_targets="$ac_config_targets $1" ;;
 
16932
 
 
16933
  esac
 
16934
  shift
 
16935
done
 
16936
 
 
16937
ac_configure_extra_args=
 
16938
 
 
16939
if $ac_cs_silent; then
 
16940
  exec 6>/dev/null
 
16941
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
16942
fi
 
16943
 
 
16944
_ACEOF
 
16945
cat >>$CONFIG_STATUS <<_ACEOF
 
16946
if \$ac_cs_recheck; then
 
16947
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
16948
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
16949
fi
 
16950
 
 
16951
_ACEOF
 
16952
 
 
16953
cat >>$CONFIG_STATUS <<_ACEOF
 
16954
#
 
16955
# INIT-COMMANDS section.
 
16956
#
 
16957
 
 
16958
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
16959
 
 
16960
 
 
16961
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
16962
# if CDPATH is set.
 
16963
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
16964
 
 
16965
sed_quote_subst='$sed_quote_subst'
 
16966
double_quote_subst='$double_quote_subst'
 
16967
delay_variable_subst='$delay_variable_subst'
 
16968
macro_version='`$echo "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
16969
macro_revision='`$echo "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
16970
enable_shared='`$echo "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
16971
enable_static='`$echo "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
16972
pic_mode='`$echo "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
16973
enable_fast_install='`$echo "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
16974
host_alias='`$echo "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
16975
host='`$echo "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
16976
SED='`$echo "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
16977
Xsed='`$echo "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
16978
GREP='`$echo "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
16979
EGREP='`$echo "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
16980
LD='`$echo "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
16981
reload_flag='`$echo "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
16982
reload_cmds='`$echo "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16983
NM='`$echo "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
16984
LN_S='`$echo "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
16985
deplibs_check_method='`$echo "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
16986
file_magic_cmd='`$echo "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
16987
AR='`$echo "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
16988
AR_FLAGS='`$echo "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
16989
STRIP='`$echo "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
16990
RANLIB='`$echo "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
16991
old_postinstall_cmds='`$echo "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16992
old_postuninstall_cmds='`$echo "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16993
old_archive_cmds='`$echo "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
16994
lt_cv_sys_max_cmd_len='`$echo "X$lt_cv_sys_max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
16995
lt_cv_sys_global_symbol_pipe='`$echo "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
16996
lt_cv_sys_global_symbol_to_cdecl='`$echo "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
16997
lt_cv_sys_global_symbol_to_c_name_address='`$echo "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
 
16998
ac_objext='`$echo "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
16999
exeext='`$echo "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
17000
objdir='`$echo "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
17001
CC='`$echo "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
17002
compiler='`$echo "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
17003
GCC='`$echo "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
17004
SHELL='`$echo "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
17005
echo='`$echo "X$echo" | $Xsed -e "$delay_single_quote_subst"`'
 
17006
MAGIC_CMD='`$echo "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
17007
lt_prog_compiler_no_builtin_flag='`$echo "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
17008
lt_prog_compiler_wl='`$echo "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
17009
lt_prog_compiler_pic='`$echo "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
17010
lt_prog_compiler_static='`$echo "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
17011
lt_cv_prog_compiler_c_o='`$echo "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
17012
need_locks='`$echo "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
17013
libext='`$echo "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
17014
shrext_cmds='`$echo "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
17015
extract_expsyms_cmds='`$echo "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
17016
variables_saved_for_relink='`$echo "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
17017
archive_cmds_need_lc='`$echo "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
17018
enable_shared_with_static_runtimes='`$echo "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
17019
export_dynamic_flag_spec='`$echo "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
17020
whole_archive_flag_spec='`$echo "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
17021
old_archive_from_new_cmds='`$echo "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
17022
old_archive_from_expsyms_cmds='`$echo "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
17023
archive_cmds='`$echo "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
17024
archive_expsym_cmds='`$echo "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
17025
module_cmds='`$echo "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
17026
module_expsym_cmds='`$echo "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
17027
allow_undefined_flag='`$echo "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
17028
no_undefined_flag='`$echo "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
17029
hardcode_libdir_flag_spec='`$echo "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
17030
hardcode_libdir_flag_spec_ld='`$echo "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
17031
hardcode_libdir_separator='`$echo "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
17032
hardcode_direct='`$echo "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
17033
hardcode_minus_L='`$echo "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
17034
hardcode_shlibpath_var='`$echo "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
17035
hardcode_automatic='`$echo "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
17036
inherit_rpath='`$echo "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
17037
link_all_deplibs='`$echo "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
17038
fix_srcfile_path='`$echo "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
17039
always_export_symbols='`$echo "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
17040
export_symbols_cmds='`$echo "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
17041
exclude_expsyms='`$echo "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
17042
include_expsyms='`$echo "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
17043
need_lib_prefix='`$echo "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
17044
need_version='`$echo "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
17045
version_type='`$echo "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
17046
runpath_var='`$echo "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
17047
shlibpath_var='`$echo "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
17048
shlibpath_overrides_runpath='`$echo "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
17049
libname_spec='`$echo "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
17050
library_names_spec='`$echo "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
17051
soname_spec='`$echo "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
17052
postinstall_cmds='`$echo "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
17053
postuninstall_cmds='`$echo "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
17054
finish_cmds='`$echo "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
17055
finish_eval='`$echo "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
17056
hardcode_into_libs='`$echo "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
17057
sys_lib_search_path_spec='`$echo "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
17058
sys_lib_dlsearch_path_spec='`$echo "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
17059
hardcode_action='`$echo "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
17060
old_striplib='`$echo "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
17061
striplib='`$echo "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
17062
enable_dlopen='`$echo "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
17063
enable_dlopen_self='`$echo "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
17064
enable_dlopen_self_static='`$echo "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
17065
 
 
17066
LTCC='$LTCC'
 
17067
compiler='$compiler_DEFAULT'
 
17068
 
 
17069
# Quote evaled strings.
 
17070
for var in SED GREP EGREP LD reload_flag NM LN_S deplibs_check_method file_magic_cmd AR AR_FLAGS STRIP RANLIB lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl lt_cv_sys_global_symbol_to_c_name_address CC compiler SHELL echo lt_prog_compiler_no_builtin_flag lt_prog_compiler_wl lt_prog_compiler_pic lt_prog_compiler_static lt_cv_prog_compiler_c_o need_locks shrext_cmds variables_saved_for_relink export_dynamic_flag_spec whole_archive_flag_spec allow_undefined_flag no_undefined_flag hardcode_libdir_flag_spec hardcode_libdir_flag_spec_ld hardcode_libdir_separator fix_srcfile_path exclude_expsyms include_expsyms libname_spec library_names_spec soname_spec finish_eval old_striplib striplib; do
 
17071
    eval "lt_\$var=\\\\\\"\\\`\\\$echo \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
17072
done
 
17073
 
 
17074
# Double-quote double-evaled strings.
 
17075
for var in reload_cmds old_postinstall_cmds old_postuninstall_cmds old_archive_cmds extract_expsyms_cmds old_archive_from_new_cmds old_archive_from_expsyms_cmds archive_cmds archive_expsym_cmds module_cmds module_expsym_cmds export_symbols_cmds postinstall_cmds postuninstall_cmds finish_cmds sys_lib_search_path_spec sys_lib_dlsearch_path_spec; do
 
17076
    eval "lt_\$var=\\\\\\"\\\`\\\$echo \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
17077
done
 
17078
 
 
17079
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
17080
case \$lt_echo in
 
17081
*'\\\$0 --fallback-echo"')  lt_echo=\`\$echo "X\$lt_echo" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
17082
  ;;
 
17083
esac
 
17084
 
 
17085
ac_aux_dir='$ac_aux_dir'
 
17086
 
 
17087
# See if we are running on zsh, and set the options which allow our
 
17088
# commands through without removal of \ escapes INIT.
 
17089
if test -n "\${ZSH_VERSION+set}" ; then
 
17090
   setopt NO_GLOB_SUBST
 
17091
fi
 
17092
 
 
17093
 
 
17094
    PACKAGE='$PACKAGE'
 
17095
    VERSION='$VERSION'
 
17096
    TIMESTAMP='$TIMESTAMP'
 
17097
    rm='$rm'
 
17098
    ofile='$ofile'
 
17099
 
 
17100
 
 
17101
 
 
17102
 
 
17103
_ACEOF
 
17104
 
 
17105
 
 
17106
 
 
17107
cat >>$CONFIG_STATUS <<\_ACEOF
 
17108
for ac_config_target in $ac_config_targets
 
17109
do
 
17110
  case "$ac_config_target" in
 
17111
  # Handling of arguments.
 
17112
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
17113
  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
 
17114
  "zebra/Makefile" ) CONFIG_FILES="$CONFIG_FILES zebra/Makefile" ;;
 
17115
  "ripd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripd/Makefile" ;;
 
17116
  "ripngd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripngd/Makefile" ;;
 
17117
  "bgpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bgpd/Makefile" ;;
 
17118
  "ospfd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospfd/Makefile" ;;
 
17119
  "watchquagga/Makefile" ) CONFIG_FILES="$CONFIG_FILES watchquagga/Makefile" ;;
 
17120
  "ospf6d/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospf6d/Makefile" ;;
 
17121
  "isisd/Makefile" ) CONFIG_FILES="$CONFIG_FILES isisd/Makefile" ;;
 
17122
  "vtysh/Makefile" ) CONFIG_FILES="$CONFIG_FILES vtysh/Makefile" ;;
 
17123
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
17124
  "ospfclient/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospfclient/Makefile" ;;
 
17125
  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
17126
  "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
 
17127
  "redhat/Makefile" ) CONFIG_FILES="$CONFIG_FILES redhat/Makefile" ;;
 
17128
  "pkgsrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES pkgsrc/Makefile" ;;
 
17129
  "redhat/quagga.spec" ) CONFIG_FILES="$CONFIG_FILES redhat/quagga.spec" ;;
 
17130
  "lib/version.h" ) CONFIG_FILES="$CONFIG_FILES lib/version.h" ;;
 
17131
  "doc/defines.texi" ) CONFIG_FILES="$CONFIG_FILES doc/defines.texi" ;;
 
17132
  "isisd/topology/Makefile" ) CONFIG_FILES="$CONFIG_FILES isisd/topology/Makefile" ;;
 
17133
  "pkgsrc/bgpd.sh" ) CONFIG_FILES="$CONFIG_FILES pkgsrc/bgpd.sh" ;;
 
17134
  "pkgsrc/ospf6d.sh" ) CONFIG_FILES="$CONFIG_FILES pkgsrc/ospf6d.sh" ;;
 
17135
  "pkgsrc/ospfd.sh" ) CONFIG_FILES="$CONFIG_FILES pkgsrc/ospfd.sh" ;;
 
17136
  "pkgsrc/ripd.sh" ) CONFIG_FILES="$CONFIG_FILES pkgsrc/ripd.sh" ;;
 
17137
  "pkgsrc/ripngd.sh" ) CONFIG_FILES="$CONFIG_FILES pkgsrc/ripngd.sh" ;;
 
17138
  "pkgsrc/zebra.sh" ) CONFIG_FILES="$CONFIG_FILES pkgsrc/zebra.sh" ;;
 
17139
  "solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES solaris/Makefile" ;;
 
17140
  "vtysh/extract.pl" ) CONFIG_FILES="$CONFIG_FILES vtysh/extract.pl" ;;
 
17141
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
17142
  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
17143
  "info-time" ) CONFIG_COMMANDS="$CONFIG_COMMANDS info-time" ;;
 
17144
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
17145
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
17146
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
17147
   { (exit 1); exit 1; }; };;
 
17148
  esac
 
17149
done
 
17150
 
 
17151
# If the user did not use the arguments to specify the items to instantiate,
 
17152
# then the envvar interface is used.  Set only those that are not.
 
17153
# We use the long form for the default assignment because of an extremely
 
17154
# bizarre bug on SunOS 4.1.3.
 
17155
if $ac_need_defaults; then
 
17156
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
17157
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
17158
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
17159
fi
 
17160
 
 
17161
# Have a temporary directory for convenience.  Make it in the build tree
 
17162
# simply because there is no reason to put it here, and in addition,
 
17163
# creating and moving files from /tmp can sometimes cause problems.
 
17164
# Create a temporary directory, and hook for its removal unless debugging.
 
17165
$debug ||
 
17166
{
 
17167
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
17168
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
17169
}
 
17170
 
 
17171
# Create a (secure) tmp directory for tmp files.
 
17172
 
 
17173
{
 
17174
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
17175
  test -n "$tmp" && test -d "$tmp"
 
17176
}  ||
 
17177
{
 
17178
  tmp=./confstat$$-$RANDOM
 
17179
  (umask 077 && mkdir $tmp)
 
17180
} ||
 
17181
{
 
17182
   echo "$me: cannot create a temporary directory in ." >&2
 
17183
   { (exit 1); exit 1; }
 
17184
}
 
17185
 
 
17186
_ACEOF
 
17187
 
 
17188
cat >>$CONFIG_STATUS <<_ACEOF
 
17189
 
 
17190
#
 
17191
# CONFIG_FILES section.
 
17192
#
 
17193
 
 
17194
# No need to generate the scripts if there are no CONFIG_FILES.
 
17195
# This happens for instance when ./config.status config.h
 
17196
if test -n "\$CONFIG_FILES"; then
 
17197
  # Protect against being on the right side of a sed subst in config.status.
 
17198
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
17199
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
17200
s,@SHELL@,$SHELL,;t t
 
17201
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
17202
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
17203
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
17204
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
17205
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
17206
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
17207
s,@exec_prefix@,$exec_prefix,;t t
 
17208
s,@prefix@,$prefix,;t t
 
17209
s,@program_transform_name@,$program_transform_name,;t t
 
17210
s,@bindir@,$bindir,;t t
 
17211
s,@sbindir@,$sbindir,;t t
 
17212
s,@libexecdir@,$libexecdir,;t t
 
17213
s,@datadir@,$datadir,;t t
 
17214
s,@sysconfdir@,$sysconfdir,;t t
 
17215
s,@sharedstatedir@,$sharedstatedir,;t t
 
17216
s,@localstatedir@,$localstatedir,;t t
 
17217
s,@libdir@,$libdir,;t t
 
17218
s,@includedir@,$includedir,;t t
 
17219
s,@oldincludedir@,$oldincludedir,;t t
 
17220
s,@infodir@,$infodir,;t t
 
17221
s,@mandir@,$mandir,;t t
 
17222
s,@build_alias@,$build_alias,;t t
 
17223
s,@host_alias@,$host_alias,;t t
 
17224
s,@target_alias@,$target_alias,;t t
 
17225
s,@DEFS@,$DEFS,;t t
 
17226
s,@ECHO_C@,$ECHO_C,;t t
 
17227
s,@ECHO_N@,$ECHO_N,;t t
 
17228
s,@ECHO_T@,$ECHO_T,;t t
 
17229
s,@LIBS@,$LIBS,;t t
 
17230
s,@build@,$build,;t t
 
17231
s,@build_cpu@,$build_cpu,;t t
 
17232
s,@build_vendor@,$build_vendor,;t t
 
17233
s,@build_os@,$build_os,;t t
 
17234
s,@host@,$host,;t t
 
17235
s,@host_cpu@,$host_cpu,;t t
 
17236
s,@host_vendor@,$host_vendor,;t t
 
17237
s,@host_os@,$host_os,;t t
 
17238
s,@target@,$target,;t t
 
17239
s,@target_cpu@,$target_cpu,;t t
 
17240
s,@target_vendor@,$target_vendor,;t t
 
17241
s,@target_os@,$target_os,;t t
 
17242
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
17243
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
17244
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
17245
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
17246
s,@PACKAGE@,$PACKAGE,;t t
 
17247
s,@VERSION@,$VERSION,;t t
 
17248
s,@ACLOCAL@,$ACLOCAL,;t t
 
17249
s,@AUTOCONF@,$AUTOCONF,;t t
 
17250
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
17251
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
17252
s,@MAKEINFO@,$MAKEINFO,;t t
 
17253
s,@install_sh@,$install_sh,;t t
 
17254
s,@STRIP@,$STRIP,;t t
 
17255
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
17256
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
17257
s,@mkdir_p@,$mkdir_p,;t t
 
17258
s,@AWK@,$AWK,;t t
 
17259
s,@SET_MAKE@,$SET_MAKE,;t t
 
17260
s,@am__leading_dot@,$am__leading_dot,;t t
 
17261
s,@AMTAR@,$AMTAR,;t t
 
17262
s,@am__tar@,$am__tar,;t t
 
17263
s,@am__untar@,$am__untar,;t t
 
17264
s,@GAWK@,$GAWK,;t t
 
17265
s,@exampledir@,$exampledir,;t t
 
17266
s,@pkgsrcdir@,$pkgsrcdir,;t t
 
17267
s,@pkgsrcrcdir@,$pkgsrcrcdir,;t t
 
17268
s,@CC@,$CC,;t t
 
17269
s,@CFLAGS@,$CFLAGS,;t t
 
17270
s,@LDFLAGS@,$LDFLAGS,;t t
 
17271
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
17272
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
17273
s,@EXEEXT@,$EXEEXT,;t t
 
17274
s,@OBJEXT@,$OBJEXT,;t t
 
17275
s,@DEPDIR@,$DEPDIR,;t t
 
17276
s,@am__include@,$am__include,;t t
 
17277
s,@am__quote@,$am__quote,;t t
 
17278
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
17279
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
17280
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
17281
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
17282
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
17283
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
17284
s,@CPP@,$CPP,;t t
 
17285
s,@EGREP@,$EGREP,;t t
 
17286
s,@AR@,$AR,;t t
 
17287
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
17288
s,@RANLIB@,$RANLIB,;t t
 
17289
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
17290
s,@LIBTOOL@,$LIBTOOL,;t t
 
17291
s,@SED@,$SED,;t t
 
17292
s,@LD@,$LD,;t t
 
17293
s,@NM@,$NM,;t t
 
17294
s,@LN_S@,$LN_S,;t t
 
17295
s,@ECHO@,$ECHO,;t t
 
17296
s,@ISIS_TOPOLOGY_INCLUDES@,$ISIS_TOPOLOGY_INCLUDES,;t t
 
17297
s,@ISIS_TOPOLOGY_DIR@,$ISIS_TOPOLOGY_DIR,;t t
 
17298
s,@ISIS_TOPOLOGY_LIB@,$ISIS_TOPOLOGY_LIB,;t t
 
17299
s,@enable_user@,$enable_user,;t t
 
17300
s,@enable_group@,$enable_group,;t t
 
17301
s,@enable_vty_group@,$enable_vty_group,;t t
 
17302
s,@MULTIPATH_NUM@,$MULTIPATH_NUM,;t t
 
17303
s,@PERL@,$PERL,;t t
 
17304
s,@LIBPAM@,$LIBPAM,;t t
 
17305
s,@RT_METHOD@,$RT_METHOD,;t t
 
17306
s,@KERNEL_METHOD@,$KERNEL_METHOD,;t t
 
17307
s,@OTHER_METHOD@,$OTHER_METHOD,;t t
 
17308
s,@RTREAD_METHOD@,$RTREAD_METHOD,;t t
 
17309
s,@IF_METHOD@,$IF_METHOD,;t t
 
17310
s,@IOCTL_METHOD@,$IOCTL_METHOD,;t t
 
17311
s,@IF_PROC@,$IF_PROC,;t t
 
17312
s,@IPFORWARD@,$IPFORWARD,;t t
 
17313
s,@LIB_IPV6@,$LIB_IPV6,;t t
 
17314
s,@ZEBRA@,$ZEBRA,;t t
 
17315
s,@BGPD@,$BGPD,;t t
 
17316
s,@RIPD@,$RIPD,;t t
 
17317
s,@RIPNGD@,$RIPNGD,;t t
 
17318
s,@OSPFD@,$OSPFD,;t t
 
17319
s,@OSPF6D@,$OSPF6D,;t t
 
17320
s,@WATCHQUAGGA@,$WATCHQUAGGA,;t t
 
17321
s,@ISISD@,$ISISD,;t t
 
17322
s,@VTYSH@,$VTYSH,;t t
 
17323
s,@INCLUDES@,$INCLUDES,;t t
 
17324
s,@CURSES@,$CURSES,;t t
 
17325
s,@OSPFCLIENT@,$OSPFCLIENT,;t t
 
17326
s,@OSPFAPI@,$OSPFAPI,;t t
 
17327
s,@LIB_REGEX@,$LIB_REGEX,;t t
 
17328
s,@SNMP_INCLUDES@,$SNMP_INCLUDES,;t t
 
17329
s,@LIBCAP@,$LIBCAP,;t t
 
17330
s,@CONFDATE@,$CONFDATE,;t t
 
17331
s,@quagga_statedir@,$quagga_statedir,;t t
 
17332
s,@LIBOBJS@,$LIBOBJS,;t t
 
17333
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
17334
CEOF
 
17335
 
 
17336
_ACEOF
 
17337
 
 
17338
  cat >>$CONFIG_STATUS <<\_ACEOF
 
17339
  # Split the substitutions into bite-sized pieces for seds with
 
17340
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
17341
  ac_max_sed_lines=48
 
17342
  ac_sed_frag=1 # Number of current file.
 
17343
  ac_beg=1 # First line for current file.
 
17344
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
17345
  ac_more_lines=:
 
17346
  ac_sed_cmds=
 
17347
  while $ac_more_lines; do
 
17348
    if test $ac_beg -gt 1; then
 
17349
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
17350
    else
 
17351
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
17352
    fi
 
17353
    if test ! -s $tmp/subs.frag; then
 
17354
      ac_more_lines=false
 
17355
    else
 
17356
      # The purpose of the label and of the branching condition is to
 
17357
      # speed up the sed processing (if there are no `@' at all, there
 
17358
      # is no need to browse any of the substitutions).
 
17359
      # These are the two extra sed commands mentioned above.
 
17360
      (echo ':t
 
17361
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
17362
      if test -z "$ac_sed_cmds"; then
 
17363
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
17364
      else
 
17365
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
17366
      fi
 
17367
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
17368
      ac_beg=$ac_end
 
17369
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
17370
    fi
 
17371
  done
 
17372
  if test -z "$ac_sed_cmds"; then
 
17373
    ac_sed_cmds=cat
 
17374
  fi
 
17375
fi # test -n "$CONFIG_FILES"
 
17376
 
 
17377
_ACEOF
 
17378
cat >>$CONFIG_STATUS <<\_ACEOF
 
17379
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
17380
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
17381
  case $ac_file in
 
17382
  - | *:- | *:-:* ) # input from stdin
 
17383
        cat >$tmp/stdin
 
17384
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
17385
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
17386
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
17387
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
17388
  * )   ac_file_in=$ac_file.in ;;
 
17389
  esac
 
17390
 
 
17391
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
17392
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
17393
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17394
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
17395
         X"$ac_file" : 'X\(//\)$' \| \
 
17396
         X"$ac_file" : 'X\(/\)' \| \
 
17397
         .     : '\(.\)' 2>/dev/null ||
 
17398
echo X"$ac_file" |
 
17399
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
17400
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
17401
          /^X\(\/\/\)$/{ s//\1/; q; }
 
17402
          /^X\(\/\).*/{ s//\1/; q; }
 
17403
          s/.*/./; q'`
 
17404
  { if $as_mkdir_p; then
 
17405
    mkdir -p "$ac_dir"
 
17406
  else
 
17407
    as_dir="$ac_dir"
 
17408
    as_dirs=
 
17409
    while test ! -d "$as_dir"; do
 
17410
      as_dirs="$as_dir $as_dirs"
 
17411
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
17412
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17413
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
17414
         X"$as_dir" : 'X\(//\)$' \| \
 
17415
         X"$as_dir" : 'X\(/\)' \| \
 
17416
         .     : '\(.\)' 2>/dev/null ||
 
17417
echo X"$as_dir" |
 
17418
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
17419
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
17420
          /^X\(\/\/\)$/{ s//\1/; q; }
 
17421
          /^X\(\/\).*/{ s//\1/; q; }
 
17422
          s/.*/./; q'`
 
17423
    done
 
17424
    test ! -n "$as_dirs" || mkdir $as_dirs
 
17425
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
17426
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
17427
   { (exit 1); exit 1; }; }; }
 
17428
 
 
17429
  ac_builddir=.
 
17430
 
 
17431
if test "$ac_dir" != .; then
 
17432
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
17433
  # A "../" for each directory in $ac_dir_suffix.
 
17434
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
17435
else
 
17436
  ac_dir_suffix= ac_top_builddir=
 
17437
fi
 
17438
 
 
17439
case $srcdir in
 
17440
  .)  # No --srcdir option.  We are building in place.
 
17441
    ac_srcdir=.
 
17442
    if test -z "$ac_top_builddir"; then
 
17443
       ac_top_srcdir=.
 
17444
    else
 
17445
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
17446
    fi ;;
 
17447
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
17448
    ac_srcdir=$srcdir$ac_dir_suffix;
 
17449
    ac_top_srcdir=$srcdir ;;
 
17450
  *) # Relative path.
 
17451
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
17452
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
17453
esac
 
17454
 
 
17455
# Do not use `cd foo && pwd` to compute absolute paths, because
 
17456
# the directories may not exist.
 
17457
case `pwd` in
 
17458
.) ac_abs_builddir="$ac_dir";;
 
17459
*)
 
17460
  case "$ac_dir" in
 
17461
  .) ac_abs_builddir=`pwd`;;
 
17462
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
17463
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
17464
  esac;;
 
17465
esac
 
17466
case $ac_abs_builddir in
 
17467
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
17468
*)
 
17469
  case ${ac_top_builddir}. in
 
17470
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
17471
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
17472
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
17473
  esac;;
 
17474
esac
 
17475
case $ac_abs_builddir in
 
17476
.) ac_abs_srcdir=$ac_srcdir;;
 
17477
*)
 
17478
  case $ac_srcdir in
 
17479
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
17480
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
17481
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
17482
  esac;;
 
17483
esac
 
17484
case $ac_abs_builddir in
 
17485
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
17486
*)
 
17487
  case $ac_top_srcdir in
 
17488
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
17489
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
17490
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
17491
  esac;;
 
17492
esac
 
17493
 
 
17494
 
 
17495
  case $INSTALL in
 
17496
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
17497
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
17498
  esac
 
17499
 
 
17500
  if test x"$ac_file" != x-; then
 
17501
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
17502
echo "$as_me: creating $ac_file" >&6;}
 
17503
    rm -f "$ac_file"
 
17504
  fi
 
17505
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
17506
  # use $as_me), people would be surprised to read:
 
17507
  #    /* config.h.  Generated by config.status.  */
 
17508
  if test x"$ac_file" = x-; then
 
17509
    configure_input=
 
17510
  else
 
17511
    configure_input="$ac_file.  "
 
17512
  fi
 
17513
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
17514
                                     sed 's,.*/,,'` by configure."
 
17515
 
 
17516
  # First look for the input files in the build tree, otherwise in the
 
17517
  # src tree.
 
17518
  ac_file_inputs=`IFS=:
 
17519
    for f in $ac_file_in; do
 
17520
      case $f in
 
17521
      -) echo $tmp/stdin ;;
 
17522
      [\\/$]*)
 
17523
         # Absolute (can't be DOS-style, as IFS=:)
 
17524
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
17525
echo "$as_me: error: cannot find input file: $f" >&2;}
 
17526
   { (exit 1); exit 1; }; }
 
17527
         echo "$f";;
 
17528
      *) # Relative
 
17529
         if test -f "$f"; then
 
17530
           # Build tree
 
17531
           echo "$f"
 
17532
         elif test -f "$srcdir/$f"; then
 
17533
           # Source tree
 
17534
           echo "$srcdir/$f"
 
17535
         else
 
17536
           # /dev/null tree
 
17537
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
17538
echo "$as_me: error: cannot find input file: $f" >&2;}
 
17539
   { (exit 1); exit 1; }; }
 
17540
         fi;;
 
17541
      esac
 
17542
    done` || { (exit 1); exit 1; }
 
17543
_ACEOF
 
17544
cat >>$CONFIG_STATUS <<_ACEOF
 
17545
  sed "$ac_vpsub
 
17546
$extrasub
 
17547
_ACEOF
 
17548
cat >>$CONFIG_STATUS <<\_ACEOF
 
17549
:t
 
17550
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
17551
s,@configure_input@,$configure_input,;t t
 
17552
s,@srcdir@,$ac_srcdir,;t t
 
17553
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
17554
s,@top_srcdir@,$ac_top_srcdir,;t t
 
17555
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
17556
s,@builddir@,$ac_builddir,;t t
 
17557
s,@abs_builddir@,$ac_abs_builddir,;t t
 
17558
s,@top_builddir@,$ac_top_builddir,;t t
 
17559
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
17560
s,@INSTALL@,$ac_INSTALL,;t t
 
17561
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
17562
  rm -f $tmp/stdin
 
17563
  if test x"$ac_file" != x-; then
 
17564
    mv $tmp/out $ac_file
 
17565
  else
 
17566
    cat $tmp/out
 
17567
    rm -f $tmp/out
 
17568
  fi
 
17569
 
 
17570
  # Run the commands associated with the file.
 
17571
  case $ac_file in
 
17572
    vtysh/extract.pl ) chmod +x vtysh/extract.pl ;;
 
17573
  esac
 
17574
done
 
17575
_ACEOF
 
17576
cat >>$CONFIG_STATUS <<\_ACEOF
 
17577
 
 
17578
#
 
17579
# CONFIG_HEADER section.
 
17580
#
 
17581
 
 
17582
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
17583
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
17584
#
 
17585
# ac_d sets the value in "#define NAME VALUE" lines.
 
17586
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
17587
ac_dB='[         ].*$,\1#\2'
 
17588
ac_dC=' '
 
17589
ac_dD=',;t'
 
17590
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
17591
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
17592
ac_uB='$,\1#\2define\3'
 
17593
ac_uC=' '
 
17594
ac_uD=',;t'
 
17595
 
 
17596
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
17597
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
17598
  case $ac_file in
 
17599
  - | *:- | *:-:* ) # input from stdin
 
17600
        cat >$tmp/stdin
 
17601
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
17602
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
17603
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
17604
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
17605
  * )   ac_file_in=$ac_file.in ;;
 
17606
  esac
 
17607
 
 
17608
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
17609
echo "$as_me: creating $ac_file" >&6;}
 
17610
 
 
17611
  # First look for the input files in the build tree, otherwise in the
 
17612
  # src tree.
 
17613
  ac_file_inputs=`IFS=:
 
17614
    for f in $ac_file_in; do
 
17615
      case $f in
 
17616
      -) echo $tmp/stdin ;;
 
17617
      [\\/$]*)
 
17618
         # Absolute (can't be DOS-style, as IFS=:)
 
17619
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
17620
echo "$as_me: error: cannot find input file: $f" >&2;}
 
17621
   { (exit 1); exit 1; }; }
 
17622
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
17623
         echo "$f";;
 
17624
      *) # Relative
 
17625
         if test -f "$f"; then
 
17626
           # Build tree
 
17627
           echo "$f"
 
17628
         elif test -f "$srcdir/$f"; then
 
17629
           # Source tree
 
17630
           echo "$srcdir/$f"
 
17631
         else
 
17632
           # /dev/null tree
 
17633
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
17634
echo "$as_me: error: cannot find input file: $f" >&2;}
 
17635
   { (exit 1); exit 1; }; }
 
17636
         fi;;
 
17637
      esac
 
17638
    done` || { (exit 1); exit 1; }
 
17639
  # Remove the trailing spaces.
 
17640
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
17641
 
 
17642
_ACEOF
 
17643
 
 
17644
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
17645
# `conftest.undefs', that substitutes the proper values into
 
17646
# config.h.in to produce config.h.  The first handles `#define'
 
17647
# templates, and the second `#undef' templates.
 
17648
# And first: Protect against being on the right side of a sed subst in
 
17649
# config.status.  Protect against being in an unquoted here document
 
17650
# in config.status.
 
17651
rm -f conftest.defines conftest.undefs
 
17652
# Using a here document instead of a string reduces the quoting nightmare.
 
17653
# Putting comments in sed scripts is not portable.
 
17654
#
 
17655
# `end' is used to avoid that the second main sed command (meant for
 
17656
# 0-ary CPP macros) applies to n-ary macro definitions.
 
17657
# See the Autoconf documentation for `clear'.
 
17658
cat >confdef2sed.sed <<\_ACEOF
 
17659
s/[\\&,]/\\&/g
 
17660
s,[\\$`],\\&,g
 
17661
t clear
 
17662
: clear
 
17663
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
17664
t end
 
17665
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
17666
: end
 
17667
_ACEOF
 
17668
# If some macros were called several times there might be several times
 
17669
# the same #defines, which is useless.  Nevertheless, we may not want to
 
17670
# sort them, since we want the *last* AC-DEFINE to be honored.
 
17671
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
17672
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
17673
rm -f confdef2sed.sed
 
17674
 
 
17675
# This sed command replaces #undef with comments.  This is necessary, for
 
17676
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
17677
# on some systems where configure will not decide to define it.
 
17678
cat >>conftest.undefs <<\_ACEOF
 
17679
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
17680
_ACEOF
 
17681
 
 
17682
# Break up conftest.defines because some shells have a limit on the size
 
17683
# of here documents, and old seds have small limits too (100 cmds).
 
17684
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
17685
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
17686
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
17687
echo '  :' >>$CONFIG_STATUS
 
17688
rm -f conftest.tail
 
17689
while grep . conftest.defines >/dev/null
 
17690
do
 
17691
  # Write a limited-size here document to $tmp/defines.sed.
 
17692
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
17693
  # Speed up: don't consider the non `#define' lines.
 
17694
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
17695
  # Work around the forget-to-reset-the-flag bug.
 
17696
  echo 't clr' >>$CONFIG_STATUS
 
17697
  echo ': clr' >>$CONFIG_STATUS
 
17698
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
17699
  echo 'CEOF
 
17700
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
17701
  rm -f $tmp/in
 
17702
  mv $tmp/out $tmp/in
 
17703
' >>$CONFIG_STATUS
 
17704
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
17705
  rm -f conftest.defines
 
17706
  mv conftest.tail conftest.defines
 
17707
done
 
17708
rm -f conftest.defines
 
17709
echo '  fi # grep' >>$CONFIG_STATUS
 
17710
echo >>$CONFIG_STATUS
 
17711
 
 
17712
# Break up conftest.undefs because some shells have a limit on the size
 
17713
# of here documents, and old seds have small limits too (100 cmds).
 
17714
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
17715
rm -f conftest.tail
 
17716
while grep . conftest.undefs >/dev/null
 
17717
do
 
17718
  # Write a limited-size here document to $tmp/undefs.sed.
 
17719
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
17720
  # Speed up: don't consider the non `#undef'
 
17721
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
17722
  # Work around the forget-to-reset-the-flag bug.
 
17723
  echo 't clr' >>$CONFIG_STATUS
 
17724
  echo ': clr' >>$CONFIG_STATUS
 
17725
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
17726
  echo 'CEOF
 
17727
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
17728
  rm -f $tmp/in
 
17729
  mv $tmp/out $tmp/in
 
17730
' >>$CONFIG_STATUS
 
17731
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
17732
  rm -f conftest.undefs
 
17733
  mv conftest.tail conftest.undefs
 
17734
done
 
17735
rm -f conftest.undefs
 
17736
 
 
17737
cat >>$CONFIG_STATUS <<\_ACEOF
 
17738
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
17739
  # use $as_me), people would be surprised to read:
 
17740
  #    /* config.h.  Generated by config.status.  */
 
17741
  if test x"$ac_file" = x-; then
 
17742
    echo "/* Generated by configure.  */" >$tmp/config.h
 
17743
  else
 
17744
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
17745
  fi
 
17746
  cat $tmp/in >>$tmp/config.h
 
17747
  rm -f $tmp/in
 
17748
  if test x"$ac_file" != x-; then
 
17749
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
17750
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
17751
echo "$as_me: $ac_file is unchanged" >&6;}
 
17752
    else
 
17753
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
17754
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17755
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
17756
         X"$ac_file" : 'X\(//\)$' \| \
 
17757
         X"$ac_file" : 'X\(/\)' \| \
 
17758
         .     : '\(.\)' 2>/dev/null ||
 
17759
echo X"$ac_file" |
 
17760
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
17761
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
17762
          /^X\(\/\/\)$/{ s//\1/; q; }
 
17763
          /^X\(\/\).*/{ s//\1/; q; }
 
17764
          s/.*/./; q'`
 
17765
      { if $as_mkdir_p; then
 
17766
    mkdir -p "$ac_dir"
 
17767
  else
 
17768
    as_dir="$ac_dir"
 
17769
    as_dirs=
 
17770
    while test ! -d "$as_dir"; do
 
17771
      as_dirs="$as_dir $as_dirs"
 
17772
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
17773
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17774
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
17775
         X"$as_dir" : 'X\(//\)$' \| \
 
17776
         X"$as_dir" : 'X\(/\)' \| \
 
17777
         .     : '\(.\)' 2>/dev/null ||
 
17778
echo X"$as_dir" |
 
17779
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
17780
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
17781
          /^X\(\/\/\)$/{ s//\1/; q; }
 
17782
          /^X\(\/\).*/{ s//\1/; q; }
 
17783
          s/.*/./; q'`
 
17784
    done
 
17785
    test ! -n "$as_dirs" || mkdir $as_dirs
 
17786
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
17787
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
17788
   { (exit 1); exit 1; }; }; }
 
17789
 
 
17790
      rm -f $ac_file
 
17791
      mv $tmp/config.h $ac_file
 
17792
    fi
 
17793
  else
 
17794
    cat $tmp/config.h
 
17795
    rm -f $tmp/config.h
 
17796
  fi
 
17797
# Compute $ac_file's index in $config_headers.
 
17798
_am_stamp_count=1
 
17799
for _am_header in $config_headers :; do
 
17800
  case $_am_header in
 
17801
    $ac_file | $ac_file:* )
 
17802
      break ;;
 
17803
    * )
 
17804
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
17805
  esac
 
17806
done
 
17807
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
17808
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17809
         X$ac_file : 'X\(//\)[^/]' \| \
 
17810
         X$ac_file : 'X\(//\)$' \| \
 
17811
         X$ac_file : 'X\(/\)' \| \
 
17812
         .     : '\(.\)' 2>/dev/null ||
 
17813
echo X$ac_file |
 
17814
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
17815
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
17816
          /^X\(\/\/\)$/{ s//\1/; q; }
 
17817
          /^X\(\/\).*/{ s//\1/; q; }
 
17818
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
17819
done
 
17820
_ACEOF
 
17821
cat >>$CONFIG_STATUS <<\_ACEOF
 
17822
 
 
17823
#
 
17824
# CONFIG_COMMANDS section.
 
17825
#
 
17826
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
17827
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
17828
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
17829
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
17830
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17831
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
17832
         X"$ac_dest" : 'X\(//\)$' \| \
 
17833
         X"$ac_dest" : 'X\(/\)' \| \
 
17834
         .     : '\(.\)' 2>/dev/null ||
 
17835
echo X"$ac_dest" |
 
17836
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
17837
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
17838
          /^X\(\/\/\)$/{ s//\1/; q; }
 
17839
          /^X\(\/\).*/{ s//\1/; q; }
 
17840
          s/.*/./; q'`
 
17841
  { if $as_mkdir_p; then
 
17842
    mkdir -p "$ac_dir"
 
17843
  else
 
17844
    as_dir="$ac_dir"
 
17845
    as_dirs=
 
17846
    while test ! -d "$as_dir"; do
 
17847
      as_dirs="$as_dir $as_dirs"
 
17848
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
17849
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17850
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
17851
         X"$as_dir" : 'X\(//\)$' \| \
 
17852
         X"$as_dir" : 'X\(/\)' \| \
 
17853
         .     : '\(.\)' 2>/dev/null ||
 
17854
echo X"$as_dir" |
 
17855
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
17856
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
17857
          /^X\(\/\/\)$/{ s//\1/; q; }
 
17858
          /^X\(\/\).*/{ s//\1/; q; }
 
17859
          s/.*/./; q'`
 
17860
    done
 
17861
    test ! -n "$as_dirs" || mkdir $as_dirs
 
17862
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
17863
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
17864
   { (exit 1); exit 1; }; }; }
 
17865
 
 
17866
  ac_builddir=.
 
17867
 
 
17868
if test "$ac_dir" != .; then
 
17869
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
17870
  # A "../" for each directory in $ac_dir_suffix.
 
17871
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
17872
else
 
17873
  ac_dir_suffix= ac_top_builddir=
 
17874
fi
 
17875
 
 
17876
case $srcdir in
 
17877
  .)  # No --srcdir option.  We are building in place.
 
17878
    ac_srcdir=.
 
17879
    if test -z "$ac_top_builddir"; then
 
17880
       ac_top_srcdir=.
 
17881
    else
 
17882
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
17883
    fi ;;
 
17884
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
17885
    ac_srcdir=$srcdir$ac_dir_suffix;
 
17886
    ac_top_srcdir=$srcdir ;;
 
17887
  *) # Relative path.
 
17888
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
17889
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
17890
esac
 
17891
 
 
17892
# Do not use `cd foo && pwd` to compute absolute paths, because
 
17893
# the directories may not exist.
 
17894
case `pwd` in
 
17895
.) ac_abs_builddir="$ac_dir";;
 
17896
*)
 
17897
  case "$ac_dir" in
 
17898
  .) ac_abs_builddir=`pwd`;;
 
17899
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
17900
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
17901
  esac;;
 
17902
esac
 
17903
case $ac_abs_builddir in
 
17904
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
17905
*)
 
17906
  case ${ac_top_builddir}. in
 
17907
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
17908
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
17909
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
17910
  esac;;
 
17911
esac
 
17912
case $ac_abs_builddir in
 
17913
.) ac_abs_srcdir=$ac_srcdir;;
 
17914
*)
 
17915
  case $ac_srcdir in
 
17916
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
17917
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
17918
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
17919
  esac;;
 
17920
esac
 
17921
case $ac_abs_builddir in
 
17922
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
17923
*)
 
17924
  case $ac_top_srcdir in
 
17925
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
17926
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
17927
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
17928
  esac;;
 
17929
esac
 
17930
 
 
17931
 
 
17932
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
17933
echo "$as_me: executing $ac_dest commands" >&6;}
 
17934
  case $ac_dest in
 
17935
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
17936
  # Strip MF so we end up with the name of the file.
 
17937
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
17938
  # Check whether this is an Automake generated Makefile or not.
 
17939
  # We used to match only the files named `Makefile.in', but
 
17940
  # some people rename them; so instead we look at the file content.
 
17941
  # Grep'ing the first line is not enough: some people post-process
 
17942
  # each Makefile.in and add a new line on top of each file to say so.
 
17943
  # So let's grep whole file.
 
17944
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
17945
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
17946
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17947
         X"$mf" : 'X\(//\)[^/]' \| \
 
17948
         X"$mf" : 'X\(//\)$' \| \
 
17949
         X"$mf" : 'X\(/\)' \| \
 
17950
         .     : '\(.\)' 2>/dev/null ||
 
17951
echo X"$mf" |
 
17952
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
17953
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
17954
          /^X\(\/\/\)$/{ s//\1/; q; }
 
17955
          /^X\(\/\).*/{ s//\1/; q; }
 
17956
          s/.*/./; q'`
 
17957
  else
 
17958
    continue
 
17959
  fi
 
17960
  # Extract the definition of DEPDIR, am__include, and am__quote
 
17961
  # from the Makefile without running `make'.
 
17962
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
17963
  test -z "$DEPDIR" && continue
 
17964
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
17965
  test -z "am__include" && continue
 
17966
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
17967
  # When using ansi2knr, U may be empty or an underscore; expand it
 
17968
  U=`sed -n 's/^U = //p' < "$mf"`
 
17969
  # Find all dependency output files, they are included files with
 
17970
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
17971
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
17972
  # expansion.
 
17973
  for file in `sed -n "
 
17974
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
17975
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
17976
    # Make sure the directory exists.
 
17977
    test -f "$dirpart/$file" && continue
 
17978
    fdir=`(dirname "$file") 2>/dev/null ||
 
17979
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17980
         X"$file" : 'X\(//\)[^/]' \| \
 
17981
         X"$file" : 'X\(//\)$' \| \
 
17982
         X"$file" : 'X\(/\)' \| \
 
17983
         .     : '\(.\)' 2>/dev/null ||
 
17984
echo X"$file" |
 
17985
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
17986
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
17987
          /^X\(\/\/\)$/{ s//\1/; q; }
 
17988
          /^X\(\/\).*/{ s//\1/; q; }
 
17989
          s/.*/./; q'`
 
17990
    { if $as_mkdir_p; then
 
17991
    mkdir -p $dirpart/$fdir
 
17992
  else
 
17993
    as_dir=$dirpart/$fdir
 
17994
    as_dirs=
 
17995
    while test ! -d "$as_dir"; do
 
17996
      as_dirs="$as_dir $as_dirs"
 
17997
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
17998
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17999
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
18000
         X"$as_dir" : 'X\(//\)$' \| \
 
18001
         X"$as_dir" : 'X\(/\)' \| \
 
18002
         .     : '\(.\)' 2>/dev/null ||
 
18003
echo X"$as_dir" |
 
18004
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
18005
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
18006
          /^X\(\/\/\)$/{ s//\1/; q; }
 
18007
          /^X\(\/\).*/{ s//\1/; q; }
 
18008
          s/.*/./; q'`
 
18009
    done
 
18010
    test ! -n "$as_dirs" || mkdir $as_dirs
 
18011
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
18012
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
18013
   { (exit 1); exit 1; }; }; }
 
18014
 
 
18015
    # echo "creating $dirpart/$file"
 
18016
    echo '# dummy' > "$dirpart/$file"
 
18017
  done
 
18018
done
 
18019
 ;;
 
18020
    libtool )
 
18021
 
 
18022
    # See if we are running on zsh, and set the options which allow our
 
18023
    # commands through without removal of \ escapes.
 
18024
    if test -n "${ZSH_VERSION+set}" ; then
 
18025
      setopt NO_GLOB_SUBST
 
18026
    fi
 
18027
 
 
18028
    cfgfile="${ofile}T"
 
18029
    trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
18030
    $rm -f "$cfgfile"
 
18031
 
 
18032
    cat <<_LT_EOF >> "$cfgfile"
 
18033
#! $SHELL
 
18034
 
 
18035
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
18036
# Generated automatically by config.status (GNU $PACKAGE$TIMESTAMP) $VERSION
 
18037
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18038
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
18039
#
 
18040
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
 
18041
# Free Software Foundation, Inc.
 
18042
#
 
18043
# This file is part of GNU Libtool:
 
18044
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
18045
#
 
18046
# This program is free software; you can redistribute it and/or modify
 
18047
# it under the terms of the GNU General Public License as published by
 
18048
# the Free Software Foundation; either version 2 of the License, or
 
18049
# (at your option) any later version.
 
18050
#
 
18051
# This program is distributed in the hope that it will be useful, but
 
18052
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
18053
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
18054
# General Public License for more details.
 
18055
#
 
18056
# You should have received a copy of the GNU General Public License
 
18057
# along with this program; if not, write to the Free Software
 
18058
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
18059
#
 
18060
# As a special exception to the GNU General Public License, if you
 
18061
# distribute this file as part of a program that contains a
 
18062
# configuration script generated by Autoconf, you may include it under
 
18063
# the same distribution terms that you use for the rest of that program.
 
18064
 
 
18065
 
 
18066
 
 
18067
# The names of the tagged configurations supported by this script.
 
18068
available_tags=""
 
18069
 
 
18070
# ### BEGIN LIBTOOL CONFIG
 
18071
 
 
18072
# Which release of libtool.m4 was used?
 
18073
macro_version=$macro_version
 
18074
macro_revision=$macro_revision
 
18075
 
 
18076
# Whether or not to build shared libraries.
 
18077
build_libtool_libs=$enable_shared
 
18078
 
 
18079
# Whether or not to build static libraries.
 
18080
build_old_libs=$enable_static
 
18081
 
 
18082
# What type of objects to build.
 
18083
pic_mode=$pic_mode
 
18084
 
 
18085
# Whether or not to optimize for fast installation.
 
18086
fast_install=$enable_fast_install
 
18087
 
 
18088
# The host system.
 
18089
host_alias=$host_alias
 
18090
host=$host
 
18091
 
 
18092
# A sed program that does not truncate output.
 
18093
SED=$lt_SED
 
18094
 
 
18095
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
18096
Xsed="\$SED -e s/^X//"
 
18097
 
 
18098
# A grep program that handles long line.
 
18099
GREP=$lt_GREP
 
18100
 
 
18101
# An ERE matcher.
 
18102
EGREP=$lt_EGREP
 
18103
 
 
18104
# How to create reloadable object files.
 
18105
reload_flag=$lt_reload_flag
 
18106
reload_cmds=$lt_reload_cmds
 
18107
 
 
18108
# A BSD-compatible nm program.
 
18109
NM=$lt_NM
 
18110
 
 
18111
# Whether we need soft or hard links.
 
18112
LN_S=$lt_LN_S
 
18113
 
 
18114
# Method to check whether dependent libraries are shared objects.
 
18115
deplibs_check_method=$lt_deplibs_check_method
 
18116
 
 
18117
# Command to use when deplibs_check_method == "file_magic".
 
18118
file_magic_cmd=$lt_file_magic_cmd
 
18119
 
 
18120
# The archiver.
 
18121
AR=$lt_AR
 
18122
AR_FLAGS=$lt_AR_FLAGS
 
18123
 
 
18124
# A symbol stripping program.
 
18125
STRIP=$lt_STRIP
 
18126
 
 
18127
# Commands used to install an old-style archive.
 
18128
RANLIB=$lt_RANLIB
 
18129
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18130
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18131
 
 
18132
# What is the maximum length of a command?
 
18133
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18134
 
 
18135
# Take the output of nm and produce a listing of raw symbols and C names.
 
18136
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18137
 
 
18138
# Transform the output of nm in a proper C declaration.
 
18139
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18140
 
 
18141
# Transform the output of nm in a C name address pair.
 
18142
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18143
 
 
18144
# Object file suffix (normally "o").
 
18145
objext=$ac_objext
 
18146
 
 
18147
# Executable file suffix (normally "").
 
18148
exeext=$exeext
 
18149
 
 
18150
# The name of the directory that contains temporary libtool files.
 
18151
objdir=$objdir
 
18152
 
 
18153
# A C compiler.
 
18154
LTCC=$lt_CC
 
18155
 
 
18156
# Shell to use when invoking shell scripts.
 
18157
SHELL=$lt_SHELL
 
18158
 
 
18159
# An echo program that does not interpret backslashes.
 
18160
echo=$lt_echo
 
18161
 
 
18162
# Used to examine libraries when file_magic_cmd begins "file".
 
18163
MAGIC_CMD=$MAGIC_CMD
 
18164
 
 
18165
# Does compiler simultaneously support -c and -o options?
 
18166
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
18167
 
 
18168
# Must we lock files when doing compilation?
 
18169
need_locks=$lt_need_locks
 
18170
 
 
18171
# Old archive suffix (normally "a").
 
18172
libext=$libext
 
18173
 
 
18174
# Shared library suffix (normally ".so").
 
18175
shrext_cmds=$lt_shrext_cmds
 
18176
 
 
18177
# The commands to extract the exported symbol list from a shared archive.
 
18178
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18179
 
 
18180
# Variables whose values should be saved in libtool wrapper scripts and
 
18181
# restored at link time.
 
18182
variables_saved_for_relink=$lt_variables_saved_for_relink
 
18183
 
 
18184
# Do we need the "lib" prefix for modules?
 
18185
need_lib_prefix=$need_lib_prefix
 
18186
 
 
18187
# Do we need a version for libraries?
 
18188
need_version=$need_version
 
18189
 
 
18190
# Library versioning type.
 
18191
version_type=$version_type
 
18192
 
 
18193
# Shared library runtime path variable.
 
18194
runpath_var=$runpath_var
 
18195
 
 
18196
# Shared library path variable.
 
18197
shlibpath_var=$shlibpath_var
 
18198
 
 
18199
# Is shibpath searched before the hard-coded library search path?
 
18200
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18201
 
 
18202
# Format of library name prefix.
 
18203
libname_spec=$lt_libname_spec
 
18204
 
 
18205
# List of archive names.  First name is the real one,the rest are links.
 
18206
# The last name is the one that the linker finds with -lNAME
 
18207
library_names_spec=$lt_library_names_spec
 
18208
 
 
18209
# The coded name of the library,if different from the real name.
 
18210
soname_spec=$lt_soname_spec
 
18211
 
 
18212
# Command to use after installation of a shared archive.
 
18213
postinstall_cmds=$lt_postinstall_cmds
 
18214
 
 
18215
# Command to use after uninstallation of a shared archive.
 
18216
postuninstall_cmds=$lt_postuninstall_cmds
 
18217
 
 
18218
# Commands used to finish a libtool library installation in a directory.
 
18219
finish_cmds=$lt_finish_cmds
 
18220
 
 
18221
# As "finish_cmds",except a single script fragment to be evaled but
 
18222
# not shown.
 
18223
finish_eval=$lt_finish_eval
 
18224
 
 
18225
# Whether we should hardcode library paths into libraries.
 
18226
hardcode_into_libs=$hardcode_into_libs
 
18227
 
 
18228
# Compile-time system search path for libraries.
 
18229
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18230
 
 
18231
# Run-time system search path for libraries.
 
18232
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18233
 
 
18234
# Commands to strip libraries.
 
18235
old_striplib=$lt_old_striplib
 
18236
striplib=$lt_striplib
 
18237
 
 
18238
# Whether dlopen is supported.
 
18239
dlopen_support=$enable_dlopen
 
18240
 
 
18241
# Whether dlopen of programs is supported.
 
18242
dlopen_self=$enable_dlopen_self
 
18243
 
 
18244
# Whether dlopen of statically linked programs is supported.
 
18245
dlopen_self_static=$enable_dlopen_self_static
 
18246
 
 
18247
 
 
18248
# The linker used to build libraries.
 
18249
LD=$lt_LD
 
18250
 
 
18251
# Commands used to build an old-style archive.
 
18252
old_archive_cmds=$lt_old_archive_cmds
 
18253
 
 
18254
# A language specific compiler.
 
18255
CC=$lt_compiler
 
18256
 
 
18257
# Is the compiler the GNU C compiler?
 
18258
with_gcc=$GCC
 
18259
 
 
18260
# Compiler flag to turn off builtin functions.
 
18261
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
18262
 
 
18263
# How to pass a linker flag through the compiler.
 
18264
wl=$lt_lt_prog_compiler_wl
 
18265
 
 
18266
# Additional compiler flags for building library objects.
 
18267
pic_flag=$lt_lt_prog_compiler_pic
 
18268
 
 
18269
# Compiler flag to prevent dynamic linking.
 
18270
link_static_flag=$lt_lt_prog_compiler_static
 
18271
 
 
18272
# Whether or not to add -lc for building shared libraries.
 
18273
build_libtool_need_lc=$archive_cmds_need_lc
 
18274
 
 
18275
# Whether or not to disallow shared libs when runtime libs are static.
 
18276
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
18277
 
 
18278
# Compiler flag to allow reflexive dlopens.
 
18279
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
18280
 
 
18281
# Compiler flag to generate shared objects directly from archives.
 
18282
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
18283
 
 
18284
# Create an old-style archive from a shared archive.
 
18285
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
18286
 
 
18287
# Create a temporary old-style archive to link instead of a shared archive.
 
18288
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
18289
 
 
18290
# Commands used to build a shared archive.
 
18291
archive_cmds=$lt_archive_cmds
 
18292
archive_expsym_cmds=$lt_archive_expsym_cmds
 
18293
 
 
18294
# Commands used to build a loadable module if different from building
 
18295
# a shared archive.
 
18296
module_cmds=$lt_module_cmds
 
18297
module_expsym_cmds=$lt_module_expsym_cmds
 
18298
 
 
18299
# Flag that allows shared libraries with undefined symbols to be built.
 
18300
allow_undefined_flag=$lt_allow_undefined_flag
 
18301
 
 
18302
# Flag that enforces no undefined symbols.
 
18303
no_undefined_flag=$lt_no_undefined_flag
 
18304
 
 
18305
# Flag to hardcode $libdir into a binary during linking.
 
18306
# This must work even if $libdir does not exist
 
18307
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
18308
 
 
18309
# If ld is used when linking,flag to hardcode $libdir into a binary
 
18310
# during linking.  This must work even if $libdir does not exist.
 
18311
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
18312
 
 
18313
# Whether we need a single "-rpath" flag with a separated argument.
 
18314
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
18315
 
 
18316
# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
18317
# DIR into the resulting binary.
 
18318
hardcode_direct=$hardcode_direct
 
18319
 
 
18320
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
18321
# into the resulting binary.
 
18322
hardcode_minus_L=$hardcode_minus_L
 
18323
 
 
18324
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
18325
# into the resulting binary.
 
18326
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
18327
 
 
18328
# Set to "yes" if building a shared library automatically hardcodes DIR
 
18329
# into the library and all subsequent libraries and executables linked
 
18330
# against it.
 
18331
hardcode_automatic=$hardcode_automatic
 
18332
 
 
18333
# Set to yes if linker adds runtime paths of dependent libraries
 
18334
# to runtime path list.
 
18335
inherit_rpath=$inherit_rpath
 
18336
 
 
18337
# Whether libtool must link a program against all its dependency libraries.
 
18338
link_all_deplibs=$link_all_deplibs
 
18339
 
 
18340
# Fix the shell variable $srcfile for the compiler.
 
18341
fix_srcfile_path=$lt_fix_srcfile_path
 
18342
 
 
18343
# Set to "yes" if exported symbols are required.
 
18344
always_export_symbols=$always_export_symbols
 
18345
 
 
18346
# The commands to list exported symbols.
 
18347
export_symbols_cmds=$lt_export_symbols_cmds
 
18348
 
 
18349
# Symbols that should not be listed in the preloaded symbols.
 
18350
exclude_expsyms=$lt_exclude_expsyms
 
18351
 
 
18352
# Symbols that must always be exported.
 
18353
include_expsyms=$lt_include_expsyms
 
18354
 
 
18355
# How to hardcode a shared library path into an executable.
 
18356
hardcode_action=$hardcode_action
 
18357
 
 
18358
# ### END LIBTOOL CONFIG
 
18359
 
 
18360
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
18361
# if CDPATH is set.
 
18362
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
18363
 
 
18364
_LT_EOF
 
18365
 
 
18366
  case $host_os in
 
18367
  aix3*)
 
18368
    cat <<\_LT_EOF >> "$cfgfile"
 
18369
# AIX sometimes has problems with the GCC collect2 program.  For some
 
18370
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
18371
# vanish in a puff of smoke.
 
18372
if test "X${COLLECT_NAMES+set}" != Xset; then
 
18373
  COLLECT_NAMES=
 
18374
  export COLLECT_NAMES
 
18375
fi
 
18376
_LT_EOF
 
18377
    ;;
 
18378
  esac
 
18379
 
 
18380
 
 
18381
case $ac_aux_dir in
 
18382
  $srcdir)   ltmain=./ltmain.sh ;;
 
18383
  $srcdir/*) ltmain=`expr "$ac_aux_dir" : "$srcdir/\(.*\)"`/ltmain.sh ;;
 
18384
esac
 
18385
test -f "$ltmain" || ltmain="$ac_aux_dir/ltmain.sh"
 
18386
 
 
18387
 
 
18388
  # We use sed instead of cat because bash on DJGPP gets confused if
 
18389
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
18390
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
18391
  # is reportedly fixed, but why not run on old versions too?
 
18392
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
18393
 
 
18394
  mv -f "$cfgfile" "$ofile" ||
 
18395
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
18396
  chmod +x "$ofile"
 
18397
 
 
18398
 ;;
 
18399
    info-time ) touch doc/quagga.info ;;
 
18400
  esac
 
18401
done
 
18402
_ACEOF
 
18403
 
 
18404
cat >>$CONFIG_STATUS <<\_ACEOF
 
18405
 
 
18406
{ (exit 0); exit 0; }
 
18407
_ACEOF
 
18408
chmod +x $CONFIG_STATUS
 
18409
ac_clean_files=$ac_clean_files_save
 
18410
 
 
18411
 
 
18412
# configure is writing to config.log, and then calls config.status.
 
18413
# config.status does its own redirection, appending to config.log.
 
18414
# Unfortunately, on DOS this fails, as config.log is still kept open
 
18415
# by configure, so config.status won't be able to write to it; its
 
18416
# output is simply discarded.  So we exec the FD to /dev/null,
 
18417
# effectively closing config.log, so it can be properly (re)opened and
 
18418
# appended to by config.status.  When coming back to configure, we
 
18419
# need to make the FD available again.
 
18420
if test "$no_create" != yes; then
 
18421
  ac_cs_success=:
 
18422
  ac_config_status_args=
 
18423
  test "$silent" = yes &&
 
18424
    ac_config_status_args="$ac_config_status_args --quiet"
 
18425
  exec 5>/dev/null
 
18426
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
18427
  exec 5>>config.log
 
18428
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
18429
  # would make configure fail if this is the last instruction.
 
18430
  $ac_cs_success || { (exit 1); exit 1; }
 
18431
fi
 
18432
 
 
18433
 
 
18434
echo "
 
18435
Quagga configuration
 
18436
--------------------
 
18437
quagga version          : ${PACKAGE_VERSION}
 
18438
host operationg system  : ${host_os}
 
18439
source code location    : ${srcdir}
 
18440
compiler                : ${CC}
 
18441
compiler flags          : ${CFLAGS}
 
18442
includes                : ${INCLUDES} ${SNMP_INCLUDES}
 
18443
linker flags            : ${LDFLAGS} ${LIBS}
 
18444
state file directory    : ${quagga_statedir}
 
18445
config file directory   : `eval echo \`echo ${sysconfdir}\``
 
18446
example directory       : `eval echo \`echo ${exampledir}\``
 
18447
user to run as          : ${enable_user}
 
18448
group to run as         : ${enable_group}
 
18449
group for vty sockets   : ${enable_vty_group}
 
18450
config file mask        : ${enable_configfile_mask}
 
18451
log file mask           : ${enable_logfile_mask}
 
18452
 
 
18453
The above user and group must have read/write access to the state file
 
18454
directory and to the config files in the config file directory.
 
18455
"