2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Quagga 1.2.4.
5 # Report bugs to <https://bugzilla.quagga.net>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://bugzilla.quagga.net about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='Quagga'
592 PACKAGE_TARNAME='quagga'
593 PACKAGE_VERSION='1.2.4'
594 PACKAGE_STRING='Quagga 1.2.4'
595 PACKAGE_BUGREPORT='https://bugzilla.quagga.net'
598 ac_unique_file="lib/zebra.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
637 ac_subst_vars='am__EXEEXT_FALSE
709 ISIS_TOPOLOGY_INCLUDES
785 INSTALL_STRIP_PROGRAM
840 program_transform_name
853 enable_option_checking
858 enable_dependency_tracking
867 with_pkg_extra_version
891 enable_configfile_mask
898 enable_gcc_ultra_verbose
899 enable_linux24_tcp_md5
910 ac_precious_vars='build_alias
930 # Initialize some variables set by options.
932 ac_init_version=false
933 ac_unrecognized_opts=
935 # The variables have the same names as the options, with
936 # dashes changed to underlines.
944 program_transform_name=s,x,x,
952 # Installation directory options.
953 # These are left unexpanded so users can "make install exec_prefix=/foo"
954 # and all the variables that are supposed to be based on exec_prefix
955 # by default will actually change.
956 # Use braces instead of parens because sh, perl, etc. also accept them.
957 # (The list follows the same order as the GNU Coding Standards.)
958 bindir='${exec_prefix}/bin'
959 sbindir='${exec_prefix}/sbin'
960 libexecdir='${exec_prefix}/libexec'
961 datarootdir='${prefix}/share'
962 datadir='${datarootdir}'
963 sysconfdir='${prefix}/etc'
964 sharedstatedir='${prefix}/com'
965 localstatedir='${prefix}/var'
966 includedir='${prefix}/include'
967 oldincludedir='/usr/include'
968 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
969 infodir='${datarootdir}/info'
974 libdir='${exec_prefix}/lib'
975 localedir='${datarootdir}/locale'
976 mandir='${datarootdir}/man'
982 # If the previous option needs an argument, assign it.
983 if test -n "$ac_prev"; then
984 eval $ac_prev=\$ac_option
990 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995 # Accept the important Cygnus configure options, so we can diagnose typos.
997 case $ac_dashdash$ac_option in
1001 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1003 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1004 bindir=$ac_optarg ;;
1006 -build | --build | --buil | --bui | --bu)
1007 ac_prev=build_alias ;;
1008 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1009 build_alias=$ac_optarg ;;
1011 -cache-file | --cache-file | --cache-fil | --cache-fi \
1012 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013 ac_prev=cache_file ;;
1014 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1016 cache_file=$ac_optarg ;;
1018 --config-cache | -C)
1019 cache_file=config.cache ;;
1021 -datadir | --datadir | --datadi | --datad)
1023 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1024 datadir=$ac_optarg ;;
1026 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027 | --dataroo | --dataro | --datar)
1028 ac_prev=datarootdir ;;
1029 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031 datarootdir=$ac_optarg ;;
1033 -disable-* | --disable-*)
1034 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037 as_fn_error $? "invalid feature name: $ac_useropt"
1038 ac_useropt_orig=$ac_useropt
1039 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1042 "enable_$ac_useropt"
1044 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1045 ac_unrecognized_sep=', ';;
1047 eval enable_$ac_useropt=no ;;
1049 -docdir | --docdir | --docdi | --doc | --do)
1051 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1052 docdir=$ac_optarg ;;
1054 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1056 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1057 dvidir=$ac_optarg ;;
1059 -enable-* | --enable-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error $? "invalid feature name: $ac_useropt"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1068 "enable_$ac_useropt"
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1073 eval enable_$ac_useropt=\$ac_optarg ;;
1075 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1076 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1077 | --exec | --exe | --ex)
1078 ac_prev=exec_prefix ;;
1079 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1080 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1081 | --exec=* | --exe=* | --ex=*)
1082 exec_prefix=$ac_optarg ;;
1084 -gas | --gas | --ga | --g)
1085 # Obsolete; use --with-gas.
1088 -help | --help | --hel | --he | -h)
1089 ac_init_help=long ;;
1090 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1091 ac_init_help=recursive ;;
1092 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1093 ac_init_help=short ;;
1095 -host | --host | --hos | --ho)
1096 ac_prev=host_alias ;;
1097 -host=* | --host=* | --hos=* | --ho=*)
1098 host_alias=$ac_optarg ;;
1100 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1102 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1104 htmldir=$ac_optarg ;;
1106 -includedir | --includedir | --includedi | --included | --include \
1107 | --includ | --inclu | --incl | --inc)
1108 ac_prev=includedir ;;
1109 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1110 | --includ=* | --inclu=* | --incl=* | --inc=*)
1111 includedir=$ac_optarg ;;
1113 -infodir | --infodir | --infodi | --infod | --info | --inf)
1115 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1116 infodir=$ac_optarg ;;
1118 -libdir | --libdir | --libdi | --libd)
1120 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1121 libdir=$ac_optarg ;;
1123 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1124 | --libexe | --libex | --libe)
1125 ac_prev=libexecdir ;;
1126 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1127 | --libexe=* | --libex=* | --libe=*)
1128 libexecdir=$ac_optarg ;;
1130 -localedir | --localedir | --localedi | --localed | --locale)
1131 ac_prev=localedir ;;
1132 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1133 localedir=$ac_optarg ;;
1135 -localstatedir | --localstatedir | --localstatedi | --localstated \
1136 | --localstate | --localstat | --localsta | --localst | --locals)
1137 ac_prev=localstatedir ;;
1138 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1139 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1140 localstatedir=$ac_optarg ;;
1142 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1144 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1145 mandir=$ac_optarg ;;
1147 -nfp | --nfp | --nf)
1148 # Obsolete; use --without-fp.
1151 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1152 | --no-cr | --no-c | -n)
1155 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1156 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1159 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1160 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1161 | --oldin | --oldi | --old | --ol | --o)
1162 ac_prev=oldincludedir ;;
1163 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1164 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1165 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1166 oldincludedir=$ac_optarg ;;
1168 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1170 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1171 prefix=$ac_optarg ;;
1173 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1174 | --program-pre | --program-pr | --program-p)
1175 ac_prev=program_prefix ;;
1176 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1177 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1178 program_prefix=$ac_optarg ;;
1180 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1181 | --program-suf | --program-su | --program-s)
1182 ac_prev=program_suffix ;;
1183 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1184 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1185 program_suffix=$ac_optarg ;;
1187 -program-transform-name | --program-transform-name \
1188 | --program-transform-nam | --program-transform-na \
1189 | --program-transform-n | --program-transform- \
1190 | --program-transform | --program-transfor \
1191 | --program-transfo | --program-transf \
1192 | --program-trans | --program-tran \
1193 | --progr-tra | --program-tr | --program-t)
1194 ac_prev=program_transform_name ;;
1195 -program-transform-name=* | --program-transform-name=* \
1196 | --program-transform-nam=* | --program-transform-na=* \
1197 | --program-transform-n=* | --program-transform-=* \
1198 | --program-transform=* | --program-transfor=* \
1199 | --program-transfo=* | --program-transf=* \
1200 | --program-trans=* | --program-tran=* \
1201 | --progr-tra=* | --program-tr=* | --program-t=*)
1202 program_transform_name=$ac_optarg ;;
1204 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1206 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1207 pdfdir=$ac_optarg ;;
1209 -psdir | --psdir | --psdi | --psd | --ps)
1211 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1218 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222 sbindir=$ac_optarg ;;
1224 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1225 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226 | --sharedst | --shareds | --shared | --share | --shar \
1228 ac_prev=sharedstatedir ;;
1229 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233 sharedstatedir=$ac_optarg ;;
1235 -site | --site | --sit)
1237 -site=* | --site=* | --sit=*)
1240 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1243 srcdir=$ac_optarg ;;
1245 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246 | --syscon | --sysco | --sysc | --sys | --sy)
1247 ac_prev=sysconfdir ;;
1248 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1250 sysconfdir=$ac_optarg ;;
1252 -target | --target | --targe | --targ | --tar | --ta | --t)
1253 ac_prev=target_alias ;;
1254 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1255 target_alias=$ac_optarg ;;
1257 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1260 -version | --version | --versio | --versi | --vers | -V)
1261 ac_init_version=: ;;
1264 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267 as_fn_error $? "invalid package name: $ac_useropt"
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1277 eval with_$ac_useropt=\$ac_optarg ;;
1279 -without-* | --without-*)
1280 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 as_fn_error $? "invalid package name: $ac_useropt"
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1293 eval with_$ac_useropt=no ;;
1296 # Obsolete; use --with-x.
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304 x_includes=$ac_optarg ;;
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311 x_libraries=$ac_optarg ;;
1313 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1314 Try \`$0 --help' for more information"
1318 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319 # Reject names that are not valid shell variable names.
1320 case $ac_envvar in #(
1321 '' | [0-9]* | *[!_$as_cr_alnum]* )
1322 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1324 eval $ac_envvar=\$ac_optarg
1325 export $ac_envvar ;;
1328 # FIXME: should be removed in autoconf 3.0.
1329 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1338 if test -n "$ac_prev"; then
1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340 as_fn_error $? "missing argument to $ac_option"
1343 if test -n "$ac_unrecognized_opts"; then
1344 case $enable_option_checking in
1346 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1347 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1351 # Check all directory arguments for consistency.
1352 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1353 datadir sysconfdir sharedstatedir localstatedir includedir \
1354 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1355 libdir localedir mandir
1357 eval ac_val=\$$ac_var
1358 # Remove trailing slashes.
1361 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1362 eval $ac_var=\$ac_val;;
1364 # Be sure to have absolute directory names.
1366 [\\/$]* | ?:[\\/]* ) continue;;
1367 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1369 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1372 # There might be people who depend on the old broken behavior: `$host'
1373 # used to hold the argument of --host etc.
1374 # FIXME: To remove some day.
1377 target=$target_alias
1379 # FIXME: To remove some day.
1380 if test "x$host_alias" != x; then
1381 if test "x$build_alias" = x; then
1382 cross_compiling=maybe
1383 elif test "x$build_alias" != "x$host_alias"; then
1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391 test "$silent" = yes && exec 6>/dev/null
1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di=`ls -di .` &&
1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397 as_fn_error $? "working directory cannot be determined"
1398 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1399 as_fn_error $? "pwd does not report name of working directory"
1402 # Find the source files, if location was not specified.
1403 if test -z "$srcdir"; then
1404 ac_srcdir_defaulted=yes
1405 # Try the directory containing this script, then the parent directory.
1406 ac_confdir=`$as_dirname -- "$as_myself" ||
1407 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1408 X"$as_myself" : 'X\(//\)[^/]' \| \
1409 X"$as_myself" : 'X\(//\)$' \| \
1410 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1411 $as_echo X"$as_myself" |
1412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430 if test ! -r "$srcdir/$ac_unique_file"; then
1434 ac_srcdir_defaulted=no
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1437 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1438 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1440 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1442 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1444 # When building in place, set srcdir=.
1445 if test "$ac_abs_confdir" = "$ac_pwd"; then
1448 # Remove unnecessary trailing slashes from srcdir.
1449 # Double slashes in file names in object file debugging info
1450 # mess up M-x gdb in Emacs.
1452 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1454 for ac_var in $ac_precious_vars; do
1455 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_env_${ac_var}_value=\$${ac_var}
1457 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1458 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1462 # Report the --help message.
1464 if test "$ac_init_help" = "long"; then
1465 # Omit some internal or obsolete options to make the list less imposing.
1466 # This message is too long to be a string in the A/UX 3.1 sh.
1468 \`configure' configures Quagga 1.2.4 to adapt to many kinds of systems.
1470 Usage: $0 [OPTION]... [VAR=VALUE]...
1472 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1473 VAR=VALUE. See below for descriptions of some of the useful variables.
1475 Defaults for the options are specified in brackets.
1478 -h, --help display this help and exit
1479 --help=short display options specific to this package
1480 --help=recursive display the short help of all the included packages
1481 -V, --version display version information and exit
1482 -q, --quiet, --silent do not print \`checking ...' messages
1483 --cache-file=FILE cache test results in FILE [disabled]
1484 -C, --config-cache alias for \`--cache-file=config.cache'
1485 -n, --no-create do not create output files
1486 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1488 Installation directories:
1489 --prefix=PREFIX install architecture-independent files in PREFIX
1490 [$ac_default_prefix]
1491 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1494 By default, \`make install' will install all the files in
1495 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1496 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1497 for instance \`--prefix=\$HOME'.
1499 For better control, use the options below.
1501 Fine tuning of the installation directories:
1502 --bindir=DIR user executables [EPREFIX/bin]
1503 --sbindir=DIR system admin executables [EPREFIX/sbin]
1504 --libexecdir=DIR program executables [EPREFIX/libexec]
1505 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1506 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1507 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1508 --libdir=DIR object code libraries [EPREFIX/lib]
1509 --includedir=DIR C header files [PREFIX/include]
1510 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1511 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1512 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1513 --infodir=DIR info documentation [DATAROOTDIR/info]
1514 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1515 --mandir=DIR man documentation [DATAROOTDIR/man]
1516 --docdir=DIR documentation root [DATAROOTDIR/doc/quagga]
1517 --htmldir=DIR html documentation [DOCDIR]
1518 --dvidir=DIR dvi documentation [DOCDIR]
1519 --pdfdir=DIR pdf documentation [DOCDIR]
1520 --psdir=DIR ps documentation [DOCDIR]
1526 --program-prefix=PREFIX prepend PREFIX to installed program names
1527 --program-suffix=SUFFIX append SUFFIX to installed program names
1528 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1531 --build=BUILD configure for building on BUILD [guessed]
1532 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1533 --target=TARGET configure for building compilers for TARGET [HOST]
1537 if test -n "$ac_init_help"; then
1538 case $ac_init_help in
1539 short | recursive ) echo "Configuration of Quagga 1.2.4:";;
1544 --disable-option-checking ignore unrecognized --enable/--with options
1545 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1546 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1547 --enable-silent-rules less verbose build output (undo: "make V=1")
1548 --disable-silent-rules verbose build output (undo: "make V=0")
1549 --enable-exampledir specify alternate directory for examples
1550 --enable-pkgsrcrcdir specify directory for rc.d scripts
1551 --enable-dependency-tracking
1552 do not reject slow dependency extractors
1553 --disable-dependency-tracking
1554 speeds up one-time build
1555 --enable-shared[=PKGS] build shared libraries [default=yes]
1556 --enable-static[=PKGS] build static libraries [default=yes]
1557 --enable-fast-install[=PKGS]
1558 optimize for fast installation [default=yes]
1559 --disable-libtool-lock avoid locking (might break parallel builds)
1560 --disable-vtysh do not build integrated vty shell for Quagga
1561 --disable-doc do not build docs
1562 --disable-zebra do not build zebra daemon
1563 --disable-bgpd do not build bgpd
1564 --disable-ripd do not build ripd
1565 --disable-ripngd do not build ripngd
1566 --disable-ospfd do not build ospfd
1567 --disable-ospf6d do not build ospf6d
1568 --disable-nhrpd do not build nhrpd
1569 --disable-watchquagga do not build watchquagga
1570 --disable-isisd do not build isisd
1571 --disable-pimd do not build pimd
1572 --disable-bgp-announce, turn off BGP route announcement
1573 --enable-snmp=ARG enable SNMP support (smux or agentx)
1574 --enable-tcp-zebra enable TCP/IP socket connection between zebra and
1576 --disable-ospfapi do not build OSPFAPI to access the OSPF LSA Database
1577 --disable-ospfclient do not build OSPFAPI client for OSPFAPI, (this is
1578 the default if --disable-ospfapi is set)
1579 --enable-multipath=ARG enable multipath function, ARG must be digit
1580 --enable-user=USER user to run Quagga suite as (default quagga)
1581 --enable-group=GROUP group to run Quagga suite as (default quagga)
1582 --enable-vty-group=ARG set vty sockets to have specified group as owner
1583 --enable-configfile-mask=ARG
1584 set mask for config files
1585 --enable-logfile-mask=ARG
1586 set mask for log files
1587 --disable-rtadv disable IPV6 router advertisement feature
1588 --enable-irdp enable IRDP server support in zebra
1589 --enable-isis-topology enable IS-IS topology generator
1590 --disable-capabilities disable using POSIX capabilities
1591 --disable-rusage disable using getrusage
1592 --enable-gcc-ultra-verbose
1593 enable ultra verbose GCC warnings
1594 --enable-linux24-tcp-md5
1595 enable support for old, Linux-2.4 RFC2385 patch
1596 --enable-gcc-rdynamic enable linking with -rdynamic for better backtraces
1598 --disable-backtrace, disable crash backtraces (default autodetect)
1599 --disable-time-check disable slow thread warning messages
1600 --enable-pcreposix enable using PCRE Posix libs for regex functions
1601 --enable-fpm enable Forwarding Plane Manager support
1602 --enable-werror enable -Werror (recommended for developers only)
1603 --enable-protobuf Enable experimental protobuf support
1604 --enable-dev-build build for development
1605 --disable-largefile omit support for large files
1608 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1609 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1610 --with-cflags Set CFLAGS for use in compilation.
1611 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1613 --with-aix-soname=aix|svr4|both
1614 shared library versioning (aka "SONAME") variant to
1615 provide on AIX, [default=aix].
1616 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1617 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1618 compiler's sysroot if not specified).
1619 --with-pkg-extra-version=VER
1620 add extra version field, for packagers/distributions
1621 --with-pkg-git-version add git information to MOTD and build version string
1622 --with-libpam use libpam for PAM support in vtysh
1624 Some influential environment variables:
1626 CC C compiler command
1627 CFLAGS C compiler flags
1628 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1629 nonstandard directory <lib dir>
1630 LIBS libraries to pass to the linker, e.g. -l<library>
1631 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1632 you have headers in a nonstandard directory <include dir>
1634 PKG_CONFIG path to pkg-config utility
1636 directories to add to pkg-config's search path
1638 path overriding pkg-config's built-in search path
1640 User-defined run-time library search path.
1642 C compiler flags for PROTOBUF_C, overriding pkg-config
1644 linker flags for PROTOBUF_C, overriding pkg-config
1646 C compiler flags for CARES, overriding pkg-config
1647 CARES_LIBS linker flags for CARES, overriding pkg-config
1649 Use these variables to override the choices made by `configure' or to help
1650 it to find libraries and programs with nonstandard names/locations.
1652 Report bugs to <https://bugzilla.quagga.net>.
1657 if test "$ac_init_help" = "recursive"; then
1658 # If there are subdirs, report their specific --help.
1659 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1660 test -d "$ac_dir" ||
1661 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1666 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1669 # A ".." for each directory in $ac_dir_suffix.
1670 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1671 case $ac_top_builddir_sub in
1672 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1673 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1676 ac_abs_top_builddir=$ac_pwd
1677 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1678 # for backward compatibility:
1679 ac_top_builddir=$ac_top_build_prefix
1682 .) # We are building in place.
1684 ac_top_srcdir=$ac_top_builddir_sub
1685 ac_abs_top_srcdir=$ac_pwd ;;
1686 [\\/]* | ?:[\\/]* ) # Absolute name.
1687 ac_srcdir=$srcdir$ac_dir_suffix;
1688 ac_top_srcdir=$srcdir
1689 ac_abs_top_srcdir=$srcdir ;;
1691 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1692 ac_top_srcdir=$ac_top_build_prefix$srcdir
1693 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1695 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1697 cd "$ac_dir" || { ac_status=$?; continue; }
1698 # Check for guested configure.
1699 if test -f "$ac_srcdir/configure.gnu"; then
1701 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1702 elif test -f "$ac_srcdir/configure"; then
1704 $SHELL "$ac_srcdir/configure" --help=recursive
1706 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1708 cd "$ac_pwd" || { ac_status=$?; break; }
1712 test -n "$ac_init_help" && exit $ac_status
1713 if $ac_init_version; then
1715 Quagga configure 1.2.4
1716 generated by GNU Autoconf 2.69
1718 Copyright (C) 2012 Free Software Foundation, Inc.
1719 This configure script is free software; the Free Software Foundation
1720 gives unlimited permission to copy, distribute and modify it.
1725 ## ------------------------ ##
1726 ## Autoconf initialization. ##
1727 ## ------------------------ ##
1729 # ac_fn_c_try_compile LINENO
1730 # --------------------------
1731 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_c_try_compile ()
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext
1736 if { { ac_try="$ac_compile"
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_compile") 2>conftest.err
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest.$ac_objext; then :
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1765 } # ac_fn_c_try_compile
1767 # ac_fn_c_try_cpp LINENO
1768 # ----------------------
1769 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 if { { ac_try="$ac_cpp conftest.$ac_ext"
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1782 if test -s conftest.err; then
1783 grep -v '^ *+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } > conftest.i && {
1789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1790 test ! -s conftest.err
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1804 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1807 # the include files in INCLUDES and setting the cache variable VAR
1809 ac_fn_c_check_header_mongrel ()
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 if eval \${$3+:} false; then :
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \${$3+:} false; then :
1816 $as_echo_n "(cached) " >&6
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1822 # Is the header compilable?
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1824 $as_echo_n "checking $2 usability... " >&6; }
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1830 if ac_fn_c_try_compile "$LINENO"; then :
1831 ac_header_compiler=yes
1833 ac_header_compiler=no
1835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1837 $as_echo "$ac_header_compiler" >&6; }
1839 # Is the header present?
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1841 $as_echo_n "checking $2 presence... " >&6; }
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1846 if ac_fn_c_try_cpp "$LINENO"; then :
1847 ac_header_preproc=yes
1849 ac_header_preproc=no
1851 rm -f conftest.err conftest.i conftest.$ac_ext
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1853 $as_echo "$ac_header_preproc" >&6; }
1855 # So? What about this header?
1856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1859 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1865 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1867 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1869 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1871 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874 ( $as_echo "## ------------------------------------------ ##
1875 ## Report this to https://bugzilla.quagga.net ##
1876 ## ------------------------------------------ ##"
1877 ) | sed "s/^/$as_me: WARNING: /" >&2
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if eval \${$3+:} false; then :
1883 $as_echo_n "(cached) " >&6
1885 eval "$3=\$ac_header_compiler"
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 } # ac_fn_c_check_header_mongrel
1895 # ac_fn_c_try_run LINENO
1896 # ----------------------
1897 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1898 # that executables *can* be run.
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 if { { ac_try="$ac_link"
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_link") 2>&5
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1913 { { case "(($ac_try" in
1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915 *) ac_try_echo=$ac_try;;
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919 (eval "$ac_try") 2>&5
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; }; }; then :
1925 $as_echo "$as_me: program exited with status $ac_status" >&5
1926 $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1929 ac_retval=$ac_status
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
1937 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1938 # -------------------------------------------------------
1939 # Tests whether HEADER exists and can be compiled using the include files in
1940 # INCLUDES, setting the cache variable VAR accordingly.
1941 ac_fn_c_check_header_compile ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \${$3+:} false; then :
1947 $as_echo_n "(cached) " >&6
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1954 if ac_fn_c_try_compile "$LINENO"; then :
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 } # ac_fn_c_check_header_compile
1968 # ac_fn_c_try_link LINENO
1969 # -----------------------
1970 # Try to link conftest.$ac_ext, and return whether this succeeded.
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 rm -f conftest.$ac_objext conftest$ac_exeext
1975 if { { ac_try="$ac_link"
1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978 *) ac_try_echo=$ac_try;;
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_link") 2>conftest.err
1984 if test -s conftest.err; then
1985 grep -v '^ *+' conftest.err >conftest.er1
1986 cat conftest.er1 >&5
1987 mv -f conftest.er1 conftest.err
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && {
1991 test -z "$ac_c_werror_flag" ||
1992 test ! -s conftest.err
1993 } && test -s conftest$ac_exeext && {
1994 test "$cross_compiling" = yes ||
1995 test -x conftest$ac_exeext
1999 $as_echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2004 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2005 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2006 # interfere with the next link command; also delete a directory that is
2007 # left behind by Apple's compiler. We do this before executing the actions.
2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 as_fn_set_status $ac_retval
2012 } # ac_fn_c_try_link
2014 # ac_fn_c_check_func LINENO FUNC VAR
2015 # ----------------------------------
2016 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2017 ac_fn_c_check_func ()
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if eval \${$3+:} false; then :
2023 $as_echo_n "(cached) " >&6
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2027 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2029 #define $2 innocuous_$2
2031 /* System header to define __stub macros and hopefully few prototypes,
2032 which can conflict with char $2 (); below.
2033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2034 <limits.h> exists even on freestanding compilers. */
2037 # include <limits.h>
2039 # include <assert.h>
2044 /* Override any GCC internal prototype to avoid an error.
2045 Use char because int might match the return type of a GCC
2046 builtin and then its argument prototype would still apply. */
2051 /* The GNU C library defines this for functions which it implements
2052 to always fail with ENOSYS. Some functions are actually named
2053 something starting with __ and the normal name is an alias. */
2054 #if defined __stub_$2 || defined __stub___$2
2066 if ac_fn_c_try_link "$LINENO"; then :
2071 rm -f core conftest.err conftest.$ac_objext \
2072 conftest$ac_exeext conftest.$ac_ext
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 $as_echo "$ac_res" >&6; }
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079 } # ac_fn_c_check_func
2081 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2082 # -------------------------------------------
2083 # Tests whether TYPE exists after having included INCLUDES, setting cache
2084 # variable VAR accordingly.
2085 ac_fn_c_check_type ()
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089 $as_echo_n "checking for $2... " >&6; }
2090 if eval \${$3+:} false; then :
2091 $as_echo_n "(cached) " >&6
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2106 if ac_fn_c_try_compile "$LINENO"; then :
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2119 if ac_fn_c_try_compile "$LINENO"; then :
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_c_check_type
2135 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2136 # ----------------------------------------------------
2137 # Tries to find if the field MEMBER exists in type AGGR, after including
2138 # INCLUDES, setting cache variable VAR accordingly.
2139 ac_fn_c_check_member ()
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2143 $as_echo_n "checking for $2.$3... " >&6; }
2144 if eval \${$4+:} false; then :
2145 $as_echo_n "(cached) " >&6
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2160 if ac_fn_c_try_compile "$LINENO"; then :
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2170 if (sizeof ac_aggr.$3)
2176 if ac_fn_c_try_compile "$LINENO"; then :
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2187 $as_echo "$ac_res" >&6; }
2188 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190 } # ac_fn_c_check_member
2192 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2193 # ---------------------------------------------
2194 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2196 ac_fn_c_check_decl ()
2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199 as_decl_name=`echo $2|sed 's/ *(.*//'`
2200 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2202 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2203 if eval \${$3+:} false; then :
2204 $as_echo_n "(cached) " >&6
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2212 #ifndef $as_decl_name
2214 (void) $as_decl_use;
2216 (void) $as_decl_name;
2224 if ac_fn_c_try_compile "$LINENO"; then :
2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233 $as_echo "$ac_res" >&6; }
2234 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2236 } # ac_fn_c_check_decl
2237 cat >config.log <<_ACEOF
2238 This file contains any messages produced by compilers while
2239 running configure, to aid debugging if configure makes a mistake.
2241 It was created by Quagga $as_me 1.2.4, which was
2242 generated by GNU Autoconf 2.69. Invocation command line was
2254 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2255 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2256 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2257 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2258 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2260 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2261 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2263 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2264 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2265 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2266 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2267 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2268 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2269 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 test -z "$as_dir" && as_dir=.
2278 $as_echo "PATH: $as_dir"
2294 # Keep a trace of the command line.
2295 # Strip out --no-create and --no-recursion so they do not pile up.
2296 # Strip out --silent because we don't want to record it for future runs.
2297 # Also quote any args containing shell meta-characters.
2298 # Make two passes to allow for proper duplicate-argument suppression.
2302 ac_must_keep_next=false
2308 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2310 | -silent | --silent | --silen | --sile | --sil)
2313 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2316 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2318 as_fn_append ac_configure_args1 " '$ac_arg'"
2319 if test $ac_must_keep_next = true; then
2320 ac_must_keep_next=false # Got value, back to normal.
2323 *=* | --config-cache | -C | -disable-* | --disable-* \
2324 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2325 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2326 | -with-* | --with-* | -without-* | --without-* | --x)
2327 case "$ac_configure_args0 " in
2328 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2331 -* ) ac_must_keep_next=true ;;
2334 as_fn_append ac_configure_args " '$ac_arg'"
2339 { ac_configure_args0=; unset ac_configure_args0;}
2340 { ac_configure_args1=; unset ac_configure_args1;}
2342 # When interrupted or exit'd, cleanup temporary files, and complete
2343 # config.log. We remove comments because anyway the quotes in there
2344 # would cause problems or look ugly.
2345 # WARNING: Use '\'' to represent an apostrophe within the trap.
2346 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2347 trap 'exit_status=$?
2348 # Save into config.log some information that might help in debugging.
2352 $as_echo "## ---------------- ##
2353 ## Cache variables. ##
2354 ## ---------------- ##"
2356 # The following way of writing the cache mishandles newlines in values,
2358 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2359 eval ac_val=\$$ac_var
2363 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2364 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2367 _ | IFS | as_nl) ;; #(
2368 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2369 *) { eval $ac_var=; unset $ac_var;} ;;
2374 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2375 *${as_nl}ac_space=\ *)
2377 "s/'\''/'\''\\\\'\'''\''/g;
2378 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2381 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2388 $as_echo "## ----------------- ##
2389 ## Output variables. ##
2390 ## ----------------- ##"
2392 for ac_var in $ac_subst_vars
2394 eval ac_val=\$$ac_var
2396 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2398 $as_echo "$ac_var='\''$ac_val'\''"
2402 if test -n "$ac_subst_files"; then
2403 $as_echo "## ------------------- ##
2404 ## File substitutions. ##
2405 ## ------------------- ##"
2407 for ac_var in $ac_subst_files
2409 eval ac_val=\$$ac_var
2411 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2413 $as_echo "$ac_var='\''$ac_val'\''"
2418 if test -s confdefs.h; then
2419 $as_echo "## ----------- ##
2426 test "$ac_signal" != 0 &&
2427 $as_echo "$as_me: caught signal $ac_signal"
2428 $as_echo "$as_me: exit $exit_status"
2430 rm -f core *.core core.conftest.* &&
2431 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2434 for ac_signal in 1 2 13 15; do
2435 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2439 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2440 rm -f -r conftest* confdefs.h
2442 $as_echo "/* confdefs.h */" > confdefs.h
2444 # Predefined preprocessor variables.
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE_NAME "$PACKAGE_NAME"
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2454 cat >>confdefs.h <<_ACEOF
2455 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2458 cat >>confdefs.h <<_ACEOF
2459 #define PACKAGE_STRING "$PACKAGE_STRING"
2462 cat >>confdefs.h <<_ACEOF
2463 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_URL "$PACKAGE_URL"
2471 # Let the site file select an alternate cache file if it wants to.
2472 # Prefer an explicitly selected file to automatically selected ones.
2475 if test -n "$CONFIG_SITE"; then
2476 # We do not want a PATH search for config.site.
2477 case $CONFIG_SITE in #((
2478 -*) ac_site_file1=./$CONFIG_SITE;;
2479 */*) ac_site_file1=$CONFIG_SITE;;
2480 *) ac_site_file1=./$CONFIG_SITE;;
2482 elif test "x$prefix" != xNONE; then
2483 ac_site_file1=$prefix/share/config.site
2484 ac_site_file2=$prefix/etc/config.site
2486 ac_site_file1=$ac_default_prefix/share/config.site
2487 ac_site_file2=$ac_default_prefix/etc/config.site
2489 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2491 test "x$ac_site_file" = xNONE && continue
2492 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2494 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2495 sed 's/^/| /' "$ac_site_file" >&5
2497 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2499 as_fn_error $? "failed to load site script $ac_site_file
2500 See \`config.log' for more details" "$LINENO" 5; }
2504 if test -r "$cache_file"; then
2505 # Some versions of bash will fail to source /dev/null (special files
2506 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2507 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2509 $as_echo "$as_me: loading cache $cache_file" >&6;}
2511 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2512 *) . "./$cache_file";;
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2517 $as_echo "$as_me: creating cache $cache_file" >&6;}
2521 as_fn_append ac_header_list " sys/time.h"
2522 as_fn_append ac_header_list " unistd.h"
2523 as_fn_append ac_func_list " alarm"
2524 # Check that the precious variables saved in the cache have kept the same
2526 ac_cache_corrupted=false
2527 for ac_var in $ac_precious_vars; do
2528 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2529 eval ac_new_set=\$ac_env_${ac_var}_set
2530 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2531 eval ac_new_val=\$ac_env_${ac_var}_value
2532 case $ac_old_set,$ac_new_set in
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2535 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2536 ac_cache_corrupted=: ;;
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2539 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2540 ac_cache_corrupted=: ;;
2543 if test "x$ac_old_val" != "x$ac_new_val"; then
2544 # differences in whitespace do not lead to failure.
2545 ac_old_val_w=`echo x $ac_old_val`
2546 ac_new_val_w=`echo x $ac_new_val`
2547 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2549 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2550 ac_cache_corrupted=:
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2553 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2554 eval $ac_var=\$ac_old_val
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2557 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2559 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2562 # Pass precious variables to config.status.
2563 if test "$ac_new_set" = set; then
2565 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2566 *) ac_arg=$ac_var=$ac_new_val ;;
2568 case " $ac_configure_args " in
2569 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2570 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2574 if $ac_cache_corrupted; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2578 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2579 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2581 ## -------------------- ##
2582 ## Main body of script. ##
2583 ## -------------------- ##
2586 ac_cpp='$CPP $CPPFLAGS'
2587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2598 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2599 if test -f "$ac_dir/install-sh"; then
2601 ac_install_sh="$ac_aux_dir/install-sh -c"
2603 elif test -f "$ac_dir/install.sh"; then
2605 ac_install_sh="$ac_aux_dir/install.sh -c"
2607 elif test -f "$ac_dir/shtool"; then
2609 ac_install_sh="$ac_aux_dir/shtool install -c"
2613 if test -z "$ac_aux_dir"; then
2614 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2617 # These three variables are undocumented and unsupported,
2618 # and are intended to be withdrawn in a future Autoconf release.
2619 # They can cause serious problems if a builder's source tree is in a directory
2620 # whose full name contains unusual characters.
2621 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2622 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2623 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2626 # Make sure we can run config.sub.
2627 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2628 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2631 $as_echo_n "checking build system type... " >&6; }
2632 if ${ac_cv_build+:} false; then :
2633 $as_echo_n "(cached) " >&6
2635 ac_build_alias=$build_alias
2636 test "x$ac_build_alias" = x &&
2637 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2638 test "x$ac_build_alias" = x &&
2639 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2640 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2641 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2645 $as_echo "$ac_cv_build" >&6; }
2646 case $ac_cv_build in
2648 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2651 ac_save_IFS=$IFS; IFS='-'
2657 # Remember, the first character of IFS is used to create $*,
2658 # except with old shells:
2661 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2665 $as_echo_n "checking host system type... " >&6; }
2666 if ${ac_cv_host+:} false; then :
2667 $as_echo_n "(cached) " >&6
2669 if test "x$host_alias" = x; then
2670 ac_cv_host=$ac_cv_build
2672 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2673 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2678 $as_echo "$ac_cv_host" >&6; }
2681 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2684 ac_save_IFS=$IFS; IFS='-'
2690 # Remember, the first character of IFS is used to create $*,
2691 # except with old shells:
2694 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2698 $as_echo_n "checking target system type... " >&6; }
2699 if ${ac_cv_target+:} false; then :
2700 $as_echo_n "(cached) " >&6
2702 if test "x$target_alias" = x; then
2703 ac_cv_target=$ac_cv_host
2705 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2706 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2711 $as_echo "$ac_cv_target" >&6; }
2712 case $ac_cv_target in
2714 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2716 target=$ac_cv_target
2717 ac_save_IFS=$IFS; IFS='-'
2723 # Remember, the first character of IFS is used to create $*,
2724 # except with old shells:
2727 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2730 # The aliases save the names the user supplied, while $host etc.
2731 # will get canonicalized.
2732 test -n "$target_alias" &&
2733 test "$program_prefix$program_suffix$program_transform_name" = \
2735 program_prefix=${target_alias}-
2737 # Disable portability warnings -- our automake code (in particular
2738 # common.am) uses some constructs specific to gmake.
2739 am__api_version='1.15'
2741 # Find a good install program. We prefer a C program (faster),
2742 # so one script is as good as another. But avoid the broken or
2743 # incompatible versions:
2744 # SysV /etc/install, /usr/sbin/install
2745 # SunOS /usr/etc/install
2746 # IRIX /sbin/install
2748 # AmigaOS /C/install, which installs bootblocks on floppy discs
2749 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2750 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2751 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2752 # OS/2's system install, which has a completely different semantic
2753 # ./install, which can be erroneously created by make from ./install.sh.
2754 # Reject install programs that cannot install multiple files.
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2756 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2757 if test -z "$INSTALL"; then
2758 if ${ac_cv_path_install+:} false; then :
2759 $as_echo_n "(cached) " >&6
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 test -z "$as_dir" && as_dir=.
2766 # Account for people who put trailing slashes in PATH elements.
2767 case $as_dir/ in #((
2768 ./ | .// | /[cC]/* | \
2769 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2770 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2773 # OSF1 and SCO ODT 3.0 have their own names for install.
2774 # Don't use installbsd from OSF since it installs stuff as root
2776 for ac_prog in ginstall scoinst install; do
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2779 if test $ac_prog = install &&
2780 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2781 # AIX install. It has an incompatible calling convention.
2783 elif test $ac_prog = install &&
2784 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2785 # program-specific install script used by HP pwplus--don't use.
2788 rm -rf conftest.one conftest.two conftest.dir
2789 echo one > conftest.one
2790 echo two > conftest.two
2792 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2793 test -s conftest.one && test -s conftest.two &&
2794 test -s conftest.dir/conftest.one &&
2795 test -s conftest.dir/conftest.two
2797 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2810 rm -rf conftest.one conftest.two conftest.dir
2813 if test "${ac_cv_path_install+set}" = set; then
2814 INSTALL=$ac_cv_path_install
2816 # As a last resort, use the slow shell script. Don't cache a
2817 # value for INSTALL within a source directory, because that will
2818 # break other packages using the cache if that directory is
2819 # removed, or if the value is a relative name.
2820 INSTALL=$ac_install_sh
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2824 $as_echo "$INSTALL" >&6; }
2826 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2827 # It thinks the first close brace ends the variable substitution.
2828 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2830 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2832 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2835 $as_echo_n "checking whether build environment is sane... " >&6; }
2836 # Reject unsafe characters in $srcdir or the absolute working directory
2837 # name. Accept space and tab only in the latter.
2841 *[\\\"\#\$\&\'\`$am_lf]*)
2842 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2845 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2846 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2849 # Do 'set' in a subshell so we don't clobber the current shell's
2850 # arguments. Must try -L first in case configure is actually a
2851 # symlink; some systems play weird games with the mod time of symlinks
2852 # (eg FreeBSD returns the mod time of the symlink's containing
2856 for am_try in 1 2; do
2857 echo "timestamp, slept: $am_has_slept" > conftest.file
2858 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2859 if test "$*" = "X"; then
2861 set X `ls -t "$srcdir/configure" conftest.file`
2863 if test "$*" != "X $srcdir/configure conftest.file" \
2864 && test "$*" != "X conftest.file $srcdir/configure"; then
2866 # If neither matched, then we have a broken ls. This can happen
2867 # if, for instance, CONFIG_SHELL is bash and it inherits a
2868 # broken ls alias from the environment. This has actually
2869 # happened. Such a system could not be considered "sane".
2870 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2871 alias in your environment" "$LINENO" 5
2873 if test "$2" = conftest.file || test $am_try -eq 2; then
2880 test "$2" = conftest.file
2886 as_fn_error $? "newly created file is older than distributed files!
2887 Check your system clock" "$LINENO" 5
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2890 $as_echo "yes" >&6; }
2891 # If we didn't sleep, we still need to ensure time stamps of config.status and
2892 # generated files are strictly newer.
2894 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2901 test "$program_prefix" != NONE &&
2902 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2903 # Use a double $ so make ignores it.
2904 test "$program_suffix" != NONE &&
2905 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2906 # Double any \ or $.
2907 # By default was `s,x,x', remove it if useless.
2908 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2909 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2911 # Expand $ac_aux_dir to an absolute path.
2912 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2914 if test x"${MISSING+set}" != xset; then
2917 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2919 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2922 # Use eval to expand $SHELL
2923 if eval "$MISSING --is-lightweight"; then
2924 am_missing_run="$MISSING "
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2928 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2931 if test x"${install_sh+set}" != xset; then
2934 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2936 install_sh="\${SHELL} $am_aux_dir/install-sh"
2940 # Installed binaries are usually stripped using 'strip' when the user
2941 # run "make install-strip". However 'strip' might not be the right
2942 # tool to use in cross-compilation environments, therefore Automake
2943 # will honor the 'STRIP' environment variable to overrule this program.
2944 if test "$cross_compiling" != no; then
2945 if test -n "$ac_tool_prefix"; then
2946 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2947 set dummy ${ac_tool_prefix}strip; ac_word=$2
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949 $as_echo_n "checking for $ac_word... " >&6; }
2950 if ${ac_cv_prog_STRIP+:} false; then :
2951 $as_echo_n "(cached) " >&6
2953 if test -n "$STRIP"; then
2954 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 STRIP=$ac_cv_prog_STRIP
2974 if test -n "$STRIP"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2976 $as_echo "$STRIP" >&6; }
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2984 if test -z "$ac_cv_prog_STRIP"; then
2986 # Extract the first word of "strip", so it can be a program name with args.
2987 set dummy strip; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2991 $as_echo_n "(cached) " >&6
2993 if test -n "$ac_ct_STRIP"; then
2994 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003 ac_cv_prog_ac_ct_STRIP="strip"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3014 if test -n "$ac_ct_STRIP"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3016 $as_echo "$ac_ct_STRIP" >&6; }
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3022 if test "x$ac_ct_STRIP" = x; then
3025 case $cross_compiling:$ac_tool_warned in
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3029 ac_tool_warned=yes ;;
3034 STRIP="$ac_cv_prog_STRIP"
3038 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3041 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3042 if test -z "$MKDIR_P"; then
3043 if ${ac_cv_path_mkdir+:} false; then :
3044 $as_echo_n "(cached) " >&6
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3050 test -z "$as_dir" && as_dir=.
3051 for ac_prog in mkdir gmkdir; do
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3054 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3055 'mkdir (GNU coreutils) '* | \
3056 'mkdir (coreutils) '* | \
3057 'mkdir (fileutils) '4.1*)
3058 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3068 test -d ./--version && rmdir ./--version
3069 if test "${ac_cv_path_mkdir+set}" = set; then
3070 MKDIR_P="$ac_cv_path_mkdir -p"
3072 # As a last resort, use the slow shell script. Don't cache a
3073 # value for MKDIR_P within a source directory, because that will
3074 # break other packages using the cache if that directory is
3075 # removed, or if the value is a relative name.
3076 MKDIR_P="$ac_install_sh -d"
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3080 $as_echo "$MKDIR_P" >&6; }
3082 for ac_prog in gawk mawk nawk awk
3084 # Extract the first word of "$ac_prog", so it can be a program name with args.
3085 set dummy $ac_prog; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if ${ac_cv_prog_AWK+:} false; then :
3089 $as_echo_n "(cached) " >&6
3091 if test -n "$AWK"; then
3092 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101 ac_cv_prog_AWK="$ac_prog"
3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 if test -n "$AWK"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3114 $as_echo "$AWK" >&6; }
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3121 test -n "$AWK" && break
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3125 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3127 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3128 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3129 $as_echo_n "(cached) " >&6
3131 cat >conftest.make <<\_ACEOF
3134 @echo '@@@%%%=$(MAKE)=@@@%%%'
3136 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3137 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3139 eval ac_cv_prog_make_${ac_make}_set=yes;;
3141 eval ac_cv_prog_make_${ac_make}_set=no;;
3145 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3147 $as_echo "yes" >&6; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 SET_MAKE="MAKE=${MAKE-make}"
3155 rm -rf .tst 2>/dev/null
3156 mkdir .tst 2>/dev/null
3157 if test -d .tst; then
3162 rmdir .tst 2>/dev/null
3164 # Check whether --enable-silent-rules was given.
3165 if test "${enable_silent_rules+set}" = set; then :
3166 enableval=$enable_silent_rules;
3169 case $enable_silent_rules in # (((
3170 yes) AM_DEFAULT_VERBOSITY=0;;
3171 no) AM_DEFAULT_VERBOSITY=1;;
3172 *) AM_DEFAULT_VERBOSITY=1;;
3174 am_make=${MAKE-make}
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3176 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3177 if ${am_cv_make_support_nested_variables+:} false; then :
3178 $as_echo_n "(cached) " >&6
3180 if $as_echo 'TRUE=$(BAR$(V))
3186 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3187 am_cv_make_support_nested_variables=yes
3189 am_cv_make_support_nested_variables=no
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3193 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3194 if test $am_cv_make_support_nested_variables = yes; then
3196 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3198 AM_V=$AM_DEFAULT_VERBOSITY
3199 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3203 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3204 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3205 # is not polluted with repeated "-I."
3206 am__isrc=' -I$(srcdir)'
3207 # test to see if srcdir already configured
3208 if test -f $srcdir/config.status; then
3209 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3213 # test whether we have cygpath
3214 if test -z "$CYGPATH_W"; then
3215 if (cygpath --version) >/dev/null 2>/dev/null; then
3216 CYGPATH_W='cygpath -w'
3223 # Define the identity of the package.
3228 cat >>confdefs.h <<_ACEOF
3229 #define PACKAGE "$PACKAGE"
3233 cat >>confdefs.h <<_ACEOF
3234 #define VERSION "$VERSION"
3237 # Some tools Automake needs.
3239 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3242 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3245 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3248 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3251 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3253 # For better backward compatibility. To be removed once Automake 1.9.x
3254 # dies out for good. For more background, see:
3255 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3256 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3257 mkdir_p='$(MKDIR_P)'
3259 # We need awk for the "check" target (and possibly the TAP driver). The
3260 # system "awk" is bad on some platforms.
3261 # Always define AMTAR for backward compatibility. Yes, it's still used
3262 # in the wild :-( We should find a proper way to deprecate it ...
3266 # We'll loop over all known methods to create a tar archive until one works.
3267 _am_tools='gnutar pax cpio none'
3269 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3276 # POSIX will say in a future version that running "rm -f" with no argument
3277 # is OK; and we want to be able to make that assumption in our Makefile
3278 # recipes. So use an aggressive probe to check that the usage we want is
3279 # actually supported "in the wild" to an acceptable degree.
3280 # See automake bug#10828.
3281 # To make any issue more visible, cause the running configure to be aborted
3282 # by default if the 'rm' program in use doesn't match our expectations; the
3283 # user can still override this though.
3284 if rm -f && rm -fr && rm -rf; then : OK; else
3288 Your 'rm' program seems unable to run without file operands specified
3289 on the command line, even when the '-f' option is present. This is contrary
3290 to the behaviour of most rm programs out there, and not conforming with
3291 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3293 Please tell bug-automake@gnu.org about your system, including the value
3294 of your $PATH and any error possibly output before this message. This
3295 can help us improve future automake versions.
3298 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3299 echo 'Configuration will proceed anyway, since you have set the' >&2
3300 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3304 Aborting the configuration process, to ensure you take notice of the issue.
3306 You can download and install GNU coreutils to get an 'rm' implementation
3307 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3309 If you want to complete the configuration process using your problematic
3310 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3311 to "yes", and re-run configure.
3314 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3320 # Check whether --enable-silent-rules was given.
3321 if test "${enable_silent_rules+set}" = set; then :
3322 enableval=$enable_silent_rules;
3325 case $enable_silent_rules in # (((
3326 yes) AM_DEFAULT_VERBOSITY=0;;
3327 no) AM_DEFAULT_VERBOSITY=1;;
3328 *) AM_DEFAULT_VERBOSITY=0;;
3330 am_make=${MAKE-make}
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3332 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3333 if ${am_cv_make_support_nested_variables+:} false; then :
3334 $as_echo_n "(cached) " >&6
3336 if $as_echo 'TRUE=$(BAR$(V))
3342 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3343 am_cv_make_support_nested_variables=yes
3345 am_cv_make_support_nested_variables=no
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3349 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3350 if test $am_cv_make_support_nested_variables = yes; then
3352 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3354 AM_V=$AM_DEFAULT_VERBOSITY
3355 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3359 ac_config_headers="$ac_config_headers config.h"
3362 # Extract the first word of "perl", so it can be a program name with args.
3363 set dummy perl; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if ${ac_cv_path_PERL+:} false; then :
3367 $as_echo_n "(cached) " >&6
3371 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 PERL=$ac_cv_path_PERL
3393 if test -n "$PERL"; then
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
3395 $as_echo "$PERL" >&6; }
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3402 # Extract the first word of "gawk", so it can be a program name with args.
3403 set dummy gawk; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if ${ac_cv_prog_GAWK+:} false; then :
3407 $as_echo_n "(cached) " >&6
3409 if test -n "$GAWK"; then
3410 ac_cv_prog_GAWK="$GAWK" # Let the user override the test.
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 test -z "$as_dir" && as_dir=.
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3419 ac_cv_prog_GAWK="gawk"
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 test -z "$ac_cv_prog_GAWK" && ac_cv_prog_GAWK="not-in-PATH"
3430 GAWK=$ac_cv_prog_GAWK
3431 if test -n "$GAWK"; then
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAWK" >&5
3433 $as_echo "$GAWK" >&6; }
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
3440 if test "x$GAWK" = "xnot-in-PATH" ; then
3441 as_fn_error $? "GNU awk is required for lib/memtype.h made by memtypes.awk.
3442 BSD awk complains: awk: gensub doesn't support backreferences (subst \"\1\") " "$LINENO" 5
3446 exampledir=${sysconfdir}
3447 # Check whether --enable-exampledir was given.
3448 if test "${enable_exampledir+set}" = set; then :
3449 enableval=$enable_exampledir; exampledir="$enableval"
3456 # Check whether --enable-pkgsrcrcdir was given.
3457 if test "${enable_pkgsrcrcdir+set}" = set; then :
3458 enableval=$enable_pkgsrcrcdir; pkgsrcrcdir="$enableval"; pkgsrcdir="pkgsrc"
3465 # Check whether --with-cflags was given.
3466 if test "${with_cflags+set}" = set; then :
3467 withval=$with_cflags;
3470 if test "x$with_cflags" != "x" ; then
3471 CFLAGS="$with_cflags" ; cflags_specified=yes ;
3472 elif test -n "$CFLAGS" ; then
3473 cflags_specified=yes ;
3477 ac_cpp='$CPP $CPPFLAGS'
3478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487 if test -n "$ac_tool_prefix"; then
3488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3489 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491 $as_echo_n "checking for $ac_word... " >&6; }
3492 if ${ac_cv_prog_CC+:} false; then :
3493 $as_echo_n "(cached) " >&6
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC="$CC" # Let the user override the test.
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3516 if test -n "$CC"; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518 $as_echo "$CC" >&6; }
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3526 if test -z "$ac_cv_prog_CC"; then
3528 # Extract the first word of "gcc", so it can be a program name with args.
3529 set dummy gcc; ac_word=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3533 $as_echo_n "(cached) " >&6
3535 if test -n "$ac_ct_CC"; then
3536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 test -z "$as_dir" && as_dir=.
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3545 ac_cv_prog_ac_ct_CC="gcc"
3546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3556 if test -n "$ac_ct_CC"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3558 $as_echo "$ac_ct_CC" >&6; }
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3564 if test "x$ac_ct_CC" = x; then
3567 case $cross_compiling:$ac_tool_warned in
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3571 ac_tool_warned=yes ;;
3579 if test -z "$CC"; then
3580 if test -n "$ac_tool_prefix"; then
3581 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3582 set dummy ${ac_tool_prefix}cc; ac_word=$2
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 $as_echo_n "checking for $ac_word... " >&6; }
3585 if ${ac_cv_prog_CC+:} false; then :
3586 $as_echo_n "(cached) " >&6
3588 if test -n "$CC"; then
3589 ac_cv_prog_CC="$CC" # Let the user override the test.
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_prog_CC="${ac_tool_prefix}cc"
3599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 if test -n "$CC"; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3611 $as_echo "$CC" >&6; }
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3620 if test -z "$CC"; then
3621 # Extract the first word of "cc", so it can be a program name with args.
3622 set dummy cc; ac_word=$2
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624 $as_echo_n "checking for $ac_word... " >&6; }
3625 if ${ac_cv_prog_CC+:} false; then :
3626 $as_echo_n "(cached) " >&6
3628 if test -n "$CC"; then
3629 ac_cv_prog_CC="$CC" # Let the user override the test.
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3640 ac_prog_rejected=yes
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 if test $ac_prog_rejected = yes; then
3652 # We found a bogon in the path, so make sure we never use it.
3653 set dummy $ac_cv_prog_CC
3655 if test $# != 0; then
3656 # We chose a different compiler from the bogus one.
3657 # However, it has the same basename, so the bogon will be chosen
3658 # first if we set CC to just the basename; use the full file name.
3660 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3666 if test -n "$CC"; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3668 $as_echo "$CC" >&6; }
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3676 if test -z "$CC"; then
3677 if test -n "$ac_tool_prefix"; then
3678 for ac_prog in cl.exe
3680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683 $as_echo_n "checking for $ac_word... " >&6; }
3684 if ${ac_cv_prog_CC+:} false; then :
3685 $as_echo_n "(cached) " >&6
3687 if test -n "$CC"; then
3688 ac_cv_prog_CC="$CC" # Let the user override the test.
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 test -z "$as_dir" && as_dir=.
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3697 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 if test -n "$CC"; then
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3710 $as_echo "$CC" >&6; }
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713 $as_echo "no" >&6; }
3717 test -n "$CC" && break
3720 if test -z "$CC"; then
3722 for ac_prog in cl.exe
3724 # Extract the first word of "$ac_prog", so it can be a program name with args.
3725 set dummy $ac_prog; ac_word=$2
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 $as_echo_n "checking for $ac_word... " >&6; }
3728 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3729 $as_echo_n "(cached) " >&6
3731 if test -n "$ac_ct_CC"; then
3732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 test -z "$as_dir" && as_dir=.
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3741 ac_cv_prog_ac_ct_CC="$ac_prog"
3742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3752 if test -n "$ac_ct_CC"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3754 $as_echo "$ac_ct_CC" >&6; }
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3761 test -n "$ac_ct_CC" && break
3764 if test "x$ac_ct_CC" = x; then
3767 case $cross_compiling:$ac_tool_warned in
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3771 ac_tool_warned=yes ;;
3780 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3782 as_fn_error $? "no acceptable C compiler found in \$PATH
3783 See \`config.log' for more details" "$LINENO" 5; }
3785 # Provide some information about the compiler.
3786 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3789 for ac_option in --version -v -V -qversion; do
3790 { { ac_try="$ac_compiler $ac_option >&5"
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3799 if test -s conftest.err; then
3801 ... rest of stderr output deleted ...
3802 10q' conftest.err >conftest.er1
3803 cat conftest.er1 >&5
3805 rm -f conftest.er1 conftest.err
3806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807 test $ac_status = 0; }
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3821 ac_clean_files_save=$ac_clean_files
3822 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3823 # Try to create an executable without -o first, disregard a.out.
3824 # It will help us diagnose broken compilers, and finding out an intuition
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3827 $as_echo_n "checking whether the C compiler works... " >&6; }
3828 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3830 # The possible output files:
3831 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3834 for ac_file in $ac_files
3837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3838 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3843 if { { ac_try="$ac_link_default"
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3849 $as_echo "$ac_try_echo"; } >&5
3850 (eval "$ac_link_default") 2>&5
3852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3853 test $ac_status = 0; }; then :
3854 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3855 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3856 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3857 # so that the user can short-circuit this test for compilers unknown to
3859 for ac_file in $ac_files ''
3861 test -f "$ac_file" || continue
3863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3866 # We found the default executable, but exeext='' is most
3870 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3872 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3874 # We set ac_cv_exeext here because the later test for it is not
3875 # safe: cross compilers may not add the suffix if given an `-o'
3876 # argument, so we may need to know it at that point already.
3877 # Even if this section looks crufty: it has the advantage of
3884 test "$ac_cv_exeext" = no && ac_cv_exeext=
3889 if test -z "$ac_file"; then :
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3891 $as_echo "no" >&6; }
3892 $as_echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 as_fn_error 77 "C compiler cannot create executables
3898 See \`config.log' for more details" "$LINENO" 5; }
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3901 $as_echo "yes" >&6; }
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3904 $as_echo_n "checking for C compiler default output file name... " >&6; }
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3906 $as_echo "$ac_file" >&6; }
3907 ac_exeext=$ac_cv_exeext
3909 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3910 ac_clean_files=$ac_clean_files_save
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3912 $as_echo_n "checking for suffix of executables... " >&6; }
3913 if { { ac_try="$ac_link"
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_link") 2>&5
3922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923 test $ac_status = 0; }; then :
3924 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3925 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3926 # work properly (i.e., refer to `conftest.exe'), while it won't with
3928 for ac_file in conftest.exe conftest conftest.*; do
3929 test -f "$ac_file" || continue
3931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3932 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3941 See \`config.log' for more details" "$LINENO" 5; }
3943 rm -f conftest conftest$ac_cv_exeext
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3945 $as_echo "$ac_cv_exeext" >&6; }
3947 rm -f conftest.$ac_ext
3948 EXEEXT=$ac_cv_exeext
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3956 FILE *f = fopen ("conftest.out", "w");
3957 return ferror (f) || fclose (f) != 0;
3963 ac_clean_files="$ac_clean_files conftest.out"
3964 # Check that the compiler produces executables we can run. If not, either
3965 # the compiler is broken, or we cross compile.
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3967 $as_echo_n "checking whether we are cross compiling... " >&6; }
3968 if test "$cross_compiling" != yes; then
3969 { { ac_try="$ac_link"
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3975 $as_echo "$ac_try_echo"; } >&5
3976 (eval "$ac_link") 2>&5
3978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3979 test $ac_status = 0; }
3980 if { ac_try='./conftest$ac_cv_exeext'
3981 { { case "(($ac_try" in
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3986 $as_echo "$ac_try_echo"; } >&5
3987 (eval "$ac_try") 2>&5
3989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3990 test $ac_status = 0; }; }; then
3993 if test "$cross_compiling" = maybe; then
3996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3998 as_fn_error $? "cannot run C compiled programs.
3999 If you meant to cross compile, use \`--host'.
4000 See \`config.log' for more details" "$LINENO" 5; }
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4005 $as_echo "$cross_compiling" >&6; }
4007 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4008 ac_clean_files=$ac_clean_files_save
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4010 $as_echo_n "checking for suffix of object files... " >&6; }
4011 if ${ac_cv_objext+:} false; then :
4012 $as_echo_n "(cached) " >&6
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h. */
4025 rm -f conftest.o conftest.obj
4026 if { { ac_try="$ac_compile"
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4032 $as_echo "$ac_try_echo"; } >&5
4033 (eval "$ac_compile") 2>&5
4035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036 test $ac_status = 0; }; then :
4037 for ac_file in conftest.o conftest.obj conftest.*; do
4038 test -f "$ac_file" || continue;
4040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4041 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4046 $as_echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error $? "cannot compute suffix of object files: cannot compile
4052 See \`config.log' for more details" "$LINENO" 5; }
4054 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4057 $as_echo "$ac_cv_objext" >&6; }
4058 OBJEXT=$ac_cv_objext
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4061 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4062 if ${ac_cv_c_compiler_gnu+:} false; then :
4063 $as_echo_n "(cached) " >&6
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4079 if ac_fn_c_try_compile "$LINENO"; then :
4084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4089 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4090 if test $ac_compiler_gnu = yes; then
4095 ac_test_CFLAGS=${CFLAGS+set}
4096 ac_save_CFLAGS=$CFLAGS
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4098 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4099 if ${ac_cv_prog_cc_g+:} false; then :
4100 $as_echo_n "(cached) " >&6
4102 ac_save_c_werror_flag=$ac_c_werror_flag
4103 ac_c_werror_flag=yes
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4117 if ac_fn_c_try_compile "$LINENO"; then :
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4132 if ac_fn_c_try_compile "$LINENO"; then :
4135 ac_c_werror_flag=$ac_save_c_werror_flag
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4148 if ac_fn_c_try_compile "$LINENO"; then :
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 ac_c_werror_flag=$ac_save_c_werror_flag
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4159 $as_echo "$ac_cv_prog_cc_g" >&6; }
4160 if test "$ac_test_CFLAGS" = set; then
4161 CFLAGS=$ac_save_CFLAGS
4162 elif test $ac_cv_prog_cc_g = yes; then
4163 if test "$GCC" = yes; then
4169 if test "$GCC" = yes; then
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4176 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4177 if ${ac_cv_prog_cc_c89+:} false; then :
4178 $as_echo_n "(cached) " >&6
4180 ac_cv_prog_cc_c89=no
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4187 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4188 struct buf { int x; };
4189 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4190 static char *e (p, i)
4196 static char *f (char * (*g) (char **, int), char **p, ...)
4201 s = g (p, va_arg (v,int));
4206 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4207 function prototypes and stuff, but not '\xHH' hex character constants.
4208 These don't provoke an error unfortunately, instead are silently treated
4209 as 'x'. The following induces an error, until -std is added to get
4210 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4211 array size at least. It's necessary to write '\x00'==0 to get something
4212 that's true only with -std. */
4213 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4215 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4216 inside strings and character constants. */
4218 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4220 int test (int i, double x);
4221 struct s1 {int (*f) (int a);};
4222 struct s2 {int (*f) (double a);};
4223 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4229 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4234 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4235 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4237 CC="$ac_save_CC $ac_arg"
4238 if ac_fn_c_try_compile "$LINENO"; then :
4239 ac_cv_prog_cc_c89=$ac_arg
4241 rm -f core conftest.err conftest.$ac_objext
4242 test "x$ac_cv_prog_cc_c89" != "xno" && break
4244 rm -f conftest.$ac_ext
4249 case "x$ac_cv_prog_cc_c89" in
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4252 $as_echo "none needed" >&6; } ;;
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4255 $as_echo "unsupported" >&6; } ;;
4257 CC="$CC $ac_cv_prog_cc_c89"
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4259 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4261 if test "x$ac_cv_prog_cc_c89" != xno; then :
4266 ac_cpp='$CPP $CPPFLAGS'
4267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4272 ac_cpp='$CPP $CPPFLAGS'
4273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4277 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4278 if ${am_cv_prog_cc_c_o+:} false; then :
4279 $as_echo_n "(cached) " >&6
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4292 # Make sure it works both with $CC and with simple cc.
4293 # Following AC_PROG_CC_C_O, we do the test twice because some
4294 # compilers refuse to overwrite an existing .o file with -o,
4295 # though they will create one.
4296 am_cv_prog_cc_c_o=yes
4298 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4299 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); } \
4303 && test -f conftest2.$ac_objext; then
4306 am_cv_prog_cc_c_o=no
4310 rm -f core conftest*
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4314 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4315 if test "$am_cv_prog_cc_c_o" != yes; then
4316 # Losing compiler, so override with the script.
4317 # FIXME: It is wrong to rewrite CC.
4318 # But if we don't then we get into trouble of one sort or another.
4319 # A longer-term fix would be to have automake use am__CC in this case,
4320 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4321 CC="$am_aux_dir/compile $CC"
4324 ac_cpp='$CPP $CPPFLAGS'
4325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329 DEPDIR="${am__leading_dot}deps"
4331 ac_config_commands="$ac_config_commands depfiles"
4334 am_make=${MAKE-make}
4335 cat > confinc << 'END'
4337 @echo this is the am__doit target
4340 # If we don't find an include directive, just comment out the code.
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4342 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4346 # First try GNU make style include.
4347 echo "include confinc" > confmf
4348 # Ignore all kinds of additional output from 'make'.
4349 case `$am_make -s -f confmf 2> /dev/null` in #(
4350 *the\ am__doit\ target*)
4356 # Now try BSD make style include.
4357 if test "$am__include" = "#"; then
4358 echo '.include "confinc"' > confmf
4359 case `$am_make -s -f confmf 2> /dev/null` in #(
4360 *the\ am__doit\ target*)
4361 am__include=.include
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4370 $as_echo "$_am_result" >&6; }
4371 rm -f confinc confmf
4373 # Check whether --enable-dependency-tracking was given.
4374 if test "${enable_dependency_tracking+set}" = set; then :
4375 enableval=$enable_dependency_tracking;
4378 if test "x$enable_dependency_tracking" != xno; then
4379 am_depcomp="$ac_aux_dir/depcomp"
4383 if test "x$enable_dependency_tracking" != xno; then
4393 depcc="$CC" am_compiler_list=
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4396 $as_echo_n "checking dependency style of $depcc... " >&6; }
4397 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4398 $as_echo_n "(cached) " >&6
4400 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4401 # We make a subdir and do the tests there. Otherwise we can end up
4402 # making bogus files that we don't know about and never remove. For
4403 # instance it was reported that on HP-UX the gcc test will end up
4404 # making a dummy file named 'D' -- because '-MD' means "put the output
4408 # Copy depcomp to subdir because otherwise we won't find it if we're
4409 # using a relative directory.
4410 cp "$am_depcomp" conftest.dir
4412 # We will build objects and dependencies in a subdirectory because
4413 # it helps to detect inapplicable dependency modes. For instance
4414 # both Tru64's cc and ICC support -MD to output dependencies as a
4415 # side effect of compilation, but ICC will put the dependencies in
4416 # the current directory while Tru64 will put them in the object
4420 am_cv_CC_dependencies_compiler_type=none
4421 if test "$am_compiler_list" = ""; then
4422 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4425 case " $depcc " in #(
4426 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4429 for depmode in $am_compiler_list; do
4430 # Setup a source with many dependencies, because some compilers
4431 # like to wrap large dependency lists on column 80 (with \), and
4432 # we should not choose a depcomp mode which is confused by this.
4434 # We need to recreate these files for each test, as the compiler may
4435 # overwrite some of them when testing with obscure command lines.
4436 # This happens at least with the AIX C compiler.
4438 for i in 1 2 3 4 5 6; do
4439 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4440 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4441 # Solaris 10 /bin/sh.
4442 echo '/* dummy */' > sub/conftst$i.h
4444 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4446 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4447 # mode. It turns out that the SunPro C++ compiler does not properly
4448 # handle '-M -o', and we need to detect this. Also, some Intel
4449 # versions had trouble with output in subdirs.
4450 am__obj=sub/conftest.${OBJEXT-o}
4451 am__minus_obj="-o $am__obj"
4454 # This depmode causes a compiler race in universal mode.
4455 test "$am__universal" = false || continue
4458 # After this tag, mechanisms are not by side-effect, so they'll
4459 # only be used when explicitly requested.
4460 if test "x$enable_dependency_tracking" = xyes; then
4466 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4467 # This compiler won't grok '-c -o', but also, the minuso test has
4468 # not run yet. These depmodes are late enough in the game, and
4469 # so weak that their functioning should not be impacted.
4470 am__obj=conftest.${OBJEXT-o}
4475 if depmode=$depmode \
4476 source=sub/conftest.c object=$am__obj \
4477 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4478 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4479 >/dev/null 2>conftest.err &&
4480 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4481 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4482 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4483 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4484 # icc doesn't choke on unknown options, it will just issue warnings
4485 # or remarks (even with -Werror). So we grep stderr for any message
4486 # that says an option was ignored or not supported.
4487 # When given -MP, icc 7.0 and 7.1 complain thusly:
4488 # icc: Command line warning: ignoring option '-M'; no argument required
4489 # The diagnosis changed in icc 8.0:
4490 # icc: Command line remark: option '-MP' not supported
4491 if (grep 'ignoring option' conftest.err ||
4492 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4493 am_cv_CC_dependencies_compiler_type=$depmode
4502 am_cv_CC_dependencies_compiler_type=none
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4507 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4508 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4511 test "x$enable_dependency_tracking" != xno \
4512 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4514 am__fastdepCC_FALSE='#'
4516 am__fastdepCC_TRUE='#'
4517 am__fastdepCC_FALSE=
4522 ac_cpp='$CPP $CPPFLAGS'
4523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4527 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4528 # On Suns, sometimes $CPP names a directory.
4529 if test -n "$CPP" && test -d "$CPP"; then
4532 if test -z "$CPP"; then
4533 if ${ac_cv_prog_CPP+:} false; then :
4534 $as_echo_n "(cached) " >&6
4536 # Double quotes because CPP needs to be expanded
4537 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4540 for ac_c_preproc_warn_flag in '' yes
4542 # Use a header file that comes with gcc, so configuring glibc
4543 # with a fresh cross-compiler works.
4544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4545 # <limits.h> exists even on freestanding compilers.
4546 # On the NeXT, cc -E runs the code through the compiler's parser,
4547 # not just through cpp. "Syntax error" is here to catch this case.
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4551 # include <limits.h>
4553 # include <assert.h>
4557 if ac_fn_c_try_cpp "$LINENO"; then :
4560 # Broken: fails on valid input.
4563 rm -f conftest.err conftest.i conftest.$ac_ext
4565 # OK, works on sane cases. Now check whether nonexistent headers
4566 # can be detected and how.
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4569 #include <ac_nonexistent.h>
4571 if ac_fn_c_try_cpp "$LINENO"; then :
4572 # Broken: success on invalid input.
4575 # Passes both tests.
4579 rm -f conftest.err conftest.i conftest.$ac_ext
4582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4583 rm -f conftest.i conftest.err conftest.$ac_ext
4584 if $ac_preproc_ok; then :
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4597 $as_echo "$CPP" >&6; }
4599 for ac_c_preproc_warn_flag in '' yes
4601 # Use a header file that comes with gcc, so configuring glibc
4602 # with a fresh cross-compiler works.
4603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4604 # <limits.h> exists even on freestanding compilers.
4605 # On the NeXT, cc -E runs the code through the compiler's parser,
4606 # not just through cpp. "Syntax error" is here to catch this case.
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4610 # include <limits.h>
4612 # include <assert.h>
4616 if ac_fn_c_try_cpp "$LINENO"; then :
4619 # Broken: fails on valid input.
4622 rm -f conftest.err conftest.i conftest.$ac_ext
4624 # OK, works on sane cases. Now check whether nonexistent headers
4625 # can be detected and how.
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4628 #include <ac_nonexistent.h>
4630 if ac_fn_c_try_cpp "$LINENO"; then :
4631 # Broken: success on invalid input.
4634 # Passes both tests.
4638 rm -f conftest.err conftest.i conftest.$ac_ext
4641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4642 rm -f conftest.i conftest.err conftest.$ac_ext
4643 if $ac_preproc_ok; then :
4646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4648 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4649 See \`config.log' for more details" "$LINENO" 5; }
4653 ac_cpp='$CPP $CPPFLAGS'
4654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4660 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4661 if ${ac_cv_path_GREP+:} false; then :
4662 $as_echo_n "(cached) " >&6
4664 if test -z "$GREP"; then
4665 ac_path_GREP_found=false
4666 # Loop through the user's path and test for each of PROGNAME-LIST
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4671 test -z "$as_dir" && as_dir=.
4672 for ac_prog in grep ggrep; do
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4675 as_fn_executable_p "$ac_path_GREP" || continue
4676 # Check for GNU ac_path_GREP and select it if it is found.
4677 # Check for GNU $ac_path_GREP
4678 case `"$ac_path_GREP" --version 2>&1` in
4680 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4683 $as_echo_n 0123456789 >"conftest.in"
4686 cat "conftest.in" "conftest.in" >"conftest.tmp"
4687 mv "conftest.tmp" "conftest.in"
4688 cp "conftest.in" "conftest.nl"
4689 $as_echo 'GREP' >> "conftest.nl"
4690 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4692 as_fn_arith $ac_count + 1 && ac_count=$as_val
4693 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4694 # Best one so far, save it but keep looking for a better one
4695 ac_cv_path_GREP="$ac_path_GREP"
4696 ac_path_GREP_max=$ac_count
4698 # 10*(2^10) chars as input seems more than enough
4699 test $ac_count -gt 10 && break
4701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4704 $ac_path_GREP_found && break 3
4709 if test -z "$ac_cv_path_GREP"; then
4710 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4713 ac_cv_path_GREP=$GREP
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4718 $as_echo "$ac_cv_path_GREP" >&6; }
4719 GREP="$ac_cv_path_GREP"
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4723 $as_echo_n "checking for egrep... " >&6; }
4724 if ${ac_cv_path_EGREP+:} false; then :
4725 $as_echo_n "(cached) " >&6
4727 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4728 then ac_cv_path_EGREP="$GREP -E"
4730 if test -z "$EGREP"; then
4731 ac_path_EGREP_found=false
4732 # Loop through the user's path and test for each of PROGNAME-LIST
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4737 test -z "$as_dir" && as_dir=.
4738 for ac_prog in egrep; do
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4741 as_fn_executable_p "$ac_path_EGREP" || continue
4742 # Check for GNU ac_path_EGREP and select it if it is found.
4743 # Check for GNU $ac_path_EGREP
4744 case `"$ac_path_EGREP" --version 2>&1` in
4746 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4749 $as_echo_n 0123456789 >"conftest.in"
4752 cat "conftest.in" "conftest.in" >"conftest.tmp"
4753 mv "conftest.tmp" "conftest.in"
4754 cp "conftest.in" "conftest.nl"
4755 $as_echo 'EGREP' >> "conftest.nl"
4756 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4757 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4758 as_fn_arith $ac_count + 1 && ac_count=$as_val
4759 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4760 # Best one so far, save it but keep looking for a better one
4761 ac_cv_path_EGREP="$ac_path_EGREP"
4762 ac_path_EGREP_max=$ac_count
4764 # 10*(2^10) chars as input seems more than enough
4765 test $ac_count -gt 10 && break
4767 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4770 $ac_path_EGREP_found && break 3
4775 if test -z "$ac_cv_path_EGREP"; then
4776 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4779 ac_cv_path_EGREP=$EGREP
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4785 $as_echo "$ac_cv_path_EGREP" >&6; }
4786 EGREP="$ac_cv_path_EGREP"
4796 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4797 if test -n "$ac_tool_prefix"; then
4798 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4799 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4801 $as_echo_n "checking for $ac_word... " >&6; }
4802 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4803 $as_echo_n "(cached) " >&6
4807 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 test -z "$as_dir" && as_dir=.
4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4817 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4829 if test -n "$PKG_CONFIG"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4831 $as_echo "$PKG_CONFIG" >&6; }
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4839 if test -z "$ac_cv_path_PKG_CONFIG"; then
4840 ac_pt_PKG_CONFIG=$PKG_CONFIG
4841 # Extract the first word of "pkg-config", so it can be a program name with args.
4842 set dummy pkg-config; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4846 $as_echo_n "(cached) " >&6
4848 case $ac_pt_PKG_CONFIG in
4850 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4872 if test -n "$ac_pt_PKG_CONFIG"; then
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4874 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877 $as_echo "no" >&6; }
4880 if test "x$ac_pt_PKG_CONFIG" = x; then
4883 case $cross_compiling:$ac_tool_warned in
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4887 ac_tool_warned=yes ;;
4889 PKG_CONFIG=$ac_pt_PKG_CONFIG
4892 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4896 if test -n "$PKG_CONFIG"; then
4897 _pkg_min_version=0.9.0
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4899 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4900 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4902 $as_echo "yes" >&6; }
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4910 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4911 if ${ac_cv_prog_cc_c99+:} false; then :
4912 $as_echo_n "(cached) " >&6
4914 ac_cv_prog_cc_c99=no
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4919 #include <stdbool.h>
4924 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4925 #define debug(...) fprintf (stderr, __VA_ARGS__)
4926 #define showlist(...) puts (#__VA_ARGS__)
4927 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4929 test_varargs_macros (void)
4934 debug ("X = %d\n", x);
4935 showlist (The first, second, and third items.);
4936 report (x>y, "x is %d but y is %d", x, y);
4939 // Check long long types.
4940 #define BIG64 18446744073709551615ull
4941 #define BIG32 4294967295ul
4942 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4944 your preprocessor is broken;
4948 your preprocessor is broken;
4950 static long long int bignum = -9223372036854775807LL;
4951 static unsigned long long int ubignum = BIG64;
4953 struct incomplete_array
4961 const wchar_t *name;
4965 typedef const char *ccp;
4968 test_restrict (ccp restrict text)
4970 // See if C++-style comments work.
4971 // Iterate through items via the restricted pointer.
4972 // Also check for declarations in for loops.
4973 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4978 // Check varargs and va_copy.
4980 test_varargs (const char *format, ...)
4983 va_start (args, format);
4985 va_copy (args_copy, args);
4996 str = va_arg (args_copy, const char *);
4999 number = va_arg (args_copy, int);
5002 fnumber = va_arg (args_copy, double);
5017 _Bool success = false;
5020 if (test_restrict ("String literal") == 0)
5022 char *restrict newvar = "Another string";
5025 test_varargs ("s, d' f .", "string", 65, 34.234);
5026 test_varargs_macros ();
5028 // Check flexible array members.
5029 struct incomplete_array *ia =
5030 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5032 for (int i = 0; i < ia->datasize; ++i)
5033 ia->data[i] = i * 1.234;
5035 // Check named initializers.
5036 struct named_init ni = {
5038 .name = L"Test wide string",
5039 .average = 543.34343,
5044 int dynamic_array[ni.number];
5045 dynamic_array[ni.number - 1] = 543;
5047 // work around unused variable warnings
5048 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5049 || dynamic_array[ni.number - 1] != 543);
5055 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5057 CC="$ac_save_CC $ac_arg"
5058 if ac_fn_c_try_compile "$LINENO"; then :
5059 ac_cv_prog_cc_c99=$ac_arg
5061 rm -f core conftest.err conftest.$ac_objext
5062 test "x$ac_cv_prog_cc_c99" != "xno" && break
5064 rm -f conftest.$ac_ext
5069 case "x$ac_cv_prog_cc_c99" in
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5072 $as_echo "none needed" >&6; } ;;
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5075 $as_echo "unsupported" >&6; } ;;
5077 CC="$CC $ac_cv_prog_cc_c99"
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5079 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5081 if test "x$ac_cv_prog_cc_c99" != xno; then :
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5090 $as_echo_n "checking for ANSI C header files... " >&6; }
5091 if ${ac_cv_header_stdc+:} false; then :
5092 $as_echo_n "(cached) " >&6
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h. */
5109 if ac_fn_c_try_compile "$LINENO"; then :
5110 ac_cv_header_stdc=yes
5112 ac_cv_header_stdc=no
5114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 if test $ac_cv_header_stdc = yes; then
5117 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5124 $EGREP "memchr" >/dev/null 2>&1; then :
5127 ac_cv_header_stdc=no
5133 if test $ac_cv_header_stdc = yes; then
5134 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5141 $EGREP "free" >/dev/null 2>&1; then :
5144 ac_cv_header_stdc=no
5150 if test $ac_cv_header_stdc = yes; then
5151 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5152 if test "$cross_compiling" = yes; then :
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5159 #if ((' ' & 0x0FF) == 0x020)
5160 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5161 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5163 # define ISLOWER(c) \
5164 (('a' <= (c) && (c) <= 'i') \
5165 || ('j' <= (c) && (c) <= 'r') \
5166 || ('s' <= (c) && (c) <= 'z'))
5167 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5170 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5175 for (i = 0; i < 256; i++)
5176 if (XOR (islower (i), ISLOWER (i))
5177 || toupper (i) != TOUPPER (i))
5182 if ac_fn_c_try_run "$LINENO"; then :
5185 ac_cv_header_stdc=no
5187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5188 conftest.$ac_objext conftest.beam conftest.$ac_ext
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5194 $as_echo "$ac_cv_header_stdc" >&6; }
5195 if test $ac_cv_header_stdc = yes; then
5197 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5201 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5202 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5203 inttypes.h stdint.h unistd.h
5205 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5206 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5208 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5209 cat >>confdefs.h <<_ACEOF
5210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5219 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5220 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5227 if test "$MINIX" = yes; then
5229 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5232 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5235 $as_echo "#define _MINIX 1" >>confdefs.h
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5241 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5242 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5243 $as_echo_n "(cached) " >&6
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5248 # define __EXTENSIONS__ 1
5249 $ac_includes_default
5258 if ac_fn_c_try_compile "$LINENO"; then :
5259 ac_cv_safe_to_define___extensions__=yes
5261 ac_cv_safe_to_define___extensions__=no
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5266 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5267 test $ac_cv_safe_to_define___extensions__ = yes &&
5268 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5270 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5272 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5274 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5276 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5283 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5288 macro_version='2.4.6'
5289 macro_revision='2.4.6'
5303 ltmain=$ac_aux_dir/ltmain.sh
5305 # Backslashify metacharacters that are still active within
5306 # double-quoted strings.
5307 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5309 # Same as above, but do not quote variable references.
5310 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5312 # Sed substitution to delay expansion of an escaped shell variable in a
5313 # double_quote_subst'ed string.
5314 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5316 # Sed substitution to delay expansion of an escaped single quote.
5317 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5319 # Sed substitution to avoid accidental globbing in evaled expressions
5320 no_glob_subst='s/\*/\\\*/g'
5322 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5323 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5324 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5327 $as_echo_n "checking how to print strings... " >&6; }
5328 # Test print first, because it will be a builtin if present.
5329 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5330 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5332 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5335 # Use this function as a fallback that always works.
5336 func_fallback_echo ()
5338 eval 'cat <<_LTECHO_EOF
5342 ECHO='func_fallback_echo'
5345 # func_echo_all arg...
5346 # Invoke $ECHO with all args, space-separated.
5353 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5354 $as_echo "printf" >&6; } ;;
5355 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5356 $as_echo "print -r" >&6; } ;;
5357 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5358 $as_echo "cat" >&6; } ;;
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5375 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5376 if ${ac_cv_path_SED+:} false; then :
5377 $as_echo_n "(cached) " >&6
5379 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5380 for ac_i in 1 2 3 4 5 6 7; do
5381 ac_script="$ac_script$as_nl$ac_script"
5383 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5384 { ac_script=; unset ac_script;}
5385 if test -z "$SED"; then
5386 ac_path_SED_found=false
5387 # Loop through the user's path and test for each of PROGNAME-LIST
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 test -z "$as_dir" && as_dir=.
5393 for ac_prog in sed gsed; do
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5396 as_fn_executable_p "$ac_path_SED" || continue
5397 # Check for GNU ac_path_SED and select it if it is found.
5398 # Check for GNU $ac_path_SED
5399 case `"$ac_path_SED" --version 2>&1` in
5401 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5404 $as_echo_n 0123456789 >"conftest.in"
5407 cat "conftest.in" "conftest.in" >"conftest.tmp"
5408 mv "conftest.tmp" "conftest.in"
5409 cp "conftest.in" "conftest.nl"
5410 $as_echo '' >> "conftest.nl"
5411 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5412 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5413 as_fn_arith $ac_count + 1 && ac_count=$as_val
5414 if test $ac_count -gt ${ac_path_SED_max-0}; then
5415 # Best one so far, save it but keep looking for a better one
5416 ac_cv_path_SED="$ac_path_SED"
5417 ac_path_SED_max=$ac_count
5419 # 10*(2^10) chars as input seems more than enough
5420 test $ac_count -gt 10 && break
5422 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5425 $ac_path_SED_found && break 3
5430 if test -z "$ac_cv_path_SED"; then
5431 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5439 $as_echo "$ac_cv_path_SED" >&6; }
5440 SED="$ac_cv_path_SED"
5443 test -z "$SED" && SED=sed
5444 Xsed="$SED -e 1s/^X//"
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5457 $as_echo_n "checking for fgrep... " >&6; }
5458 if ${ac_cv_path_FGREP+:} false; then :
5459 $as_echo_n "(cached) " >&6
5461 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5462 then ac_cv_path_FGREP="$GREP -F"
5464 if test -z "$FGREP"; then
5465 ac_path_FGREP_found=false
5466 # Loop through the user's path and test for each of PROGNAME-LIST
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5471 test -z "$as_dir" && as_dir=.
5472 for ac_prog in fgrep; do
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5475 as_fn_executable_p "$ac_path_FGREP" || continue
5476 # Check for GNU ac_path_FGREP and select it if it is found.
5477 # Check for GNU $ac_path_FGREP
5478 case `"$ac_path_FGREP" --version 2>&1` in
5480 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5483 $as_echo_n 0123456789 >"conftest.in"
5486 cat "conftest.in" "conftest.in" >"conftest.tmp"
5487 mv "conftest.tmp" "conftest.in"
5488 cp "conftest.in" "conftest.nl"
5489 $as_echo 'FGREP' >> "conftest.nl"
5490 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5492 as_fn_arith $ac_count + 1 && ac_count=$as_val
5493 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5494 # Best one so far, save it but keep looking for a better one
5495 ac_cv_path_FGREP="$ac_path_FGREP"
5496 ac_path_FGREP_max=$ac_count
5498 # 10*(2^10) chars as input seems more than enough
5499 test $ac_count -gt 10 && break
5501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5504 $ac_path_FGREP_found && break 3
5509 if test -z "$ac_cv_path_FGREP"; then
5510 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5513 ac_cv_path_FGREP=$FGREP
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5519 $as_echo "$ac_cv_path_FGREP" >&6; }
5520 FGREP="$ac_cv_path_FGREP"
5523 test -z "$GREP" && GREP=grep
5543 # Check whether --with-gnu-ld was given.
5544 if test "${with_gnu_ld+set}" = set; then :
5545 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5551 if test yes = "$GCC"; then
5552 # Check if gcc -print-prog-name=ld gives a path.
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5554 $as_echo_n "checking for ld used by $CC... " >&6; }
5557 # gcc leaves a trailing carriage return, which upsets mingw
5558 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5560 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5563 # Accept absolute paths.
5565 re_direlt='/[^/][^/]*/\.\./'
5566 # Canonicalize the pathname of ld
5567 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5568 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5569 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5571 test -z "$LD" && LD=$ac_prog
5574 # If it fails, then pretend we aren't using GCC.
5578 # If it is relative, then search for the first ld in PATH.
5582 elif test yes = "$with_gnu_ld"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5584 $as_echo_n "checking for GNU ld... " >&6; }
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5587 $as_echo_n "checking for non-GNU ld... " >&6; }
5589 if ${lt_cv_path_LD+:} false; then :
5590 $as_echo_n "(cached) " >&6
5592 if test -z "$LD"; then
5593 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5594 for ac_dir in $PATH; do
5596 test -z "$ac_dir" && ac_dir=.
5597 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5598 lt_cv_path_LD=$ac_dir/$ac_prog
5599 # Check to see if the program is GNU ld. I'd rather use --version,
5600 # but apparently some variants of GNU ld only accept -v.
5601 # Break only if it was the GNU/non-GNU ld that we prefer.
5602 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5603 *GNU* | *'with BFD'*)
5604 test no != "$with_gnu_ld" && break
5607 test yes != "$with_gnu_ld" && break
5614 lt_cv_path_LD=$LD # Let the user override the test with a path.
5619 if test -n "$LD"; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5621 $as_echo "$LD" >&6; }
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 $as_echo "no" >&6; }
5626 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5628 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5629 if ${lt_cv_prog_gnu_ld+:} false; then :
5630 $as_echo_n "(cached) " >&6
5632 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5633 case `$LD -v 2>&1 </dev/null` in
5634 *GNU* | *'with BFD'*)
5635 lt_cv_prog_gnu_ld=yes
5638 lt_cv_prog_gnu_ld=no
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5643 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5644 with_gnu_ld=$lt_cv_prog_gnu_ld
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5655 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5656 if ${lt_cv_path_NM+:} false; then :
5657 $as_echo_n "(cached) " >&6
5659 if test -n "$NM"; then
5660 # Let the user override the test.
5663 lt_nm_to_check=${ac_tool_prefix}nm
5664 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5665 lt_nm_to_check="$lt_nm_to_check nm"
5667 for lt_tmp_nm in $lt_nm_to_check; do
5668 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5669 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5671 test -z "$ac_dir" && ac_dir=.
5672 tmp_nm=$ac_dir/$lt_tmp_nm
5673 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5674 # Check to see if the nm accepts a BSD-compat flag.
5675 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5676 # nm: unknown option "B" ignored
5677 # Tru64's nm complains that /dev/null is an invalid object file
5678 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5680 mingw*) lt_bad_file=conftest.nm/nofile ;;
5681 *) lt_bad_file=/dev/null ;;
5683 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5684 *$lt_bad_file* | *'Invalid file or object type'*)
5685 lt_cv_path_NM="$tmp_nm -B"
5689 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5691 lt_cv_path_NM="$tmp_nm -p"
5695 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5696 continue # so that we can try to find one that supports BSD flags
5705 : ${lt_cv_path_NM=no}
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5709 $as_echo "$lt_cv_path_NM" >&6; }
5710 if test no != "$lt_cv_path_NM"; then
5713 # Didn't find any BSD compatible name lister, look for dumpbin.
5714 if test -n "$DUMPBIN"; then :
5715 # Let the user override the test.
5717 if test -n "$ac_tool_prefix"; then
5718 for ac_prog in dumpbin "link -dump"
5720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5721 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 $as_echo_n "checking for $ac_word... " >&6; }
5724 if ${ac_cv_prog_DUMPBIN+:} false; then :
5725 $as_echo_n "(cached) " >&6
5727 if test -n "$DUMPBIN"; then
5728 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 test -z "$as_dir" && as_dir=.
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5737 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 DUMPBIN=$ac_cv_prog_DUMPBIN
5748 if test -n "$DUMPBIN"; then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5750 $as_echo "$DUMPBIN" >&6; }
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5757 test -n "$DUMPBIN" && break
5760 if test -z "$DUMPBIN"; then
5761 ac_ct_DUMPBIN=$DUMPBIN
5762 for ac_prog in dumpbin "link -dump"
5764 # Extract the first word of "$ac_prog", so it can be a program name with args.
5765 set dummy $ac_prog; ac_word=$2
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767 $as_echo_n "checking for $ac_word... " >&6; }
5768 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5769 $as_echo_n "(cached) " >&6
5771 if test -n "$ac_ct_DUMPBIN"; then
5772 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5792 if test -n "$ac_ct_DUMPBIN"; then
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5794 $as_echo "$ac_ct_DUMPBIN" >&6; }
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 $as_echo "no" >&6; }
5801 test -n "$ac_ct_DUMPBIN" && break
5804 if test "x$ac_ct_DUMPBIN" = x; then
5807 case $cross_compiling:$ac_tool_warned in
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5811 ac_tool_warned=yes ;;
5813 DUMPBIN=$ac_ct_DUMPBIN
5817 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5819 DUMPBIN="$DUMPBIN -symbols -headers"
5827 if test : != "$DUMPBIN"; then
5831 test -z "$NM" && NM=nm
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5839 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5840 if ${lt_cv_nm_interface+:} false; then :
5841 $as_echo_n "(cached) " >&6
5843 lt_cv_nm_interface="BSD nm"
5844 echo "int some_variable = 0;" > conftest.$ac_ext
5845 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5846 (eval "$ac_compile" 2>conftest.err)
5847 cat conftest.err >&5
5848 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5849 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5850 cat conftest.err >&5
5851 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5852 cat conftest.out >&5
5853 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5854 lt_cv_nm_interface="MS dumpbin"
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5859 $as_echo "$lt_cv_nm_interface" >&6; }
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5862 $as_echo_n "checking whether ln -s works... " >&6; }
5864 if test "$LN_S" = "ln -s"; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5866 $as_echo "yes" >&6; }
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5869 $as_echo "no, using $LN_S" >&6; }
5872 # find the maximum length of command line arguments
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5874 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5875 if ${lt_cv_sys_max_cmd_len+:} false; then :
5876 $as_echo_n "(cached) " >&6
5883 # On DJGPP, this test can blow up pretty badly due to problems in libc
5884 # (any single argument exceeding 2000 bytes causes a buffer overrun
5885 # during glob expansion). Even if it were fixed, the result of this
5886 # check would be larger than it should be.
5887 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5891 # Under GNU Hurd, this test is not required because there is
5892 # no limit to the length of command line arguments.
5893 # Libtool will interpret -1 as no limit whatsoever
5894 lt_cv_sys_max_cmd_len=-1;
5897 cygwin* | mingw* | cegcc*)
5898 # On Win9x/ME, this test blows up -- it succeeds, but takes
5899 # about 5 minutes as the teststring grows exponentially.
5900 # Worse, since 9x/ME are not pre-emptively multitasking,
5901 # you end up with a "frozen" computer, even though with patience
5902 # the test eventually succeeds (with a max line length of 256k).
5903 # Instead, let's just punt: use the minimum linelength reported by
5904 # all of the supported platforms: 8192 (on NT/2K/XP).
5905 lt_cv_sys_max_cmd_len=8192;
5909 # On MiNT this can take a long time and run out of memory.
5910 lt_cv_sys_max_cmd_len=8192;
5914 # On AmigaOS with pdksh, this test takes hours, literally.
5915 # So we just punt and use a minimum line length of 8192.
5916 lt_cv_sys_max_cmd_len=8192;
5919 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5920 # This has been around since 386BSD, at least. Likely further.
5921 if test -x /sbin/sysctl; then
5922 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5923 elif test -x /usr/sbin/sysctl; then
5924 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5926 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5928 # And add a safety zone
5929 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5930 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5934 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5935 lt_cv_sys_max_cmd_len=196608
5939 # The test takes a long time on OS/2.
5940 lt_cv_sys_max_cmd_len=8192
5944 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5945 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5946 # nice to cause kernel panics so lets avoid the loop below.
5947 # First set a reasonable default.
5948 lt_cv_sys_max_cmd_len=16384
5950 if test -x /sbin/sysconfig; then
5951 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5952 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5957 lt_cv_sys_max_cmd_len=102400
5959 sysv5* | sco5v6* | sysv4.2uw2*)
5960 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5961 if test -n "$kargmax"; then
5962 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5964 lt_cv_sys_max_cmd_len=32768
5968 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5969 if test -n "$lt_cv_sys_max_cmd_len" && \
5970 test undefined != "$lt_cv_sys_max_cmd_len"; then
5971 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5972 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5974 # Make teststring a little bigger before we do anything with it.
5975 # a 1K string should be a reasonable start.
5976 for i in 1 2 3 4 5 6 7 8; do
5977 teststring=$teststring$teststring
5979 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5980 # If test is not a shell built-in, we'll probably end up computing a
5981 # maximum length that is only half of the actual maximum length, but
5983 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5984 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5985 test 17 != "$i" # 1/2 MB should be enough
5988 teststring=$teststring$teststring
5990 # Only check the string length outside the loop.
5991 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5993 # Add a significant safety factor because C++ compilers can tack on
5994 # massive amounts of additional arguments before passing them to the
5995 # linker. It appears as though 1/2 is a usable value.
5996 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6003 if test -n "$lt_cv_sys_max_cmd_len"; then
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6005 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6008 $as_echo "none" >&6; }
6010 max_cmd_len=$lt_cv_sys_max_cmd_len
6021 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6031 # test EBCDIC or ASCII
6032 case `echo X|tr X '\101'` in
6033 A) # ASCII based system
6034 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6035 lt_SP2NL='tr \040 \012'
6036 lt_NL2SP='tr \015\012 \040\040'
6038 *) # EBCDIC based system
6039 lt_SP2NL='tr \100 \n'
6040 lt_NL2SP='tr \r\n \100\100'
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6053 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6054 if ${lt_cv_to_host_file_cmd+:} false; then :
6055 $as_echo_n "(cached) " >&6
6060 *-*-mingw* ) # actually msys
6061 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6064 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6066 * ) # otherwise, assume *nix
6067 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6073 *-*-mingw* ) # actually msys
6074 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6077 lt_cv_to_host_file_cmd=func_convert_file_noop
6079 * ) # otherwise, assume *nix
6080 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6084 * ) # unhandled hosts (and "normal" native builds)
6085 lt_cv_to_host_file_cmd=func_convert_file_noop
6091 to_host_file_cmd=$lt_cv_to_host_file_cmd
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6093 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6100 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6101 if ${lt_cv_to_tool_file_cmd+:} false; then :
6102 $as_echo_n "(cached) " >&6
6104 #assume ordinary cross tools, or native build.
6105 lt_cv_to_tool_file_cmd=func_convert_file_noop
6109 *-*-mingw* ) # actually msys
6110 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6118 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6120 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6127 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6128 if ${lt_cv_ld_reload_flag+:} false; then :
6129 $as_echo_n "(cached) " >&6
6131 lt_cv_ld_reload_flag='-r'
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6134 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6135 reload_flag=$lt_cv_ld_reload_flag
6136 case $reload_flag in
6138 *) reload_flag=" $reload_flag" ;;
6140 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6142 cygwin* | mingw* | pw32* | cegcc*)
6143 if test yes != "$GCC"; then
6148 if test yes = "$GCC"; then
6149 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6151 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6164 if test -n "$ac_tool_prefix"; then
6165 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6166 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168 $as_echo_n "checking for $ac_word... " >&6; }
6169 if ${ac_cv_prog_OBJDUMP+:} false; then :
6170 $as_echo_n "(cached) " >&6
6172 if test -n "$OBJDUMP"; then
6173 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 test -z "$as_dir" && as_dir=.
6180 for ac_exec_ext in '' $ac_executable_extensions; do
6181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6182 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 OBJDUMP=$ac_cv_prog_OBJDUMP
6193 if test -n "$OBJDUMP"; then
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6195 $as_echo "$OBJDUMP" >&6; }
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6203 if test -z "$ac_cv_prog_OBJDUMP"; then
6204 ac_ct_OBJDUMP=$OBJDUMP
6205 # Extract the first word of "objdump", so it can be a program name with args.
6206 set dummy objdump; ac_word=$2
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6208 $as_echo_n "checking for $ac_word... " >&6; }
6209 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6210 $as_echo_n "(cached) " >&6
6212 if test -n "$ac_ct_OBJDUMP"; then
6213 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 test -z "$as_dir" && as_dir=.
6220 for ac_exec_ext in '' $ac_executable_extensions; do
6221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6222 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6233 if test -n "$ac_ct_OBJDUMP"; then
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6235 $as_echo "$ac_ct_OBJDUMP" >&6; }
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6238 $as_echo "no" >&6; }
6241 if test "x$ac_ct_OBJDUMP" = x; then
6244 case $cross_compiling:$ac_tool_warned in
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6248 ac_tool_warned=yes ;;
6250 OBJDUMP=$ac_ct_OBJDUMP
6253 OBJDUMP="$ac_cv_prog_OBJDUMP"
6256 test -z "$OBJDUMP" && OBJDUMP=objdump
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6267 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6268 if ${lt_cv_deplibs_check_method+:} false; then :
6269 $as_echo_n "(cached) " >&6
6271 lt_cv_file_magic_cmd='$MAGIC_CMD'
6272 lt_cv_file_magic_test_file=
6273 lt_cv_deplibs_check_method='unknown'
6274 # Need to set the preceding variable on all platforms that support
6275 # interlibrary dependencies.
6276 # 'none' -- dependencies not supported.
6277 # 'unknown' -- same as none, but documents that we really don't know.
6278 # 'pass_all' -- all dependencies passed with no checks.
6279 # 'test_compile' -- check by making test program.
6280 # 'file_magic [[regex]]' -- check by looking for files in library path
6281 # that responds to the $file_magic_cmd with a given extended regex.
6282 # If you have 'file' or equivalent on your system and you're not sure
6283 # whether 'pass_all' will *always* work, you probably want this one.
6287 lt_cv_deplibs_check_method=pass_all
6291 lt_cv_deplibs_check_method=pass_all
6295 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6296 lt_cv_file_magic_cmd='/usr/bin/file -L'
6297 lt_cv_file_magic_test_file=/shlib/libc.so
6301 # func_win32_libid is a shell function defined in ltmain.sh
6302 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6303 lt_cv_file_magic_cmd='func_win32_libid'
6307 # Base MSYS/MinGW do not provide the 'file' command needed by
6308 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6309 # unless we find 'file', for example because we are cross-compiling.
6310 if ( file / ) >/dev/null 2>&1; then
6311 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6312 lt_cv_file_magic_cmd='func_win32_libid'
6314 # Keep this pattern in sync with the one in func_win32_libid.
6315 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6316 lt_cv_file_magic_cmd='$OBJDUMP -f'
6321 # use the weaker test based on 'objdump'. See mingw*.
6322 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6323 lt_cv_file_magic_cmd='$OBJDUMP -f'
6326 darwin* | rhapsody*)
6327 lt_cv_deplibs_check_method=pass_all
6330 freebsd* | dragonfly*)
6331 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6334 # Not sure whether the presence of OpenBSD here was a mistake.
6335 # Let's accept both of them until this is cleared up.
6336 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6337 lt_cv_file_magic_cmd=/usr/bin/file
6338 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6342 lt_cv_deplibs_check_method=pass_all
6347 lt_cv_deplibs_check_method=pass_all
6350 hpux10.20* | hpux11*)
6351 lt_cv_file_magic_cmd=/usr/bin/file
6354 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6355 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6358 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6359 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6362 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6363 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6369 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6373 irix5* | irix6* | nonstopux*)
6375 *-32|*"-32 ") libmagic=32-bit;;
6376 *-n32|*"-n32 ") libmagic=N32;;
6377 *-64|*"-64 ") libmagic=64-bit;;
6378 *) libmagic=never-match;;
6380 lt_cv_deplibs_check_method=pass_all
6383 # This must be glibc/ELF.
6384 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6385 lt_cv_deplibs_check_method=pass_all
6389 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6390 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6397 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6398 lt_cv_file_magic_cmd=/usr/bin/file
6399 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6403 lt_cv_deplibs_check_method=pass_all
6407 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6414 osf3* | osf4* | osf5*)
6415 lt_cv_deplibs_check_method=pass_all
6419 lt_cv_deplibs_check_method=pass_all
6423 lt_cv_deplibs_check_method=pass_all
6426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6427 lt_cv_deplibs_check_method=pass_all
6431 case $host_vendor in
6433 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]'
6434 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6437 lt_cv_deplibs_check_method=pass_all
6440 lt_cv_file_magic_cmd='/bin/file'
6441 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6444 lt_cv_file_magic_cmd='/bin/file'
6445 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6446 lt_cv_file_magic_test_file=/lib/libc.so
6449 lt_cv_deplibs_check_method=pass_all
6452 lt_cv_deplibs_check_method=pass_all
6458 lt_cv_deplibs_check_method=pass_all
6461 lt_cv_deplibs_check_method=pass_all
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6467 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6471 if test "$build" = "$host"; then
6474 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6477 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6483 file_magic_cmd=$lt_cv_file_magic_cmd
6484 deplibs_check_method=$lt_cv_deplibs_check_method
6485 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6508 if test -n "$ac_tool_prefix"; then
6509 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6510 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512 $as_echo_n "checking for $ac_word... " >&6; }
6513 if ${ac_cv_prog_DLLTOOL+:} false; then :
6514 $as_echo_n "(cached) " >&6
6516 if test -n "$DLLTOOL"; then
6517 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6526 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 DLLTOOL=$ac_cv_prog_DLLTOOL
6537 if test -n "$DLLTOOL"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6539 $as_echo "$DLLTOOL" >&6; }
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542 $as_echo "no" >&6; }
6547 if test -z "$ac_cv_prog_DLLTOOL"; then
6548 ac_ct_DLLTOOL=$DLLTOOL
6549 # Extract the first word of "dlltool", so it can be a program name with args.
6550 set dummy dlltool; ac_word=$2
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552 $as_echo_n "checking for $ac_word... " >&6; }
6553 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6554 $as_echo_n "(cached) " >&6
6556 if test -n "$ac_ct_DLLTOOL"; then
6557 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6566 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6577 if test -n "$ac_ct_DLLTOOL"; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6579 $as_echo "$ac_ct_DLLTOOL" >&6; }
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 $as_echo "no" >&6; }
6585 if test "x$ac_ct_DLLTOOL" = x; then
6588 case $cross_compiling:$ac_tool_warned in
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6592 ac_tool_warned=yes ;;
6594 DLLTOOL=$ac_ct_DLLTOOL
6597 DLLTOOL="$ac_cv_prog_DLLTOOL"
6600 test -z "$DLLTOOL" && DLLTOOL=dlltool
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6612 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6613 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6614 $as_echo_n "(cached) " >&6
6616 lt_cv_sharedlib_from_linklib_cmd='unknown'
6619 cygwin* | mingw* | pw32* | cegcc*)
6620 # two different shell functions defined in ltmain.sh;
6621 # decide which one to use based on capabilities of $DLLTOOL
6622 case `$DLLTOOL --help 2>&1` in
6623 *--identify-strict*)
6624 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6627 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6632 # fallback: assume linklib IS sharedlib
6633 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6639 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6640 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6641 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6649 if test -n "$ac_tool_prefix"; then
6652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if ${ac_cv_prog_AR+:} false; then :
6657 $as_echo_n "(cached) " >&6
6659 if test -n "$AR"; then
6660 ac_cv_prog_AR="$AR" # Let the user override the test.
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 if test -n "$AR"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6682 $as_echo "$AR" >&6; }
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6689 test -n "$AR" && break
6692 if test -z "$AR"; then
6696 # Extract the first word of "$ac_prog", so it can be a program name with args.
6697 set dummy $ac_prog; ac_word=$2
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699 $as_echo_n "checking for $ac_word... " >&6; }
6700 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6701 $as_echo_n "(cached) " >&6
6703 if test -n "$ac_ct_AR"; then
6704 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6713 ac_cv_prog_ac_ct_AR="$ac_prog"
6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6724 if test -n "$ac_ct_AR"; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6726 $as_echo "$ac_ct_AR" >&6; }
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6733 test -n "$ac_ct_AR" && break
6736 if test "x$ac_ct_AR" = x; then
6739 case $cross_compiling:$ac_tool_warned in
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6743 ac_tool_warned=yes ;;
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6763 $as_echo_n "checking for archiver @FILE support... " >&6; }
6764 if ${lt_cv_ar_at_file+:} false; then :
6765 $as_echo_n "(cached) " >&6
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6779 if ac_fn_c_try_compile "$LINENO"; then :
6780 echo conftest.$ac_objext > conftest.lst
6781 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6783 (eval $lt_ar_try) 2>&5
6785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6786 test $ac_status = 0; }
6787 if test 0 -eq "$ac_status"; then
6788 # Ensure the archiver fails upon bogus file names.
6789 rm -f conftest.$ac_objext libconftest.a
6790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6791 (eval $lt_ar_try) 2>&5
6793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6794 test $ac_status = 0; }
6795 if test 0 -ne "$ac_status"; then
6799 rm -f conftest.* libconftest.a
6802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6806 $as_echo "$lt_cv_ar_at_file" >&6; }
6808 if test no = "$lt_cv_ar_at_file"; then
6811 archiver_list_spec=$lt_cv_ar_at_file
6820 if test -n "$ac_tool_prefix"; then
6821 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6822 set dummy ${ac_tool_prefix}strip; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if ${ac_cv_prog_STRIP+:} false; then :
6826 $as_echo_n "(cached) " >&6
6828 if test -n "$STRIP"; then
6829 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 STRIP=$ac_cv_prog_STRIP
6849 if test -n "$STRIP"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6851 $as_echo "$STRIP" >&6; }
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6859 if test -z "$ac_cv_prog_STRIP"; then
6861 # Extract the first word of "strip", so it can be a program name with args.
6862 set dummy strip; ac_word=$2
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 $as_echo_n "checking for $ac_word... " >&6; }
6865 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6866 $as_echo_n "(cached) " >&6
6868 if test -n "$ac_ct_STRIP"; then
6869 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878 ac_cv_prog_ac_ct_STRIP="strip"
6879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6889 if test -n "$ac_ct_STRIP"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6891 $as_echo "$ac_ct_STRIP" >&6; }
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6897 if test "x$ac_ct_STRIP" = x; then
6900 case $cross_compiling:$ac_tool_warned in
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6904 ac_tool_warned=yes ;;
6909 STRIP="$ac_cv_prog_STRIP"
6912 test -z "$STRIP" && STRIP=:
6919 if test -n "$ac_tool_prefix"; then
6920 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6921 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6923 $as_echo_n "checking for $ac_word... " >&6; }
6924 if ${ac_cv_prog_RANLIB+:} false; then :
6925 $as_echo_n "(cached) " >&6
6927 if test -n "$RANLIB"; then
6928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 test -z "$as_dir" && as_dir=.
6935 for ac_exec_ext in '' $ac_executable_extensions; do
6936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6937 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 RANLIB=$ac_cv_prog_RANLIB
6948 if test -n "$RANLIB"; then
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6950 $as_echo "$RANLIB" >&6; }
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953 $as_echo "no" >&6; }
6958 if test -z "$ac_cv_prog_RANLIB"; then
6959 ac_ct_RANLIB=$RANLIB
6960 # Extract the first word of "ranlib", so it can be a program name with args.
6961 set dummy ranlib; ac_word=$2
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6963 $as_echo_n "checking for $ac_word... " >&6; }
6964 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6965 $as_echo_n "(cached) " >&6
6967 if test -n "$ac_ct_RANLIB"; then
6968 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6977 ac_cv_prog_ac_ct_RANLIB="ranlib"
6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6988 if test -n "$ac_ct_RANLIB"; then
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6990 $as_echo "$ac_ct_RANLIB" >&6; }
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 $as_echo "no" >&6; }
6996 if test "x$ac_ct_RANLIB" = x; then
6999 case $cross_compiling:$ac_tool_warned in
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7003 ac_tool_warned=yes ;;
7005 RANLIB=$ac_ct_RANLIB
7008 RANLIB="$ac_cv_prog_RANLIB"
7011 test -z "$RANLIB" && RANLIB=:
7018 # Determine commands to create old-style static archives.
7019 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7020 old_postinstall_cmds='chmod 644 $oldlib'
7021 old_postuninstall_cmds=
7023 if test -n "$RANLIB"; then
7026 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7029 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7032 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7037 lock_old_archive_extraction=yes ;;
7039 lock_old_archive_extraction=no ;;
7080 # If no C compiler was specified, use CC.
7083 # If no C compiler flags were specified, use CFLAGS.
7084 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7086 # Allow CC to be a program name with arguments.
7090 # Check for command to grab the raw symbol name followed by C symbol from nm.
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7092 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7093 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7094 $as_echo_n "(cached) " >&6
7097 # These are sane defaults that work on at least a few old systems.
7098 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7100 # Character class describing NM global symbol codes.
7101 symcode='[BCDEGRST]'
7103 # Regexp to match symbols that can be accessed directly from C.
7104 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7106 # Define system-specific variables.
7111 cygwin* | mingw* | pw32* | cegcc*)
7112 symcode='[ABCDGISTW]'
7115 if test ia64 = "$host_cpu"; then
7116 symcode='[ABCDEGRST]'
7120 symcode='[BCDEGRST]'
7123 symcode='[BCDEGQRST]'
7134 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7142 # If we're using GNU nm, then use its standard symbol codes.
7143 case `$NM -V 2>&1` in
7144 *GNU* | *'with BFD'*)
7145 symcode='[ABCDGIRSTW]' ;;
7148 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7149 # Gets list of data symbols to import.
7150 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7151 # Adjust the below global symbol transforms to fixup imported variables.
7152 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7153 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7154 lt_c_name_lib_hook="\
7155 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7156 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7158 # Disable hooks by default.
7159 lt_cv_sys_global_symbol_to_import=
7165 # Transform an extracted symbol line into a proper C declaration.
7166 # Some systems (esp. on ia64) link data and code symbols differently,
7167 # so use this general approach.
7168 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7170 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7171 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7173 # Transform an extracted symbol line into symbol name and symbol address
7174 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7176 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7177 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7179 # Transform an extracted symbol line into symbol name with lib prefix and
7181 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7182 $lt_c_name_lib_hook\
7183 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7184 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7185 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7187 # Handle CRLF in mingw tool chain
7191 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7195 # Try without a prefix underscore, then with it.
7196 for ac_symprfx in "" "_"; do
7198 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7199 symxfrm="\\1 $ac_symprfx\\2 \\2"
7201 # Write the raw and C identifiers.
7202 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7203 # Fake it for dumpbin and say T for any non-static function,
7204 # D for any global variable and I for any imported variable.
7205 # Also find C++ and __fastcall symbols from MSVC++,
7206 # which start with @ or ?.
7207 lt_cv_sys_global_symbol_pipe="$AWK '"\
7208 " {last_section=section; section=\$ 3};"\
7209 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7210 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7211 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7212 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7213 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7214 " \$ 0!~/External *\|/{next};"\
7215 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7216 " {if(hide[section]) next};"\
7217 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7218 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7219 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7220 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7221 " ' prfx=^$ac_symprfx"
7223 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7225 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7227 # Check to see that the pipe works correctly.
7231 cat > conftest.$ac_ext <<_LT_EOF
7236 void nm_test_func(void);
7237 void nm_test_func(void){}
7241 int main(){nm_test_var='a';nm_test_func();return(0);}
7244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7245 (eval $ac_compile) 2>&5
7247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7248 test $ac_status = 0; }; then
7249 # Now try to grab the symbols.
7251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7252 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7255 test $ac_status = 0; } && test -s "$nlist"; then
7256 # Try sorting and uniquifying the output.
7257 if sort "$nlist" | uniq > "$nlist"T; then
7258 mv -f "$nlist"T "$nlist"
7263 # Make sure that we snagged all the symbols we need.
7264 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7265 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7266 cat <<_LT_EOF > conftest.$ac_ext
7267 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7268 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7269 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7270 relocations are performed -- see ld's documentation on pseudo-relocs. */
7271 # define LT_DLSYM_CONST
7272 #elif defined __osf__
7273 /* This system does not cope well with relocations in const data. */
7274 # define LT_DLSYM_CONST
7276 # define LT_DLSYM_CONST const
7284 # Now generate the symbol file.
7285 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7287 cat <<_LT_EOF >> conftest.$ac_ext
7289 /* The mapping between symbol names and symbols. */
7290 LT_DLSYM_CONST struct {
7294 lt__PROGRAM__LTX_preloaded_symbols[] =
7296 { "@PROGRAM@", (void *) 0 },
7298 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7299 cat <<\_LT_EOF >> conftest.$ac_ext
7303 /* This works around a problem in FreeBSD linker */
7304 #ifdef FREEBSD_WORKAROUND
7305 static const void *lt_preloaded_setup() {
7306 return lt__PROGRAM__LTX_preloaded_symbols;
7314 # Now try linking the two files.
7315 mv conftest.$ac_objext conftstm.$ac_objext
7316 lt_globsym_save_LIBS=$LIBS
7317 lt_globsym_save_CFLAGS=$CFLAGS
7318 LIBS=conftstm.$ac_objext
7319 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7321 (eval $ac_link) 2>&5
7323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7324 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7327 LIBS=$lt_globsym_save_LIBS
7328 CFLAGS=$lt_globsym_save_CFLAGS
7330 echo "cannot find nm_test_func in $nlist" >&5
7333 echo "cannot find nm_test_var in $nlist" >&5
7336 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7339 echo "$progname: failed program was:" >&5
7340 cat conftest.$ac_ext >&5
7342 rm -rf conftest* conftst*
7344 # Do not use the global_symbol_pipe unless it works.
7345 if test yes = "$pipe_works"; then
7348 lt_cv_sys_global_symbol_pipe=
7354 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7355 lt_cv_sys_global_symbol_to_cdecl=
7357 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7359 $as_echo "failed" >&6; }
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7362 $as_echo "ok" >&6; }
7365 # Response file support.
7366 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7367 nm_file_list_spec='@'
7368 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7369 nm_file_list_spec='@'
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7409 $as_echo_n "checking for sysroot... " >&6; }
7411 # Check whether --with-sysroot was given.
7412 if test "${with_sysroot+set}" = set; then :
7413 withval=$with_sysroot;
7420 case $with_sysroot in #(
7422 if test yes = "$GCC"; then
7423 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7427 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7433 $as_echo "$with_sysroot" >&6; }
7434 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7439 $as_echo "${lt_sysroot:-no}" >&6; }
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7446 $as_echo_n "checking for a working dd... " >&6; }
7447 if ${ac_cv_path_lt_DD+:} false; then :
7448 $as_echo_n "(cached) " >&6
7450 printf 0123456789abcdef0123456789abcdef >conftest.i
7451 cat conftest.i conftest.i >conftest2.i
7453 if test -z "$lt_DD"; then
7454 ac_path_lt_DD_found=false
7455 # Loop through the user's path and test for each of PROGNAME-LIST
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 test -z "$as_dir" && as_dir=.
7461 for ac_prog in dd; do
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7464 as_fn_executable_p "$ac_path_lt_DD" || continue
7465 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7466 cmp -s conftest.i conftest.out \
7467 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7469 $ac_path_lt_DD_found && break 3
7474 if test -z "$ac_cv_path_lt_DD"; then
7478 ac_cv_path_lt_DD=$lt_DD
7481 rm -f conftest.i conftest2.i conftest.out
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7484 $as_echo "$ac_cv_path_lt_DD" >&6; }
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7488 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7489 if ${lt_cv_truncate_bin+:} false; then :
7490 $as_echo_n "(cached) " >&6
7492 printf 0123456789abcdef0123456789abcdef >conftest.i
7493 cat conftest.i conftest.i >conftest2.i
7495 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7496 cmp -s conftest.i conftest.out \
7497 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7499 rm -f conftest.i conftest2.i conftest.out
7500 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7503 $as_echo "$lt_cv_truncate_bin" >&6; }
7511 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7514 for cc_temp in $*""; do
7516 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7517 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7522 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7525 # Check whether --enable-libtool-lock was given.
7526 if test "${enable_libtool_lock+set}" = set; then :
7527 enableval=$enable_libtool_lock;
7530 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7532 # Some flags need to be propagated to the compiler or linker for good
7536 # Find out what ABI is being produced by ac_compile, and set mode
7537 # options accordingly.
7538 echo 'int i;' > conftest.$ac_ext
7539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7540 (eval $ac_compile) 2>&5
7542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7543 test $ac_status = 0; }; then
7544 case `/usr/bin/file conftest.$ac_objext` in
7556 # Find out what ABI is being produced by ac_compile, and set linker
7557 # options accordingly.
7558 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7560 (eval $ac_compile) 2>&5
7562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7563 test $ac_status = 0; }; then
7564 if test yes = "$lt_cv_prog_gnu_ld"; then
7565 case `/usr/bin/file conftest.$ac_objext` in
7567 LD="${LD-ld} -melf32bsmip"
7570 LD="${LD-ld} -melf32bmipn32"
7573 LD="${LD-ld} -melf64bmip"
7577 case `/usr/bin/file conftest.$ac_objext` in
7594 # Find out what ABI is being produced by ac_compile, and set linker
7595 # options accordingly.
7596 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7598 (eval $ac_compile) 2>&5
7600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7601 test $ac_status = 0; }; then
7603 case `/usr/bin/file conftest.$ac_objext` in
7611 case `/usr/bin/file conftest.$ac_objext` in
7613 emul="${emul}btsmip"
7616 emul="${emul}ltsmip"
7619 case `/usr/bin/file conftest.$ac_objext` in
7624 LD="${LD-ld} -m $emul"
7629 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7630 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7631 # Find out what ABI is being produced by ac_compile, and set linker
7632 # options accordingly. Note that the listed cases only cover the
7633 # situations where additional linker options are needed (such as when
7634 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7635 # vice versa); the common cases where no linker options are needed do
7636 # not appear in the list.
7637 echo 'int i;' > conftest.$ac_ext
7638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7639 (eval $ac_compile) 2>&5
7641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7642 test $ac_status = 0; }; then
7643 case `/usr/bin/file conftest.o` in
7646 x86_64-*kfreebsd*-gnu)
7647 LD="${LD-ld} -m elf_i386_fbsd"
7650 case `/usr/bin/file conftest.o` in
7652 LD="${LD-ld} -m elf32_x86_64"
7655 LD="${LD-ld} -m elf_i386"
7659 powerpc64le-*linux*)
7660 LD="${LD-ld} -m elf32lppclinux"
7663 LD="${LD-ld} -m elf32ppclinux"
7666 LD="${LD-ld} -m elf_s390"
7669 LD="${LD-ld} -m elf32_sparc"
7675 x86_64-*kfreebsd*-gnu)
7676 LD="${LD-ld} -m elf_x86_64_fbsd"
7679 LD="${LD-ld} -m elf_x86_64"
7682 LD="${LD-ld} -m elf64lppc"
7685 LD="${LD-ld} -m elf64ppc"
7687 s390*-*linux*|s390*-*tpf*)
7688 LD="${LD-ld} -m elf64_s390"
7691 LD="${LD-ld} -m elf64_sparc"
7701 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7703 CFLAGS="$CFLAGS -belf"
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7705 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7706 if ${lt_cv_cc_needs_belf+:} false; then :
7707 $as_echo_n "(cached) " >&6
7710 ac_cpp='$CPP $CPPFLAGS'
7711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h. */
7726 if ac_fn_c_try_link "$LINENO"; then :
7727 lt_cv_cc_needs_belf=yes
7729 lt_cv_cc_needs_belf=no
7731 rm -f core conftest.err conftest.$ac_objext \
7732 conftest$ac_exeext conftest.$ac_ext
7734 ac_cpp='$CPP $CPPFLAGS'
7735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7741 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7742 if test yes != "$lt_cv_cc_needs_belf"; then
7743 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7748 # Find out what ABI is being produced by ac_compile, and set linker
7749 # options accordingly.
7750 echo 'int i;' > conftest.$ac_ext
7751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7752 (eval $ac_compile) 2>&5
7754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7755 test $ac_status = 0; }; then
7756 case `/usr/bin/file conftest.o` in
7758 case $lt_cv_prog_gnu_ld in
7761 i?86-*-solaris*|x86_64-*-solaris*)
7762 LD="${LD-ld} -m elf_x86_64"
7765 LD="${LD-ld} -m elf64_sparc"
7768 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7769 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7774 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7786 need_locks=$enable_libtool_lock
7788 if test -n "$ac_tool_prefix"; then
7789 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7790 set dummy ${ac_tool_prefix}mt; ac_word=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 $as_echo_n "checking for $ac_word... " >&6; }
7793 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7794 $as_echo_n "(cached) " >&6
7796 if test -n "$MANIFEST_TOOL"; then
7797 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7817 if test -n "$MANIFEST_TOOL"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7819 $as_echo "$MANIFEST_TOOL" >&6; }
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7827 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7828 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7829 # Extract the first word of "mt", so it can be a program name with args.
7830 set dummy mt; ac_word=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7834 $as_echo_n "(cached) " >&6
7836 if test -n "$ac_ct_MANIFEST_TOOL"; then
7837 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7857 if test -n "$ac_ct_MANIFEST_TOOL"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7859 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7865 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7868 case $cross_compiling:$ac_tool_warned in
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7872 ac_tool_warned=yes ;;
7874 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7877 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7880 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7882 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7883 if ${lt_cv_path_mainfest_tool+:} false; then :
7884 $as_echo_n "(cached) " >&6
7886 lt_cv_path_mainfest_tool=no
7887 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7888 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7889 cat conftest.err >&5
7890 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7891 lt_cv_path_mainfest_tool=yes
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7896 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7897 if test yes != "$lt_cv_path_mainfest_tool"; then
7907 rhapsody* | darwin*)
7908 if test -n "$ac_tool_prefix"; then
7909 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7910 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 $as_echo_n "checking for $ac_word... " >&6; }
7913 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7914 $as_echo_n "(cached) " >&6
7916 if test -n "$DSYMUTIL"; then
7917 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 test -z "$as_dir" && as_dir=.
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7926 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7937 if test -n "$DSYMUTIL"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7939 $as_echo "$DSYMUTIL" >&6; }
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7947 if test -z "$ac_cv_prog_DSYMUTIL"; then
7948 ac_ct_DSYMUTIL=$DSYMUTIL
7949 # Extract the first word of "dsymutil", so it can be a program name with args.
7950 set dummy dsymutil; ac_word=$2
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7952 $as_echo_n "checking for $ac_word... " >&6; }
7953 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7954 $as_echo_n "(cached) " >&6
7956 if test -n "$ac_ct_DSYMUTIL"; then
7957 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 test -z "$as_dir" && as_dir=.
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7966 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7976 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7977 if test -n "$ac_ct_DSYMUTIL"; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7979 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7985 if test "x$ac_ct_DSYMUTIL" = x; then
7988 case $cross_compiling:$ac_tool_warned in
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7992 ac_tool_warned=yes ;;
7994 DSYMUTIL=$ac_ct_DSYMUTIL
7997 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8000 if test -n "$ac_tool_prefix"; then
8001 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8002 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8004 $as_echo_n "checking for $ac_word... " >&6; }
8005 if ${ac_cv_prog_NMEDIT+:} false; then :
8006 $as_echo_n "(cached) " >&6
8008 if test -n "$NMEDIT"; then
8009 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8018 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8028 NMEDIT=$ac_cv_prog_NMEDIT
8029 if test -n "$NMEDIT"; then
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8031 $as_echo "$NMEDIT" >&6; }
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034 $as_echo "no" >&6; }
8039 if test -z "$ac_cv_prog_NMEDIT"; then
8040 ac_ct_NMEDIT=$NMEDIT
8041 # Extract the first word of "nmedit", so it can be a program name with args.
8042 set dummy nmedit; ac_word=$2
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044 $as_echo_n "checking for $ac_word... " >&6; }
8045 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8046 $as_echo_n "(cached) " >&6
8048 if test -n "$ac_ct_NMEDIT"; then
8049 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8058 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8069 if test -n "$ac_ct_NMEDIT"; then
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8071 $as_echo "$ac_ct_NMEDIT" >&6; }
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074 $as_echo "no" >&6; }
8077 if test "x$ac_ct_NMEDIT" = x; then
8080 case $cross_compiling:$ac_tool_warned in
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8084 ac_tool_warned=yes ;;
8086 NMEDIT=$ac_ct_NMEDIT
8089 NMEDIT="$ac_cv_prog_NMEDIT"
8092 if test -n "$ac_tool_prefix"; then
8093 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8094 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8096 $as_echo_n "checking for $ac_word... " >&6; }
8097 if ${ac_cv_prog_LIPO+:} false; then :
8098 $as_echo_n "(cached) " >&6
8100 if test -n "$LIPO"; then
8101 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 test -z "$as_dir" && as_dir=.
8108 for ac_exec_ext in '' $ac_executable_extensions; do
8109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8110 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8120 LIPO=$ac_cv_prog_LIPO
8121 if test -n "$LIPO"; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8123 $as_echo "$LIPO" >&6; }
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126 $as_echo "no" >&6; }
8131 if test -z "$ac_cv_prog_LIPO"; then
8133 # Extract the first word of "lipo", so it can be a program name with args.
8134 set dummy lipo; ac_word=$2
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8136 $as_echo_n "checking for $ac_word... " >&6; }
8137 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8138 $as_echo_n "(cached) " >&6
8140 if test -n "$ac_ct_LIPO"; then
8141 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147 test -z "$as_dir" && as_dir=.
8148 for ac_exec_ext in '' $ac_executable_extensions; do
8149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8150 ac_cv_prog_ac_ct_LIPO="lipo"
8151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8161 if test -n "$ac_ct_LIPO"; then
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8163 $as_echo "$ac_ct_LIPO" >&6; }
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8166 $as_echo "no" >&6; }
8169 if test "x$ac_ct_LIPO" = x; then
8172 case $cross_compiling:$ac_tool_warned in
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8176 ac_tool_warned=yes ;;
8181 LIPO="$ac_cv_prog_LIPO"
8184 if test -n "$ac_tool_prefix"; then
8185 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8186 set dummy ${ac_tool_prefix}otool; ac_word=$2
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8188 $as_echo_n "checking for $ac_word... " >&6; }
8189 if ${ac_cv_prog_OTOOL+:} false; then :
8190 $as_echo_n "(cached) " >&6
8192 if test -n "$OTOOL"; then
8193 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 test -z "$as_dir" && as_dir=.
8200 for ac_exec_ext in '' $ac_executable_extensions; do
8201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8202 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8212 OTOOL=$ac_cv_prog_OTOOL
8213 if test -n "$OTOOL"; then
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8215 $as_echo "$OTOOL" >&6; }
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218 $as_echo "no" >&6; }
8223 if test -z "$ac_cv_prog_OTOOL"; then
8225 # Extract the first word of "otool", so it can be a program name with args.
8226 set dummy otool; ac_word=$2
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228 $as_echo_n "checking for $ac_word... " >&6; }
8229 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8230 $as_echo_n "(cached) " >&6
8232 if test -n "$ac_ct_OTOOL"; then
8233 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 test -z "$as_dir" && as_dir=.
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8242 ac_cv_prog_ac_ct_OTOOL="otool"
8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8252 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8253 if test -n "$ac_ct_OTOOL"; then
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8255 $as_echo "$ac_ct_OTOOL" >&6; }
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 $as_echo "no" >&6; }
8261 if test "x$ac_ct_OTOOL" = x; then
8264 case $cross_compiling:$ac_tool_warned in
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8268 ac_tool_warned=yes ;;
8273 OTOOL="$ac_cv_prog_OTOOL"
8276 if test -n "$ac_tool_prefix"; then
8277 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8278 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280 $as_echo_n "checking for $ac_word... " >&6; }
8281 if ${ac_cv_prog_OTOOL64+:} false; then :
8282 $as_echo_n "(cached) " >&6
8284 if test -n "$OTOOL64"; then
8285 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 test -z "$as_dir" && as_dir=.
8292 for ac_exec_ext in '' $ac_executable_extensions; do
8293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8294 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 OTOOL64=$ac_cv_prog_OTOOL64
8305 if test -n "$OTOOL64"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8307 $as_echo "$OTOOL64" >&6; }
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310 $as_echo "no" >&6; }
8315 if test -z "$ac_cv_prog_OTOOL64"; then
8316 ac_ct_OTOOL64=$OTOOL64
8317 # Extract the first word of "otool64", so it can be a program name with args.
8318 set dummy otool64; ac_word=$2
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8320 $as_echo_n "checking for $ac_word... " >&6; }
8321 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8322 $as_echo_n "(cached) " >&6
8324 if test -n "$ac_ct_OTOOL64"; then
8325 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 test -z "$as_dir" && as_dir=.
8332 for ac_exec_ext in '' $ac_executable_extensions; do
8333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8334 ac_cv_prog_ac_ct_OTOOL64="otool64"
8335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8344 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8345 if test -n "$ac_ct_OTOOL64"; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8347 $as_echo "$ac_ct_OTOOL64" >&6; }
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 $as_echo "no" >&6; }
8353 if test "x$ac_ct_OTOOL64" = x; then
8356 case $cross_compiling:$ac_tool_warned in
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8360 ac_tool_warned=yes ;;
8362 OTOOL64=$ac_ct_OTOOL64
8365 OTOOL64="$ac_cv_prog_OTOOL64"
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8395 $as_echo_n "checking for -single_module linker flag... " >&6; }
8396 if ${lt_cv_apple_cc_single_mod+:} false; then :
8397 $as_echo_n "(cached) " >&6
8399 lt_cv_apple_cc_single_mod=no
8400 if test -z "$LT_MULTI_MODULE"; then
8401 # By default we will add the -single_module flag. You can override
8402 # by either setting the environment variable LT_MULTI_MODULE
8403 # non-empty at configure time, or by adding -multi_module to the
8405 rm -rf libconftest.dylib*
8406 echo "int foo(void){return 1;}" > conftest.c
8407 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8408 -dynamiclib -Wl,-single_module conftest.c" >&5
8409 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8410 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8412 # If there is a non-empty error log, and "single_module"
8413 # appears in it, assume the flag caused a linker warning
8414 if test -s conftest.err && $GREP single_module conftest.err; then
8415 cat conftest.err >&5
8416 # Otherwise, if the output was created with a 0 exit code from
8417 # the compiler, it worked.
8418 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8419 lt_cv_apple_cc_single_mod=yes
8421 cat conftest.err >&5
8423 rm -rf libconftest.dylib*
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8428 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8431 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8432 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8433 $as_echo_n "(cached) " >&6
8435 lt_cv_ld_exported_symbols_list=no
8436 save_LDFLAGS=$LDFLAGS
8437 echo "_main" > conftest.sym
8438 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8450 if ac_fn_c_try_link "$LINENO"; then :
8451 lt_cv_ld_exported_symbols_list=yes
8453 lt_cv_ld_exported_symbols_list=no
8455 rm -f core conftest.err conftest.$ac_objext \
8456 conftest$ac_exeext conftest.$ac_ext
8457 LDFLAGS=$save_LDFLAGS
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8461 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8464 $as_echo_n "checking for -force_load linker flag... " >&6; }
8465 if ${lt_cv_ld_force_load+:} false; then :
8466 $as_echo_n "(cached) " >&6
8468 lt_cv_ld_force_load=no
8469 cat > conftest.c << _LT_EOF
8470 int forced_loaded() { return 2;}
8472 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8473 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8474 echo "$AR cru libconftest.a conftest.o" >&5
8475 $AR cru libconftest.a conftest.o 2>&5
8476 echo "$RANLIB libconftest.a" >&5
8477 $RANLIB libconftest.a 2>&5
8478 cat > conftest.c << _LT_EOF
8479 int main() { return 0;}
8481 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8482 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8484 if test -s conftest.err && $GREP force_load conftest.err; then
8485 cat conftest.err >&5
8486 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8487 lt_cv_ld_force_load=yes
8489 cat conftest.err >&5
8491 rm -f conftest.err libconftest.a conftest conftest.c
8492 rm -rf conftest.dSYM
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8496 $as_echo "$lt_cv_ld_force_load" >&6; }
8498 rhapsody* | darwin1.[012])
8499 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8501 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8502 darwin*) # darwin 5.x on
8503 # if running on 10.5 or later, the deployment target defaults
8504 # to the OS version, if on x86, and 10.4, the deployment
8505 # target defaults to 10.4. Don't you love it?
8506 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8507 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8508 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8510 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8512 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8516 if test yes = "$lt_cv_apple_cc_single_mod"; then
8517 _lt_dar_single_mod='$single_module'
8519 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8520 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8522 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8524 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8525 _lt_dsymutil='~$DSYMUTIL $lib || :'
8532 # func_munge_path_list VARIABLE PATH
8533 # -----------------------------------
8534 # VARIABLE is name of variable containing _space_ separated list of
8535 # directories to be munged by the contents of PATH, which is string
8538 # string "DIR[ DIR]" will be prepended to VARIABLE
8540 # string "DIR[ DIR]" will be appended to VARIABLE
8541 # "DIRP[:DIRP]::[DIRA:]DIRA"
8542 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8543 # "DIRA[ DIRA]" will be appended to VARIABLE
8545 # VARIABLE will be replaced by "DIR[ DIR]"
8546 func_munge_path_list ()
8552 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8555 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8558 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8559 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8562 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8567 for ac_header in dlfcn.h
8569 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8571 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8572 cat >>confdefs.h <<_ACEOF
8573 #define HAVE_DLFCN_H 1
8594 # Check whether --enable-shared was given.
8595 if test "${enable_shared+set}" = set; then :
8596 enableval=$enable_shared; p=${PACKAGE-default}
8598 yes) enable_shared=yes ;;
8599 no) enable_shared=no ;;
8602 # Look at the argument we got. We use all the common list separators.
8603 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8604 for pkg in $enableval; do
8606 if test "X$pkg" = "X$p"; then
8625 # Check whether --enable-static was given.
8626 if test "${enable_static+set}" = set; then :
8627 enableval=$enable_static; p=${PACKAGE-default}
8629 yes) enable_static=yes ;;
8630 no) enable_static=no ;;
8633 # Look at the argument we got. We use all the common list separators.
8634 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8635 for pkg in $enableval; do
8637 if test "X$pkg" = "X$p"; then
8657 # Check whether --with-pic was given.
8658 if test "${with_pic+set}" = set; then :
8659 withval=$with_pic; lt_p=${PACKAGE-default}
8661 yes|no) pic_mode=$withval ;;
8664 # Look at the argument we got. We use all the common list separators.
8665 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8666 for lt_pkg in $withval; do
8668 if test "X$lt_pkg" = "X$lt_p"; then
8686 # Check whether --enable-fast-install was given.
8687 if test "${enable_fast_install+set}" = set; then :
8688 enableval=$enable_fast_install; p=${PACKAGE-default}
8690 yes) enable_fast_install=yes ;;
8691 no) enable_fast_install=no ;;
8693 enable_fast_install=no
8694 # Look at the argument we got. We use all the common list separators.
8695 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8696 for pkg in $enableval; do
8698 if test "X$pkg" = "X$p"; then
8699 enable_fast_install=yes
8706 enable_fast_install=yes
8716 shared_archive_member_spec=
8717 case $host,$enable_shared in
8718 power*-*-aix[5-9]*,yes)
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8720 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8722 # Check whether --with-aix-soname was given.
8723 if test "${with_aix_soname+set}" = set; then :
8724 withval=$with_aix_soname; case $withval in
8728 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8731 lt_cv_with_aix_soname=$with_aix_soname
8733 if ${lt_cv_with_aix_soname+:} false; then :
8734 $as_echo_n "(cached) " >&6
8736 lt_cv_with_aix_soname=aix
8739 with_aix_soname=$lt_cv_with_aix_soname
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8743 $as_echo "$with_aix_soname" >&6; }
8744 if test aix != "$with_aix_soname"; then
8745 # For the AIX way of multilib, we name the shared archive member
8746 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8747 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8748 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8749 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8750 if test 64 = "${OBJECT_MODE-32}"; then
8751 shared_archive_member_spec=shr_64
8753 shared_archive_member_spec=shr
8771 # This can be used to rebuild libtool when needed
8772 LIBTOOL_DEPS=$ltmain
8774 # Always use our own libtool.
8775 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8806 test -z "$LN_S" && LN_S="ln -s"
8821 if test -n "${ZSH_VERSION+set}"; then
8822 setopt NO_GLOB_SUBST
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8826 $as_echo_n "checking for objdir... " >&6; }
8827 if ${lt_cv_objdir+:} false; then :
8828 $as_echo_n "(cached) " >&6
8830 rm -f .libs 2>/dev/null
8831 mkdir .libs 2>/dev/null
8832 if test -d .libs; then
8835 # MS-DOS does not allow filenames that begin with a dot.
8838 rmdir .libs 2>/dev/null
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8841 $as_echo "$lt_cv_objdir" >&6; }
8842 objdir=$lt_cv_objdir
8848 cat >>confdefs.h <<_ACEOF
8849 #define LT_OBJDIR "$lt_cv_objdir/"
8857 # AIX sometimes has problems with the GCC collect2 program. For some
8858 # reason, if we set the COLLECT_NAMES environment variable, the problems
8859 # vanish in a puff of smoke.
8860 if test set != "${COLLECT_NAMES+set}"; then
8862 export COLLECT_NAMES
8869 can_build_shared=yes
8871 # All known linkers require a '.a' archive for static linking (except MSVC,
8872 # which needs '.lib').
8875 with_gnu_ld=$lt_cv_prog_gnu_ld
8880 # Set sane defaults for various variables
8881 test -z "$CC" && CC=cc
8882 test -z "$LTCC" && LTCC=$CC
8883 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8884 test -z "$LD" && LD=ld
8885 test -z "$ac_objext" && ac_objext=o
8887 func_cc_basename $compiler
8888 cc_basename=$func_cc_basename_result
8891 # Only perform the check for file, if the check method requires it
8892 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8893 case $deplibs_check_method in
8895 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8897 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8898 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8899 $as_echo_n "(cached) " >&6
8903 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8906 lt_save_MAGIC_CMD=$MAGIC_CMD
8907 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8908 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8909 for ac_dir in $ac_dummy; do
8911 test -z "$ac_dir" && ac_dir=.
8912 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8913 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8914 if test -n "$file_magic_test_file"; then
8915 case $deplibs_check_method in
8917 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8918 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8919 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8920 $EGREP "$file_magic_regex" > /dev/null; then
8925 *** Warning: the command libtool uses to detect shared libraries,
8926 *** $file_magic_cmd, produces output that libtool cannot recognize.
8927 *** The result is that libtool may fail to recognize shared libraries
8928 *** as such. This will affect the creation of libtool libraries that
8929 *** depend on shared libraries, but programs linked with such libtool
8930 *** libraries will work regardless of this problem. Nevertheless, you
8931 *** may want to report the problem to your system manager and/or to
8932 *** bug-libtool@gnu.org
8942 MAGIC_CMD=$lt_save_MAGIC_CMD
8947 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8948 if test -n "$MAGIC_CMD"; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8950 $as_echo "$MAGIC_CMD" >&6; }
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953 $as_echo "no" >&6; }
8960 if test -z "$lt_cv_path_MAGIC_CMD"; then
8961 if test -n "$ac_tool_prefix"; then
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8963 $as_echo_n "checking for file... " >&6; }
8964 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8965 $as_echo_n "(cached) " >&6
8969 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8972 lt_save_MAGIC_CMD=$MAGIC_CMD
8973 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8974 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8975 for ac_dir in $ac_dummy; do
8977 test -z "$ac_dir" && ac_dir=.
8978 if test -f "$ac_dir/file"; then
8979 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8980 if test -n "$file_magic_test_file"; then
8981 case $deplibs_check_method in
8983 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8984 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8985 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8986 $EGREP "$file_magic_regex" > /dev/null; then
8991 *** Warning: the command libtool uses to detect shared libraries,
8992 *** $file_magic_cmd, produces output that libtool cannot recognize.
8993 *** The result is that libtool may fail to recognize shared libraries
8994 *** as such. This will affect the creation of libtool libraries that
8995 *** depend on shared libraries, but programs linked with such libtool
8996 *** libraries will work regardless of this problem. Nevertheless, you
8997 *** may want to report the problem to your system manager and/or to
8998 *** bug-libtool@gnu.org
9008 MAGIC_CMD=$lt_save_MAGIC_CMD
9013 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9014 if test -n "$MAGIC_CMD"; then
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9016 $as_echo "$MAGIC_CMD" >&6; }
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 $as_echo "no" >&6; }
9032 # Use C for the default configuration in the libtool script
9036 ac_cpp='$CPP $CPPFLAGS'
9037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9042 # Source file extension for C test sources.
9045 # Object file extension for compiled C test sources.
9049 # Code to be used in simple compile tests
9050 lt_simple_compile_test_code="int some_variable = 0;"
9052 # Code to be used in simple link tests
9053 lt_simple_link_test_code='int main(){return(0);}'
9061 # If no C compiler was specified, use CC.
9064 # If no C compiler flags were specified, use CFLAGS.
9065 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9067 # Allow CC to be a program name with arguments.
9070 # Save the default compiler, since it gets overwritten when the other
9071 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9072 compiler_DEFAULT=$CC
9074 # save warnings/boilerplate of simple test code
9075 ac_outfile=conftest.$ac_objext
9076 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9077 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9078 _lt_compiler_boilerplate=`cat conftest.err`
9081 ac_outfile=conftest.$ac_objext
9082 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9083 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9084 _lt_linker_boilerplate=`cat conftest.err`
9089 ## There is no encapsulation within the following macros, do not change
9090 ## the running order or otherwise move them around unless you know exactly
9091 ## what you are doing...
9092 if test -n "$compiler"; then
9094 lt_prog_compiler_no_builtin_flag=
9096 if test yes = "$GCC"; then
9097 case $cc_basename in
9099 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9101 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9105 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9106 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9107 $as_echo_n "(cached) " >&6
9109 lt_cv_prog_compiler_rtti_exceptions=no
9110 ac_outfile=conftest.$ac_objext
9111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9112 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9113 # Insert the option either (1) after the last *FLAGS variable, or
9114 # (2) before a word containing "conftest.", or (3) at the end.
9115 # Note that $ac_compile itself does not contain backslashes and begins
9116 # with a dollar sign (not a hyphen), so the echo should work correctly.
9117 # The option is referenced via a variable to avoid confusing sed.
9118 lt_compile=`echo "$ac_compile" | $SED \
9119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9121 -e 's:$: $lt_compiler_flag:'`
9122 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9123 (eval "$lt_compile" 2>conftest.err)
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 if (exit $ac_status) && test -s "$ac_outfile"; then
9128 # The compiler can only warn and ignore the option if not recognized
9129 # So say no if there are warnings other than the usual output.
9130 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9132 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9133 lt_cv_prog_compiler_rtti_exceptions=yes
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9140 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9142 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9143 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9155 lt_prog_compiler_wl=
9156 lt_prog_compiler_pic=
9157 lt_prog_compiler_static=
9160 if test yes = "$GCC"; then
9161 lt_prog_compiler_wl='-Wl,'
9162 lt_prog_compiler_static='-static'
9166 # All AIX code is PIC.
9167 if test ia64 = "$host_cpu"; then
9168 # AIX 5 now supports IA64 processor
9169 lt_prog_compiler_static='-Bstatic'
9171 lt_prog_compiler_pic='-fPIC'
9177 # see comment about AmigaOS4 .so support
9178 lt_prog_compiler_pic='-fPIC'
9181 # FIXME: we need at least 68020 code to build shared libraries, but
9182 # adding the '-m68020' flag to GCC prevents building anything better,
9184 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9189 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9190 # PIC is the default for these OSes.
9193 mingw* | cygwin* | pw32* | os2* | cegcc*)
9194 # This hack is so that the source file can tell whether it is being
9195 # built for inclusion in a dll (and should export symbols for example).
9196 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9197 # (--disable-auto-import) libraries
9198 lt_prog_compiler_pic='-DDLL_EXPORT'
9201 lt_prog_compiler_static='$wl-static'
9206 darwin* | rhapsody*)
9207 # PIC is the default on this platform
9208 # Common symbols not allowed in MH_DYLIB files
9209 lt_prog_compiler_pic='-fno-common'
9213 # PIC is the default for Haiku.
9214 # The "-static" flag exists, but is broken.
9215 lt_prog_compiler_static=
9219 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9220 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9221 # sets the default TLS model and affects inlining.
9227 lt_prog_compiler_pic='-fPIC'
9233 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9234 # Instead, we relocate shared libraries at runtime.
9238 # Just because we use GCC doesn't mean we suddenly get shared libraries
9239 # on systems that don't support them.
9240 lt_prog_compiler_can_build_shared=no
9245 # QNX uses GNU C++, but need to define -shared option too, otherwise
9247 lt_prog_compiler_pic='-fPIC -shared'
9251 if test -d /usr/nec; then
9252 lt_prog_compiler_pic=-Kconform_pic
9257 lt_prog_compiler_pic='-fPIC'
9261 case $cc_basename in
9262 nvcc*) # Cuda Compiler Driver 2.2
9263 lt_prog_compiler_wl='-Xlinker '
9264 if test -n "$lt_prog_compiler_pic"; then
9265 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9270 # PORTME Check for flag to pass linker flags through the system compiler.
9273 lt_prog_compiler_wl='-Wl,'
9274 if test ia64 = "$host_cpu"; then
9275 # AIX 5 now supports IA64 processor
9276 lt_prog_compiler_static='-Bstatic'
9278 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9282 darwin* | rhapsody*)
9283 # PIC is the default on this platform
9284 # Common symbols not allowed in MH_DYLIB files
9285 lt_prog_compiler_pic='-fno-common'
9286 case $cc_basename in
9288 # NAG Fortran compiler
9289 lt_prog_compiler_wl='-Wl,-Wl,,'
9290 lt_prog_compiler_pic='-PIC'
9291 lt_prog_compiler_static='-Bstatic'
9296 mingw* | cygwin* | pw32* | os2* | cegcc*)
9297 # This hack is so that the source file can tell whether it is being
9298 # built for inclusion in a dll (and should export symbols for example).
9299 lt_prog_compiler_pic='-DDLL_EXPORT'
9302 lt_prog_compiler_static='$wl-static'
9307 hpux9* | hpux10* | hpux11*)
9308 lt_prog_compiler_wl='-Wl,'
9309 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9316 lt_prog_compiler_pic='+Z'
9319 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9320 lt_prog_compiler_static='$wl-a ${wl}archive'
9323 irix5* | irix6* | nonstopux*)
9324 lt_prog_compiler_wl='-Wl,'
9325 # PIC (with -KPIC) is the default.
9326 lt_prog_compiler_static='-non_shared'
9329 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9330 case $cc_basename in
9331 # old Intel for x86_64, which still supported -KPIC.
9333 lt_prog_compiler_wl='-Wl,'
9334 lt_prog_compiler_pic='-KPIC'
9335 lt_prog_compiler_static='-static'
9337 # icc used to be incompatible with GCC.
9338 # ICC 10 doesn't accept -KPIC any more.
9340 lt_prog_compiler_wl='-Wl,'
9341 lt_prog_compiler_pic='-fPIC'
9342 lt_prog_compiler_static='-static'
9344 # Lahey Fortran 8.1.
9346 lt_prog_compiler_wl='-Wl,'
9347 lt_prog_compiler_pic='--shared'
9348 lt_prog_compiler_static='--static'
9351 # NAG Fortran compiler
9352 lt_prog_compiler_wl='-Wl,-Wl,,'
9353 lt_prog_compiler_pic='-PIC'
9354 lt_prog_compiler_static='-Bstatic'
9357 # Fabrice Bellard et al's Tiny C Compiler
9358 lt_prog_compiler_wl='-Wl,'
9359 lt_prog_compiler_pic='-fPIC'
9360 lt_prog_compiler_static='-static'
9362 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9363 # Portland Group compilers (*not* the Pentium gcc compiler,
9364 # which looks to be a dead project)
9365 lt_prog_compiler_wl='-Wl,'
9366 lt_prog_compiler_pic='-fpic'
9367 lt_prog_compiler_static='-Bstatic'
9370 lt_prog_compiler_wl='-Wl,'
9371 # All Alpha code is PIC.
9372 lt_prog_compiler_static='-non_shared'
9374 xl* | bgxl* | bgf* | mpixl*)
9375 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9376 lt_prog_compiler_wl='-Wl,'
9377 lt_prog_compiler_pic='-qpic'
9378 lt_prog_compiler_static='-qstaticlink'
9381 case `$CC -V 2>&1 | sed 5q` in
9382 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9383 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9384 lt_prog_compiler_pic='-KPIC'
9385 lt_prog_compiler_static='-Bstatic'
9386 lt_prog_compiler_wl=''
9388 *Sun\ F* | *Sun*Fortran*)
9389 lt_prog_compiler_pic='-KPIC'
9390 lt_prog_compiler_static='-Bstatic'
9391 lt_prog_compiler_wl='-Qoption ld '
9395 lt_prog_compiler_pic='-KPIC'
9396 lt_prog_compiler_static='-Bstatic'
9397 lt_prog_compiler_wl='-Wl,'
9399 *Intel*\ [CF]*Compiler*)
9400 lt_prog_compiler_wl='-Wl,'
9401 lt_prog_compiler_pic='-fPIC'
9402 lt_prog_compiler_static='-static'
9405 lt_prog_compiler_wl='-Wl,'
9406 lt_prog_compiler_pic='-fpic'
9407 lt_prog_compiler_static='-Bstatic'
9415 lt_prog_compiler_pic='-KPIC'
9416 lt_prog_compiler_static='-Bstatic'
9420 # QNX uses GNU C++, but need to define -shared option too, otherwise
9422 lt_prog_compiler_pic='-fPIC -shared'
9425 osf3* | osf4* | osf5*)
9426 lt_prog_compiler_wl='-Wl,'
9427 # All OSF/1 code is PIC.
9428 lt_prog_compiler_static='-non_shared'
9432 lt_prog_compiler_static='-non_shared'
9436 lt_prog_compiler_pic='-KPIC'
9437 lt_prog_compiler_static='-Bstatic'
9438 case $cc_basename in
9439 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9440 lt_prog_compiler_wl='-Qoption ld ';;
9442 lt_prog_compiler_wl='-Wl,';;
9447 lt_prog_compiler_wl='-Qoption ld '
9448 lt_prog_compiler_pic='-PIC'
9449 lt_prog_compiler_static='-Bstatic'
9452 sysv4 | sysv4.2uw2* | sysv4.3*)
9453 lt_prog_compiler_wl='-Wl,'
9454 lt_prog_compiler_pic='-KPIC'
9455 lt_prog_compiler_static='-Bstatic'
9459 if test -d /usr/nec; then
9460 lt_prog_compiler_pic='-Kconform_pic'
9461 lt_prog_compiler_static='-Bstatic'
9465 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9466 lt_prog_compiler_wl='-Wl,'
9467 lt_prog_compiler_pic='-KPIC'
9468 lt_prog_compiler_static='-Bstatic'
9472 lt_prog_compiler_wl='-Wl,'
9473 lt_prog_compiler_can_build_shared=no
9477 lt_prog_compiler_pic='-pic'
9478 lt_prog_compiler_static='-Bstatic'
9482 lt_prog_compiler_can_build_shared=no
9488 # For platforms that do not support PIC, -DPIC is meaningless:
9490 lt_prog_compiler_pic=
9493 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9498 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9499 if ${lt_cv_prog_compiler_pic+:} false; then :
9500 $as_echo_n "(cached) " >&6
9502 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9505 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9506 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9509 # Check to make sure the PIC flag actually works.
9511 if test -n "$lt_prog_compiler_pic"; then
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9513 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9514 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9515 $as_echo_n "(cached) " >&6
9517 lt_cv_prog_compiler_pic_works=no
9518 ac_outfile=conftest.$ac_objext
9519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9520 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9521 # Insert the option either (1) after the last *FLAGS variable, or
9522 # (2) before a word containing "conftest.", or (3) at the end.
9523 # Note that $ac_compile itself does not contain backslashes and begins
9524 # with a dollar sign (not a hyphen), so the echo should work correctly.
9525 # The option is referenced via a variable to avoid confusing sed.
9526 lt_compile=`echo "$ac_compile" | $SED \
9527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9529 -e 's:$: $lt_compiler_flag:'`
9530 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9531 (eval "$lt_compile" 2>conftest.err)
9533 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 if (exit $ac_status) && test -s "$ac_outfile"; then
9536 # The compiler can only warn and ignore the option if not recognized
9537 # So say no if there are warnings other than the usual output.
9538 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9540 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9541 lt_cv_prog_compiler_pic_works=yes
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9548 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9550 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9551 case $lt_prog_compiler_pic in
9553 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9556 lt_prog_compiler_pic=
9557 lt_prog_compiler_can_build_shared=no
9573 # Check to make sure the static flag actually works.
9575 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9577 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9578 if ${lt_cv_prog_compiler_static_works+:} false; then :
9579 $as_echo_n "(cached) " >&6
9581 lt_cv_prog_compiler_static_works=no
9582 save_LDFLAGS=$LDFLAGS
9583 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9584 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9585 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9586 # The linker can only warn and ignore the option if not recognized
9587 # So say no if there are warnings
9588 if test -s conftest.err; then
9589 # Append any errors to the config.log.
9590 cat conftest.err 1>&5
9591 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9593 if diff conftest.exp conftest.er2 >/dev/null; then
9594 lt_cv_prog_compiler_static_works=yes
9597 lt_cv_prog_compiler_static_works=yes
9601 LDFLAGS=$save_LDFLAGS
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9605 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9607 if test yes = "$lt_cv_prog_compiler_static_works"; then
9610 lt_prog_compiler_static=
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9620 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9621 if ${lt_cv_prog_compiler_c_o+:} false; then :
9622 $as_echo_n "(cached) " >&6
9624 lt_cv_prog_compiler_c_o=no
9625 $RM -r conftest 2>/dev/null
9629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9631 lt_compiler_flag="-o out/conftest2.$ac_objext"
9632 # Insert the option either (1) after the last *FLAGS variable, or
9633 # (2) before a word containing "conftest.", or (3) at the end.
9634 # Note that $ac_compile itself does not contain backslashes and begins
9635 # with a dollar sign (not a hyphen), so the echo should work correctly.
9636 lt_compile=`echo "$ac_compile" | $SED \
9637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9639 -e 's:$: $lt_compiler_flag:'`
9640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9641 (eval "$lt_compile" 2>out/conftest.err)
9643 cat out/conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9647 # The compiler can only warn and ignore the option if not recognized
9648 # So say no if there are warnings
9649 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9650 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9651 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9652 lt_cv_prog_compiler_c_o=yes
9657 # SGI C++ compiler will create directory out/ii_files/ for
9658 # template instantiation
9659 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9660 $RM out/* && rmdir out
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9667 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9675 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9676 if ${lt_cv_prog_compiler_c_o+:} false; then :
9677 $as_echo_n "(cached) " >&6
9679 lt_cv_prog_compiler_c_o=no
9680 $RM -r conftest 2>/dev/null
9684 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9686 lt_compiler_flag="-o out/conftest2.$ac_objext"
9687 # Insert the option either (1) after the last *FLAGS variable, or
9688 # (2) before a word containing "conftest.", or (3) at the end.
9689 # Note that $ac_compile itself does not contain backslashes and begins
9690 # with a dollar sign (not a hyphen), so the echo should work correctly.
9691 lt_compile=`echo "$ac_compile" | $SED \
9692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9694 -e 's:$: $lt_compiler_flag:'`
9695 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9696 (eval "$lt_compile" 2>out/conftest.err)
9698 cat out/conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9702 # The compiler can only warn and ignore the option if not recognized
9703 # So say no if there are warnings
9704 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9705 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9706 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9707 lt_cv_prog_compiler_c_o=yes
9712 # SGI C++ compiler will create directory out/ii_files/ for
9713 # template instantiation
9714 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9715 $RM out/* && rmdir out
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9722 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9727 hard_links=nottested
9728 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9729 # do not overwrite the value of need_locks provided by the user
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9731 $as_echo_n "checking if we can lock with hard links... " >&6; }
9734 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9736 ln conftest.a conftest.b 2>&5 || hard_links=no
9737 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9739 $as_echo "$hard_links" >&6; }
9740 if test no = "$hard_links"; then
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9742 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9755 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9758 allow_undefined_flag=
9759 always_export_symbols=no
9761 archive_expsym_cmds=
9762 compiler_needs_object=no
9763 enable_shared_with_static_runtimes=no
9764 export_dynamic_flag_spec=
9765 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9766 hardcode_automatic=no
9768 hardcode_direct_absolute=no
9769 hardcode_libdir_flag_spec=
9770 hardcode_libdir_separator=
9772 hardcode_shlibpath_var=unsupported
9774 link_all_deplibs=unknown
9777 old_archive_from_new_cmds=
9778 old_archive_from_expsyms_cmds=
9779 thread_safe_flag_spec=
9780 whole_archive_flag_spec=
9781 # include_expsyms should be a list of space-separated symbols to be *always*
9782 # included in the symbol list
9784 # exclude_expsyms can be an extended regexp of symbols to exclude
9785 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9786 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9787 # as well as any symbol that contains 'd'.
9788 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9789 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9790 # platforms (ab)use it in PIC code, but their linkers get confused if
9791 # the symbol is explicitly referenced. Since portable code cannot
9792 # rely on this symbol name, it's probably fine to never include it in
9793 # preloaded symbol tables.
9794 # Exclude shared library initialization/finalization symbols.
9795 extract_expsyms_cmds=
9798 cygwin* | mingw* | pw32* | cegcc*)
9799 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9800 # When not using gcc, we currently assume that we are using
9801 # Microsoft Visual C++.
9802 if test yes != "$GCC"; then
9807 # we just hope/assume this is gcc and not c89 (= MSVC++)
9817 # On some targets, GNU ld is compatible enough with the native linker
9818 # that we're better off using the native interface for both.
9819 lt_use_gnu_ld_interface=no
9820 if test yes = "$with_gnu_ld"; then
9823 # The AIX port of GNU ld has always aspired to compatibility
9824 # with the native linker. However, as the warning in the GNU ld
9825 # block says, versions before 2.19.5* couldn't really create working
9826 # shared libraries, regardless of the interface used.
9827 case `$LD -v 2>&1` in
9828 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9829 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9830 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9832 lt_use_gnu_ld_interface=yes
9837 lt_use_gnu_ld_interface=yes
9842 if test yes = "$lt_use_gnu_ld_interface"; then
9843 # If archive_cmds runs LD, not CC, wlarc should be empty
9846 # Set some defaults for GNU ld with shared library support. These
9847 # are reset later if shared libraries are not supported. Putting them
9848 # here allows them to be overridden if necessary.
9849 runpath_var=LD_RUN_PATH
9850 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9851 export_dynamic_flag_spec='$wl--export-dynamic'
9852 # ancient GNU ld didn't support --whole-archive et. al.
9853 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9854 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9856 whole_archive_flag_spec=
9858 supports_anon_versioning=no
9859 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9860 *GNU\ gold*) supports_anon_versioning=yes ;;
9861 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9862 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9863 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9864 *\ 2.11.*) ;; # other 2.11 versions
9865 *) supports_anon_versioning=yes ;;
9868 # See if GNU ld supports shared libraries.
9871 # On AIX/PPC, the GNU linker is very broken
9872 if test ia64 != "$host_cpu"; then
9876 *** Warning: the GNU linker, at least up to release 2.19, is reported
9877 *** to be unable to reliably create shared libraries on AIX.
9878 *** Therefore, libtool is disabling shared libraries support. If you
9879 *** really care for shared libraries, you may want to install binutils
9880 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9881 *** You will then need to restart the configuration process.
9890 # see comment about AmigaOS4 .so support
9891 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9892 archive_expsym_cmds=''
9895 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)'
9896 hardcode_libdir_flag_spec='-L$libdir'
9897 hardcode_minus_L=yes
9903 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9904 allow_undefined_flag=unsupported
9905 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9906 # support --undefined. This deserves some investigation. FIXME
9907 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9913 cygwin* | mingw* | pw32* | cegcc*)
9914 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9915 # as there is no search path for DLLs.
9916 hardcode_libdir_flag_spec='-L$libdir'
9917 export_dynamic_flag_spec='$wl--export-all-symbols'
9918 allow_undefined_flag=unsupported
9919 always_export_symbols=no
9920 enable_shared_with_static_runtimes=yes
9921 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9922 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9924 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9925 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9926 # If the export-symbols file already is a .def file, use it as
9927 # is; otherwise, prepend EXPORTS...
9928 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9929 cp $export_symbols $output_objdir/$soname.def;
9931 echo EXPORTS > $output_objdir/$soname.def;
9932 cat $export_symbols >> $output_objdir/$soname.def;
9934 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9942 link_all_deplibs=yes
9946 hardcode_libdir_flag_spec='-L$libdir'
9947 hardcode_minus_L=yes
9948 allow_undefined_flag=unsupported
9950 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9951 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9952 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9953 $ECHO EXPORTS >> $output_objdir/$libname.def~
9954 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9955 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9956 emximp -o $lib $output_objdir/$libname.def'
9957 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9958 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9959 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9960 $ECHO EXPORTS >> $output_objdir/$libname.def~
9962 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9963 prefix_cmds="$prefix_cmds -e 1d";
9965 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9966 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9967 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9968 emximp -o $lib $output_objdir/$libname.def'
9969 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9970 enable_shared_with_static_runtimes=yes
9975 hardcode_shlibpath_var=no
9976 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9977 export_dynamic_flag_spec='$wl-E'
9978 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9979 # Instead, shared libraries are loaded at an image base (0x10000000 by
9980 # default) and relocated if they conflict, which is a slow very memory
9981 # consuming and fragmenting process. To avoid this, we pick a random,
9982 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9983 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9984 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9985 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9988 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9990 if test linux-dietlibc = "$host_os"; then
9991 case $cc_basename in
9992 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9995 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9996 && test no = "$tmp_diet"
9998 tmp_addflag=' $pic_flag'
9999 tmp_sharedflag='-shared'
10000 case $cc_basename,$host_cpu in
10001 pgcc*) # Portland Group C compiler
10002 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10003 tmp_addflag=' $pic_flag'
10005 pgf77* | pgf90* | pgf95* | pgfortran*)
10006 # Portland Group f77 and f90 compilers
10007 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10008 tmp_addflag=' $pic_flag -Mnomain' ;;
10009 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10010 tmp_addflag=' -i_dynamic' ;;
10011 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10012 tmp_addflag=' -i_dynamic -nofor_main' ;;
10013 ifc* | ifort*) # Intel Fortran compiler
10014 tmp_addflag=' -nofor_main' ;;
10015 lf95*) # Lahey Fortran 8.1
10016 whole_archive_flag_spec=
10017 tmp_sharedflag='--shared' ;;
10018 nagfor*) # NAGFOR 5.3
10019 tmp_sharedflag='-Wl,-shared' ;;
10020 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10021 tmp_sharedflag='-qmkshrobj'
10023 nvcc*) # Cuda Compiler Driver 2.2
10024 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10025 compiler_needs_object=yes
10028 case `$CC -V 2>&1 | sed 5q` in
10029 *Sun\ C*) # Sun C 5.9
10030 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10031 compiler_needs_object=yes
10032 tmp_sharedflag='-G' ;;
10033 *Sun\ F*) # Sun Fortran 8.3
10034 tmp_sharedflag='-G' ;;
10036 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10038 if test yes = "$supports_anon_versioning"; then
10039 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10040 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10041 echo "local: *; };" >> $output_objdir/$libname.ver~
10042 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10045 case $cc_basename in
10047 export_dynamic_flag_spec='-rdynamic'
10049 xlf* | bgf* | bgxlf* | mpixlf*)
10050 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10051 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10052 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10053 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10054 if test yes = "$supports_anon_versioning"; then
10055 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10056 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10057 echo "local: *; };" >> $output_objdir/$libname.ver~
10058 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10068 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10069 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10072 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10073 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10078 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10082 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10083 *** create shared libraries on Solaris systems. Therefore, libtool
10084 *** is disabling shared libraries support. We urge you to upgrade GNU
10085 *** binutils to release 2.9.1 or newer. Another option is to modify
10086 *** your PATH or compiler configuration so that the native linker is
10087 *** used, and then restart.
10090 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10091 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10092 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10098 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10099 case `$LD -v 2>&1` in
10100 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10104 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10105 *** reliably create shared libraries on SCO systems. Therefore, libtool
10106 *** is disabling shared libraries support. We urge you to upgrade GNU
10107 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10108 *** your PATH or compiler configuration so that the native linker is
10109 *** used, and then restart.
10114 # For security reasons, it is highly recommended that you always
10115 # use absolute paths for naming shared libraries, and exclude the
10116 # DT_RUNPATH tag from executables and libraries. But doing so
10117 # requires that you compile everything twice, which is a pain.
10118 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10119 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10121 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10130 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10132 hardcode_direct=yes
10133 hardcode_shlibpath_var=no
10137 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10138 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10139 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10146 if test no = "$ld_shlibs"; then
10148 hardcode_libdir_flag_spec=
10149 export_dynamic_flag_spec=
10150 whole_archive_flag_spec=
10153 # PORTME fill in a description of your system's linker (not GNU ld)
10156 allow_undefined_flag=unsupported
10157 always_export_symbols=yes
10158 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'
10159 # Note: this linker hardcodes the directories in LIBPATH if there
10160 # are no directories specified by -L.
10161 hardcode_minus_L=yes
10162 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10163 # Neither direct hardcoding nor static linking is supported with a
10165 hardcode_direct=unsupported
10170 if test ia64 = "$host_cpu"; then
10171 # On IA64, the linker does run time linking by default, so we don't
10172 # have to do anything special.
10173 aix_use_runtimelinking=no
10174 exp_sym_flag='-Bexport'
10177 # If we're using GNU nm, then we don't want the "-C" option.
10178 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10179 # Without the "-l" option, or with the "-B" option, AIX nm treats
10180 # weak defined symbols like other global defined symbols, whereas
10181 # GNU nm marks them as "W".
10182 # While the 'weak' keyword is ignored in the Export File, we need
10183 # it in the Import File for the 'aix-soname' feature, so we have
10184 # to replace the "-B" option with "-P" for AIX nm.
10185 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10186 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10188 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10190 aix_use_runtimelinking=no
10192 # Test if we are trying to use run time linking or normal
10193 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10194 # have runtime linking enabled, and use it for executables.
10195 # For shared libraries, we enable/disable runtime linking
10196 # depending on the kind of the shared library created -
10197 # when "with_aix_soname,aix_use_runtimelinking" is:
10198 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10199 # "aix,yes" lib.so shared, rtl:yes, for executables
10200 # lib.a static archive
10201 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10202 # lib.a(lib.so.V) shared, rtl:no, for executables
10203 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10204 # lib.a(lib.so.V) shared, rtl:no
10205 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10206 # lib.a static archive
10207 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10208 for ld_flag in $LDFLAGS; do
10209 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10210 aix_use_runtimelinking=yes
10214 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10215 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10216 # so we don't have lib.a shared libs to link our executables.
10217 # We have to force runtime linking in this case.
10218 aix_use_runtimelinking=yes
10219 LDFLAGS="$LDFLAGS -Wl,-brtl"
10224 exp_sym_flag='-bexport'
10225 no_entry_flag='-bnoentry'
10228 # When large executables or shared objects are built, AIX ld can
10229 # have problems creating the table of contents. If linking a library
10230 # or program results in "error TOC overflow" add -mminimal-toc to
10231 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10232 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10235 hardcode_direct=yes
10236 hardcode_direct_absolute=yes
10237 hardcode_libdir_separator=':'
10238 link_all_deplibs=yes
10239 file_list_spec='$wl-f,'
10240 case $with_aix_soname,$aix_use_runtimelinking in
10241 aix,*) ;; # traditional, no import file
10242 svr4,* | *,yes) # use import file
10243 # The Import File defines what to hardcode.
10245 hardcode_direct_absolute=no
10249 if test yes = "$GCC"; then
10250 case $host_os in aix4.[012]|aix4.[012].*)
10251 # We only want to do this on AIX 4.2 and lower, the check
10252 # below for broken collect2 doesn't work under 4.3+
10253 collect2name=`$CC -print-prog-name=collect2`
10254 if test -f "$collect2name" &&
10255 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10257 # We have reworked collect2
10260 # We have old collect2
10261 hardcode_direct=unsupported
10262 # It fails to find uninstalled libraries when the uninstalled
10263 # path is not listed in the libpath. Setting hardcode_minus_L
10264 # to unsupported forces relinking
10265 hardcode_minus_L=yes
10266 hardcode_libdir_flag_spec='-L$libdir'
10267 hardcode_libdir_separator=
10271 shared_flag='-shared'
10272 if test yes = "$aix_use_runtimelinking"; then
10273 shared_flag="$shared_flag "'$wl-G'
10275 # Need to ensure runtime linking is disabled for the traditional
10276 # shared library, or the linker may eventually find shared libraries
10277 # /with/ Import File - we do not want to mix them.
10278 shared_flag_aix='-shared'
10279 shared_flag_svr4='-shared $wl-G'
10282 if test ia64 = "$host_cpu"; then
10283 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10284 # chokes on -Wl,-G. The following line is correct:
10287 if test yes = "$aix_use_runtimelinking"; then
10288 shared_flag='$wl-G'
10290 shared_flag='$wl-bM:SRE'
10292 shared_flag_aix='$wl-bM:SRE'
10293 shared_flag_svr4='$wl-G'
10297 export_dynamic_flag_spec='$wl-bexpall'
10298 # It seems that -bexpall does not export symbols beginning with
10299 # underscore (_), so it is better to generate a list of symbols to export.
10300 always_export_symbols=yes
10301 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10302 # Warning - without using the other runtime loading flags (-brtl),
10303 # -berok will link without error, but may produce a broken library.
10304 allow_undefined_flag='-berok'
10305 # Determine the default libpath from the value encoded in an
10306 # empty executable.
10307 if test set = "${lt_cv_aix_libpath+set}"; then
10308 aix_libpath=$lt_cv_aix_libpath
10310 if ${lt_cv_aix_libpath_+:} false; then :
10311 $as_echo_n "(cached) " >&6
10313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10314 /* end confdefs.h. */
10324 if ac_fn_c_try_link "$LINENO"; then :
10326 lt_aix_libpath_sed='
10327 /Import File Strings/,/^$/ {
10329 s/^0 *\([^ ]*\) *$/\1/
10333 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10334 # Check for a 64-bit object if we didn't find anything.
10335 if test -z "$lt_cv_aix_libpath_"; then
10336 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10339 rm -f core conftest.err conftest.$ac_objext \
10340 conftest$ac_exeext conftest.$ac_ext
10341 if test -z "$lt_cv_aix_libpath_"; then
10342 lt_cv_aix_libpath_=/usr/lib:/lib
10347 aix_libpath=$lt_cv_aix_libpath_
10350 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10351 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10353 if test ia64 = "$host_cpu"; then
10354 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10355 allow_undefined_flag="-z nodefs"
10356 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
10358 # Determine the default libpath from the value encoded in an
10359 # empty executable.
10360 if test set = "${lt_cv_aix_libpath+set}"; then
10361 aix_libpath=$lt_cv_aix_libpath
10363 if ${lt_cv_aix_libpath_+:} false; then :
10364 $as_echo_n "(cached) " >&6
10366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367 /* end confdefs.h. */
10377 if ac_fn_c_try_link "$LINENO"; then :
10379 lt_aix_libpath_sed='
10380 /Import File Strings/,/^$/ {
10382 s/^0 *\([^ ]*\) *$/\1/
10386 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10387 # Check for a 64-bit object if we didn't find anything.
10388 if test -z "$lt_cv_aix_libpath_"; then
10389 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10392 rm -f core conftest.err conftest.$ac_objext \
10393 conftest$ac_exeext conftest.$ac_ext
10394 if test -z "$lt_cv_aix_libpath_"; then
10395 lt_cv_aix_libpath_=/usr/lib:/lib
10400 aix_libpath=$lt_cv_aix_libpath_
10403 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10404 # Warning - without using the other run time loading flags,
10405 # -berok will link without error, but may produce a broken library.
10406 no_undefined_flag=' $wl-bernotok'
10407 allow_undefined_flag=' $wl-berok'
10408 if test yes = "$with_gnu_ld"; then
10409 # We only use this code for GNU lds that support --whole-archive.
10410 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10412 # Exported symbols can be pulled into shared objects from archives
10413 whole_archive_flag_spec='$convenience'
10415 archive_cmds_need_lc=yes
10416 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10417 # -brtl affects multiple linker settings, -berok does not and is overridden later
10418 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10419 if test svr4 != "$with_aix_soname"; then
10420 # This is similar to how AIX traditionally builds its shared libraries.
10421 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10423 if test aix != "$with_aix_soname"; then
10424 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10426 # used by -dlpreopen to get the symbols
10427 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10429 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10437 # see comment about AmigaOS4 .so support
10438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10439 archive_expsym_cmds=''
10442 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)'
10443 hardcode_libdir_flag_spec='-L$libdir'
10444 hardcode_minus_L=yes
10450 export_dynamic_flag_spec=-rdynamic
10453 cygwin* | mingw* | pw32* | cegcc*)
10454 # When not using gcc, we currently assume that we are using
10455 # Microsoft Visual C++.
10456 # hardcode_libdir_flag_spec is actually meaningless, as there is
10457 # no search path for DLLs.
10458 case $cc_basename in
10461 hardcode_libdir_flag_spec=' '
10462 allow_undefined_flag=unsupported
10463 always_export_symbols=yes
10465 # Tell ltmain to make .lib files, not .a files.
10467 # Tell ltmain to make .dll files, not .so files.
10469 # FIXME: Setting linknames here is a bad hack.
10470 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10471 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10472 cp "$export_symbols" "$output_objdir/$soname.def";
10473 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10475 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10477 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10479 # The linker will not automatically build a static lib if we build a DLL.
10480 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10481 enable_shared_with_static_runtimes=yes
10482 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10483 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10485 old_postinstall_cmds='chmod 644 $oldlib'
10486 postlink_cmds='lt_outputfile="@OUTPUT@"~
10487 lt_tool_outputfile="@TOOL_OUTPUT@"~
10488 case $lt_outputfile in
10491 lt_outputfile=$lt_outputfile.exe
10492 lt_tool_outputfile=$lt_tool_outputfile.exe
10495 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10496 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10497 $RM "$lt_outputfile.manifest";
10501 # Assume MSVC wrapper
10502 hardcode_libdir_flag_spec=' '
10503 allow_undefined_flag=unsupported
10504 # Tell ltmain to make .lib files, not .a files.
10506 # Tell ltmain to make .dll files, not .so files.
10508 # FIXME: Setting linknames here is a bad hack.
10509 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10510 # The linker will automatically build a .lib file if we build a DLL.
10511 old_archive_from_new_cmds='true'
10512 # FIXME: Should let the user specify the lib program.
10513 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10514 enable_shared_with_static_runtimes=yes
10519 darwin* | rhapsody*)
10522 archive_cmds_need_lc=no
10524 hardcode_automatic=yes
10525 hardcode_shlibpath_var=unsupported
10526 if test yes = "$lt_cv_ld_force_load"; then
10527 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10530 whole_archive_flag_spec=''
10532 link_all_deplibs=yes
10533 allow_undefined_flag=$_lt_dar_allow_undefined
10534 case $cc_basename in
10535 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10536 *) _lt_dar_can_shared=$GCC ;;
10538 if test yes = "$_lt_dar_can_shared"; then
10539 output_verbose_link_cmd=func_echo_all
10540 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10541 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10542 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10543 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10553 hardcode_libdir_flag_spec='-L$libdir'
10554 hardcode_shlibpath_var=no
10557 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10558 # support. Future versions do this automatically, but an explicit c++rt0.o
10559 # does not break anything, and helps significantly (at the cost of a little
10562 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10563 hardcode_libdir_flag_spec='-R$libdir'
10564 hardcode_direct=yes
10565 hardcode_shlibpath_var=no
10568 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10571 hardcode_direct=yes
10572 hardcode_minus_L=yes
10573 hardcode_shlibpath_var=no
10576 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10577 freebsd* | dragonfly*)
10578 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10579 hardcode_libdir_flag_spec='-R$libdir'
10580 hardcode_direct=yes
10581 hardcode_shlibpath_var=no
10585 if test yes = "$GCC"; then
10586 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10588 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10590 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10591 hardcode_libdir_separator=:
10592 hardcode_direct=yes
10594 # hardcode_minus_L: Not really in the search PATH,
10595 # but as the default location of the library.
10596 hardcode_minus_L=yes
10597 export_dynamic_flag_spec='$wl-E'
10601 if test yes,no = "$GCC,$with_gnu_ld"; then
10602 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10604 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10606 if test no = "$with_gnu_ld"; then
10607 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10608 hardcode_libdir_separator=:
10609 hardcode_direct=yes
10610 hardcode_direct_absolute=yes
10611 export_dynamic_flag_spec='$wl-E'
10612 # hardcode_minus_L: Not really in the search PATH,
10613 # but as the default location of the library.
10614 hardcode_minus_L=yes
10619 if test yes,no = "$GCC,$with_gnu_ld"; then
10622 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10625 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10628 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10634 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10637 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10641 # Older versions of the 11.00 compiler do not understand -b yet
10642 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10644 $as_echo_n "checking if $CC understands -b... " >&6; }
10645 if ${lt_cv_prog_compiler__b+:} false; then :
10646 $as_echo_n "(cached) " >&6
10648 lt_cv_prog_compiler__b=no
10649 save_LDFLAGS=$LDFLAGS
10650 LDFLAGS="$LDFLAGS -b"
10651 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10652 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10653 # The linker can only warn and ignore the option if not recognized
10654 # So say no if there are warnings
10655 if test -s conftest.err; then
10656 # Append any errors to the config.log.
10657 cat conftest.err 1>&5
10658 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10660 if diff conftest.exp conftest.er2 >/dev/null; then
10661 lt_cv_prog_compiler__b=yes
10664 lt_cv_prog_compiler__b=yes
10668 LDFLAGS=$save_LDFLAGS
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10672 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10674 if test yes = "$lt_cv_prog_compiler__b"; then
10675 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10677 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10683 if test no = "$with_gnu_ld"; then
10684 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10685 hardcode_libdir_separator=:
10690 hardcode_shlibpath_var=no
10693 hardcode_direct=yes
10694 hardcode_direct_absolute=yes
10695 export_dynamic_flag_spec='$wl-E'
10697 # hardcode_minus_L: Not really in the search PATH,
10698 # but as the default location of the library.
10699 hardcode_minus_L=yes
10705 irix5* | irix6* | nonstopux*)
10706 if test yes = "$GCC"; then
10707 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10708 # Try to use the -exported_symbol ld option, if it does not
10709 # work, assume that -exports_file does not work either and
10710 # implicitly export all symbols.
10711 # This should be the same for all languages, so no per-tag cache variable.
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10713 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10714 if ${lt_cv_irix_exported_symbol+:} false; then :
10715 $as_echo_n "(cached) " >&6
10717 save_LDFLAGS=$LDFLAGS
10718 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10721 int foo (void) { return 0; }
10723 if ac_fn_c_try_link "$LINENO"; then :
10724 lt_cv_irix_exported_symbol=yes
10726 lt_cv_irix_exported_symbol=no
10728 rm -f core conftest.err conftest.$ac_objext \
10729 conftest$ac_exeext conftest.$ac_ext
10730 LDFLAGS=$save_LDFLAGS
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10733 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10734 if test yes = "$lt_cv_irix_exported_symbol"; then
10735 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10739 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10741 archive_cmds_need_lc='no'
10742 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10743 hardcode_libdir_separator=:
10745 link_all_deplibs=yes
10749 case $cc_basename in
10751 # Fabrice Bellard et al's Tiny C Compiler
10753 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10759 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10760 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10762 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10764 hardcode_libdir_flag_spec='-R$libdir'
10765 hardcode_direct=yes
10766 hardcode_shlibpath_var=no
10770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10771 hardcode_direct=yes
10772 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10773 hardcode_libdir_separator=:
10774 hardcode_shlibpath_var=no
10780 openbsd* | bitrig*)
10781 if test -f /usr/libexec/ld.so; then
10782 hardcode_direct=yes
10783 hardcode_shlibpath_var=no
10784 hardcode_direct_absolute=yes
10785 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10786 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10787 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10788 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10789 export_dynamic_flag_spec='$wl-E'
10791 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10792 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10800 hardcode_libdir_flag_spec='-L$libdir'
10801 hardcode_minus_L=yes
10802 allow_undefined_flag=unsupported
10804 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10805 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10806 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10807 $ECHO EXPORTS >> $output_objdir/$libname.def~
10808 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10809 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10810 emximp -o $lib $output_objdir/$libname.def'
10811 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10812 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10813 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10814 $ECHO EXPORTS >> $output_objdir/$libname.def~
10815 prefix_cmds="$SED"~
10816 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10817 prefix_cmds="$prefix_cmds -e 1d";
10819 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10820 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10821 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10822 emximp -o $lib $output_objdir/$libname.def'
10823 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10824 enable_shared_with_static_runtimes=yes
10828 if test yes = "$GCC"; then
10829 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10830 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10832 allow_undefined_flag=' -expect_unresolved \*'
10833 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10835 archive_cmds_need_lc='no'
10836 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10837 hardcode_libdir_separator=:
10840 osf4* | osf5*) # as osf3* with the addition of -msym flag
10841 if test yes = "$GCC"; then
10842 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10843 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10844 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10846 allow_undefined_flag=' -expect_unresolved \*'
10847 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10848 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10849 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10851 # Both c and cxx compiler support -rpath directly
10852 hardcode_libdir_flag_spec='-rpath $libdir'
10854 archive_cmds_need_lc='no'
10855 hardcode_libdir_separator=:
10859 no_undefined_flag=' -z defs'
10860 if test yes = "$GCC"; then
10862 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10863 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10864 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10866 case `$CC -V 2>&1` in
10869 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10870 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10871 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10875 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10876 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10877 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10881 hardcode_libdir_flag_spec='-R$libdir'
10882 hardcode_shlibpath_var=no
10884 solaris2.[0-5] | solaris2.[0-5].*) ;;
10886 # The compiler driver will combine and reorder linker options,
10887 # but understands '-z linker_flag'. GCC discards it without '$wl',
10888 # but is careful enough not to reorder.
10889 # Supported since Solaris 2.6 (maybe 2.5.1?)
10890 if test yes = "$GCC"; then
10891 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10893 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10897 link_all_deplibs=yes
10901 if test sequent = "$host_vendor"; then
10902 # Use $CC to link under sequent, because it throws in some extra .o
10903 # files that make .init and .fini sections work.
10904 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10906 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10908 hardcode_libdir_flag_spec='-L$libdir'
10909 hardcode_direct=yes
10910 hardcode_minus_L=yes
10911 hardcode_shlibpath_var=no
10915 case $host_vendor in
10917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10918 hardcode_direct=yes # is this really true???
10921 ## LD is ld it makes a PLAMLIB
10922 ## CC just makes a GrossModule.
10923 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10924 reload_cmds='$CC -r -o $output$reload_objs'
10928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10929 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10932 runpath_var='LD_RUN_PATH'
10933 hardcode_shlibpath_var=no
10937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10938 hardcode_shlibpath_var=no
10939 export_dynamic_flag_spec='-Bexport'
10943 if test -d /usr/nec; then
10944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10945 hardcode_shlibpath_var=no
10946 runpath_var=LD_RUN_PATH
10947 hardcode_runpath_var=yes
10952 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10953 no_undefined_flag='$wl-z,text'
10954 archive_cmds_need_lc=no
10955 hardcode_shlibpath_var=no
10956 runpath_var='LD_RUN_PATH'
10958 if test yes = "$GCC"; then
10959 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10960 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10962 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10963 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10967 sysv5* | sco3.2v5* | sco5v6*)
10968 # Note: We CANNOT use -z defs as we might desire, because we do not
10969 # link with -lc, and that would cause any symbols used from libc to
10970 # always be unresolved, which means just about no library would
10971 # ever link correctly. If we're not using GNU ld we use -z text
10972 # though, which does catch some bad symbols but isn't as heavy-handed
10974 no_undefined_flag='$wl-z,text'
10975 allow_undefined_flag='$wl-z,nodefs'
10976 archive_cmds_need_lc=no
10977 hardcode_shlibpath_var=no
10978 hardcode_libdir_flag_spec='$wl-R,$libdir'
10979 hardcode_libdir_separator=':'
10980 link_all_deplibs=yes
10981 export_dynamic_flag_spec='$wl-Bexport'
10982 runpath_var='LD_RUN_PATH'
10984 if test yes = "$GCC"; then
10985 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10986 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10988 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10989 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10995 hardcode_libdir_flag_spec='-L$libdir'
10996 hardcode_shlibpath_var=no
11004 if test sni = "$host_vendor"; then
11006 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11007 export_dynamic_flag_spec='$wl-Blargedynsym'
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11014 $as_echo "$ld_shlibs" >&6; }
11015 test no = "$ld_shlibs" && can_build_shared=no
11017 with_gnu_ld=$with_gnu_ld
11034 # Do we need to explicitly link libc?
11036 case "x$archive_cmds_need_lc" in
11038 # Assume -lc should be added
11039 archive_cmds_need_lc=yes
11041 if test yes,yes = "$GCC,$enable_shared"; then
11042 case $archive_cmds in
11044 # FIXME: we may have to deal with multi-command sequences.
11047 # Test whether the compiler implicitly links with -lc since on some
11048 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11049 # to ld, don't add -lc before -lgcc.
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11051 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11052 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11053 $as_echo_n "(cached) " >&6
11056 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11059 (eval $ac_compile) 2>&5
11061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11062 test $ac_status = 0; } 2>conftest.err; then
11065 libobjs=conftest.$ac_objext
11067 wl=$lt_prog_compiler_wl
11068 pic_flag=$lt_prog_compiler_pic
11074 lt_save_allow_undefined_flag=$allow_undefined_flag
11075 allow_undefined_flag=
11076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11077 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11080 test $ac_status = 0; }
11082 lt_cv_archive_cmds_need_lc=no
11084 lt_cv_archive_cmds_need_lc=yes
11086 allow_undefined_flag=$lt_save_allow_undefined_flag
11088 cat conftest.err 1>&5
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11094 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11095 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11254 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11256 if test yes = "$GCC"; then
11258 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11259 *) lt_awk_arg='/^libraries:/' ;;
11262 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11263 *) lt_sed_strip_eq='s|=/|/|g' ;;
11265 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11266 case $lt_search_path_spec in
11268 # if the path contains ";" then we assume it to be the separator
11269 # otherwise default to the standard path separator (i.e. ":") - it is
11270 # assumed that no part of a normal pathname contains ";" but that should
11271 # okay in the real world where ";" in dirpaths is itself problematic.
11272 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11275 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11278 # Ok, now we have the path, separated by spaces, we can step through it
11279 # and add multilib dir if necessary...
11280 lt_tmp_lt_search_path_spec=
11281 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11282 # ...but if some path component already ends with the multilib dir we assume
11283 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11284 case "$lt_multi_os_dir; $lt_search_path_spec " in
11285 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11289 for lt_sys_path in $lt_search_path_spec; do
11290 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11291 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11292 elif test -n "$lt_multi_os_dir"; then
11293 test -d "$lt_sys_path" && \
11294 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11297 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11298 BEGIN {RS = " "; FS = "/|\n";} {
11301 for (lt_i = NF; lt_i > 0; lt_i--) {
11302 if ($lt_i != "" && $lt_i != ".") {
11303 if ($lt_i == "..") {
11306 if (lt_count == 0) {
11307 lt_foo = "/" $lt_i lt_foo;
11314 if (lt_foo != "") { lt_freq[lt_foo]++; }
11315 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11317 # AWK program above erroneously prepends '/' to C:/dos/paths
11320 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11321 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11323 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11325 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11327 library_names_spec=
11328 libname_spec='lib$name'
11332 postuninstall_cmds=
11336 shlibpath_overrides_runpath=unknown
11338 dynamic_linker="$host_os ld.so"
11339 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11340 need_lib_prefix=unknown
11341 hardcode_into_libs=no
11343 # when you set need_version to no, make sure it does not cause -set_version
11344 # flags to be left without arguments
11345 need_version=unknown
11351 version_type=linux # correct to gnu/linux during the next big refactor
11352 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11353 shlibpath_var=LIBPATH
11355 # AIX 3 has no versioning support, so we append a major version to the name.
11356 soname_spec='$libname$release$shared_ext$major'
11360 version_type=linux # correct to gnu/linux during the next big refactor
11363 hardcode_into_libs=yes
11364 if test ia64 = "$host_cpu"; then
11365 # AIX 5 supports IA64
11366 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11367 shlibpath_var=LD_LIBRARY_PATH
11369 # With GCC up to 2.95.x, collect2 would create an import file
11370 # for dependence libraries. The import file would start with
11371 # the line '#! .'. This would cause the generated library to
11372 # depend on '.', always an invalid library. This was fixed in
11373 # development snapshots of GCC prior to 3.0.
11375 aix4 | aix4.[01] | aix4.[01].*)
11376 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11378 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11381 can_build_shared=no
11385 # Using Import Files as archive members, it is possible to support
11386 # filename-based versioning of shared library archives on AIX. While
11387 # this would work for both with and without runtime linking, it will
11388 # prevent static linking of such archives. So we do filename-based
11389 # shared library versioning with .so extension only, which is used
11390 # when both runtime linking and shared linking is enabled.
11391 # Unfortunately, runtime linking may impact performance, so we do
11392 # not want this to be the default eventually. Also, we use the
11393 # versioned .so libs for executables only if there is the -brtl
11394 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11395 # To allow for filename-based versioning support, we need to create
11396 # libNAME.so.V as an archive file, containing:
11397 # *) an Import File, referring to the versioned filename of the
11398 # archive as well as the shared archive member, telling the
11399 # bitwidth (32 or 64) of that shared object, and providing the
11400 # list of exported symbols of that shared object, eventually
11401 # decorated with the 'weak' keyword
11402 # *) the shared object with the F_LOADONLY flag set, to really avoid
11403 # it being seen by the linker.
11404 # At run time we better use the real file rather than another symlink,
11405 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11407 case $with_aix_soname,$aix_use_runtimelinking in
11408 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11409 # soname into executable. Probably we can add versioning support to
11410 # collect2, so additional links can be useful in future.
11411 aix,yes) # traditional libtool
11412 dynamic_linker='AIX unversionable lib.so'
11413 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11414 # instead of lib<name>.a to let people know that these are not
11415 # typical AIX shared libraries.
11416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11418 aix,no) # traditional AIX only
11419 dynamic_linker='AIX lib.a(lib.so.V)'
11420 # We preserve .a as extension for shared libraries through AIX4.2
11421 # and later when we are not doing run time linking.
11422 library_names_spec='$libname$release.a $libname.a'
11423 soname_spec='$libname$release$shared_ext$major'
11425 svr4,*) # full svr4 only
11426 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11427 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11428 # We do not specify a path in Import Files, so LIBPATH fires.
11429 shlibpath_overrides_runpath=yes
11431 *,yes) # both, prefer svr4
11432 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11433 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11434 # unpreferred sharedlib libNAME.a needs extra handling
11435 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11436 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11437 # We do not specify a path in Import Files, so LIBPATH fires.
11438 shlibpath_overrides_runpath=yes
11440 *,no) # both, prefer aix
11441 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11442 library_names_spec='$libname$release.a $libname.a'
11443 soname_spec='$libname$release$shared_ext$major'
11444 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11445 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11446 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11449 shlibpath_var=LIBPATH
11456 # Since July 2007 AmigaOS4 officially supports .so libraries.
11457 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11461 library_names_spec='$libname.ixlibrary $libname.a'
11462 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11463 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11469 library_names_spec='$libname$shared_ext'
11470 dynamic_linker="$host_os ld.so"
11471 shlibpath_var=LIBRARY_PATH
11475 version_type=linux # correct to gnu/linux during the next big refactor
11477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11478 soname_spec='$libname$release$shared_ext$major'
11479 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11480 shlibpath_var=LD_LIBRARY_PATH
11481 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11482 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11483 # the default ld.so.conf also contains /usr/contrib/lib and
11484 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11485 # libtool to hard-code these into programs
11488 cygwin* | mingw* | pw32* | cegcc*)
11489 version_type=windows
11494 case $GCC,$cc_basename in
11497 library_names_spec='$libname.dll.a'
11498 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11499 postinstall_cmds='base_file=`basename \$file`~
11500 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11501 dldir=$destdir/`dirname \$dlpath`~
11502 test -d \$dldir || mkdir -p \$dldir~
11503 $install_prog $dir/$dlname \$dldir/$dlname~
11504 chmod a+x \$dldir/$dlname~
11505 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11506 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11508 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11509 dlpath=$dir/\$dldll~
11511 shlibpath_overrides_runpath=yes
11515 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11516 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11518 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11521 # MinGW DLLs use traditional 'lib' prefix
11522 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11525 # pw32 DLLs use 'pw' prefix rather than 'lib'
11526 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11529 dynamic_linker='Win32 ld.exe'
11534 libname_spec='$name'
11535 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11536 library_names_spec='$libname.dll.lib'
11540 sys_lib_search_path_spec=
11543 for lt_path in $LIB
11546 # Let DOS variable expansion print the short 8.3 style file name.
11547 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11548 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11551 # Convert to MSYS style.
11552 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11555 # Convert to unix form, then to dos form, then back to unix form
11556 # but this time dos style (no spaces!) so that the unix form looks
11557 # like /cygdrive/c/PROGRA~1:/cygdr...
11558 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11559 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11560 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11563 sys_lib_search_path_spec=$LIB
11564 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11565 # It is most probably a Windows format PATH.
11566 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11568 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11570 # FIXME: find the short name or the path components, as spaces are
11571 # common. (e.g. "Program Files" -> "PROGRA~1")
11575 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11576 postinstall_cmds='base_file=`basename \$file`~
11577 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11578 dldir=$destdir/`dirname \$dlpath`~
11579 test -d \$dldir || mkdir -p \$dldir~
11580 $install_prog $dir/$dlname \$dldir/$dlname'
11581 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11582 dlpath=$dir/\$dldll~
11584 shlibpath_overrides_runpath=yes
11585 dynamic_linker='Win32 link.exe'
11589 # Assume MSVC wrapper
11590 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11591 dynamic_linker='Win32 ld.exe'
11594 # FIXME: first we should search . and the directory the executable is in
11598 darwin* | rhapsody*)
11599 dynamic_linker="$host_os dyld"
11600 version_type=darwin
11603 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11604 soname_spec='$libname$release$major$shared_ext'
11605 shlibpath_overrides_runpath=yes
11606 shlibpath_var=DYLD_LIBRARY_PATH
11607 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11609 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11610 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11614 version_type=linux # correct to gnu/linux during the next big refactor
11617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11618 soname_spec='$libname$release$shared_ext$major'
11619 shlibpath_var=LD_LIBRARY_PATH
11622 freebsd* | dragonfly*)
11623 # DragonFly does not have aout. When/if they implement a new
11624 # versioning mechanism, adjust this.
11625 if test -x /usr/bin/objformat; then
11626 objformat=`/usr/bin/objformat`
11629 freebsd[23].*) objformat=aout ;;
11630 *) objformat=elf ;;
11633 version_type=freebsd-$objformat
11634 case $version_type in
11636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11637 soname_spec='$libname$release$shared_ext$major'
11642 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11646 shlibpath_var=LD_LIBRARY_PATH
11649 shlibpath_overrides_runpath=yes
11651 freebsd3.[01]* | freebsdelf3.[01]*)
11652 shlibpath_overrides_runpath=yes
11653 hardcode_into_libs=yes
11655 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11656 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11657 shlibpath_overrides_runpath=no
11658 hardcode_into_libs=yes
11660 *) # from 4.6 on, and DragonFly
11661 shlibpath_overrides_runpath=yes
11662 hardcode_into_libs=yes
11668 version_type=linux # correct to gnu/linux during the next big refactor
11671 dynamic_linker="$host_os runtime_loader"
11672 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11673 soname_spec='$libname$release$shared_ext$major'
11674 shlibpath_var=LIBRARY_PATH
11675 shlibpath_overrides_runpath=no
11676 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11677 hardcode_into_libs=yes
11680 hpux9* | hpux10* | hpux11*)
11681 # Give a soname corresponding to the major version so that dld.sl refuses to
11682 # link against other versions.
11689 hardcode_into_libs=yes
11690 dynamic_linker="$host_os dld.so"
11691 shlibpath_var=LD_LIBRARY_PATH
11692 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11694 soname_spec='$libname$release$shared_ext$major'
11695 if test 32 = "$HPUX_IA64_MODE"; then
11696 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11697 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11699 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11700 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11705 hardcode_into_libs=yes
11706 dynamic_linker="$host_os dld.sl"
11707 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11708 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11710 soname_spec='$libname$release$shared_ext$major'
11711 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11712 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11716 dynamic_linker="$host_os dld.sl"
11717 shlibpath_var=SHLIB_PATH
11718 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11720 soname_spec='$libname$release$shared_ext$major'
11723 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11724 postinstall_cmds='chmod 555 $lib'
11725 # or fails outright, so override atomically:
11726 install_override_mode=555
11730 version_type=linux # correct to gnu/linux during the next big refactor
11733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11734 soname_spec='$libname$release$shared_ext$major'
11735 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11736 shlibpath_var=LD_LIBRARY_PATH
11737 shlibpath_overrides_runpath=no
11738 hardcode_into_libs=yes
11741 irix5* | irix6* | nonstopux*)
11743 nonstopux*) version_type=nonstopux ;;
11745 if test yes = "$lt_cv_prog_gnu_ld"; then
11746 version_type=linux # correct to gnu/linux during the next big refactor
11753 soname_spec='$libname$release$shared_ext$major'
11754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11756 irix5* | nonstopux*)
11757 libsuff= shlibsuff=
11760 case $LD in # libtool.m4 will add one of these switches to LD
11761 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11762 libsuff= shlibsuff= libmagic=32-bit;;
11763 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11764 libsuff=32 shlibsuff=N32 libmagic=N32;;
11765 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11766 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11767 *) libsuff= shlibsuff= libmagic=never-match;;
11771 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11772 shlibpath_overrides_runpath=no
11773 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11774 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11775 hardcode_into_libs=yes
11778 # No shared lib support for Linux oldld, aout, or coff.
11779 linux*oldld* | linux*aout* | linux*coff*)
11784 version_type=none # Android doesn't support versioned libraries.
11787 library_names_spec='$libname$release$shared_ext'
11788 soname_spec='$libname$release$shared_ext'
11790 shlibpath_var=LD_LIBRARY_PATH
11791 shlibpath_overrides_runpath=yes
11793 # This implies no fast_install, which is unacceptable.
11794 # Some rework will be needed to allow for fast_install
11795 # before this can be enabled.
11796 hardcode_into_libs=yes
11798 dynamic_linker='Android linker'
11799 # Don't embed -rpath directories since the linker doesn't support them.
11800 hardcode_libdir_flag_spec='-L$libdir'
11803 # This must be glibc/ELF.
11804 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11805 version_type=linux # correct to gnu/linux during the next big refactor
11808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11809 soname_spec='$libname$release$shared_ext$major'
11810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11811 shlibpath_var=LD_LIBRARY_PATH
11812 shlibpath_overrides_runpath=no
11814 # Some binutils ld are patched to set DT_RUNPATH
11815 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11816 $as_echo_n "(cached) " >&6
11818 lt_cv_shlibpath_overrides_runpath=no
11819 save_LDFLAGS=$LDFLAGS
11820 save_libdir=$libdir
11821 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11822 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824 /* end confdefs.h. */
11834 if ac_fn_c_try_link "$LINENO"; then :
11835 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11836 lt_cv_shlibpath_overrides_runpath=yes
11839 rm -f core conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
11841 LDFLAGS=$save_LDFLAGS
11842 libdir=$save_libdir
11846 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11848 # This implies no fast_install, which is unacceptable.
11849 # Some rework will be needed to allow for fast_install
11850 # before this can be enabled.
11851 hardcode_into_libs=yes
11853 # Add ABI-specific directories to the system library path.
11854 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11856 # Ideally, we could use ldconfig to report *all* directores which are
11857 # searched for libraries, however this is still not possible. Aside from not
11858 # being certain /sbin/ldconfig is available, command
11859 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11860 # even though it is searched at run-time. Try to do the best guess by
11861 # appending ld.so.conf contents (and includes) to the search path.
11862 if test -f /etc/ld.so.conf; then
11863 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11864 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11867 # We used to test for /lib/ld.so.1 and disable shared libraries on
11868 # powerpc, because MkLinux only supported shared libraries with the
11869 # GNU dynamic linker. Since this was broken with cross compilers,
11870 # most powerpc-linux boxes support dynamic linking these days and
11871 # people can always --disable-shared, the test was removed, and we
11872 # assume the GNU/Linux dynamic linker is in use.
11873 dynamic_linker='GNU/Linux ld.so'
11880 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11881 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11883 dynamic_linker='NetBSD (a.out) ld.so'
11885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11886 soname_spec='$libname$release$shared_ext$major'
11887 dynamic_linker='NetBSD ld.elf_so'
11889 shlibpath_var=LD_LIBRARY_PATH
11890 shlibpath_overrides_runpath=yes
11891 hardcode_into_libs=yes
11895 version_type=linux # correct to gnu/linux during the next big refactor
11896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11897 shlibpath_var=LD_LIBRARY_PATH
11898 shlibpath_overrides_runpath=yes
11905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11906 soname_spec='$libname$release$shared_ext$major'
11907 shlibpath_var=LD_LIBRARY_PATH
11908 shlibpath_overrides_runpath=no
11909 hardcode_into_libs=yes
11910 dynamic_linker='ldqnx.so'
11913 openbsd* | bitrig*)
11915 sys_lib_dlsearch_path_spec=/usr/lib
11917 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11922 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11924 shlibpath_var=LD_LIBRARY_PATH
11925 shlibpath_overrides_runpath=yes
11929 libname_spec='$name'
11930 version_type=windows
11934 # OS/2 can only load a DLL with a base name of 8 characters or less.
11935 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11936 v=$($ECHO $release$versuffix | tr -d .-);
11937 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11938 $ECHO $n$v`$shared_ext'
11939 library_names_spec='${libname}_dll.$libext'
11940 dynamic_linker='OS/2 ld.exe'
11941 shlibpath_var=BEGINLIBPATH
11942 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11944 postinstall_cmds='base_file=`basename \$file`~
11945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11946 dldir=$destdir/`dirname \$dlpath`~
11947 test -d \$dldir || mkdir -p \$dldir~
11948 $install_prog $dir/$dlname \$dldir/$dlname~
11949 chmod a+x \$dldir/$dlname~
11950 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11951 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11953 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11954 dlpath=$dir/\$dldll~
11958 osf3* | osf4* | osf5*)
11962 soname_spec='$libname$release$shared_ext$major'
11963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11964 shlibpath_var=LD_LIBRARY_PATH
11965 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11966 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11974 version_type=linux # correct to gnu/linux during the next big refactor
11977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11978 soname_spec='$libname$release$shared_ext$major'
11979 shlibpath_var=LD_LIBRARY_PATH
11980 shlibpath_overrides_runpath=yes
11981 hardcode_into_libs=yes
11982 # ldd complains unless libraries are executable
11983 postinstall_cmds='chmod +x $lib'
11988 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11989 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11990 shlibpath_var=LD_LIBRARY_PATH
11991 shlibpath_overrides_runpath=yes
11992 if test yes = "$with_gnu_ld"; then
11999 version_type=linux # correct to gnu/linux during the next big refactor
12000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12001 soname_spec='$libname$release$shared_ext$major'
12002 shlibpath_var=LD_LIBRARY_PATH
12003 case $host_vendor in
12005 shlibpath_overrides_runpath=no
12007 runpath_var=LD_RUN_PATH
12015 shlibpath_overrides_runpath=no
12016 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12022 if test -d /usr/nec; then
12023 version_type=linux # correct to gnu/linux during the next big refactor
12024 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12025 soname_spec='$libname$shared_ext.$major'
12026 shlibpath_var=LD_LIBRARY_PATH
12030 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12035 soname_spec='$libname$release$shared_ext$major'
12036 shlibpath_var=LD_LIBRARY_PATH
12037 shlibpath_overrides_runpath=yes
12038 hardcode_into_libs=yes
12039 if test yes = "$with_gnu_ld"; then
12040 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12042 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12045 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12049 sys_lib_dlsearch_path_spec='/usr/lib'
12053 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12054 version_type=linux # correct to gnu/linux during the next big refactor
12057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12058 shlibpath_var=LD_LIBRARY_PATH
12059 shlibpath_overrides_runpath=no
12060 hardcode_into_libs=yes
12064 version_type=linux # correct to gnu/linux during the next big refactor
12065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12066 soname_spec='$libname$release$shared_ext$major'
12067 shlibpath_var=LD_LIBRARY_PATH
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12075 $as_echo "$dynamic_linker" >&6; }
12076 test no = "$dynamic_linker" && can_build_shared=no
12078 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12079 if test yes = "$GCC"; then
12080 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12083 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12084 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12087 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12088 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12091 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12092 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12094 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12095 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12097 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12098 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12197 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12199 if test -n "$hardcode_libdir_flag_spec" ||
12200 test -n "$runpath_var" ||
12201 test yes = "$hardcode_automatic"; then
12203 # We can hardcode non-existent directories.
12204 if test no != "$hardcode_direct" &&
12205 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12206 # have to relink, otherwise we might link with an installed library
12207 # when we should be linking with a yet-to-be-installed one
12208 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12209 test no != "$hardcode_minus_L"; then
12210 # Linking always hardcodes the temporary library directory.
12211 hardcode_action=relink
12213 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12214 hardcode_action=immediate
12217 # We cannot hardcode anything, or else we can only hardcode existing
12219 hardcode_action=unsupported
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12222 $as_echo "$hardcode_action" >&6; }
12224 if test relink = "$hardcode_action" ||
12225 test yes = "$inherit_rpath"; then
12226 # Fast installation is not supported
12227 enable_fast_install=no
12228 elif test yes = "$shlibpath_overrides_runpath" ||
12229 test no = "$enable_shared"; then
12230 # Fast installation is not necessary
12231 enable_fast_install=needless
12239 if test yes != "$enable_dlopen"; then
12240 enable_dlopen=unknown
12241 enable_dlopen_self=unknown
12242 enable_dlopen_self_static=unknown
12249 lt_cv_dlopen=load_add_on
12251 lt_cv_dlopen_self=yes
12254 mingw* | pw32* | cegcc*)
12255 lt_cv_dlopen=LoadLibrary
12260 lt_cv_dlopen=dlopen
12265 # if libdl is installed we need to link against it
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12267 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12268 if ${ac_cv_lib_dl_dlopen+:} false; then :
12269 $as_echo_n "(cached) " >&6
12271 ac_check_lib_save_LIBS=$LIBS
12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h. */
12276 /* Override any GCC internal prototype to avoid an error.
12277 Use char because int might match the return type of a GCC
12278 builtin and then its argument prototype would still apply. */
12291 if ac_fn_c_try_link "$LINENO"; then :
12292 ac_cv_lib_dl_dlopen=yes
12294 ac_cv_lib_dl_dlopen=no
12296 rm -f core conftest.err conftest.$ac_objext \
12297 conftest$ac_exeext conftest.$ac_ext
12298 LIBS=$ac_check_lib_save_LIBS
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12301 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12302 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12303 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12308 lt_cv_dlopen_self=yes
12315 # Don't try to run any link tests for TPF. We know it's impossible
12316 # because TPF is a cross-compiler, and we know how we open DSOs.
12317 lt_cv_dlopen=dlopen
12319 lt_cv_dlopen_self=no
12323 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12324 if test "x$ac_cv_func_shl_load" = xyes; then :
12325 lt_cv_dlopen=shl_load
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12328 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12329 if ${ac_cv_lib_dld_shl_load+:} false; then :
12330 $as_echo_n "(cached) " >&6
12332 ac_check_lib_save_LIBS=$LIBS
12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h. */
12337 /* Override any GCC internal prototype to avoid an error.
12338 Use char because int might match the return type of a GCC
12339 builtin and then its argument prototype would still apply. */
12347 return shl_load ();
12352 if ac_fn_c_try_link "$LINENO"; then :
12353 ac_cv_lib_dld_shl_load=yes
12355 ac_cv_lib_dld_shl_load=no
12357 rm -f core conftest.err conftest.$ac_objext \
12358 conftest$ac_exeext conftest.$ac_ext
12359 LIBS=$ac_check_lib_save_LIBS
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12362 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12363 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12364 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12366 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12367 if test "x$ac_cv_func_dlopen" = xyes; then :
12368 lt_cv_dlopen=dlopen
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12371 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12372 if ${ac_cv_lib_dl_dlopen+:} false; then :
12373 $as_echo_n "(cached) " >&6
12375 ac_check_lib_save_LIBS=$LIBS
12377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12378 /* end confdefs.h. */
12380 /* Override any GCC internal prototype to avoid an error.
12381 Use char because int might match the return type of a GCC
12382 builtin and then its argument prototype would still apply. */
12395 if ac_fn_c_try_link "$LINENO"; then :
12396 ac_cv_lib_dl_dlopen=yes
12398 ac_cv_lib_dl_dlopen=no
12400 rm -f core conftest.err conftest.$ac_objext \
12401 conftest$ac_exeext conftest.$ac_ext
12402 LIBS=$ac_check_lib_save_LIBS
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12405 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12406 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12407 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12410 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12411 if ${ac_cv_lib_svld_dlopen+:} false; then :
12412 $as_echo_n "(cached) " >&6
12414 ac_check_lib_save_LIBS=$LIBS
12415 LIBS="-lsvld $LIBS"
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h. */
12419 /* Override any GCC internal prototype to avoid an error.
12420 Use char because int might match the return type of a GCC
12421 builtin and then its argument prototype would still apply. */
12434 if ac_fn_c_try_link "$LINENO"; then :
12435 ac_cv_lib_svld_dlopen=yes
12437 ac_cv_lib_svld_dlopen=no
12439 rm -f core conftest.err conftest.$ac_objext \
12440 conftest$ac_exeext conftest.$ac_ext
12441 LIBS=$ac_check_lib_save_LIBS
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12444 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12445 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12446 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12449 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12450 if ${ac_cv_lib_dld_dld_link+:} false; then :
12451 $as_echo_n "(cached) " >&6
12453 ac_check_lib_save_LIBS=$LIBS
12455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h. */
12458 /* Override any GCC internal prototype to avoid an error.
12459 Use char because int might match the return type of a GCC
12460 builtin and then its argument prototype would still apply. */
12468 return dld_link ();
12473 if ac_fn_c_try_link "$LINENO"; then :
12474 ac_cv_lib_dld_dld_link=yes
12476 ac_cv_lib_dld_dld_link=no
12478 rm -f core conftest.err conftest.$ac_objext \
12479 conftest$ac_exeext conftest.$ac_ext
12480 LIBS=$ac_check_lib_save_LIBS
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12483 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12484 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12485 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12506 if test no = "$lt_cv_dlopen"; then
12512 case $lt_cv_dlopen in
12514 save_CPPFLAGS=$CPPFLAGS
12515 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12517 save_LDFLAGS=$LDFLAGS
12518 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12521 LIBS="$lt_cv_dlopen_libs $LIBS"
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12524 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12525 if ${lt_cv_dlopen_self+:} false; then :
12526 $as_echo_n "(cached) " >&6
12528 if test yes = "$cross_compiling"; then :
12529 lt_cv_dlopen_self=cross
12531 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12532 lt_status=$lt_dlunknown
12533 cat > conftest.$ac_ext <<_LT_EOF
12534 #line $LINENO "configure"
12535 #include "confdefs.h"
12544 # define LT_DLGLOBAL RTLD_GLOBAL
12547 # define LT_DLGLOBAL DL_GLOBAL
12549 # define LT_DLGLOBAL 0
12553 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12554 find out it does not work in some platform. */
12555 #ifndef LT_DLLAZY_OR_NOW
12557 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12560 # define LT_DLLAZY_OR_NOW DL_LAZY
12563 # define LT_DLLAZY_OR_NOW RTLD_NOW
12566 # define LT_DLLAZY_OR_NOW DL_NOW
12568 # define LT_DLLAZY_OR_NOW 0
12575 /* When -fvisibility=hidden is used, assume the code has been annotated
12576 correspondingly for the symbols needed. */
12577 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12578 int fnord () __attribute__((visibility("default")));
12581 int fnord () { return 42; }
12584 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12585 int status = $lt_dlunknown;
12589 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12592 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12593 else puts (dlerror ());
12595 /* dlclose (self); */
12603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12604 (eval $ac_link) 2>&5
12606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12607 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12608 (./conftest; exit; ) >&5 2>/dev/null
12610 case x$lt_status in
12611 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12612 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12613 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12616 # compilation failed
12617 lt_cv_dlopen_self=no
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12625 $as_echo "$lt_cv_dlopen_self" >&6; }
12627 if test yes = "$lt_cv_dlopen_self"; then
12628 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12630 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12631 if ${lt_cv_dlopen_self_static+:} false; then :
12632 $as_echo_n "(cached) " >&6
12634 if test yes = "$cross_compiling"; then :
12635 lt_cv_dlopen_self_static=cross
12637 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12638 lt_status=$lt_dlunknown
12639 cat > conftest.$ac_ext <<_LT_EOF
12640 #line $LINENO "configure"
12641 #include "confdefs.h"
12650 # define LT_DLGLOBAL RTLD_GLOBAL
12653 # define LT_DLGLOBAL DL_GLOBAL
12655 # define LT_DLGLOBAL 0
12659 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12660 find out it does not work in some platform. */
12661 #ifndef LT_DLLAZY_OR_NOW
12663 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12666 # define LT_DLLAZY_OR_NOW DL_LAZY
12669 # define LT_DLLAZY_OR_NOW RTLD_NOW
12672 # define LT_DLLAZY_OR_NOW DL_NOW
12674 # define LT_DLLAZY_OR_NOW 0
12681 /* When -fvisibility=hidden is used, assume the code has been annotated
12682 correspondingly for the symbols needed. */
12683 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12684 int fnord () __attribute__((visibility("default")));
12687 int fnord () { return 42; }
12690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12691 int status = $lt_dlunknown;
12695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12698 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12699 else puts (dlerror ());
12701 /* dlclose (self); */
12709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12710 (eval $ac_link) 2>&5
12712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12713 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12714 (./conftest; exit; ) >&5 2>/dev/null
12716 case x$lt_status in
12717 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12718 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12719 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12722 # compilation failed
12723 lt_cv_dlopen_self_static=no
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12731 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12734 CPPFLAGS=$save_CPPFLAGS
12735 LDFLAGS=$save_LDFLAGS
12740 case $lt_cv_dlopen_self in
12741 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12742 *) enable_dlopen_self=unknown ;;
12745 case $lt_cv_dlopen_self_static in
12746 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12747 *) enable_dlopen_self_static=unknown ;;
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12770 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12771 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12772 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12773 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12775 $as_echo "yes" >&6; }
12777 # FIXME - insert some real tests, host_os isn't really good enough
12780 if test -n "$STRIP"; then
12781 striplib="$STRIP -x"
12782 old_striplib="$STRIP -S"
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12784 $as_echo "yes" >&6; }
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787 $as_echo "no" >&6; }
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792 $as_echo "no" >&6; }
12808 # Report what library types will actually be built
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12810 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12812 $as_echo "$can_build_shared" >&6; }
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12815 $as_echo_n "checking whether to build shared libraries... " >&6; }
12816 test no = "$can_build_shared" && enable_shared=no
12818 # On AIX, shared libraries and static libraries use the same namespace, and
12819 # are all built from PIC.
12822 test yes = "$enable_shared" && enable_static=no
12823 if test -n "$RANLIB"; then
12824 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12825 postinstall_cmds='$RANLIB $lib'
12830 if test ia64 != "$host_cpu"; then
12831 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12832 yes,aix,yes) ;; # shared object as lib.so file only
12833 yes,svr4,*) ;; # shared object as lib.so archive member only
12834 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12840 $as_echo "$enable_shared" >&6; }
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12843 $as_echo_n "checking whether to build static libraries... " >&6; }
12844 # Make sure either enable_shared or enable_static is yes.
12845 test yes = "$enable_shared" || enable_static=yes
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12847 $as_echo "$enable_static" >&6; }
12854 ac_cpp='$CPP $CPPFLAGS'
12855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12875 ac_config_commands="$ac_config_commands libtool"
12880 # Only expand once:
12884 : ${CONFIG_LT=./config.lt}
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
12886 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
12888 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
12890 # Generated by $as_me.
12891 # Run this file to recreate a libtool stub with the current configuration.
12892 SHELL=\${CONFIG_SHELL-$SHELL}
12895 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
12896 ## -------------------- ##
12897 ## M4sh Initialization. ##
12898 ## -------------------- ##
12900 # Be more Bourne compatible
12901 DUALCASE=1; export DUALCASE # for MKS sh
12902 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12905 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12906 # is contrary to our usage. Disable this feature.
12907 alias -g '${1+"$@"}'='"$@"'
12908 setopt NO_GLOB_SUBST
12910 case `(set -o) 2>/dev/null` in #(
12922 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12923 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12924 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12925 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12926 # Prefer a ksh shell builtin over an external printf program on Solaris,
12927 # but without wasting forks for bash or zsh.
12928 if test -z "$BASH_VERSION$ZSH_VERSION" \
12929 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12930 as_echo='print -r --'
12931 as_echo_n='print -rn --'
12932 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12933 as_echo='printf %s\n'
12934 as_echo_n='printf %s'
12936 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12937 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12938 as_echo_n='/usr/ucb/echo -n'
12940 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12941 as_echo_n_body='eval
12945 expr "X$arg" : "X\\(.*\\)$as_nl";
12946 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12948 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12950 export as_echo_n_body
12951 as_echo_n='sh -c $as_echo_n_body as_echo'
12953 export as_echo_body
12954 as_echo='sh -c $as_echo_body as_echo'
12957 # The user is always right.
12958 if test "${PATH_SEPARATOR+set}" != set; then
12960 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12961 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12968 # We need space, tab and new line, in precisely that order. Quoting is
12969 # there to prevent editors from complaining about space-tab.
12970 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12971 # splitting by setting IFS to empty value.)
12974 # Find who we are. Look in the path if we contain no directory separator.
12977 *[\\/]* ) as_myself=$0 ;;
12978 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12979 for as_dir in $PATH
12982 test -z "$as_dir" && as_dir=.
12983 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12989 # We did not find ourselves, most probably we were run as `sh COMMAND'
12990 # in which case we are not to be found in the path.
12991 if test "x$as_myself" = x; then
12994 if test ! -f "$as_myself"; then
12995 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12999 # Unset variables that we do not need and which cause bugs (e.g. in
13000 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13001 # suppresses any "Segmentation fault" message there. '((' could
13002 # trigger a bug in pdksh 5.2.14.
13003 for as_var in BASH_ENV ENV MAIL MAILPATH
13004 do eval test x\${$as_var+set} = xset \
13005 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13018 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13021 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13022 # ----------------------------------------
13023 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13024 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13025 # script with STATUS, using 1 if that was 0.
13028 as_status=$1; test $as_status -eq 0 && as_status=1
13030 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13031 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13033 $as_echo "$as_me: error: $2" >&2
13034 as_fn_exit $as_status
13038 # as_fn_set_status STATUS
13039 # -----------------------
13040 # Set $? to STATUS, without forking.
13041 as_fn_set_status ()
13044 } # as_fn_set_status
13046 # as_fn_exit STATUS
13047 # -----------------
13048 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13052 as_fn_set_status $1
13058 # Portably unset VAR.
13061 { eval $1=; unset $1;}
13063 as_unset=as_fn_unset
13064 # as_fn_append VAR VALUE
13065 # ----------------------
13066 # Append the text in VALUE to the end of the definition contained in VAR. Take
13067 # advantage of any shell optimizations that allow amortized linear growth over
13068 # repeated appends, instead of the typical quadratic growth present in naive
13070 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13071 eval 'as_fn_append ()
13082 # as_fn_arith ARG...
13083 # ------------------
13084 # Perform arithmetic evaluation on the ARGs, and store the result in the
13085 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13086 # must be portable across $(()) and expr.
13087 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13088 eval 'as_fn_arith ()
13095 as_val=`expr "$@" || test $? -eq 1`
13100 if expr a : '\(a\)' >/dev/null 2>&1 &&
13101 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13107 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13108 as_basename=basename
13113 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13119 as_me=`$as_basename -- "$0" ||
13120 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13121 X"$0" : 'X\(//\)$' \| \
13122 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13124 sed '/^.*\/\([^/][^/]*\)\/*$/{
13138 # Avoid depending upon Character Ranges.
13139 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13140 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13141 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13142 as_cr_digits='0123456789'
13143 as_cr_alnum=$as_cr_Letters$as_cr_digits
13145 ECHO_C= ECHO_N= ECHO_T=
13146 case `echo -n x` in #(((((
13148 case `echo 'xy\c'` in
13149 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13151 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13158 rm -f conf$$ conf$$.exe conf$$.file
13159 if test -d conf$$.dir; then
13160 rm -f conf$$.dir/conf$$.file
13163 mkdir conf$$.dir 2>/dev/null
13165 if (echo >conf$$.file) 2>/dev/null; then
13166 if ln -s conf$$.file conf$$ 2>/dev/null; then
13168 # ... but there are two gotchas:
13169 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13170 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13171 # In both cases, we have to default to `cp -pR'.
13172 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13174 elif ln conf$$.file conf$$ 2>/dev/null; then
13182 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13183 rmdir conf$$.dir 2>/dev/null
13188 # Create "$as_dir" as a directory, including parents if necessary.
13193 -*) as_dir=./$as_dir;;
13195 test -d "$as_dir" || eval $as_mkdir_p || {
13199 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13200 *) as_qdir=$as_dir;;
13202 as_dirs="'$as_qdir' $as_dirs"
13203 as_dir=`$as_dirname -- "$as_dir" ||
13204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13205 X"$as_dir" : 'X\(//\)[^/]' \| \
13206 X"$as_dir" : 'X\(//\)$' \| \
13207 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13208 $as_echo X"$as_dir" |
13209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13213 /^X\(\/\/\)[^/].*/{
13226 test -d "$as_dir" && break
13228 test -z "$as_dirs" || eval "mkdir $as_dirs"
13229 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13233 if mkdir -p . 2>/dev/null; then
13234 as_mkdir_p='mkdir -p "$as_dir"'
13236 test -d ./-p && rmdir ./-p
13241 # as_fn_executable_p FILE
13242 # -----------------------
13243 # Test if FILE is an executable regular file.
13244 as_fn_executable_p ()
13246 test -f "$1" && test -x "$1"
13247 } # as_fn_executable_p
13248 as_test_x='test -x'
13249 as_executable_p=as_fn_executable_p
13251 # Sed expression to map a string onto a valid CPP name.
13252 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13254 # Sed expression to map a string onto a valid variable name.
13255 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13259 ## --------------------------------- ##
13260 ## Main body of "$CONFIG_LT" script. ##
13261 ## --------------------------------- ##
13263 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
13265 cat >>"$CONFIG_LT" <<\_LTEOF
13270 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13271 ## Running $as_me. ##
13276 '$as_me' creates a local libtool stub from the current configuration,
13277 for use in further configure time tests before the real libtool is
13280 Usage: $0 [OPTIONS]
13282 -h, --help print this help, then exit
13283 -V, --version print version number, then exit
13284 -q, --quiet do not print progress messages
13285 -d, --debug don't remove temporary files
13287 Report bugs to <bug-libtool@gnu.org>."
13290 Quagga config.lt 1.2.4
13291 configured by $0, generated by GNU Autoconf 2.69.
13293 Copyright (C) 2011 Free Software Foundation, Inc.
13294 This config.lt script is free software; the Free Software Foundation
13295 gives unlimited permision to copy, distribute and modify it."
13300 --version | --v* | -V )
13301 echo "$lt_cl_version"; exit 0 ;;
13302 --help | --h* | -h )
13303 echo "$lt_cl_help"; exit 0 ;;
13304 --debug | --d* | -d )
13306 --quiet | --q* | --silent | --s* | -q )
13309 -*) as_fn_error $? "unrecognized option: $1
13310 Try '$0 --help' for more information." "$LINENO" 5 ;;
13312 *) as_fn_error $? "unrecognized argument: $1
13313 Try '$0 --help' for more information." "$LINENO" 5 ;;
13318 if $lt_cl_silent; then
13323 cat >>"$CONFIG_LT" <<_LTEOF
13326 # The HP-UX ksh and POSIX shell print the target directory to stdout
13327 # if CDPATH is set.
13328 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13330 sed_quote_subst='$sed_quote_subst'
13331 double_quote_subst='$double_quote_subst'
13332 delay_variable_subst='$delay_variable_subst'
13333 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13334 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13335 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13336 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13337 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13338 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13339 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13340 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13341 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13342 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13343 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13344 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13345 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13346 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13347 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13348 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13349 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13350 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13351 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13352 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13353 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13354 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13355 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13356 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13357 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13358 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13359 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13360 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13361 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13362 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13363 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13364 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13365 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13366 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13367 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13368 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13369 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13370 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13371 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13372 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13373 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13374 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13375 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13376 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13377 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13378 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13379 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13380 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13381 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13382 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13383 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13384 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13385 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13386 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13387 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13388 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13389 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13390 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13391 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13392 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13393 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13394 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13395 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13396 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13397 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13398 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13399 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13400 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13401 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13402 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13403 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13404 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13405 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13406 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13407 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13408 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13409 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13410 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13411 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13412 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13413 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13414 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13415 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13416 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13417 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13418 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13419 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13420 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13421 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13422 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13423 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13424 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13425 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13426 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13427 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13428 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13429 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13430 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13431 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13432 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13433 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13434 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13435 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13436 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13437 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13438 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13439 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13440 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13441 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13442 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13443 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13444 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13445 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13446 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13447 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13448 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13449 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13450 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13451 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13452 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13453 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13454 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13455 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13456 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13457 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13458 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13459 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13460 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13461 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13462 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13463 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13464 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13465 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13466 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13467 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13470 LTCFLAGS='$LTCFLAGS'
13471 compiler='$compiler_DEFAULT'
13473 # A function that is used when there is no print builtin or printf.
13474 func_fallback_echo ()
13476 eval 'cat <<_LTECHO_EOF
13481 # Quote evaled strings.
13496 deplibs_check_method \
13501 sharedlib_from_linklib_cmd \
13504 archiver_list_spec \
13510 lt_cv_sys_global_symbol_pipe \
13511 lt_cv_sys_global_symbol_to_cdecl \
13512 lt_cv_sys_global_symbol_to_import \
13513 lt_cv_sys_global_symbol_to_c_name_address \
13514 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13515 lt_cv_nm_interface \
13516 nm_file_list_spec \
13517 lt_cv_truncate_bin \
13518 lt_prog_compiler_no_builtin_flag \
13519 lt_prog_compiler_pic \
13520 lt_prog_compiler_wl \
13521 lt_prog_compiler_static \
13522 lt_cv_prog_compiler_c_o \
13531 export_dynamic_flag_spec \
13532 whole_archive_flag_spec \
13533 compiler_needs_object \
13535 allow_undefined_flag \
13536 no_undefined_flag \
13537 hardcode_libdir_flag_spec \
13538 hardcode_libdir_separator \
13542 variables_saved_for_relink \
13544 library_names_spec \
13546 install_override_mode \
13550 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13551 *[\\\\\\\`\\"\\\$]*)
13552 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13555 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13560 # Double-quote double-evaled strings.
13561 for var in reload_cmds \
13562 old_postinstall_cmds \
13563 old_postuninstall_cmds \
13565 extract_expsyms_cmds \
13566 old_archive_from_new_cmds \
13567 old_archive_from_expsyms_cmds \
13569 archive_expsym_cmds \
13571 module_expsym_cmds \
13572 export_symbols_cmds \
13576 postuninstall_cmds \
13578 sys_lib_search_path_spec \
13579 configure_time_dlsearch_path \
13580 configure_time_lt_sys_library_path; do
13581 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13582 *[\\\\\\\`\\"\\\$]*)
13583 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13586 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13591 ac_aux_dir='$ac_aux_dir'
13593 # See if we are running on zsh, and set the options that allow our
13594 # commands through without removal of \ escapes INIT.
13595 if test -n "\${ZSH_VERSION+set}"; then
13596 setopt NO_GLOB_SUBST
13609 cat >>"$CONFIG_LT" <<\_LTEOF
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
13611 $as_echo "$as_me: creating $ofile" >&6;}
13614 # See if we are running on zsh, and set the options that allow our
13615 # commands through without removal of \ escapes.
13616 if test -n "${ZSH_VERSION+set}"; then
13617 setopt NO_GLOB_SUBST
13621 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13624 cat <<_LT_EOF >> "$cfgfile"
13626 # Generated automatically by $as_me ($PACKAGE) $VERSION
13627 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13628 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13630 # Provide generalized library-building support services.
13631 # Written by Gordon Matzigkeit, 1996
13633 # Copyright (C) 2014 Free Software Foundation, Inc.
13634 # This is free software; see the source for copying conditions. There is NO
13635 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13637 # GNU Libtool is free software; you can redistribute it and/or modify
13638 # it under the terms of the GNU General Public License as published by
13639 # the Free Software Foundation; either version 2 of of the License, or
13640 # (at your option) any later version.
13642 # As a special exception to the GNU General Public License, if you
13643 # distribute this file as part of a program or library that is built
13644 # using GNU Libtool, you may include this file under the same
13645 # distribution terms that you use for the rest of that program.
13647 # GNU Libtool is distributed in the hope that it will be useful, but
13648 # WITHOUT ANY WARRANTY; without even the implied warranty of
13649 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13650 # GNU General Public License for more details.
13652 # You should have received a copy of the GNU General Public License
13653 # along with this program. If not, see <http://www.gnu.org/licenses/>.
13656 # The names of the tagged configurations supported by this script.
13659 # Configured defaults for sys_lib_dlsearch_path munging.
13660 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
13662 # ### BEGIN LIBTOOL CONFIG
13664 # Which release of libtool.m4 was used?
13665 macro_version=$macro_version
13666 macro_revision=$macro_revision
13668 # Whether or not to build shared libraries.
13669 build_libtool_libs=$enable_shared
13671 # Whether or not to build static libraries.
13672 build_old_libs=$enable_static
13674 # What type of objects to build.
13677 # Whether or not to optimize for fast installation.
13678 fast_install=$enable_fast_install
13680 # Shared archive member basename,for filename based shared library versioning on AIX.
13681 shared_archive_member_spec=$shared_archive_member_spec
13683 # Shell to use when invoking shell scripts.
13686 # An echo program that protects backslashes.
13689 # The PATH separator for the build system.
13690 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13693 host_alias=$host_alias
13697 # The build system.
13698 build_alias=$build_alias
13702 # A sed program that does not truncate output.
13705 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13706 Xsed="\$SED -e 1s/^X//"
13708 # A grep program that handles long lines.
13714 # A literal string matcher.
13717 # A BSD- or MS-compatible name lister.
13720 # Whether we need soft or hard links.
13723 # What is the maximum length of a command?
13724 max_cmd_len=$max_cmd_len
13726 # Object file suffix (normally "o").
13729 # Executable file suffix (normally "").
13732 # whether the shell understands "unset".
13735 # turn spaces into newlines.
13738 # turn newlines into spaces.
13741 # convert \$build file names to \$host format.
13742 to_host_file_cmd=$lt_cv_to_host_file_cmd
13744 # convert \$build files to toolchain format.
13745 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13747 # An object symbol dumper.
13748 OBJDUMP=$lt_OBJDUMP
13750 # Method to check whether dependent libraries are shared objects.
13751 deplibs_check_method=$lt_deplibs_check_method
13753 # Command to use when deplibs_check_method = "file_magic".
13754 file_magic_cmd=$lt_file_magic_cmd
13756 # How to find potential files when deplibs_check_method = "file_magic".
13757 file_magic_glob=$lt_file_magic_glob
13759 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13760 want_nocaseglob=$lt_want_nocaseglob
13762 # DLL creation program.
13763 DLLTOOL=$lt_DLLTOOL
13765 # Command to associate shared and link libraries.
13766 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13771 # Flags to create an archive.
13772 AR_FLAGS=$lt_AR_FLAGS
13774 # How to feed a file listing to the archiver.
13775 archiver_list_spec=$lt_archiver_list_spec
13777 # A symbol stripping program.
13780 # Commands used to install an old-style archive.
13782 old_postinstall_cmds=$lt_old_postinstall_cmds
13783 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13785 # Whether to use a lock for old archive extraction.
13786 lock_old_archive_extraction=$lock_old_archive_extraction
13791 # LTCC compiler flags.
13792 LTCFLAGS=$lt_CFLAGS
13794 # Take the output of nm and produce a listing of raw symbols and C names.
13795 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13797 # Transform the output of nm in a proper C declaration.
13798 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13800 # Transform the output of nm into a list of symbols to manually relocate.
13801 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
13803 # Transform the output of nm in a C name address pair.
13804 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13806 # Transform the output of nm in a C name address pair when lib prefix is needed.
13807 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13809 # The name lister interface.
13810 nm_interface=$lt_lt_cv_nm_interface
13812 # Specify filename containing input files for \$NM.
13813 nm_file_list_spec=$lt_nm_file_list_spec
13815 # The root where to search for dependent libraries,and where our libraries should be installed.
13816 lt_sysroot=$lt_sysroot
13818 # Command to truncate a binary pipe.
13819 lt_truncate_bin=$lt_lt_cv_truncate_bin
13821 # The name of the directory that contains temporary libtool files.
13824 # Used to examine libraries when file_magic_cmd begins with "file".
13825 MAGIC_CMD=$MAGIC_CMD
13827 # Must we lock files when doing compilation?
13828 need_locks=$lt_need_locks
13831 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13833 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13834 DSYMUTIL=$lt_DSYMUTIL
13836 # Tool to change global to local symbols on Mac OS X.
13839 # Tool to manipulate fat objects and archives on Mac OS X.
13842 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13845 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13846 OTOOL64=$lt_OTOOL64
13848 # Old archive suffix (normally "a").
13851 # Shared library suffix (normally ".so").
13852 shrext_cmds=$lt_shrext_cmds
13854 # The commands to extract the exported symbol list from a shared archive.
13855 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13857 # Variables whose values should be saved in libtool wrapper scripts and
13858 # restored at link time.
13859 variables_saved_for_relink=$lt_variables_saved_for_relink
13861 # Do we need the "lib" prefix for modules?
13862 need_lib_prefix=$need_lib_prefix
13864 # Do we need a version for libraries?
13865 need_version=$need_version
13867 # Library versioning type.
13868 version_type=$version_type
13870 # Shared library runtime path variable.
13871 runpath_var=$runpath_var
13873 # Shared library path variable.
13874 shlibpath_var=$shlibpath_var
13876 # Is shlibpath searched before the hard-coded library search path?
13877 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13879 # Format of library name prefix.
13880 libname_spec=$lt_libname_spec
13882 # List of archive names. First name is the real one, the rest are links.
13883 # The last name is the one that the linker finds with -lNAME
13884 library_names_spec=$lt_library_names_spec
13886 # The coded name of the library, if different from the real name.
13887 soname_spec=$lt_soname_spec
13889 # Permission mode override for installation of shared libraries.
13890 install_override_mode=$lt_install_override_mode
13892 # Command to use after installation of a shared archive.
13893 postinstall_cmds=$lt_postinstall_cmds
13895 # Command to use after uninstallation of a shared archive.
13896 postuninstall_cmds=$lt_postuninstall_cmds
13898 # Commands used to finish a libtool library installation in a directory.
13899 finish_cmds=$lt_finish_cmds
13901 # As "finish_cmds", except a single script fragment to be evaled but
13903 finish_eval=$lt_finish_eval
13905 # Whether we should hardcode library paths into libraries.
13906 hardcode_into_libs=$hardcode_into_libs
13908 # Compile-time system search path for libraries.
13909 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13911 # Detected run-time system search path for libraries.
13912 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
13914 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
13915 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
13917 # Whether dlopen is supported.
13918 dlopen_support=$enable_dlopen
13920 # Whether dlopen of programs is supported.
13921 dlopen_self=$enable_dlopen_self
13923 # Whether dlopen of statically linked programs is supported.
13924 dlopen_self_static=$enable_dlopen_self_static
13926 # Commands to strip libraries.
13927 old_striplib=$lt_old_striplib
13928 striplib=$lt_striplib
13931 # The linker used to build libraries.
13934 # How to create reloadable object files.
13935 reload_flag=$lt_reload_flag
13936 reload_cmds=$lt_reload_cmds
13938 # Commands used to build an old-style archive.
13939 old_archive_cmds=$lt_old_archive_cmds
13941 # A language specific compiler.
13944 # Is the compiler the GNU compiler?
13947 # Compiler flag to turn off builtin functions.
13948 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13950 # Additional compiler flags for building library objects.
13951 pic_flag=$lt_lt_prog_compiler_pic
13953 # How to pass a linker flag through the compiler.
13954 wl=$lt_lt_prog_compiler_wl
13956 # Compiler flag to prevent dynamic linking.
13957 link_static_flag=$lt_lt_prog_compiler_static
13959 # Does compiler simultaneously support -c and -o options?
13960 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13962 # Whether or not to add -lc for building shared libraries.
13963 build_libtool_need_lc=$archive_cmds_need_lc
13965 # Whether or not to disallow shared libs when runtime libs are static.
13966 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13968 # Compiler flag to allow reflexive dlopens.
13969 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13971 # Compiler flag to generate shared objects directly from archives.
13972 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13974 # Whether the compiler copes with passing no objects directly.
13975 compiler_needs_object=$lt_compiler_needs_object
13977 # Create an old-style archive from a shared archive.
13978 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13980 # Create a temporary old-style archive to link instead of a shared archive.
13981 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13983 # Commands used to build a shared archive.
13984 archive_cmds=$lt_archive_cmds
13985 archive_expsym_cmds=$lt_archive_expsym_cmds
13987 # Commands used to build a loadable module if different from building
13988 # a shared archive.
13989 module_cmds=$lt_module_cmds
13990 module_expsym_cmds=$lt_module_expsym_cmds
13992 # Whether we are building with GNU ld or not.
13993 with_gnu_ld=$lt_with_gnu_ld
13995 # Flag that allows shared libraries with undefined symbols to be built.
13996 allow_undefined_flag=$lt_allow_undefined_flag
13998 # Flag that enforces no undefined symbols.
13999 no_undefined_flag=$lt_no_undefined_flag
14001 # Flag to hardcode \$libdir into a binary during linking.
14002 # This must work even if \$libdir does not exist
14003 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14005 # Whether we need a single "-rpath" flag with a separated argument.
14006 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14008 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14009 # DIR into the resulting binary.
14010 hardcode_direct=$hardcode_direct
14012 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14013 # DIR into the resulting binary and the resulting library dependency is
14014 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14015 # library is relocated.
14016 hardcode_direct_absolute=$hardcode_direct_absolute
14018 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14019 # into the resulting binary.
14020 hardcode_minus_L=$hardcode_minus_L
14022 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14023 # into the resulting binary.
14024 hardcode_shlibpath_var=$hardcode_shlibpath_var
14026 # Set to "yes" if building a shared library automatically hardcodes DIR
14027 # into the library and all subsequent libraries and executables linked
14029 hardcode_automatic=$hardcode_automatic
14031 # Set to yes if linker adds runtime paths of dependent libraries
14032 # to runtime path list.
14033 inherit_rpath=$inherit_rpath
14035 # Whether libtool must link a program against all its dependency libraries.
14036 link_all_deplibs=$link_all_deplibs
14038 # Set to "yes" if exported symbols are required.
14039 always_export_symbols=$always_export_symbols
14041 # The commands to list exported symbols.
14042 export_symbols_cmds=$lt_export_symbols_cmds
14044 # Symbols that should not be listed in the preloaded symbols.
14045 exclude_expsyms=$lt_exclude_expsyms
14047 # Symbols that must always be exported.
14048 include_expsyms=$lt_include_expsyms
14050 # Commands necessary for linking programs (against libraries) with templates.
14051 prelink_cmds=$lt_prelink_cmds
14053 # Commands necessary for finishing linking programs.
14054 postlink_cmds=$lt_postlink_cmds
14056 # Specify filename containing input files.
14057 file_list_spec=$lt_file_list_spec
14059 # How to hardcode a shared library path into an executable.
14060 hardcode_action=$hardcode_action
14062 # ### END LIBTOOL CONFIG
14066 cat <<'_LT_EOF' >> "$cfgfile"
14068 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14070 # func_munge_path_list VARIABLE PATH
14071 # -----------------------------------
14072 # VARIABLE is name of variable containing _space_ separated list of
14073 # directories to be munged by the contents of PATH, which is string
14076 # string "DIR[ DIR]" will be prepended to VARIABLE
14078 # string "DIR[ DIR]" will be appended to VARIABLE
14079 # "DIRP[:DIRP]::[DIRA:]DIRA"
14080 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14081 # "DIRA[ DIRA]" will be appended to VARIABLE
14083 # VARIABLE will be replaced by "DIR[ DIR]"
14084 func_munge_path_list ()
14090 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14093 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14096 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14097 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14100 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14106 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14107 func_cc_basename ()
14109 for cc_temp in $*""; do
14111 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14112 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14117 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14121 # ### END FUNCTIONS SHARED WITH CONFIGURE
14127 cat <<\_LT_EOF >> "$cfgfile"
14128 # AIX sometimes has problems with the GCC collect2 program. For some
14129 # reason, if we set the COLLECT_NAMES environment variable, the problems
14130 # vanish in a puff of smoke.
14131 if test set != "${COLLECT_NAMES+set}"; then
14133 export COLLECT_NAMES
14140 ltmain=$ac_aux_dir/ltmain.sh
14143 # We use sed instead of cat because bash on DJGPP gets confused if
14144 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14145 # text mode, it properly converts lines to CR/LF. This bash problem
14146 # is reportedly fixed, but why not run on old versions too?
14147 sed '$q' "$ltmain" >> "$cfgfile" \
14148 || (rm -f "$cfgfile"; exit 1)
14150 mv -f "$cfgfile" "$ofile" ||
14151 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14157 chmod +x "$CONFIG_LT"
14159 # configure is writing to config.log, but config.lt does its own redirection,
14160 # appending to config.log, which fails on DOS, as config.log is still kept
14161 # open by configure. Here we exec the FD to /dev/null, effectively closing
14162 # config.log, so it can be properly (re)opened and appended to by config.lt.
14164 test yes = "$silent" &&
14165 lt_config_lt_args="$lt_config_lt_args --quiet"
14167 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
14169 $lt_cl_success || as_fn_exit 1
14172 # Extract the first word of "sed", so it can be a program name with args.
14173 set dummy sed; ac_word=$2
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14175 $as_echo_n "checking for $ac_word... " >&6; }
14176 if ${ac_cv_prog_SED+:} false; then :
14177 $as_echo_n "(cached) " >&6
14179 if test -n "$SED"; then
14180 ac_cv_prog_SED="$SED" # Let the user override the test.
14182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14183 for as_dir in $PATH
14186 test -z "$as_dir" && as_dir=.
14187 for ac_exec_ext in '' $ac_executable_extensions; do
14188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14189 ac_cv_prog_SED="sed"
14190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14197 test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="/bin/false"
14200 SED=$ac_cv_prog_SED
14201 if test -n "$SED"; then
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14203 $as_echo "$SED" >&6; }
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14206 $as_echo "no" >&6; }
14211 # Extract the first word of "pdflatex", so it can be a program name with args.
14212 set dummy pdflatex; ac_word=$2
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14214 $as_echo_n "checking for $ac_word... " >&6; }
14215 if ${ac_cv_prog_PDFLATEX+:} false; then :
14216 $as_echo_n "(cached) " >&6
14218 if test -n "$PDFLATEX"; then
14219 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
14221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14222 for as_dir in $PATH
14225 test -z "$as_dir" && as_dir=.
14226 for ac_exec_ext in '' $ac_executable_extensions; do
14227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14228 ac_cv_prog_PDFLATEX="pdflatex"
14229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14236 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX="/bin/false"
14239 PDFLATEX=$ac_cv_prog_PDFLATEX
14240 if test -n "$PDFLATEX"; then
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
14242 $as_echo "$PDFLATEX" >&6; }
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14245 $as_echo "no" >&6; }
14249 # Extract the first word of "latexmk", so it can be a program name with args.
14250 set dummy latexmk; ac_word=$2
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14252 $as_echo_n "checking for $ac_word... " >&6; }
14253 if ${ac_cv_prog_LATEXMK+:} false; then :
14254 $as_echo_n "(cached) " >&6
14256 if test -n "$LATEXMK"; then
14257 ac_cv_prog_LATEXMK="$LATEXMK" # Let the user override the test.
14259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14260 for as_dir in $PATH
14263 test -z "$as_dir" && as_dir=.
14264 for ac_exec_ext in '' $ac_executable_extensions; do
14265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14266 ac_cv_prog_LATEXMK="latexmk"
14267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14274 test -z "$ac_cv_prog_LATEXMK" && ac_cv_prog_LATEXMK="/bin/false"
14277 LATEXMK=$ac_cv_prog_LATEXMK
14278 if test -n "$LATEXMK"; then
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEXMK" >&5
14280 $as_echo "$LATEXMK" >&6; }
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14283 $as_echo "no" >&6; }
14287 if test "x$PDFLATEX" = "x/bin/false" -o "x$LATEXMK" = "x/bin/false"; then
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will not be able to make PDF versions of TeX documents" >&5
14289 $as_echo "$as_me: WARNING: Will not be able to make PDF versions of TeX documents" >&2;}
14293 if test "x$HAVE_LATEX" = "xtrue"; then
14295 HAVE_LATEX_FALSE='#'
14297 HAVE_LATEX_TRUE='#'
14301 # Extract the first word of "pandoc", so it can be a program name with args.
14302 set dummy pandoc; ac_word=$2
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14304 $as_echo_n "checking for $ac_word... " >&6; }
14305 if ${ac_cv_prog_PANDOC+:} false; then :
14306 $as_echo_n "(cached) " >&6
14308 if test -n "$PANDOC"; then
14309 ac_cv_prog_PANDOC="$PANDOC" # Let the user override the test.
14311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14312 for as_dir in $PATH
14315 test -z "$as_dir" && as_dir=.
14316 for ac_exec_ext in '' $ac_executable_extensions; do
14317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14318 ac_cv_prog_PANDOC="pandoc"
14319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14326 test -z "$ac_cv_prog_PANDOC" && ac_cv_prog_PANDOC="/bin/false"
14329 PANDOC=$ac_cv_prog_PANDOC
14330 if test -n "$PANDOC"; then
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
14332 $as_echo "$PANDOC" >&6; }
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14335 $as_echo "no" >&6; }
14339 if test "x$PDFLATEX" = "x/bin/false" -o "x$PANDOC" = "x/bin/false"; then
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will not be able to make PDF versions of MD documents" >&5
14341 $as_echo "$as_me: WARNING: Will not be able to make PDF versions of MD documents" >&2;}
14345 if test "x$HAVE_PANDOC" = "xtrue"; then
14347 HAVE_PANDOC_FALSE='#'
14349 HAVE_PANDOC_TRUE='#'
14354 if test "x${GCC}" != "xyes" ; then
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SunPro compiler" >&5
14356 $as_echo_n "checking whether we are using SunPro compiler... " >&6; }
14357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358 /* end confdefs.h. */
14359 "__SUNPRO_C" __SUNPRO_C
14361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14362 $EGREP "^__SUNPRO_C.*0x5(7|8|9)" >/dev/null 2>&1; then :
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14365 $as_echo "yes" >&6; }
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14368 $as_echo "no" >&6; }
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which default CFLAGS to set" >&5
14379 $as_echo_n "checking which default CFLAGS to set... " >&6; }
14380 if test "x${cflags_specified}" = "x" ; then
14381 case ${COMPILER} in
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Studio" >&5
14384 $as_echo "Sun Studio" >&6; }
14387 ac_cpp='$CPP $CPPFLAGS'
14388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14392 ac_c_flag_save="$CFLAGS"
14393 CFLAGS="$CFLAGS -g"
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
14395 $as_echo_n "checking whether $CC supports -g... " >&6; }
14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h. */
14407 if ac_fn_c_try_compile "$LINENO"; then :
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14410 $as_echo "yes" >&6; }
14415 CFLAGS="$ac_c_flag_save"
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417 $as_echo "no" >&6; }
14421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14423 ac_cpp='$CPP $CPPFLAGS'
14424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14431 ac_cpp='$CPP $CPPFLAGS'
14432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14436 ac_c_flag_save="$CFLAGS"
14437 CFLAGS="$CFLAGS -xO4"
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xO4" >&5
14439 $as_echo_n "checking whether $CC supports -xO4... " >&6; }
14440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14441 /* end confdefs.h. */
14451 if ac_fn_c_try_compile "$LINENO"; then :
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14454 $as_echo "yes" >&6; }
14459 CFLAGS="$ac_c_flag_save"
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14461 $as_echo "no" >&6; }
14465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14467 ac_cpp='$CPP $CPPFLAGS'
14468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14475 ac_cpp='$CPP $CPPFLAGS'
14476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14480 ac_c_flag_save="$CFLAGS"
14481 CFLAGS="$CFLAGS -xspace"
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xspace" >&5
14483 $as_echo_n "checking whether $CC supports -xspace... " >&6; }
14484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485 /* end confdefs.h. */
14495 if ac_fn_c_try_compile "$LINENO"; then :
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14498 $as_echo "yes" >&6; }
14503 CFLAGS="$ac_c_flag_save"
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14505 $as_echo "no" >&6; }
14509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14511 ac_cpp='$CPP $CPPFLAGS'
14512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14519 ac_cpp='$CPP $CPPFLAGS'
14520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14524 ac_c_flag_save="$CFLAGS"
14525 CFLAGS="$CFLAGS -xstrconst"
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xstrconst" >&5
14527 $as_echo_n "checking whether $CC supports -xstrconst... " >&6; }
14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529 /* end confdefs.h. */
14539 if ac_fn_c_try_compile "$LINENO"; then :
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14542 $as_echo "yes" >&6; }
14547 CFLAGS="$ac_c_flag_save"
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14549 $as_echo "no" >&6; }
14553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14555 ac_cpp='$CPP $CPPFLAGS'
14556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14563 ac_cpp='$CPP $CPPFLAGS'
14564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14568 ac_c_flag_save="$CFLAGS"
14569 CFLAGS="$CFLAGS -xc99"
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
14571 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
14572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h. */
14583 if ac_fn_c_try_compile "$LINENO"; then :
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14586 $as_echo "yes" >&6; }
14591 CFLAGS="$ac_c_flag_save"
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14593 $as_echo "no" >&6; }
14597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14599 ac_cpp='$CPP $CPPFLAGS'
14600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14607 ac_cpp='$CPP $CPPFLAGS'
14608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14612 ac_c_flag_save="$CFLAGS"
14613 CFLAGS="$CFLAGS -errfmt"
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -errfmt" >&5
14615 $as_echo_n "checking whether $CC supports -errfmt... " >&6; }
14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14627 if ac_fn_c_try_compile "$LINENO"; then :
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14630 $as_echo "yes" >&6; }
14635 CFLAGS="$ac_c_flag_save"
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14637 $as_echo "no" >&6; }
14641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14643 ac_cpp='$CPP $CPPFLAGS'
14644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14651 ac_cpp='$CPP $CPPFLAGS'
14652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14656 ac_c_flag_save="$CFLAGS"
14657 CFLAGS="$CFLAGS -xipo"
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xipo" >&5
14659 $as_echo_n "checking whether $CC supports -xipo... " >&6; }
14660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14661 /* end confdefs.h. */
14671 if ac_fn_c_try_compile "$LINENO"; then :
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14674 $as_echo "yes" >&6; }
14679 CFLAGS="$ac_c_flag_save"
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14681 $as_echo "no" >&6; }
14685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14687 ac_cpp='$CPP $CPPFLAGS'
14688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetecting" >&5
14696 $as_echo "autodetecting" >&6; }
14700 ac_cpp='$CPP $CPPFLAGS'
14701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14705 ac_c_flag_save="$CFLAGS"
14706 CFLAGS="$CFLAGS -diag-error 10006"
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -diag-error 10006" >&5
14708 $as_echo_n "checking whether $CC supports -diag-error 10006... " >&6; }
14709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14710 /* end confdefs.h. */
14720 if ac_fn_c_try_compile "$LINENO"; then :
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14723 $as_echo "yes" >&6; }
14728 CFLAGS="$ac_c_flag_save"
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14730 $as_echo "no" >&6; }
14734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14736 ac_cpp='$CPP $CPPFLAGS'
14737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14744 ac_cpp='$CPP $CPPFLAGS'
14745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14749 ac_c_flag_save="$CFLAGS"
14750 CFLAGS="$CFLAGS -g"
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
14752 $as_echo_n "checking whether $CC supports -g... " >&6; }
14753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14754 /* end confdefs.h. */
14764 if ac_fn_c_try_compile "$LINENO"; then :
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14767 $as_echo "yes" >&6; }
14772 CFLAGS="$ac_c_flag_save"
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14774 $as_echo "no" >&6; }
14778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14780 ac_cpp='$CPP $CPPFLAGS'
14781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14788 ac_cpp='$CPP $CPPFLAGS'
14789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14793 ac_c_flag_save="$CFLAGS"
14794 CFLAGS="$CFLAGS -Os"
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Os" >&5
14796 $as_echo_n "checking whether $CC supports -Os... " >&6; }
14797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14798 /* end confdefs.h. */
14808 if ac_fn_c_try_compile "$LINENO"; then :
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14811 $as_echo "yes" >&6; }
14816 CFLAGS="$ac_c_flag_save"
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14818 $as_echo "no" >&6; }
14822 ac_cpp='$CPP $CPPFLAGS'
14823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14827 ac_c_flag_save="$CFLAGS"
14828 CFLAGS="$CFLAGS -O2"
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
14830 $as_echo_n "checking whether $CC supports -O2... " >&6; }
14831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14832 /* end confdefs.h. */
14842 if ac_fn_c_try_compile "$LINENO"; then :
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14845 $as_echo "yes" >&6; }
14850 CFLAGS="$ac_c_flag_save"
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14852 $as_echo "no" >&6; }
14856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14858 ac_cpp='$CPP $CPPFLAGS'
14859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14869 ac_cpp='$CPP $CPPFLAGS'
14870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool can support fstack-protector" >&5
14876 $as_echo_n "checking whether libtool can support fstack-protector... " >&6; }
14877 if test x"$(./libtool --version | awk 'NR == 1 { print $NF }' \
14879 if ($(NF-2) < 2) print 0; \
14880 else if ($(NF-2) > 2) print 1; \
14881 else if ($(NF-1) < 4) print 0; \
14882 else if ($(NF-1) > 4) print 1; \
14883 else if ($NF < 6) print 0; \
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14887 $as_echo "yes" >&6; }
14890 ac_cpp='$CPP $CPPFLAGS'
14891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14895 ac_c_flag_save="$CFLAGS"
14896 CFLAGS="$CFLAGS -fstack-protector-strong"
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fstack-protector-strong" >&5
14898 $as_echo_n "checking whether $CC supports -fstack-protector-strong... " >&6; }
14899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900 /* end confdefs.h. */
14910 if ac_fn_c_try_compile "$LINENO"; then :
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14913 $as_echo "yes" >&6; }
14918 CFLAGS="$ac_c_flag_save"
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14920 $as_echo "no" >&6; }
14924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14926 ac_cpp='$CPP $CPPFLAGS'
14927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14934 ac_cpp='$CPP $CPPFLAGS'
14935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14939 ac_c_flag_save="$CFLAGS"
14940 CFLAGS="$CFLAGS --param=ssp-buffer-size=4"
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports --param=ssp-buffer-size=4" >&5
14942 $as_echo_n "checking whether $CC supports --param=ssp-buffer-size=4... " >&6; }
14943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14944 /* end confdefs.h. */
14954 if ac_fn_c_try_compile "$LINENO"; then :
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14957 $as_echo "yes" >&6; }
14962 CFLAGS="$ac_c_flag_save"
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14964 $as_echo "no" >&6; }
14968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14970 ac_cpp='$CPP $CPPFLAGS'
14971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14978 $as_echo "no" >&6; }
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: upgrade to libtool >= 2.4.6!" >&5
14980 $as_echo "$as_me: WARNING: upgrade to libtool >= 2.4.6!" >&2;}
14984 ac_cpp='$CPP $CPPFLAGS'
14985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14989 ac_c_flag_save="$CFLAGS"
14990 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -D_FORTIFY_SOURCE=2" >&5
14992 $as_echo_n "checking whether $CC supports -D_FORTIFY_SOURCE=2... " >&6; }
14993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h. */
15004 if ac_fn_c_try_compile "$LINENO"; then :
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15007 $as_echo "yes" >&6; }
15012 CFLAGS="$ac_c_flag_save"
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15014 $as_echo "no" >&6; }
15018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15020 ac_cpp='$CPP $CPPFLAGS'
15021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15028 ac_cpp='$CPP $CPPFLAGS'
15029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15033 ac_c_flag_save="$CFLAGS"
15034 CFLAGS="$CFLAGS -Wformat"
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat" >&5
15036 $as_echo_n "checking whether $CC supports -Wformat... " >&6; }
15037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15038 /* end confdefs.h. */
15048 if ac_fn_c_try_compile "$LINENO"; then :
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15051 $as_echo "yes" >&6; }
15056 CFLAGS="$ac_c_flag_save"
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15058 $as_echo "no" >&6; }
15062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15064 ac_cpp='$CPP $CPPFLAGS'
15065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15072 ac_cpp='$CPP $CPPFLAGS'
15073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15077 ac_c_flag_save="$CFLAGS"
15078 CFLAGS="$CFLAGS -Wformat-security"
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat-security" >&5
15080 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
15081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h. */
15092 if ac_fn_c_try_compile "$LINENO"; then :
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15095 $as_echo "yes" >&6; }
15100 CFLAGS="$ac_c_flag_save"
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15102 $as_echo "no" >&6; }
15106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15108 ac_cpp='$CPP $CPPFLAGS'
15109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15116 ac_cpp='$CPP $CPPFLAGS'
15117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15121 ac_c_flag_save="$CFLAGS"
15122 CFLAGS="$CFLAGS -fpie"
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fpie" >&5
15124 $as_echo_n "checking whether $CC supports -fpie... " >&6; }
15125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15126 /* end confdefs.h. */
15136 if ac_fn_c_try_compile "$LINENO"; then :
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15139 $as_echo "yes" >&6; }
15144 CFLAGS="$ac_c_flag_save"
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15146 $as_echo "no" >&6; }
15150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15152 ac_cpp='$CPP $CPPFLAGS'
15153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15160 ac_cpp='$CPP $CPPFLAGS'
15161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15165 ac_c_flag_save="$CFLAGS"
15166 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-omit-frame-pointer" >&5
15168 $as_echo_n "checking whether $CC supports -fno-omit-frame-pointer... " >&6; }
15169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h. */
15180 if ac_fn_c_try_compile "$LINENO"; then :
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15183 $as_echo "yes" >&6; }
15188 CFLAGS="$ac_c_flag_save"
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15190 $as_echo "no" >&6; }
15194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15196 ac_cpp='$CPP $CPPFLAGS'
15197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15204 ac_cpp='$CPP $CPPFLAGS'
15205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15209 ac_c_flag_save="$CFLAGS"
15210 CFLAGS="$CFLAGS -Wall"
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
15212 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
15213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h. */
15224 if ac_fn_c_try_compile "$LINENO"; then :
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15227 $as_echo "yes" >&6; }
15232 CFLAGS="$ac_c_flag_save"
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15234 $as_echo "no" >&6; }
15238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15240 ac_cpp='$CPP $CPPFLAGS'
15241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15248 ac_cpp='$CPP $CPPFLAGS'
15249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15253 ac_c_flag_save="$CFLAGS"
15254 CFLAGS="$CFLAGS -Wextra"
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
15256 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
15257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15258 /* end confdefs.h. */
15268 if ac_fn_c_try_compile "$LINENO"; then :
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15271 $as_echo "yes" >&6; }
15276 CFLAGS="$ac_c_flag_save"
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15278 $as_echo "no" >&6; }
15282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15284 ac_cpp='$CPP $CPPFLAGS'
15285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15292 ac_cpp='$CPP $CPPFLAGS'
15293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15297 ac_c_flag_save="$CFLAGS"
15298 CFLAGS="$CFLAGS -Wmissing-prototypes"
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-prototypes" >&5
15300 $as_echo_n "checking whether $CC supports -Wmissing-prototypes... " >&6; }
15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302 /* end confdefs.h. */
15312 if ac_fn_c_try_compile "$LINENO"; then :
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15315 $as_echo "yes" >&6; }
15320 CFLAGS="$ac_c_flag_save"
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15322 $as_echo "no" >&6; }
15326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15328 ac_cpp='$CPP $CPPFLAGS'
15329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15336 ac_cpp='$CPP $CPPFLAGS'
15337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15341 ac_c_flag_save="$CFLAGS"
15342 CFLAGS="$CFLAGS -Wmissing-declarations"
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-declarations" >&5
15344 $as_echo_n "checking whether $CC supports -Wmissing-declarations... " >&6; }
15345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15346 /* end confdefs.h. */
15356 if ac_fn_c_try_compile "$LINENO"; then :
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15359 $as_echo "yes" >&6; }
15364 CFLAGS="$ac_c_flag_save"
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15366 $as_echo "no" >&6; }
15370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15372 ac_cpp='$CPP $CPPFLAGS'
15373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15380 ac_cpp='$CPP $CPPFLAGS'
15381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15385 ac_c_flag_save="$CFLAGS"
15386 CFLAGS="$CFLAGS -Wpointer-arith"
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wpointer-arith" >&5
15388 $as_echo_n "checking whether $CC supports -Wpointer-arith... " >&6; }
15389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15390 /* end confdefs.h. */
15400 if ac_fn_c_try_compile "$LINENO"; then :
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15403 $as_echo "yes" >&6; }
15408 CFLAGS="$ac_c_flag_save"
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15410 $as_echo "no" >&6; }
15414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15416 ac_cpp='$CPP $CPPFLAGS'
15417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15424 ac_cpp='$CPP $CPPFLAGS'
15425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15429 ac_c_flag_save="$CFLAGS"
15430 CFLAGS="$CFLAGS -Wbad-function-cast"
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wbad-function-cast" >&5
15432 $as_echo_n "checking whether $CC supports -Wbad-function-cast... " >&6; }
15433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15434 /* end confdefs.h. */
15444 if ac_fn_c_try_compile "$LINENO"; then :
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15447 $as_echo "yes" >&6; }
15452 CFLAGS="$ac_c_flag_save"
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15454 $as_echo "no" >&6; }
15458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15460 ac_cpp='$CPP $CPPFLAGS'
15461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15468 ac_cpp='$CPP $CPPFLAGS'
15469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15473 ac_c_flag_save="$CFLAGS"
15474 CFLAGS="$CFLAGS -Wwrite-strings"
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wwrite-strings" >&5
15476 $as_echo_n "checking whether $CC supports -Wwrite-strings... " >&6; }
15477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15478 /* end confdefs.h. */
15488 if ac_fn_c_try_compile "$LINENO"; then :
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15491 $as_echo "yes" >&6; }
15496 CFLAGS="$ac_c_flag_save"
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15498 $as_echo "no" >&6; }
15502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15504 ac_cpp='$CPP $CPPFLAGS'
15505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15510 if test x"${enable_gcc_ultra_verbose}" = x"yes" ; then
15513 ac_cpp='$CPP $CPPFLAGS'
15514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15518 ac_c_flag_save="$CFLAGS"
15519 CFLAGS="$CFLAGS -Wcast-qual"
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wcast-qual" >&5
15521 $as_echo_n "checking whether $CC supports -Wcast-qual... " >&6; }
15522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15523 /* end confdefs.h. */
15533 if ac_fn_c_try_compile "$LINENO"; then :
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15536 $as_echo "yes" >&6; }
15541 CFLAGS="$ac_c_flag_save"
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15543 $as_echo "no" >&6; }
15547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15549 ac_cpp='$CPP $CPPFLAGS'
15550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15557 ac_cpp='$CPP $CPPFLAGS'
15558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15562 ac_c_flag_save="$CFLAGS"
15563 CFLAGS="$CFLAGS -Wstrict-prototypes"
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wstrict-prototypes" >&5
15565 $as_echo_n "checking whether $CC supports -Wstrict-prototypes... " >&6; }
15566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15567 /* end confdefs.h. */
15577 if ac_fn_c_try_compile "$LINENO"; then :
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15580 $as_echo "yes" >&6; }
15585 CFLAGS="$ac_c_flag_save"
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15587 $as_echo "no" >&6; }
15591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15593 ac_cpp='$CPP $CPPFLAGS'
15594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15601 ac_cpp='$CPP $CPPFLAGS'
15602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15606 ac_c_flag_save="$CFLAGS"
15607 CFLAGS="$CFLAGS -Wmissing-noreturn"
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-noreturn" >&5
15609 $as_echo_n "checking whether $CC supports -Wmissing-noreturn... " >&6; }
15610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15611 /* end confdefs.h. */
15621 if ac_fn_c_try_compile "$LINENO"; then :
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15624 $as_echo "yes" >&6; }
15629 CFLAGS="$ac_c_flag_save"
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15631 $as_echo "no" >&6; }
15635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15637 ac_cpp='$CPP $CPPFLAGS'
15638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15645 ac_cpp='$CPP $CPPFLAGS'
15646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15650 ac_c_flag_save="$CFLAGS"
15651 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-format-attribute" >&5
15653 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
15654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15655 /* end confdefs.h. */
15665 if ac_fn_c_try_compile "$LINENO"; then :
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15668 $as_echo "yes" >&6; }
15673 CFLAGS="$ac_c_flag_save"
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15675 $as_echo "no" >&6; }
15679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15681 ac_cpp='$CPP $CPPFLAGS'
15682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15689 ac_cpp='$CPP $CPPFLAGS'
15690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15694 ac_c_flag_save="$CFLAGS"
15695 CFLAGS="$CFLAGS -Wunreachable-code"
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunreachable-code" >&5
15697 $as_echo_n "checking whether $CC supports -Wunreachable-code... " >&6; }
15698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15699 /* end confdefs.h. */
15709 if ac_fn_c_try_compile "$LINENO"; then :
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15712 $as_echo "yes" >&6; }
15717 CFLAGS="$ac_c_flag_save"
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15719 $as_echo "no" >&6; }
15723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15725 ac_cpp='$CPP $CPPFLAGS'
15726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15733 ac_cpp='$CPP $CPPFLAGS'
15734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15738 ac_c_flag_save="$CFLAGS"
15739 CFLAGS="$CFLAGS -Wpacked"
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wpacked" >&5
15741 $as_echo_n "checking whether $CC supports -Wpacked... " >&6; }
15742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15743 /* end confdefs.h. */
15753 if ac_fn_c_try_compile "$LINENO"; then :
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15756 $as_echo "yes" >&6; }
15761 CFLAGS="$ac_c_flag_save"
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15763 $as_echo "no" >&6; }
15767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15769 ac_cpp='$CPP $CPPFLAGS'
15770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15777 ac_cpp='$CPP $CPPFLAGS'
15778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15782 ac_c_flag_save="$CFLAGS"
15783 CFLAGS="$CFLAGS -Wpadded"
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wpadded" >&5
15785 $as_echo_n "checking whether $CC supports -Wpadded... " >&6; }
15786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15787 /* end confdefs.h. */
15797 if ac_fn_c_try_compile "$LINENO"; then :
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15800 $as_echo "yes" >&6; }
15805 CFLAGS="$ac_c_flag_save"
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15807 $as_echo "no" >&6; }
15811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15813 ac_cpp='$CPP $CPPFLAGS'
15814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15822 ac_cpp='$CPP $CPPFLAGS'
15823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15827 ac_c_flag_save="$CFLAGS"
15828 CFLAGS="$CFLAGS -Wno-unused-result"
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-result" >&5
15830 $as_echo_n "checking whether $CC supports -Wno-unused-result... " >&6; }
15831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832 /* end confdefs.h. */
15842 if ac_fn_c_try_compile "$LINENO"; then :
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15845 $as_echo "yes" >&6; }
15850 CFLAGS="$ac_c_flag_save"
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15852 $as_echo "no" >&6; }
15856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15858 ac_cpp='$CPP $CPPFLAGS'
15859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15867 ac_cpp='$CPP $CPPFLAGS'
15868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15872 ac_c_flag_save="$CFLAGS"
15873 CFLAGS="$CFLAGS -Wno-unused-parameter"
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5
15875 $as_echo_n "checking whether $CC supports -Wno-unused-parameter... " >&6; }
15876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877 /* end confdefs.h. */
15887 if ac_fn_c_try_compile "$LINENO"; then :
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15890 $as_echo "yes" >&6; }
15895 CFLAGS="$ac_c_flag_save"
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15897 $as_echo "no" >&6; }
15901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15903 ac_cpp='$CPP $CPPFLAGS'
15904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15911 ac_cpp='$CPP $CPPFLAGS'
15912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15916 ac_c_flag_save="$CFLAGS"
15917 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-missing-field-initializers" >&5
15919 $as_echo_n "checking whether $CC supports -Wno-missing-field-initializers... " >&6; }
15920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15921 /* end confdefs.h. */
15931 if ac_fn_c_try_compile "$LINENO"; then :
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15934 $as_echo "yes" >&6; }
15939 CFLAGS="$ac_c_flag_save"
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15941 $as_echo "no" >&6; }
15945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15947 ac_cpp='$CPP $CPPFLAGS'
15948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15953 # ICC emits a broken warning for const char *x = a ? "b" : "c";
15954 # for some reason the string consts get 'promoted' to char *,
15955 # triggering a const to non-const conversion warning.
15958 ac_cpp='$CPP $CPPFLAGS'
15959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15963 ac_c_flag_save="$CFLAGS"
15964 CFLAGS="$CFLAGS -diag-disable 3179"
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -diag-disable 3179" >&5
15966 $as_echo_n "checking whether $CC supports -diag-disable 3179... " >&6; }
15967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968 /* end confdefs.h. */
15978 if ac_fn_c_try_compile "$LINENO"; then :
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15981 $as_echo "yes" >&6; }
15986 CFLAGS="$ac_c_flag_save"
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15988 $as_echo "no" >&6; }
15992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15994 ac_cpp='$CPP $CPPFLAGS'
15995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CFLAGS supplied by user" >&5
16004 $as_echo "CFLAGS supplied by user" >&6; }
16007 if test x"${enable_werror}" = x"yes" ; then
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16014 $as_echo_n "checking whether ln -s works... " >&6; }
16016 if test "$LN_S" = "ln -s"; then
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16018 $as_echo "yes" >&6; }
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16021 $as_echo "no, using $LN_S" >&6; }
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16025 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16027 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16028 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16029 $as_echo_n "(cached) " >&6
16031 cat >conftest.make <<\_ACEOF
16034 @echo '@@@%%%=$(MAKE)=@@@%%%'
16036 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16037 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16038 *@@@%%%=?*=@@@%%%*)
16039 eval ac_cv_prog_make_${ac_make}_set=yes;;
16041 eval ac_cv_prog_make_${ac_make}_set=no;;
16043 rm -f conftest.make
16045 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16047 $as_echo "yes" >&6; }
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16051 $as_echo "no" >&6; }
16052 SET_MAKE="MAKE=${MAKE-make}"
16055 if test -n "$ac_tool_prefix"; then
16056 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16057 set dummy ${ac_tool_prefix}ar; ac_word=$2
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16059 $as_echo_n "checking for $ac_word... " >&6; }
16060 if ${ac_cv_prog_AR+:} false; then :
16061 $as_echo_n "(cached) " >&6
16063 if test -n "$AR"; then
16064 ac_cv_prog_AR="$AR" # Let the user override the test.
16066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16067 for as_dir in $PATH
16070 test -z "$as_dir" && as_dir=.
16071 for ac_exec_ext in '' $ac_executable_extensions; do
16072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16073 ac_cv_prog_AR="${ac_tool_prefix}ar"
16074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16084 if test -n "$AR"; then
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16086 $as_echo "$AR" >&6; }
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16089 $as_echo "no" >&6; }
16094 if test -z "$ac_cv_prog_AR"; then
16096 # Extract the first word of "ar", so it can be a program name with args.
16097 set dummy ar; ac_word=$2
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16099 $as_echo_n "checking for $ac_word... " >&6; }
16100 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16101 $as_echo_n "(cached) " >&6
16103 if test -n "$ac_ct_AR"; then
16104 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16107 for as_dir in $PATH
16110 test -z "$as_dir" && as_dir=.
16111 for ac_exec_ext in '' $ac_executable_extensions; do
16112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16113 ac_cv_prog_ac_ct_AR="ar"
16114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16123 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16124 if test -n "$ac_ct_AR"; then
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16126 $as_echo "$ac_ct_AR" >&6; }
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16129 $as_echo "no" >&6; }
16132 if test "x$ac_ct_AR" = x; then
16135 case $cross_compiling:$ac_tool_warned in
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16139 ac_tool_warned=yes ;;
16144 AR="$ac_cv_prog_AR"
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE-make} is GNU make" >&5
16149 $as_echo_n "checking if ${MAKE-make} is GNU make... " >&6; }
16150 if ${quagga_cv_gnu_make+:} false; then :
16151 $as_echo_n "(cached) " >&6
16153 quagga_cv_gnu_make=no
16154 if ${MAKE-make} --version 2>/dev/null | \
16155 grep '^GNU Make ' >/dev/null ; then
16156 quagga_cv_gnu_make=yes;
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quagga_cv_gnu_make" >&5
16162 $as_echo "$quagga_cv_gnu_make" >&6; }
16168 # Check whether --with-pkg-extra-version was given.
16169 if test "${with_pkg_extra_version+set}" = set; then :
16170 withval=$with_pkg_extra_version; EXTRAVERSION=$withval
16174 # Check whether --with-pkg-git-version was given.
16175 if test "${with_pkg_git_version+set}" = set; then :
16176 withval=$with_pkg_git_version; test "x$withval" != "xno" && with_pkg_git_version="yes"
16179 # Check whether --enable-vtysh was given.
16180 if test "${enable_vtysh+set}" = set; then :
16181 enableval=$enable_vtysh;
16184 # Check whether --enable-doc was given.
16185 if test "${enable_doc+set}" = set; then :
16186 enableval=$enable_doc;
16189 # Check whether --enable-zebra was given.
16190 if test "${enable_zebra+set}" = set; then :
16191 enableval=$enable_zebra;
16194 # Check whether --enable-bgpd was given.
16195 if test "${enable_bgpd+set}" = set; then :
16196 enableval=$enable_bgpd;
16199 # Check whether --enable-ripd was given.
16200 if test "${enable_ripd+set}" = set; then :
16201 enableval=$enable_ripd;
16204 # Check whether --enable-ripngd was given.
16205 if test "${enable_ripngd+set}" = set; then :
16206 enableval=$enable_ripngd;
16209 # Check whether --enable-ospfd was given.
16210 if test "${enable_ospfd+set}" = set; then :
16211 enableval=$enable_ospfd;
16214 # Check whether --enable-ospf6d was given.
16215 if test "${enable_ospf6d+set}" = set; then :
16216 enableval=$enable_ospf6d;
16219 # Check whether --enable-nhrpd was given.
16220 if test "${enable_nhrpd+set}" = set; then :
16221 enableval=$enable_nhrpd;
16224 # Check whether --enable-watchquagga was given.
16225 if test "${enable_watchquagga+set}" = set; then :
16226 enableval=$enable_watchquagga;
16229 # Check whether --enable-isisd was given.
16230 if test "${enable_isisd+set}" = set; then :
16231 enableval=$enable_isisd;
16234 # Check whether --enable-pimd was given.
16235 if test "${enable_pimd+set}" = set; then :
16236 enableval=$enable_pimd;
16239 # Check whether --enable-bgp-announce was given.
16240 if test "${enable_bgp_announce+set}" = set; then :
16241 enableval=$enable_bgp_announce;
16244 # Check whether --enable-snmp was given.
16245 if test "${enable_snmp+set}" = set; then :
16246 enableval=$enable_snmp;
16250 # Check whether --with-libpam was given.
16251 if test "${with_libpam+set}" = set; then :
16252 withval=$with_libpam;
16255 # Check whether --enable-tcp-zebra was given.
16256 if test "${enable_tcp_zebra+set}" = set; then :
16257 enableval=$enable_tcp_zebra;
16260 # Check whether --enable-ospfapi was given.
16261 if test "${enable_ospfapi+set}" = set; then :
16262 enableval=$enable_ospfapi;
16265 # Check whether --enable-ospfclient was given.
16266 if test "${enable_ospfclient+set}" = set; then :
16267 enableval=$enable_ospfclient;
16270 # Check whether --enable-multipath was given.
16271 if test "${enable_multipath+set}" = set; then :
16272 enableval=$enable_multipath;
16275 # Check whether --enable-user was given.
16276 if test "${enable_user+set}" = set; then :
16277 enableval=$enable_user;
16280 # Check whether --enable-group was given.
16281 if test "${enable_group+set}" = set; then :
16282 enableval=$enable_group;
16285 # Check whether --enable-vty_group was given.
16286 if test "${enable_vty_group+set}" = set; then :
16287 enableval=$enable_vty_group;
16290 # Check whether --enable-configfile_mask was given.
16291 if test "${enable_configfile_mask+set}" = set; then :
16292 enableval=$enable_configfile_mask;
16295 # Check whether --enable-logfile_mask was given.
16296 if test "${enable_logfile_mask+set}" = set; then :
16297 enableval=$enable_logfile_mask;
16301 # Check whether --enable-rtadv was given.
16302 if test "${enable_rtadv+set}" = set; then :
16303 enableval=$enable_rtadv;
16306 # Check whether --enable-irdp was given.
16307 if test "${enable_irdp+set}" = set; then :
16308 enableval=$enable_irdp;
16311 # Check whether --enable-isis_topology was given.
16312 if test "${enable_isis_topology+set}" = set; then :
16313 enableval=$enable_isis_topology;
16316 # Check whether --enable-capabilities was given.
16317 if test "${enable_capabilities+set}" = set; then :
16318 enableval=$enable_capabilities;
16321 # Check whether --enable-rusage was given.
16322 if test "${enable_rusage+set}" = set; then :
16323 enableval=$enable_rusage;
16326 # Check whether --enable-gcc_ultra_verbose was given.
16327 if test "${enable_gcc_ultra_verbose+set}" = set; then :
16328 enableval=$enable_gcc_ultra_verbose;
16331 # Check whether --enable-linux24_tcp_md5 was given.
16332 if test "${enable_linux24_tcp_md5+set}" = set; then :
16333 enableval=$enable_linux24_tcp_md5;
16336 # Check whether --enable-gcc-rdynamic was given.
16337 if test "${enable_gcc_rdynamic+set}" = set; then :
16338 enableval=$enable_gcc_rdynamic;
16341 # Check whether --enable-backtrace was given.
16342 if test "${enable_backtrace+set}" = set; then :
16343 enableval=$enable_backtrace;
16346 # Check whether --enable-time-check was given.
16347 if test "${enable_time_check+set}" = set; then :
16348 enableval=$enable_time_check;
16351 # Check whether --enable-pcreposix was given.
16352 if test "${enable_pcreposix+set}" = set; then :
16353 enableval=$enable_pcreposix;
16356 # Check whether --enable-fpm was given.
16357 if test "${enable_fpm+set}" = set; then :
16358 enableval=$enable_fpm;
16361 # Check whether --enable-werror was given.
16362 if test "${enable_werror+set}" = set; then :
16363 enableval=$enable_werror;
16366 # Check whether --enable-protobuf was given.
16367 if test "${enable_protobuf+set}" = set; then :
16368 enableval=$enable_protobuf;
16372 # Check whether --enable-dev_build was given.
16373 if test "${enable_dev_build+set}" = set; then :
16374 enableval=$enable_dev_build;
16378 if test x"${enable_gcc_rdynamic}" != x"no" ; then
16379 if test x"${enable_gcc_rdynamic}" = x"yes" -o x"$COMPILER" = x"GCC"; then
16380 LDFLAGS="${LDFLAGS} -rdynamic"
16384 if test x"${enable_time_check}" != x"no" ; then
16385 if test x"${enable_time_check}" = x"yes" -o x"${enable_time_check}" = x ; then
16387 $as_echo "#define CONSUMED_TIME_CHECK 5000000" >>confdefs.h
16391 cat >>confdefs.h <<_ACEOF
16392 #define CONSUMED_TIME_CHECK $enable_time_check
16398 if test "${enable_fpm}" = "yes"; then
16400 $as_echo "#define HAVE_FPM /**/" >>confdefs.h
16404 if test "x${enable_dev_build}" = "xyes"; then
16406 $as_echo "#define DEV_BUILD /**/" >>confdefs.h
16409 if test "x$enable_dev_build" = "xyes"; then
16411 DEV_BUILD_FALSE='#'
16419 # Logic for protobuf support.
16421 if test "$enable_protobuf" = "yes"; then
16424 # Check for protoc-c
16425 # Extract the first word of "protoc-c", so it can be a program name with args.
16426 set dummy protoc-c; ac_word=$2
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16428 $as_echo_n "checking for $ac_word... " >&6; }
16429 if ${ac_cv_prog_PROTOC_C+:} false; then :
16430 $as_echo_n "(cached) " >&6
16432 if test -n "$PROTOC_C"; then
16433 ac_cv_prog_PROTOC_C="$PROTOC_C" # Let the user override the test.
16435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16436 for as_dir in $PATH
16439 test -z "$as_dir" && as_dir=.
16440 for ac_exec_ext in '' $ac_executable_extensions; do
16441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16442 ac_cv_prog_PROTOC_C="protoc-c"
16443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16450 test -z "$ac_cv_prog_PROTOC_C" && ac_cv_prog_PROTOC_C="/bin/false"
16453 PROTOC_C=$ac_cv_prog_PROTOC_C
16454 if test -n "$PROTOC_C"; then
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
16456 $as_echo "$PROTOC_C" >&6; }
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16459 $as_echo "no" >&6; }
16463 if test "x$PROTOC_C" = "x/bin/false"; then
16466 found_protobuf_c=no
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROTOBUF_C" >&5
16470 $as_echo_n "checking for PROTOBUF_C... " >&6; }
16472 if test -n "$PROTOBUF_C_CFLAGS"; then
16473 pkg_cv_PROTOBUF_C_CFLAGS="$PROTOBUF_C_CFLAGS"
16474 elif test -n "$PKG_CONFIG"; then
16475 if test -n "$PKG_CONFIG" && \
16476 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libprotobuf-c >= 0.14\""; } >&5
16477 ($PKG_CONFIG --exists --print-errors "libprotobuf-c >= 0.14") 2>&5
16479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16480 test $ac_status = 0; }; then
16481 pkg_cv_PROTOBUF_C_CFLAGS=`$PKG_CONFIG --cflags "libprotobuf-c >= 0.14" 2>/dev/null`
16482 test "x$?" != "x0" && pkg_failed=yes
16489 if test -n "$PROTOBUF_C_LIBS"; then
16490 pkg_cv_PROTOBUF_C_LIBS="$PROTOBUF_C_LIBS"
16491 elif test -n "$PKG_CONFIG"; then
16492 if test -n "$PKG_CONFIG" && \
16493 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libprotobuf-c >= 0.14\""; } >&5
16494 ($PKG_CONFIG --exists --print-errors "libprotobuf-c >= 0.14") 2>&5
16496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16497 test $ac_status = 0; }; then
16498 pkg_cv_PROTOBUF_C_LIBS=`$PKG_CONFIG --libs "libprotobuf-c >= 0.14" 2>/dev/null`
16499 test "x$?" != "x0" && pkg_failed=yes
16509 if test $pkg_failed = yes; then
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16511 $as_echo "no" >&6; }
16513 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16514 _pkg_short_errors_supported=yes
16516 _pkg_short_errors_supported=no
16518 if test $_pkg_short_errors_supported = yes; then
16519 PROTOBUF_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libprotobuf-c >= 0.14" 2>&1`
16521 PROTOBUF_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libprotobuf-c >= 0.14" 2>&1`
16523 # Put the nasty error message in config.log where it belongs
16524 echo "$PROTOBUF_C_PKG_ERRORS" >&5
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config did not find libprotobuf-c" >&5
16527 $as_echo "pkg-config did not find libprotobuf-c" >&6; }
16528 elif test $pkg_failed = untried; then
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16530 $as_echo "no" >&6; }
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config did not find libprotobuf-c" >&5
16532 $as_echo "pkg-config did not find libprotobuf-c" >&6; }
16534 PROTOBUF_C_CFLAGS=$pkg_cv_PROTOBUF_C_CFLAGS
16535 PROTOBUF_C_LIBS=$pkg_cv_PROTOBUF_C_LIBS
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16537 $as_echo "yes" >&6; }
16538 found_protobuf_c=yes
16541 if test "x$found_protobuf_c" = "xyes"; then
16542 LDFLAGS="$LDFLAGS $PROTOBUF_C_LIBS"
16543 CFLAGS="$CFLAGS $PROTOBUF_C_CFLAGS"
16545 ac_fn_c_check_header_mongrel "$LINENO" "google/protobuf-c/protobuf-c.h" "ac_cv_header_google_protobuf_c_protobuf_c_h" "$ac_includes_default"
16546 if test "x$ac_cv_header_google_protobuf_c_protobuf_c_h" = xyes; then :
16549 have_protobuf=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Couldn't find google/protobuf-c.h" >&5
16550 $as_echo "Couldn't find google/protobuf-c.h" >&6; }
16558 # Fail if the user explicity enabled protobuf support and we couldn't
16559 # find the compiler or libraries.
16560 if test "x$have_protobuf" = "xno" && test "x$enable_protobuf" = "xyes"; then
16561 as_fn_error $? "Protobuf enabled explicitly but can't find libraries/tools" "$LINENO" 5
16564 if test "x$have_protobuf" = "xyes"; then
16566 $as_echo "#define HAVE_PROTOBUF /**/" >>confdefs.h
16570 if test "x$have_protobuf" = "xyes"; then
16571 HAVE_PROTOBUF_TRUE=
16572 HAVE_PROTOBUF_FALSE='#'
16574 HAVE_PROTOBUF_TRUE='#'
16575 HAVE_PROTOBUF_FALSE=
16580 # End of logic for protobuf support.
16583 if test "${enable_tcp_zebra}" = "yes"; then
16585 $as_echo "#define HAVE_TCP_ZEBRA /**/" >>confdefs.h
16589 if test "${enable_linux24_tcp_md5}" = "yes"; then
16591 $as_echo "#define HAVE_TCP_MD5_LINUX24 /**/" >>confdefs.h
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if zebra should be configurable to send Route Advertisements" >&5
16596 $as_echo_n "checking if zebra should be configurable to send Route Advertisements... " >&6; }
16597 if test "${enable_rtadv}" != "no"; then
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16599 $as_echo "yes" >&6; }
16601 $as_echo "#define HAVE_RTADV /**/" >>confdefs.h
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16605 $as_echo "no" >&6; }
16608 if test "${enable_irdp}" = "yes"; then
16610 $as_echo "#define HAVE_IRDP /**/" >>confdefs.h
16614 if test "${enable_isisd}" != "no" && test "${enable_isis_topology}" = yes; then
16616 $as_echo "#define TOPOLOGY_GENERATE /**/" >>confdefs.h
16618 ISIS_TOPOLOGY_INCLUDES="-I\$(srcdir)/topology"
16619 ISIS_TOPOLOGY_DIR="topology"
16620 ISIS_TOPOLOGY_LIB="./topology/libtopology.a"
16627 if test x"${enable_user}" = x"no"; then
16630 if test x"${enable_user}" = x"yes" || test x"${enable_user}" = x""; then
16631 enable_user="quagga"
16634 cat >>confdefs.h <<_ACEOF
16635 #define QUAGGA_USER "${enable_user}"
16640 if test x"${enable_group}" = x"no"; then
16643 if test x"${enable_group}" = x"yes" || test x"${enable_group}" = x""; then
16644 enable_group="quagga"
16647 cat >>confdefs.h <<_ACEOF
16648 #define QUAGGA_GROUP "${enable_group}"
16653 if test x"${enable_vty_group}" = x"yes" ; then
16654 as_fn_error $? "--enable-vty-group requires a group as argument, not yes" "$LINENO" 5
16655 elif test x"${enable_vty_group}" != x""; then
16656 if test x"${enable_vty_group}" != x"no"; then
16658 cat >>confdefs.h <<_ACEOF
16659 #define VTY_GROUP "${enable_vty_group}"
16668 enable_configfile_mask=${enable_configfile_mask:-0600}
16670 cat >>confdefs.h <<_ACEOF
16671 #define CONFIGFILE_MASK ${enable_configfile_mask}
16675 enable_logfile_mask=${enable_logfile_mask:-0600}
16677 cat >>confdefs.h <<_ACEOF
16678 #define LOGFILE_MASK ${enable_logfile_mask}
16684 case "${enable_multipath}" in
16688 [1-9]|[1-9][0-9]|[1-9][0-9][0-9])
16689 MPATH_NUM="${enable_multipath}"
16694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16696 as_fn_error $? "Please specify digit to enable multipath ARG
16697 See \`config.log' for more details" "$LINENO" 5; }
16702 cat >>confdefs.h <<_ACEOF
16703 #define MULTIPATH_NUM $MPATH_NUM
16707 if test "x${EXTRAVERSION}" != "x" ; then
16708 VERSION="${VERSION}${EXTRAVERSION}"
16709 PACKAGE_VERSION="${PACKAGE_VERSION}${EXTRAVERSION}"
16710 PACKAGE_STRING="${PACKAGE_STRING}${EXTRAVERSION}"
16713 if test "x$with_pkg_git_version" = "xyes"; then
16714 if test -d "${srcdir}/.git"; then
16716 $as_echo "#define GIT_VERSION 1" >>confdefs.h
16718 else with_pkg_git_version="no"
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pkg-git-version given, but this is not a git checkout" >&5
16720 $as_echo "$as_me: WARNING: --with-pkg-git-version given, but this is not a git checkout" >&2;}
16723 if test "x$with_pkg_git_version" = "xyes"; then
16725 GIT_VERSION_FALSE='#'
16727 GIT_VERSION_TRUE='#'
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16733 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16734 if ${ac_cv_c_const+:} false; then :
16735 $as_echo_n "(cached) " >&6
16737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16738 /* end confdefs.h. */
16744 #ifndef __cplusplus
16745 /* Ultrix mips cc rejects this sort of thing. */
16746 typedef int charset[2];
16747 const charset cs = { 0, 0 };
16748 /* SunOS 4.1.1 cc rejects this. */
16749 char const *const *pcpcc;
16751 /* NEC SVR4.0.2 mips cc rejects this. */
16752 struct point {int x, y;};
16753 static struct point const zero = {0,0};
16754 /* AIX XL C 1.02.0.0 rejects this.
16755 It does not let you subtract one const X* pointer from another in
16756 an arm of an if-expression whose if-part is not a constant
16758 const char *g = "string";
16759 pcpcc = &g + (g ? g-g : 0);
16760 /* HPUX 7.0 cc rejects these. */
16762 ppc = (char**) pcpcc;
16763 pcpcc = (char const *const *) ppc;
16764 { /* SCO 3.2v4 cc rejects this sort of thing. */
16767 char const *s = 0 ? (char *) 0 : (char const *) 0;
16772 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16773 int x[] = {25, 17};
16774 const int *foo = &x[0];
16777 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16778 typedef const int *iptr;
16782 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16783 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16784 struct s { int j; const int *ap[3]; } bx;
16785 struct s *b = &bx; b->j = 5;
16787 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16788 const int foo = 10;
16789 if (!foo) return 0;
16791 return !cs[0] && !zero.x;
16798 if ac_fn_c_try_compile "$LINENO"; then :
16803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16806 $as_echo "$ac_cv_c_const" >&6; }
16807 if test $ac_cv_c_const = no; then
16809 $as_echo "#define const /**/" >>confdefs.h
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16814 $as_echo_n "checking for inline... " >&6; }
16815 if ${ac_cv_c_inline+:} false; then :
16816 $as_echo_n "(cached) " >&6
16819 for ac_kw in inline __inline__ __inline; do
16820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16821 /* end confdefs.h. */
16822 #ifndef __cplusplus
16824 static $ac_kw foo_t static_foo () {return 0; }
16825 $ac_kw foo_t foo () {return 0; }
16829 if ac_fn_c_try_compile "$LINENO"; then :
16830 ac_cv_c_inline=$ac_kw
16832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16833 test "$ac_cv_c_inline" != no && break
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16838 $as_echo "$ac_cv_c_inline" >&6; }
16840 case $ac_cv_c_inline in
16843 case $ac_cv_c_inline in
16845 *) ac_val=$ac_cv_c_inline;;
16847 cat >>confdefs.h <<_ACEOF
16848 #ifndef __cplusplus
16849 #define inline $ac_val
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
16856 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
16857 if ${ac_cv_c_restrict+:} false; then :
16858 $as_echo_n "(cached) " >&6
16860 ac_cv_c_restrict=no
16861 # The order here caters to the fact that C++ does not require restrict.
16862 for ac_kw in __restrict __restrict__ _Restrict restrict; do
16863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16864 /* end confdefs.h. */
16865 typedef int * int_ptr;
16866 int foo (int_ptr $ac_kw ip) {
16873 int * $ac_kw t = s;
16880 if ac_fn_c_try_compile "$LINENO"; then :
16881 ac_cv_c_restrict=$ac_kw
16883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16884 test "$ac_cv_c_restrict" != no && break
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
16889 $as_echo "$ac_cv_c_restrict" >&6; }
16891 case $ac_cv_c_restrict in
16893 no) $as_echo "#define restrict /**/" >>confdefs.h
16895 *) cat >>confdefs.h <<_ACEOF
16896 #define restrict $ac_cv_c_restrict
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
16902 $as_echo_n "checking for working volatile... " >&6; }
16903 if ${ac_cv_c_volatile+:} false; then :
16904 $as_echo_n "(cached) " >&6
16906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16907 /* end confdefs.h. */
16914 int * volatile y = (int *) 0;
16920 if ac_fn_c_try_compile "$LINENO"; then :
16921 ac_cv_c_volatile=yes
16923 ac_cv_c_volatile=no
16925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
16928 $as_echo "$ac_cv_c_volatile" >&6; }
16929 if test $ac_cv_c_volatile = no; then
16931 $as_echo "#define volatile /**/" >>confdefs.h
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16936 $as_echo_n "checking for ANSI C header files... " >&6; }
16937 if ${ac_cv_header_stdc+:} false; then :
16938 $as_echo_n "(cached) " >&6
16940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16941 /* end confdefs.h. */
16942 #include <stdlib.h>
16943 #include <stdarg.h>
16944 #include <string.h>
16955 if ac_fn_c_try_compile "$LINENO"; then :
16956 ac_cv_header_stdc=yes
16958 ac_cv_header_stdc=no
16960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16962 if test $ac_cv_header_stdc = yes; then
16963 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16965 /* end confdefs.h. */
16966 #include <string.h>
16969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16970 $EGREP "memchr" >/dev/null 2>&1; then :
16973 ac_cv_header_stdc=no
16979 if test $ac_cv_header_stdc = yes; then
16980 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16982 /* end confdefs.h. */
16983 #include <stdlib.h>
16986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16987 $EGREP "free" >/dev/null 2>&1; then :
16990 ac_cv_header_stdc=no
16996 if test $ac_cv_header_stdc = yes; then
16997 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16998 if test "$cross_compiling" = yes; then :
17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17002 /* end confdefs.h. */
17004 #include <stdlib.h>
17005 #if ((' ' & 0x0FF) == 0x020)
17006 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17007 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17009 # define ISLOWER(c) \
17010 (('a' <= (c) && (c) <= 'i') \
17011 || ('j' <= (c) && (c) <= 'r') \
17012 || ('s' <= (c) && (c) <= 'z'))
17013 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17016 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17021 for (i = 0; i < 256; i++)
17022 if (XOR (islower (i), ISLOWER (i))
17023 || toupper (i) != TOUPPER (i))
17028 if ac_fn_c_try_run "$LINENO"; then :
17031 ac_cv_header_stdc=no
17033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17034 conftest.$ac_objext conftest.beam conftest.$ac_ext
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17040 $as_echo "$ac_cv_header_stdc" >&6; }
17041 if test $ac_cv_header_stdc = yes; then
17043 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17048 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17049 if ${ac_cv_header_time+:} false; then :
17050 $as_echo_n "(cached) " >&6
17052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17053 /* end confdefs.h. */
17054 #include <sys/types.h>
17055 #include <sys/time.h>
17061 if ((struct tm *) 0)
17067 if ac_fn_c_try_compile "$LINENO"; then :
17068 ac_cv_header_time=yes
17070 ac_cv_header_time=no
17072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17075 $as_echo "$ac_cv_header_time" >&6; }
17076 if test $ac_cv_header_time = yes; then
17078 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
17083 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
17084 if ${ac_cv_header_sys_wait_h+:} false; then :
17085 $as_echo_n "(cached) " >&6
17087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17088 /* end confdefs.h. */
17089 #include <sys/types.h>
17090 #include <sys/wait.h>
17091 #ifndef WEXITSTATUS
17092 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
17095 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
17103 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
17108 if ac_fn_c_try_compile "$LINENO"; then :
17109 ac_cv_header_sys_wait_h=yes
17111 ac_cv_header_sys_wait_h=no
17113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
17116 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
17117 if test $ac_cv_header_sys_wait_h = yes; then
17119 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17124 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17125 if ${ac_cv_header_stdbool_h+:} false; then :
17126 $as_echo_n "(cached) " >&6
17128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129 /* end confdefs.h. */
17131 #include <stdbool.h>
17133 "error: bool is not defined"
17136 "error: false is not defined"
17139 "error: false is not 0"
17142 "error: true is not defined"
17145 "error: true is not 1"
17147 #ifndef __bool_true_false_are_defined
17148 "error: __bool_true_false_are_defined is not defined"
17151 struct s { _Bool s: 1; _Bool t; } s;
17153 char a[true == 1 ? 1 : -1];
17154 char b[false == 0 ? 1 : -1];
17155 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17156 char d[(bool) 0.5 == true ? 1 : -1];
17157 /* See body of main program for 'e'. */
17158 char f[(_Bool) 0.0 == false ? 1 : -1];
17160 char h[sizeof (_Bool)];
17161 char i[sizeof s.t];
17162 enum { j = false, k = true, l = false * true, m = true * 256 };
17163 /* The following fails for
17164 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17166 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17167 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17168 /* Catch a bug in an HP-UX C compiler. See
17169 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17170 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17182 /* Refer to every declared value, to avoid compiler optimizations. */
17183 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17184 + !m + !n + !o + !p + !q + !pq);
17190 if ac_fn_c_try_compile "$LINENO"; then :
17191 ac_cv_header_stdbool_h=yes
17193 ac_cv_header_stdbool_h=no
17195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17198 $as_echo "$ac_cv_header_stdbool_h" >&6; }
17199 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17200 if test "x$ac_cv_type__Bool" = xyes; then :
17202 cat >>confdefs.h <<_ACEOF
17203 #define HAVE__BOOL 1
17210 if test $ac_cv_header_stdbool_h = yes; then
17212 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17217 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
17218 if ${ac_cv_type_uid_t+:} false; then :
17219 $as_echo_n "(cached) " >&6
17221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17222 /* end confdefs.h. */
17223 #include <sys/types.h>
17226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17227 $EGREP "uid_t" >/dev/null 2>&1; then :
17228 ac_cv_type_uid_t=yes
17230 ac_cv_type_uid_t=no
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17236 $as_echo "$ac_cv_type_uid_t" >&6; }
17237 if test $ac_cv_type_uid_t = no; then
17239 $as_echo "#define uid_t int" >>confdefs.h
17242 $as_echo "#define gid_t int" >>confdefs.h
17246 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17247 if test "x$ac_cv_type_mode_t" = xyes; then :
17251 cat >>confdefs.h <<_ACEOF
17257 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17258 if test "x$ac_cv_type_size_t" = xyes; then :
17262 cat >>confdefs.h <<_ACEOF
17263 #define size_t unsigned int
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17269 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17270 if ${ac_cv_struct_tm+:} false; then :
17271 $as_echo_n "(cached) " >&6
17273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17274 /* end confdefs.h. */
17275 #include <sys/types.h>
17282 int *p = &tm.tm_sec;
17288 if ac_fn_c_try_compile "$LINENO"; then :
17289 ac_cv_struct_tm=time.h
17291 ac_cv_struct_tm=sys/time.h
17293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17296 $as_echo "$ac_cv_struct_tm" >&6; }
17297 if test $ac_cv_struct_tm = sys/time.h; then
17299 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17304 for ac_header in stropts.h sys/ksym.h sys/times.h sys/select.h \
17305 sys/types.h linux/version.h netdb.h asm/types.h \
17306 sys/cdefs.h sys/param.h limits.h signal.h \
17307 sys/socket.h netinet/in.h time.h sys/time.h features.h
17309 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17310 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17311 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17312 cat >>confdefs.h <<_ACEOF
17313 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17323 for ac_header in net/if.h
17325 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef SUNOS_5
17327 #define __EXTENSIONS__
17331 # include <stdlib.h>
17332 # include <stddef.h>
17335 # include <stdlib.h>
17338 #if HAVE_SYS_TYPES_H
17339 # include <sys/types.h>
17341 /* sys/conf.h depends on param.h on FBSD at least */
17342 #if HAVE_SYS_PARAM_H
17343 # include <sys/param.h>
17345 /* Required for MAXSIG */
17347 # include <signal.h>
17349 #if HAVE_SYS_SOCKET_H
17350 # include <sys/socket.h>
17353 # define __APPLE_USE_RFC_3542
17355 #if HAVE_NETINET_IN_H
17356 # include <netinet/in.h>
17358 #ifdef TIME_WITH_SYS_TIME
17359 # include <sys/time.h>
17362 # ifdef HAVE_SYS_TIME_H
17363 # include <sys/time.h>
17367 #endif /* TIME_WITH_SYS_TIME */
17370 if test "x$ac_cv_header_net_if_h" = xyes; then :
17371 cat >>confdefs.h <<_ACEOF
17372 #define HAVE_NET_IF_H 1
17382 for ac_header in net/if_var.h
17384 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "#ifdef SUNOS_5
17386 #define __EXTENSIONS__
17390 # include <stdlib.h>
17391 # include <stddef.h>
17394 # include <stdlib.h>
17397 #if HAVE_SYS_TYPES_H
17398 # include <sys/types.h>
17400 /* sys/conf.h depends on param.h on FBSD at least */
17401 #if HAVE_SYS_PARAM_H
17402 # include <sys/param.h>
17404 /* Required for MAXSIG */
17406 # include <signal.h>
17408 #if HAVE_SYS_SOCKET_H
17409 # include <sys/socket.h>
17412 # define __APPLE_USE_RFC_3542
17414 #if HAVE_NETINET_IN_H
17415 # include <netinet/in.h>
17417 #ifdef TIME_WITH_SYS_TIME
17418 # include <sys/time.h>
17421 # ifdef HAVE_SYS_TIME_H
17422 # include <sys/time.h>
17426 #endif /* TIME_WITH_SYS_TIME */
17429 # include <net/if.h>
17433 if test "x$ac_cv_header_net_if_var_h" = xyes; then :
17434 cat >>confdefs.h <<_ACEOF
17435 #define HAVE_NET_IF_VAR_H 1
17444 for ac_header in sys/un.h netinet/in_systm.h netinet/in_var.h \
17445 net/if_dl.h net/netopt.h net/route.h \
17446 inet/nd.h arpa/inet.h netinet/ip_icmp.h \
17447 fcntl.h stddef.h sys/ioctl.h syslog.h wchar.h wctype.h \
17448 sys/sysctl.h sys/sockio.h kvm.h sys/conf.h
17450 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17451 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef SUNOS_5
17453 #define __EXTENSIONS__
17457 # include <stdlib.h>
17458 # include <stddef.h>
17461 # include <stdlib.h>
17464 #if HAVE_SYS_TYPES_H
17465 # include <sys/types.h>
17467 /* sys/conf.h depends on param.h on FBSD at least */
17468 #if HAVE_SYS_PARAM_H
17469 # include <sys/param.h>
17471 /* Required for MAXSIG */
17473 # include <signal.h>
17475 #if HAVE_SYS_SOCKET_H
17476 # include <sys/socket.h>
17479 # define __APPLE_USE_RFC_3542
17481 #if HAVE_NETINET_IN_H
17482 # include <netinet/in.h>
17484 #ifdef TIME_WITH_SYS_TIME
17485 # include <sys/time.h>
17488 # ifdef HAVE_SYS_TIME_H
17489 # include <sys/time.h>
17493 #endif /* TIME_WITH_SYS_TIME */
17496 # include <net/if.h>
17499 #if HAVE_NET_IF_VAR_H
17500 # include <net/if_var.h>
17504 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17505 cat >>confdefs.h <<_ACEOF
17506 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17514 for ac_header in ucontext.h
17516 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#ifndef __USE_GNU
17518 #endif /* __USE_GNU */
17521 #define __EXTENSIONS__
17525 # include <stdlib.h>
17526 # include <stddef.h>
17529 # include <stdlib.h>
17532 #if HAVE_SYS_TYPES_H
17533 # include <sys/types.h>
17535 /* sys/conf.h depends on param.h on FBSD at least */
17536 #if HAVE_SYS_PARAM_H
17537 # include <sys/param.h>
17539 /* Required for MAXSIG */
17541 # include <signal.h>
17543 #if HAVE_SYS_SOCKET_H
17544 # include <sys/socket.h>
17547 # define __APPLE_USE_RFC_3542
17549 #if HAVE_NETINET_IN_H
17550 # include <netinet/in.h>
17552 #ifdef TIME_WITH_SYS_TIME
17553 # include <sys/time.h>
17556 # ifdef HAVE_SYS_TIME_H
17557 # include <sys/time.h>
17561 #endif /* TIME_WITH_SYS_TIME */
17564 # include <net/if.h>
17567 #if HAVE_NET_IF_VAR_H
17568 # include <net/if_var.h>
17573 if test "x$ac_cv_header_ucontext_h" = xyes; then :
17574 cat >>confdefs.h <<_ACEOF
17575 #define HAVE_UCONTEXT_H 1
17584 ac_fn_c_check_member "$LINENO" "ucontext_t" "uc_mcontext.uc_regs" "ac_cv_member_ucontext_t_uc_mcontext_uc_regs" "#include <ucontext.h>
17586 if test "x$ac_cv_member_ucontext_t_uc_mcontext_uc_regs" = xyes; then :
17588 cat >>confdefs.h <<_ACEOF
17589 #define HAVE_UCONTEXT_T_UC_MCONTEXT_UC_REGS 1
17595 ac_fn_c_check_member "$LINENO" "ucontext_t" "uc_mcontext.regs" "ac_cv_member_ucontext_t_uc_mcontext_regs" "#include <ucontext.h>
17597 if test "x$ac_cv_member_ucontext_t_uc_mcontext_regs" = xyes; then :
17599 cat >>confdefs.h <<_ACEOF
17600 #define HAVE_UCONTEXT_T_UC_MCONTEXT_REGS 1
17603 ac_fn_c_check_member "$LINENO" "ucontext_t" "uc_mcontext.regs.nip" "ac_cv_member_ucontext_t_uc_mcontext_regs_nip" "#include <ucontext.h>
17605 if test "x$ac_cv_member_ucontext_t_uc_mcontext_regs_nip" = xyes; then :
17607 cat >>confdefs.h <<_ACEOF
17608 #define HAVE_UCONTEXT_T_UC_MCONTEXT_REGS_NIP 1
17616 ac_fn_c_check_member "$LINENO" "ucontext_t" "uc_mcontext.gregs" "ac_cv_member_ucontext_t_uc_mcontext_gregs" "#include <ucontext.h>
17618 if test "x$ac_cv_member_ucontext_t_uc_mcontext_gregs" = xyes; then :
17620 cat >>confdefs.h <<_ACEOF
17621 #define HAVE_UCONTEXT_T_UC_MCONTEXT_GREGS 1
17631 *-sunos5.[6-7]* | *-solaris2.[6-7]*)
17634 $as_echo "#define SUNOS_56 1" >>confdefs.h
17637 $as_echo "#define SUNOS_5 1" >>confdefs.h
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lxnet" >&5
17640 $as_echo_n "checking for main in -lxnet... " >&6; }
17641 if ${ac_cv_lib_xnet_main+:} false; then :
17642 $as_echo_n "(cached) " >&6
17644 ac_check_lib_save_LIBS=$LIBS
17645 LIBS="-lxnet $LIBS"
17646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647 /* end confdefs.h. */
17658 if ac_fn_c_try_link "$LINENO"; then :
17659 ac_cv_lib_xnet_main=yes
17661 ac_cv_lib_xnet_main=no
17663 rm -f core conftest.err conftest.$ac_objext \
17664 conftest$ac_exeext conftest.$ac_ext
17665 LIBS=$ac_check_lib_save_LIBS
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_main" >&5
17668 $as_echo "$ac_cv_lib_xnet_main" >&6; }
17669 if test "x$ac_cv_lib_xnet_main" = xyes; then :
17670 cat >>confdefs.h <<_ACEOF
17671 #define HAVE_LIBXNET 1
17674 LIBS="-lxnet $LIBS"
17682 | *-sunos5.1[0-9] \
17683 | *-sunos5.1[0-9].[0-9] \
17684 | *-solaris2.[8-9] \
17685 | *-solaris2.1[0-9] \
17686 | *-solaris2.1[0-9].[0-9])
17689 $as_echo "#define SUNOS_59 1" >>confdefs.h
17692 $as_echo "#define SUNOS_5 1" >>confdefs.h
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
17695 $as_echo_n "checking for main in -lsocket... " >&6; }
17696 if ${ac_cv_lib_socket_main+:} false; then :
17697 $as_echo_n "(cached) " >&6
17699 ac_check_lib_save_LIBS=$LIBS
17700 LIBS="-lsocket $LIBS"
17701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17702 /* end confdefs.h. */
17713 if ac_fn_c_try_link "$LINENO"; then :
17714 ac_cv_lib_socket_main=yes
17716 ac_cv_lib_socket_main=no
17718 rm -f core conftest.err conftest.$ac_objext \
17719 conftest$ac_exeext conftest.$ac_ext
17720 LIBS=$ac_check_lib_save_LIBS
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
17723 $as_echo "$ac_cv_lib_socket_main" >&6; }
17724 if test "x$ac_cv_lib_socket_main" = xyes; then :
17725 cat >>confdefs.h <<_ACEOF
17726 #define HAVE_LIBSOCKET 1
17729 LIBS="-lsocket $LIBS"
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
17734 $as_echo_n "checking for main in -lnsl... " >&6; }
17735 if ${ac_cv_lib_nsl_main+:} false; then :
17736 $as_echo_n "(cached) " >&6
17738 ac_check_lib_save_LIBS=$LIBS
17740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17741 /* end confdefs.h. */
17752 if ac_fn_c_try_link "$LINENO"; then :
17753 ac_cv_lib_nsl_main=yes
17755 ac_cv_lib_nsl_main=no
17757 rm -f core conftest.err conftest.$ac_objext \
17758 conftest$ac_exeext conftest.$ac_ext
17759 LIBS=$ac_check_lib_save_LIBS
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
17762 $as_echo "$ac_cv_lib_nsl_main" >&6; }
17763 if test "x$ac_cv_lib_nsl_main" = xyes; then :
17764 cat >>confdefs.h <<_ACEOF
17765 #define HAVE_LIBNSL 1
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lumem" >&5
17773 $as_echo_n "checking for main in -lumem... " >&6; }
17774 if ${ac_cv_lib_umem_main+:} false; then :
17775 $as_echo_n "(cached) " >&6
17777 ac_check_lib_save_LIBS=$LIBS
17778 LIBS="-lumem $LIBS"
17779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17780 /* end confdefs.h. */
17791 if ac_fn_c_try_link "$LINENO"; then :
17792 ac_cv_lib_umem_main=yes
17794 ac_cv_lib_umem_main=no
17796 rm -f core conftest.err conftest.$ac_objext \
17797 conftest$ac_exeext conftest.$ac_ext
17798 LIBS=$ac_check_lib_save_LIBS
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_main" >&5
17801 $as_echo "$ac_cv_lib_umem_main" >&6; }
17802 if test "x$ac_cv_lib_umem_main" = xyes; then :
17803 cat >>confdefs.h <<_ACEOF
17804 #define HAVE_LIBUMEM 1
17807 LIBS="-lumem $LIBS"
17811 for ac_func in printstack
17813 ac_fn_c_check_func "$LINENO" "printstack" "ac_cv_func_printstack"
17814 if test "x$ac_cv_func_printstack" = xyes; then :
17815 cat >>confdefs.h <<_ACEOF
17816 #define HAVE_PRINTSTACK 1
17819 $as_echo "#define HAVE_PRINTSTACK 1" >>confdefs.h
17822 $as_echo "#define HAVE_STACK_TRACE 1" >>confdefs.h
17831 *-sunos5* | *-solaris2*)
17833 $as_echo "#define SUNOS_5 /**/" >>confdefs.h
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
17836 $as_echo_n "checking for main in -lsocket... " >&6; }
17837 if ${ac_cv_lib_socket_main+:} false; then :
17838 $as_echo_n "(cached) " >&6
17840 ac_check_lib_save_LIBS=$LIBS
17841 LIBS="-lsocket $LIBS"
17842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17843 /* end confdefs.h. */
17854 if ac_fn_c_try_link "$LINENO"; then :
17855 ac_cv_lib_socket_main=yes
17857 ac_cv_lib_socket_main=no
17859 rm -f core conftest.err conftest.$ac_objext \
17860 conftest$ac_exeext conftest.$ac_ext
17861 LIBS=$ac_check_lib_save_LIBS
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
17864 $as_echo "$ac_cv_lib_socket_main" >&6; }
17865 if test "x$ac_cv_lib_socket_main" = xyes; then :
17866 cat >>confdefs.h <<_ACEOF
17867 #define HAVE_LIBSOCKET 1
17870 LIBS="-lsocket $LIBS"
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
17875 $as_echo_n "checking for main in -lnsl... " >&6; }
17876 if ${ac_cv_lib_nsl_main+:} false; then :
17877 $as_echo_n "(cached) " >&6
17879 ac_check_lib_save_LIBS=$LIBS
17881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17882 /* end confdefs.h. */
17893 if ac_fn_c_try_link "$LINENO"; then :
17894 ac_cv_lib_nsl_main=yes
17896 ac_cv_lib_nsl_main=no
17898 rm -f core conftest.err conftest.$ac_objext \
17899 conftest$ac_exeext conftest.$ac_ext
17900 LIBS=$ac_check_lib_save_LIBS
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
17903 $as_echo "$ac_cv_lib_nsl_main" >&6; }
17904 if test "x$ac_cv_lib_nsl_main" = xyes; then :
17905 cat >>confdefs.h <<_ACEOF
17906 #define HAVE_LIBNSL 1
17919 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
17925 $as_echo "#define OPEN_BSD /**/" >>confdefs.h
17930 # Check whether --enable-largefile was given.
17931 if test "${enable_largefile+set}" = set; then :
17932 enableval=$enable_largefile;
17935 if test "$enable_largefile" != no; then
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17938 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17939 if ${ac_cv_sys_largefile_CC+:} false; then :
17940 $as_echo_n "(cached) " >&6
17942 ac_cv_sys_largefile_CC=no
17943 if test "$GCC" != yes; then
17946 # IRIX 6.2 and later do not support large files by default,
17947 # so use the C compiler's -n32 option if that helps.
17948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17949 /* end confdefs.h. */
17950 #include <sys/types.h>
17951 /* Check that off_t can represent 2**63 - 1 correctly.
17952 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17953 since some C++ compilers masquerading as C compilers
17954 incorrectly reject 9223372036854775807. */
17955 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17956 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17957 && LARGE_OFF_T % 2147483647 == 1)
17967 if ac_fn_c_try_compile "$LINENO"; then :
17970 rm -f core conftest.err conftest.$ac_objext
17972 if ac_fn_c_try_compile "$LINENO"; then :
17973 ac_cv_sys_largefile_CC=' -n32'; break
17975 rm -f core conftest.err conftest.$ac_objext
17979 rm -f conftest.$ac_ext
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17983 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17984 if test "$ac_cv_sys_largefile_CC" != no; then
17985 CC=$CC$ac_cv_sys_largefile_CC
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17989 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17990 if ${ac_cv_sys_file_offset_bits+:} false; then :
17991 $as_echo_n "(cached) " >&6
17994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h. */
17996 #include <sys/types.h>
17997 /* Check that off_t can represent 2**63 - 1 correctly.
17998 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17999 since some C++ compilers masquerading as C compilers
18000 incorrectly reject 9223372036854775807. */
18001 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18003 && LARGE_OFF_T % 2147483647 == 1)
18013 if ac_fn_c_try_compile "$LINENO"; then :
18014 ac_cv_sys_file_offset_bits=no; break
18016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18018 /* end confdefs.h. */
18019 #define _FILE_OFFSET_BITS 64
18020 #include <sys/types.h>
18021 /* Check that off_t can represent 2**63 - 1 correctly.
18022 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18023 since some C++ compilers masquerading as C compilers
18024 incorrectly reject 9223372036854775807. */
18025 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18026 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18027 && LARGE_OFF_T % 2147483647 == 1)
18037 if ac_fn_c_try_compile "$LINENO"; then :
18038 ac_cv_sys_file_offset_bits=64; break
18040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18041 ac_cv_sys_file_offset_bits=unknown
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18046 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18047 case $ac_cv_sys_file_offset_bits in #(
18050 cat >>confdefs.h <<_ACEOF
18051 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18056 if test $ac_cv_sys_file_offset_bits = unknown; then
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18058 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18059 if ${ac_cv_sys_large_files+:} false; then :
18060 $as_echo_n "(cached) " >&6
18063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064 /* end confdefs.h. */
18065 #include <sys/types.h>
18066 /* Check that off_t can represent 2**63 - 1 correctly.
18067 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18068 since some C++ compilers masquerading as C compilers
18069 incorrectly reject 9223372036854775807. */
18070 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18071 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18072 && LARGE_OFF_T % 2147483647 == 1)
18082 if ac_fn_c_try_compile "$LINENO"; then :
18083 ac_cv_sys_large_files=no; break
18085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18087 /* end confdefs.h. */
18088 #define _LARGE_FILES 1
18089 #include <sys/types.h>
18090 /* Check that off_t can represent 2**63 - 1 correctly.
18091 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18092 since some C++ compilers masquerading as C compilers
18093 incorrectly reject 9223372036854775807. */
18094 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18095 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18096 && LARGE_OFF_T % 2147483647 == 1)
18106 if ac_fn_c_try_compile "$LINENO"; then :
18107 ac_cv_sys_large_files=1; break
18109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18110 ac_cv_sys_large_files=unknown
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18115 $as_echo "$ac_cv_sys_large_files" >&6; }
18116 case $ac_cv_sys_large_files in #(
18119 cat >>confdefs.h <<_ACEOF
18120 #define _LARGE_FILES $ac_cv_sys_large_files
18131 case "${enable_vtysh}" in
18135 $as_echo "#define VTYSH /**/" >>confdefs.h
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -ltermcap" >&5
18138 $as_echo_n "checking for tputs in -ltermcap... " >&6; }
18139 if ${ac_cv_lib_termcap_tputs+:} false; then :
18140 $as_echo_n "(cached) " >&6
18142 ac_check_lib_save_LIBS=$LIBS
18143 LIBS="-ltermcap $LIBS"
18144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18145 /* end confdefs.h. */
18147 /* Override any GCC internal prototype to avoid an error.
18148 Use char because int might match the return type of a GCC
18149 builtin and then its argument prototype would still apply. */
18162 if ac_fn_c_try_link "$LINENO"; then :
18163 ac_cv_lib_termcap_tputs=yes
18165 ac_cv_lib_termcap_tputs=no
18167 rm -f core conftest.err conftest.$ac_objext \
18168 conftest$ac_exeext conftest.$ac_ext
18169 LIBS=$ac_check_lib_save_LIBS
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tputs" >&5
18172 $as_echo "$ac_cv_lib_termcap_tputs" >&6; }
18173 if test "x$ac_cv_lib_termcap_tputs" = xyes; then :
18174 LIBREADLINE="$LIBREADLINE -ltermcap"
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -ltinfo" >&5
18177 $as_echo_n "checking for tputs in -ltinfo... " >&6; }
18178 if ${ac_cv_lib_tinfo_tputs+:} false; then :
18179 $as_echo_n "(cached) " >&6
18181 ac_check_lib_save_LIBS=$LIBS
18182 LIBS="-ltinfo $LIBS"
18183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18184 /* end confdefs.h. */
18186 /* Override any GCC internal prototype to avoid an error.
18187 Use char because int might match the return type of a GCC
18188 builtin and then its argument prototype would still apply. */
18201 if ac_fn_c_try_link "$LINENO"; then :
18202 ac_cv_lib_tinfo_tputs=yes
18204 ac_cv_lib_tinfo_tputs=no
18206 rm -f core conftest.err conftest.$ac_objext \
18207 conftest$ac_exeext conftest.$ac_ext
18208 LIBS=$ac_check_lib_save_LIBS
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tputs" >&5
18211 $as_echo "$ac_cv_lib_tinfo_tputs" >&6; }
18212 if test "x$ac_cv_lib_tinfo_tputs" = xyes; then :
18213 LIBREADLINE="$LIBREADLINE -ltinfo"
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lcurses" >&5
18216 $as_echo_n "checking for tputs in -lcurses... " >&6; }
18217 if ${ac_cv_lib_curses_tputs+:} false; then :
18218 $as_echo_n "(cached) " >&6
18220 ac_check_lib_save_LIBS=$LIBS
18221 LIBS="-lcurses $LIBS"
18222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18223 /* end confdefs.h. */
18225 /* Override any GCC internal prototype to avoid an error.
18226 Use char because int might match the return type of a GCC
18227 builtin and then its argument prototype would still apply. */
18240 if ac_fn_c_try_link "$LINENO"; then :
18241 ac_cv_lib_curses_tputs=yes
18243 ac_cv_lib_curses_tputs=no
18245 rm -f core conftest.err conftest.$ac_objext \
18246 conftest$ac_exeext conftest.$ac_ext
18247 LIBS=$ac_check_lib_save_LIBS
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tputs" >&5
18250 $as_echo "$ac_cv_lib_curses_tputs" >&6; }
18251 if test "x$ac_cv_lib_curses_tputs" = xyes; then :
18252 LIBREADLINE="$LIBREADLINE -lcurses"
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lncurses" >&5
18255 $as_echo_n "checking for tputs in -lncurses... " >&6; }
18256 if ${ac_cv_lib_ncurses_tputs+:} false; then :
18257 $as_echo_n "(cached) " >&6
18259 ac_check_lib_save_LIBS=$LIBS
18260 LIBS="-lncurses $LIBS"
18261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18262 /* end confdefs.h. */
18264 /* Override any GCC internal prototype to avoid an error.
18265 Use char because int might match the return type of a GCC
18266 builtin and then its argument prototype would still apply. */
18279 if ac_fn_c_try_link "$LINENO"; then :
18280 ac_cv_lib_ncurses_tputs=yes
18282 ac_cv_lib_ncurses_tputs=no
18284 rm -f core conftest.err conftest.$ac_objext \
18285 conftest$ac_exeext conftest.$ac_ext
18286 LIBS=$ac_check_lib_save_LIBS
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tputs" >&5
18289 $as_echo "$ac_cv_lib_ncurses_tputs" >&6; }
18290 if test "x$ac_cv_lib_ncurses_tputs" = xyes; then :
18291 LIBREADLINE="$LIBREADLINE -lncurses"
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
18304 $as_echo_n "checking for main in -lreadline... " >&6; }
18305 if ${ac_cv_lib_readline_main+:} false; then :
18306 $as_echo_n "(cached) " >&6
18308 ac_check_lib_save_LIBS=$LIBS
18309 LIBS="-lreadline "$LIBREADLINE" $LIBS"
18310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18311 /* end confdefs.h. */
18322 if ac_fn_c_try_link "$LINENO"; then :
18323 ac_cv_lib_readline_main=yes
18325 ac_cv_lib_readline_main=no
18327 rm -f core conftest.err conftest.$ac_objext \
18328 conftest$ac_exeext conftest.$ac_ext
18329 LIBS=$ac_check_lib_save_LIBS
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
18332 $as_echo "$ac_cv_lib_readline_main" >&6; }
18333 if test "x$ac_cv_lib_readline_main" = xyes; then :
18334 LIBREADLINE="-lreadline $LIBREADLINE"
18337 if test $ac_cv_lib_readline_main = no; then
18338 as_fn_error $? "vtysh needs libreadline but was not found and usable on your system." "$LINENO" 5
18340 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
18341 if test "x$ac_cv_header_readline_history_h" = xyes; then :
18346 if test $ac_cv_header_readline_history_h = no;then
18347 as_fn_error $? "readline is too old to have readline/history.h, please update to the latest readline library." "$LINENO" 5
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
18350 $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
18351 if ${ac_cv_lib_readline_rl_completion_matches+:} false; then :
18352 $as_echo_n "(cached) " >&6
18354 ac_check_lib_save_LIBS=$LIBS
18355 LIBS="-lreadline "$LIBREADLINE" $LIBS"
18356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18357 /* end confdefs.h. */
18359 /* Override any GCC internal prototype to avoid an error.
18360 Use char because int might match the return type of a GCC
18361 builtin and then its argument prototype would still apply. */
18365 char rl_completion_matches ();
18369 return rl_completion_matches ();
18374 if ac_fn_c_try_link "$LINENO"; then :
18375 ac_cv_lib_readline_rl_completion_matches=yes
18377 ac_cv_lib_readline_rl_completion_matches=no
18379 rm -f core conftest.err conftest.$ac_objext \
18380 conftest$ac_exeext conftest.$ac_ext
18381 LIBS=$ac_check_lib_save_LIBS
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
18384 $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
18385 if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then :
18386 LIBREADLINE="$LIBREADLINE"
18389 if test $ac_cv_lib_readline_rl_completion_matches = no; then
18391 $as_echo "#define rl_completion_matches completion_matches" >>confdefs.h
18398 if test "x$VTYSH" = "xvtysh"; then
18407 if test "$with_libpam" = "yes"; then
18408 ac_fn_c_check_header_compile "$LINENO" "security/pam_misc.h" "ac_cv_header_security_pam_misc_h" "#ifdef SUNOS_5
18410 #define __EXTENSIONS__
18414 # include <stdlib.h>
18415 # include <stddef.h>
18418 # include <stdlib.h>
18421 #if HAVE_SYS_TYPES_H
18422 # include <sys/types.h>
18424 /* sys/conf.h depends on param.h on FBSD at least */
18425 #if HAVE_SYS_PARAM_H
18426 # include <sys/param.h>
18428 /* Required for MAXSIG */
18430 # include <signal.h>
18432 #if HAVE_SYS_SOCKET_H
18433 # include <sys/socket.h>
18436 # define __APPLE_USE_RFC_3542
18438 #if HAVE_NETINET_IN_H
18439 # include <netinet/in.h>
18441 #ifdef TIME_WITH_SYS_TIME
18442 # include <sys/time.h>
18445 # ifdef HAVE_SYS_TIME_H
18446 # include <sys/time.h>
18450 #endif /* TIME_WITH_SYS_TIME */
18453 # include <net/if.h>
18456 #if HAVE_NET_IF_VAR_H
18457 # include <net/if_var.h>
18461 # include <sys/un.h>
18463 #if HAVE_NETINET_IN_SYSTM_H
18464 # include <netinet/in_systm.h>
18466 #if HAVE_NETINET_IN_VAR_H
18467 # include <netinet/in_var.h>
18469 #if HAVE_NET_IF_DL_H
18470 # include <net/if_dl.h>
18472 #if HAVE_NET_NETOPT_H
18473 # include <net/netopt.h>
18475 #if HAVE_NET_ROUTE_H
18476 # include <net/route.h>
18479 # include <inet/nd.h>
18481 #if HAVE_ARPA_INET_H
18482 # include <arpa/inet.h>
18484 /* Required for IDRP */
18485 #if HAVE_NETINET_IP_ICMP_H
18486 # include <netinet/ip_icmp.h>
18490 if test "x$ac_cv_header_security_pam_misc_h" = xyes; then :
18492 $as_echo "#define HAVE_PAM_MISC_H /**/" >>confdefs.h
18495 $as_echo "#define PAM_CONV_FUNC misc_conv" >>confdefs.h
18497 pam_conv_func="misc_conv"
18502 ac_fn_c_check_header_compile "$LINENO" "security/openpam.h" "ac_cv_header_security_openpam_h" "#ifdef SUNOS_5
18504 #define __EXTENSIONS__
18508 # include <stdlib.h>
18509 # include <stddef.h>
18512 # include <stdlib.h>
18515 #if HAVE_SYS_TYPES_H
18516 # include <sys/types.h>
18518 /* sys/conf.h depends on param.h on FBSD at least */
18519 #if HAVE_SYS_PARAM_H
18520 # include <sys/param.h>
18522 /* Required for MAXSIG */
18524 # include <signal.h>
18526 #if HAVE_SYS_SOCKET_H
18527 # include <sys/socket.h>
18530 # define __APPLE_USE_RFC_3542
18532 #if HAVE_NETINET_IN_H
18533 # include <netinet/in.h>
18535 #ifdef TIME_WITH_SYS_TIME
18536 # include <sys/time.h>
18539 # ifdef HAVE_SYS_TIME_H
18540 # include <sys/time.h>
18544 #endif /* TIME_WITH_SYS_TIME */
18547 # include <net/if.h>
18550 #if HAVE_NET_IF_VAR_H
18551 # include <net/if_var.h>
18555 # include <sys/un.h>
18557 #if HAVE_NETINET_IN_SYSTM_H
18558 # include <netinet/in_systm.h>
18560 #if HAVE_NETINET_IN_VAR_H
18561 # include <netinet/in_var.h>
18563 #if HAVE_NET_IF_DL_H
18564 # include <net/if_dl.h>
18566 #if HAVE_NET_NETOPT_H
18567 # include <net/netopt.h>
18569 #if HAVE_NET_ROUTE_H
18570 # include <net/route.h>
18573 # include <inet/nd.h>
18575 #if HAVE_ARPA_INET_H
18576 # include <arpa/inet.h>
18578 /* Required for IDRP */
18579 #if HAVE_NETINET_IP_ICMP_H
18580 # include <netinet/ip_icmp.h>
18582 #include <security/pam_appl.h>
18584 if test "x$ac_cv_header_security_openpam_h" = xyes; then :
18586 $as_echo "#define HAVE_OPENPAM_H /**/" >>confdefs.h
18589 $as_echo "#define PAM_CONV_FUNC openpam_ttyconv" >>confdefs.h
18591 pam_conv_func="openpam_ttyconv"
18596 if test -z "$ac_cv_header_security_pam_misc_h$ac_cv_header_security_openpam_h" ; then
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** pam support will not be built ***" >&5
18598 $as_echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
18603 if test "$with_libpam" = "yes"; then
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
18605 $as_echo_n "checking for pam_start in -lpam... " >&6; }
18606 if ${ac_cv_lib_pam_pam_start+:} false; then :
18607 $as_echo_n "(cached) " >&6
18609 ac_check_lib_save_LIBS=$LIBS
18611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18612 /* end confdefs.h. */
18614 /* Override any GCC internal prototype to avoid an error.
18615 Use char because int might match the return type of a GCC
18616 builtin and then its argument prototype would still apply. */
18624 return pam_start ();
18629 if ac_fn_c_try_link "$LINENO"; then :
18630 ac_cv_lib_pam_pam_start=yes
18632 ac_cv_lib_pam_pam_start=no
18634 rm -f core conftest.err conftest.$ac_objext \
18635 conftest$ac_exeext conftest.$ac_ext
18636 LIBS=$ac_check_lib_save_LIBS
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
18639 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
18640 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
18641 as_ac_Lib=`$as_echo "ac_cv_lib_pam_$pam_conv_func" | $as_tr_sh`
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pam_conv_func in -lpam" >&5
18643 $as_echo_n "checking for $pam_conv_func in -lpam... " >&6; }
18644 if eval \${$as_ac_Lib+:} false; then :
18645 $as_echo_n "(cached) " >&6
18647 ac_check_lib_save_LIBS=$LIBS
18649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18650 /* end confdefs.h. */
18652 /* Override any GCC internal prototype to avoid an error.
18653 Use char because int might match the return type of a GCC
18654 builtin and then its argument prototype would still apply. */
18658 char $pam_conv_func ();
18662 return $pam_conv_func ();
18667 if ac_fn_c_try_link "$LINENO"; then :
18668 eval "$as_ac_Lib=yes"
18670 eval "$as_ac_Lib=no"
18672 rm -f core conftest.err conftest.$ac_objext \
18673 conftest$ac_exeext conftest.$ac_ext
18674 LIBS=$ac_check_lib_save_LIBS
18676 eval ac_res=\$$as_ac_Lib
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18678 $as_echo "$ac_res" >&6; }
18679 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18681 $as_echo "#define USE_PAM /**/" >>confdefs.h
18686 $as_echo "#define USE_PAM /**/" >>confdefs.h
18688 LIBPAM="-lpam -lpam_misc"
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_end in -lpam" >&5
18695 $as_echo_n "checking for pam_end in -lpam... " >&6; }
18696 if ${ac_cv_lib_pam_pam_end+:} false; then :
18697 $as_echo_n "(cached) " >&6
18699 ac_check_lib_save_LIBS=$LIBS
18700 LIBS="-lpam -ldl $LIBS"
18701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18702 /* end confdefs.h. */
18704 /* Override any GCC internal prototype to avoid an error.
18705 Use char because int might match the return type of a GCC
18706 builtin and then its argument prototype would still apply. */
18719 if ac_fn_c_try_link "$LINENO"; then :
18720 ac_cv_lib_pam_pam_end=yes
18722 ac_cv_lib_pam_pam_end=no
18724 rm -f core conftest.err conftest.$ac_objext \
18725 conftest$ac_exeext conftest.$ac_ext
18726 LIBS=$ac_check_lib_save_LIBS
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_end" >&5
18729 $as_echo "$ac_cv_lib_pam_pam_end" >&6; }
18730 if test "x$ac_cv_lib_pam_pam_end" = xyes; then :
18731 as_ac_Lib=`$as_echo "ac_cv_lib_pam_$pam_conv_func" | $as_tr_sh`
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pam_conv_func in -lpam" >&5
18733 $as_echo_n "checking for $pam_conv_func in -lpam... " >&6; }
18734 if eval \${$as_ac_Lib+:} false; then :
18735 $as_echo_n "(cached) " >&6
18737 ac_check_lib_save_LIBS=$LIBS
18739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18740 /* end confdefs.h. */
18742 /* Override any GCC internal prototype to avoid an error.
18743 Use char because int might match the return type of a GCC
18744 builtin and then its argument prototype would still apply. */
18748 char $pam_conv_func ();
18752 return $pam_conv_func ();
18757 if ac_fn_c_try_link "$LINENO"; then :
18758 eval "$as_ac_Lib=yes"
18760 eval "$as_ac_Lib=no"
18762 rm -f core conftest.err conftest.$ac_objext \
18763 conftest$ac_exeext conftest.$ac_ext
18764 LIBS=$ac_check_lib_save_LIBS
18766 eval ac_res=\$$as_ac_Lib
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18768 $as_echo "$ac_res" >&6; }
18769 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18771 $as_echo "#define USE_PAM /**/" >>confdefs.h
18773 LIBPAM="-lpam -ldl"
18776 $as_echo "#define USE_PAM /**/" >>confdefs.h
18778 LIBPAM="-lpam -ldl -lpam_misc"
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** pam support will not be built ***" >&5
18785 $as_echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18796 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18797 if ${ac_cv_c_bigendian+:} false; then :
18798 $as_echo_n "(cached) " >&6
18800 ac_cv_c_bigendian=unknown
18801 # See if we're dealing with a universal compiler.
18802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18803 /* end confdefs.h. */
18804 #ifndef __APPLE_CC__
18805 not a universal capable compiler
18810 if ac_fn_c_try_compile "$LINENO"; then :
18812 # Check for potential -arch flags. It is not universal unless
18813 # there are at least two -arch flags with different values.
18816 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18817 if test -n "$ac_prev"; then
18819 i?86 | x86_64 | ppc | ppc64)
18820 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18823 ac_cv_c_bigendian=universal
18829 elif test "x$ac_word" = "x-arch"; then
18834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18835 if test $ac_cv_c_bigendian = unknown; then
18836 # See if sys/param.h defines the BYTE_ORDER macro.
18837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18838 /* end confdefs.h. */
18839 #include <sys/types.h>
18840 #include <sys/param.h>
18845 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18846 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18848 bogus endian macros
18855 if ac_fn_c_try_compile "$LINENO"; then :
18856 # It does; now see whether it defined to BIG_ENDIAN or not.
18857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18858 /* end confdefs.h. */
18859 #include <sys/types.h>
18860 #include <sys/param.h>
18865 #if BYTE_ORDER != BIG_ENDIAN
18873 if ac_fn_c_try_compile "$LINENO"; then :
18874 ac_cv_c_bigendian=yes
18876 ac_cv_c_bigendian=no
18878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18882 if test $ac_cv_c_bigendian = unknown; then
18883 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18885 /* end confdefs.h. */
18886 #include <limits.h>
18891 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18892 bogus endian macros
18899 if ac_fn_c_try_compile "$LINENO"; then :
18900 # It does; now see whether it defined to _BIG_ENDIAN or not.
18901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18902 /* end confdefs.h. */
18903 #include <limits.h>
18908 #ifndef _BIG_ENDIAN
18916 if ac_fn_c_try_compile "$LINENO"; then :
18917 ac_cv_c_bigendian=yes
18919 ac_cv_c_bigendian=no
18921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18925 if test $ac_cv_c_bigendian = unknown; then
18926 # Compile a test program.
18927 if test "$cross_compiling" = yes; then :
18928 # Try to guess by grepping values from an object file.
18929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18930 /* end confdefs.h. */
18931 short int ascii_mm[] =
18932 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18933 short int ascii_ii[] =
18934 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18935 int use_ascii (int i) {
18936 return ascii_mm[i] + ascii_ii[i];
18938 short int ebcdic_ii[] =
18939 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18940 short int ebcdic_mm[] =
18941 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18942 int use_ebcdic (int i) {
18943 return ebcdic_mm[i] + ebcdic_ii[i];
18950 return use_ascii (foo) == use_ebcdic (foo);
18955 if ac_fn_c_try_compile "$LINENO"; then :
18956 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18957 ac_cv_c_bigendian=yes
18959 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18960 if test "$ac_cv_c_bigendian" = unknown; then
18961 ac_cv_c_bigendian=no
18963 # finding both strings is unlikely to happen, but who knows?
18964 ac_cv_c_bigendian=unknown
18968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18971 /* end confdefs.h. */
18972 $ac_includes_default
18977 /* Are we little or big endian? From Harbison&Steele. */
18981 char c[sizeof (long int)];
18984 return u.c[sizeof (long int) - 1] == 1;
18990 if ac_fn_c_try_run "$LINENO"; then :
18991 ac_cv_c_bigendian=no
18993 ac_cv_c_bigendian=yes
18995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18996 conftest.$ac_objext conftest.beam conftest.$ac_ext
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
19002 $as_echo "$ac_cv_c_bigendian" >&6; }
19003 case $ac_cv_c_bigendian in #(
19005 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
19011 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
19015 as_fn_error $? "unknown endianness
19016 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
19021 for ac_header in unistd.h
19023 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
19024 if test "x$ac_cv_header_unistd_h" = xyes; then :
19025 cat >>confdefs.h <<_ACEOF
19026 #define HAVE_UNISTD_H 1
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
19034 $as_echo_n "checking for working chown... " >&6; }
19035 if ${ac_cv_func_chown_works+:} false; then :
19036 $as_echo_n "(cached) " >&6
19038 if test "$cross_compiling" = yes; then :
19039 ac_cv_func_chown_works=no
19041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19042 /* end confdefs.h. */
19043 $ac_includes_default
19049 char *f = "conftest.chown";
19050 struct stat before, after;
19052 if (creat (f, 0600) < 0)
19054 if (stat (f, &before) < 0)
19056 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
19058 if (stat (f, &after) < 0)
19060 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
19066 if ac_fn_c_try_run "$LINENO"; then :
19067 ac_cv_func_chown_works=yes
19069 ac_cv_func_chown_works=no
19071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19072 conftest.$ac_objext conftest.beam conftest.$ac_ext
19075 rm -f conftest.chown
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
19079 $as_echo "$ac_cv_func_chown_works" >&6; }
19080 if test $ac_cv_func_chown_works = yes; then
19082 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
19087 $as_echo_n "checking for working POSIX fnmatch... " >&6; }
19088 if ${ac_cv_func_fnmatch_works+:} false; then :
19089 $as_echo_n "(cached) " >&6
19091 # Some versions of Solaris, SCO, and the GNU C Library
19092 # have a broken or incompatible fnmatch.
19093 # So we run a test program. If we are cross-compiling, take no chance.
19094 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
19095 if test "$cross_compiling" = yes; then :
19096 ac_cv_func_fnmatch_works=cross
19098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19099 /* end confdefs.h. */
19100 #include <fnmatch.h>
19101 # define y(a, b, c) (fnmatch (a, b, c) == 0)
19102 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
19108 (!(y ("a*", "abc", 0)
19109 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
19110 && y ("a\\\\bc", "abc", 0)
19111 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
19112 && y ("*x", ".x", 0)
19113 && n ("*x", ".x", FNM_PERIOD)
19119 if ac_fn_c_try_run "$LINENO"; then :
19120 ac_cv_func_fnmatch_works=yes
19122 ac_cv_func_fnmatch_works=no
19124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19125 conftest.$ac_objext conftest.beam conftest.$ac_ext
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5
19130 $as_echo "$ac_cv_func_fnmatch_works" >&6; }
19131 if test $ac_cv_func_fnmatch_works = yes; then :
19133 $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
19138 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19139 if test "x$ac_cv_type_pid_t" = xyes; then :
19143 cat >>confdefs.h <<_ACEOF
19149 for ac_header in vfork.h
19151 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19152 if test "x$ac_cv_header_vfork_h" = xyes; then :
19153 cat >>confdefs.h <<_ACEOF
19154 #define HAVE_VFORK_H 1
19161 for ac_func in fork vfork
19163 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19164 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19165 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19166 cat >>confdefs.h <<_ACEOF
19167 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19173 if test "x$ac_cv_func_fork" = xyes; then
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19175 $as_echo_n "checking for working fork... " >&6; }
19176 if ${ac_cv_func_fork_works+:} false; then :
19177 $as_echo_n "(cached) " >&6
19179 if test "$cross_compiling" = yes; then :
19180 ac_cv_func_fork_works=cross
19182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19183 /* end confdefs.h. */
19184 $ac_includes_default
19189 /* By Ruediger Kuhlmann. */
19190 return fork () < 0;
19196 if ac_fn_c_try_run "$LINENO"; then :
19197 ac_cv_func_fork_works=yes
19199 ac_cv_func_fork_works=no
19201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19202 conftest.$ac_objext conftest.beam conftest.$ac_ext
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19207 $as_echo "$ac_cv_func_fork_works" >&6; }
19210 ac_cv_func_fork_works=$ac_cv_func_fork
19212 if test "x$ac_cv_func_fork_works" = xcross; then
19214 *-*-amigaos* | *-*-msdosdjgpp*)
19215 # Override, as these systems have only a dummy fork() stub
19216 ac_cv_func_fork_works=no
19219 ac_cv_func_fork_works=yes
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19223 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19225 ac_cv_func_vfork_works=$ac_cv_func_vfork
19226 if test "x$ac_cv_func_vfork" = xyes; then
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19228 $as_echo_n "checking for working vfork... " >&6; }
19229 if ${ac_cv_func_vfork_works+:} false; then :
19230 $as_echo_n "(cached) " >&6
19232 if test "$cross_compiling" = yes; then :
19233 ac_cv_func_vfork_works=cross
19235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19236 /* end confdefs.h. */
19237 /* Thanks to Paul Eggert for this test. */
19238 $ac_includes_default
19239 #include <sys/wait.h>
19240 #ifdef HAVE_VFORK_H
19241 # include <vfork.h>
19243 /* On some sparc systems, changes by the child to local and incoming
19244 argument registers are propagated back to the parent. The compiler
19245 is told about this with #include <vfork.h>, but some compilers
19246 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19247 static variable whose address is put into a register that is
19248 clobbered by the vfork. */
19251 sparc_address_test (int arg)
19253 sparc_address_test (arg) int arg;
19256 static pid_t child;
19274 pid_t parent = getpid ();
19277 sparc_address_test (0);
19282 /* Here is another test for sparc vfork register problems. This
19283 test uses lots of local variables, at least as many local
19284 variables as main has allocated so far including compiler
19285 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19286 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19287 reuse the register of parent for one of the local variables,
19288 since it will think that parent can't possibly be used any more
19289 in this routine. Assigning to the local variable will thus
19290 munge parent in the parent process. */
19292 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19293 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19294 /* Convince the compiler that p..p7 are live; otherwise, it might
19295 use the same hardware register for all 8 local variables. */
19296 if (p != p1 || p != p2 || p != p3 || p != p4
19297 || p != p5 || p != p6 || p != p7)
19300 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19301 from child file descriptors. If the child closes a descriptor
19302 before it execs or exits, this munges the parent's descriptor
19303 as well. Test for this by closing stdout in the child. */
19304 _exit(close(fileno(stdout)) != 0);
19309 while (wait(&status) != child)
19312 /* Was there some problem with vforking? */
19315 /* Did the child fail? (This shouldn't happen.) */
19318 /* Did the vfork/compiler bug occur? */
19319 || parent != getpid()
19321 /* Did the file descriptor bug occur? */
19322 || fstat(fileno(stdout), &st) != 0
19327 if ac_fn_c_try_run "$LINENO"; then :
19328 ac_cv_func_vfork_works=yes
19330 ac_cv_func_vfork_works=no
19332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19333 conftest.$ac_objext conftest.beam conftest.$ac_ext
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19338 $as_echo "$ac_cv_func_vfork_works" >&6; }
19341 if test "x$ac_cv_func_fork_works" = xcross; then
19342 ac_cv_func_vfork_works=$ac_cv_func_vfork
19343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19344 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19347 if test "x$ac_cv_func_vfork_works" = xyes; then
19349 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19353 $as_echo "#define vfork fork" >>confdefs.h
19356 if test "x$ac_cv_func_fork_works" = xyes; then
19358 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
19363 $as_echo_n "checking for working memcmp... " >&6; }
19364 if ${ac_cv_func_memcmp_working+:} false; then :
19365 $as_echo_n "(cached) " >&6
19367 if test "$cross_compiling" = yes; then :
19368 ac_cv_func_memcmp_working=no
19370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19371 /* end confdefs.h. */
19372 $ac_includes_default
19377 /* Some versions of memcmp are not 8-bit clean. */
19378 char c0 = '\100', c1 = '\200', c2 = '\201';
19379 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
19382 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
19383 or more and with at least one buffer not starting on a 4-byte boundary.
19384 William Lewis provided this test program. */
19389 for (i = 0; i < 4; i++)
19393 strcpy (a, "--------01111111");
19394 strcpy (b, "--------10000000");
19395 if (memcmp (a, b, 16) >= 0)
19405 if ac_fn_c_try_run "$LINENO"; then :
19406 ac_cv_func_memcmp_working=yes
19408 ac_cv_func_memcmp_working=no
19410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19411 conftest.$ac_objext conftest.beam conftest.$ac_ext
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
19416 $as_echo "$ac_cv_func_memcmp_working" >&6; }
19417 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
19418 *" memcmp.$ac_objext "* ) ;;
19419 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
19427 for ac_header in $ac_header_list
19429 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19430 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19432 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19433 cat >>confdefs.h <<_ACEOF
19434 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19448 for ac_func in $ac_func_list
19450 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19451 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19452 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19453 cat >>confdefs.h <<_ACEOF
19454 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
19465 $as_echo_n "checking for working mktime... " >&6; }
19466 if ${ac_cv_func_working_mktime+:} false; then :
19467 $as_echo_n "(cached) " >&6
19469 if test "$cross_compiling" = yes; then :
19470 ac_cv_func_working_mktime=no
19472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19473 /* end confdefs.h. */
19474 /* Test program from Paul Eggert and Tony Leneis. */
19475 #ifdef TIME_WITH_SYS_TIME
19476 # include <sys/time.h>
19479 # ifdef HAVE_SYS_TIME_H
19480 # include <sys/time.h>
19486 #include <limits.h>
19487 #include <stdlib.h>
19489 #ifdef HAVE_UNISTD_H
19490 # include <unistd.h>
19494 # define alarm(X) /* empty */
19497 /* Work around redefinition to rpl_putenv by other config tests. */
19500 static time_t time_t_max;
19501 static time_t time_t_min;
19503 /* Values we'll use to set the TZ environment variable. */
19504 static const char *tz_strings[] = {
19505 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
19506 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
19508 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
19510 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
19511 Based on a problem report from Andreas Jaeger. */
19513 spring_forward_gap ()
19515 /* glibc (up to about 1998-10-07) failed this test. */
19518 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19519 instead of "TZ=America/Vancouver" in order to detect the bug even
19520 on systems that don't support the Olson extension, or don't have the
19521 full zoneinfo tables installed. */
19522 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
19531 return mktime (&tm) != (time_t) -1;
19535 mktime_test1 (time_t now)
19538 return ! (lt = localtime (&now)) || mktime (lt) == now;
19542 mktime_test (time_t now)
19544 return (mktime_test1 (now)
19545 && mktime_test1 ((time_t) (time_t_max - now))
19546 && mktime_test1 ((time_t) (time_t_min + now)));
19552 /* Based on code from Ariel Faigon. */
19562 return tm.tm_mon == 2 && tm.tm_mday == 31;
19566 bigtime_test (int j)
19570 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
19571 now = mktime (&tm);
19572 if (now != (time_t) -1)
19574 struct tm *lt = localtime (&now);
19576 && lt->tm_year == tm.tm_year
19577 && lt->tm_mon == tm.tm_mon
19578 && lt->tm_mday == tm.tm_mday
19579 && lt->tm_hour == tm.tm_hour
19580 && lt->tm_min == tm.tm_min
19581 && lt->tm_sec == tm.tm_sec
19582 && lt->tm_yday == tm.tm_yday
19583 && lt->tm_wday == tm.tm_wday
19584 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
19585 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
19594 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
19595 ignoring leap seconds. */
19596 unsigned long int answer = 2527315200UL;
19600 tm.tm_year = 2050 - 1900;
19603 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
19606 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19607 instead of "TZ=America/Vancouver" in order to detect the bug even
19608 on systems that don't support the Olson extension, or don't have the
19609 full zoneinfo tables installed. */
19610 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
19614 /* Check that the result is either a failure, or close enough
19615 to the correct answer that we can assume the discrepancy is
19616 due to leap seconds. */
19617 return (t == (time_t) -1
19618 || (0 < t && answer - 120 <= t && t <= answer + 120));
19627 /* This test makes some buggy mktime implementations loop.
19628 Give up after 60 seconds; a mktime slower than that
19629 isn't worth using anyway. */
19634 t = (time_t_max << 1) + 1;
19635 if (t <= time_t_max)
19639 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
19641 delta = time_t_max / 997; /* a suitable prime number */
19642 for (i = 0; i < N_STRINGS; i++)
19645 putenv ((char*) tz_strings[i]);
19647 for (t = 0; t <= time_t_max - delta; t += delta)
19648 if (! mktime_test (t))
19650 if (! (mktime_test ((time_t) 1)
19651 && mktime_test ((time_t) (60 * 60))
19652 && mktime_test ((time_t) (60 * 60 * 24))))
19655 for (j = 1; ; j <<= 1)
19656 if (! bigtime_test (j))
19658 else if (INT_MAX / 2 < j)
19660 if (! bigtime_test (INT_MAX))
19663 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
19666 if ac_fn_c_try_run "$LINENO"; then :
19667 ac_cv_func_working_mktime=yes
19669 ac_cv_func_working_mktime=no
19671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19672 conftest.$ac_objext conftest.beam conftest.$ac_ext
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
19677 $as_echo "$ac_cv_func_working_mktime" >&6; }
19678 if test $ac_cv_func_working_mktime = no; then
19679 case " $LIBOBJS " in
19680 *" mktime.$ac_objext "* ) ;;
19681 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
19687 for ac_func in strftime
19689 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
19690 if test "x$ac_cv_func_strftime" = xyes; then :
19691 cat >>confdefs.h <<_ACEOF
19692 #define HAVE_STRFTIME 1
19696 # strftime is in -lintl on SCO UNIX.
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
19698 $as_echo_n "checking for strftime in -lintl... " >&6; }
19699 if ${ac_cv_lib_intl_strftime+:} false; then :
19700 $as_echo_n "(cached) " >&6
19702 ac_check_lib_save_LIBS=$LIBS
19703 LIBS="-lintl $LIBS"
19704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19705 /* end confdefs.h. */
19707 /* Override any GCC internal prototype to avoid an error.
19708 Use char because int might match the return type of a GCC
19709 builtin and then its argument prototype would still apply. */
19717 return strftime ();
19722 if ac_fn_c_try_link "$LINENO"; then :
19723 ac_cv_lib_intl_strftime=yes
19725 ac_cv_lib_intl_strftime=no
19727 rm -f core conftest.err conftest.$ac_objext \
19728 conftest$ac_exeext conftest.$ac_ext
19729 LIBS=$ac_check_lib_save_LIBS
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
19732 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
19733 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
19734 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
19736 LIBS="-lintl $LIBS"
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19743 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19744 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
19745 $as_echo_n "(cached) " >&6
19747 rm -f conftest.sym conftest.file
19748 echo >conftest.file
19749 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19750 if test "$cross_compiling" = yes; then :
19751 ac_cv_func_lstat_dereferences_slashed_symlink=no
19753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19754 /* end confdefs.h. */
19755 $ac_includes_default
19760 /* Linux will dereference the symlink and fail, as required by POSIX.
19761 That is better in the sense that it means we will not
19762 have to compile and use the lstat wrapper. */
19763 return lstat ("conftest.sym/", &sbuf) == 0;
19768 if ac_fn_c_try_run "$LINENO"; then :
19769 ac_cv_func_lstat_dereferences_slashed_symlink=yes
19771 ac_cv_func_lstat_dereferences_slashed_symlink=no
19773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19774 conftest.$ac_objext conftest.beam conftest.$ac_ext
19778 # If the `ln -s' command failed, then we probably don't even
19779 # have an lstat function.
19780 ac_cv_func_lstat_dereferences_slashed_symlink=no
19782 rm -f conftest.sym conftest.file
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
19786 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19788 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
19790 cat >>confdefs.h <<_ACEOF
19791 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19795 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
19796 case " $LIBOBJS " in
19797 *" lstat.$ac_objext "* ) ;;
19798 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
19805 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
19806 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
19807 $as_echo_n "(cached) " >&6
19809 if test "$cross_compiling" = yes; then :
19810 ac_cv_func_stat_empty_string_bug=yes
19812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19813 /* end confdefs.h. */
19814 $ac_includes_default
19819 return stat ("", &sbuf) == 0;
19824 if ac_fn_c_try_run "$LINENO"; then :
19825 ac_cv_func_stat_empty_string_bug=no
19827 ac_cv_func_stat_empty_string_bug=yes
19829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19830 conftest.$ac_objext conftest.beam conftest.$ac_ext
19834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
19835 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
19836 if test $ac_cv_func_stat_empty_string_bug = yes; then
19837 case " $LIBOBJS " in
19838 *" stat.$ac_objext "* ) ;;
19839 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
19844 cat >>confdefs.h <<_ACEOF
19845 #define HAVE_STAT_EMPTY_STRING_BUG 1
19850 for ac_header in sys/select.h sys/socket.h
19852 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19853 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19854 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19855 cat >>confdefs.h <<_ACEOF
19856 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
19864 $as_echo_n "checking types of arguments for select... " >&6; }
19865 if ${ac_cv_func_select_args+:} false; then :
19866 $as_echo_n "(cached) " >&6
19868 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
19869 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
19870 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
19871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19872 /* end confdefs.h. */
19873 $ac_includes_default
19874 #ifdef HAVE_SYS_SELECT_H
19875 # include <sys/select.h>
19877 #ifdef HAVE_SYS_SOCKET_H
19878 # include <sys/socket.h>
19884 extern int select ($ac_arg1,
19885 $ac_arg234, $ac_arg234, $ac_arg234,
19891 if ac_fn_c_try_compile "$LINENO"; then :
19892 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
19894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19898 # Provide a safe default value.
19899 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
19903 $as_echo "$ac_cv_func_select_args" >&6; }
19904 ac_save_IFS=$IFS; IFS=','
19905 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
19909 cat >>confdefs.h <<_ACEOF
19910 #define SELECT_TYPE_ARG1 $1
19914 cat >>confdefs.h <<_ACEOF
19915 #define SELECT_TYPE_ARG234 ($2)
19919 cat >>confdefs.h <<_ACEOF
19920 #define SELECT_TYPE_ARG5 ($3)
19925 for ac_func in strftime
19927 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
19928 if test "x$ac_cv_func_strftime" = xyes; then :
19929 cat >>confdefs.h <<_ACEOF
19930 #define HAVE_STRFTIME 1
19934 # strftime is in -lintl on SCO UNIX.
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
19936 $as_echo_n "checking for strftime in -lintl... " >&6; }
19937 if ${ac_cv_lib_intl_strftime+:} false; then :
19938 $as_echo_n "(cached) " >&6
19940 ac_check_lib_save_LIBS=$LIBS
19941 LIBS="-lintl $LIBS"
19942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19943 /* end confdefs.h. */
19945 /* Override any GCC internal prototype to avoid an error.
19946 Use char because int might match the return type of a GCC
19947 builtin and then its argument prototype would still apply. */
19955 return strftime ();
19960 if ac_fn_c_try_link "$LINENO"; then :
19961 ac_cv_lib_intl_strftime=yes
19963 ac_cv_lib_intl_strftime=no
19965 rm -f core conftest.err conftest.$ac_objext \
19966 conftest$ac_exeext conftest.$ac_ext
19967 LIBS=$ac_check_lib_save_LIBS
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
19970 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
19971 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
19972 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
19974 LIBS="-lintl $LIBS"
19980 for ac_func in vprintf
19982 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
19983 if test "x$ac_cv_func_vprintf" = xyes; then :
19984 cat >>confdefs.h <<_ACEOF
19985 #define HAVE_VPRINTF 1
19988 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
19989 if test "x$ac_cv_func__doprnt" = xyes; then :
19991 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
20001 ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
20002 if test "x$ac_cv_header_math_h" = xyes; then :
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
20004 $as_echo_n "checking for pow in -lm... " >&6; }
20005 if ${ac_cv_lib_m_pow+:} false; then :
20006 $as_echo_n "(cached) " >&6
20008 ac_check_lib_save_LIBS=$LIBS
20010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20011 /* end confdefs.h. */
20013 /* Override any GCC internal prototype to avoid an error.
20014 Use char because int might match the return type of a GCC
20015 builtin and then its argument prototype would still apply. */
20028 if ac_fn_c_try_link "$LINENO"; then :
20029 ac_cv_lib_m_pow=yes
20033 rm -f core conftest.err conftest.$ac_objext \
20034 conftest$ac_exeext conftest.$ac_ext
20035 LIBS=$ac_check_lib_save_LIBS
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
20038 $as_echo "$ac_cv_lib_m_pow" >&6; }
20039 if test "x$ac_cv_lib_m_pow" = xyes; then :
20043 $as_echo "#define HAVE_LIBM /**/" >>confdefs.h
20047 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
20048 if test "x$ac_cv_func_pow" = xyes; then :
20049 cat >>confdefs.h <<_ACEOF
20065 if test x"$LIBM" = x ; then
20066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find working pow function - bgpd may not link" >&5
20067 $as_echo "$as_me: WARNING: Unable to find working pow function - bgpd may not link" >&2;}
20072 for ac_func in dup2 ftruncate getcwd gethostbyname getpagesize gettimeofday \
20073 inet_ntoa inet_aton strnlen \
20074 memchr memmove memset select socket \
20075 strcasecmp strchr strcspn strdup strerror \
20076 strncasecmp strndup strrchr strspn strstr \
20077 strtol strtoul strlcat strlcpy \
20078 daemon snprintf vsnprintf \
20079 if_nametoindex if_indextoname getifaddrs \
20080 uname fcntl getgrouplist
20082 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20083 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20084 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20085 cat >>confdefs.h <<_ACEOF
20086 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20094 ac_fn_c_check_header_mongrel "$LINENO" "asm-generic/unistd.h" "ac_cv_header_asm_generic_unistd_h" "$ac_includes_default"
20095 if test "x$ac_cv_header_asm_generic_unistd_h" = xyes; then :
20096 ac_fn_c_check_decl "$LINENO" "__NR_setns" "ac_cv_have_decl___NR_setns" "#ifdef SUNOS_5
20098 #define __EXTENSIONS__
20102 # include <stdlib.h>
20103 # include <stddef.h>
20106 # include <stdlib.h>
20109 #if HAVE_SYS_TYPES_H
20110 # include <sys/types.h>
20112 /* sys/conf.h depends on param.h on FBSD at least */
20113 #if HAVE_SYS_PARAM_H
20114 # include <sys/param.h>
20116 /* Required for MAXSIG */
20118 # include <signal.h>
20120 #if HAVE_SYS_SOCKET_H
20121 # include <sys/socket.h>
20124 # define __APPLE_USE_RFC_3542
20126 #if HAVE_NETINET_IN_H
20127 # include <netinet/in.h>
20129 #ifdef TIME_WITH_SYS_TIME
20130 # include <sys/time.h>
20133 # ifdef HAVE_SYS_TIME_H
20134 # include <sys/time.h>
20138 #endif /* TIME_WITH_SYS_TIME */
20141 # include <net/if.h>
20144 #if HAVE_NET_IF_VAR_H
20145 # include <net/if_var.h>
20149 # include <sys/un.h>
20151 #if HAVE_NETINET_IN_SYSTM_H
20152 # include <netinet/in_systm.h>
20154 #if HAVE_NETINET_IN_VAR_H
20155 # include <netinet/in_var.h>
20157 #if HAVE_NET_IF_DL_H
20158 # include <net/if_dl.h>
20160 #if HAVE_NET_NETOPT_H
20161 # include <net/netopt.h>
20163 #if HAVE_NET_ROUTE_H
20164 # include <net/route.h>
20167 # include <inet/nd.h>
20169 #if HAVE_ARPA_INET_H
20170 # include <arpa/inet.h>
20172 /* Required for IDRP */
20173 #if HAVE_NETINET_IP_ICMP_H
20174 # include <netinet/ip_icmp.h>
20176 #include <asm-generic/unistd.h>
20179 if test "x$ac_cv_have_decl___NR_setns" = xyes; then :
20181 $as_echo "#define HAVE_NETNS /**/" >>confdefs.h
20185 for ac_func in setns
20187 ac_fn_c_check_func "$LINENO" "setns" "ac_cv_func_setns"
20188 if test "x$ac_cv_func_setns" = xyes; then :
20189 cat >>confdefs.h <<_ACEOF
20190 #define HAVE_SETNS 1
20193 $as_echo "#define HAVE_SETNS /**/" >>confdefs.h
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zebra between kernel interface method" >&5
20204 $as_echo_n "checking zebra between kernel interface method... " >&6; }
20205 if test x"$opsys" = x"gnu-linux"; then
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: netlink" >&5
20207 $as_echo "netlink" >&6; }
20208 RT_METHOD=rt_netlink.o
20210 $as_echo "#define HAVE_NETLINK /**/" >>confdefs.h
20214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Route socket" >&5
20215 $as_echo "Route socket" >&6; }
20216 KERNEL_METHOD="kernel_socket.o"
20217 RT_METHOD="rt_socket.o"
20221 if test "x$netlink" = "xyes"; then
20223 HAVE_NETLINK_FALSE='#'
20225 HAVE_NETLINK_TRUE='#'
20226 HAVE_NETLINK_FALSE=
20231 $as_echo "#define ISIS_METHOD_PFPACKET 1" >>confdefs.h
20234 $as_echo "#define ISIS_METHOD_DLPI 2" >>confdefs.h
20237 $as_echo "#define ISIS_METHOD_BPF 3" >>confdefs.h
20239 ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
20240 if test "x$ac_cv_header_net_bpf_h" = xyes; then :
20245 ac_fn_c_check_header_mongrel "$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default"
20246 if test "x$ac_cv_header_sys_dlpi_h" = xyes; then :
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zebra IS-IS I/O method" >&5
20252 $as_echo_n "checking zebra IS-IS I/O method... " >&6; }
20253 if test x"$opsys" = x"gnu-linux"; then
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pfpacket" >&5
20255 $as_echo "pfpacket" >&6; }
20256 ISIS_METHOD_MACRO="ISIS_METHOD_PFPACKET"
20257 elif test x"$opsys" = x"sol2-6" -o x"$opsys" = x"sol8"; then
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLPI" >&5
20259 $as_echo "DLPI" >&6; }
20260 ISIS_METHOD_MACRO="ISIS_METHOD_DLPI"
20262 if test $ac_cv_header_net_bpf_h = no; then
20263 if test $ac_cv_header_sys_dlpi_h = no; then
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20265 $as_echo "none" >&6; }
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** IS-IS support will not be built ***" >&5
20267 $as_echo "$as_me: WARNING: *** IS-IS support will not be built ***" >&2;}
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLPI" >&5
20271 $as_echo "DLPI" >&6; }
20273 ISIS_METHOD_MACRO="ISIS_METHOD_DLPI"
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: BPF" >&5
20276 $as_echo "BPF" >&6; }
20277 ISIS_METHOD_MACRO="ISIS_METHOD_BPF"
20281 cat >>confdefs.h <<_ACEOF
20282 #define ISIS_METHOD $ISIS_METHOD_MACRO
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken CMSG_FIRSTHDR" >&5
20287 $as_echo_n "checking for broken CMSG_FIRSTHDR... " >&6; }
20288 if test "$cross_compiling" = yes; then :
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20290 $as_echo "no" >&6; }
20292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20293 /* end confdefs.h. */
20297 #define __EXTENSIONS__
20299 #ifdef HAVE_STDLIB_H
20300 # include <stdlib.h>
20302 #ifdef HAVE_SYS_TYPES_H
20303 #include <sys/types.h>
20305 #ifdef HAVE_SYS_SOCKET_H
20306 #include <sys/socket.h>
20314 msg.msg_control = buf;
20315 msg.msg_controllen = 0;
20317 if (CMSG_FIRSTHDR(&msg) != NULL)
20322 if ac_fn_c_try_run "$LINENO"; then :
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - using workaround" >&5
20324 $as_echo "yes - using workaround" >&6; }
20325 $as_echo "#define HAVE_BROKEN_CMSG_FIRSTHDR /**/" >>confdefs.h
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20329 $as_echo "no" >&6; }
20331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20332 conftest.$ac_objext conftest.beam conftest.$ac_ext
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking route read method" >&5
20337 $as_echo_n "checking route read method... " >&6; }
20338 if ${quagga_cv_rtread_method+:} false; then :
20339 $as_echo_n "(cached) " >&6
20341 if test "x$netlink" = xyes; then
20342 quagga_cv_rtread_method="netlink"
20344 for quagga_cv_rtread_method in /dev/ip /dev/null;
20346 test x`ls $quagga_cv_rtread_method 2>/dev/null` = x"$quagga_cv_rtread_method" && break
20348 case $quagga_cv_rtread_method in
20351 *-freebsd*) quagga_cv_rtread_method="sysctl";;
20352 *) quagga_cv_rtread_method="getmsg";;
20355 quagga_cv_rtread_method="sysctl";;
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quagga_cv_rtread_method" >&5
20360 $as_echo "$quagga_cv_rtread_method" >&6; }
20361 RTREAD_METHOD=rtread_${quagga_cv_rtread_method}.o
20364 IOCTL_METHOD=ioctl.o
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking interface looking up method" >&5
20366 $as_echo_n "checking interface looking up method... " >&6; }
20367 if test "$netlink" = yes; then
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: netlink" >&5
20369 $as_echo "netlink" >&6; }
20370 IF_METHOD=if_netlink.o
20371 elif test "$opsys" = "sol2-6";then
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris GIF" >&5
20373 $as_echo "Solaris GIF" >&6; }
20374 IF_METHOD=if_ioctl.o
20375 elif test "$opsys" = "sol8";then
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris GLIF" >&5
20377 $as_echo "Solaris GLIF" >&6; }
20378 IF_METHOD=if_ioctl_solaris.o
20379 IOCTL_METHOD=ioctl_solaris.o
20380 elif test "$opsys" = "openbsd";then
20381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: openbsd" >&5
20382 $as_echo "openbsd" >&6; }
20383 IF_METHOD=if_ioctl.o
20384 elif grep NET_RT_IFLIST /usr/include/sys/socket.h >/dev/null 2>&1; then
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sysctl" >&5
20386 $as_echo "sysctl" >&6; }
20387 IF_METHOD=if_sysctl.o
20389 $as_echo "#define HAVE_NET_RT_IFLIST /**/" >>confdefs.h
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ioctl" >&5
20393 $as_echo "ioctl" >&6; }
20394 IF_METHOD=if_ioctl.o
20399 ac_fn_c_check_member "$LINENO" "struct ip_mreqn" "imr_ifindex" "ac_cv_member_struct_ip_mreqn_imr_ifindex" "#ifdef SUNOS_5
20401 #define __EXTENSIONS__
20405 # include <stdlib.h>
20406 # include <stddef.h>
20409 # include <stdlib.h>
20412 #if HAVE_SYS_TYPES_H
20413 # include <sys/types.h>
20415 /* sys/conf.h depends on param.h on FBSD at least */
20416 #if HAVE_SYS_PARAM_H
20417 # include <sys/param.h>
20419 /* Required for MAXSIG */
20421 # include <signal.h>
20423 #if HAVE_SYS_SOCKET_H
20424 # include <sys/socket.h>
20427 # define __APPLE_USE_RFC_3542
20429 #if HAVE_NETINET_IN_H
20430 # include <netinet/in.h>
20432 #ifdef TIME_WITH_SYS_TIME
20433 # include <sys/time.h>
20436 # ifdef HAVE_SYS_TIME_H
20437 # include <sys/time.h>
20441 #endif /* TIME_WITH_SYS_TIME */
20444 # include <net/if.h>
20447 #if HAVE_NET_IF_VAR_H
20448 # include <net/if_var.h>
20452 # include <sys/un.h>
20454 #if HAVE_NETINET_IN_SYSTM_H
20455 # include <netinet/in_systm.h>
20457 #if HAVE_NETINET_IN_VAR_H
20458 # include <netinet/in_var.h>
20460 #if HAVE_NET_IF_DL_H
20461 # include <net/if_dl.h>
20463 #if HAVE_NET_NETOPT_H
20464 # include <net/netopt.h>
20466 #if HAVE_NET_ROUTE_H
20467 # include <net/route.h>
20470 # include <inet/nd.h>
20472 #if HAVE_ARPA_INET_H
20473 # include <arpa/inet.h>
20475 /* Required for IDRP */
20476 #if HAVE_NETINET_IP_ICMP_H
20477 # include <netinet/ip_icmp.h>
20481 if test "x$ac_cv_member_struct_ip_mreqn_imr_ifindex" = xyes; then :
20483 cat >>confdefs.h <<_ACEOF
20484 #define HAVE_STRUCT_IP_MREQN_IMR_IFINDEX 1
20491 for ac_header in linux/mroute.h
20493 ac_fn_c_check_header_compile "$LINENO" "linux/mroute.h" "ac_cv_header_linux_mroute_h" "
20494 #if HAVE_NETINET_IN_H
20495 #include<netinet/in.h>
20498 if test "x$ac_cv_header_linux_mroute_h" = xyes; then :
20499 cat >>confdefs.h <<_ACEOF
20500 #define HAVE_LINUX_MROUTE_H 1
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD struct ip_mreq hack" >&5
20508 $as_echo_n "checking for BSD struct ip_mreq hack... " >&6; }
20509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20510 /* end confdefs.h. */
20511 #ifdef HAVE_SYS_PARAM_H
20512 #include <sys/param.h>
20517 #if (defined(__FreeBSD__) && ((__FreeBSD_version >= 500022 && __FreeBSD_version < 700000) || (__FreeBSD_version < 500000 && __FreeBSD_version >= 440000))) || (defined(__NetBSD__) && defined(__NetBSD_Version__) && __NetBSD_Version__ >= 106010000) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__DragonFly__) || defined(__sun)
20520 #error No support for BSD struct ip_mreq hack detected
20526 if ac_fn_c_try_compile "$LINENO"; then :
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20528 $as_echo "yes" >&6; }
20530 $as_echo "#define HAVE_BSD_STRUCT_IP_MREQ_HACK /**/" >>confdefs.h
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20534 $as_echo "no" >&6; }
20536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC3678 protocol-independed API" >&5
20539 $as_echo_n "checking for RFC3678 protocol-independed API... " >&6; }
20540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20541 /* end confdefs.h. */
20543 #include <sys/types.h>
20544 #include <netinet/in.h>
20549 struct group_req gr; int sock; setsockopt(sock, IPPROTO_IP, MCAST_JOIN_GROUP, (void*)&gr, sizeof(gr));
20555 if ac_fn_c_try_compile "$LINENO"; then :
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20557 $as_echo "yes" >&6; }
20559 $as_echo "#define HAVE_RFC3678 1" >>confdefs.h
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20563 $as_echo "no" >&6; }
20565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20567 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef SUNOS_5
20569 #define __EXTENSIONS__
20573 # include <stdlib.h>
20574 # include <stddef.h>
20577 # include <stdlib.h>
20580 #if HAVE_SYS_TYPES_H
20581 # include <sys/types.h>
20583 /* sys/conf.h depends on param.h on FBSD at least */
20584 #if HAVE_SYS_PARAM_H
20585 # include <sys/param.h>
20587 /* Required for MAXSIG */
20589 # include <signal.h>
20591 #if HAVE_SYS_SOCKET_H
20592 # include <sys/socket.h>
20595 # define __APPLE_USE_RFC_3542
20597 #if HAVE_NETINET_IN_H
20598 # include <netinet/in.h>
20600 #ifdef TIME_WITH_SYS_TIME
20601 # include <sys/time.h>
20604 # ifdef HAVE_SYS_TIME_H
20605 # include <sys/time.h>
20609 #endif /* TIME_WITH_SYS_TIME */
20612 # include <net/if.h>
20615 #if HAVE_NET_IF_VAR_H
20616 # include <net/if_var.h>
20620 # include <sys/un.h>
20622 #if HAVE_NETINET_IN_SYSTM_H
20623 # include <netinet/in_systm.h>
20625 #if HAVE_NETINET_IN_VAR_H
20626 # include <netinet/in_var.h>
20628 #if HAVE_NET_IF_DL_H
20629 # include <net/if_dl.h>
20631 #if HAVE_NET_NETOPT_H
20632 # include <net/netopt.h>
20634 #if HAVE_NET_ROUTE_H
20635 # include <net/route.h>
20638 # include <inet/nd.h>
20640 #if HAVE_ARPA_INET_H
20641 # include <arpa/inet.h>
20643 /* Required for IDRP */
20644 #if HAVE_NETINET_IP_ICMP_H
20645 # include <netinet/ip_icmp.h>
20649 if test "x$ac_cv_header_net_if_h" = xyes; then :
20650 ac_fn_c_check_header_compile "$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "#ifdef SUNOS_5
20652 #define __EXTENSIONS__
20656 # include <stdlib.h>
20657 # include <stddef.h>
20660 # include <stdlib.h>
20663 #if HAVE_SYS_TYPES_H
20664 # include <sys/types.h>
20666 /* sys/conf.h depends on param.h on FBSD at least */
20667 #if HAVE_SYS_PARAM_H
20668 # include <sys/param.h>
20670 /* Required for MAXSIG */
20672 # include <signal.h>
20674 #if HAVE_SYS_SOCKET_H
20675 # include <sys/socket.h>
20678 # define __APPLE_USE_RFC_3542
20680 #if HAVE_NETINET_IN_H
20681 # include <netinet/in.h>
20683 #ifdef TIME_WITH_SYS_TIME
20684 # include <sys/time.h>
20687 # ifdef HAVE_SYS_TIME_H
20688 # include <sys/time.h>
20692 #endif /* TIME_WITH_SYS_TIME */
20695 # include <net/if.h>
20698 #if HAVE_NET_IF_VAR_H
20699 # include <net/if_var.h>
20703 # include <sys/un.h>
20705 #if HAVE_NETINET_IN_SYSTM_H
20706 # include <netinet/in_systm.h>
20708 #if HAVE_NETINET_IN_VAR_H
20709 # include <netinet/in_var.h>
20711 #if HAVE_NET_IF_DL_H
20712 # include <net/if_dl.h>
20714 #if HAVE_NET_NETOPT_H
20715 # include <net/netopt.h>
20717 #if HAVE_NET_ROUTE_H
20718 # include <net/route.h>
20721 # include <inet/nd.h>
20723 #if HAVE_ARPA_INET_H
20724 # include <arpa/inet.h>
20726 /* Required for IDRP */
20727 #if HAVE_NETINET_IP_ICMP_H
20728 # include <netinet/ip_icmp.h>
20732 if test "x$ac_cv_header_net_if_media_h" = xyes; then :
20734 ac_fn_c_check_member "$LINENO" "struct ifmediareq" "ifm_status" "ac_cv_member_struct_ifmediareq_ifm_status" "#ifdef SUNOS_5
20736 #define __EXTENSIONS__
20740 # include <stdlib.h>
20741 # include <stddef.h>
20744 # include <stdlib.h>
20747 #if HAVE_SYS_TYPES_H
20748 # include <sys/types.h>
20750 /* sys/conf.h depends on param.h on FBSD at least */
20751 #if HAVE_SYS_PARAM_H
20752 # include <sys/param.h>
20754 /* Required for MAXSIG */
20756 # include <signal.h>
20758 #if HAVE_SYS_SOCKET_H
20759 # include <sys/socket.h>
20762 # define __APPLE_USE_RFC_3542
20764 #if HAVE_NETINET_IN_H
20765 # include <netinet/in.h>
20767 #ifdef TIME_WITH_SYS_TIME
20768 # include <sys/time.h>
20771 # ifdef HAVE_SYS_TIME_H
20772 # include <sys/time.h>
20776 #endif /* TIME_WITH_SYS_TIME */
20779 # include <net/if.h>
20782 #if HAVE_NET_IF_VAR_H
20783 # include <net/if_var.h>
20787 # include <sys/un.h>
20789 #if HAVE_NETINET_IN_SYSTM_H
20790 # include <netinet/in_systm.h>
20792 #if HAVE_NETINET_IN_VAR_H
20793 # include <netinet/in_var.h>
20795 #if HAVE_NET_IF_DL_H
20796 # include <net/if_dl.h>
20798 #if HAVE_NET_NETOPT_H
20799 # include <net/netopt.h>
20801 #if HAVE_NET_ROUTE_H
20802 # include <net/route.h>
20805 # include <inet/nd.h>
20807 #if HAVE_ARPA_INET_H
20808 # include <arpa/inet.h>
20810 /* Required for IDRP */
20811 #if HAVE_NETINET_IP_ICMP_H
20812 # include <netinet/ip_icmp.h>
20815 #include <net/if_media.h>
20818 if test "x$ac_cv_member_struct_ifmediareq_ifm_status" = xyes; then :
20820 cat >>confdefs.h <<_ACEOF
20821 #define HAVE_STRUCT_IFMEDIAREQ_IFM_STATUS 1
20825 $as_echo "#define HAVE_BSD_LINK_DETECT /**/" >>confdefs.h
20836 ac_fn_c_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
20837 if test "x$ac_cv_header_net_if_h" = xyes; then :
20838 ac_fn_c_check_member "$LINENO" "struct if_data" "ifi_link_state" "ac_cv_member_struct_if_data_ifi_link_state" "#ifdef SUNOS_5
20840 #define __EXTENSIONS__
20844 # include <stdlib.h>
20845 # include <stddef.h>
20848 # include <stdlib.h>
20851 #if HAVE_SYS_TYPES_H
20852 # include <sys/types.h>
20854 /* sys/conf.h depends on param.h on FBSD at least */
20855 #if HAVE_SYS_PARAM_H
20856 # include <sys/param.h>
20858 /* Required for MAXSIG */
20860 # include <signal.h>
20862 #if HAVE_SYS_SOCKET_H
20863 # include <sys/socket.h>
20866 # define __APPLE_USE_RFC_3542
20868 #if HAVE_NETINET_IN_H
20869 # include <netinet/in.h>
20871 #ifdef TIME_WITH_SYS_TIME
20872 # include <sys/time.h>
20875 # ifdef HAVE_SYS_TIME_H
20876 # include <sys/time.h>
20880 #endif /* TIME_WITH_SYS_TIME */
20883 # include <net/if.h>
20886 #if HAVE_NET_IF_VAR_H
20887 # include <net/if_var.h>
20891 # include <sys/un.h>
20893 #if HAVE_NETINET_IN_SYSTM_H
20894 # include <netinet/in_systm.h>
20896 #if HAVE_NETINET_IN_VAR_H
20897 # include <netinet/in_var.h>
20899 #if HAVE_NET_IF_DL_H
20900 # include <net/if_dl.h>
20902 #if HAVE_NET_NETOPT_H
20903 # include <net/netopt.h>
20905 #if HAVE_NET_ROUTE_H
20906 # include <net/route.h>
20909 # include <inet/nd.h>
20911 #if HAVE_ARPA_INET_H
20912 # include <arpa/inet.h>
20914 /* Required for IDRP */
20915 #if HAVE_NETINET_IP_ICMP_H
20916 # include <netinet/ip_icmp.h>
20920 if test "x$ac_cv_member_struct_if_data_ifi_link_state" = xyes; then :
20922 cat >>confdefs.h <<_ACEOF
20923 #define HAVE_STRUCT_IF_DATA_IFI_LINK_STATE 1
20927 $as_echo "#define HAVE_BSD_IFI_LINK_STATE /**/" >>confdefs.h
20936 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "#ifdef SUNOS_5
20938 #define __EXTENSIONS__
20942 # include <stdlib.h>
20943 # include <stddef.h>
20946 # include <stdlib.h>
20949 #if HAVE_SYS_TYPES_H
20950 # include <sys/types.h>
20952 /* sys/conf.h depends on param.h on FBSD at least */
20953 #if HAVE_SYS_PARAM_H
20954 # include <sys/param.h>
20956 /* Required for MAXSIG */
20958 # include <signal.h>
20960 #if HAVE_SYS_SOCKET_H
20961 # include <sys/socket.h>
20964 # define __APPLE_USE_RFC_3542
20966 #if HAVE_NETINET_IN_H
20967 # include <netinet/in.h>
20969 #ifdef TIME_WITH_SYS_TIME
20970 # include <sys/time.h>
20973 # ifdef HAVE_SYS_TIME_H
20974 # include <sys/time.h>
20978 #endif /* TIME_WITH_SYS_TIME */
20981 # include <net/if.h>
20984 #if HAVE_NET_IF_VAR_H
20985 # include <net/if_var.h>
20989 # include <sys/un.h>
20991 #if HAVE_NETINET_IN_SYSTM_H
20992 # include <netinet/in_systm.h>
20994 #if HAVE_NETINET_IN_VAR_H
20995 # include <netinet/in_var.h>
20997 #if HAVE_NET_IF_DL_H
20998 # include <net/if_dl.h>
21000 #if HAVE_NET_NETOPT_H
21001 # include <net/netopt.h>
21003 #if HAVE_NET_ROUTE_H
21004 # include <net/route.h>
21007 # include <inet/nd.h>
21009 #if HAVE_ARPA_INET_H
21010 # include <arpa/inet.h>
21012 /* Required for IDRP */
21013 #if HAVE_NETINET_IP_ICMP_H
21014 # include <netinet/ip_icmp.h>
21018 if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
21020 ac_fn_c_check_decl "$LINENO" "TCP_MD5SIG" "ac_cv_have_decl_TCP_MD5SIG" "#ifdef SUNOS_5
21022 #define __EXTENSIONS__
21026 # include <stdlib.h>
21027 # include <stddef.h>
21030 # include <stdlib.h>
21033 #if HAVE_SYS_TYPES_H
21034 # include <sys/types.h>
21036 /* sys/conf.h depends on param.h on FBSD at least */
21037 #if HAVE_SYS_PARAM_H
21038 # include <sys/param.h>
21040 /* Required for MAXSIG */
21042 # include <signal.h>
21044 #if HAVE_SYS_SOCKET_H
21045 # include <sys/socket.h>
21048 # define __APPLE_USE_RFC_3542
21050 #if HAVE_NETINET_IN_H
21051 # include <netinet/in.h>
21053 #ifdef TIME_WITH_SYS_TIME
21054 # include <sys/time.h>
21057 # ifdef HAVE_SYS_TIME_H
21058 # include <sys/time.h>
21062 #endif /* TIME_WITH_SYS_TIME */
21065 # include <net/if.h>
21068 #if HAVE_NET_IF_VAR_H
21069 # include <net/if_var.h>
21073 # include <sys/un.h>
21075 #if HAVE_NETINET_IN_SYSTM_H
21076 # include <netinet/in_systm.h>
21078 #if HAVE_NETINET_IN_VAR_H
21079 # include <netinet/in_var.h>
21081 #if HAVE_NET_IF_DL_H
21082 # include <net/if_dl.h>
21084 #if HAVE_NET_NETOPT_H
21085 # include <net/netopt.h>
21087 #if HAVE_NET_ROUTE_H
21088 # include <net/route.h>
21091 # include <inet/nd.h>
21093 #if HAVE_ARPA_INET_H
21094 # include <arpa/inet.h>
21096 /* Required for IDRP */
21097 #if HAVE_NETINET_IP_ICMP_H
21098 # include <netinet/ip_icmp.h>
21101 #include <netinet/tcp.h>
21104 if test "x$ac_cv_have_decl_TCP_MD5SIG" = xyes; then :
21110 cat >>confdefs.h <<_ACEOF
21111 #define HAVE_DECL_TCP_MD5SIG $ac_have_decl
21117 if test $ac_cv_have_decl_TCP_MD5SIG = no; then
21118 ac_fn_c_check_header_mongrel "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "$ac_includes_default"
21119 if test "x$ac_cv_header_linux_tcp_h" = xyes; then :
21121 ac_fn_c_check_decl "$LINENO" "TCP_MD5SIG" "ac_cv_have_decl_TCP_MD5SIG" "#ifdef SUNOS_5
21123 #define __EXTENSIONS__
21127 # include <stdlib.h>
21128 # include <stddef.h>
21131 # include <stdlib.h>
21134 #if HAVE_SYS_TYPES_H
21135 # include <sys/types.h>
21137 /* sys/conf.h depends on param.h on FBSD at least */
21138 #if HAVE_SYS_PARAM_H
21139 # include <sys/param.h>
21141 /* Required for MAXSIG */
21143 # include <signal.h>
21145 #if HAVE_SYS_SOCKET_H
21146 # include <sys/socket.h>
21149 # define __APPLE_USE_RFC_3542
21151 #if HAVE_NETINET_IN_H
21152 # include <netinet/in.h>
21154 #ifdef TIME_WITH_SYS_TIME
21155 # include <sys/time.h>
21158 # ifdef HAVE_SYS_TIME_H
21159 # include <sys/time.h>
21163 #endif /* TIME_WITH_SYS_TIME */
21166 # include <net/if.h>
21169 #if HAVE_NET_IF_VAR_H
21170 # include <net/if_var.h>
21174 # include <sys/un.h>
21176 #if HAVE_NETINET_IN_SYSTM_H
21177 # include <netinet/in_systm.h>
21179 #if HAVE_NETINET_IN_VAR_H
21180 # include <netinet/in_var.h>
21182 #if HAVE_NET_IF_DL_H
21183 # include <net/if_dl.h>
21185 #if HAVE_NET_NETOPT_H
21186 # include <net/netopt.h>
21188 #if HAVE_NET_ROUTE_H
21189 # include <net/route.h>
21192 # include <inet/nd.h>
21194 #if HAVE_ARPA_INET_H
21195 # include <arpa/inet.h>
21197 /* Required for IDRP */
21198 #if HAVE_NETINET_IP_ICMP_H
21199 # include <netinet/ip_icmp.h>
21202 #include <linux/tcp.h>
21205 if test "x$ac_cv_have_decl_TCP_MD5SIG" = xyes; then :
21211 cat >>confdefs.h <<_ACEOF
21212 #define HAVE_DECL_TCP_MD5SIG $ac_have_decl
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipforward method" >&5
21221 $as_echo_n "checking ipforward method... " >&6; }
21222 if ${quagga_cv_ipforward_method+:} false; then :
21223 $as_echo_n "(cached) " >&6
21225 if test x$cross_compiling = xyes; then
21226 if test x"$opsys" = x"gnu-linux"; then
21227 quagga_cv_ipforward_method=/proc/net/snmp
21229 quagga_cv_ipforward_method=/dev/ip
21232 for quagga_cv_ipforward_method in /proc/net/snmp /dev/ip /dev/null;
21234 test x`ls $quagga_cv_ipforward_method 2>/dev/null` = x"$quagga_cv_ipforward_method" && break
21237 case $quagga_cv_ipforward_method in
21238 "/proc/net/snmp") quagga_cv_ipforward_method="proc";;
21241 *-freebsd*) quagga_cv_ipforward_method="sysctl";;
21242 *) quagga_cv_ipforward_method="solaris";;
21244 *) quagga_cv_ipforward_method="sysctl";;
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quagga_cv_ipforward_method" >&5
21248 $as_echo "$quagga_cv_ipforward_method" >&6; }
21249 IPFORWARD=ipforward_${quagga_cv_ipforward_method}.o
21252 for ac_func in getaddrinfo
21254 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
21255 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
21256 cat >>confdefs.h <<_ACEOF
21257 #define HAVE_GETADDRINFO 1
21259 have_getaddrinfo=yes
21261 have_getaddrinfo=no
21266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether does this OS have IPv6 stack" >&5
21267 $as_echo_n "checking whether does this OS have IPv6 stack... " >&6; }
21268 if grep WIDE /usr/include/netinet6/in6.h >/dev/null 2>&1; then
21270 $as_echo "#define KAME 1" >>confdefs.h
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: KAME" >&5
21273 $as_echo "KAME" >&6; }
21274 elif test x"$opsys" = x"sol8"; then
21276 $as_echo "#define SOLARIS_IPV6 1" >>confdefs.h
21278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris IPv6" >&5
21279 $as_echo "Solaris IPv6" >&6; }
21280 elif test x"$opsys" = x"gnu-linux"; then
21282 $as_echo "#define LINUX_IPV6 1" >>confdefs.h
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux IPv6" >&5
21285 $as_echo "Linux IPv6" >&6; }
21287 as_fn_error $? "Failed to detect IPv6 stack" "$LINENO" 5
21291 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21294 for ac_header in netinet6/in6.h netinet/in6_var.h netinet/icmp6.h \
21295 netinet6/in6_var.h netinet6/nd6.h
21297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21298 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef SUNOS_5
21300 #define __EXTENSIONS__
21304 # include <stdlib.h>
21305 # include <stddef.h>
21308 # include <stdlib.h>
21311 #if HAVE_SYS_TYPES_H
21312 # include <sys/types.h>
21314 /* sys/conf.h depends on param.h on FBSD at least */
21315 #if HAVE_SYS_PARAM_H
21316 # include <sys/param.h>
21318 /* Required for MAXSIG */
21320 # include <signal.h>
21322 #if HAVE_SYS_SOCKET_H
21323 # include <sys/socket.h>
21326 # define __APPLE_USE_RFC_3542
21328 #if HAVE_NETINET_IN_H
21329 # include <netinet/in.h>
21331 #ifdef TIME_WITH_SYS_TIME
21332 # include <sys/time.h>
21335 # ifdef HAVE_SYS_TIME_H
21336 # include <sys/time.h>
21340 #endif /* TIME_WITH_SYS_TIME */
21343 # include <net/if.h>
21346 #if HAVE_NET_IF_VAR_H
21347 # include <net/if_var.h>
21351 # include <sys/un.h>
21353 #if HAVE_NETINET_IN_SYSTM_H
21354 # include <netinet/in_systm.h>
21356 #if HAVE_NETINET_IN_VAR_H
21357 # include <netinet/in_var.h>
21359 #if HAVE_NET_IF_DL_H
21360 # include <net/if_dl.h>
21362 #if HAVE_NET_NETOPT_H
21363 # include <net/netopt.h>
21365 #if HAVE_NET_ROUTE_H
21366 # include <net/route.h>
21369 # include <inet/nd.h>
21371 #if HAVE_ARPA_INET_H
21372 # include <arpa/inet.h>
21374 /* Required for IDRP */
21375 #if HAVE_NETINET_IP_ICMP_H
21376 # include <netinet/ip_icmp.h>
21380 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21381 cat >>confdefs.h <<_ACEOF
21382 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21391 if test "${enable_doc}" = "no";then
21397 if test "${enable_zebra}" = "no";then
21402 if test "x$ZEBRA" = "xzebra"; then
21411 if test "${enable_bgpd}" = "no";then
21416 if test "x$BGPD" = "xbgpd"; then
21425 if test "${enable_ripd}" = "no";then
21430 if test "x$RIPD" = "xripd"; then
21439 if test "${enable_ospfd}" = "no";then
21444 if test "x$OSPFD" = "xospfd"; then
21453 if test x"$opsys" != x"gnu-linux"; then
21456 if test "${enable_nhrpd}" = "no";then
21461 if test "x$NHRPD" = "xnhrpd"; then
21470 if test "${enable_watchquagga}" = "no";then
21473 WATCHQUAGGA="watchquagga"
21475 if test "x$WATCHQUAGGA" = "xwatchquagga"; then
21477 WATCHQUAGGA_FALSE='#'
21479 WATCHQUAGGA_TRUE='#'
21485 if test "${enable_ospfapi}" != "no";then
21487 $as_echo "#define SUPPORT_OSPF_API /**/" >>confdefs.h
21490 if test "${enable_ospfclient}" != "no";then
21491 OSPFCLIENT="ospfclient"
21495 if test "x$OSPFCLIENT" = "xospfclient"; then
21497 OSPFCLIENT_FALSE='#'
21499 OSPFCLIENT_TRUE='#'
21504 case "${enable_ripngd}" in
21506 * ) RIPNGD="ripngd";;
21508 if test "x$RIPNGD" = "xripngd"; then
21517 case "${enable_ospf6d}" in
21519 * ) OSPF6D="ospf6d";;
21521 if test "x$OSPF6D" = "xospf6d"; then
21530 case "${enable_isisd}" in
21532 * ) ISISD="isisd";;
21534 if test "x$ISISD" = "xisisd"; then
21543 case "${enable_pimd}" in
21547 if test "x$PIMD" = "xpimd"; then
21556 if test "${enable_bgp_announce}" = "no";then
21558 $as_echo "#define DISABLE_BGP_ANNOUNCE 1" >>confdefs.h
21562 $as_echo "#define DISABLE_BGP_ANNOUNCE 0" >>confdefs.h
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -lc" >&5
21583 $as_echo_n "checking for inet_ntop in -lc... " >&6; }
21584 if ${ac_cv_lib_c_inet_ntop+:} false; then :
21585 $as_echo_n "(cached) " >&6
21587 ac_check_lib_save_LIBS=$LIBS
21589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21590 /* end confdefs.h. */
21592 /* Override any GCC internal prototype to avoid an error.
21593 Use char because int might match the return type of a GCC
21594 builtin and then its argument prototype would still apply. */
21602 return inet_ntop ();
21607 if ac_fn_c_try_link "$LINENO"; then :
21608 ac_cv_lib_c_inet_ntop=yes
21610 ac_cv_lib_c_inet_ntop=no
21612 rm -f core conftest.err conftest.$ac_objext \
21613 conftest$ac_exeext conftest.$ac_ext
21614 LIBS=$ac_check_lib_save_LIBS
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_ntop" >&5
21617 $as_echo "$ac_cv_lib_c_inet_ntop" >&6; }
21618 if test "x$ac_cv_lib_c_inet_ntop" = xyes; then :
21620 $as_echo "#define HAVE_INET_NTOP /**/" >>confdefs.h
21624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton in -lc" >&5
21625 $as_echo_n "checking for inet_pton in -lc... " >&6; }
21626 if ${ac_cv_lib_c_inet_pton+:} false; then :
21627 $as_echo_n "(cached) " >&6
21629 ac_check_lib_save_LIBS=$LIBS
21631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21632 /* end confdefs.h. */
21634 /* Override any GCC internal prototype to avoid an error.
21635 Use char because int might match the return type of a GCC
21636 builtin and then its argument prototype would still apply. */
21644 return inet_pton ();
21649 if ac_fn_c_try_link "$LINENO"; then :
21650 ac_cv_lib_c_inet_pton=yes
21652 ac_cv_lib_c_inet_pton=no
21654 rm -f core conftest.err conftest.$ac_objext \
21655 conftest$ac_exeext conftest.$ac_ext
21656 LIBS=$ac_check_lib_save_LIBS
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_pton" >&5
21659 $as_echo "$ac_cv_lib_c_inet_pton" >&6; }
21660 if test "x$ac_cv_lib_c_inet_pton" = xyes; then :
21662 $as_echo "#define HAVE_INET_PTON /**/" >>confdefs.h
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
21667 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
21668 if ${ac_cv_lib_crypt_crypt+:} false; then :
21669 $as_echo_n "(cached) " >&6
21671 ac_check_lib_save_LIBS=$LIBS
21672 LIBS="-lcrypt $LIBS"
21673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21674 /* end confdefs.h. */
21676 /* Override any GCC internal prototype to avoid an error.
21677 Use char because int might match the return type of a GCC
21678 builtin and then its argument prototype would still apply. */
21691 if ac_fn_c_try_link "$LINENO"; then :
21692 ac_cv_lib_crypt_crypt=yes
21694 ac_cv_lib_crypt_crypt=no
21696 rm -f core conftest.err conftest.$ac_objext \
21697 conftest$ac_exeext conftest.$ac_ext
21698 LIBS=$ac_check_lib_save_LIBS
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
21701 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
21702 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
21703 cat >>confdefs.h <<_ACEOF
21704 #define HAVE_LIBCRYPT 1
21707 LIBS="-lcrypt $LIBS"
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init in -lresolv" >&5
21712 $as_echo_n "checking for res_init in -lresolv... " >&6; }
21713 if ${ac_cv_lib_resolv_res_init+:} false; then :
21714 $as_echo_n "(cached) " >&6
21716 ac_check_lib_save_LIBS=$LIBS
21717 LIBS="-lresolv $LIBS"
21718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21719 /* end confdefs.h. */
21721 /* Override any GCC internal prototype to avoid an error.
21722 Use char because int might match the return type of a GCC
21723 builtin and then its argument prototype would still apply. */
21731 return res_init ();
21736 if ac_fn_c_try_link "$LINENO"; then :
21737 ac_cv_lib_resolv_res_init=yes
21739 ac_cv_lib_resolv_res_init=no
21741 rm -f core conftest.err conftest.$ac_objext \
21742 conftest$ac_exeext conftest.$ac_ext
21743 LIBS=$ac_check_lib_save_LIBS
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_init" >&5
21746 $as_echo "$ac_cv_lib_resolv_res_init" >&6; }
21747 if test "x$ac_cv_lib_resolv_res_init" = xyes; then :
21748 cat >>confdefs.h <<_ACEOF
21749 #define HAVE_LIBRESOLV 1
21752 LIBS="-lresolv $LIBS"
21757 if test "x$enable_pcreposix" = "xyes"; then
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix_regexec in -lpcreposix" >&5
21759 $as_echo_n "checking for pcreposix_regexec in -lpcreposix... " >&6; }
21760 if ${ac_cv_lib_pcreposix_pcreposix_regexec+:} false; then :
21761 $as_echo_n "(cached) " >&6
21763 ac_check_lib_save_LIBS=$LIBS
21764 LIBS="-lpcreposix $LIBS"
21765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21766 /* end confdefs.h. */
21768 /* Override any GCC internal prototype to avoid an error.
21769 Use char because int might match the return type of a GCC
21770 builtin and then its argument prototype would still apply. */
21774 char pcreposix_regexec ();
21778 return pcreposix_regexec ();
21783 if ac_fn_c_try_link "$LINENO"; then :
21784 ac_cv_lib_pcreposix_pcreposix_regexec=yes
21786 ac_cv_lib_pcreposix_pcreposix_regexec=no
21788 rm -f core conftest.err conftest.$ac_objext \
21789 conftest$ac_exeext conftest.$ac_ext
21790 LIBS=$ac_check_lib_save_LIBS
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcreposix_pcreposix_regexec" >&5
21793 $as_echo "$ac_cv_lib_pcreposix_pcreposix_regexec" >&6; }
21794 if test "x$ac_cv_lib_pcreposix_pcreposix_regexec" = xyes; then :
21795 cat >>confdefs.h <<_ACEOF
21796 #define HAVE_LIBPCREPOSIX 1
21799 LIBS="-lpcreposix $LIBS"
21802 enable_pcreposix=no
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** falling back to other regex library ***" >&5
21804 $as_echo "$as_me: WARNING: *** falling back to other regex library ***" >&2;}
21809 if test "x$enable_pcreposix" != "xyes"; then
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system has GNU regex" >&5
21811 $as_echo_n "checking whether system has GNU regex... " >&6; }
21812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lc" >&5
21813 $as_echo_n "checking for regexec in -lc... " >&6; }
21814 if ${ac_cv_lib_c_regexec+:} false; then :
21815 $as_echo_n "(cached) " >&6
21817 ac_check_lib_save_LIBS=$LIBS
21819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21820 /* end confdefs.h. */
21822 /* Override any GCC internal prototype to avoid an error.
21823 Use char because int might match the return type of a GCC
21824 builtin and then its argument prototype would still apply. */
21837 if ac_fn_c_try_link "$LINENO"; then :
21838 ac_cv_lib_c_regexec=yes
21840 ac_cv_lib_c_regexec=no
21842 rm -f core conftest.err conftest.$ac_objext \
21843 conftest$ac_exeext conftest.$ac_ext
21844 LIBS=$ac_check_lib_save_LIBS
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_regexec" >&5
21847 $as_echo "$ac_cv_lib_c_regexec" >&6; }
21848 if test "x$ac_cv_lib_c_regexec" = xyes; then :
21850 $as_echo "#define HAVE_GNU_REGEX /**/" >>confdefs.h
21854 LIB_REGEX="regex.o"
21861 if test "${enable_nhrpd}" != "no";then
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CARES" >&5
21865 $as_echo_n "checking for CARES... " >&6; }
21867 if test -n "$CARES_CFLAGS"; then
21868 pkg_cv_CARES_CFLAGS="$CARES_CFLAGS"
21869 elif test -n "$PKG_CONFIG"; then
21870 if test -n "$PKG_CONFIG" && \
21871 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares\""; } >&5
21872 ($PKG_CONFIG --exists --print-errors "libcares") 2>&5
21874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21875 test $ac_status = 0; }; then
21876 pkg_cv_CARES_CFLAGS=`$PKG_CONFIG --cflags "libcares" 2>/dev/null`
21877 test "x$?" != "x0" && pkg_failed=yes
21884 if test -n "$CARES_LIBS"; then
21885 pkg_cv_CARES_LIBS="$CARES_LIBS"
21886 elif test -n "$PKG_CONFIG"; then
21887 if test -n "$PKG_CONFIG" && \
21888 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares\""; } >&5
21889 ($PKG_CONFIG --exists --print-errors "libcares") 2>&5
21891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21892 test $ac_status = 0; }; then
21893 pkg_cv_CARES_LIBS=`$PKG_CONFIG --libs "libcares" 2>/dev/null`
21894 test "x$?" != "x0" && pkg_failed=yes
21904 if test $pkg_failed = yes; then
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21906 $as_echo "no" >&6; }
21908 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21909 _pkg_short_errors_supported=yes
21911 _pkg_short_errors_supported=no
21913 if test $_pkg_short_errors_supported = yes; then
21914 CARES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcares" 2>&1`
21916 CARES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcares" 2>&1`
21918 # Put the nasty error message in config.log where it belongs
21919 echo "$CARES_PKG_ERRORS" >&5
21921 as_fn_error $? "Package requirements (libcares) were not met:
21925 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21926 installed software in a non-standard prefix.
21928 Alternatively, you may set the environment variables CARES_CFLAGS
21929 and CARES_LIBS to avoid the need to call pkg-config.
21930 See the pkg-config man page for more details." "$LINENO" 5
21931 elif test $pkg_failed = untried; then
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21933 $as_echo "no" >&6; }
21934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21936 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21937 is in your PATH or set the PKG_CONFIG environment variable to the full
21938 path to pkg-config.
21940 Alternatively, you may set the environment variables CARES_CFLAGS
21941 and CARES_LIBS to avoid the need to call pkg-config.
21942 See the pkg-config man page for more details.
21944 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21945 See \`config.log' for more details" "$LINENO" 5; }
21947 CARES_CFLAGS=$pkg_cv_CARES_CFLAGS
21948 CARES_LIBS=$pkg_cv_CARES_LIBS
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21950 $as_echo "yes" >&6; }
21956 if test "${enable_snmp}" != ""; then
21957 if test -n "$ac_tool_prefix"; then
21958 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
21959 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
21960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21961 $as_echo_n "checking for $ac_word... " >&6; }
21962 if ${ac_cv_path_NETSNMP_CONFIG+:} false; then :
21963 $as_echo_n "(cached) " >&6
21965 case $NETSNMP_CONFIG in
21967 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
21970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21971 for as_dir in $PATH
21974 test -z "$as_dir" && as_dir=.
21975 for ac_exec_ext in '' $ac_executable_extensions; do
21976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21977 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21988 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
21989 if test -n "$NETSNMP_CONFIG"; then
21990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSNMP_CONFIG" >&5
21991 $as_echo "$NETSNMP_CONFIG" >&6; }
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21994 $as_echo "no" >&6; }
21999 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
22000 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
22001 # Extract the first word of "net-snmp-config", so it can be a program name with args.
22002 set dummy net-snmp-config; ac_word=$2
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22004 $as_echo_n "checking for $ac_word... " >&6; }
22005 if ${ac_cv_path_ac_pt_NETSNMP_CONFIG+:} false; then :
22006 $as_echo_n "(cached) " >&6
22008 case $ac_pt_NETSNMP_CONFIG in
22010 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
22013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22014 for as_dir in $PATH
22017 test -z "$as_dir" && as_dir=.
22018 for ac_exec_ext in '' $ac_executable_extensions; do
22019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22020 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22031 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
22032 if test -n "$ac_pt_NETSNMP_CONFIG"; then
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_NETSNMP_CONFIG" >&5
22034 $as_echo "$ac_pt_NETSNMP_CONFIG" >&6; }
22036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22037 $as_echo "no" >&6; }
22040 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
22041 NETSNMP_CONFIG="no"
22043 case $cross_compiling:$ac_tool_warned in
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22047 ac_tool_warned=yes ;;
22049 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
22052 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
22055 if test x"$NETSNMP_CONFIG" = x"no"; then
22056 as_fn_error $? "--enable-snmp given but unable to find net-snmp-config" "$LINENO" 5
22058 LIBS="$LIBS `${NETSNMP_CONFIG} --agent-libs`"
22059 CFLAGS="`${NETSNMP_CONFIG} --base-cflags` $CFLAGS"
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link to Net-SNMP" >&5
22061 $as_echo_n "checking whether we can link to Net-SNMP... " >&6; }
22062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22063 /* end confdefs.h. */
22079 if ac_fn_c_try_link "$LINENO"; then :
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22081 $as_echo "yes" >&6; }
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22085 $as_echo "no" >&6; }
22086 as_fn_error $? "--enable-snmp given but not usable" "$LINENO" 5
22088 rm -f core conftest.err conftest.$ac_objext \
22089 conftest$ac_exeext conftest.$ac_ext
22091 $as_echo "#define HAVE_SNMP /**/" >>confdefs.h
22093 case "${enable_snmp}" in
22098 SNMP_METHOD="${enable_snmp}"
22101 as_fn_error $? "--enable-snmp given with an unknown method (${enable_snmp}). Use smux or agentx" "$LINENO" 5
22107 cat >>confdefs.h <<_ACEOF
22108 #define `$as_echo "SNMP_${SNMP_METHOD}" | $as_tr_cpp` /**/
22113 ac_fn_c_check_type "$LINENO" "struct sockaddr" "ac_cv_type_struct_sockaddr" "#ifdef SUNOS_5
22115 #define __EXTENSIONS__
22119 # include <stdlib.h>
22120 # include <stddef.h>
22123 # include <stdlib.h>
22126 #if HAVE_SYS_TYPES_H
22127 # include <sys/types.h>
22129 /* sys/conf.h depends on param.h on FBSD at least */
22130 #if HAVE_SYS_PARAM_H
22131 # include <sys/param.h>
22133 /* Required for MAXSIG */
22135 # include <signal.h>
22137 #if HAVE_SYS_SOCKET_H
22138 # include <sys/socket.h>
22141 # define __APPLE_USE_RFC_3542
22143 #if HAVE_NETINET_IN_H
22144 # include <netinet/in.h>
22146 #ifdef TIME_WITH_SYS_TIME
22147 # include <sys/time.h>
22150 # ifdef HAVE_SYS_TIME_H
22151 # include <sys/time.h>
22155 #endif /* TIME_WITH_SYS_TIME */
22158 # include <net/if.h>
22161 #if HAVE_NET_IF_VAR_H
22162 # include <net/if_var.h>
22166 # include <sys/un.h>
22168 #if HAVE_NETINET_IN_SYSTM_H
22169 # include <netinet/in_systm.h>
22171 #if HAVE_NETINET_IN_VAR_H
22172 # include <netinet/in_var.h>
22174 #if HAVE_NET_IF_DL_H
22175 # include <net/if_dl.h>
22177 #if HAVE_NET_NETOPT_H
22178 # include <net/netopt.h>
22180 #if HAVE_NET_ROUTE_H
22181 # include <net/route.h>
22184 # include <inet/nd.h>
22186 #if HAVE_ARPA_INET_H
22187 # include <arpa/inet.h>
22189 /* Required for IDRP */
22190 #if HAVE_NETINET_IP_ICMP_H
22191 # include <netinet/ip_icmp.h>
22194 #if HAVE_NETINET6_IN6_H
22195 #include <netinet6/in6.h>
22197 #if HAVE_NETINET_IN6_VAR_H
22198 #include <netinet/in6_var.h>
22200 #if HAVE_NETINET_ICMP6_H
22201 # include <netinet/icmp6.h>
22203 #if HAVE_NETINET6_IN6_VAR_H
22204 # include <netinet6/in6_var.h>
22206 #if HAVE_NETINET6_ND6_H
22207 # include <netinet6/nd6.h>
22211 if test "x$ac_cv_type_struct_sockaddr" = xyes; then :
22213 cat >>confdefs.h <<_ACEOF
22214 #define HAVE_STRUCT_SOCKADDR 1
22219 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#ifdef SUNOS_5
22221 #define __EXTENSIONS__
22225 # include <stdlib.h>
22226 # include <stddef.h>
22229 # include <stdlib.h>
22232 #if HAVE_SYS_TYPES_H
22233 # include <sys/types.h>
22235 /* sys/conf.h depends on param.h on FBSD at least */
22236 #if HAVE_SYS_PARAM_H
22237 # include <sys/param.h>
22239 /* Required for MAXSIG */
22241 # include <signal.h>
22243 #if HAVE_SYS_SOCKET_H
22244 # include <sys/socket.h>
22247 # define __APPLE_USE_RFC_3542
22249 #if HAVE_NETINET_IN_H
22250 # include <netinet/in.h>
22252 #ifdef TIME_WITH_SYS_TIME
22253 # include <sys/time.h>
22256 # ifdef HAVE_SYS_TIME_H
22257 # include <sys/time.h>
22261 #endif /* TIME_WITH_SYS_TIME */
22264 # include <net/if.h>
22267 #if HAVE_NET_IF_VAR_H
22268 # include <net/if_var.h>
22272 # include <sys/un.h>
22274 #if HAVE_NETINET_IN_SYSTM_H
22275 # include <netinet/in_systm.h>
22277 #if HAVE_NETINET_IN_VAR_H
22278 # include <netinet/in_var.h>
22280 #if HAVE_NET_IF_DL_H
22281 # include <net/if_dl.h>
22283 #if HAVE_NET_NETOPT_H
22284 # include <net/netopt.h>
22286 #if HAVE_NET_ROUTE_H
22287 # include <net/route.h>
22290 # include <inet/nd.h>
22292 #if HAVE_ARPA_INET_H
22293 # include <arpa/inet.h>
22295 /* Required for IDRP */
22296 #if HAVE_NETINET_IP_ICMP_H
22297 # include <netinet/ip_icmp.h>
22300 #if HAVE_NETINET6_IN6_H
22301 #include <netinet6/in6.h>
22303 #if HAVE_NETINET_IN6_VAR_H
22304 #include <netinet/in6_var.h>
22306 #if HAVE_NETINET_ICMP6_H
22307 # include <netinet/icmp6.h>
22309 #if HAVE_NETINET6_IN6_VAR_H
22310 # include <netinet6/in6_var.h>
22312 #if HAVE_NETINET6_ND6_H
22313 # include <netinet6/nd6.h>
22317 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
22319 cat >>confdefs.h <<_ACEOF
22320 #define HAVE_STRUCT_SOCKADDR_IN 1
22325 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#ifdef SUNOS_5
22327 #define __EXTENSIONS__
22331 # include <stdlib.h>
22332 # include <stddef.h>
22335 # include <stdlib.h>
22338 #if HAVE_SYS_TYPES_H
22339 # include <sys/types.h>
22341 /* sys/conf.h depends on param.h on FBSD at least */
22342 #if HAVE_SYS_PARAM_H
22343 # include <sys/param.h>
22345 /* Required for MAXSIG */
22347 # include <signal.h>
22349 #if HAVE_SYS_SOCKET_H
22350 # include <sys/socket.h>
22353 # define __APPLE_USE_RFC_3542
22355 #if HAVE_NETINET_IN_H
22356 # include <netinet/in.h>
22358 #ifdef TIME_WITH_SYS_TIME
22359 # include <sys/time.h>
22362 # ifdef HAVE_SYS_TIME_H
22363 # include <sys/time.h>
22367 #endif /* TIME_WITH_SYS_TIME */
22370 # include <net/if.h>
22373 #if HAVE_NET_IF_VAR_H
22374 # include <net/if_var.h>
22378 # include <sys/un.h>
22380 #if HAVE_NETINET_IN_SYSTM_H
22381 # include <netinet/in_systm.h>
22383 #if HAVE_NETINET_IN_VAR_H
22384 # include <netinet/in_var.h>
22386 #if HAVE_NET_IF_DL_H
22387 # include <net/if_dl.h>
22389 #if HAVE_NET_NETOPT_H
22390 # include <net/netopt.h>
22392 #if HAVE_NET_ROUTE_H
22393 # include <net/route.h>
22396 # include <inet/nd.h>
22398 #if HAVE_ARPA_INET_H
22399 # include <arpa/inet.h>
22401 /* Required for IDRP */
22402 #if HAVE_NETINET_IP_ICMP_H
22403 # include <netinet/ip_icmp.h>
22406 #if HAVE_NETINET6_IN6_H
22407 #include <netinet6/in6.h>
22409 #if HAVE_NETINET_IN6_VAR_H
22410 #include <netinet/in6_var.h>
22412 #if HAVE_NETINET_ICMP6_H
22413 # include <netinet/icmp6.h>
22415 #if HAVE_NETINET6_IN6_VAR_H
22416 # include <netinet6/in6_var.h>
22418 #if HAVE_NETINET6_ND6_H
22419 # include <netinet6/nd6.h>
22423 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
22425 cat >>confdefs.h <<_ACEOF
22426 #define HAVE_STRUCT_SOCKADDR_IN6 1
22431 ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#ifdef SUNOS_5
22433 #define __EXTENSIONS__
22437 # include <stdlib.h>
22438 # include <stddef.h>
22441 # include <stdlib.h>
22444 #if HAVE_SYS_TYPES_H
22445 # include <sys/types.h>
22447 /* sys/conf.h depends on param.h on FBSD at least */
22448 #if HAVE_SYS_PARAM_H
22449 # include <sys/param.h>
22451 /* Required for MAXSIG */
22453 # include <signal.h>
22455 #if HAVE_SYS_SOCKET_H
22456 # include <sys/socket.h>
22459 # define __APPLE_USE_RFC_3542
22461 #if HAVE_NETINET_IN_H
22462 # include <netinet/in.h>
22464 #ifdef TIME_WITH_SYS_TIME
22465 # include <sys/time.h>
22468 # ifdef HAVE_SYS_TIME_H
22469 # include <sys/time.h>
22473 #endif /* TIME_WITH_SYS_TIME */
22476 # include <net/if.h>
22479 #if HAVE_NET_IF_VAR_H
22480 # include <net/if_var.h>
22484 # include <sys/un.h>
22486 #if HAVE_NETINET_IN_SYSTM_H
22487 # include <netinet/in_systm.h>
22489 #if HAVE_NETINET_IN_VAR_H
22490 # include <netinet/in_var.h>
22492 #if HAVE_NET_IF_DL_H
22493 # include <net/if_dl.h>
22495 #if HAVE_NET_NETOPT_H
22496 # include <net/netopt.h>
22498 #if HAVE_NET_ROUTE_H
22499 # include <net/route.h>
22502 # include <inet/nd.h>
22504 #if HAVE_ARPA_INET_H
22505 # include <arpa/inet.h>
22507 /* Required for IDRP */
22508 #if HAVE_NETINET_IP_ICMP_H
22509 # include <netinet/ip_icmp.h>
22512 #if HAVE_NETINET6_IN6_H
22513 #include <netinet6/in6.h>
22515 #if HAVE_NETINET_IN6_VAR_H
22516 #include <netinet/in6_var.h>
22518 #if HAVE_NETINET_ICMP6_H
22519 # include <netinet/icmp6.h>
22521 #if HAVE_NETINET6_IN6_VAR_H
22522 # include <netinet6/in6_var.h>
22524 #if HAVE_NETINET6_ND6_H
22525 # include <netinet6/nd6.h>
22529 if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then :
22531 cat >>confdefs.h <<_ACEOF
22532 #define HAVE_STRUCT_SOCKADDR_UN 1
22537 ac_fn_c_check_type "$LINENO" "struct sockaddr_dl" "ac_cv_type_struct_sockaddr_dl" "#ifdef SUNOS_5
22539 #define __EXTENSIONS__
22543 # include <stdlib.h>
22544 # include <stddef.h>
22547 # include <stdlib.h>
22550 #if HAVE_SYS_TYPES_H
22551 # include <sys/types.h>
22553 /* sys/conf.h depends on param.h on FBSD at least */
22554 #if HAVE_SYS_PARAM_H
22555 # include <sys/param.h>
22557 /* Required for MAXSIG */
22559 # include <signal.h>
22561 #if HAVE_SYS_SOCKET_H
22562 # include <sys/socket.h>
22565 # define __APPLE_USE_RFC_3542
22567 #if HAVE_NETINET_IN_H
22568 # include <netinet/in.h>
22570 #ifdef TIME_WITH_SYS_TIME
22571 # include <sys/time.h>
22574 # ifdef HAVE_SYS_TIME_H
22575 # include <sys/time.h>
22579 #endif /* TIME_WITH_SYS_TIME */
22582 # include <net/if.h>
22585 #if HAVE_NET_IF_VAR_H
22586 # include <net/if_var.h>
22590 # include <sys/un.h>
22592 #if HAVE_NETINET_IN_SYSTM_H
22593 # include <netinet/in_systm.h>
22595 #if HAVE_NETINET_IN_VAR_H
22596 # include <netinet/in_var.h>
22598 #if HAVE_NET_IF_DL_H
22599 # include <net/if_dl.h>
22601 #if HAVE_NET_NETOPT_H
22602 # include <net/netopt.h>
22604 #if HAVE_NET_ROUTE_H
22605 # include <net/route.h>
22608 # include <inet/nd.h>
22610 #if HAVE_ARPA_INET_H
22611 # include <arpa/inet.h>
22613 /* Required for IDRP */
22614 #if HAVE_NETINET_IP_ICMP_H
22615 # include <netinet/ip_icmp.h>
22618 #if HAVE_NETINET6_IN6_H
22619 #include <netinet6/in6.h>
22621 #if HAVE_NETINET_IN6_VAR_H
22622 #include <netinet/in6_var.h>
22624 #if HAVE_NETINET_ICMP6_H
22625 # include <netinet/icmp6.h>
22627 #if HAVE_NETINET6_IN6_VAR_H
22628 # include <netinet6/in6_var.h>
22630 #if HAVE_NETINET6_ND6_H
22631 # include <netinet6/nd6.h>
22635 if test "x$ac_cv_type_struct_sockaddr_dl" = xyes; then :
22637 cat >>confdefs.h <<_ACEOF
22638 #define HAVE_STRUCT_SOCKADDR_DL 1
22643 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#ifdef SUNOS_5
22645 #define __EXTENSIONS__
22649 # include <stdlib.h>
22650 # include <stddef.h>
22653 # include <stdlib.h>
22656 #if HAVE_SYS_TYPES_H
22657 # include <sys/types.h>
22659 /* sys/conf.h depends on param.h on FBSD at least */
22660 #if HAVE_SYS_PARAM_H
22661 # include <sys/param.h>
22663 /* Required for MAXSIG */
22665 # include <signal.h>
22667 #if HAVE_SYS_SOCKET_H
22668 # include <sys/socket.h>
22671 # define __APPLE_USE_RFC_3542
22673 #if HAVE_NETINET_IN_H
22674 # include <netinet/in.h>
22676 #ifdef TIME_WITH_SYS_TIME
22677 # include <sys/time.h>
22680 # ifdef HAVE_SYS_TIME_H
22681 # include <sys/time.h>
22685 #endif /* TIME_WITH_SYS_TIME */
22688 # include <net/if.h>
22691 #if HAVE_NET_IF_VAR_H
22692 # include <net/if_var.h>
22696 # include <sys/un.h>
22698 #if HAVE_NETINET_IN_SYSTM_H
22699 # include <netinet/in_systm.h>
22701 #if HAVE_NETINET_IN_VAR_H
22702 # include <netinet/in_var.h>
22704 #if HAVE_NET_IF_DL_H
22705 # include <net/if_dl.h>
22707 #if HAVE_NET_NETOPT_H
22708 # include <net/netopt.h>
22710 #if HAVE_NET_ROUTE_H
22711 # include <net/route.h>
22714 # include <inet/nd.h>
22716 #if HAVE_ARPA_INET_H
22717 # include <arpa/inet.h>
22719 /* Required for IDRP */
22720 #if HAVE_NETINET_IP_ICMP_H
22721 # include <netinet/ip_icmp.h>
22724 #if HAVE_NETINET6_IN6_H
22725 #include <netinet6/in6.h>
22727 #if HAVE_NETINET_IN6_VAR_H
22728 #include <netinet/in6_var.h>
22730 #if HAVE_NETINET_ICMP6_H
22731 # include <netinet/icmp6.h>
22733 #if HAVE_NETINET6_IN6_VAR_H
22734 # include <netinet6/in6_var.h>
22736 #if HAVE_NETINET6_ND6_H
22737 # include <netinet6/nd6.h>
22741 if test "x$ac_cv_type_socklen_t" = xyes; then :
22743 cat >>confdefs.h <<_ACEOF
22744 #define HAVE_SOCKLEN_T 1
22749 ac_fn_c_check_type "$LINENO" "struct vifctl" "ac_cv_type_struct_vifctl" "#ifdef SUNOS_5
22751 #define __EXTENSIONS__
22755 # include <stdlib.h>
22756 # include <stddef.h>
22759 # include <stdlib.h>
22762 #if HAVE_SYS_TYPES_H
22763 # include <sys/types.h>
22765 /* sys/conf.h depends on param.h on FBSD at least */
22766 #if HAVE_SYS_PARAM_H
22767 # include <sys/param.h>
22769 /* Required for MAXSIG */
22771 # include <signal.h>
22773 #if HAVE_SYS_SOCKET_H
22774 # include <sys/socket.h>
22777 # define __APPLE_USE_RFC_3542
22779 #if HAVE_NETINET_IN_H
22780 # include <netinet/in.h>
22782 #ifdef TIME_WITH_SYS_TIME
22783 # include <sys/time.h>
22786 # ifdef HAVE_SYS_TIME_H
22787 # include <sys/time.h>
22791 #endif /* TIME_WITH_SYS_TIME */
22794 # include <net/if.h>
22797 #if HAVE_NET_IF_VAR_H
22798 # include <net/if_var.h>
22802 # include <sys/un.h>
22804 #if HAVE_NETINET_IN_SYSTM_H
22805 # include <netinet/in_systm.h>
22807 #if HAVE_NETINET_IN_VAR_H
22808 # include <netinet/in_var.h>
22810 #if HAVE_NET_IF_DL_H
22811 # include <net/if_dl.h>
22813 #if HAVE_NET_NETOPT_H
22814 # include <net/netopt.h>
22816 #if HAVE_NET_ROUTE_H
22817 # include <net/route.h>
22820 # include <inet/nd.h>
22822 #if HAVE_ARPA_INET_H
22823 # include <arpa/inet.h>
22825 /* Required for IDRP */
22826 #if HAVE_NETINET_IP_ICMP_H
22827 # include <netinet/ip_icmp.h>
22830 #if HAVE_NETINET6_IN6_H
22831 #include <netinet6/in6.h>
22833 #if HAVE_NETINET_IN6_VAR_H
22834 #include <netinet/in6_var.h>
22836 #if HAVE_NETINET_ICMP6_H
22837 # include <netinet/icmp6.h>
22839 #if HAVE_NETINET6_IN6_VAR_H
22840 # include <netinet6/in6_var.h>
22842 #if HAVE_NETINET6_ND6_H
22843 # include <netinet6/nd6.h>
22847 if test "x$ac_cv_type_struct_vifctl" = xyes; then :
22849 cat >>confdefs.h <<_ACEOF
22850 #define HAVE_STRUCT_VIFCTL 1
22855 ac_fn_c_check_type "$LINENO" "struct mfcctl" "ac_cv_type_struct_mfcctl" "#ifdef SUNOS_5
22857 #define __EXTENSIONS__
22861 # include <stdlib.h>
22862 # include <stddef.h>
22865 # include <stdlib.h>
22868 #if HAVE_SYS_TYPES_H
22869 # include <sys/types.h>
22871 /* sys/conf.h depends on param.h on FBSD at least */
22872 #if HAVE_SYS_PARAM_H
22873 # include <sys/param.h>
22875 /* Required for MAXSIG */
22877 # include <signal.h>
22879 #if HAVE_SYS_SOCKET_H
22880 # include <sys/socket.h>
22883 # define __APPLE_USE_RFC_3542
22885 #if HAVE_NETINET_IN_H
22886 # include <netinet/in.h>
22888 #ifdef TIME_WITH_SYS_TIME
22889 # include <sys/time.h>
22892 # ifdef HAVE_SYS_TIME_H
22893 # include <sys/time.h>
22897 #endif /* TIME_WITH_SYS_TIME */
22900 # include <net/if.h>
22903 #if HAVE_NET_IF_VAR_H
22904 # include <net/if_var.h>
22908 # include <sys/un.h>
22910 #if HAVE_NETINET_IN_SYSTM_H
22911 # include <netinet/in_systm.h>
22913 #if HAVE_NETINET_IN_VAR_H
22914 # include <netinet/in_var.h>
22916 #if HAVE_NET_IF_DL_H
22917 # include <net/if_dl.h>
22919 #if HAVE_NET_NETOPT_H
22920 # include <net/netopt.h>
22922 #if HAVE_NET_ROUTE_H
22923 # include <net/route.h>
22926 # include <inet/nd.h>
22928 #if HAVE_ARPA_INET_H
22929 # include <arpa/inet.h>
22931 /* Required for IDRP */
22932 #if HAVE_NETINET_IP_ICMP_H
22933 # include <netinet/ip_icmp.h>
22936 #if HAVE_NETINET6_IN6_H
22937 #include <netinet6/in6.h>
22939 #if HAVE_NETINET_IN6_VAR_H
22940 #include <netinet/in6_var.h>
22942 #if HAVE_NETINET_ICMP6_H
22943 # include <netinet/icmp6.h>
22945 #if HAVE_NETINET6_IN6_VAR_H
22946 # include <netinet6/in6_var.h>
22948 #if HAVE_NETINET6_ND6_H
22949 # include <netinet6/nd6.h>
22953 if test "x$ac_cv_type_struct_mfcctl" = xyes; then :
22955 cat >>confdefs.h <<_ACEOF
22956 #define HAVE_STRUCT_MFCCTL 1
22961 ac_fn_c_check_type "$LINENO" "struct sioc_sg_req" "ac_cv_type_struct_sioc_sg_req" "#ifdef SUNOS_5
22963 #define __EXTENSIONS__
22967 # include <stdlib.h>
22968 # include <stddef.h>
22971 # include <stdlib.h>
22974 #if HAVE_SYS_TYPES_H
22975 # include <sys/types.h>
22977 /* sys/conf.h depends on param.h on FBSD at least */
22978 #if HAVE_SYS_PARAM_H
22979 # include <sys/param.h>
22981 /* Required for MAXSIG */
22983 # include <signal.h>
22985 #if HAVE_SYS_SOCKET_H
22986 # include <sys/socket.h>
22989 # define __APPLE_USE_RFC_3542
22991 #if HAVE_NETINET_IN_H
22992 # include <netinet/in.h>
22994 #ifdef TIME_WITH_SYS_TIME
22995 # include <sys/time.h>
22998 # ifdef HAVE_SYS_TIME_H
22999 # include <sys/time.h>
23003 #endif /* TIME_WITH_SYS_TIME */
23006 # include <net/if.h>
23009 #if HAVE_NET_IF_VAR_H
23010 # include <net/if_var.h>
23014 # include <sys/un.h>
23016 #if HAVE_NETINET_IN_SYSTM_H
23017 # include <netinet/in_systm.h>
23019 #if HAVE_NETINET_IN_VAR_H
23020 # include <netinet/in_var.h>
23022 #if HAVE_NET_IF_DL_H
23023 # include <net/if_dl.h>
23025 #if HAVE_NET_NETOPT_H
23026 # include <net/netopt.h>
23028 #if HAVE_NET_ROUTE_H
23029 # include <net/route.h>
23032 # include <inet/nd.h>
23034 #if HAVE_ARPA_INET_H
23035 # include <arpa/inet.h>
23037 /* Required for IDRP */
23038 #if HAVE_NETINET_IP_ICMP_H
23039 # include <netinet/ip_icmp.h>
23042 #if HAVE_NETINET6_IN6_H
23043 #include <netinet6/in6.h>
23045 #if HAVE_NETINET_IN6_VAR_H
23046 #include <netinet/in6_var.h>
23048 #if HAVE_NETINET_ICMP6_H
23049 # include <netinet/icmp6.h>
23051 #if HAVE_NETINET6_IN6_VAR_H
23052 # include <netinet6/in6_var.h>
23054 #if HAVE_NETINET6_ND6_H
23055 # include <netinet6/nd6.h>
23059 if test "x$ac_cv_type_struct_sioc_sg_req" = xyes; then :
23061 cat >>confdefs.h <<_ACEOF
23062 #define HAVE_STRUCT_SIOC_SG_REQ 1
23067 ac_fn_c_check_type "$LINENO" "vifi_t" "ac_cv_type_vifi_t" "#ifdef SUNOS_5
23069 #define __EXTENSIONS__
23073 # include <stdlib.h>
23074 # include <stddef.h>
23077 # include <stdlib.h>
23080 #if HAVE_SYS_TYPES_H
23081 # include <sys/types.h>
23083 /* sys/conf.h depends on param.h on FBSD at least */
23084 #if HAVE_SYS_PARAM_H
23085 # include <sys/param.h>
23087 /* Required for MAXSIG */
23089 # include <signal.h>
23091 #if HAVE_SYS_SOCKET_H
23092 # include <sys/socket.h>
23095 # define __APPLE_USE_RFC_3542
23097 #if HAVE_NETINET_IN_H
23098 # include <netinet/in.h>
23100 #ifdef TIME_WITH_SYS_TIME
23101 # include <sys/time.h>
23104 # ifdef HAVE_SYS_TIME_H
23105 # include <sys/time.h>
23109 #endif /* TIME_WITH_SYS_TIME */
23112 # include <net/if.h>
23115 #if HAVE_NET_IF_VAR_H
23116 # include <net/if_var.h>
23120 # include <sys/un.h>
23122 #if HAVE_NETINET_IN_SYSTM_H
23123 # include <netinet/in_systm.h>
23125 #if HAVE_NETINET_IN_VAR_H
23126 # include <netinet/in_var.h>
23128 #if HAVE_NET_IF_DL_H
23129 # include <net/if_dl.h>
23131 #if HAVE_NET_NETOPT_H
23132 # include <net/netopt.h>
23134 #if HAVE_NET_ROUTE_H
23135 # include <net/route.h>
23138 # include <inet/nd.h>
23140 #if HAVE_ARPA_INET_H
23141 # include <arpa/inet.h>
23143 /* Required for IDRP */
23144 #if HAVE_NETINET_IP_ICMP_H
23145 # include <netinet/ip_icmp.h>
23148 #if HAVE_NETINET6_IN6_H
23149 #include <netinet6/in6.h>
23151 #if HAVE_NETINET_IN6_VAR_H
23152 #include <netinet/in6_var.h>
23154 #if HAVE_NETINET_ICMP6_H
23155 # include <netinet/icmp6.h>
23157 #if HAVE_NETINET6_IN6_VAR_H
23158 # include <netinet6/in6_var.h>
23160 #if HAVE_NETINET6_ND6_H
23161 # include <netinet6/nd6.h>
23165 if test "x$ac_cv_type_vifi_t" = xyes; then :
23167 cat >>confdefs.h <<_ACEOF
23168 #define HAVE_VIFI_T 1
23173 ac_fn_c_check_type "$LINENO" "struct sioc_vif_req" "ac_cv_type_struct_sioc_vif_req" "#ifdef SUNOS_5
23175 #define __EXTENSIONS__
23179 # include <stdlib.h>
23180 # include <stddef.h>
23183 # include <stdlib.h>
23186 #if HAVE_SYS_TYPES_H
23187 # include <sys/types.h>
23189 /* sys/conf.h depends on param.h on FBSD at least */
23190 #if HAVE_SYS_PARAM_H
23191 # include <sys/param.h>
23193 /* Required for MAXSIG */
23195 # include <signal.h>
23197 #if HAVE_SYS_SOCKET_H
23198 # include <sys/socket.h>
23201 # define __APPLE_USE_RFC_3542
23203 #if HAVE_NETINET_IN_H
23204 # include <netinet/in.h>
23206 #ifdef TIME_WITH_SYS_TIME
23207 # include <sys/time.h>
23210 # ifdef HAVE_SYS_TIME_H
23211 # include <sys/time.h>
23215 #endif /* TIME_WITH_SYS_TIME */
23218 # include <net/if.h>
23221 #if HAVE_NET_IF_VAR_H
23222 # include <net/if_var.h>
23226 # include <sys/un.h>
23228 #if HAVE_NETINET_IN_SYSTM_H
23229 # include <netinet/in_systm.h>
23231 #if HAVE_NETINET_IN_VAR_H
23232 # include <netinet/in_var.h>
23234 #if HAVE_NET_IF_DL_H
23235 # include <net/if_dl.h>
23237 #if HAVE_NET_NETOPT_H
23238 # include <net/netopt.h>
23240 #if HAVE_NET_ROUTE_H
23241 # include <net/route.h>
23244 # include <inet/nd.h>
23246 #if HAVE_ARPA_INET_H
23247 # include <arpa/inet.h>
23249 /* Required for IDRP */
23250 #if HAVE_NETINET_IP_ICMP_H
23251 # include <netinet/ip_icmp.h>
23254 #if HAVE_NETINET6_IN6_H
23255 #include <netinet6/in6.h>
23257 #if HAVE_NETINET_IN6_VAR_H
23258 #include <netinet/in6_var.h>
23260 #if HAVE_NETINET_ICMP6_H
23261 # include <netinet/icmp6.h>
23263 #if HAVE_NETINET6_IN6_VAR_H
23264 # include <netinet6/in6_var.h>
23266 #if HAVE_NETINET6_ND6_H
23267 # include <netinet6/nd6.h>
23271 if test "x$ac_cv_type_struct_sioc_vif_req" = xyes; then :
23273 cat >>confdefs.h <<_ACEOF
23274 #define HAVE_STRUCT_SIOC_VIF_REQ 1
23279 ac_fn_c_check_type "$LINENO" "struct igmpmsg" "ac_cv_type_struct_igmpmsg" "#ifdef SUNOS_5
23281 #define __EXTENSIONS__
23285 # include <stdlib.h>
23286 # include <stddef.h>
23289 # include <stdlib.h>
23292 #if HAVE_SYS_TYPES_H
23293 # include <sys/types.h>
23295 /* sys/conf.h depends on param.h on FBSD at least */
23296 #if HAVE_SYS_PARAM_H
23297 # include <sys/param.h>
23299 /* Required for MAXSIG */
23301 # include <signal.h>
23303 #if HAVE_SYS_SOCKET_H
23304 # include <sys/socket.h>
23307 # define __APPLE_USE_RFC_3542
23309 #if HAVE_NETINET_IN_H
23310 # include <netinet/in.h>
23312 #ifdef TIME_WITH_SYS_TIME
23313 # include <sys/time.h>
23316 # ifdef HAVE_SYS_TIME_H
23317 # include <sys/time.h>
23321 #endif /* TIME_WITH_SYS_TIME */
23324 # include <net/if.h>
23327 #if HAVE_NET_IF_VAR_H
23328 # include <net/if_var.h>
23332 # include <sys/un.h>
23334 #if HAVE_NETINET_IN_SYSTM_H
23335 # include <netinet/in_systm.h>
23337 #if HAVE_NETINET_IN_VAR_H
23338 # include <netinet/in_var.h>
23340 #if HAVE_NET_IF_DL_H
23341 # include <net/if_dl.h>
23343 #if HAVE_NET_NETOPT_H
23344 # include <net/netopt.h>
23346 #if HAVE_NET_ROUTE_H
23347 # include <net/route.h>
23350 # include <inet/nd.h>
23352 #if HAVE_ARPA_INET_H
23353 # include <arpa/inet.h>
23355 /* Required for IDRP */
23356 #if HAVE_NETINET_IP_ICMP_H
23357 # include <netinet/ip_icmp.h>
23360 #if HAVE_NETINET6_IN6_H
23361 #include <netinet6/in6.h>
23363 #if HAVE_NETINET_IN6_VAR_H
23364 #include <netinet/in6_var.h>
23366 #if HAVE_NETINET_ICMP6_H
23367 # include <netinet/icmp6.h>
23369 #if HAVE_NETINET6_IN6_VAR_H
23370 # include <netinet6/in6_var.h>
23372 #if HAVE_NETINET6_ND6_H
23373 # include <netinet6/nd6.h>
23377 if test "x$ac_cv_type_struct_igmpmsg" = xyes; then :
23379 cat >>confdefs.h <<_ACEOF
23380 #define HAVE_STRUCT_IGMPMSG 1
23385 ac_fn_c_check_type "$LINENO" "struct ifaliasreq" "ac_cv_type_struct_ifaliasreq" "#ifdef SUNOS_5
23387 #define __EXTENSIONS__
23391 # include <stdlib.h>
23392 # include <stddef.h>
23395 # include <stdlib.h>
23398 #if HAVE_SYS_TYPES_H
23399 # include <sys/types.h>
23401 /* sys/conf.h depends on param.h on FBSD at least */
23402 #if HAVE_SYS_PARAM_H
23403 # include <sys/param.h>
23405 /* Required for MAXSIG */
23407 # include <signal.h>
23409 #if HAVE_SYS_SOCKET_H
23410 # include <sys/socket.h>
23413 # define __APPLE_USE_RFC_3542
23415 #if HAVE_NETINET_IN_H
23416 # include <netinet/in.h>
23418 #ifdef TIME_WITH_SYS_TIME
23419 # include <sys/time.h>
23422 # ifdef HAVE_SYS_TIME_H
23423 # include <sys/time.h>
23427 #endif /* TIME_WITH_SYS_TIME */
23430 # include <net/if.h>
23433 #if HAVE_NET_IF_VAR_H
23434 # include <net/if_var.h>
23438 # include <sys/un.h>
23440 #if HAVE_NETINET_IN_SYSTM_H
23441 # include <netinet/in_systm.h>
23443 #if HAVE_NETINET_IN_VAR_H
23444 # include <netinet/in_var.h>
23446 #if HAVE_NET_IF_DL_H
23447 # include <net/if_dl.h>
23449 #if HAVE_NET_NETOPT_H
23450 # include <net/netopt.h>
23452 #if HAVE_NET_ROUTE_H
23453 # include <net/route.h>
23456 # include <inet/nd.h>
23458 #if HAVE_ARPA_INET_H
23459 # include <arpa/inet.h>
23461 /* Required for IDRP */
23462 #if HAVE_NETINET_IP_ICMP_H
23463 # include <netinet/ip_icmp.h>
23466 #if HAVE_NETINET6_IN6_H
23467 #include <netinet6/in6.h>
23469 #if HAVE_NETINET_IN6_VAR_H
23470 #include <netinet/in6_var.h>
23472 #if HAVE_NETINET_ICMP6_H
23473 # include <netinet/icmp6.h>
23475 #if HAVE_NETINET6_IN6_VAR_H
23476 # include <netinet6/in6_var.h>
23478 #if HAVE_NETINET6_ND6_H
23479 # include <netinet6/nd6.h>
23483 if test "x$ac_cv_type_struct_ifaliasreq" = xyes; then :
23485 cat >>confdefs.h <<_ACEOF
23486 #define HAVE_STRUCT_IFALIASREQ 1
23491 ac_fn_c_check_type "$LINENO" "struct if6_aliasreq" "ac_cv_type_struct_if6_aliasreq" "#ifdef SUNOS_5
23493 #define __EXTENSIONS__
23497 # include <stdlib.h>
23498 # include <stddef.h>
23501 # include <stdlib.h>
23504 #if HAVE_SYS_TYPES_H
23505 # include <sys/types.h>
23507 /* sys/conf.h depends on param.h on FBSD at least */
23508 #if HAVE_SYS_PARAM_H
23509 # include <sys/param.h>
23511 /* Required for MAXSIG */
23513 # include <signal.h>
23515 #if HAVE_SYS_SOCKET_H
23516 # include <sys/socket.h>
23519 # define __APPLE_USE_RFC_3542
23521 #if HAVE_NETINET_IN_H
23522 # include <netinet/in.h>
23524 #ifdef TIME_WITH_SYS_TIME
23525 # include <sys/time.h>
23528 # ifdef HAVE_SYS_TIME_H
23529 # include <sys/time.h>
23533 #endif /* TIME_WITH_SYS_TIME */
23536 # include <net/if.h>
23539 #if HAVE_NET_IF_VAR_H
23540 # include <net/if_var.h>
23544 # include <sys/un.h>
23546 #if HAVE_NETINET_IN_SYSTM_H
23547 # include <netinet/in_systm.h>
23549 #if HAVE_NETINET_IN_VAR_H
23550 # include <netinet/in_var.h>
23552 #if HAVE_NET_IF_DL_H
23553 # include <net/if_dl.h>
23555 #if HAVE_NET_NETOPT_H
23556 # include <net/netopt.h>
23558 #if HAVE_NET_ROUTE_H
23559 # include <net/route.h>
23562 # include <inet/nd.h>
23564 #if HAVE_ARPA_INET_H
23565 # include <arpa/inet.h>
23567 /* Required for IDRP */
23568 #if HAVE_NETINET_IP_ICMP_H
23569 # include <netinet/ip_icmp.h>
23572 #if HAVE_NETINET6_IN6_H
23573 #include <netinet6/in6.h>
23575 #if HAVE_NETINET_IN6_VAR_H
23576 #include <netinet/in6_var.h>
23578 #if HAVE_NETINET_ICMP6_H
23579 # include <netinet/icmp6.h>
23581 #if HAVE_NETINET6_IN6_VAR_H
23582 # include <netinet6/in6_var.h>
23584 #if HAVE_NETINET6_ND6_H
23585 # include <netinet6/nd6.h>
23589 if test "x$ac_cv_type_struct_if6_aliasreq" = xyes; then :
23591 cat >>confdefs.h <<_ACEOF
23592 #define HAVE_STRUCT_IF6_ALIASREQ 1
23597 ac_fn_c_check_type "$LINENO" "struct in6_aliasreq" "ac_cv_type_struct_in6_aliasreq" "#ifdef SUNOS_5
23599 #define __EXTENSIONS__
23603 # include <stdlib.h>
23604 # include <stddef.h>
23607 # include <stdlib.h>
23610 #if HAVE_SYS_TYPES_H
23611 # include <sys/types.h>
23613 /* sys/conf.h depends on param.h on FBSD at least */
23614 #if HAVE_SYS_PARAM_H
23615 # include <sys/param.h>
23617 /* Required for MAXSIG */
23619 # include <signal.h>
23621 #if HAVE_SYS_SOCKET_H
23622 # include <sys/socket.h>
23625 # define __APPLE_USE_RFC_3542
23627 #if HAVE_NETINET_IN_H
23628 # include <netinet/in.h>
23630 #ifdef TIME_WITH_SYS_TIME
23631 # include <sys/time.h>
23634 # ifdef HAVE_SYS_TIME_H
23635 # include <sys/time.h>
23639 #endif /* TIME_WITH_SYS_TIME */
23642 # include <net/if.h>
23645 #if HAVE_NET_IF_VAR_H
23646 # include <net/if_var.h>
23650 # include <sys/un.h>
23652 #if HAVE_NETINET_IN_SYSTM_H
23653 # include <netinet/in_systm.h>
23655 #if HAVE_NETINET_IN_VAR_H
23656 # include <netinet/in_var.h>
23658 #if HAVE_NET_IF_DL_H
23659 # include <net/if_dl.h>
23661 #if HAVE_NET_NETOPT_H
23662 # include <net/netopt.h>
23664 #if HAVE_NET_ROUTE_H
23665 # include <net/route.h>
23668 # include <inet/nd.h>
23670 #if HAVE_ARPA_INET_H
23671 # include <arpa/inet.h>
23673 /* Required for IDRP */
23674 #if HAVE_NETINET_IP_ICMP_H
23675 # include <netinet/ip_icmp.h>
23678 #if HAVE_NETINET6_IN6_H
23679 #include <netinet6/in6.h>
23681 #if HAVE_NETINET_IN6_VAR_H
23682 #include <netinet/in6_var.h>
23684 #if HAVE_NETINET_ICMP6_H
23685 # include <netinet/icmp6.h>
23687 #if HAVE_NETINET6_IN6_VAR_H
23688 # include <netinet6/in6_var.h>
23690 #if HAVE_NETINET6_ND6_H
23691 # include <netinet6/nd6.h>
23695 if test "x$ac_cv_type_struct_in6_aliasreq" = xyes; then :
23697 cat >>confdefs.h <<_ACEOF
23698 #define HAVE_STRUCT_IN6_ALIASREQ 1
23703 ac_fn_c_check_type "$LINENO" "struct nd_opt_adv_interval" "ac_cv_type_struct_nd_opt_adv_interval" "#ifdef SUNOS_5
23705 #define __EXTENSIONS__
23709 # include <stdlib.h>
23710 # include <stddef.h>
23713 # include <stdlib.h>
23716 #if HAVE_SYS_TYPES_H
23717 # include <sys/types.h>
23719 /* sys/conf.h depends on param.h on FBSD at least */
23720 #if HAVE_SYS_PARAM_H
23721 # include <sys/param.h>
23723 /* Required for MAXSIG */
23725 # include <signal.h>
23727 #if HAVE_SYS_SOCKET_H
23728 # include <sys/socket.h>
23731 # define __APPLE_USE_RFC_3542
23733 #if HAVE_NETINET_IN_H
23734 # include <netinet/in.h>
23736 #ifdef TIME_WITH_SYS_TIME
23737 # include <sys/time.h>
23740 # ifdef HAVE_SYS_TIME_H
23741 # include <sys/time.h>
23745 #endif /* TIME_WITH_SYS_TIME */
23748 # include <net/if.h>
23751 #if HAVE_NET_IF_VAR_H
23752 # include <net/if_var.h>
23756 # include <sys/un.h>
23758 #if HAVE_NETINET_IN_SYSTM_H
23759 # include <netinet/in_systm.h>
23761 #if HAVE_NETINET_IN_VAR_H
23762 # include <netinet/in_var.h>
23764 #if HAVE_NET_IF_DL_H
23765 # include <net/if_dl.h>
23767 #if HAVE_NET_NETOPT_H
23768 # include <net/netopt.h>
23770 #if HAVE_NET_ROUTE_H
23771 # include <net/route.h>
23774 # include <inet/nd.h>
23776 #if HAVE_ARPA_INET_H
23777 # include <arpa/inet.h>
23779 /* Required for IDRP */
23780 #if HAVE_NETINET_IP_ICMP_H
23781 # include <netinet/ip_icmp.h>
23784 #if HAVE_NETINET6_IN6_H
23785 #include <netinet6/in6.h>
23787 #if HAVE_NETINET_IN6_VAR_H
23788 #include <netinet/in6_var.h>
23790 #if HAVE_NETINET_ICMP6_H
23791 # include <netinet/icmp6.h>
23793 #if HAVE_NETINET6_IN6_VAR_H
23794 # include <netinet6/in6_var.h>
23796 #if HAVE_NETINET6_ND6_H
23797 # include <netinet6/nd6.h>
23801 if test "x$ac_cv_type_struct_nd_opt_adv_interval" = xyes; then :
23803 cat >>confdefs.h <<_ACEOF
23804 #define HAVE_STRUCT_ND_OPT_ADV_INTERVAL 1
23809 ac_fn_c_check_type "$LINENO" "struct rt_addrinfo" "ac_cv_type_struct_rt_addrinfo" "#ifdef SUNOS_5
23811 #define __EXTENSIONS__
23815 # include <stdlib.h>
23816 # include <stddef.h>
23819 # include <stdlib.h>
23822 #if HAVE_SYS_TYPES_H
23823 # include <sys/types.h>
23825 /* sys/conf.h depends on param.h on FBSD at least */
23826 #if HAVE_SYS_PARAM_H
23827 # include <sys/param.h>
23829 /* Required for MAXSIG */
23831 # include <signal.h>
23833 #if HAVE_SYS_SOCKET_H
23834 # include <sys/socket.h>
23837 # define __APPLE_USE_RFC_3542
23839 #if HAVE_NETINET_IN_H
23840 # include <netinet/in.h>
23842 #ifdef TIME_WITH_SYS_TIME
23843 # include <sys/time.h>
23846 # ifdef HAVE_SYS_TIME_H
23847 # include <sys/time.h>
23851 #endif /* TIME_WITH_SYS_TIME */
23854 # include <net/if.h>
23857 #if HAVE_NET_IF_VAR_H
23858 # include <net/if_var.h>
23862 # include <sys/un.h>
23864 #if HAVE_NETINET_IN_SYSTM_H
23865 # include <netinet/in_systm.h>
23867 #if HAVE_NETINET_IN_VAR_H
23868 # include <netinet/in_var.h>
23870 #if HAVE_NET_IF_DL_H
23871 # include <net/if_dl.h>
23873 #if HAVE_NET_NETOPT_H
23874 # include <net/netopt.h>
23876 #if HAVE_NET_ROUTE_H
23877 # include <net/route.h>
23880 # include <inet/nd.h>
23882 #if HAVE_ARPA_INET_H
23883 # include <arpa/inet.h>
23885 /* Required for IDRP */
23886 #if HAVE_NETINET_IP_ICMP_H
23887 # include <netinet/ip_icmp.h>
23890 #if HAVE_NETINET6_IN6_H
23891 #include <netinet6/in6.h>
23893 #if HAVE_NETINET_IN6_VAR_H
23894 #include <netinet/in6_var.h>
23896 #if HAVE_NETINET_ICMP6_H
23897 # include <netinet/icmp6.h>
23899 #if HAVE_NETINET6_IN6_VAR_H
23900 # include <netinet6/in6_var.h>
23902 #if HAVE_NETINET6_ND6_H
23903 # include <netinet6/nd6.h>
23907 if test "x$ac_cv_type_struct_rt_addrinfo" = xyes; then :
23909 cat >>confdefs.h <<_ACEOF
23910 #define HAVE_STRUCT_RT_ADDRINFO 1
23915 ac_fn_c_check_type "$LINENO" "struct nd_opt_homeagent_info" "ac_cv_type_struct_nd_opt_homeagent_info" "#ifdef SUNOS_5
23917 #define __EXTENSIONS__
23921 # include <stdlib.h>
23922 # include <stddef.h>
23925 # include <stdlib.h>
23928 #if HAVE_SYS_TYPES_H
23929 # include <sys/types.h>
23931 /* sys/conf.h depends on param.h on FBSD at least */
23932 #if HAVE_SYS_PARAM_H
23933 # include <sys/param.h>
23935 /* Required for MAXSIG */
23937 # include <signal.h>
23939 #if HAVE_SYS_SOCKET_H
23940 # include <sys/socket.h>
23943 # define __APPLE_USE_RFC_3542
23945 #if HAVE_NETINET_IN_H
23946 # include <netinet/in.h>
23948 #ifdef TIME_WITH_SYS_TIME
23949 # include <sys/time.h>
23952 # ifdef HAVE_SYS_TIME_H
23953 # include <sys/time.h>
23957 #endif /* TIME_WITH_SYS_TIME */
23960 # include <net/if.h>
23963 #if HAVE_NET_IF_VAR_H
23964 # include <net/if_var.h>
23968 # include <sys/un.h>
23970 #if HAVE_NETINET_IN_SYSTM_H
23971 # include <netinet/in_systm.h>
23973 #if HAVE_NETINET_IN_VAR_H
23974 # include <netinet/in_var.h>
23976 #if HAVE_NET_IF_DL_H
23977 # include <net/if_dl.h>
23979 #if HAVE_NET_NETOPT_H
23980 # include <net/netopt.h>
23982 #if HAVE_NET_ROUTE_H
23983 # include <net/route.h>
23986 # include <inet/nd.h>
23988 #if HAVE_ARPA_INET_H
23989 # include <arpa/inet.h>
23991 /* Required for IDRP */
23992 #if HAVE_NETINET_IP_ICMP_H
23993 # include <netinet/ip_icmp.h>
23996 #if HAVE_NETINET6_IN6_H
23997 #include <netinet6/in6.h>
23999 #if HAVE_NETINET_IN6_VAR_H
24000 #include <netinet/in6_var.h>
24002 #if HAVE_NETINET_ICMP6_H
24003 # include <netinet/icmp6.h>
24005 #if HAVE_NETINET6_IN6_VAR_H
24006 # include <netinet6/in6_var.h>
24008 #if HAVE_NETINET6_ND6_H
24009 # include <netinet6/nd6.h>
24013 if test "x$ac_cv_type_struct_nd_opt_homeagent_info" = xyes; then :
24015 cat >>confdefs.h <<_ACEOF
24016 #define HAVE_STRUCT_ND_OPT_HOMEAGENT_INFO 1
24021 ac_fn_c_check_type "$LINENO" "struct nd_opt_adv_interval" "ac_cv_type_struct_nd_opt_adv_interval" "#ifdef SUNOS_5
24023 #define __EXTENSIONS__
24027 # include <stdlib.h>
24028 # include <stddef.h>
24031 # include <stdlib.h>
24034 #if HAVE_SYS_TYPES_H
24035 # include <sys/types.h>
24037 /* sys/conf.h depends on param.h on FBSD at least */
24038 #if HAVE_SYS_PARAM_H
24039 # include <sys/param.h>
24041 /* Required for MAXSIG */
24043 # include <signal.h>
24045 #if HAVE_SYS_SOCKET_H
24046 # include <sys/socket.h>
24049 # define __APPLE_USE_RFC_3542
24051 #if HAVE_NETINET_IN_H
24052 # include <netinet/in.h>
24054 #ifdef TIME_WITH_SYS_TIME
24055 # include <sys/time.h>
24058 # ifdef HAVE_SYS_TIME_H
24059 # include <sys/time.h>
24063 #endif /* TIME_WITH_SYS_TIME */
24066 # include <net/if.h>
24069 #if HAVE_NET_IF_VAR_H
24070 # include <net/if_var.h>
24074 # include <sys/un.h>
24076 #if HAVE_NETINET_IN_SYSTM_H
24077 # include <netinet/in_systm.h>
24079 #if HAVE_NETINET_IN_VAR_H
24080 # include <netinet/in_var.h>
24082 #if HAVE_NET_IF_DL_H
24083 # include <net/if_dl.h>
24085 #if HAVE_NET_NETOPT_H
24086 # include <net/netopt.h>
24088 #if HAVE_NET_ROUTE_H
24089 # include <net/route.h>
24092 # include <inet/nd.h>
24094 #if HAVE_ARPA_INET_H
24095 # include <arpa/inet.h>
24097 /* Required for IDRP */
24098 #if HAVE_NETINET_IP_ICMP_H
24099 # include <netinet/ip_icmp.h>
24102 #if HAVE_NETINET6_IN6_H
24103 #include <netinet6/in6.h>
24105 #if HAVE_NETINET_IN6_VAR_H
24106 #include <netinet/in6_var.h>
24108 #if HAVE_NETINET_ICMP6_H
24109 # include <netinet/icmp6.h>
24111 #if HAVE_NETINET6_IN6_VAR_H
24112 # include <netinet6/in6_var.h>
24114 #if HAVE_NETINET6_ND6_H
24115 # include <netinet6/nd6.h>
24119 if test "x$ac_cv_type_struct_nd_opt_adv_interval" = xyes; then :
24121 cat >>confdefs.h <<_ACEOF
24122 #define HAVE_STRUCT_ND_OPT_ADV_INTERVAL 1
24129 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#ifdef SUNOS_5
24131 #define __EXTENSIONS__
24135 # include <stdlib.h>
24136 # include <stddef.h>
24139 # include <stdlib.h>
24142 #if HAVE_SYS_TYPES_H
24143 # include <sys/types.h>
24145 /* sys/conf.h depends on param.h on FBSD at least */
24146 #if HAVE_SYS_PARAM_H
24147 # include <sys/param.h>
24149 /* Required for MAXSIG */
24151 # include <signal.h>
24153 #if HAVE_SYS_SOCKET_H
24154 # include <sys/socket.h>
24157 # define __APPLE_USE_RFC_3542
24159 #if HAVE_NETINET_IN_H
24160 # include <netinet/in.h>
24162 #ifdef TIME_WITH_SYS_TIME
24163 # include <sys/time.h>
24166 # ifdef HAVE_SYS_TIME_H
24167 # include <sys/time.h>
24171 #endif /* TIME_WITH_SYS_TIME */
24174 # include <net/if.h>
24177 #if HAVE_NET_IF_VAR_H
24178 # include <net/if_var.h>
24182 # include <sys/un.h>
24184 #if HAVE_NETINET_IN_SYSTM_H
24185 # include <netinet/in_systm.h>
24187 #if HAVE_NETINET_IN_VAR_H
24188 # include <netinet/in_var.h>
24190 #if HAVE_NET_IF_DL_H
24191 # include <net/if_dl.h>
24193 #if HAVE_NET_NETOPT_H
24194 # include <net/netopt.h>
24196 #if HAVE_NET_ROUTE_H
24197 # include <net/route.h>
24200 # include <inet/nd.h>
24202 #if HAVE_ARPA_INET_H
24203 # include <arpa/inet.h>
24205 /* Required for IDRP */
24206 #if HAVE_NETINET_IP_ICMP_H
24207 # include <netinet/ip_icmp.h>
24210 #if HAVE_NETINET6_IN6_H
24211 #include <netinet6/in6.h>
24213 #if HAVE_NETINET_IN6_VAR_H
24214 #include <netinet/in6_var.h>
24216 #if HAVE_NETINET_ICMP6_H
24217 # include <netinet/icmp6.h>
24219 #if HAVE_NETINET6_IN6_VAR_H
24220 # include <netinet6/in6_var.h>
24222 #if HAVE_NETINET6_ND6_H
24223 # include <netinet6/nd6.h>
24227 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
24229 cat >>confdefs.h <<_ACEOF
24230 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
24235 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#ifdef SUNOS_5
24237 #define __EXTENSIONS__
24241 # include <stdlib.h>
24242 # include <stddef.h>
24245 # include <stdlib.h>
24248 #if HAVE_SYS_TYPES_H
24249 # include <sys/types.h>
24251 /* sys/conf.h depends on param.h on FBSD at least */
24252 #if HAVE_SYS_PARAM_H
24253 # include <sys/param.h>
24255 /* Required for MAXSIG */
24257 # include <signal.h>
24259 #if HAVE_SYS_SOCKET_H
24260 # include <sys/socket.h>
24263 # define __APPLE_USE_RFC_3542
24265 #if HAVE_NETINET_IN_H
24266 # include <netinet/in.h>
24268 #ifdef TIME_WITH_SYS_TIME
24269 # include <sys/time.h>
24272 # ifdef HAVE_SYS_TIME_H
24273 # include <sys/time.h>
24277 #endif /* TIME_WITH_SYS_TIME */
24280 # include <net/if.h>
24283 #if HAVE_NET_IF_VAR_H
24284 # include <net/if_var.h>
24288 # include <sys/un.h>
24290 #if HAVE_NETINET_IN_SYSTM_H
24291 # include <netinet/in_systm.h>
24293 #if HAVE_NETINET_IN_VAR_H
24294 # include <netinet/in_var.h>
24296 #if HAVE_NET_IF_DL_H
24297 # include <net/if_dl.h>
24299 #if HAVE_NET_NETOPT_H
24300 # include <net/netopt.h>
24302 #if HAVE_NET_ROUTE_H
24303 # include <net/route.h>
24306 # include <inet/nd.h>
24308 #if HAVE_ARPA_INET_H
24309 # include <arpa/inet.h>
24311 /* Required for IDRP */
24312 #if HAVE_NETINET_IP_ICMP_H
24313 # include <netinet/ip_icmp.h>
24316 #if HAVE_NETINET6_IN6_H
24317 #include <netinet6/in6.h>
24319 #if HAVE_NETINET_IN6_VAR_H
24320 #include <netinet/in6_var.h>
24322 #if HAVE_NETINET_ICMP6_H
24323 # include <netinet/icmp6.h>
24325 #if HAVE_NETINET6_IN6_VAR_H
24326 # include <netinet6/in6_var.h>
24328 #if HAVE_NETINET6_ND6_H
24329 # include <netinet6/nd6.h>
24333 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
24335 cat >>confdefs.h <<_ACEOF
24336 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
24341 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#ifdef SUNOS_5
24343 #define __EXTENSIONS__
24347 # include <stdlib.h>
24348 # include <stddef.h>
24351 # include <stdlib.h>
24354 #if HAVE_SYS_TYPES_H
24355 # include <sys/types.h>
24357 /* sys/conf.h depends on param.h on FBSD at least */
24358 #if HAVE_SYS_PARAM_H
24359 # include <sys/param.h>
24361 /* Required for MAXSIG */
24363 # include <signal.h>
24365 #if HAVE_SYS_SOCKET_H
24366 # include <sys/socket.h>
24369 # define __APPLE_USE_RFC_3542
24371 #if HAVE_NETINET_IN_H
24372 # include <netinet/in.h>
24374 #ifdef TIME_WITH_SYS_TIME
24375 # include <sys/time.h>
24378 # ifdef HAVE_SYS_TIME_H
24379 # include <sys/time.h>
24383 #endif /* TIME_WITH_SYS_TIME */
24386 # include <net/if.h>
24389 #if HAVE_NET_IF_VAR_H
24390 # include <net/if_var.h>
24394 # include <sys/un.h>
24396 #if HAVE_NETINET_IN_SYSTM_H
24397 # include <netinet/in_systm.h>
24399 #if HAVE_NETINET_IN_VAR_H
24400 # include <netinet/in_var.h>
24402 #if HAVE_NET_IF_DL_H
24403 # include <net/if_dl.h>
24405 #if HAVE_NET_NETOPT_H
24406 # include <net/netopt.h>
24408 #if HAVE_NET_ROUTE_H
24409 # include <net/route.h>
24412 # include <inet/nd.h>
24414 #if HAVE_ARPA_INET_H
24415 # include <arpa/inet.h>
24417 /* Required for IDRP */
24418 #if HAVE_NETINET_IP_ICMP_H
24419 # include <netinet/ip_icmp.h>
24422 #if HAVE_NETINET6_IN6_H
24423 #include <netinet6/in6.h>
24425 #if HAVE_NETINET_IN6_VAR_H
24426 #include <netinet/in6_var.h>
24428 #if HAVE_NETINET_ICMP6_H
24429 # include <netinet/icmp6.h>
24431 #if HAVE_NETINET6_IN6_VAR_H
24432 # include <netinet6/in6_var.h>
24434 #if HAVE_NETINET6_ND6_H
24435 # include <netinet6/nd6.h>
24439 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
24441 cat >>confdefs.h <<_ACEOF
24442 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
24447 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "#ifdef SUNOS_5
24449 #define __EXTENSIONS__
24453 # include <stdlib.h>
24454 # include <stddef.h>
24457 # include <stdlib.h>
24460 #if HAVE_SYS_TYPES_H
24461 # include <sys/types.h>
24463 /* sys/conf.h depends on param.h on FBSD at least */
24464 #if HAVE_SYS_PARAM_H
24465 # include <sys/param.h>
24467 /* Required for MAXSIG */
24469 # include <signal.h>
24471 #if HAVE_SYS_SOCKET_H
24472 # include <sys/socket.h>
24475 # define __APPLE_USE_RFC_3542
24477 #if HAVE_NETINET_IN_H
24478 # include <netinet/in.h>
24480 #ifdef TIME_WITH_SYS_TIME
24481 # include <sys/time.h>
24484 # ifdef HAVE_SYS_TIME_H
24485 # include <sys/time.h>
24489 #endif /* TIME_WITH_SYS_TIME */
24492 # include <net/if.h>
24495 #if HAVE_NET_IF_VAR_H
24496 # include <net/if_var.h>
24500 # include <sys/un.h>
24502 #if HAVE_NETINET_IN_SYSTM_H
24503 # include <netinet/in_systm.h>
24505 #if HAVE_NETINET_IN_VAR_H
24506 # include <netinet/in_var.h>
24508 #if HAVE_NET_IF_DL_H
24509 # include <net/if_dl.h>
24511 #if HAVE_NET_NETOPT_H
24512 # include <net/netopt.h>
24514 #if HAVE_NET_ROUTE_H
24515 # include <net/route.h>
24518 # include <inet/nd.h>
24520 #if HAVE_ARPA_INET_H
24521 # include <arpa/inet.h>
24523 /* Required for IDRP */
24524 #if HAVE_NETINET_IP_ICMP_H
24525 # include <netinet/ip_icmp.h>
24528 #if HAVE_NETINET6_IN6_H
24529 #include <netinet6/in6.h>
24531 #if HAVE_NETINET_IN6_VAR_H
24532 #include <netinet/in6_var.h>
24534 #if HAVE_NETINET_ICMP6_H
24535 # include <netinet/icmp6.h>
24537 #if HAVE_NETINET6_IN6_VAR_H
24538 # include <netinet6/in6_var.h>
24540 #if HAVE_NETINET6_ND6_H
24541 # include <netinet6/nd6.h>
24545 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
24547 cat >>confdefs.h <<_ACEOF
24548 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
24553 ac_fn_c_check_member "$LINENO" "struct sockaddr_dl" "sdl_len" "ac_cv_member_struct_sockaddr_dl_sdl_len" "#ifdef SUNOS_5
24555 #define __EXTENSIONS__
24559 # include <stdlib.h>
24560 # include <stddef.h>
24563 # include <stdlib.h>
24566 #if HAVE_SYS_TYPES_H
24567 # include <sys/types.h>
24569 /* sys/conf.h depends on param.h on FBSD at least */
24570 #if HAVE_SYS_PARAM_H
24571 # include <sys/param.h>
24573 /* Required for MAXSIG */
24575 # include <signal.h>
24577 #if HAVE_SYS_SOCKET_H
24578 # include <sys/socket.h>
24581 # define __APPLE_USE_RFC_3542
24583 #if HAVE_NETINET_IN_H
24584 # include <netinet/in.h>
24586 #ifdef TIME_WITH_SYS_TIME
24587 # include <sys/time.h>
24590 # ifdef HAVE_SYS_TIME_H
24591 # include <sys/time.h>
24595 #endif /* TIME_WITH_SYS_TIME */
24598 # include <net/if.h>
24601 #if HAVE_NET_IF_VAR_H
24602 # include <net/if_var.h>
24606 # include <sys/un.h>
24608 #if HAVE_NETINET_IN_SYSTM_H
24609 # include <netinet/in_systm.h>
24611 #if HAVE_NETINET_IN_VAR_H
24612 # include <netinet/in_var.h>
24614 #if HAVE_NET_IF_DL_H
24615 # include <net/if_dl.h>
24617 #if HAVE_NET_NETOPT_H
24618 # include <net/netopt.h>
24620 #if HAVE_NET_ROUTE_H
24621 # include <net/route.h>
24624 # include <inet/nd.h>
24626 #if HAVE_ARPA_INET_H
24627 # include <arpa/inet.h>
24629 /* Required for IDRP */
24630 #if HAVE_NETINET_IP_ICMP_H
24631 # include <netinet/ip_icmp.h>
24634 #if HAVE_NETINET6_IN6_H
24635 #include <netinet6/in6.h>
24637 #if HAVE_NETINET_IN6_VAR_H
24638 #include <netinet/in6_var.h>
24640 #if HAVE_NETINET_ICMP6_H
24641 # include <netinet/icmp6.h>
24643 #if HAVE_NETINET6_IN6_VAR_H
24644 # include <netinet6/in6_var.h>
24646 #if HAVE_NETINET6_ND6_H
24647 # include <netinet6/nd6.h>
24651 if test "x$ac_cv_member_struct_sockaddr_dl_sdl_len" = xyes; then :
24653 cat >>confdefs.h <<_ACEOF
24654 #define HAVE_STRUCT_SOCKADDR_DL_SDL_LEN 1
24659 ac_fn_c_check_member "$LINENO" "struct if6_aliasreq" "ifra_lifetime" "ac_cv_member_struct_if6_aliasreq_ifra_lifetime" "#ifdef SUNOS_5
24661 #define __EXTENSIONS__
24665 # include <stdlib.h>
24666 # include <stddef.h>
24669 # include <stdlib.h>
24672 #if HAVE_SYS_TYPES_H
24673 # include <sys/types.h>
24675 /* sys/conf.h depends on param.h on FBSD at least */
24676 #if HAVE_SYS_PARAM_H
24677 # include <sys/param.h>
24679 /* Required for MAXSIG */
24681 # include <signal.h>
24683 #if HAVE_SYS_SOCKET_H
24684 # include <sys/socket.h>
24687 # define __APPLE_USE_RFC_3542
24689 #if HAVE_NETINET_IN_H
24690 # include <netinet/in.h>
24692 #ifdef TIME_WITH_SYS_TIME
24693 # include <sys/time.h>
24696 # ifdef HAVE_SYS_TIME_H
24697 # include <sys/time.h>
24701 #endif /* TIME_WITH_SYS_TIME */
24704 # include <net/if.h>
24707 #if HAVE_NET_IF_VAR_H
24708 # include <net/if_var.h>
24712 # include <sys/un.h>
24714 #if HAVE_NETINET_IN_SYSTM_H
24715 # include <netinet/in_systm.h>
24717 #if HAVE_NETINET_IN_VAR_H
24718 # include <netinet/in_var.h>
24720 #if HAVE_NET_IF_DL_H
24721 # include <net/if_dl.h>
24723 #if HAVE_NET_NETOPT_H
24724 # include <net/netopt.h>
24726 #if HAVE_NET_ROUTE_H
24727 # include <net/route.h>
24730 # include <inet/nd.h>
24732 #if HAVE_ARPA_INET_H
24733 # include <arpa/inet.h>
24735 /* Required for IDRP */
24736 #if HAVE_NETINET_IP_ICMP_H
24737 # include <netinet/ip_icmp.h>
24740 #if HAVE_NETINET6_IN6_H
24741 #include <netinet6/in6.h>
24743 #if HAVE_NETINET_IN6_VAR_H
24744 #include <netinet/in6_var.h>
24746 #if HAVE_NETINET_ICMP6_H
24747 # include <netinet/icmp6.h>
24749 #if HAVE_NETINET6_IN6_VAR_H
24750 # include <netinet6/in6_var.h>
24752 #if HAVE_NETINET6_ND6_H
24753 # include <netinet6/nd6.h>
24757 if test "x$ac_cv_member_struct_if6_aliasreq_ifra_lifetime" = xyes; then :
24759 cat >>confdefs.h <<_ACEOF
24760 #define HAVE_STRUCT_IF6_ALIASREQ_IFRA_LIFETIME 1
24765 ac_fn_c_check_member "$LINENO" "struct nd_opt_adv_interval" "nd_opt_ai_type" "ac_cv_member_struct_nd_opt_adv_interval_nd_opt_ai_type" "#ifdef SUNOS_5
24767 #define __EXTENSIONS__
24771 # include <stdlib.h>
24772 # include <stddef.h>
24775 # include <stdlib.h>
24778 #if HAVE_SYS_TYPES_H
24779 # include <sys/types.h>
24781 /* sys/conf.h depends on param.h on FBSD at least */
24782 #if HAVE_SYS_PARAM_H
24783 # include <sys/param.h>
24785 /* Required for MAXSIG */
24787 # include <signal.h>
24789 #if HAVE_SYS_SOCKET_H
24790 # include <sys/socket.h>
24793 # define __APPLE_USE_RFC_3542
24795 #if HAVE_NETINET_IN_H
24796 # include <netinet/in.h>
24798 #ifdef TIME_WITH_SYS_TIME
24799 # include <sys/time.h>
24802 # ifdef HAVE_SYS_TIME_H
24803 # include <sys/time.h>
24807 #endif /* TIME_WITH_SYS_TIME */
24810 # include <net/if.h>
24813 #if HAVE_NET_IF_VAR_H
24814 # include <net/if_var.h>
24818 # include <sys/un.h>
24820 #if HAVE_NETINET_IN_SYSTM_H
24821 # include <netinet/in_systm.h>
24823 #if HAVE_NETINET_IN_VAR_H
24824 # include <netinet/in_var.h>
24826 #if HAVE_NET_IF_DL_H
24827 # include <net/if_dl.h>
24829 #if HAVE_NET_NETOPT_H
24830 # include <net/netopt.h>
24832 #if HAVE_NET_ROUTE_H
24833 # include <net/route.h>
24836 # include <inet/nd.h>
24838 #if HAVE_ARPA_INET_H
24839 # include <arpa/inet.h>
24841 /* Required for IDRP */
24842 #if HAVE_NETINET_IP_ICMP_H
24843 # include <netinet/ip_icmp.h>
24846 #if HAVE_NETINET6_IN6_H
24847 #include <netinet6/in6.h>
24849 #if HAVE_NETINET_IN6_VAR_H
24850 #include <netinet/in6_var.h>
24852 #if HAVE_NETINET_ICMP6_H
24853 # include <netinet/icmp6.h>
24855 #if HAVE_NETINET6_IN6_VAR_H
24856 # include <netinet6/in6_var.h>
24858 #if HAVE_NETINET6_ND6_H
24859 # include <netinet6/nd6.h>
24863 if test "x$ac_cv_member_struct_nd_opt_adv_interval_nd_opt_ai_type" = xyes; then :
24865 cat >>confdefs.h <<_ACEOF
24866 #define HAVE_STRUCT_ND_OPT_ADV_INTERVAL_ND_OPT_AI_TYPE 1
24873 ac_fn_c_check_type "$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "#ifdef SUNOS_5
24875 #define __EXTENSIONS__
24879 # include <stdlib.h>
24880 # include <stddef.h>
24883 # include <stdlib.h>
24886 #if HAVE_SYS_TYPES_H
24887 # include <sys/types.h>
24889 /* sys/conf.h depends on param.h on FBSD at least */
24890 #if HAVE_SYS_PARAM_H
24891 # include <sys/param.h>
24893 /* Required for MAXSIG */
24895 # include <signal.h>
24897 #if HAVE_SYS_SOCKET_H
24898 # include <sys/socket.h>
24901 # define __APPLE_USE_RFC_3542
24903 #if HAVE_NETINET_IN_H
24904 # include <netinet/in.h>
24906 #ifdef TIME_WITH_SYS_TIME
24907 # include <sys/time.h>
24910 # ifdef HAVE_SYS_TIME_H
24911 # include <sys/time.h>
24915 #endif /* TIME_WITH_SYS_TIME */
24918 # include <net/if.h>
24921 #if HAVE_NET_IF_VAR_H
24922 # include <net/if_var.h>
24926 # include <sys/un.h>
24928 #if HAVE_NETINET_IN_SYSTM_H
24929 # include <netinet/in_systm.h>
24931 #if HAVE_NETINET_IN_VAR_H
24932 # include <netinet/in_var.h>
24934 #if HAVE_NET_IF_DL_H
24935 # include <net/if_dl.h>
24937 #if HAVE_NET_NETOPT_H
24938 # include <net/netopt.h>
24940 #if HAVE_NET_ROUTE_H
24941 # include <net/route.h>
24944 # include <inet/nd.h>
24946 #if HAVE_ARPA_INET_H
24947 # include <arpa/inet.h>
24949 /* Required for IDRP */
24950 #if HAVE_NETINET_IP_ICMP_H
24951 # include <netinet/ip_icmp.h>
24954 #if HAVE_NETINET6_IN6_H
24955 #include <netinet6/in6.h>
24957 #if HAVE_NETINET_IN6_VAR_H
24958 #include <netinet/in6_var.h>
24960 #if HAVE_NETINET_ICMP6_H
24961 # include <netinet/icmp6.h>
24963 #if HAVE_NETINET6_IN6_VAR_H
24964 # include <netinet6/in6_var.h>
24966 #if HAVE_NETINET6_ND6_H
24967 # include <netinet6/nd6.h>
24971 if test "x$ac_cv_type_struct_in_pktinfo" = xyes; then :
24973 cat >>confdefs.h <<_ACEOF
24974 #define HAVE_STRUCT_IN_PKTINFO 1
24977 ac_fn_c_check_type "$LINENO" "struct icmphdr" "ac_cv_type_struct_icmphdr" "#ifdef SUNOS_5
24979 #define __EXTENSIONS__
24983 # include <stdlib.h>
24984 # include <stddef.h>
24987 # include <stdlib.h>
24990 #if HAVE_SYS_TYPES_H
24991 # include <sys/types.h>
24993 /* sys/conf.h depends on param.h on FBSD at least */
24994 #if HAVE_SYS_PARAM_H
24995 # include <sys/param.h>
24997 /* Required for MAXSIG */
24999 # include <signal.h>
25001 #if HAVE_SYS_SOCKET_H
25002 # include <sys/socket.h>
25005 # define __APPLE_USE_RFC_3542
25007 #if HAVE_NETINET_IN_H
25008 # include <netinet/in.h>
25010 #ifdef TIME_WITH_SYS_TIME
25011 # include <sys/time.h>
25014 # ifdef HAVE_SYS_TIME_H
25015 # include <sys/time.h>
25019 #endif /* TIME_WITH_SYS_TIME */
25022 # include <net/if.h>
25025 #if HAVE_NET_IF_VAR_H
25026 # include <net/if_var.h>
25030 # include <sys/un.h>
25032 #if HAVE_NETINET_IN_SYSTM_H
25033 # include <netinet/in_systm.h>
25035 #if HAVE_NETINET_IN_VAR_H
25036 # include <netinet/in_var.h>
25038 #if HAVE_NET_IF_DL_H
25039 # include <net/if_dl.h>
25041 #if HAVE_NET_NETOPT_H
25042 # include <net/netopt.h>
25044 #if HAVE_NET_ROUTE_H
25045 # include <net/route.h>
25048 # include <inet/nd.h>
25050 #if HAVE_ARPA_INET_H
25051 # include <arpa/inet.h>
25053 /* Required for IDRP */
25054 #if HAVE_NETINET_IP_ICMP_H
25055 # include <netinet/ip_icmp.h>
25058 #if HAVE_NETINET6_IN6_H
25059 #include <netinet6/in6.h>
25061 #if HAVE_NETINET_IN6_VAR_H
25062 #include <netinet/in6_var.h>
25064 #if HAVE_NETINET_ICMP6_H
25065 # include <netinet/icmp6.h>
25067 #if HAVE_NETINET6_IN6_VAR_H
25068 # include <netinet6/in6_var.h>
25070 #if HAVE_NETINET6_ND6_H
25071 # include <netinet6/nd6.h>
25075 if test "x$ac_cv_type_struct_icmphdr" = xyes; then :
25077 cat >>confdefs.h <<_ACEOF
25078 #define HAVE_STRUCT_ICMPHDR 1
25081 if test "${enable_irdp}" != "no"; then
25083 $as_echo "#define HAVE_IRDP /**/" >>confdefs.h
25087 if test "${enable_irdp}" = "yes"; then
25088 as_fn_error $? "'IRDP requires in_pktinfo at the moment!'" "$LINENO" 5
25093 if test "${enable_irdp}" = "yes"; then
25094 as_fn_error $? "'IRDP requires in_pktinfo at the moment!'" "$LINENO" 5
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_PKTINFO" >&5
25100 $as_echo_n "checking for IP_PKTINFO... " >&6; }
25101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25102 /* end confdefs.h. */
25108 int opt = IP_PKTINFO;
25114 if ac_fn_c_try_compile "$LINENO"; then :
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25117 $as_echo "yes" >&6; }
25119 $as_echo "#define HAVE_IP_PKTINFO 1" >>confdefs.h
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25125 $as_echo "no" >&6; }
25128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_RECVDSTADDR" >&5
25131 $as_echo_n "checking for IP_RECVDSTADDR... " >&6; }
25132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25133 /* end confdefs.h. */
25134 #include <netinet/in.h>
25139 int opt = IP_RECVDSTADDR;
25145 if ac_fn_c_try_compile "$LINENO"; then :
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25148 $as_echo "yes" >&6; }
25150 $as_echo "#define HAVE_IP_RECVDSTADDR 1" >>confdefs.h
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25156 $as_echo "no" >&6; }
25159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_RECVIF" >&5
25162 $as_echo_n "checking for IP_RECVIF... " >&6; }
25163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25164 /* end confdefs.h. */
25165 #include <netinet/in.h>
25170 int opt = IP_RECVIF;
25176 if ac_fn_c_try_compile "$LINENO"; then :
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25179 $as_echo "yes" >&6; }
25181 $as_echo "#define HAVE_IP_RECVIF 1" >>confdefs.h
25186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25187 $as_echo "no" >&6; }
25190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25192 if test "${enable_rusage}" != "no"; then
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getrusage is available" >&5
25194 $as_echo_n "checking whether getrusage is available... " >&6; }
25195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25196 /* end confdefs.h. */
25197 #include <sys/resource.h>
25201 struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x);
25206 if ac_fn_c_try_compile "$LINENO"; then :
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25208 $as_echo "yes" >&6; }
25210 $as_echo "#define HAVE_RUSAGE /**/" >>confdefs.h
25213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25214 $as_echo "no" >&6; }
25216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25219 ac_fn_c_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#ifdef SUNOS_5
25221 #define __EXTENSIONS__
25225 # include <stdlib.h>
25226 # include <stddef.h>
25229 # include <stdlib.h>
25232 #if HAVE_SYS_TYPES_H
25233 # include <sys/types.h>
25235 /* sys/conf.h depends on param.h on FBSD at least */
25236 #if HAVE_SYS_PARAM_H
25237 # include <sys/param.h>
25239 /* Required for MAXSIG */
25241 # include <signal.h>
25243 #if HAVE_SYS_SOCKET_H
25244 # include <sys/socket.h>
25247 # define __APPLE_USE_RFC_3542
25249 #if HAVE_NETINET_IN_H
25250 # include <netinet/in.h>
25252 #ifdef TIME_WITH_SYS_TIME
25253 # include <sys/time.h>
25256 # ifdef HAVE_SYS_TIME_H
25257 # include <sys/time.h>
25261 #endif /* TIME_WITH_SYS_TIME */
25264 # include <net/if.h>
25267 #if HAVE_NET_IF_VAR_H
25268 # include <net/if_var.h>
25272 # include <sys/un.h>
25274 #if HAVE_NETINET_IN_SYSTM_H
25275 # include <netinet/in_systm.h>
25277 #if HAVE_NETINET_IN_VAR_H
25278 # include <netinet/in_var.h>
25280 #if HAVE_NET_IF_DL_H
25281 # include <net/if_dl.h>
25283 #if HAVE_NET_NETOPT_H
25284 # include <net/netopt.h>
25286 #if HAVE_NET_ROUTE_H
25287 # include <net/route.h>
25290 # include <inet/nd.h>
25292 #if HAVE_ARPA_INET_H
25293 # include <arpa/inet.h>
25295 /* Required for IDRP */
25296 #if HAVE_NETINET_IP_ICMP_H
25297 # include <netinet/ip_icmp.h>
25300 #if HAVE_NETINET6_IN6_H
25301 #include <netinet6/in6.h>
25303 #if HAVE_NETINET_IN6_VAR_H
25304 #include <netinet/in6_var.h>
25306 #if HAVE_NETINET_ICMP6_H
25307 # include <netinet/icmp6.h>
25309 #if HAVE_NETINET6_IN6_VAR_H
25310 # include <netinet6/in6_var.h>
25312 #if HAVE_NETINET6_ND6_H
25313 # include <netinet6/nd6.h>
25317 if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes; then :
25318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25319 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25320 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
25321 $as_echo_n "(cached) " >&6
25323 ac_check_lib_save_LIBS=$LIBS
25325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25326 /* end confdefs.h. */
25328 /* Override any GCC internal prototype to avoid an error.
25329 Use char because int might match the return type of a GCC
25330 builtin and then its argument prototype would still apply. */
25334 char clock_gettime ();
25338 return clock_gettime ();
25343 if ac_fn_c_try_link "$LINENO"; then :
25344 ac_cv_lib_rt_clock_gettime=yes
25346 ac_cv_lib_rt_clock_gettime=no
25348 rm -f core conftest.err conftest.$ac_objext \
25349 conftest$ac_exeext conftest.$ac_ext
25350 LIBS=$ac_check_lib_save_LIBS
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25353 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25354 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
25359 $as_echo "#define HAVE_CLOCK_MONOTONIC /**/" >>confdefs.h
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25364 $as_echo "no" >&6; }
25368 if test "${enable_capabilities}" != "no"; then
25369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prctl PR_SET_KEEPCAPS is available" >&5
25370 $as_echo_n "checking whether prctl PR_SET_KEEPCAPS is available... " >&6; }
25371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25372 /* end confdefs.h. */
25373 #include <sys/prctl.h>
25377 prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0);
25382 if ac_fn_c_try_compile "$LINENO"; then :
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25384 $as_echo "yes" >&6; }
25386 $as_echo "#define HAVE_PR_SET_KEEPCAPS /**/" >>confdefs.h
25388 quagga_ac_keepcaps="yes"
25390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25391 $as_echo "no" >&6; }
25394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25395 if test x"${quagga_ac_keepcaps}" = x"yes"; then
25396 for ac_header in sys/capability.h
25398 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
25399 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
25400 cat >>confdefs.h <<_ACEOF
25401 #define HAVE_SYS_CAPABILITY_H 1
25409 if test x"${ac_cv_header_sys_capability_h}" = x"yes"; then
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
25411 $as_echo_n "checking for cap_init in -lcap... " >&6; }
25412 if ${ac_cv_lib_cap_cap_init+:} false; then :
25413 $as_echo_n "(cached) " >&6
25415 ac_check_lib_save_LIBS=$LIBS
25417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25418 /* end confdefs.h. */
25420 /* Override any GCC internal prototype to avoid an error.
25421 Use char because int might match the return type of a GCC
25422 builtin and then its argument prototype would still apply. */
25430 return cap_init ();
25435 if ac_fn_c_try_link "$LINENO"; then :
25436 ac_cv_lib_cap_cap_init=yes
25438 ac_cv_lib_cap_cap_init=no
25440 rm -f core conftest.err conftest.$ac_objext \
25441 conftest$ac_exeext conftest.$ac_ext
25442 LIBS=$ac_check_lib_save_LIBS
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
25445 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
25446 if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
25448 $as_echo "#define HAVE_LCAPS 1" >>confdefs.h
25451 quagga_ac_lcaps="yes"
25456 for ac_header in priv.h
25458 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
25459 if test "x$ac_cv_header_priv_h" = xyes; then :
25460 cat >>confdefs.h <<_ACEOF
25461 #define HAVE_PRIV_H 1
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris style privileges are available" >&5
25464 $as_echo_n "checking Solaris style privileges are available... " >&6; }
25465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25466 /* end confdefs.h. */
25471 getpflags(PRIV_AWARE);
25476 if ac_fn_c_try_compile "$LINENO"; then :
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25478 $as_echo "yes" >&6; }
25480 $as_echo "#define HAVE_SOLARIS_CAPABILITIES 1" >>confdefs.h
25482 quagga_ac_scaps="yes"
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25485 $as_echo "no" >&6; }
25488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25496 if test x"${quagga_ac_scaps}" = x"yes" \
25497 -o x"${quagga_ac_lcaps}" = x"yes"; then
25499 $as_echo "#define HAVE_CAPABILITIES 1" >>confdefs.h
25506 # starting point: no aliasing scheme yet...
25507 ax_sys_weak_alias=no
25509 # Figure out what kind of aliasing may be supported...
25510 # Test whether compiler accepts __attribute__ form of weak aliasing
25511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts function __attribute__((weak,alias()))" >&5
25512 $as_echo_n "checking whether $CC accepts function __attribute__((weak,alias()))... " >&6; }
25513 if ${ax_cv_sys_weak_alias_attribute+:} false; then :
25514 $as_echo_n "(cached) " >&6
25517 # We add -Werror if it's gcc to force an error exit if the weak attribute
25519 if test $GCC = yes; then :
25521 save_CFLAGS=$CFLAGS
25525 # Try linking with a weak alias...
25526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25527 /* end confdefs.h. */
25530 void __weakf(int c) {}
25531 void weakf(int c) __attribute__((weak, alias("__weakf")));
25540 if ac_fn_c_try_link "$LINENO"; then :
25541 ax_cv_sys_weak_alias_attribute=yes
25543 ax_cv_sys_weak_alias_attribute=no
25545 rm -f core conftest.err conftest.$ac_objext \
25546 conftest$ac_exeext conftest.$ac_ext
25548 # Restore original CFLAGS
25549 if test $GCC = yes; then :
25551 CFLAGS=$save_CFLAGS
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias_attribute" >&5
25556 $as_echo "$ax_cv_sys_weak_alias_attribute" >&6; }
25558 # What was the result of the test?
25559 if test $ax_cv_sys_weak_alias_attribute = yes; then :
25561 test $ax_sys_weak_alias = no && ax_sys_weak_alias=attribute
25563 $as_echo "#define HAVE_SYS_WEAK_ALIAS_ATTRIBUTE 1" >>confdefs.h
25568 # Test whether compiler accepts #pragma form of weak aliasing
25569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports #pragma weak" >&5
25570 $as_echo_n "checking whether $CC supports #pragma weak... " >&6; }
25571 if ${ax_cv_sys_weak_alias_pragma+:} false; then :
25572 $as_echo_n "(cached) " >&6
25576 # Try linking with a weak alias...
25577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25578 /* end confdefs.h. */
25581 extern void weakf(int c);
25582 #pragma weak weakf = __weakf
25583 void __weakf(int c) {}
25592 if ac_fn_c_try_link "$LINENO"; then :
25593 ax_cv_sys_weak_alias_pragma=yes
25595 ax_cv_sys_weak_alias_pragma=no
25597 rm -f core conftest.err conftest.$ac_objext \
25598 conftest$ac_exeext conftest.$ac_ext
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias_pragma" >&5
25602 $as_echo "$ax_cv_sys_weak_alias_pragma" >&6; }
25604 # What was the result of the test?
25605 if test $ax_cv_sys_weak_alias_pragma = yes; then :
25607 test $ax_sys_weak_alias = no && ax_sys_weak_alias=pragma
25609 $as_echo "#define HAVE_SYS_WEAK_ALIAS_PRAGMA 1" >>confdefs.h
25614 # Test whether compiler accepts _HP_SECONDARY_DEF pragma from HP...
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports #pragma _HP_SECONDARY_DEF" >&5
25616 $as_echo_n "checking whether $CC supports #pragma _HP_SECONDARY_DEF... " >&6; }
25617 if ${ax_cv_sys_weak_alias_hpsecondary+:} false; then :
25618 $as_echo_n "(cached) " >&6
25622 # Try linking with a weak alias...
25623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25624 /* end confdefs.h. */
25627 extern void weakf(int c);
25628 #pragma _HP_SECONDARY_DEF __weakf weakf
25629 void __weakf(int c) {}
25638 if ac_fn_c_try_link "$LINENO"; then :
25639 ax_cv_sys_weak_alias_hpsecondary=yes
25641 ax_cv_sys_weak_alias_hpsecondary=no
25643 rm -f core conftest.err conftest.$ac_objext \
25644 conftest$ac_exeext conftest.$ac_ext
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias_hpsecondary" >&5
25648 $as_echo "$ax_cv_sys_weak_alias_hpsecondary" >&6; }
25650 # What was the result of the test?
25651 if test $ax_cv_sys_weak_alias_hpsecondary = yes; then :
25653 test $ax_sys_weak_alias = no && ax_sys_weak_alias=hpsecondary
25655 $as_echo "#define HAVE_SYS_WEAK_ALIAS_HPSECONDARY 1" >>confdefs.h
25660 # Test whether compiler accepts "_CRI duplicate" pragma from Cray
25661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports #pragma _CRI duplicate" >&5
25662 $as_echo_n "checking whether $CC supports #pragma _CRI duplicate... " >&6; }
25663 if ${ax_cv_sys_weak_alias_criduplicate+:} false; then :
25664 $as_echo_n "(cached) " >&6
25668 # Try linking with a weak alias...
25669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25670 /* end confdefs.h. */
25673 extern void weakf(int c);
25674 #pragma _CRI duplicate weakf as __weakf
25675 void __weakf(int c) {}
25684 if ac_fn_c_try_link "$LINENO"; then :
25685 ax_cv_sys_weak_alias_criduplicate=yes
25687 ax_cv_sys_weak_alias_criduplicate=no
25689 rm -f core conftest.err conftest.$ac_objext \
25690 conftest$ac_exeext conftest.$ac_ext
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias_criduplicate" >&5
25694 $as_echo "$ax_cv_sys_weak_alias_criduplicate" >&6; }
25696 # What was the result of the test?
25697 if test $ax_cv_sys_weak_alias_criduplicate = yes; then :
25699 test $ax_sys_weak_alias = no && ax_sys_weak_alias=criduplicate
25701 $as_echo "#define HAVE_SYS_WEAK_ALIAS_CRIDUPLICATE 1" >>confdefs.h
25707 # Do we actually support aliasing?
25708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create weak aliases with $CC" >&5
25709 $as_echo_n "checking how to create weak aliases with $CC... " >&6; }
25710 if ${ax_cv_sys_weak_alias+:} false; then :
25711 $as_echo_n "(cached) " >&6
25713 ax_cv_sys_weak_alias=$ax_sys_weak_alias
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias" >&5
25716 $as_echo "$ax_cv_sys_weak_alias" >&6; }
25718 # OK, set a #define
25719 if test $ax_cv_sys_weak_alias != no; then :
25722 $as_echo "#define HAVE_SYS_WEAK_ALIAS 1" >>confdefs.h
25727 # Can aliases cross object file boundaries?
25728 # Check to see if weak aliases can cross object file boundaries
25729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports weak aliases across object file boundaries" >&5
25730 $as_echo_n "checking whether $CC supports weak aliases across object file boundaries... " >&6; }
25731 if ${ax_cv_sys_weak_alias_crossfile+:} false; then :
25732 $as_echo_n "(cached) " >&6
25735 if test $ax_cv_sys_weak_alias = no; then :
25736 ax_cv_sys_weak_alias_crossfile=no
25739 # conftest1 contains our weak alias definition...
25740 cat >conftest1.$ac_ext <<_ACEOF
25743 cat confdefs.h >>conftest1.$ac_ext
25744 cat >>conftest1.$ac_ext <<_ACEOF
25745 /* end confdefs.h. */
25747 #ifndef HAVE_SYS_WEAK_ALIAS_ATTRIBUTE
25748 extern void weakf(int c);
25749 #if defined(HAVE_SYS_WEAK_ALIAS_PRAGMA)
25750 #pragma weak weakf = __weakf
25751 #elif defined(HAVE_SYS_WEAK_ALIAS_HPSECONDARY)
25752 #pragma _HP_SECONDARY_DEF __weakf weakf
25753 #elif defined(HAVE_SYS_WEAK_ALIAS_CRIDUPLICATE)
25754 #pragma _CRI duplicate weakf as __weakf
25757 void __weakf(int c) {}
25758 #ifdef HAVE_SYS_WEAK_ALIAS_ATTRIBUTE
25759 void weakf(int c) __attribute((weak, alias("__weakf")));
25762 # And conftest2 contains our main routine that calls it
25763 cat >conftest2.$ac_ext <<_ACEOF
25766 cat confdefs.h >> conftest2.$ac_ext
25767 cat >>conftest2.$ac_ext <<_ACEOF
25768 /* end confdefs.h. */
25770 extern void weakf(int c);
25778 # We must remove the object files (if any) ourselves...
25779 rm -f conftest2.$ac_objext conftest$ac_exeext
25781 # Change ac_link to compile *2* files together
25782 save_aclink=$ac_link
25783 ac_link=`echo "$ac_link" | \
25784 sed -e 's/conftest\(\.\$ac_ext\)/conftest1\1 conftest2\1/'`
25785 # Since we created the files ourselves, don't use SOURCE argument
25786 if ac_fn_c_try_link "$LINENO"; then :
25787 ax_cv_sys_weak_alias_crossfile=yes
25789 ax_cv_sys_weak_alias_crossfile=no
25791 rm -f core conftest.err conftest.$ac_objext \
25794 ac_link=$save_aclink
25796 # We must remove the object files (if any) and C files ourselves...
25797 rm -f conftest1.$ac_ext conftest2.$ac_ext \
25798 conftest1.$ac_objext conftest2.$ac_objext
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_sys_weak_alias_crossfile" >&5
25804 $as_echo "$ax_cv_sys_weak_alias_crossfile" >&6; }
25806 # What were the results of the test?
25807 if test $ax_cv_sys_weak_alias_crossfile = yes; then :
25810 $as_echo "#define HAVE_SYS_WEAK_ALIAS_CROSSFILE 1" >>confdefs.h
25816 # OK, remember the results
25817 WEAK_ALIAS=$ax_cv_sys_weak_alias
25819 WEAK_ALIAS_CROSSFILE=$ax_cv_sys_weak_alias_crossfile
25823 if test x"${enable_backtrace}" != x"no" ; then
25825 ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
25826 if test "x$ac_cv_header_execinfo_h" = xyes; then :
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5
25829 $as_echo_n "checking for library containing backtrace... " >&6; }
25830 if ${ac_cv_search_backtrace+:} false; then :
25831 $as_echo_n "(cached) " >&6
25833 ac_func_search_save_LIBS=$LIBS
25834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25835 /* end confdefs.h. */
25837 /* Override any GCC internal prototype to avoid an error.
25838 Use char because int might match the return type of a GCC
25839 builtin and then its argument prototype would still apply. */
25847 return backtrace ();
25852 for ac_lib in '' execinfo; do
25853 if test -z "$ac_lib"; then
25854 ac_res="none required"
25857 LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
25859 if ac_fn_c_try_link "$LINENO"; then :
25860 ac_cv_search_backtrace=$ac_res
25862 rm -f core conftest.err conftest.$ac_objext \
25864 if ${ac_cv_search_backtrace+:} false; then :
25868 if ${ac_cv_search_backtrace+:} false; then :
25871 ac_cv_search_backtrace=no
25873 rm conftest.$ac_ext
25874 LIBS=$ac_func_search_save_LIBS
25876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5
25877 $as_echo "$ac_cv_search_backtrace" >&6; }
25878 ac_res=$ac_cv_search_backtrace
25879 if test "$ac_res" != no; then :
25880 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25883 $as_echo "#define HAVE_GLIBC_BACKTRACE /**/" >>confdefs.h
25886 $as_echo "#define HAVE_STACK_TRACE /**/" >>confdefs.h
25897 if test x"${enable_backtrace}" = x"yes" -a x"${backtrace_ok}" = x"no"; then
25898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25900 as_fn_error $? "failed to find backtrace support
25901 See \`config.log' for more details" "$LINENO" 5; }
25905 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "#ifdef SUNOS_5
25907 #define __EXTENSIONS__
25911 # include <stdlib.h>
25912 # include <stddef.h>
25915 # include <stdlib.h>
25918 #if HAVE_SYS_TYPES_H
25919 # include <sys/types.h>
25921 /* sys/conf.h depends on param.h on FBSD at least */
25922 #if HAVE_SYS_PARAM_H
25923 # include <sys/param.h>
25925 /* Required for MAXSIG */
25927 # include <signal.h>
25929 #if HAVE_SYS_SOCKET_H
25930 # include <sys/socket.h>
25933 # define __APPLE_USE_RFC_3542
25935 #if HAVE_NETINET_IN_H
25936 # include <netinet/in.h>
25938 #ifdef TIME_WITH_SYS_TIME
25939 # include <sys/time.h>
25942 # ifdef HAVE_SYS_TIME_H
25943 # include <sys/time.h>
25947 #endif /* TIME_WITH_SYS_TIME */
25950 # include <net/if.h>
25953 #if HAVE_NET_IF_VAR_H
25954 # include <net/if_var.h>
25958 # include <sys/un.h>
25960 #if HAVE_NETINET_IN_SYSTM_H
25961 # include <netinet/in_systm.h>
25963 #if HAVE_NETINET_IN_VAR_H
25964 # include <netinet/in_var.h>
25966 #if HAVE_NET_IF_DL_H
25967 # include <net/if_dl.h>
25969 #if HAVE_NET_NETOPT_H
25970 # include <net/netopt.h>
25972 #if HAVE_NET_ROUTE_H
25973 # include <net/route.h>
25976 # include <inet/nd.h>
25978 #if HAVE_ARPA_INET_H
25979 # include <arpa/inet.h>
25981 /* Required for IDRP */
25982 #if HAVE_NETINET_IP_ICMP_H
25983 # include <netinet/ip_icmp.h>
25986 #if HAVE_NETINET6_IN6_H
25987 #include <netinet6/in6.h>
25989 #if HAVE_NETINET_IN6_VAR_H
25990 #include <netinet/in6_var.h>
25992 #if HAVE_NETINET_ICMP6_H
25993 # include <netinet/icmp6.h>
25995 #if HAVE_NETINET6_IN6_VAR_H
25996 # include <netinet6/in6_var.h>
25998 #if HAVE_NETINET6_ND6_H
25999 # include <netinet6/nd6.h>
26003 if test "x$ac_cv_header_malloc_h" = xyes; then :
26004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mallinfo is available" >&5
26005 $as_echo_n "checking whether mallinfo is available... " >&6; }
26006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26007 /* end confdefs.h. */
26008 #include <malloc.h>
26012 struct mallinfo ac_x; ac_x = mallinfo ();
26017 if ac_fn_c_try_link "$LINENO"; then :
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26019 $as_echo "yes" >&6; }
26021 $as_echo "#define HAVE_MALLINFO /**/" >>confdefs.h
26024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26025 $as_echo "no" >&6; }
26028 rm -f core conftest.err conftest.$ac_objext \
26029 conftest$ac_exeext conftest.$ac_ext
26035 CONFDATE=`date '+%Y%m%d'`
26038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking directory to use for state file" >&5
26039 $as_echo_n "checking directory to use for state file... " >&6; }
26040 if test "${prefix}" = "NONE"; then
26041 quagga_statedir_prefix="";
26043 quagga_statedir_prefix=${prefix}
26045 if test "${localstatedir}" = '${prefix}/var'; then
26046 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;
26048 test -d $QUAGGA_STATE_DIR && break
26050 quagga_statedir=$QUAGGA_STATE_DIR
26052 quagga_statedir=${localstatedir}
26054 if test $quagga_statedir = "/dev/null"; then
26055 as_fn_error $? "'STATE DIRECTORY NOT FOUND! FIX OR SPECIFY --localstatedir!'" "$LINENO" 5
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${quagga_statedir}" >&5
26058 $as_echo "${quagga_statedir}" >&6; }
26062 cat >>confdefs.h <<_ACEOF
26063 #define PATH_ZEBRA_PID "$quagga_statedir/zebra.pid"
26067 cat >>confdefs.h <<_ACEOF
26068 #define PATH_RIPD_PID "$quagga_statedir/ripd.pid"
26072 cat >>confdefs.h <<_ACEOF
26073 #define PATH_RIPNGD_PID "$quagga_statedir/ripngd.pid"
26077 cat >>confdefs.h <<_ACEOF
26078 #define PATH_BGPD_PID "$quagga_statedir/bgpd.pid"
26082 cat >>confdefs.h <<_ACEOF
26083 #define PATH_OSPFD_PID "$quagga_statedir/ospfd.pid"
26087 cat >>confdefs.h <<_ACEOF
26088 #define PATH_OSPF6D_PID "$quagga_statedir/ospf6d.pid"
26092 cat >>confdefs.h <<_ACEOF
26093 #define PATH_NHRPD_PID "$quagga_statedir/nhrpd.pid"
26097 cat >>confdefs.h <<_ACEOF
26098 #define PATH_ISISD_PID "$quagga_statedir/isisd.pid"
26102 cat >>confdefs.h <<_ACEOF
26103 #define PATH_PIMD_PID "$quagga_statedir/pimd.pid"
26107 cat >>confdefs.h <<_ACEOF
26108 #define PATH_WATCHQUAGGA_PID "$quagga_statedir/watchquagga.pid"
26112 cat >>confdefs.h <<_ACEOF
26113 #define ZEBRA_SERV_PATH "$quagga_statedir/zserv.api"
26117 cat >>confdefs.h <<_ACEOF
26118 #define ZEBRA_VTYSH_PATH "$quagga_statedir/zebra.vty"
26122 cat >>confdefs.h <<_ACEOF
26123 #define RIP_VTYSH_PATH "$quagga_statedir/ripd.vty"
26127 cat >>confdefs.h <<_ACEOF
26128 #define RIPNG_VTYSH_PATH "$quagga_statedir/ripngd.vty"
26132 cat >>confdefs.h <<_ACEOF
26133 #define BGP_VTYSH_PATH "$quagga_statedir/bgpd.vty"
26137 cat >>confdefs.h <<_ACEOF
26138 #define OSPF_VTYSH_PATH "$quagga_statedir/ospfd.vty"
26142 cat >>confdefs.h <<_ACEOF
26143 #define OSPF6_VTYSH_PATH "$quagga_statedir/ospf6d.vty"
26147 cat >>confdefs.h <<_ACEOF
26148 #define NHRP_VTYSH_PATH "$quagga_statedir/nhrpd.vty"
26152 cat >>confdefs.h <<_ACEOF
26153 #define ISIS_VTYSH_PATH "$quagga_statedir/isisd.vty"
26157 cat >>confdefs.h <<_ACEOF
26158 #define PIM_VTYSH_PATH "$quagga_statedir/pimd.vty"
26162 cat >>confdefs.h <<_ACEOF
26163 #define DAEMON_VTY_DIR "$quagga_statedir"
26168 $as_echo "#define QUAGGA_NO_DEPRECATED_INTERFACES 1" >>confdefs.h
26171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working htonl" >&5
26172 $as_echo_n "checking for working htonl... " >&6; }
26173 if ${ac_cv_htonl_works+:} false; then :
26174 $as_echo_n "(cached) " >&6
26176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26177 /* end confdefs.h. */
26180 #define __EXTENSIONS__
26184 # include <stdlib.h>
26185 # include <stddef.h>
26188 # include <stdlib.h>
26191 #if HAVE_SYS_TYPES_H
26192 # include <sys/types.h>
26194 /* sys/conf.h depends on param.h on FBSD at least */
26195 #if HAVE_SYS_PARAM_H
26196 # include <sys/param.h>
26198 /* Required for MAXSIG */
26200 # include <signal.h>
26202 #if HAVE_SYS_SOCKET_H
26203 # include <sys/socket.h>
26206 # define __APPLE_USE_RFC_3542
26208 #if HAVE_NETINET_IN_H
26209 # include <netinet/in.h>
26211 #ifdef TIME_WITH_SYS_TIME
26212 # include <sys/time.h>
26215 # ifdef HAVE_SYS_TIME_H
26216 # include <sys/time.h>
26220 #endif /* TIME_WITH_SYS_TIME */
26223 # include <net/if.h>
26226 #if HAVE_NET_IF_VAR_H
26227 # include <net/if_var.h>
26231 # include <sys/un.h>
26233 #if HAVE_NETINET_IN_SYSTM_H
26234 # include <netinet/in_systm.h>
26236 #if HAVE_NETINET_IN_VAR_H
26237 # include <netinet/in_var.h>
26239 #if HAVE_NET_IF_DL_H
26240 # include <net/if_dl.h>
26242 #if HAVE_NET_NETOPT_H
26243 # include <net/netopt.h>
26245 #if HAVE_NET_ROUTE_H
26246 # include <net/route.h>
26249 # include <inet/nd.h>
26251 #if HAVE_ARPA_INET_H
26252 # include <arpa/inet.h>
26254 /* Required for IDRP */
26255 #if HAVE_NETINET_IP_ICMP_H
26256 # include <netinet/ip_icmp.h>
26259 #if HAVE_NETINET6_IN6_H
26260 #include <netinet6/in6.h>
26262 #if HAVE_NETINET_IN6_VAR_H
26263 #include <netinet/in6_var.h>
26265 #if HAVE_NETINET_ICMP6_H
26266 # include <netinet/icmp6.h>
26268 #if HAVE_NETINET6_IN6_VAR_H
26269 # include <netinet6/in6_var.h>
26271 #if HAVE_NETINET6_ND6_H
26272 # include <netinet6/nd6.h>
26283 if ac_fn_c_try_link "$LINENO"; then :
26284 ac_cv_htonl_works=yes
26286 ac_cv_htonl_works=no
26288 rm -f core conftest.err conftest.$ac_objext \
26289 conftest$ac_exeext conftest.$ac_ext
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_htonl_works" >&5
26295 $as_echo "$ac_cv_htonl_works" >&6; }
26297 ac_config_files="$ac_config_files Makefile lib/Makefile qpb/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 pimd/Makefile nhrpd/Makefile redhat/Makefile pkgsrc/Makefile fpm/Makefile redhat/quagga.spec redhat/quagga.sysconfig lib/version.h isisd/topology/Makefile pkgsrc/bgpd.sh pkgsrc/ospf6d.sh pkgsrc/ospfd.sh pkgsrc/ripd.sh pkgsrc/ripngd.sh pkgsrc/zebra.sh"
26299 ac_config_files="$ac_config_files solaris/Makefile"
26302 ac_config_files="$ac_config_files vtysh/extract.pl"
26304 ## Hack, but working solution to avoid rebuilding of quagga.info.
26305 ## It's already in CVS until texinfo 4.7 is more common.
26306 cat >confcache <<\_ACEOF
26307 # This file is a shell script that caches the results of configure
26308 # tests run on this system so they can be shared between configure
26309 # scripts and configure runs, see configure's option --config-cache.
26310 # It is not useful on other systems. If it contains results you don't
26311 # want to keep, you may remove or edit it.
26313 # config.status only pays attention to the cache file if you give it
26314 # the --recheck option to rerun configure.
26316 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26317 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26318 # following values.
26322 # The following way of writing the cache mishandles newlines in values,
26323 # but we know of no workaround that is simple, portable, and efficient.
26324 # So, we kill variables containing newlines.
26325 # Ultrix sh set writes to stderr and can't be redirected directly,
26326 # and sets the high bit in the cache file unless we assign to the vars.
26328 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26329 eval ac_val=\$$ac_var
26333 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26334 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26337 _ | IFS | as_nl) ;; #(
26338 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26339 *) { eval $ac_var=; unset $ac_var;} ;;
26345 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26346 *${as_nl}ac_space=\ *)
26347 # `set' does not quote correctly, so add quotes: double-quote
26348 # substitution turns \\\\ into \\, and sed turns \\ into \.
26351 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26354 # `set' quotes correctly as required by POSIX, so do not add quotes.
26355 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26364 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26366 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26368 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26369 if test -w "$cache_file"; then
26370 if test "x$cache_file" != "x/dev/null"; then
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26372 $as_echo "$as_me: updating cache $cache_file" >&6;}
26373 if test ! -f "$cache_file" || test -h "$cache_file"; then
26374 cat confcache >"$cache_file"
26376 case $cache_file in #(
26378 mv -f confcache "$cache_file"$$ &&
26379 mv -f "$cache_file"$$ "$cache_file" ;; #(
26381 mv -f confcache "$cache_file" ;;
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26387 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26392 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26393 # Let make expand exec_prefix.
26394 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26396 DEFS=-DHAVE_CONFIG_H
26401 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26402 # 1. Remove the extension, and $U if already installed.
26403 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26404 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26405 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26406 # will be set to the directory where LIBOBJS objects are built.
26407 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26408 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26410 LIBOBJS=$ac_libobjs
26412 LTLIBOBJS=$ac_ltlibobjs
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26416 $as_echo_n "checking that generated files are newer than configure... " >&6; }
26417 if test -n "$am_sleep_pid"; then
26418 # Hide warnings about reused PIDs.
26419 wait $am_sleep_pid 2>/dev/null
26421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26422 $as_echo "done" >&6; }
26423 if test -n "$EXEEXT"; then
26425 am__EXEEXT_FALSE='#'
26427 am__EXEEXT_TRUE='#'
26431 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26432 as_fn_error $? "conditional \"AMDEP\" was never defined.
26433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26435 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26436 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26439 if test -z "${HAVE_LATEX_TRUE}" && test -z "${HAVE_LATEX_FALSE}"; then
26440 as_fn_error $? "conditional \"HAVE_LATEX\" was never defined.
26441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26443 if test -z "${HAVE_PANDOC_TRUE}" && test -z "${HAVE_PANDOC_FALSE}"; then
26444 as_fn_error $? "conditional \"HAVE_PANDOC\" was never defined.
26445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26447 if test -z "${DEV_BUILD_TRUE}" && test -z "${DEV_BUILD_FALSE}"; then
26448 as_fn_error $? "conditional \"DEV_BUILD\" was never defined.
26449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26451 if test -z "${HAVE_PROTOBUF_TRUE}" && test -z "${HAVE_PROTOBUF_FALSE}"; then
26452 as_fn_error $? "conditional \"HAVE_PROTOBUF\" was never defined.
26453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26455 if test -z "${GIT_VERSION_TRUE}" && test -z "${GIT_VERSION_FALSE}"; then
26456 as_fn_error $? "conditional \"GIT_VERSION\" was never defined.
26457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26459 if test -z "${VTYSH_TRUE}" && test -z "${VTYSH_FALSE}"; then
26460 as_fn_error $? "conditional \"VTYSH\" was never defined.
26461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26464 if test -z "${HAVE_NETLINK_TRUE}" && test -z "${HAVE_NETLINK_FALSE}"; then
26465 as_fn_error $? "conditional \"HAVE_NETLINK\" was never defined.
26466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26468 if test -z "${ZEBRA_TRUE}" && test -z "${ZEBRA_FALSE}"; then
26469 as_fn_error $? "conditional \"ZEBRA\" was never defined.
26470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26472 if test -z "${BGPD_TRUE}" && test -z "${BGPD_FALSE}"; then
26473 as_fn_error $? "conditional \"BGPD\" was never defined.
26474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26476 if test -z "${RIPD_TRUE}" && test -z "${RIPD_FALSE}"; then
26477 as_fn_error $? "conditional \"RIPD\" was never defined.
26478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26480 if test -z "${OSPFD_TRUE}" && test -z "${OSPFD_FALSE}"; then
26481 as_fn_error $? "conditional \"OSPFD\" was never defined.
26482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26484 if test -z "${NHRPD_TRUE}" && test -z "${NHRPD_FALSE}"; then
26485 as_fn_error $? "conditional \"NHRPD\" was never defined.
26486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26488 if test -z "${WATCHQUAGGA_TRUE}" && test -z "${WATCHQUAGGA_FALSE}"; then
26489 as_fn_error $? "conditional \"WATCHQUAGGA\" was never defined.
26490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26492 if test -z "${OSPFCLIENT_TRUE}" && test -z "${OSPFCLIENT_FALSE}"; then
26493 as_fn_error $? "conditional \"OSPFCLIENT\" was never defined.
26494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26496 if test -z "${RIPNGD_TRUE}" && test -z "${RIPNGD_FALSE}"; then
26497 as_fn_error $? "conditional \"RIPNGD\" was never defined.
26498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26500 if test -z "${OSPF6D_TRUE}" && test -z "${OSPF6D_FALSE}"; then
26501 as_fn_error $? "conditional \"OSPF6D\" was never defined.
26502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26504 if test -z "${ISISD_TRUE}" && test -z "${ISISD_FALSE}"; then
26505 as_fn_error $? "conditional \"ISISD\" was never defined.
26506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26508 if test -z "${PIMD_TRUE}" && test -z "${PIMD_FALSE}"; then
26509 as_fn_error $? "conditional \"PIMD\" was never defined.
26510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26513 : "${CONFIG_STATUS=./config.status}"
26515 ac_clean_files_save=$ac_clean_files
26516 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26517 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26518 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26520 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26522 # Generated by $as_me.
26523 # Run this file to recreate the current configuration.
26524 # Compiler output produced by configure, useful for debugging
26525 # configure, is in config.log if it exists.
26528 ac_cs_recheck=false
26531 SHELL=\${CONFIG_SHELL-$SHELL}
26534 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26535 ## -------------------- ##
26536 ## M4sh Initialization. ##
26537 ## -------------------- ##
26539 # Be more Bourne compatible
26540 DUALCASE=1; export DUALCASE # for MKS sh
26541 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26544 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26545 # is contrary to our usage. Disable this feature.
26546 alias -g '${1+"$@"}'='"$@"'
26547 setopt NO_GLOB_SUBST
26549 case `(set -o) 2>/dev/null` in #(
26561 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26562 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26563 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26564 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26565 # Prefer a ksh shell builtin over an external printf program on Solaris,
26566 # but without wasting forks for bash or zsh.
26567 if test -z "$BASH_VERSION$ZSH_VERSION" \
26568 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26569 as_echo='print -r --'
26570 as_echo_n='print -rn --'
26571 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26572 as_echo='printf %s\n'
26573 as_echo_n='printf %s'
26575 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26576 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26577 as_echo_n='/usr/ucb/echo -n'
26579 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26580 as_echo_n_body='eval
26584 expr "X$arg" : "X\\(.*\\)$as_nl";
26585 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26587 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26589 export as_echo_n_body
26590 as_echo_n='sh -c $as_echo_n_body as_echo'
26592 export as_echo_body
26593 as_echo='sh -c $as_echo_body as_echo'
26596 # The user is always right.
26597 if test "${PATH_SEPARATOR+set}" != set; then
26599 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26600 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26607 # We need space, tab and new line, in precisely that order. Quoting is
26608 # there to prevent editors from complaining about space-tab.
26609 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26610 # splitting by setting IFS to empty value.)
26613 # Find who we are. Look in the path if we contain no directory separator.
26616 *[\\/]* ) as_myself=$0 ;;
26617 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26618 for as_dir in $PATH
26621 test -z "$as_dir" && as_dir=.
26622 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26628 # We did not find ourselves, most probably we were run as `sh COMMAND'
26629 # in which case we are not to be found in the path.
26630 if test "x$as_myself" = x; then
26633 if test ! -f "$as_myself"; then
26634 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26638 # Unset variables that we do not need and which cause bugs (e.g. in
26639 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26640 # suppresses any "Segmentation fault" message there. '((' could
26641 # trigger a bug in pdksh 5.2.14.
26642 for as_var in BASH_ENV ENV MAIL MAILPATH
26643 do eval test x\${$as_var+set} = xset \
26644 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26657 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26660 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26661 # ----------------------------------------
26662 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26663 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26664 # script with STATUS, using 1 if that was 0.
26667 as_status=$1; test $as_status -eq 0 && as_status=1
26669 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26670 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26672 $as_echo "$as_me: error: $2" >&2
26673 as_fn_exit $as_status
26677 # as_fn_set_status STATUS
26678 # -----------------------
26679 # Set $? to STATUS, without forking.
26680 as_fn_set_status ()
26683 } # as_fn_set_status
26685 # as_fn_exit STATUS
26686 # -----------------
26687 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26691 as_fn_set_status $1
26697 # Portably unset VAR.
26700 { eval $1=; unset $1;}
26702 as_unset=as_fn_unset
26703 # as_fn_append VAR VALUE
26704 # ----------------------
26705 # Append the text in VALUE to the end of the definition contained in VAR. Take
26706 # advantage of any shell optimizations that allow amortized linear growth over
26707 # repeated appends, instead of the typical quadratic growth present in naive
26709 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26710 eval 'as_fn_append ()
26721 # as_fn_arith ARG...
26722 # ------------------
26723 # Perform arithmetic evaluation on the ARGs, and store the result in the
26724 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26725 # must be portable across $(()) and expr.
26726 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26727 eval 'as_fn_arith ()
26734 as_val=`expr "$@" || test $? -eq 1`
26739 if expr a : '\(a\)' >/dev/null 2>&1 &&
26740 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26746 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26747 as_basename=basename
26752 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26758 as_me=`$as_basename -- "$0" ||
26759 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26760 X"$0" : 'X\(//\)$' \| \
26761 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26763 sed '/^.*\/\([^/][^/]*\)\/*$/{
26777 # Avoid depending upon Character Ranges.
26778 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26779 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26780 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26781 as_cr_digits='0123456789'
26782 as_cr_alnum=$as_cr_Letters$as_cr_digits
26784 ECHO_C= ECHO_N= ECHO_T=
26785 case `echo -n x` in #(((((
26787 case `echo 'xy\c'` in
26788 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26790 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26797 rm -f conf$$ conf$$.exe conf$$.file
26798 if test -d conf$$.dir; then
26799 rm -f conf$$.dir/conf$$.file
26802 mkdir conf$$.dir 2>/dev/null
26804 if (echo >conf$$.file) 2>/dev/null; then
26805 if ln -s conf$$.file conf$$ 2>/dev/null; then
26807 # ... but there are two gotchas:
26808 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26809 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26810 # In both cases, we have to default to `cp -pR'.
26811 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26813 elif ln conf$$.file conf$$ 2>/dev/null; then
26821 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26822 rmdir conf$$.dir 2>/dev/null
26827 # Create "$as_dir" as a directory, including parents if necessary.
26832 -*) as_dir=./$as_dir;;
26834 test -d "$as_dir" || eval $as_mkdir_p || {
26838 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26839 *) as_qdir=$as_dir;;
26841 as_dirs="'$as_qdir' $as_dirs"
26842 as_dir=`$as_dirname -- "$as_dir" ||
26843 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26844 X"$as_dir" : 'X\(//\)[^/]' \| \
26845 X"$as_dir" : 'X\(//\)$' \| \
26846 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26847 $as_echo X"$as_dir" |
26848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26852 /^X\(\/\/\)[^/].*/{
26865 test -d "$as_dir" && break
26867 test -z "$as_dirs" || eval "mkdir $as_dirs"
26868 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26872 if mkdir -p . 2>/dev/null; then
26873 as_mkdir_p='mkdir -p "$as_dir"'
26875 test -d ./-p && rmdir ./-p
26880 # as_fn_executable_p FILE
26881 # -----------------------
26882 # Test if FILE is an executable regular file.
26883 as_fn_executable_p ()
26885 test -f "$1" && test -x "$1"
26886 } # as_fn_executable_p
26887 as_test_x='test -x'
26888 as_executable_p=as_fn_executable_p
26890 # Sed expression to map a string onto a valid CPP name.
26891 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26893 # Sed expression to map a string onto a valid variable name.
26894 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26898 ## ----------------------------------- ##
26899 ## Main body of $CONFIG_STATUS script. ##
26900 ## ----------------------------------- ##
26902 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26905 # Save the log message, to keep $0 and so on meaningful, and to
26906 # report actual input values of CONFIG_FILES etc. instead of their
26907 # values after options handling.
26909 This file was extended by Quagga $as_me 1.2.4, which was
26910 generated by GNU Autoconf 2.69. Invocation command line was
26912 CONFIG_FILES = $CONFIG_FILES
26913 CONFIG_HEADERS = $CONFIG_HEADERS
26914 CONFIG_LINKS = $CONFIG_LINKS
26915 CONFIG_COMMANDS = $CONFIG_COMMANDS
26918 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26923 case $ac_config_files in *"
26924 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26927 case $ac_config_headers in *"
26928 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26933 # Files that config.status was made for.
26934 config_files="$ac_config_files"
26935 config_headers="$ac_config_headers"
26936 config_commands="$ac_config_commands"
26940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26942 \`$as_me' instantiates files and other configuration actions
26943 from templates according to the current configuration. Unless the files
26944 and actions are specified as TAGs, all are instantiated by default.
26946 Usage: $0 [OPTION]... [TAG]...
26948 -h, --help print this help, then exit
26949 -V, --version print version number and configuration settings, then exit
26950 --config print configuration, then exit
26951 -q, --quiet, --silent
26952 do not print progress messages
26953 -d, --debug don't remove temporary files
26954 --recheck update $as_me by reconfiguring in the same conditions
26955 --file=FILE[:TEMPLATE]
26956 instantiate the configuration file FILE
26957 --header=FILE[:TEMPLATE]
26958 instantiate the configuration header FILE
26960 Configuration files:
26963 Configuration headers:
26966 Configuration commands:
26969 Report bugs to <https://bugzilla.quagga.net>."
26972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26973 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26975 Quagga config.status 1.2.4
26976 configured by $0, generated by GNU Autoconf 2.69,
26977 with options \\"\$ac_cs_config\\"
26979 Copyright (C) 2012 Free Software Foundation, Inc.
26980 This config.status script is free software; the Free Software Foundation
26981 gives unlimited permission to copy, distribute and modify it."
26988 test -n "\$AWK" || AWK=awk
26991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26992 # The default lists apply if the user does not specify any file.
26998 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26999 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27003 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27015 # Handling of the options.
27016 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27018 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27019 $as_echo "$ac_cs_version"; exit ;;
27020 --config | --confi | --conf | --con | --co | --c )
27021 $as_echo "$ac_cs_config"; exit ;;
27022 --debug | --debu | --deb | --de | --d | -d )
27024 --file | --fil | --fi | --f )
27027 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27028 '') as_fn_error $? "missing file argument" ;;
27030 as_fn_append CONFIG_FILES " '$ac_optarg'"
27031 ac_need_defaults=false;;
27032 --header | --heade | --head | --hea )
27035 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27037 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27038 ac_need_defaults=false;;
27040 # Conflict between --help and --header
27041 as_fn_error $? "ambiguous option: \`$1'
27042 Try \`$0 --help' for more information.";;
27043 --help | --hel | -h )
27044 $as_echo "$ac_cs_usage"; exit ;;
27045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27046 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27049 # This is an error.
27050 -*) as_fn_error $? "unrecognized option: \`$1'
27051 Try \`$0 --help' for more information." ;;
27053 *) as_fn_append ac_config_targets " $1"
27054 ac_need_defaults=false ;;
27060 ac_configure_extra_args=
27062 if $ac_cs_silent; then
27064 ac_configure_extra_args="$ac_configure_extra_args --silent"
27068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27069 if \$ac_cs_recheck; then
27070 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27072 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27073 CONFIG_SHELL='$SHELL'
27074 export CONFIG_SHELL
27079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27083 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27084 ## Running $as_me. ##
27090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27094 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27097 # The HP-UX ksh and POSIX shell print the target directory to stdout
27098 # if CDPATH is set.
27099 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27101 sed_quote_subst='$sed_quote_subst'
27102 double_quote_subst='$double_quote_subst'
27103 delay_variable_subst='$delay_variable_subst'
27104 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27105 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27106 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27107 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27108 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27109 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27110 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27111 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27112 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27113 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27114 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27115 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27116 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27117 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27118 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27119 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27120 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27121 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27122 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27123 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27124 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27125 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27126 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27127 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27128 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27129 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27130 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27131 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27132 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27133 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27134 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27135 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27136 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27137 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27138 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27139 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27140 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27141 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27142 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27143 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27144 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27145 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27146 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27147 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27148 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27149 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27150 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27151 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27152 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27153 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27154 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27155 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27156 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27157 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27158 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27159 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27160 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27161 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27162 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
27163 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27164 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27165 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27166 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27167 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27168 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27169 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27170 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27171 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27172 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27173 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27174 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27175 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27176 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27177 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27178 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27179 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27180 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27181 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27182 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27183 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27184 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27185 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27186 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27187 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27188 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27189 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27190 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27191 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27192 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27193 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27194 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27195 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27196 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27197 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27198 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27199 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27200 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27201 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27202 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27203 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27204 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27205 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27206 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27207 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27208 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27209 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27210 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27211 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27212 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27213 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27214 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27215 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27216 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27217 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27218 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27219 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27220 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27221 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27222 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27223 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27224 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27225 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27226 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27227 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27228 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27229 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27230 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27231 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27232 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27233 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27234 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27235 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27236 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27237 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27238 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27241 LTCFLAGS='$LTCFLAGS'
27242 compiler='$compiler_DEFAULT'
27244 # A function that is used when there is no print builtin or printf.
27245 func_fallback_echo ()
27247 eval 'cat <<_LTECHO_EOF
27252 # Quote evaled strings.
27267 deplibs_check_method \
27272 sharedlib_from_linklib_cmd \
27275 archiver_list_spec \
27281 lt_cv_sys_global_symbol_pipe \
27282 lt_cv_sys_global_symbol_to_cdecl \
27283 lt_cv_sys_global_symbol_to_import \
27284 lt_cv_sys_global_symbol_to_c_name_address \
27285 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27286 lt_cv_nm_interface \
27287 nm_file_list_spec \
27288 lt_cv_truncate_bin \
27289 lt_prog_compiler_no_builtin_flag \
27290 lt_prog_compiler_pic \
27291 lt_prog_compiler_wl \
27292 lt_prog_compiler_static \
27293 lt_cv_prog_compiler_c_o \
27302 export_dynamic_flag_spec \
27303 whole_archive_flag_spec \
27304 compiler_needs_object \
27306 allow_undefined_flag \
27307 no_undefined_flag \
27308 hardcode_libdir_flag_spec \
27309 hardcode_libdir_separator \
27313 variables_saved_for_relink \
27315 library_names_spec \
27317 install_override_mode \
27321 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27322 *[\\\\\\\`\\"\\\$]*)
27323 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27326 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27331 # Double-quote double-evaled strings.
27332 for var in reload_cmds \
27333 old_postinstall_cmds \
27334 old_postuninstall_cmds \
27336 extract_expsyms_cmds \
27337 old_archive_from_new_cmds \
27338 old_archive_from_expsyms_cmds \
27340 archive_expsym_cmds \
27342 module_expsym_cmds \
27343 export_symbols_cmds \
27347 postuninstall_cmds \
27349 sys_lib_search_path_spec \
27350 configure_time_dlsearch_path \
27351 configure_time_lt_sys_library_path; do
27352 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27353 *[\\\\\\\`\\"\\\$]*)
27354 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27357 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27362 ac_aux_dir='$ac_aux_dir'
27364 # See if we are running on zsh, and set the options that allow our
27365 # commands through without removal of \ escapes INIT.
27366 if test -n "\${ZSH_VERSION+set}"; then
27367 setopt NO_GLOB_SUBST
27376 ac_aux_dir='$ac_aux_dir'
27382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27384 # Handling of arguments.
27385 for ac_config_target in $ac_config_targets
27387 case $ac_config_target in
27388 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27389 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27390 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27391 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27392 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27393 "qpb/Makefile") CONFIG_FILES="$CONFIG_FILES qpb/Makefile" ;;
27394 "zebra/Makefile") CONFIG_FILES="$CONFIG_FILES zebra/Makefile" ;;
27395 "ripd/Makefile") CONFIG_FILES="$CONFIG_FILES ripd/Makefile" ;;
27396 "ripngd/Makefile") CONFIG_FILES="$CONFIG_FILES ripngd/Makefile" ;;
27397 "bgpd/Makefile") CONFIG_FILES="$CONFIG_FILES bgpd/Makefile" ;;
27398 "ospfd/Makefile") CONFIG_FILES="$CONFIG_FILES ospfd/Makefile" ;;
27399 "watchquagga/Makefile") CONFIG_FILES="$CONFIG_FILES watchquagga/Makefile" ;;
27400 "ospf6d/Makefile") CONFIG_FILES="$CONFIG_FILES ospf6d/Makefile" ;;
27401 "isisd/Makefile") CONFIG_FILES="$CONFIG_FILES isisd/Makefile" ;;
27402 "vtysh/Makefile") CONFIG_FILES="$CONFIG_FILES vtysh/Makefile" ;;
27403 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27404 "ospfclient/Makefile") CONFIG_FILES="$CONFIG_FILES ospfclient/Makefile" ;;
27405 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27406 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
27407 "pimd/Makefile") CONFIG_FILES="$CONFIG_FILES pimd/Makefile" ;;
27408 "nhrpd/Makefile") CONFIG_FILES="$CONFIG_FILES nhrpd/Makefile" ;;
27409 "redhat/Makefile") CONFIG_FILES="$CONFIG_FILES redhat/Makefile" ;;
27410 "pkgsrc/Makefile") CONFIG_FILES="$CONFIG_FILES pkgsrc/Makefile" ;;
27411 "fpm/Makefile") CONFIG_FILES="$CONFIG_FILES fpm/Makefile" ;;
27412 "redhat/quagga.spec") CONFIG_FILES="$CONFIG_FILES redhat/quagga.spec" ;;
27413 "redhat/quagga.sysconfig") CONFIG_FILES="$CONFIG_FILES redhat/quagga.sysconfig" ;;
27414 "lib/version.h") CONFIG_FILES="$CONFIG_FILES lib/version.h" ;;
27415 "isisd/topology/Makefile") CONFIG_FILES="$CONFIG_FILES isisd/topology/Makefile" ;;
27416 "pkgsrc/bgpd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/bgpd.sh" ;;
27417 "pkgsrc/ospf6d.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ospf6d.sh" ;;
27418 "pkgsrc/ospfd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ospfd.sh" ;;
27419 "pkgsrc/ripd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ripd.sh" ;;
27420 "pkgsrc/ripngd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ripngd.sh" ;;
27421 "pkgsrc/zebra.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/zebra.sh" ;;
27422 "solaris/Makefile") CONFIG_FILES="$CONFIG_FILES solaris/Makefile" ;;
27423 "vtysh/extract.pl") CONFIG_FILES="$CONFIG_FILES vtysh/extract.pl" ;;
27425 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27430 # If the user did not use the arguments to specify the items to instantiate,
27431 # then the envvar interface is used. Set only those that are not.
27432 # We use the long form for the default assignment because of an extremely
27433 # bizarre bug on SunOS 4.1.3.
27434 if $ac_need_defaults; then
27435 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27436 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27437 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27440 # Have a temporary directory for convenience. Make it in the build tree
27441 # simply because there is no reason against having it here, and in addition,
27442 # creating and moving files from /tmp can sometimes cause problems.
27443 # Hook for its removal unless debugging.
27444 # Note that there is a small window in which the directory will not be cleaned:
27445 # after its creation but before its name has been assigned to `$tmp'.
27449 trap 'exit_status=$?
27450 : "${ac_tmp:=$tmp}"
27451 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27453 trap 'as_fn_exit 1' 1 2 13 15
27455 # Create a (secure) tmp directory for tmp files.
27458 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27462 tmp=./conf$$-$RANDOM
27463 (umask 077 && mkdir "$tmp")
27464 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27467 # Set up the scripts for CONFIG_FILES section.
27468 # No need to generate them if there are no CONFIG_FILES.
27469 # This happens for instance with `./config.status config.h'.
27470 if test -n "$CONFIG_FILES"; then
27473 ac_cr=`echo X | tr X '\015'`
27474 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27475 # But we know of no other shell where ac_cr would be empty at this
27476 # point, so we can use a bashism as a fallback.
27477 if test "x$ac_cr" = x; then
27478 eval ac_cr=\$\'\\r\'
27480 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27481 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27484 ac_cs_awk_cr=$ac_cr
27487 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27492 echo "cat >conf$$subs.awk <<_ACEOF" &&
27493 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27495 } >conf$$subs.sh ||
27496 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27497 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27499 for ac_last_try in false false false false false :; do
27500 . ./conf$$subs.sh ||
27501 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27503 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27504 if test $ac_delim_n = $ac_delim_num; then
27506 elif $ac_last_try; then
27507 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27509 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27512 rm -f conf$$subs.sh
27514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27515 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27519 s/^/S["/; s/!.*/"]=/
27529 s/\(.\{148\}\)..*/\1/
27531 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27536 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27543 s/\(.\{148\}\)..*/\1/
27545 s/["\\]/\\&/g; s/^/"/; s/$/"/
27549 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27554 ' <conf$$subs.awk | sed '
27559 ' >>$CONFIG_STATUS || ac_write_fail=1
27560 rm -f conf$$subs.awk
27561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27563 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27564 for (key in S) S_is_set[key] = 1
27570 nfields = split(line, field, "@")
27572 len = length(field[1])
27573 for (i = 2; i < nfields; i++) {
27575 keylen = length(key)
27576 if (S_is_set[key]) {
27578 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27579 len += length(value) + length(field[++i])
27590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27591 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27592 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27595 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27596 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27599 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27600 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27601 # trailing colons and then remove the whole line if VPATH becomes empty
27602 # (actually we leave an empty line to preserve line numbers).
27603 if test "x$srcdir" = x.; then
27604 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
27622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27623 fi # test -n "$CONFIG_FILES"
27625 # Set up the scripts for CONFIG_HEADERS section.
27626 # No need to generate them if there are no CONFIG_HEADERS.
27627 # This happens for instance with `./config.status Makefile'.
27628 if test -n "$CONFIG_HEADERS"; then
27629 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27633 # Transform confdefs.h into an awk script `defines.awk', embedded as
27634 # here-document in config.status, that substitutes the proper values into
27635 # config.h.in to produce config.h.
27637 # Create a delimiter string that does not exist in confdefs.h, to ease
27638 # handling of long lines.
27640 for ac_last_try in false false :; do
27641 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27642 if test -z "$ac_tt"; then
27644 elif $ac_last_try; then
27645 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27647 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27651 # For the awk script, D is an array of macro values keyed by name,
27652 # likewise P contains macro parameters if any. Preserve backslash
27653 # newline sequences.
27655 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27657 s/.\{148\}/&'"$ac_delim"'/g
27660 s/^[ ]*#[ ]*define[ ][ ]*/ /
27667 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27669 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27673 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27674 D["\1"]=" \3\\\\\\n"\\/p
27676 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27681 s/.\{148\}/&'"$ac_delim"'/g
27686 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27689 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27691 ' <confdefs.h | sed '
27692 s/'"$ac_delim"'/"\\\
27693 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27696 for (key in D) D_is_set[key] = 1
27699 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27701 split(line, arg, " ")
27702 if (arg[1] == "#") {
27706 defundef = substr(arg[1], 2)
27709 split(mac1, mac2, "(") #)
27711 prefix = substr(line, 1, index(line, defundef) - 1)
27712 if (D_is_set[macro]) {
27713 # Preserve the white space surrounding the "#".
27714 print prefix "define", macro P[macro] D[macro]
27717 # Replace #undef with comments. This is necessary, for example,
27718 # in the case of _POSIX_SOURCE, which is predefined and required
27719 # on some systems where configure will not decide to define it.
27720 if (defundef == "undef") {
27721 print "/*", prefix defundef, macro, "*/"
27729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27730 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27731 fi # test -n "$CONFIG_HEADERS"
27734 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27739 :[FHLC]) ac_mode=$ac_tag; continue;;
27741 case $ac_mode$ac_tag in
27743 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27744 :[FH]-) ac_tag=-:-;;
27745 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27762 -) ac_f="$ac_tmp/stdin";;
27763 *) # Look for the file first in the build tree, then in the source tree
27764 # (if the path is not absolute). The absolute path cannot be DOS-style,
27765 # because $ac_f cannot contain `:'.
27769 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27771 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27773 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27774 as_fn_append ac_file_inputs " '$ac_f'"
27777 # Let's still pretend it is `configure' which instantiates (i.e., don't
27778 # use $as_me), people would be surprised to read:
27779 # /* config.h. Generated by config.status. */
27780 configure_input='Generated from '`
27781 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27783 if test x"$ac_file" != x-; then
27784 configure_input="$ac_file. $configure_input"
27785 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27786 $as_echo "$as_me: creating $ac_file" >&6;}
27788 # Neutralize special characters interpreted by sed in replacement strings.
27789 case $configure_input in #(
27790 *\&* | *\|* | *\\* )
27791 ac_sed_conf_input=`$as_echo "$configure_input" |
27792 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27793 *) ac_sed_conf_input=$configure_input;;
27797 *:-:* | *:-) cat >"$ac_tmp/stdin" \
27798 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27803 ac_dir=`$as_dirname -- "$ac_file" ||
27804 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27805 X"$ac_file" : 'X\(//\)[^/]' \| \
27806 X"$ac_file" : 'X\(//\)$' \| \
27807 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27808 $as_echo X"$ac_file" |
27809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27813 /^X\(\/\/\)[^/].*/{
27826 as_dir="$ac_dir"; as_fn_mkdir_p
27830 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27832 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27833 # A ".." for each directory in $ac_dir_suffix.
27834 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27835 case $ac_top_builddir_sub in
27836 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27837 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27840 ac_abs_top_builddir=$ac_pwd
27841 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27842 # for backward compatibility:
27843 ac_top_builddir=$ac_top_build_prefix
27846 .) # We are building in place.
27848 ac_top_srcdir=$ac_top_builddir_sub
27849 ac_abs_top_srcdir=$ac_pwd ;;
27850 [\\/]* | ?:[\\/]* ) # Absolute name.
27851 ac_srcdir=$srcdir$ac_dir_suffix;
27852 ac_top_srcdir=$srcdir
27853 ac_abs_top_srcdir=$srcdir ;;
27854 *) # Relative name.
27855 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27856 ac_top_srcdir=$ac_top_build_prefix$srcdir
27857 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27859 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27869 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27870 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27872 ac_MKDIR_P=$MKDIR_P
27874 [\\/$]* | ?:[\\/]* ) ;;
27875 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27880 # If the template does not know about datarootdir, expand it.
27881 # FIXME: This hack should be removed a few years after 2.60.
27882 ac_datarootdir_hack=; ac_datarootdir_seen=
27893 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27894 *datarootdir*) ac_datarootdir_seen=yes;;
27895 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27897 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27900 ac_datarootdir_hack='
27901 s&@datadir@&$datadir&g
27902 s&@docdir@&$docdir&g
27903 s&@infodir@&$infodir&g
27904 s&@localedir@&$localedir&g
27905 s&@mandir@&$mandir&g
27906 s&\\\${datarootdir}&$datarootdir&g' ;;
27910 # Neutralize VPATH when `$srcdir' = `.'.
27911 # Shell code in configure.ac might set extrasub.
27912 # FIXME: do we really want to maintain this feature?
27913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27914 ac_sed_extra="$ac_vpsub
27917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27919 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27920 s|@configure_input@|$ac_sed_conf_input|;t t
27921 s&@top_builddir@&$ac_top_builddir_sub&;t t
27922 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27923 s&@srcdir@&$ac_srcdir&;t t
27924 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27925 s&@top_srcdir@&$ac_top_srcdir&;t t
27926 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27927 s&@builddir@&$ac_builddir&;t t
27928 s&@abs_builddir@&$ac_abs_builddir&;t t
27929 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27930 s&@INSTALL@&$ac_INSTALL&;t t
27931 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27932 $ac_datarootdir_hack
27934 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27935 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27937 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27938 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27939 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
27940 "$ac_tmp/out"`; test -z "$ac_out"; } &&
27941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27942 which seems to be undefined. Please make sure it is defined" >&5
27943 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27944 which seems to be undefined. Please make sure it is defined" >&2;}
27946 rm -f "$ac_tmp/stdin"
27948 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27949 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27951 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27957 if test x"$ac_file" != x-; then
27959 $as_echo "/* $configure_input */" \
27960 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27961 } >"$ac_tmp/config.h" \
27962 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27963 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27964 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27965 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27968 mv "$ac_tmp/config.h" "$ac_file" \
27969 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27972 $as_echo "/* $configure_input */" \
27973 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27974 || as_fn_error $? "could not create -" "$LINENO" 5
27976 # Compute "$ac_file"'s index in $config_headers.
27979 for _am_header in $config_headers :; do
27980 case $_am_header in
27981 $_am_arg | $_am_arg:* )
27984 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27987 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27988 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27989 X"$_am_arg" : 'X\(//\)[^/]' \| \
27990 X"$_am_arg" : 'X\(//\)$' \| \
27991 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27992 $as_echo X"$_am_arg" |
27993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27997 /^X\(\/\/\)[^/].*/{
28009 s/.*/./; q'`/stamp-h$_am_stamp_count
28012 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28013 $as_echo "$as_me: executing $ac_file commands" >&6;}
28018 case $ac_file$ac_mode in
28019 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28020 # Older Autoconf quotes --file arguments for eval, but not when files
28021 # are listed without --file. Let's play safe and only enable the eval
28022 # if we detect the quoting.
28023 case $CONFIG_FILES in
28024 *\'*) eval set x "$CONFIG_FILES" ;;
28025 *) set x $CONFIG_FILES ;;
28030 # Strip MF so we end up with the name of the file.
28031 mf=`echo "$mf" | sed -e 's/:.*$//'`
28032 # Check whether this is an Automake generated Makefile or not.
28033 # We used to match only the files named 'Makefile.in', but
28034 # some people rename them; so instead we look at the file content.
28035 # Grep'ing the first line is not enough: some people post-process
28036 # each Makefile.in and add a new line on top of each file to say so.
28037 # Grep'ing the whole file is not good either: AIX grep has a line
28038 # limit of 2048, but all sed's we know have understand at least 4000.
28039 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28040 dirpart=`$as_dirname -- "$mf" ||
28041 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28042 X"$mf" : 'X\(//\)[^/]' \| \
28043 X"$mf" : 'X\(//\)$' \| \
28044 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28050 /^X\(\/\/\)[^/].*/{
28066 # Extract the definition of DEPDIR, am__include, and am__quote
28067 # from the Makefile without running 'make'.
28068 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28069 test -z "$DEPDIR" && continue
28070 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28071 test -z "$am__include" && continue
28072 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28073 # Find all dependency output files, they are included files with
28074 # $(DEPDIR) in their names. We invoke sed twice because it is the
28075 # simplest approach to changing $(DEPDIR) to its actual value in the
28077 for file in `sed -n "
28078 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28079 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28080 # Make sure the directory exists.
28081 test -f "$dirpart/$file" && continue
28082 fdir=`$as_dirname -- "$file" ||
28083 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28084 X"$file" : 'X\(//\)[^/]' \| \
28085 X"$file" : 'X\(//\)$' \| \
28086 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28087 $as_echo X"$file" |
28088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28092 /^X\(\/\/\)[^/].*/{
28105 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28106 # echo "creating $dirpart/$file"
28107 echo '# dummy' > "$dirpart/$file"
28114 # See if we are running on zsh, and set the options that allow our
28115 # commands through without removal of \ escapes.
28116 if test -n "${ZSH_VERSION+set}"; then
28117 setopt NO_GLOB_SUBST
28121 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28124 cat <<_LT_EOF >> "$cfgfile"
28126 # Generated automatically by $as_me ($PACKAGE) $VERSION
28127 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28128 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28130 # Provide generalized library-building support services.
28131 # Written by Gordon Matzigkeit, 1996
28133 # Copyright (C) 2014 Free Software Foundation, Inc.
28134 # This is free software; see the source for copying conditions. There is NO
28135 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28137 # GNU Libtool is free software; you can redistribute it and/or modify
28138 # it under the terms of the GNU General Public License as published by
28139 # the Free Software Foundation; either version 2 of of the License, or
28140 # (at your option) any later version.
28142 # As a special exception to the GNU General Public License, if you
28143 # distribute this file as part of a program or library that is built
28144 # using GNU Libtool, you may include this file under the same
28145 # distribution terms that you use for the rest of that program.
28147 # GNU Libtool is distributed in the hope that it will be useful, but
28148 # WITHOUT ANY WARRANTY; without even the implied warranty of
28149 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28150 # GNU General Public License for more details.
28152 # You should have received a copy of the GNU General Public License
28153 # along with this program. If not, see <http://www.gnu.org/licenses/>.
28156 # The names of the tagged configurations supported by this script.
28159 # Configured defaults for sys_lib_dlsearch_path munging.
28160 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28162 # ### BEGIN LIBTOOL CONFIG
28164 # Which release of libtool.m4 was used?
28165 macro_version=$macro_version
28166 macro_revision=$macro_revision
28168 # Whether or not to build shared libraries.
28169 build_libtool_libs=$enable_shared
28171 # Whether or not to build static libraries.
28172 build_old_libs=$enable_static
28174 # What type of objects to build.
28177 # Whether or not to optimize for fast installation.
28178 fast_install=$enable_fast_install
28180 # Shared archive member basename,for filename based shared library versioning on AIX.
28181 shared_archive_member_spec=$shared_archive_member_spec
28183 # Shell to use when invoking shell scripts.
28186 # An echo program that protects backslashes.
28189 # The PATH separator for the build system.
28190 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28193 host_alias=$host_alias
28197 # The build system.
28198 build_alias=$build_alias
28202 # A sed program that does not truncate output.
28205 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28206 Xsed="\$SED -e 1s/^X//"
28208 # A grep program that handles long lines.
28214 # A literal string matcher.
28217 # A BSD- or MS-compatible name lister.
28220 # Whether we need soft or hard links.
28223 # What is the maximum length of a command?
28224 max_cmd_len=$max_cmd_len
28226 # Object file suffix (normally "o").
28229 # Executable file suffix (normally "").
28232 # whether the shell understands "unset".
28235 # turn spaces into newlines.
28238 # turn newlines into spaces.
28241 # convert \$build file names to \$host format.
28242 to_host_file_cmd=$lt_cv_to_host_file_cmd
28244 # convert \$build files to toolchain format.
28245 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28247 # An object symbol dumper.
28248 OBJDUMP=$lt_OBJDUMP
28250 # Method to check whether dependent libraries are shared objects.
28251 deplibs_check_method=$lt_deplibs_check_method
28253 # Command to use when deplibs_check_method = "file_magic".
28254 file_magic_cmd=$lt_file_magic_cmd
28256 # How to find potential files when deplibs_check_method = "file_magic".
28257 file_magic_glob=$lt_file_magic_glob
28259 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28260 want_nocaseglob=$lt_want_nocaseglob
28262 # DLL creation program.
28263 DLLTOOL=$lt_DLLTOOL
28265 # Command to associate shared and link libraries.
28266 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28271 # Flags to create an archive.
28272 AR_FLAGS=$lt_AR_FLAGS
28274 # How to feed a file listing to the archiver.
28275 archiver_list_spec=$lt_archiver_list_spec
28277 # A symbol stripping program.
28280 # Commands used to install an old-style archive.
28282 old_postinstall_cmds=$lt_old_postinstall_cmds
28283 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28285 # Whether to use a lock for old archive extraction.
28286 lock_old_archive_extraction=$lock_old_archive_extraction
28291 # LTCC compiler flags.
28292 LTCFLAGS=$lt_CFLAGS
28294 # Take the output of nm and produce a listing of raw symbols and C names.
28295 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28297 # Transform the output of nm in a proper C declaration.
28298 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28300 # Transform the output of nm into a list of symbols to manually relocate.
28301 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28303 # Transform the output of nm in a C name address pair.
28304 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28306 # Transform the output of nm in a C name address pair when lib prefix is needed.
28307 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28309 # The name lister interface.
28310 nm_interface=$lt_lt_cv_nm_interface
28312 # Specify filename containing input files for \$NM.
28313 nm_file_list_spec=$lt_nm_file_list_spec
28315 # The root where to search for dependent libraries,and where our libraries should be installed.
28316 lt_sysroot=$lt_sysroot
28318 # Command to truncate a binary pipe.
28319 lt_truncate_bin=$lt_lt_cv_truncate_bin
28321 # The name of the directory that contains temporary libtool files.
28324 # Used to examine libraries when file_magic_cmd begins with "file".
28325 MAGIC_CMD=$MAGIC_CMD
28327 # Must we lock files when doing compilation?
28328 need_locks=$lt_need_locks
28331 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28333 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28334 DSYMUTIL=$lt_DSYMUTIL
28336 # Tool to change global to local symbols on Mac OS X.
28339 # Tool to manipulate fat objects and archives on Mac OS X.
28342 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28345 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28346 OTOOL64=$lt_OTOOL64
28348 # Old archive suffix (normally "a").
28351 # Shared library suffix (normally ".so").
28352 shrext_cmds=$lt_shrext_cmds
28354 # The commands to extract the exported symbol list from a shared archive.
28355 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28357 # Variables whose values should be saved in libtool wrapper scripts and
28358 # restored at link time.
28359 variables_saved_for_relink=$lt_variables_saved_for_relink
28361 # Do we need the "lib" prefix for modules?
28362 need_lib_prefix=$need_lib_prefix
28364 # Do we need a version for libraries?
28365 need_version=$need_version
28367 # Library versioning type.
28368 version_type=$version_type
28370 # Shared library runtime path variable.
28371 runpath_var=$runpath_var
28373 # Shared library path variable.
28374 shlibpath_var=$shlibpath_var
28376 # Is shlibpath searched before the hard-coded library search path?
28377 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28379 # Format of library name prefix.
28380 libname_spec=$lt_libname_spec
28382 # List of archive names. First name is the real one, the rest are links.
28383 # The last name is the one that the linker finds with -lNAME
28384 library_names_spec=$lt_library_names_spec
28386 # The coded name of the library, if different from the real name.
28387 soname_spec=$lt_soname_spec
28389 # Permission mode override for installation of shared libraries.
28390 install_override_mode=$lt_install_override_mode
28392 # Command to use after installation of a shared archive.
28393 postinstall_cmds=$lt_postinstall_cmds
28395 # Command to use after uninstallation of a shared archive.
28396 postuninstall_cmds=$lt_postuninstall_cmds
28398 # Commands used to finish a libtool library installation in a directory.
28399 finish_cmds=$lt_finish_cmds
28401 # As "finish_cmds", except a single script fragment to be evaled but
28403 finish_eval=$lt_finish_eval
28405 # Whether we should hardcode library paths into libraries.
28406 hardcode_into_libs=$hardcode_into_libs
28408 # Compile-time system search path for libraries.
28409 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28411 # Detected run-time system search path for libraries.
28412 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
28414 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
28415 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
28417 # Whether dlopen is supported.
28418 dlopen_support=$enable_dlopen
28420 # Whether dlopen of programs is supported.
28421 dlopen_self=$enable_dlopen_self
28423 # Whether dlopen of statically linked programs is supported.
28424 dlopen_self_static=$enable_dlopen_self_static
28426 # Commands to strip libraries.
28427 old_striplib=$lt_old_striplib
28428 striplib=$lt_striplib
28431 # The linker used to build libraries.
28434 # How to create reloadable object files.
28435 reload_flag=$lt_reload_flag
28436 reload_cmds=$lt_reload_cmds
28438 # Commands used to build an old-style archive.
28439 old_archive_cmds=$lt_old_archive_cmds
28441 # A language specific compiler.
28444 # Is the compiler the GNU compiler?
28447 # Compiler flag to turn off builtin functions.
28448 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28450 # Additional compiler flags for building library objects.
28451 pic_flag=$lt_lt_prog_compiler_pic
28453 # How to pass a linker flag through the compiler.
28454 wl=$lt_lt_prog_compiler_wl
28456 # Compiler flag to prevent dynamic linking.
28457 link_static_flag=$lt_lt_prog_compiler_static
28459 # Does compiler simultaneously support -c and -o options?
28460 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28462 # Whether or not to add -lc for building shared libraries.
28463 build_libtool_need_lc=$archive_cmds_need_lc
28465 # Whether or not to disallow shared libs when runtime libs are static.
28466 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28468 # Compiler flag to allow reflexive dlopens.
28469 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28471 # Compiler flag to generate shared objects directly from archives.
28472 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28474 # Whether the compiler copes with passing no objects directly.
28475 compiler_needs_object=$lt_compiler_needs_object
28477 # Create an old-style archive from a shared archive.
28478 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28480 # Create a temporary old-style archive to link instead of a shared archive.
28481 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28483 # Commands used to build a shared archive.
28484 archive_cmds=$lt_archive_cmds
28485 archive_expsym_cmds=$lt_archive_expsym_cmds
28487 # Commands used to build a loadable module if different from building
28488 # a shared archive.
28489 module_cmds=$lt_module_cmds
28490 module_expsym_cmds=$lt_module_expsym_cmds
28492 # Whether we are building with GNU ld or not.
28493 with_gnu_ld=$lt_with_gnu_ld
28495 # Flag that allows shared libraries with undefined symbols to be built.
28496 allow_undefined_flag=$lt_allow_undefined_flag
28498 # Flag that enforces no undefined symbols.
28499 no_undefined_flag=$lt_no_undefined_flag
28501 # Flag to hardcode \$libdir into a binary during linking.
28502 # This must work even if \$libdir does not exist
28503 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28505 # Whether we need a single "-rpath" flag with a separated argument.
28506 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28508 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28509 # DIR into the resulting binary.
28510 hardcode_direct=$hardcode_direct
28512 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28513 # DIR into the resulting binary and the resulting library dependency is
28514 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28515 # library is relocated.
28516 hardcode_direct_absolute=$hardcode_direct_absolute
28518 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28519 # into the resulting binary.
28520 hardcode_minus_L=$hardcode_minus_L
28522 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28523 # into the resulting binary.
28524 hardcode_shlibpath_var=$hardcode_shlibpath_var
28526 # Set to "yes" if building a shared library automatically hardcodes DIR
28527 # into the library and all subsequent libraries and executables linked
28529 hardcode_automatic=$hardcode_automatic
28531 # Set to yes if linker adds runtime paths of dependent libraries
28532 # to runtime path list.
28533 inherit_rpath=$inherit_rpath
28535 # Whether libtool must link a program against all its dependency libraries.
28536 link_all_deplibs=$link_all_deplibs
28538 # Set to "yes" if exported symbols are required.
28539 always_export_symbols=$always_export_symbols
28541 # The commands to list exported symbols.
28542 export_symbols_cmds=$lt_export_symbols_cmds
28544 # Symbols that should not be listed in the preloaded symbols.
28545 exclude_expsyms=$lt_exclude_expsyms
28547 # Symbols that must always be exported.
28548 include_expsyms=$lt_include_expsyms
28550 # Commands necessary for linking programs (against libraries) with templates.
28551 prelink_cmds=$lt_prelink_cmds
28553 # Commands necessary for finishing linking programs.
28554 postlink_cmds=$lt_postlink_cmds
28556 # Specify filename containing input files.
28557 file_list_spec=$lt_file_list_spec
28559 # How to hardcode a shared library path into an executable.
28560 hardcode_action=$hardcode_action
28562 # ### END LIBTOOL CONFIG
28566 cat <<'_LT_EOF' >> "$cfgfile"
28568 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
28570 # func_munge_path_list VARIABLE PATH
28571 # -----------------------------------
28572 # VARIABLE is name of variable containing _space_ separated list of
28573 # directories to be munged by the contents of PATH, which is string
28576 # string "DIR[ DIR]" will be prepended to VARIABLE
28578 # string "DIR[ DIR]" will be appended to VARIABLE
28579 # "DIRP[:DIRP]::[DIRA:]DIRA"
28580 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
28581 # "DIRA[ DIRA]" will be appended to VARIABLE
28583 # VARIABLE will be replaced by "DIR[ DIR]"
28584 func_munge_path_list ()
28590 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
28593 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
28596 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
28597 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
28600 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
28606 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
28607 func_cc_basename ()
28609 for cc_temp in $*""; do
28611 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28612 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28617 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
28621 # ### END FUNCTIONS SHARED WITH CONFIGURE
28627 cat <<\_LT_EOF >> "$cfgfile"
28628 # AIX sometimes has problems with the GCC collect2 program. For some
28629 # reason, if we set the COLLECT_NAMES environment variable, the problems
28630 # vanish in a puff of smoke.
28631 if test set != "${COLLECT_NAMES+set}"; then
28633 export COLLECT_NAMES
28640 ltmain=$ac_aux_dir/ltmain.sh
28643 # We use sed instead of cat because bash on DJGPP gets confused if
28644 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28645 # text mode, it properly converts lines to CR/LF. This bash problem
28646 # is reportedly fixed, but why not run on old versions too?
28647 sed '$q' "$ltmain" >> "$cfgfile" \
28648 || (rm -f "$cfgfile"; exit 1)
28650 mv -f "$cfgfile" "$ofile" ||
28651 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28655 "vtysh/extract.pl":F) chmod +x vtysh/extract.pl ;;
28663 ac_clean_files=$ac_clean_files_save
28665 test $ac_write_fail = 0 ||
28666 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28669 # configure is writing to config.log, and then calls config.status.
28670 # config.status does its own redirection, appending to config.log.
28671 # Unfortunately, on DOS this fails, as config.log is still kept open
28672 # by configure, so config.status won't be able to write to it; its
28673 # output is simply discarded. So we exec the FD to /dev/null,
28674 # effectively closing config.log, so it can be properly (re)opened and
28675 # appended to by config.status. When coming back to configure, we
28676 # need to make the FD available again.
28677 if test "$no_create" != yes; then
28679 ac_config_status_args=
28680 test "$silent" = yes &&
28681 ac_config_status_args="$ac_config_status_args --quiet"
28683 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28685 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28686 # would make configure fail if this is the last instruction.
28687 $ac_cs_success || as_fn_exit 1
28689 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28691 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28696 Quagga configuration
28697 --------------------
28698 quagga version : ${PACKAGE_VERSION}
28699 host operating system : ${host_os}
28700 source code location : ${srcdir}
28702 compiler flags : ${CFLAGS}
28703 make : ${MAKE-make}
28704 linker flags : ${LDFLAGS} ${LIBS} ${LIBCAP} ${LIBREADLINE} ${LIBM}
28705 state file directory : ${quagga_statedir}
28706 config file directory : `eval echo \`echo ${sysconfdir}\``
28707 example directory : `eval echo \`echo ${exampledir}\``
28708 user to run as : ${enable_user}
28709 group to run as : ${enable_group}
28710 group for vty sockets : ${enable_vty_group}
28711 config file mask : ${enable_configfile_mask}
28712 log file mask : ${enable_logfile_mask}
28713 zebra protobuf enabled : ${have_protobuf:-no}
28715 The above user and group must have read/write access to the state file
28716 directory and to the config files in the config file directory."
28718 if test x"$quagga_cv_gnu_make" = x"no"; then echo "
28719 Warning: The ${MAKE-make} programme detected, either in your path or
28720 via the MAKE variable, is not GNU Make. GNU make may be installed as
28721 gmake on some systems. and is required to complete a build of Quagga