2 # From configure.in Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
71 # Find who we are. Look in the path if we contain no directory separator.
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
162 if test $as_have_required = yes && (eval ":
172 as_func_ret_success () {
175 as_func_ret_failure () {
180 if as_func_success; then
184 echo as_func_success failed.
187 if as_func_failure; then
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 test -z "$as_dir" && as_dir=.
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
259 CONFIG_SHELL=$as_shell
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
287 as_func_ret_success () {
290 as_func_ret_failure () {
295 if as_func_success; then
299 echo as_func_success failed.
302 if as_func_failure; then
304 echo as_func_failure succeeded.
307 if as_func_ret_success; then
311 echo as_func_ret_success failed.
314 if as_func_ret_failure; then
316 echo as_func_ret_failure succeeded.
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 echo positional parameters were not saved.
326 test $exitcode = 0) || { (exit 1); exit 1; }
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
343 if test "x$CONFIG_SHELL" != x; then
344 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 if test $as_have_required = no; then
353 echo This script requires a shell more modern than all the
354 echo shells that I found on your system. Please install a
355 echo modern shell, or manually run the script under such a
356 echo shell if you do have one.
357 { (exit 1); exit 1; }
367 (eval "as_func_return () {
376 as_func_ret_success () {
379 as_func_ret_failure () {
384 if as_func_success; then
388 echo as_func_success failed.
391 if as_func_failure; then
393 echo as_func_failure succeeded.
396 if as_func_ret_success; then
400 echo as_func_ret_success failed.
403 if as_func_ret_failure; then
405 echo as_func_ret_failure succeeded.
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 echo positional parameters were not saved.
415 test \$exitcode = 0") || {
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system,
418 echo including any error possibly output before this
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
473 ECHO_C= ECHO_N= ECHO_T=
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493 rm -f conf$$.dir/conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 elif ln conf$$.file conf$$ 2>/dev/null; then
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
515 if mkdir -p . 2>/dev/null; then
518 test -d ./-p && rmdir ./-p
522 if test -x / >/dev/null 2>&1; then
525 if ls -dL / >/dev/null 2>&1; then
532 if test -d "$1"; then
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
543 as_executable_p=$as_test_x
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 lt_ltdl_dir='libltdl'
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Remove one level of quotation (which was required for Make).
562 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
567 if test "X$1" = X--no-reexec; then
568 # Discard the --no-reexec flag, and continue.
570 elif test "X$1" = X--fallback-echo; then
571 # Avoid inline document here, it may be left over
573 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
574 # Yippee, $ECHO works!
577 # Restart under the correct shell.
578 exec $SHELL "$0" --no-reexec ${1+"$@"}
581 if test "X$1" = X--fallback-echo; then
582 # used as fallback echo
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594 if test -z "$lt_ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
600 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
607 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$ECHO" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
662 ECHO="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 ECHO="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 lt_dlopen_dir="$lt_ltdl_dir"
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
733 ac_unique_file="src/main/radiusd.c"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
747 # ifdef HAVE_STDLIB_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
779 program_transform_name
859 sys_symbol_underscore
863 CONVENIENCE_LTDL_TRUE
864 CONVENIENCE_LTDL_FALSE
894 RADIUSD_MAJOR_VERSION
895 RADIUSD_MINOR_VERSION
902 ac_precious_vars='build_alias
915 ac_subdirs_all='libltdl
916 $LTDL_SUBDIRS $mysubdirs'
918 # Initialize some variables set by options.
920 ac_init_version=false
921 # The variables have the same names as the options, with
922 # dashes changed to underlines.
930 program_transform_name=s,x,x,
938 # Installation directory options.
939 # These are left unexpanded so users can "make install exec_prefix=/foo"
940 # and all the variables that are supposed to be based on exec_prefix
941 # by default will actually change.
942 # Use braces instead of parens because sh, perl, etc. also accept them.
943 # (The list follows the same order as the GNU Coding Standards.)
944 bindir='${exec_prefix}/bin'
945 sbindir='${exec_prefix}/sbin'
946 libexecdir='${exec_prefix}/libexec'
947 datarootdir='${prefix}/share'
948 datadir='${datarootdir}'
949 sysconfdir='${prefix}/etc'
950 sharedstatedir='${prefix}/com'
951 localstatedir='${prefix}/var'
952 includedir='${prefix}/include'
953 oldincludedir='/usr/include'
954 docdir='${datarootdir}/doc/${PACKAGE}'
955 infodir='${datarootdir}/info'
960 libdir='${exec_prefix}/lib'
961 localedir='${datarootdir}/locale'
962 mandir='${datarootdir}/man'
968 # If the previous option needs an argument, assign it.
969 if test -n "$ac_prev"; then
970 eval $ac_prev=\$ac_option
976 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980 # Accept the important Cygnus configure options, so we can diagnose typos.
982 case $ac_dashdash$ac_option in
986 -bindir | --bindir | --bindi | --bind | --bin | --bi)
988 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
991 -build | --build | --buil | --bui | --bu)
992 ac_prev=build_alias ;;
993 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994 build_alias=$ac_optarg ;;
996 -cache-file | --cache-file | --cache-fil | --cache-fi \
997 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998 ac_prev=cache_file ;;
999 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001 cache_file=$ac_optarg ;;
1003 --config-cache | -C)
1004 cache_file=config.cache ;;
1006 -datadir | --datadir | --datadi | --datad)
1008 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009 datadir=$ac_optarg ;;
1011 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012 | --dataroo | --dataro | --datar)
1013 ac_prev=datarootdir ;;
1014 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016 datarootdir=$ac_optarg ;;
1018 -disable-* | --disable-*)
1019 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1022 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023 { (exit 1); exit 1; }; }
1024 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1025 eval enable_$ac_feature=no ;;
1027 -docdir | --docdir | --docdi | --doc | --do)
1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030 docdir=$ac_optarg ;;
1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035 dvidir=$ac_optarg ;;
1037 -enable-* | --enable-*)
1038 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1041 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1042 { (exit 1); exit 1; }; }
1043 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1044 eval enable_$ac_feature=\$ac_optarg ;;
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
1053 exec_prefix=$ac_optarg ;;
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
1066 -host | --host | --hos | --ho)
1067 ac_prev=host_alias ;;
1068 -host=* | --host=* | --hos=* | --ho=*)
1069 host_alias=$ac_optarg ;;
1071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1075 htmldir=$ac_optarg ;;
1077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
1082 includedir=$ac_optarg ;;
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087 infodir=$ac_optarg ;;
1089 -libdir | --libdir | --libdi | --libd)
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092 libdir=$ac_optarg ;;
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
1099 libexecdir=$ac_optarg ;;
1101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1106 -localstatedir | --localstatedir | --localstatedi | --localstated \
1107 | --localstate | --localstat | --localsta | --localst | --locals)
1108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111 localstatedir=$ac_optarg ;;
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116 mandir=$ac_optarg ;;
1118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123 | --no-cr | --no-c | -n)
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137 oldincludedir=$ac_optarg ;;
1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142 prefix=$ac_optarg ;;
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149 program_prefix=$ac_optarg ;;
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156 program_suffix=$ac_optarg ;;
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
1173 program_transform_name=$ac_optarg ;;
1175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1180 -psdir | --psdir | --psdi | --psd | --ps)
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1193 sbindir=$ac_optarg ;;
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1204 sharedstatedir=$ac_optarg ;;
1206 -site | --site | --sit)
1208 -site=* | --site=* | --sit=*)
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214 srcdir=$ac_optarg ;;
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221 sysconfdir=$ac_optarg ;;
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1224 ac_prev=target_alias ;;
1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226 target_alias=$ac_optarg ;;
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
1235 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 { echo "$as_me: error: invalid package name: $ac_package" >&2
1239 { (exit 1); exit 1; }; }
1240 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1241 eval with_$ac_package=\$ac_optarg ;;
1243 -without-* | --without-*)
1244 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 { echo "$as_me: error: invalid package name: $ac_package" >&2
1248 { (exit 1); exit 1; }; }
1249 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1250 eval with_$ac_package=no ;;
1253 # Obsolete; use --with-x.
1256 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257 | --x-incl | --x-inc | --x-in | --x-i)
1258 ac_prev=x_includes ;;
1259 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1261 x_includes=$ac_optarg ;;
1263 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265 ac_prev=x_libraries ;;
1266 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1268 x_libraries=$ac_optarg ;;
1270 -*) { echo "$as_me: error: unrecognized option: $ac_option
1271 Try \`$0 --help' for more information." >&2
1272 { (exit 1); exit 1; }; }
1276 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1279 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1280 { (exit 1); exit 1; }; }
1281 eval $ac_envvar=\$ac_optarg
1282 export $ac_envvar ;;
1285 # FIXME: should be removed in autoconf 3.0.
1286 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1289 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1295 if test -n "$ac_prev"; then
1296 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1297 { echo "$as_me: error: missing argument to $ac_option" >&2
1298 { (exit 1); exit 1; }; }
1301 # Be sure to have absolute directory names.
1302 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
1307 eval ac_val=\$$ac_var
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1312 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1313 { (exit 1); exit 1; }; }
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1321 target=$target_alias
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
1327 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1328 If a cross compiler is detected then cross compile mode will be used." >&2
1329 elif test "x$build_alias" != "x$host_alias"; then
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337 test "$silent" = yes && exec 6>/dev/null
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 { echo "$as_me: error: Working directory cannot be determined" >&2
1344 { (exit 1); exit 1; }; }
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346 { echo "$as_me: error: pwd does not report name of working directory" >&2
1347 { (exit 1); exit 1; }; }
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352 ac_srcdir_defaulted=yes
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir=`$as_dirname -- "$0" ||
1355 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$0" : 'X\(//\)[^/]' \| \
1357 X"$0" : 'X\(//\)$' \| \
1358 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1382 ac_srcdir_defaulted=no
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1387 { (exit 1); exit 1; }; }
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1392 { (exit 1); exit 1; }; }
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 for ac_var in $ac_precious_vars; do
1405 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_${ac_var}_value=\$${ac_var}
1407 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412 # Report the --help message.
1414 if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1418 \`configure' configures this package to adapt to many kinds of systems.
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE. See below for descriptions of some of the useful variables.
1425 Defaults for the options are specified in brackets.
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438 Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1449 For better control, use the options below.
1451 Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1476 --build=BUILD configure for building on BUILD [guessed]
1477 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1481 if test -n "$ac_init_help"; then
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --disable-largefile omit support for large files
1489 --enable-shared[=PKGS] build shared libraries [default=yes]
1490 --enable-static[=PKGS] build static libraries [default=yes]
1491 --enable-fast-install[=PKGS]
1492 optimize for fast installation [default=yes]
1493 --disable-libtool-lock avoid locking (might break parallel builds)
1494 --enable-ltdl-install install libltdl
1495 --enable-strict-dependencies Fail configure on lack of module dependancy.
1496 --enable-developer Enables features of interest to developers.
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-system-libtool try to use libtool installed in your system default=use our own
1502 --with-pic try to use only PIC/non-PIC objects [default=use
1504 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1505 --with-included-ltdl use the GNU ltdl sources included here
1506 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1507 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1508 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1509 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1510 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1511 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1512 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1513 --with-threads Use threads, if available. (default=yes)
1514 --with-vmps Compile in VMPS support. (default=yes)
1515 --with-dhcp Compile in DHCP support. (default=no)
1516 --with-static-modules=QUOTED-MODULE-LIST
1517 --with-modules=QUOTED-MODULE-LIST
1518 --with-experimental-modules Use experimental and unstable modules. (default=no)
1519 --with-openssl Use OpenSSL. (default=yes)
1520 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1521 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1522 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1523 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1524 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1526 Some influential environment variables:
1527 CC C compiler command
1528 CFLAGS C compiler flags
1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1530 nonstandard directory <lib dir>
1531 LIBS libraries to pass to the linker, e.g. -l<library>
1532 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1533 you have headers in a nonstandard directory <include dir>
1534 CXX C++ compiler command
1535 CXXFLAGS C++ compiler flags
1537 CXXCPP C++ preprocessor
1539 Use these variables to override the choices made by `configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1546 if test "$ac_init_help" = "recursive"; then
1547 # If there are subdirs, report their specific --help.
1548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549 test -d "$ac_dir" || continue
1553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1556 # A ".." for each directory in $ac_dir_suffix.
1557 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1558 case $ac_top_builddir_sub in
1559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563 ac_abs_top_builddir=$ac_pwd
1564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565 # for backward compatibility:
1566 ac_top_builddir=$ac_top_build_prefix
1569 .) # We are building in place.
1571 ac_top_srcdir=$ac_top_builddir_sub
1572 ac_abs_top_srcdir=$ac_pwd ;;
1573 [\\/]* | ?:[\\/]* ) # Absolute name.
1574 ac_srcdir=$srcdir$ac_dir_suffix;
1575 ac_top_srcdir=$srcdir
1576 ac_abs_top_srcdir=$srcdir ;;
1578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579 ac_top_srcdir=$ac_top_build_prefix$srcdir
1580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1584 cd "$ac_dir" || { ac_status=$?; continue; }
1585 # Check for guested configure.
1586 if test -f "$ac_srcdir/configure.gnu"; then
1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589 elif test -f "$ac_srcdir/configure"; then
1591 $SHELL "$ac_srcdir/configure" --help=recursive
1593 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595 cd "$ac_pwd" || { ac_status=$?; break; }
1599 test -n "$ac_init_help" && exit $ac_status
1600 if $ac_init_version; then
1603 generated by GNU Autoconf 2.61
1605 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1606 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1607 This configure script is free software; the Free Software Foundation
1608 gives unlimited permission to copy, distribute and modify it.
1612 cat >config.log <<_ACEOF
1613 This file contains any messages produced by compilers while
1614 running configure, to aid debugging if configure makes a mistake.
1616 It was created by $as_me, which was
1617 generated by GNU Autoconf 2.61. Invocation command line was
1629 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1630 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1631 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1632 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1633 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1635 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1636 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1638 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1639 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1640 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1641 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1642 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1643 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1644 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652 test -z "$as_dir" && as_dir=.
1653 echo "PATH: $as_dir"
1669 # Keep a trace of the command line.
1670 # Strip out --no-create and --no-recursion so they do not pile up.
1671 # Strip out --silent because we don't want to record it for future runs.
1672 # Also quote any args containing shell meta-characters.
1673 # Make two passes to allow for proper duplicate-argument suppression.
1677 ac_must_keep_next=false
1683 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1685 | -silent | --silent | --silen | --sile | --sil)
1688 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1691 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1693 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1694 if test $ac_must_keep_next = true; then
1695 ac_must_keep_next=false # Got value, back to normal.
1698 *=* | --config-cache | -C | -disable-* | --disable-* \
1699 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1700 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1701 | -with-* | --with-* | -without-* | --without-* | --x)
1702 case "$ac_configure_args0 " in
1703 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1706 -* ) ac_must_keep_next=true ;;
1709 ac_configure_args="$ac_configure_args '$ac_arg'"
1714 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1715 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1717 # When interrupted or exit'd, cleanup temporary files, and complete
1718 # config.log. We remove comments because anyway the quotes in there
1719 # would cause problems or look ugly.
1720 # WARNING: Use '\'' to represent an apostrophe within the trap.
1721 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1722 trap 'exit_status=$?
1723 # Save into config.log some information that might help in debugging.
1728 ## ---------------- ##
1729 ## Cache variables. ##
1730 ## ---------------- ##
1733 # The following way of writing the cache mishandles newlines in values,
1735 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1736 eval ac_val=\$$ac_var
1740 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1741 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1744 _ | IFS | as_nl) ;; #(
1745 *) $as_unset $ac_var ;;
1750 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1751 *${as_nl}ac_space=\ *)
1753 "s/'\''/'\''\\\\'\'''\''/g;
1754 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1757 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1765 ## ----------------- ##
1766 ## Output variables. ##
1767 ## ----------------- ##
1770 for ac_var in $ac_subst_vars
1772 eval ac_val=\$$ac_var
1774 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1776 echo "$ac_var='\''$ac_val'\''"
1780 if test -n "$ac_subst_files"; then
1782 ## ------------------- ##
1783 ## File substitutions. ##
1784 ## ------------------- ##
1787 for ac_var in $ac_subst_files
1789 eval ac_val=\$$ac_var
1791 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1793 echo "$ac_var='\''$ac_val'\''"
1798 if test -s confdefs.h; then
1808 test "$ac_signal" != 0 &&
1809 echo "$as_me: caught signal $ac_signal"
1810 echo "$as_me: exit $exit_status"
1812 rm -f core *.core core.conftest.* &&
1813 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1816 for ac_signal in 1 2 13 15; do
1817 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1821 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1822 rm -f -r conftest* confdefs.h
1824 # Predefined preprocessor variables.
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_NAME "$PACKAGE_NAME"
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_STRING "$PACKAGE_STRING"
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1851 # Let the site file select an alternate cache file if it wants to.
1852 # Prefer explicitly selected file to automatically selected ones.
1853 if test -n "$CONFIG_SITE"; then
1854 set x "$CONFIG_SITE"
1855 elif test "x$prefix" != xNONE; then
1856 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1858 set x "$ac_default_prefix/share/config.site" \
1859 "$ac_default_prefix/etc/config.site"
1864 if test -r "$ac_site_file"; then
1865 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1866 echo "$as_me: loading site script $ac_site_file" >&6;}
1867 sed 's/^/| /' "$ac_site_file" >&5
1872 if test -r "$cache_file"; then
1873 # Some versions of bash will fail to source /dev/null (special
1874 # files actually), so we avoid doing that.
1875 if test -f "$cache_file"; then
1876 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1877 echo "$as_me: loading cache $cache_file" >&6;}
1879 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1880 *) . "./$cache_file";;
1884 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1885 echo "$as_me: creating cache $cache_file" >&6;}
1889 # Check that the precious variables saved in the cache have kept the same
1891 ac_cache_corrupted=false
1892 for ac_var in $ac_precious_vars; do
1893 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1894 eval ac_new_set=\$ac_env_${ac_var}_set
1895 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1896 eval ac_new_val=\$ac_env_${ac_var}_value
1897 case $ac_old_set,$ac_new_set in
1899 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1900 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1901 ac_cache_corrupted=: ;;
1903 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1904 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1905 ac_cache_corrupted=: ;;
1908 if test "x$ac_old_val" != "x$ac_new_val"; then
1909 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1910 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1911 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1912 echo "$as_me: former value: $ac_old_val" >&2;}
1913 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1914 echo "$as_me: current value: $ac_new_val" >&2;}
1915 ac_cache_corrupted=:
1918 # Pass precious variables to config.status.
1919 if test "$ac_new_set" = set; then
1921 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1922 *) ac_arg=$ac_var=$ac_new_val ;;
1924 case " $ac_configure_args " in
1925 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1926 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1930 if $ac_cache_corrupted; then
1931 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1932 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1933 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1934 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1935 { (exit 1); exit 1; }; }
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1961 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1964 RADIUSD_VERSION=`cat VERSION`
1965 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
1966 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^2\.//'`
1971 ac_cpp='$CPP $CPPFLAGS'
1972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975 if test -n "$ac_tool_prefix"; then
1976 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1977 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1980 if test "${ac_cv_prog_CC+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 if test -n "$CC"; then
1984 ac_cv_prog_CC="$CC" # Let the user override the test.
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 test -z "$as_dir" && as_dir=.
1991 for ac_exec_ext in '' $ac_executable_extensions; do
1992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1993 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 if test -n "$CC"; then
2005 { echo "$as_me:$LINENO: result: $CC" >&5
2006 echo "${ECHO_T}$CC" >&6; }
2008 { echo "$as_me:$LINENO: result: no" >&5
2009 echo "${ECHO_T}no" >&6; }
2014 if test -z "$ac_cv_prog_CC"; then
2016 # Extract the first word of "gcc", so it can be a program name with args.
2017 set dummy gcc; ac_word=$2
2018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 if test -n "$ac_ct_CC"; then
2024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2033 ac_cv_prog_ac_ct_CC="gcc"
2034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2044 if test -n "$ac_ct_CC"; then
2045 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2046 echo "${ECHO_T}$ac_ct_CC" >&6; }
2048 { echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6; }
2052 if test "x$ac_ct_CC" = x; then
2055 case $cross_compiling:$ac_tool_warned in
2057 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2058 whose name does not start with the host triplet. If you think this
2059 configuration is useful to you, please write to autoconf@gnu.org." >&5
2060 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2061 whose name does not start with the host triplet. If you think this
2062 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2063 ac_tool_warned=yes ;;
2071 if test -z "$CC"; then
2072 if test -n "$ac_tool_prefix"; then
2073 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2074 set dummy ${ac_tool_prefix}cc; ac_word=$2
2075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2077 if test "${ac_cv_prog_CC+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 if test -n "$CC"; then
2081 ac_cv_prog_CC="$CC" # Let the user override the test.
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 test -z "$as_dir" && as_dir=.
2088 for ac_exec_ext in '' $ac_executable_extensions; do
2089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2090 ac_cv_prog_CC="${ac_tool_prefix}cc"
2091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101 if test -n "$CC"; then
2102 { echo "$as_me:$LINENO: result: $CC" >&5
2103 echo "${ECHO_T}$CC" >&6; }
2105 { echo "$as_me:$LINENO: result: no" >&5
2106 echo "${ECHO_T}no" >&6; }
2112 if test -z "$CC"; then
2113 # Extract the first word of "cc", so it can be a program name with args.
2114 set dummy cc; ac_word=$2
2115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2117 if test "${ac_cv_prog_CC+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 if test -n "$CC"; then
2121 ac_cv_prog_CC="$CC" # Let the user override the test.
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2131 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2132 ac_prog_rejected=yes
2136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143 if test $ac_prog_rejected = yes; then
2144 # We found a bogon in the path, so make sure we never use it.
2145 set dummy $ac_cv_prog_CC
2147 if test $# != 0; then
2148 # We chose a different compiler from the bogus one.
2149 # However, it has the same basename, so the bogon will be chosen
2150 # first if we set CC to just the basename; use the full file name.
2152 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2158 if test -n "$CC"; then
2159 { echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6; }
2162 { echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6; }
2168 if test -z "$CC"; then
2169 if test -n "$ac_tool_prefix"; then
2170 for ac_prog in cl.exe
2172 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2173 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2176 if test "${ac_cv_prog_CC+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 if test -n "$CC"; then
2180 ac_cv_prog_CC="$CC" # Let the user override the test.
2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 test -z "$as_dir" && as_dir=.
2187 for ac_exec_ext in '' $ac_executable_extensions; do
2188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2189 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 if test -n "$CC"; then
2201 { echo "$as_me:$LINENO: result: $CC" >&5
2202 echo "${ECHO_T}$CC" >&6; }
2204 { echo "$as_me:$LINENO: result: no" >&5
2205 echo "${ECHO_T}no" >&6; }
2209 test -n "$CC" && break
2212 if test -z "$CC"; then
2214 for ac_prog in cl.exe
2216 # Extract the first word of "$ac_prog", so it can be a program name with args.
2217 set dummy $ac_prog; ac_word=$2
2218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2220 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 if test -n "$ac_ct_CC"; then
2224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 test -z "$as_dir" && as_dir=.
2231 for ac_exec_ext in '' $ac_executable_extensions; do
2232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2233 ac_cv_prog_ac_ct_CC="$ac_prog"
2234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2244 if test -n "$ac_ct_CC"; then
2245 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2246 echo "${ECHO_T}$ac_ct_CC" >&6; }
2248 { echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6; }
2253 test -n "$ac_ct_CC" && break
2256 if test "x$ac_ct_CC" = x; then
2259 case $cross_compiling:$ac_tool_warned in
2261 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2262 whose name does not start with the host triplet. If you think this
2263 configuration is useful to you, please write to autoconf@gnu.org." >&5
2264 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2265 whose name does not start with the host triplet. If you think this
2266 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2267 ac_tool_warned=yes ;;
2276 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2277 See \`config.log' for more details." >&5
2278 echo "$as_me: error: no acceptable C compiler found in \$PATH
2279 See \`config.log' for more details." >&2;}
2280 { (exit 1); exit 1; }; }
2282 # Provide some information about the compiler.
2283 echo "$as_me:$LINENO: checking for C compiler version" >&5
2284 ac_compiler=`set X $ac_compile; echo $2`
2285 { (ac_try="$ac_compiler --version >&5"
2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2291 (eval "$ac_compiler --version >&5") 2>&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }
2295 { (ac_try="$ac_compiler -v >&5"
2297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298 *) ac_try_echo=$ac_try;;
2300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2301 (eval "$ac_compiler -v >&5") 2>&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }
2305 { (ac_try="$ac_compiler -V >&5"
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2311 (eval "$ac_compiler -V >&5") 2>&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }
2316 cat >conftest.$ac_ext <<_ACEOF
2319 cat confdefs.h >>conftest.$ac_ext
2320 cat >>conftest.$ac_ext <<_ACEOF
2321 /* end confdefs.h. */
2331 ac_clean_files_save=$ac_clean_files
2332 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2333 # Try to create an executable without -o first, disregard a.out.
2334 # It will help us diagnose broken compilers, and finding out an intuition
2336 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2337 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2338 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2340 # List of possible output files, starting from the most likely.
2341 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2342 # only as a last resort. b.out is created by i960 compilers.
2343 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2345 # The IRIX 6 linker writes into existing files which may not be
2346 # executable, retaining their permissions. Remove them first so a
2347 # subsequent execution test works.
2349 for ac_file in $ac_files
2352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2353 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2358 if { (ac_try="$ac_link_default"
2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361 *) ac_try_echo=$ac_try;;
2363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2364 (eval "$ac_link_default") 2>&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; then
2368 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2369 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2370 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2371 # so that the user can short-circuit this test for compilers unknown to
2373 for ac_file in $ac_files ''
2375 test -f "$ac_file" || continue
2377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2380 # We found the default executable, but exeext='' is most
2384 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2386 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2388 # We set ac_cv_exeext here because the later test for it is not
2389 # safe: cross compilers may not add the suffix if given an `-o'
2390 # argument, so we may need to know it at that point already.
2391 # Even if this section looks crufty: it has the advantage of
2398 test "$ac_cv_exeext" = no && ac_cv_exeext=
2404 { echo "$as_me:$LINENO: result: $ac_file" >&5
2405 echo "${ECHO_T}$ac_file" >&6; }
2406 if test -z "$ac_file"; then
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2410 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2411 See \`config.log' for more details." >&5
2412 echo "$as_me: error: C compiler cannot create executables
2413 See \`config.log' for more details." >&2;}
2414 { (exit 77); exit 77; }; }
2417 ac_exeext=$ac_cv_exeext
2419 # Check that the compiler produces executables we can run. If not, either
2420 # the compiler is broken, or we cross compile.
2421 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2422 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2423 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2424 # If not cross compiling, check that we can run a simple program.
2425 if test "$cross_compiling" != yes; then
2426 if { ac_try='./$ac_file'
2427 { (case "(($ac_try" in
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432 (eval "$ac_try") 2>&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; }; then
2438 if test "$cross_compiling" = maybe; then
2441 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2442 If you meant to cross compile, use \`--host'.
2443 See \`config.log' for more details." >&5
2444 echo "$as_me: error: cannot run C compiled programs.
2445 If you meant to cross compile, use \`--host'.
2446 See \`config.log' for more details." >&2;}
2447 { (exit 1); exit 1; }; }
2451 { echo "$as_me:$LINENO: result: yes" >&5
2452 echo "${ECHO_T}yes" >&6; }
2454 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2455 ac_clean_files=$ac_clean_files_save
2456 # Check that the compiler produces executables we can run. If not, either
2457 # the compiler is broken, or we cross compile.
2458 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2459 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2460 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2461 echo "${ECHO_T}$cross_compiling" >&6; }
2463 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2464 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2465 if { (ac_try="$ac_link"
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_link") 2>&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; then
2475 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2476 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2477 # work properly (i.e., refer to `conftest.exe'), while it won't with
2479 for ac_file in conftest.exe conftest conftest.*; do
2480 test -f "$ac_file" || continue
2482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2483 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2489 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2490 See \`config.log' for more details." >&5
2491 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2492 See \`config.log' for more details." >&2;}
2493 { (exit 1); exit 1; }; }
2496 rm -f conftest$ac_cv_exeext
2497 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2498 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2500 rm -f conftest.$ac_ext
2501 EXEEXT=$ac_cv_exeext
2503 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2504 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2505 if test "${ac_cv_objext+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 cat >conftest.$ac_ext <<_ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h. */
2523 rm -f conftest.o conftest.obj
2524 if { (ac_try="$ac_compile"
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_compile") 2>&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; then
2534 for ac_file in conftest.o conftest.obj conftest.*; do
2535 test -f "$ac_file" || continue;
2537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2538 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2543 echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2546 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2547 See \`config.log' for more details." >&5
2548 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2549 See \`config.log' for more details." >&2;}
2550 { (exit 1); exit 1; }; }
2553 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2555 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2556 echo "${ECHO_T}$ac_cv_objext" >&6; }
2557 OBJEXT=$ac_cv_objext
2559 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2560 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2561 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 cat >conftest.$ac_ext <<_ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h. */
2582 rm -f conftest.$ac_objext
2583 if { (ac_try="$ac_compile"
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_compile") 2>conftest.er1
2591 grep -v '^ *+' conftest.er1 >conftest.err
2593 cat conftest.err >&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); } && {
2596 test -z "$ac_c_werror_flag" ||
2597 test ! -s conftest.err
2598 } && test -s conftest.$ac_objext; then
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2611 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2612 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2613 GCC=`test $ac_compiler_gnu = yes && echo yes`
2614 ac_test_CFLAGS=${CFLAGS+set}
2615 ac_save_CFLAGS=$CFLAGS
2616 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2617 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2618 if test "${ac_cv_prog_cc_g+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 ac_save_c_werror_flag=$ac_c_werror_flag
2622 ac_c_werror_flag=yes
2625 cat >conftest.$ac_ext <<_ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2640 rm -f conftest.$ac_objext
2641 if { (ac_try="$ac_compile"
2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644 *) ac_try_echo=$ac_try;;
2646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2647 (eval "$ac_compile") 2>conftest.er1
2649 grep -v '^ *+' conftest.er1 >conftest.err
2651 cat conftest.err >&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } && {
2654 test -z "$ac_c_werror_flag" ||
2655 test ! -s conftest.err
2656 } && test -s conftest.$ac_objext; then
2659 echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2663 cat >conftest.$ac_ext <<_ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2678 rm -f conftest.$ac_objext
2679 if { (ac_try="$ac_compile"
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685 (eval "$ac_compile") 2>conftest.er1
2687 grep -v '^ *+' conftest.er1 >conftest.err
2689 cat conftest.err >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); } && {
2692 test -z "$ac_c_werror_flag" ||
2693 test ! -s conftest.err
2694 } && test -s conftest.$ac_objext; then
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2700 ac_c_werror_flag=$ac_save_c_werror_flag
2702 cat >conftest.$ac_ext <<_ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2717 rm -f conftest.$ac_objext
2718 if { (ac_try="$ac_compile"
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_compile") 2>conftest.er1
2726 grep -v '^ *+' conftest.er1 >conftest.err
2728 cat conftest.err >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); } && {
2731 test -z "$ac_c_werror_flag" ||
2732 test ! -s conftest.err
2733 } && test -s conftest.$ac_objext; then
2736 echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2749 ac_c_werror_flag=$ac_save_c_werror_flag
2751 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2752 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2753 if test "$ac_test_CFLAGS" = set; then
2754 CFLAGS=$ac_save_CFLAGS
2755 elif test $ac_cv_prog_cc_g = yes; then
2756 if test "$GCC" = yes; then
2762 if test "$GCC" = yes; then
2768 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2769 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2770 if test "${ac_cv_prog_cc_c89+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2773 ac_cv_prog_cc_c89=no
2775 cat >conftest.$ac_ext <<_ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2783 #include <sys/types.h>
2784 #include <sys/stat.h>
2785 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2786 struct buf { int x; };
2787 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2788 static char *e (p, i)
2794 static char *f (char * (*g) (char **, int), char **p, ...)
2799 s = g (p, va_arg (v,int));
2804 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2805 function prototypes and stuff, but not '\xHH' hex character constants.
2806 These don't provoke an error unfortunately, instead are silently treated
2807 as 'x'. The following induces an error, until -std is added to get
2808 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2809 array size at least. It's necessary to write '\x00'==0 to get something
2810 that's true only with -std. */
2811 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2813 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2814 inside strings and character constants. */
2816 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2818 int test (int i, double x);
2819 struct s1 {int (*f) (int a);};
2820 struct s2 {int (*f) (double a);};
2821 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2827 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2832 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2833 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2835 CC="$ac_save_CC $ac_arg"
2836 rm -f conftest.$ac_objext
2837 if { (ac_try="$ac_compile"
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843 (eval "$ac_compile") 2>conftest.er1
2845 grep -v '^ *+' conftest.er1 >conftest.err
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } && {
2850 test -z "$ac_c_werror_flag" ||
2851 test ! -s conftest.err
2852 } && test -s conftest.$ac_objext; then
2853 ac_cv_prog_cc_c89=$ac_arg
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2861 rm -f core conftest.err conftest.$ac_objext
2862 test "x$ac_cv_prog_cc_c89" != "xno" && break
2864 rm -f conftest.$ac_ext
2869 case "x$ac_cv_prog_cc_c89" in
2871 { echo "$as_me:$LINENO: result: none needed" >&5
2872 echo "${ECHO_T}none needed" >&6; } ;;
2874 { echo "$as_me:$LINENO: result: unsupported" >&5
2875 echo "${ECHO_T}unsupported" >&6; } ;;
2877 CC="$CC $ac_cv_prog_cc_c89"
2878 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2879 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2884 ac_cpp='$CPP $CPPFLAGS'
2885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890 ac_cpp='$CXXCPP $CPPFLAGS'
2891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2894 if test -z "$CXX"; then
2895 if test -n "$CCC"; then
2898 if test -n "$ac_tool_prefix"; then
2899 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2905 if test "${ac_cv_prog_CXX+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 if test -n "$CXX"; then
2909 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2918 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 if test -n "$CXX"; then
2930 { echo "$as_me:$LINENO: result: $CXX" >&5
2931 echo "${ECHO_T}$CXX" >&6; }
2933 { echo "$as_me:$LINENO: result: no" >&5
2934 echo "${ECHO_T}no" >&6; }
2938 test -n "$CXX" && break
2941 if test -z "$CXX"; then
2943 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2945 # Extract the first word of "$ac_prog", so it can be a program name with args.
2946 set dummy $ac_prog; ac_word=$2
2947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2949 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 if test -n "$ac_ct_CXX"; then
2953 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962 ac_cv_prog_ac_ct_CXX="$ac_prog"
2963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2973 if test -n "$ac_ct_CXX"; then
2974 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2975 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2977 { echo "$as_me:$LINENO: result: no" >&5
2978 echo "${ECHO_T}no" >&6; }
2982 test -n "$ac_ct_CXX" && break
2985 if test "x$ac_ct_CXX" = x; then
2988 case $cross_compiling:$ac_tool_warned in
2990 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2991 whose name does not start with the host triplet. If you think this
2992 configuration is useful to you, please write to autoconf@gnu.org." >&5
2993 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2994 whose name does not start with the host triplet. If you think this
2995 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2996 ac_tool_warned=yes ;;
3004 # Provide some information about the compiler.
3005 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3006 ac_compiler=`set X $ac_compile; echo $2`
3007 { (ac_try="$ac_compiler --version >&5"
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_compiler --version >&5") 2>&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }
3017 { (ac_try="$ac_compiler -v >&5"
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_compiler -v >&5") 2>&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }
3027 { (ac_try="$ac_compiler -V >&5"
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_compiler -V >&5") 2>&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }
3038 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3039 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3040 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3041 echo $ECHO_N "(cached) $ECHO_C" >&6
3043 cat >conftest.$ac_ext <<_ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3061 rm -f conftest.$ac_objext
3062 if { (ac_try="$ac_compile"
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_compile") 2>conftest.er1
3070 grep -v '^ *+' conftest.er1 >conftest.err
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } && {
3075 test -z "$ac_cxx_werror_flag" ||
3076 test ! -s conftest.err
3077 } && test -s conftest.$ac_objext; then
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3090 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3091 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3092 GXX=`test $ac_compiler_gnu = yes && echo yes`
3093 ac_test_CXXFLAGS=${CXXFLAGS+set}
3094 ac_save_CXXFLAGS=$CXXFLAGS
3095 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3096 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3097 if test "${ac_cv_prog_cxx_g+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3101 ac_cxx_werror_flag=yes
3104 cat >conftest.$ac_ext <<_ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3119 rm -f conftest.$ac_objext
3120 if { (ac_try="$ac_compile"
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_compile") 2>conftest.er1
3128 grep -v '^ *+' conftest.er1 >conftest.err
3130 cat conftest.err >&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } && {
3133 test -z "$ac_cxx_werror_flag" ||
3134 test ! -s conftest.err
3135 } && test -s conftest.$ac_objext; then
3136 ac_cv_prog_cxx_g=yes
3138 echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3142 cat >conftest.$ac_ext <<_ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3157 rm -f conftest.$ac_objext
3158 if { (ac_try="$ac_compile"
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164 (eval "$ac_compile") 2>conftest.er1
3166 grep -v '^ *+' conftest.er1 >conftest.err
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } && {
3171 test -z "$ac_cxx_werror_flag" ||
3172 test ! -s conftest.err
3173 } && test -s conftest.$ac_objext; then
3176 echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3179 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3181 cat >conftest.$ac_ext <<_ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3196 rm -f conftest.$ac_objext
3197 if { (ac_try="$ac_compile"
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_compile") 2>conftest.er1
3205 grep -v '^ *+' conftest.er1 >conftest.err
3207 cat conftest.err >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } && {
3210 test -z "$ac_cxx_werror_flag" ||
3211 test ! -s conftest.err
3212 } && test -s conftest.$ac_objext; then
3213 ac_cv_prog_cxx_g=yes
3215 echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3230 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3231 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3232 if test "$ac_test_CXXFLAGS" = set; then
3233 CXXFLAGS=$ac_save_CXXFLAGS
3234 elif test $ac_cv_prog_cxx_g = yes; then
3235 if test "$GXX" = yes; then
3241 if test "$GXX" = yes; then
3248 ac_cpp='$CPP $CPPFLAGS'
3249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256 ac_cpp='$CPP $CPPFLAGS'
3257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3260 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3261 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3262 # On Suns, sometimes $CPP names a directory.
3263 if test -n "$CPP" && test -d "$CPP"; then
3266 if test -z "$CPP"; then
3267 if test "${ac_cv_prog_CPP+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 # Double quotes because CPP needs to be expanded
3271 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3274 for ac_c_preproc_warn_flag in '' yes
3276 # Use a header file that comes with gcc, so configuring glibc
3277 # with a fresh cross-compiler works.
3278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3279 # <limits.h> exists even on freestanding compilers.
3280 # On the NeXT, cc -E runs the code through the compiler's parser,
3281 # not just through cpp. "Syntax error" is here to catch this case.
3282 cat >conftest.$ac_ext <<_ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3289 # include <limits.h>
3291 # include <assert.h>
3295 if { (ac_try="$ac_cpp conftest.$ac_ext"
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3303 grep -v '^ *+' conftest.er1 >conftest.err
3305 cat conftest.err >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } >/dev/null && {
3308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3309 test ! -s conftest.err
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3316 # Broken: fails on valid input.
3320 rm -f conftest.err conftest.$ac_ext
3322 # OK, works on sane cases. Now check whether nonexistent headers
3323 # can be detected and how.
3324 cat >conftest.$ac_ext <<_ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h. */
3330 #include <ac_nonexistent.h>
3332 if { (ac_try="$ac_cpp conftest.$ac_ext"
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3340 grep -v '^ *+' conftest.er1 >conftest.err
3342 cat conftest.err >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } >/dev/null && {
3345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3346 test ! -s conftest.err
3348 # Broken: success on invalid input.
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 # Passes both tests.
3359 rm -f conftest.err conftest.$ac_ext
3362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3363 rm -f conftest.err conftest.$ac_ext
3364 if $ac_preproc_ok; then
3376 { echo "$as_me:$LINENO: result: $CPP" >&5
3377 echo "${ECHO_T}$CPP" >&6; }
3379 for ac_c_preproc_warn_flag in '' yes
3381 # Use a header file that comes with gcc, so configuring glibc
3382 # with a fresh cross-compiler works.
3383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384 # <limits.h> exists even on freestanding compilers.
3385 # On the NeXT, cc -E runs the code through the compiler's parser,
3386 # not just through cpp. "Syntax error" is here to catch this case.
3387 cat >conftest.$ac_ext <<_ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3394 # include <limits.h>
3396 # include <assert.h>
3400 if { (ac_try="$ac_cpp conftest.$ac_ext"
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3408 grep -v '^ *+' conftest.er1 >conftest.err
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } >/dev/null && {
3413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3414 test ! -s conftest.err
3418 echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3421 # Broken: fails on valid input.
3425 rm -f conftest.err conftest.$ac_ext
3427 # OK, works on sane cases. Now check whether nonexistent headers
3428 # can be detected and how.
3429 cat >conftest.$ac_ext <<_ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3435 #include <ac_nonexistent.h>
3437 if { (ac_try="$ac_cpp conftest.$ac_ext"
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3445 grep -v '^ *+' conftest.er1 >conftest.err
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } >/dev/null && {
3450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3451 test ! -s conftest.err
3453 # Broken: success on invalid input.
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3459 # Passes both tests.
3464 rm -f conftest.err conftest.$ac_ext
3467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3468 rm -f conftest.err conftest.$ac_ext
3469 if $ac_preproc_ok; then
3472 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3473 See \`config.log' for more details." >&5
3474 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3475 See \`config.log' for more details." >&2;}
3476 { (exit 1); exit 1; }; }
3480 ac_cpp='$CPP $CPPFLAGS'
3481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3487 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3488 if test "${ac_cv_path_GREP+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 # Extract the first word of "grep ggrep" to use in msg output
3492 if test -z "$GREP"; then
3493 set dummy grep ggrep; ac_prog_name=$2
3494 if test "${ac_cv_path_GREP+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 ac_path_GREP_found=false
3498 # Loop through the user's path and test for each of PROGNAME-LIST
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3503 test -z "$as_dir" && as_dir=.
3504 for ac_prog in grep ggrep; do
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3507 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3508 # Check for GNU ac_path_GREP and select it if it is found.
3509 # Check for GNU $ac_path_GREP
3510 case `"$ac_path_GREP" --version 2>&1` in
3512 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3515 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3518 cat "conftest.in" "conftest.in" >"conftest.tmp"
3519 mv "conftest.tmp" "conftest.in"
3520 cp "conftest.in" "conftest.nl"
3521 echo 'GREP' >> "conftest.nl"
3522 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3524 ac_count=`expr $ac_count + 1`
3525 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3526 # Best one so far, save it but keep looking for a better one
3527 ac_cv_path_GREP="$ac_path_GREP"
3528 ac_path_GREP_max=$ac_count
3530 # 10*(2^10) chars as input seems more than enough
3531 test $ac_count -gt 10 && break
3533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3537 $ac_path_GREP_found && break 3
3547 GREP="$ac_cv_path_GREP"
3548 if test -z "$GREP"; then
3549 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3550 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3551 { (exit 1); exit 1; }; }
3555 ac_cv_path_GREP=$GREP
3560 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3561 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3562 GREP="$ac_cv_path_GREP"
3565 { echo "$as_me:$LINENO: checking for egrep" >&5
3566 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3567 if test "${ac_cv_path_EGREP+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3571 then ac_cv_path_EGREP="$GREP -E"
3573 # Extract the first word of "egrep" to use in msg output
3574 if test -z "$EGREP"; then
3575 set dummy egrep; ac_prog_name=$2
3576 if test "${ac_cv_path_EGREP+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 ac_path_EGREP_found=false
3580 # Loop through the user's path and test for each of PROGNAME-LIST
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3585 test -z "$as_dir" && as_dir=.
3586 for ac_prog in egrep; do
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3589 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3590 # Check for GNU ac_path_EGREP and select it if it is found.
3591 # Check for GNU $ac_path_EGREP
3592 case `"$ac_path_EGREP" --version 2>&1` in
3594 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3597 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3600 cat "conftest.in" "conftest.in" >"conftest.tmp"
3601 mv "conftest.tmp" "conftest.in"
3602 cp "conftest.in" "conftest.nl"
3603 echo 'EGREP' >> "conftest.nl"
3604 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3605 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3606 ac_count=`expr $ac_count + 1`
3607 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3608 # Best one so far, save it but keep looking for a better one
3609 ac_cv_path_EGREP="$ac_path_EGREP"
3610 ac_path_EGREP_max=$ac_count
3612 # 10*(2^10) chars as input seems more than enough
3613 test $ac_count -gt 10 && break
3615 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3619 $ac_path_EGREP_found && break 3
3629 EGREP="$ac_cv_path_EGREP"
3630 if test -z "$EGREP"; then
3631 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3632 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3633 { (exit 1); exit 1; }; }
3637 ac_cv_path_EGREP=$EGREP
3643 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3644 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3645 EGREP="$ac_cv_path_EGREP"
3649 { echo "$as_me:$LINENO: checking for AIX" >&5
3650 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3651 cat >conftest.$ac_ext <<_ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3663 $EGREP "yes" >/dev/null 2>&1; then
3664 { echo "$as_me:$LINENO: result: yes" >&5
3665 echo "${ECHO_T}yes" >&6; }
3666 cat >>confdefs.h <<\_ACEOF
3667 #define _ALL_SOURCE 1
3671 { echo "$as_me:$LINENO: result: no" >&5
3672 echo "${ECHO_T}no" >&6; }
3678 if test $ac_cv_c_compiler_gnu = yes; then
3679 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3680 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3681 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 ac_pattern="Autoconf.*'x'"
3685 cat >conftest.$ac_ext <<_ACEOF
3688 cat confdefs.h >>conftest.$ac_ext
3689 cat >>conftest.$ac_ext <<_ACEOF
3690 /* end confdefs.h. */
3694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3695 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3696 ac_cv_prog_gcc_traditional=yes
3698 ac_cv_prog_gcc_traditional=no
3703 if test $ac_cv_prog_gcc_traditional = no; then
3704 cat >conftest.$ac_ext <<_ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3714 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3715 ac_cv_prog_gcc_traditional=yes
3721 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3722 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3723 if test $ac_cv_prog_gcc_traditional = yes; then
3724 CC="$CC -traditional"
3728 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3729 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3730 if test "${ac_cv_prog_suncc+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 cat > conftest.c <<EOF
3738 if { ac_try='${CC-cc} -E conftest.c'
3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3744 ac_cv_prog_suncc=yes
3749 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3750 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3752 # Check whether --enable-largefile was given.
3753 if test "${enable_largefile+set}" = set; then
3754 enableval=$enable_largefile;
3757 if test "$enable_largefile" != no; then
3759 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3760 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3761 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 ac_cv_sys_largefile_CC=no
3765 if test "$GCC" != yes; then
3768 # IRIX 6.2 and later do not support large files by default,
3769 # so use the C compiler's -n32 option if that helps.
3770 cat >conftest.$ac_ext <<_ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3776 #include <sys/types.h>
3777 /* Check that off_t can represent 2**63 - 1 correctly.
3778 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3779 since some C++ compilers masquerading as C compilers
3780 incorrectly reject 9223372036854775807. */
3781 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3782 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3783 && LARGE_OFF_T % 2147483647 == 1)
3793 rm -f conftest.$ac_objext
3794 if { (ac_try="$ac_compile"
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3800 (eval "$ac_compile") 2>conftest.er1
3802 grep -v '^ *+' conftest.er1 >conftest.err
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } && {
3807 test -z "$ac_c_werror_flag" ||
3808 test ! -s conftest.err
3809 } && test -s conftest.$ac_objext; then
3812 echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3818 rm -f core conftest.err conftest.$ac_objext
3820 rm -f conftest.$ac_objext
3821 if { (ac_try="$ac_compile"
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_compile") 2>conftest.er1
3829 grep -v '^ *+' conftest.er1 >conftest.err
3831 cat conftest.err >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } && {
3834 test -z "$ac_c_werror_flag" ||
3835 test ! -s conftest.err
3836 } && test -s conftest.$ac_objext; then
3837 ac_cv_sys_largefile_CC=' -n32'; break
3839 echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3845 rm -f core conftest.err conftest.$ac_objext
3849 rm -f conftest.$ac_ext
3852 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3853 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3854 if test "$ac_cv_sys_largefile_CC" != no; then
3855 CC=$CC$ac_cv_sys_largefile_CC
3858 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3859 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3860 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 cat >conftest.$ac_ext <<_ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3870 #include <sys/types.h>
3871 /* Check that off_t can represent 2**63 - 1 correctly.
3872 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3873 since some C++ compilers masquerading as C compilers
3874 incorrectly reject 9223372036854775807. */
3875 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3876 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3877 && LARGE_OFF_T % 2147483647 == 1)
3887 rm -f conftest.$ac_objext
3888 if { (ac_try="$ac_compile"
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3894 (eval "$ac_compile") 2>conftest.er1
3896 grep -v '^ *+' conftest.er1 >conftest.err
3898 cat conftest.err >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } && {
3901 test -z "$ac_c_werror_flag" ||
3902 test ! -s conftest.err
3903 } && test -s conftest.$ac_objext; then
3904 ac_cv_sys_file_offset_bits=no; break
3906 echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3913 cat >conftest.$ac_ext <<_ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3919 #define _FILE_OFFSET_BITS 64
3920 #include <sys/types.h>
3921 /* Check that off_t can represent 2**63 - 1 correctly.
3922 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3923 since some C++ compilers masquerading as C compilers
3924 incorrectly reject 9223372036854775807. */
3925 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3926 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3927 && LARGE_OFF_T % 2147483647 == 1)
3937 rm -f conftest.$ac_objext
3938 if { (ac_try="$ac_compile"
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3944 (eval "$ac_compile") 2>conftest.er1
3946 grep -v '^ *+' conftest.er1 >conftest.err
3948 cat conftest.err >&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } && {
3951 test -z "$ac_c_werror_flag" ||
3952 test ! -s conftest.err
3953 } && test -s conftest.$ac_objext; then
3954 ac_cv_sys_file_offset_bits=64; break
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 ac_cv_sys_file_offset_bits=unknown
3967 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3968 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
3969 case $ac_cv_sys_file_offset_bits in #(
3972 cat >>confdefs.h <<_ACEOF
3973 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3978 if test $ac_cv_sys_file_offset_bits = unknown; then
3979 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3980 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
3981 if test "${ac_cv_sys_large_files+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 cat >conftest.$ac_ext <<_ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
3991 #include <sys/types.h>
3992 /* Check that off_t can represent 2**63 - 1 correctly.
3993 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3994 since some C++ compilers masquerading as C compilers
3995 incorrectly reject 9223372036854775807. */
3996 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3997 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3998 && LARGE_OFF_T % 2147483647 == 1)
4008 rm -f conftest.$ac_objext
4009 if { (ac_try="$ac_compile"
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015 (eval "$ac_compile") 2>conftest.er1
4017 grep -v '^ *+' conftest.er1 >conftest.err
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } && {
4022 test -z "$ac_c_werror_flag" ||
4023 test ! -s conftest.err
4024 } && test -s conftest.$ac_objext; then
4025 ac_cv_sys_large_files=no; break
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034 cat >conftest.$ac_ext <<_ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4040 #define _LARGE_FILES 1
4041 #include <sys/types.h>
4042 /* Check that off_t can represent 2**63 - 1 correctly.
4043 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4044 since some C++ compilers masquerading as C compilers
4045 incorrectly reject 9223372036854775807. */
4046 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4047 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4048 && LARGE_OFF_T % 2147483647 == 1)
4058 rm -f conftest.$ac_objext
4059 if { (ac_try="$ac_compile"
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_compile") 2>conftest.er1
4067 grep -v '^ *+' conftest.er1 >conftest.err
4069 cat conftest.err >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } && {
4072 test -z "$ac_c_werror_flag" ||
4073 test ! -s conftest.err
4074 } && test -s conftest.$ac_objext; then
4075 ac_cv_sys_large_files=1; break
4077 echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 ac_cv_sys_large_files=unknown
4088 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4089 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4090 case $ac_cv_sys_large_files in #(
4093 cat >>confdefs.h <<_ACEOF
4094 #define _LARGE_FILES $ac_cv_sys_large_files
4103 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4104 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4105 if test "${ac_cv_header_stdc+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 cat >conftest.$ac_ext <<_ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4127 rm -f conftest.$ac_objext
4128 if { (ac_try="$ac_compile"
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_compile") 2>conftest.er1
4136 grep -v '^ *+' conftest.er1 >conftest.err
4138 cat conftest.err >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } && {
4141 test -z "$ac_c_werror_flag" ||
4142 test ! -s conftest.err
4143 } && test -s conftest.$ac_objext; then
4144 ac_cv_header_stdc=yes
4146 echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4149 ac_cv_header_stdc=no
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 if test $ac_cv_header_stdc = yes; then
4155 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4156 cat >conftest.$ac_ext <<_ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4166 $EGREP "memchr" >/dev/null 2>&1; then
4169 ac_cv_header_stdc=no
4175 if test $ac_cv_header_stdc = yes; then
4176 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4177 cat >conftest.$ac_ext <<_ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h. */
4186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4187 $EGREP "free" >/dev/null 2>&1; then
4190 ac_cv_header_stdc=no
4196 if test $ac_cv_header_stdc = yes; then
4197 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4198 if test "$cross_compiling" = yes; then
4201 cat >conftest.$ac_ext <<_ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4209 #if ((' ' & 0x0FF) == 0x020)
4210 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4211 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4213 # define ISLOWER(c) \
4214 (('a' <= (c) && (c) <= 'i') \
4215 || ('j' <= (c) && (c) <= 'r') \
4216 || ('s' <= (c) && (c) <= 'z'))
4217 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4220 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4225 for (i = 0; i < 256; i++)
4226 if (XOR (islower (i), ISLOWER (i))
4227 || toupper (i) != TOUPPER (i))
4232 rm -f conftest$ac_exeext
4233 if { (ac_try="$ac_link"
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239 (eval "$ac_link") 2>&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4243 { (case "(($ac_try" in
4244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245 *) ac_try_echo=$ac_try;;
4247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4248 (eval "$ac_try") 2>&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; }; then
4254 echo "$as_me: program exited with status $ac_status" >&5
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4259 ac_cv_header_stdc=no
4261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4267 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4268 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4269 if test $ac_cv_header_stdc = yes; then
4271 cat >>confdefs.h <<\_ACEOF
4272 #define STDC_HEADERS 1
4277 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4287 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4288 inttypes.h stdint.h unistd.h
4290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 cat >conftest.$ac_ext <<_ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4302 $ac_includes_default
4304 #include <$ac_header>
4306 rm -f conftest.$ac_objext
4307 if { (ac_try="$ac_compile"
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_compile") 2>conftest.er1
4315 grep -v '^ *+' conftest.er1 >conftest.err
4317 cat conftest.err >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } && {
4320 test -z "$ac_c_werror_flag" ||
4321 test ! -s conftest.err
4322 } && test -s conftest.$ac_objext; then
4323 eval "$as_ac_Header=yes"
4325 echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4328 eval "$as_ac_Header=no"
4331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333 ac_res=`eval echo '${'$as_ac_Header'}'`
4334 { echo "$as_me:$LINENO: result: $ac_res" >&5
4335 echo "${ECHO_T}$ac_res" >&6; }
4336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4337 cat >>confdefs.h <<_ACEOF
4338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4346 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4347 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4348 if test "${ac_cv_c_bigendian+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 # See if sys/param.h defines the BYTE_ORDER macro.
4352 cat >conftest.$ac_ext <<_ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4358 #include <sys/types.h>
4359 #include <sys/param.h>
4364 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4365 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4373 rm -f conftest.$ac_objext
4374 if { (ac_try="$ac_compile"
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380 (eval "$ac_compile") 2>conftest.er1
4382 grep -v '^ *+' conftest.er1 >conftest.err
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } && {
4387 test -z "$ac_c_werror_flag" ||
4388 test ! -s conftest.err
4389 } && test -s conftest.$ac_objext; then
4390 # It does; now see whether it defined to BIG_ENDIAN or not.
4391 cat >conftest.$ac_ext <<_ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4397 #include <sys/types.h>
4398 #include <sys/param.h>
4403 #if BYTE_ORDER != BIG_ENDIAN
4411 rm -f conftest.$ac_objext
4412 if { (ac_try="$ac_compile"
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418 (eval "$ac_compile") 2>conftest.er1
4420 grep -v '^ *+' conftest.er1 >conftest.err
4422 cat conftest.err >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } && {
4425 test -z "$ac_c_werror_flag" ||
4426 test ! -s conftest.err
4427 } && test -s conftest.$ac_objext; then
4428 ac_cv_c_bigendian=yes
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4433 ac_cv_c_bigendian=no
4436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4441 # It does not; compile a test program.
4442 if test "$cross_compiling" = yes; then
4443 # try to guess the endianness by grepping values into an object file
4444 ac_cv_c_bigendian=unknown
4445 cat >conftest.$ac_ext <<_ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4452 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4453 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4454 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4455 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4456 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4460 _ascii (); _ebcdic ();
4465 rm -f conftest.$ac_objext
4466 if { (ac_try="$ac_compile"
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4472 (eval "$ac_compile") 2>conftest.er1
4474 grep -v '^ *+' conftest.er1 >conftest.err
4476 cat conftest.err >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } && {
4479 test -z "$ac_c_werror_flag" ||
4480 test ! -s conftest.err
4481 } && test -s conftest.$ac_objext; then
4482 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4483 ac_cv_c_bigendian=yes
4485 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4486 if test "$ac_cv_c_bigendian" = unknown; then
4487 ac_cv_c_bigendian=no
4489 # finding both strings is unlikely to happen, but who knows?
4490 ac_cv_c_bigendian=unknown
4494 echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502 cat >conftest.$ac_ext <<_ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4508 $ac_includes_default
4513 /* Are we little or big endian? From Harbison&Steele. */
4517 char c[sizeof (long int)];
4520 return u.c[sizeof (long int) - 1] == 1;
4526 rm -f conftest$ac_exeext
4527 if { (ac_try="$ac_link"
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533 (eval "$ac_link") 2>&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4537 { (case "(($ac_try" in
4538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539 *) ac_try_echo=$ac_try;;
4541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542 (eval "$ac_try") 2>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 ac_cv_c_bigendian=no
4548 echo "$as_me: program exited with status $ac_status" >&5
4549 echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4553 ac_cv_c_bigendian=yes
4555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4564 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4565 case $ac_cv_c_bigendian in
4568 cat >>confdefs.h <<\_ACEOF
4569 #define WORDS_BIGENDIAN 1
4575 { { echo "$as_me:$LINENO: error: unknown endianness
4576 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4577 echo "$as_me: error: unknown endianness
4578 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4579 { (exit 1); exit 1; }; } ;;
4583 # Extract the first word of "gmake", so it can be a program name with args.
4584 set dummy gmake; ac_word=$2
4585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4587 if test "${ac_cv_prog_GMAKE+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 if test -n "$GMAKE"; then
4591 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4600 ac_cv_prog_GMAKE="yes"
4601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4611 GMAKE=$ac_cv_prog_GMAKE
4612 if test -n "$GMAKE"; then
4613 { echo "$as_me:$LINENO: result: $GMAKE" >&5
4614 echo "${ECHO_T}$GMAKE" >&6; }
4616 { echo "$as_me:$LINENO: result: no" >&5
4617 echo "${ECHO_T}no" >&6; }
4621 if test $GMAKE = no; then
4622 # Extract the first word of "make", so it can be a program name with args.
4623 set dummy make; ac_word=$2
4624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4626 if test "${ac_cv_path_MAKE+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4641 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4653 MAKE=$ac_cv_path_MAKE
4654 if test -n "$MAKE"; then
4655 { echo "$as_me:$LINENO: result: $MAKE" >&5
4656 echo "${ECHO_T}$MAKE" >&6; }
4658 { echo "$as_me:$LINENO: result: no" >&5
4659 echo "${ECHO_T}no" >&6; }
4664 # Extract the first word of "gmake", so it can be a program name with args.
4665 set dummy gmake; ac_word=$2
4666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4668 if test "${ac_cv_path_MAKE+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4683 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4695 MAKE=$ac_cv_path_MAKE
4696 if test -n "$MAKE"; then
4697 { echo "$as_me:$LINENO: result: $MAKE" >&5
4698 echo "${ECHO_T}$MAKE" >&6; }
4700 { echo "$as_me:$LINENO: result: no" >&5
4701 echo "${ECHO_T}no" >&6; }
4706 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4707 if test -z "$makever"; then
4708 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
4709 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4710 echo "$as_me: error: GNU Make is not installed. Please download and install it
4711 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4712 { (exit 1); exit 1; }; }
4721 if test -f $prefix/lib/libltdl.la; then
4722 lt_save_LDFLAGS="$LDFLAGS"
4723 LDFLAGS="-L$prefix/lib $LDFLAGS"
4724 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4725 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4726 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 ac_check_lib_save_LIBS=$LIBS
4731 cat >conftest.$ac_ext <<_ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4738 /* Override any GCC internal prototype to avoid an error.
4739 Use char because int might match the return type of a GCC
4740 builtin and then its argument prototype would still apply. */
4748 return lt_dlinit ();
4753 rm -f conftest.$ac_objext conftest$ac_exeext
4754 if { (ac_try="$ac_link"
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760 (eval "$ac_link") 2>conftest.er1
4762 grep -v '^ *+' conftest.er1 >conftest.err
4764 cat conftest.err >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } && {
4767 test -z "$ac_c_werror_flag" ||
4768 test ! -s conftest.err
4769 } && test -s conftest$ac_exeext &&
4770 $as_test_x conftest$ac_exeext; then
4771 ac_cv_lib_ltdl_lt_dlinit=yes
4773 echo "$as_me: failed program was:" >&5
4774 sed 's/^/| /' conftest.$ac_ext >&5
4776 ac_cv_lib_ltdl_lt_dlinit=no
4779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4780 conftest$ac_exeext conftest.$ac_ext
4781 LIBS=$ac_check_lib_save_LIBS
4783 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4784 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4785 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4789 LDFLAGS="$lt_save_LDFLAGS"
4790 if test x"${lt_lib_ltdl-no}" = xyes; then
4791 if test x"$enable_ltdl_install" != xyes; then
4792 # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install
4793 { echo "$as_me:$LINENO: WARNING: not overwriting libltdl at $prefix, force with \`--enable-ltdl-install'" >&5
4794 echo "$as_me: WARNING: not overwriting libltdl at $prefix, force with \`--enable-ltdl-install'" >&2;}
4795 enable_ltdl_install=no
4797 elif test x"$enable_ltdl_install" = xno; then
4798 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4799 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4803 # If configure.ac declared an installable ltdl, and the user didn't override
4804 # with --disable-ltdl-install, we will install the shipped libltdl.
4805 case $enable_ltdl_install in
4806 no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4811 *) enable_ltdl_install=yes
4812 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4813 LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la"
4815 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
4823 # For backwards non-gettext consistent compatibility...
4828 if test x"$enable_ltdl_install" = x"yes"; then
4829 LTDL_SUBDIRS=libltdl
4836 for ac_dir in . "$srcdir"/.; do
4837 if test -f "$ac_dir/install-sh"; then
4839 ac_install_sh="$ac_aux_dir/install-sh -c"
4841 elif test -f "$ac_dir/install.sh"; then
4843 ac_install_sh="$ac_aux_dir/install.sh -c"
4845 elif test -f "$ac_dir/shtool"; then
4847 ac_install_sh="$ac_aux_dir/shtool install -c"
4851 if test -z "$ac_aux_dir"; then
4852 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
4853 echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
4854 { (exit 1); exit 1; }; }
4857 # These three variables are undocumented and unsupported,
4858 # and are intended to be withdrawn in a future Autoconf release.
4859 # They can cause serious problems if a builder's source tree is in a directory
4860 # whose full name contains unusual characters.
4861 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4862 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4863 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4869 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4870 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4875 macro_version='2.2.4'
4876 macro_revision='1.2976'
4890 ltmain="$ac_aux_dir/ltmain.sh"
4892 # Make sure we can run config.sub.
4893 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4894 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4895 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4896 { (exit 1); exit 1; }; }
4898 { echo "$as_me:$LINENO: checking build system type" >&5
4899 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4900 if test "${ac_cv_build+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 ac_build_alias=$build_alias
4904 test "x$ac_build_alias" = x &&
4905 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4906 test "x$ac_build_alias" = x &&
4907 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4908 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4909 { (exit 1); exit 1; }; }
4910 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4911 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4912 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4913 { (exit 1); exit 1; }; }
4916 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4917 echo "${ECHO_T}$ac_cv_build" >&6; }
4918 case $ac_cv_build in
4920 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4921 echo "$as_me: error: invalid value of canonical build" >&2;}
4922 { (exit 1); exit 1; }; };;
4925 ac_save_IFS=$IFS; IFS='-'
4931 # Remember, the first character of IFS is used to create $*,
4932 # except with old shells:
4935 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4938 { echo "$as_me:$LINENO: checking host system type" >&5
4939 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4940 if test "${ac_cv_host+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 if test "x$host_alias" = x; then
4944 ac_cv_host=$ac_cv_build
4946 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4947 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4948 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4949 { (exit 1); exit 1; }; }
4953 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4954 echo "${ECHO_T}$ac_cv_host" >&6; }
4957 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4958 echo "$as_me: error: invalid value of canonical host" >&2;}
4959 { (exit 1); exit 1; }; };;
4962 ac_save_IFS=$IFS; IFS='-'
4968 # Remember, the first character of IFS is used to create $*,
4969 # except with old shells:
4972 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4975 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4976 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4977 if test "${ac_cv_path_SED+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4981 for ac_i in 1 2 3 4 5 6 7; do
4982 ac_script="$ac_script$as_nl$ac_script"
4984 echo "$ac_script" | sed 99q >conftest.sed
4985 $as_unset ac_script || ac_script=
4986 # Extract the first word of "sed gsed" to use in msg output
4987 if test -z "$SED"; then
4988 set dummy sed gsed; ac_prog_name=$2
4989 if test "${ac_cv_path_SED+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 ac_path_SED_found=false
4993 # Loop through the user's path and test for each of PROGNAME-LIST
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 test -z "$as_dir" && as_dir=.
4999 for ac_prog in sed gsed; do
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5002 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5003 # Check for GNU ac_path_SED and select it if it is found.
5004 # Check for GNU $ac_path_SED
5005 case `"$ac_path_SED" --version 2>&1` in
5007 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5010 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5013 cat "conftest.in" "conftest.in" >"conftest.tmp"
5014 mv "conftest.tmp" "conftest.in"
5015 cp "conftest.in" "conftest.nl"
5016 echo '' >> "conftest.nl"
5017 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5019 ac_count=`expr $ac_count + 1`
5020 if test $ac_count -gt ${ac_path_SED_max-0}; then
5021 # Best one so far, save it but keep looking for a better one
5022 ac_cv_path_SED="$ac_path_SED"
5023 ac_path_SED_max=$ac_count
5025 # 10*(2^10) chars as input seems more than enough
5026 test $ac_count -gt 10 && break
5028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5032 $ac_path_SED_found && break 3
5042 SED="$ac_cv_path_SED"
5043 if test -z "$SED"; then
5044 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5045 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5046 { (exit 1); exit 1; }; }
5054 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5055 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5056 SED="$ac_cv_path_SED"
5059 test -z "$SED" && SED=sed
5060 Xsed="$SED -e 1s/^X//"
5072 { echo "$as_me:$LINENO: checking for fgrep" >&5
5073 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5074 if test "${ac_cv_path_FGREP+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5078 then ac_cv_path_FGREP="$GREP -F"
5080 # Extract the first word of "fgrep" to use in msg output
5081 if test -z "$FGREP"; then
5082 set dummy fgrep; ac_prog_name=$2
5083 if test "${ac_cv_path_FGREP+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 ac_path_FGREP_found=false
5087 # Loop through the user's path and test for each of PROGNAME-LIST
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5092 test -z "$as_dir" && as_dir=.
5093 for ac_prog in fgrep; do
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5096 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5097 # Check for GNU ac_path_FGREP and select it if it is found.
5098 # Check for GNU $ac_path_FGREP
5099 case `"$ac_path_FGREP" --version 2>&1` in
5101 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5104 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5107 cat "conftest.in" "conftest.in" >"conftest.tmp"
5108 mv "conftest.tmp" "conftest.in"
5109 cp "conftest.in" "conftest.nl"
5110 echo 'FGREP' >> "conftest.nl"
5111 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5113 ac_count=`expr $ac_count + 1`
5114 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5115 # Best one so far, save it but keep looking for a better one
5116 ac_cv_path_FGREP="$ac_path_FGREP"
5117 ac_path_FGREP_max=$ac_count
5119 # 10*(2^10) chars as input seems more than enough
5120 test $ac_count -gt 10 && break
5122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5126 $ac_path_FGREP_found && break 3
5136 FGREP="$ac_cv_path_FGREP"
5137 if test -z "$FGREP"; then
5138 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5139 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5140 { (exit 1); exit 1; }; }
5144 ac_cv_path_FGREP=$FGREP
5150 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5151 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5152 FGREP="$ac_cv_path_FGREP"
5155 test -z "$GREP" && GREP=grep
5175 # Check whether --with-gnu-ld was given.
5176 if test "${with_gnu_ld+set}" = set; then
5177 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5183 if test "$GCC" = yes; then
5184 # Check if gcc -print-prog-name=ld gives a path.
5185 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5186 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5189 # gcc leaves a trailing carriage return which upsets mingw
5190 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5192 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5195 # Accept absolute paths.
5197 re_direlt='/[^/][^/]*/\.\./'
5198 # Canonicalize the pathname of ld
5199 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5200 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5201 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5203 test -z "$LD" && LD="$ac_prog"
5206 # If it fails, then pretend we aren't using GCC.
5210 # If it is relative, then search for the first ld in PATH.
5214 elif test "$with_gnu_ld" = yes; then
5215 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5216 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5218 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5219 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5221 if test "${lt_cv_path_LD+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 if test -z "$LD"; then
5225 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5226 for ac_dir in $PATH; do
5228 test -z "$ac_dir" && ac_dir=.
5229 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5230 lt_cv_path_LD="$ac_dir/$ac_prog"
5231 # Check to see if the program is GNU ld. I'd rather use --version,
5232 # but apparently some variants of GNU ld only accept -v.
5233 # Break only if it was the GNU/non-GNU ld that we prefer.
5234 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5235 *GNU* | *'with BFD'*)
5236 test "$with_gnu_ld" != no && break
5239 test "$with_gnu_ld" != yes && break
5246 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5251 if test -n "$LD"; then
5252 { echo "$as_me:$LINENO: result: $LD" >&5
5253 echo "${ECHO_T}$LD" >&6; }
5255 { echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6; }
5258 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5259 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5260 { (exit 1); exit 1; }; }
5261 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5262 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5263 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5267 case `$LD -v 2>&1 </dev/null` in
5268 *GNU* | *'with BFD'*)
5269 lt_cv_prog_gnu_ld=yes
5272 lt_cv_prog_gnu_ld=no
5276 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5277 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5278 with_gnu_ld=$lt_cv_prog_gnu_ld
5288 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5289 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5290 if test "${lt_cv_path_NM+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 if test -n "$NM"; then
5294 # Let the user override the test.
5297 lt_nm_to_check="${ac_tool_prefix}nm"
5298 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5299 lt_nm_to_check="$lt_nm_to_check nm"
5301 for lt_tmp_nm in $lt_nm_to_check; do
5302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5303 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5305 test -z "$ac_dir" && ac_dir=.
5306 tmp_nm="$ac_dir/$lt_tmp_nm"
5307 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5308 # Check to see if the nm accepts a BSD-compat flag.
5309 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5310 # nm: unknown option "B" ignored
5311 # Tru64's nm complains that /dev/null is an invalid object file
5312 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5313 */dev/null* | *'Invalid file or object type'*)
5314 lt_cv_path_NM="$tmp_nm -B"
5318 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5320 lt_cv_path_NM="$tmp_nm -p"
5324 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5325 continue # so that we can try to find one that supports BSD flags
5334 : ${lt_cv_path_NM=no}
5337 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5338 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5339 if test "$lt_cv_path_NM" != "no"; then
5342 # Didn't find any BSD compatible name lister, look for dumpbin.
5343 if test -n "$ac_tool_prefix"; then
5344 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5350 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 if test -n "$DUMPBIN"; then
5354 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 DUMPBIN=$ac_cv_prog_DUMPBIN
5374 if test -n "$DUMPBIN"; then
5375 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5376 echo "${ECHO_T}$DUMPBIN" >&6; }
5378 { echo "$as_me:$LINENO: result: no" >&5
5379 echo "${ECHO_T}no" >&6; }
5383 test -n "$DUMPBIN" && break
5386 if test -z "$DUMPBIN"; then
5387 ac_ct_DUMPBIN=$DUMPBIN
5388 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5390 # Extract the first word of "$ac_prog", so it can be a program name with args.
5391 set dummy $ac_prog; ac_word=$2
5392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5394 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 if test -n "$ac_ct_DUMPBIN"; then
5398 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5418 if test -n "$ac_ct_DUMPBIN"; then
5419 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5420 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5422 { echo "$as_me:$LINENO: result: no" >&5
5423 echo "${ECHO_T}no" >&6; }
5427 test -n "$ac_ct_DUMPBIN" && break
5430 if test "x$ac_ct_DUMPBIN" = x; then
5433 case $cross_compiling:$ac_tool_warned in
5435 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5436 whose name does not start with the host triplet. If you think this
5437 configuration is useful to you, please write to autoconf@gnu.org." >&5
5438 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5439 whose name does not start with the host triplet. If you think this
5440 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5441 ac_tool_warned=yes ;;
5443 DUMPBIN=$ac_ct_DUMPBIN
5448 if test "$DUMPBIN" != ":"; then
5452 test -z "$NM" && NM=nm
5459 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5460 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5461 if test "${lt_cv_nm_interface+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 lt_cv_nm_interface="BSD nm"
5465 echo "int some_variable = 0;" > conftest.$ac_ext
5466 (eval echo "\"\$as_me:5466: $ac_compile\"" >&5)
5467 (eval "$ac_compile" 2>conftest.err)
5468 cat conftest.err >&5
5469 (eval echo "\"\$as_me:5469: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5470 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5471 cat conftest.err >&5
5472 (eval echo "\"\$as_me:5472: output\"" >&5)
5473 cat conftest.out >&5
5474 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5475 lt_cv_nm_interface="MS dumpbin"
5479 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5480 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5482 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5483 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5485 if test "$LN_S" = "ln -s"; then
5486 { echo "$as_me:$LINENO: result: yes" >&5
5487 echo "${ECHO_T}yes" >&6; }
5489 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5490 echo "${ECHO_T}no, using $LN_S" >&6; }
5493 # find the maximum length of command line arguments
5494 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5495 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5496 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 # On DJGPP, this test can blow up pretty badly due to problems in libc
5505 # (any single argument exceeding 2000 bytes causes a buffer overrun
5506 # during glob expansion). Even if it were fixed, the result of this
5507 # check would be larger than it should be.
5508 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5512 # Under GNU Hurd, this test is not required because there is
5513 # no limit to the length of command line arguments.
5514 # Libtool will interpret -1 as no limit whatsoever
5515 lt_cv_sys_max_cmd_len=-1;
5519 # On Win9x/ME, this test blows up -- it succeeds, but takes
5520 # about 5 minutes as the teststring grows exponentially.
5521 # Worse, since 9x/ME are not pre-emptively multitasking,
5522 # you end up with a "frozen" computer, even though with patience
5523 # the test eventually succeeds (with a max line length of 256k).
5524 # Instead, let's just punt: use the minimum linelength reported by
5525 # all of the supported platforms: 8192 (on NT/2K/XP).
5526 lt_cv_sys_max_cmd_len=8192;
5530 # On AmigaOS with pdksh, this test takes hours, literally.
5531 # So we just punt and use a minimum line length of 8192.
5532 lt_cv_sys_max_cmd_len=8192;
5535 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5536 # This has been around since 386BSD, at least. Likely further.
5537 if test -x /sbin/sysctl; then
5538 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5539 elif test -x /usr/sbin/sysctl; then
5540 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5542 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5544 # And add a safety zone
5545 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5550 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5551 lt_cv_sys_max_cmd_len=196608
5555 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5556 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5557 # nice to cause kernel panics so lets avoid the loop below.
5558 # First set a reasonable default.
5559 lt_cv_sys_max_cmd_len=16384
5561 if test -x /sbin/sysconfig; then
5562 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5563 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5568 lt_cv_sys_max_cmd_len=102400
5570 sysv5* | sco5v6* | sysv4.2uw2*)
5571 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5572 if test -n "$kargmax"; then
5573 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5575 lt_cv_sys_max_cmd_len=32768
5579 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5580 if test -n "$lt_cv_sys_max_cmd_len"; then
5581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5584 # Make teststring a little bigger before we do anything with it.
5585 # a 1K string should be a reasonable start.
5586 for i in 1 2 3 4 5 6 7 8 ; do
5587 teststring=$teststring$teststring
5589 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5590 # If test is not a shell built-in, we'll probably end up computing a
5591 # maximum length that is only half of the actual maximum length, but
5593 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5594 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5595 test $i != 17 # 1/2 MB should be enough
5598 teststring=$teststring$teststring
5600 # Only check the string length outside the loop.
5601 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5603 # Add a significant safety factor because C++ compilers can tack on
5604 # massive amounts of additional arguments before passing them to the
5605 # linker. It appears as though 1/2 is a usable value.
5606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5613 if test -n $lt_cv_sys_max_cmd_len ; then
5614 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5615 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5617 { echo "$as_me:$LINENO: result: none" >&5
5618 echo "${ECHO_T}none" >&6; }
5620 max_cmd_len=$lt_cv_sys_max_cmd_len
5631 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5632 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
5633 # Try some XSI features
5636 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5638 && eval 'test $(( 1 + 1 )) -eq 2 \
5639 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5641 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
5642 echo "${ECHO_T}$xsi_shell" >&6; }
5645 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5646 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
5648 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5650 && lt_shell_append=yes
5651 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5652 echo "${ECHO_T}$lt_shell_append" >&6; }
5655 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5665 # test EBCDIC or ASCII
5666 case `echo X|tr X '\101'` in
5667 A) # ASCII based system
5668 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5669 lt_SP2NL='tr \040 \012'
5670 lt_NL2SP='tr \015\012 \040\040'
5672 *) # EBCDIC based system
5673 lt_SP2NL='tr \100 \n'
5674 lt_NL2SP='tr \r\n \100\100'
5686 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5687 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5688 if test "${lt_cv_ld_reload_flag+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 lt_cv_ld_reload_flag='-r'
5693 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5694 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5695 reload_flag=$lt_cv_ld_reload_flag
5696 case $reload_flag in
5698 *) reload_flag=" $reload_flag" ;;
5700 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5703 if test "$GCC" = yes; then
5704 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5706 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5720 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5721 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5722 if test "${lt_cv_deplibs_check_method+set}" = set; then
5723 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 lt_cv_file_magic_cmd='$MAGIC_CMD'
5726 lt_cv_file_magic_test_file=
5727 lt_cv_deplibs_check_method='unknown'
5728 # Need to set the preceding variable on all platforms that support
5729 # interlibrary dependencies.
5730 # 'none' -- dependencies not supported.
5731 # `unknown' -- same as none, but documents that we really don't know.
5732 # 'pass_all' -- all dependencies passed with no checks.
5733 # 'test_compile' -- check by making test program.
5734 # 'file_magic [[regex]]' -- check by looking for files in library path
5735 # which responds to the $file_magic_cmd with a given extended regex.
5736 # If you have `file' or equivalent on your system and you're not sure
5737 # whether `pass_all' will *always* work, you probably want this one.
5741 lt_cv_deplibs_check_method=pass_all
5745 lt_cv_deplibs_check_method=pass_all
5749 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5750 lt_cv_file_magic_cmd='/usr/bin/file -L'
5751 lt_cv_file_magic_test_file=/shlib/libc.so
5755 # func_win32_libid is a shell function defined in ltmain.sh
5756 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5757 lt_cv_file_magic_cmd='func_win32_libid'
5761 # Base MSYS/MinGW do not provide the 'file' command needed by
5762 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5763 # unless we find 'file', for example because we are cross-compiling.
5764 if ( file / ) >/dev/null 2>&1; then
5765 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5766 lt_cv_file_magic_cmd='func_win32_libid'
5768 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5769 lt_cv_file_magic_cmd='$OBJDUMP -f'
5773 darwin* | rhapsody*)
5774 lt_cv_deplibs_check_method=pass_all
5777 freebsd* | dragonfly*)
5778 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5781 # Not sure whether the presence of OpenBSD here was a mistake.
5782 # Let's accept both of them until this is cleared up.
5783 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5784 lt_cv_file_magic_cmd=/usr/bin/file
5785 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5789 lt_cv_deplibs_check_method=pass_all
5794 lt_cv_deplibs_check_method=pass_all
5797 hpux10.20* | hpux11*)
5798 lt_cv_file_magic_cmd=/usr/bin/file
5801 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5802 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5805 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5806 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5809 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5810 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5816 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5817 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5820 irix5* | irix6* | nonstopux*)
5822 *-32|*"-32 ") libmagic=32-bit;;
5823 *-n32|*"-n32 ") libmagic=N32;;
5824 *-64|*"-64 ") libmagic=64-bit;;
5825 *) libmagic=never-match;;
5827 lt_cv_deplibs_check_method=pass_all
5830 # This must be Linux ELF.
5831 linux* | k*bsd*-gnu)
5832 lt_cv_deplibs_check_method=pass_all
5836 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5837 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5844 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5845 lt_cv_file_magic_cmd=/usr/bin/file
5846 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5850 lt_cv_deplibs_check_method=pass_all
5854 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5855 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5857 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5861 osf3* | osf4* | osf5*)
5862 lt_cv_deplibs_check_method=pass_all
5866 lt_cv_deplibs_check_method=pass_all
5870 lt_cv_deplibs_check_method=pass_all
5873 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5874 lt_cv_deplibs_check_method=pass_all
5878 case $host_vendor in
5880 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]'
5881 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5884 lt_cv_deplibs_check_method=pass_all
5887 lt_cv_file_magic_cmd='/bin/file'
5888 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5891 lt_cv_file_magic_cmd='/bin/file'
5892 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5893 lt_cv_file_magic_test_file=/lib/libc.so
5896 lt_cv_deplibs_check_method=pass_all
5899 lt_cv_deplibs_check_method=pass_all
5905 lt_cv_deplibs_check_method=pass_all
5910 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5911 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5912 file_magic_cmd=$lt_cv_file_magic_cmd
5913 deplibs_check_method=$lt_cv_deplibs_check_method
5914 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5927 if test -n "$ac_tool_prefix"; then
5928 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5929 set dummy ${ac_tool_prefix}ar; ac_word=$2
5930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5932 if test "${ac_cv_prog_AR+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 if test -n "$AR"; then
5936 ac_cv_prog_AR="$AR" # Let the user override the test.
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 test -z "$as_dir" && as_dir=.
5943 for ac_exec_ext in '' $ac_executable_extensions; do
5944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5945 ac_cv_prog_AR="${ac_tool_prefix}ar"
5946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 if test -n "$AR"; then
5957 { echo "$as_me:$LINENO: result: $AR" >&5
5958 echo "${ECHO_T}$AR" >&6; }
5960 { echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6; }
5966 if test -z "$ac_cv_prog_AR"; then
5968 # Extract the first word of "ar", so it can be a program name with args.
5969 set dummy ar; ac_word=$2
5970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5972 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 if test -n "$ac_ct_AR"; then
5976 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5985 ac_cv_prog_ac_ct_AR="ar"
5986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5996 if test -n "$ac_ct_AR"; then
5997 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5998 echo "${ECHO_T}$ac_ct_AR" >&6; }
6000 { echo "$as_me:$LINENO: result: no" >&5
6001 echo "${ECHO_T}no" >&6; }
6004 if test "x$ac_ct_AR" = x; then
6007 case $cross_compiling:$ac_tool_warned in
6009 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6010 whose name does not start with the host triplet. If you think this
6011 configuration is useful to you, please write to autoconf@gnu.org." >&5
6012 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6013 whose name does not start with the host triplet. If you think this
6014 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6015 ac_tool_warned=yes ;;
6023 test -z "$AR" && AR=ar
6024 test -z "$AR_FLAGS" && AR_FLAGS=cru
6036 if test -n "$ac_tool_prefix"; then
6037 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6038 set dummy ${ac_tool_prefix}strip; ac_word=$2
6039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6041 if test "${ac_cv_prog_STRIP+set}" = set; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 if test -n "$STRIP"; then
6045 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 test -z "$as_dir" && as_dir=.
6052 for ac_exec_ext in '' $ac_executable_extensions; do
6053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 STRIP=$ac_cv_prog_STRIP
6065 if test -n "$STRIP"; then
6066 { echo "$as_me:$LINENO: result: $STRIP" >&5
6067 echo "${ECHO_T}$STRIP" >&6; }
6069 { echo "$as_me:$LINENO: result: no" >&5
6070 echo "${ECHO_T}no" >&6; }
6075 if test -z "$ac_cv_prog_STRIP"; then
6077 # Extract the first word of "strip", so it can be a program name with args.
6078 set dummy strip; ac_word=$2
6079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6081 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 if test -n "$ac_ct_STRIP"; then
6085 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 test -z "$as_dir" && as_dir=.
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094 ac_cv_prog_ac_ct_STRIP="strip"
6095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6105 if test -n "$ac_ct_STRIP"; then
6106 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6107 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6109 { echo "$as_me:$LINENO: result: no" >&5
6110 echo "${ECHO_T}no" >&6; }
6113 if test "x$ac_ct_STRIP" = x; then
6116 case $cross_compiling:$ac_tool_warned in
6118 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6119 whose name does not start with the host triplet. If you think this
6120 configuration is useful to you, please write to autoconf@gnu.org." >&5
6121 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6122 whose name does not start with the host triplet. If you think this
6123 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6124 ac_tool_warned=yes ;;
6129 STRIP="$ac_cv_prog_STRIP"
6132 test -z "$STRIP" && STRIP=:
6139 if test -n "$ac_tool_prefix"; then
6140 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6141 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6144 if test "${ac_cv_prog_RANLIB+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 if test -n "$RANLIB"; then
6148 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 test -z "$as_dir" && as_dir=.
6155 for ac_exec_ext in '' $ac_executable_extensions; do
6156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6157 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6167 RANLIB=$ac_cv_prog_RANLIB
6168 if test -n "$RANLIB"; then
6169 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6170 echo "${ECHO_T}$RANLIB" >&6; }
6172 { echo "$as_me:$LINENO: result: no" >&5
6173 echo "${ECHO_T}no" >&6; }
6178 if test -z "$ac_cv_prog_RANLIB"; then
6179 ac_ct_RANLIB=$RANLIB
6180 # Extract the first word of "ranlib", so it can be a program name with args.
6181 set dummy ranlib; ac_word=$2
6182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6184 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 if test -n "$ac_ct_RANLIB"; then
6188 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6197 ac_cv_prog_ac_ct_RANLIB="ranlib"
6198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6208 if test -n "$ac_ct_RANLIB"; then
6209 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6210 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6212 { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6216 if test "x$ac_ct_RANLIB" = x; then
6219 case $cross_compiling:$ac_tool_warned in
6221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6222 whose name does not start with the host triplet. If you think this
6223 configuration is useful to you, please write to autoconf@gnu.org." >&5
6224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6225 whose name does not start with the host triplet. If you think this
6226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6227 ac_tool_warned=yes ;;
6229 RANLIB=$ac_ct_RANLIB
6232 RANLIB="$ac_cv_prog_RANLIB"
6235 test -z "$RANLIB" && RANLIB=:
6242 # Determine commands to create old-style static archives.
6243 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6244 old_postinstall_cmds='chmod 644 $oldlib'
6245 old_postuninstall_cmds=
6247 if test -n "$RANLIB"; then
6250 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6253 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6256 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6292 # If no C compiler was specified, use CC.
6295 # If no C compiler flags were specified, use CFLAGS.
6296 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6298 # Allow CC to be a program name with arguments.
6302 # Check for command to grab the raw symbol name followed by C symbol from nm.
6303 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6304 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6305 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 # These are sane defaults that work on at least a few old systems.
6310 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6312 # Character class describing NM global symbol codes.
6313 symcode='[BCDEGRST]'
6315 # Regexp to match symbols that can be accessed directly from C.
6316 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6318 # Define system-specific variables.
6323 cygwin* | mingw* | pw32*)
6324 symcode='[ABCDGISTW]'
6327 if test "$host_cpu" = ia64; then
6328 symcode='[ABCDEGRST]'
6332 symcode='[BCDEGRST]'
6335 symcode='[BCDEGQRST]'
6346 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6354 # If we're using GNU nm, then use its standard symbol codes.
6355 case `$NM -V 2>&1` in
6356 *GNU* | *'with BFD'*)
6357 symcode='[ABCDGIRSTW]' ;;
6360 # Transform an extracted symbol line into a proper C declaration.
6361 # Some systems (esp. on ia64) link data and code symbols differently,
6362 # so use this general approach.
6363 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6365 # Transform an extracted symbol line into symbol name and symbol address
6366 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6367 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6369 # Handle CRLF in mingw tool chain
6373 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6377 # Try without a prefix underscore, then with it.
6378 for ac_symprfx in "" "_"; do
6380 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6381 symxfrm="\\1 $ac_symprfx\\2 \\2"
6383 # Write the raw and C identifiers.
6384 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6385 # Fake it for dumpbin and say T for any non-static function
6386 # and D for any global variable.
6387 # Also find C++ and __fastcall symbols from MSVC++,
6388 # which start with @ or ?.
6389 lt_cv_sys_global_symbol_pipe="$AWK '"\
6390 " {last_section=section; section=\$ 3};"\
6391 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6392 " \$ 0!~/External *\|/{next};"\
6393 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6394 " {if(hide[section]) next};"\
6395 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6396 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6397 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6398 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6399 " ' prfx=^$ac_symprfx"
6401 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6404 # Check to see that the pipe works correctly.
6408 cat > conftest.$ac_ext <<_LT_EOF
6413 void nm_test_func(void);
6414 void nm_test_func(void){}
6418 int main(){nm_test_var='a';nm_test_func();return(0);}
6421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422 (eval $ac_compile) 2>&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; then
6426 # Now try to grab the symbols.
6428 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6429 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && test -s "$nlist"; then
6433 # Try sorting and uniquifying the output.
6434 if sort "$nlist" | uniq > "$nlist"T; then
6435 mv -f "$nlist"T "$nlist"
6440 # Make sure that we snagged all the symbols we need.
6441 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6442 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6443 cat <<_LT_EOF > conftest.$ac_ext
6449 # Now generate the symbol file.
6450 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6452 cat <<_LT_EOF >> conftest.$ac_ext
6454 /* The mapping between symbol names and symbols. */
6459 lt__PROGRAM__LTX_preloaded_symbols[] =
6461 { "@PROGRAM@", (void *) 0 },
6463 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6464 cat <<\_LT_EOF >> conftest.$ac_ext
6468 /* This works around a problem in FreeBSD linker */
6469 #ifdef FREEBSD_WORKAROUND
6470 static const void *lt_preloaded_setup() {
6471 return lt__PROGRAM__LTX_preloaded_symbols;
6479 # Now try linking the two files.
6480 mv conftest.$ac_objext conftstm.$ac_objext
6481 lt_save_LIBS="$LIBS"
6482 lt_save_CFLAGS="$CFLAGS"
6483 LIBS="conftstm.$ac_objext"
6484 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6486 (eval $ac_link) 2>&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6492 LIBS="$lt_save_LIBS"
6493 CFLAGS="$lt_save_CFLAGS"
6495 echo "cannot find nm_test_func in $nlist" >&5
6498 echo "cannot find nm_test_var in $nlist" >&5
6501 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6504 echo "$progname: failed program was:" >&5
6505 cat conftest.$ac_ext >&5
6507 rm -rf conftest* conftst*
6509 # Do not use the global_symbol_pipe unless it works.
6510 if test "$pipe_works" = yes; then
6513 lt_cv_sys_global_symbol_pipe=
6519 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6520 lt_cv_sys_global_symbol_to_cdecl=
6522 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6523 { echo "$as_me:$LINENO: result: failed" >&5
6524 echo "${ECHO_T}failed" >&6; }
6526 { echo "$as_me:$LINENO: result: ok" >&5
6527 echo "${ECHO_T}ok" >&6; }
6551 # Check whether --enable-libtool-lock was given.
6552 if test "${enable_libtool_lock+set}" = set; then
6553 enableval=$enable_libtool_lock;
6556 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6558 # Some flags need to be propagated to the compiler or linker for good
6562 # Find out which ABI we are using.
6563 echo 'int i;' > conftest.$ac_ext
6564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6565 (eval $ac_compile) 2>&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; then
6569 case `/usr/bin/file conftest.$ac_objext` in
6581 # Find out which ABI we are using.
6582 echo '#line 6582 "configure"' > conftest.$ac_ext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584 (eval $ac_compile) 2>&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; then
6588 if test "$lt_cv_prog_gnu_ld" = yes; then
6589 case `/usr/bin/file conftest.$ac_objext` in
6591 LD="${LD-ld} -melf32bsmip"
6594 LD="${LD-ld} -melf32bmipn32"
6597 LD="${LD-ld} -melf64bmip"
6601 case `/usr/bin/file conftest.$ac_objext` in
6617 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6618 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6619 # Find out which ABI we are using.
6620 echo 'int i;' > conftest.$ac_ext
6621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6622 (eval $ac_compile) 2>&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; then
6626 case `/usr/bin/file conftest.o` in
6629 x86_64-*kfreebsd*-gnu)
6630 LD="${LD-ld} -m elf_i386_fbsd"
6633 LD="${LD-ld} -m elf_i386"
6635 ppc64-*linux*|powerpc64-*linux*)
6636 LD="${LD-ld} -m elf32ppclinux"
6639 LD="${LD-ld} -m elf_s390"
6642 LD="${LD-ld} -m elf32_sparc"
6648 x86_64-*kfreebsd*-gnu)
6649 LD="${LD-ld} -m elf_x86_64_fbsd"
6652 LD="${LD-ld} -m elf_x86_64"
6654 ppc*-*linux*|powerpc*-*linux*)
6655 LD="${LD-ld} -m elf64ppc"
6657 s390*-*linux*|s390*-*tpf*)
6658 LD="${LD-ld} -m elf64_s390"
6661 LD="${LD-ld} -m elf64_sparc"
6671 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6672 SAVE_CFLAGS="$CFLAGS"
6673 CFLAGS="$CFLAGS -belf"
6674 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6675 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6676 if test "${lt_cv_cc_needs_belf+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 ac_cpp='$CPP $CPPFLAGS'
6681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6685 cat >conftest.$ac_ext <<_ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6700 rm -f conftest.$ac_objext conftest$ac_exeext
6701 if { (ac_try="$ac_link"
6703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6704 *) ac_try_echo=$ac_try;;
6706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6707 (eval "$ac_link") 2>conftest.er1
6709 grep -v '^ *+' conftest.er1 >conftest.err
6711 cat conftest.err >&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } && {
6714 test -z "$ac_c_werror_flag" ||
6715 test ! -s conftest.err
6716 } && test -s conftest$ac_exeext &&
6717 $as_test_x conftest$ac_exeext; then
6718 lt_cv_cc_needs_belf=yes
6720 echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6723 lt_cv_cc_needs_belf=no
6726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6727 conftest$ac_exeext conftest.$ac_ext
6729 ac_cpp='$CPP $CPPFLAGS'
6730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6735 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6736 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6737 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6738 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6739 CFLAGS="$SAVE_CFLAGS"
6743 # Find out which ABI we are using.
6744 echo 'int i;' > conftest.$ac_ext
6745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6746 (eval $ac_compile) 2>&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); }; then
6750 case `/usr/bin/file conftest.o` in
6752 case $lt_cv_prog_gnu_ld in
6753 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6755 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6767 need_locks="$enable_libtool_lock"
6771 rhapsody* | darwin*)
6772 if test -n "$ac_tool_prefix"; then
6773 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6774 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6777 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 if test -n "$DSYMUTIL"; then
6781 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6790 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6801 if test -n "$DSYMUTIL"; then
6802 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6803 echo "${ECHO_T}$DSYMUTIL" >&6; }
6805 { echo "$as_me:$LINENO: result: no" >&5
6806 echo "${ECHO_T}no" >&6; }
6811 if test -z "$ac_cv_prog_DSYMUTIL"; then
6812 ac_ct_DSYMUTIL=$DSYMUTIL
6813 # Extract the first word of "dsymutil", so it can be a program name with args.
6814 set dummy dsymutil; ac_word=$2
6815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6817 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 if test -n "$ac_ct_DSYMUTIL"; then
6821 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6830 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6841 if test -n "$ac_ct_DSYMUTIL"; then
6842 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6843 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6845 { echo "$as_me:$LINENO: result: no" >&5
6846 echo "${ECHO_T}no" >&6; }
6849 if test "x$ac_ct_DSYMUTIL" = x; then
6852 case $cross_compiling:$ac_tool_warned in
6854 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6855 whose name does not start with the host triplet. If you think this
6856 configuration is useful to you, please write to autoconf@gnu.org." >&5
6857 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6858 whose name does not start with the host triplet. If you think this
6859 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6860 ac_tool_warned=yes ;;
6862 DSYMUTIL=$ac_ct_DSYMUTIL
6865 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6868 if test -n "$ac_tool_prefix"; then
6869 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6870 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6873 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 if test -n "$NMEDIT"; then
6877 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6886 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 NMEDIT=$ac_cv_prog_NMEDIT
6897 if test -n "$NMEDIT"; then
6898 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6899 echo "${ECHO_T}$NMEDIT" >&6; }
6901 { echo "$as_me:$LINENO: result: no" >&5
6902 echo "${ECHO_T}no" >&6; }
6907 if test -z "$ac_cv_prog_NMEDIT"; then
6908 ac_ct_NMEDIT=$NMEDIT
6909 # Extract the first word of "nmedit", so it can be a program name with args.
6910 set dummy nmedit; ac_word=$2
6911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6913 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 if test -n "$ac_ct_NMEDIT"; then
6917 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6926 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6937 if test -n "$ac_ct_NMEDIT"; then
6938 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6939 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6941 { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6945 if test "x$ac_ct_NMEDIT" = x; then
6948 case $cross_compiling:$ac_tool_warned in
6950 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6951 whose name does not start with the host triplet. If you think this
6952 configuration is useful to you, please write to autoconf@gnu.org." >&5
6953 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6954 whose name does not start with the host triplet. If you think this
6955 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6956 ac_tool_warned=yes ;;
6958 NMEDIT=$ac_ct_NMEDIT
6961 NMEDIT="$ac_cv_prog_NMEDIT"
6964 if test -n "$ac_tool_prefix"; then
6965 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6966 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6969 if test "${ac_cv_prog_LIPO+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 if test -n "$LIPO"; then
6973 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6982 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 LIPO=$ac_cv_prog_LIPO
6993 if test -n "$LIPO"; then
6994 { echo "$as_me:$LINENO: result: $LIPO" >&5
6995 echo "${ECHO_T}$LIPO" >&6; }
6997 { echo "$as_me:$LINENO: result: no" >&5
6998 echo "${ECHO_T}no" >&6; }
7003 if test -z "$ac_cv_prog_LIPO"; then
7005 # Extract the first word of "lipo", so it can be a program name with args.
7006 set dummy lipo; ac_word=$2
7007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7009 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 if test -n "$ac_ct_LIPO"; then
7013 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7022 ac_cv_prog_ac_ct_LIPO="lipo"
7023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7033 if test -n "$ac_ct_LIPO"; then
7034 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7035 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7037 { echo "$as_me:$LINENO: result: no" >&5
7038 echo "${ECHO_T}no" >&6; }
7041 if test "x$ac_ct_LIPO" = x; then
7044 case $cross_compiling:$ac_tool_warned in
7046 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7047 whose name does not start with the host triplet. If you think this
7048 configuration is useful to you, please write to autoconf@gnu.org." >&5
7049 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7050 whose name does not start with the host triplet. If you think this
7051 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7052 ac_tool_warned=yes ;;
7057 LIPO="$ac_cv_prog_LIPO"
7060 if test -n "$ac_tool_prefix"; then
7061 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7062 set dummy ${ac_tool_prefix}otool; ac_word=$2
7063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7065 if test "${ac_cv_prog_OTOOL+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 if test -n "$OTOOL"; then
7069 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7078 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 OTOOL=$ac_cv_prog_OTOOL
7089 if test -n "$OTOOL"; then
7090 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7091 echo "${ECHO_T}$OTOOL" >&6; }
7093 { echo "$as_me:$LINENO: result: no" >&5
7094 echo "${ECHO_T}no" >&6; }
7099 if test -z "$ac_cv_prog_OTOOL"; then
7101 # Extract the first word of "otool", so it can be a program name with args.
7102 set dummy otool; ac_word=$2
7103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7105 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 if test -n "$ac_ct_OTOOL"; then
7109 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7118 ac_cv_prog_ac_ct_OTOOL="otool"
7119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7129 if test -n "$ac_ct_OTOOL"; then
7130 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7131 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7133 { echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6; }
7137 if test "x$ac_ct_OTOOL" = x; then
7140 case $cross_compiling:$ac_tool_warned in
7142 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7143 whose name does not start with the host triplet. If you think this
7144 configuration is useful to you, please write to autoconf@gnu.org." >&5
7145 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7146 whose name does not start with the host triplet. If you think this
7147 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7148 ac_tool_warned=yes ;;
7153 OTOOL="$ac_cv_prog_OTOOL"
7156 if test -n "$ac_tool_prefix"; then
7157 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7158 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 if test -n "$OTOOL64"; then
7165 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7174 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 OTOOL64=$ac_cv_prog_OTOOL64
7185 if test -n "$OTOOL64"; then
7186 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7187 echo "${ECHO_T}$OTOOL64" >&6; }
7189 { echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6; }
7195 if test -z "$ac_cv_prog_OTOOL64"; then
7196 ac_ct_OTOOL64=$OTOOL64
7197 # Extract the first word of "otool64", so it can be a program name with args.
7198 set dummy otool64; ac_word=$2
7199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 if test -n "$ac_ct_OTOOL64"; then
7205 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7214 ac_cv_prog_ac_ct_OTOOL64="otool64"
7215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7225 if test -n "$ac_ct_OTOOL64"; then
7226 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7227 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7229 { echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6; }
7233 if test "x$ac_ct_OTOOL64" = x; then
7236 case $cross_compiling:$ac_tool_warned in
7238 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7239 whose name does not start with the host triplet. If you think this
7240 configuration is useful to you, please write to autoconf@gnu.org." >&5
7241 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7242 whose name does not start with the host triplet. If you think this
7243 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7244 ac_tool_warned=yes ;;
7246 OTOOL64=$ac_ct_OTOOL64
7249 OTOOL64="$ac_cv_prog_OTOOL64"
7278 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7279 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7280 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 lt_cv_apple_cc_single_mod=no
7284 if test -z "${LT_MULTI_MODULE}"; then
7285 # By default we will add the -single_module flag. You can override
7286 # by either setting the environment variable LT_MULTI_MODULE
7287 # non-empty at configure time, or by adding -multi_module to the
7289 rm -rf libconftest.dylib*
7290 echo "int foo(void){return 1;}" > conftest.c
7291 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7292 -dynamiclib -Wl,-single_module conftest.c" >&5
7293 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7294 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7296 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7297 lt_cv_apple_cc_single_mod=yes
7299 cat conftest.err >&5
7301 rm -rf libconftest.dylib*
7305 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7306 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7307 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7308 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7309 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 lt_cv_ld_exported_symbols_list=no
7313 save_LDFLAGS=$LDFLAGS
7314 echo "_main" > conftest.sym
7315 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7316 cat >conftest.$ac_ext <<_ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7331 rm -f conftest.$ac_objext conftest$ac_exeext
7332 if { (ac_try="$ac_link"
7334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335 *) ac_try_echo=$ac_try;;
7337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7338 (eval "$ac_link") 2>conftest.er1
7340 grep -v '^ *+' conftest.er1 >conftest.err
7342 cat conftest.err >&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); } && {
7345 test -z "$ac_c_werror_flag" ||
7346 test ! -s conftest.err
7347 } && test -s conftest$ac_exeext &&
7348 $as_test_x conftest$ac_exeext; then
7349 lt_cv_ld_exported_symbols_list=yes
7351 echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7354 lt_cv_ld_exported_symbols_list=no
7357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7358 conftest$ac_exeext conftest.$ac_ext
7359 LDFLAGS="$save_LDFLAGS"
7362 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7363 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7365 rhapsody* | darwin1.[012])
7366 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7368 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7369 darwin*) # darwin 5.x on
7370 # if running on 10.5 or later, the deployment target defaults
7371 # to the OS version, if on x86, and 10.4, the deployment
7372 # target defaults to 10.4. Don't you love it?
7373 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7374 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7375 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7377 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7379 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7383 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7384 _lt_dar_single_mod='$single_module'
7386 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7387 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7389 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7391 if test "$DSYMUTIL" != ":"; then
7392 _lt_dsymutil='~$DSYMUTIL $lib || :'
7400 for ac_header in dlfcn.h
7402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 cat >conftest.$ac_ext <<_ACEOF
7411 cat confdefs.h >>conftest.$ac_ext
7412 cat >>conftest.$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7414 $ac_includes_default
7416 #include <$ac_header>
7418 rm -f conftest.$ac_objext
7419 if { (ac_try="$ac_compile"
7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425 (eval "$ac_compile") 2>conftest.er1
7427 grep -v '^ *+' conftest.er1 >conftest.err
7429 cat conftest.err >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } && {
7432 test -z "$ac_c_werror_flag" ||
7433 test ! -s conftest.err
7434 } && test -s conftest.$ac_objext; then
7435 eval "$as_ac_Header=yes"
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7440 eval "$as_ac_Header=no"
7443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7445 ac_res=`eval echo '${'$as_ac_Header'}'`
7446 { echo "$as_me:$LINENO: result: $ac_res" >&5
7447 echo "${ECHO_T}$ac_res" >&6; }
7448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7449 cat >>confdefs.h <<_ACEOF
7450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7460 ac_cpp='$CXXCPP $CPPFLAGS'
7461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7464 if test -z "$CXX"; then
7465 if test -n "$CCC"; then
7468 if test -n "$ac_tool_prefix"; then
7469 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7475 if test "${ac_cv_prog_CXX+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 if test -n "$CXX"; then
7479 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 test -z "$as_dir" && as_dir=.
7486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7488 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 if test -n "$CXX"; then
7500 { echo "$as_me:$LINENO: result: $CXX" >&5
7501 echo "${ECHO_T}$CXX" >&6; }
7503 { echo "$as_me:$LINENO: result: no" >&5
7504 echo "${ECHO_T}no" >&6; }
7508 test -n "$CXX" && break
7511 if test -z "$CXX"; then
7513 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7515 # Extract the first word of "$ac_prog", so it can be a program name with args.
7516 set dummy $ac_prog; ac_word=$2
7517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7519 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 if test -n "$ac_ct_CXX"; then
7523 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7532 ac_cv_prog_ac_ct_CXX="$ac_prog"
7533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7542 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7543 if test -n "$ac_ct_CXX"; then
7544 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7545 echo "${ECHO_T}$ac_ct_CXX" >&6; }
7547 { echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6; }
7552 test -n "$ac_ct_CXX" && break
7555 if test "x$ac_ct_CXX" = x; then
7558 case $cross_compiling:$ac_tool_warned in
7560 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7561 whose name does not start with the host triplet. If you think this
7562 configuration is useful to you, please write to autoconf@gnu.org." >&5
7563 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7564 whose name does not start with the host triplet. If you think this
7565 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7566 ac_tool_warned=yes ;;
7574 # Provide some information about the compiler.
7575 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
7576 ac_compiler=`set X $ac_compile; echo $2`
7577 { (ac_try="$ac_compiler --version >&5"
7579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7580 *) ac_try_echo=$ac_try;;
7582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7583 (eval "$ac_compiler --version >&5") 2>&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); }
7587 { (ac_try="$ac_compiler -v >&5"
7589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7590 *) ac_try_echo=$ac_try;;
7592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7593 (eval "$ac_compiler -v >&5") 2>&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }
7597 { (ac_try="$ac_compiler -V >&5"
7599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7600 *) ac_try_echo=$ac_try;;
7602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7603 (eval "$ac_compiler -V >&5") 2>&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); }
7608 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7609 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
7610 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7613 cat >conftest.$ac_ext <<_ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h. */
7631 rm -f conftest.$ac_objext
7632 if { (ac_try="$ac_compile"
7634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7635 *) ac_try_echo=$ac_try;;
7637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7638 (eval "$ac_compile") 2>conftest.er1
7640 grep -v '^ *+' conftest.er1 >conftest.err
7642 cat conftest.err >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } && {
7645 test -z "$ac_cxx_werror_flag" ||
7646 test ! -s conftest.err
7647 } && test -s conftest.$ac_objext; then
7650 echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.$ac_ext >&5
7656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7657 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7660 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7661 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
7662 GXX=`test $ac_compiler_gnu = yes && echo yes`
7663 ac_test_CXXFLAGS=${CXXFLAGS+set}
7664 ac_save_CXXFLAGS=$CXXFLAGS
7665 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7666 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
7667 if test "${ac_cv_prog_cxx_g+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7671 ac_cxx_werror_flag=yes
7674 cat >conftest.$ac_ext <<_ACEOF
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h. */
7689 rm -f conftest.$ac_objext
7690 if { (ac_try="$ac_compile"
7692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7693 *) ac_try_echo=$ac_try;;
7695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7696 (eval "$ac_compile") 2>conftest.er1
7698 grep -v '^ *+' conftest.er1 >conftest.err
7700 cat conftest.err >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } && {
7703 test -z "$ac_cxx_werror_flag" ||
7704 test ! -s conftest.err
7705 } && test -s conftest.$ac_objext; then
7706 ac_cv_prog_cxx_g=yes
7708 echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7712 cat >conftest.$ac_ext <<_ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7727 rm -f conftest.$ac_objext
7728 if { (ac_try="$ac_compile"
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734 (eval "$ac_compile") 2>conftest.er1
7736 grep -v '^ *+' conftest.er1 >conftest.err
7738 cat conftest.err >&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); } && {
7741 test -z "$ac_cxx_werror_flag" ||
7742 test ! -s conftest.err
7743 } && test -s conftest.$ac_objext; then
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.$ac_ext >&5
7749 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7751 cat >conftest.$ac_ext <<_ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h. */
7766 rm -f conftest.$ac_objext
7767 if { (ac_try="$ac_compile"
7769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7770 *) ac_try_echo=$ac_try;;
7772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7773 (eval "$ac_compile") 2>conftest.er1
7775 grep -v '^ *+' conftest.er1 >conftest.err
7777 cat conftest.err >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } && {
7780 test -z "$ac_cxx_werror_flag" ||
7781 test ! -s conftest.err
7782 } && test -s conftest.$ac_objext; then
7783 ac_cv_prog_cxx_g=yes
7785 echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7800 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7801 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
7802 if test "$ac_test_CXXFLAGS" = set; then
7803 CXXFLAGS=$ac_save_CXXFLAGS
7804 elif test $ac_cv_prog_cxx_g = yes; then
7805 if test "$GXX" = yes; then
7811 if test "$GXX" = yes; then
7818 ac_cpp='$CPP $CPPFLAGS'
7819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7823 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7824 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7825 (test "X$CXX" != "Xg++"))) ; then
7827 ac_cpp='$CXXCPP $CPPFLAGS'
7828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7831 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7832 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7833 if test -z "$CXXCPP"; then
7834 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 # Double quotes because CXXCPP needs to be expanded
7838 for CXXCPP in "$CXX -E" "/lib/cpp"
7841 for ac_cxx_preproc_warn_flag in '' yes
7843 # Use a header file that comes with gcc, so configuring glibc
7844 # with a fresh cross-compiler works.
7845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7846 # <limits.h> exists even on freestanding compilers.
7847 # On the NeXT, cc -E runs the code through the compiler's parser,
7848 # not just through cpp. "Syntax error" is here to catch this case.
7849 cat >conftest.$ac_ext <<_ACEOF
7852 cat confdefs.h >>conftest.$ac_ext
7853 cat >>conftest.$ac_ext <<_ACEOF
7854 /* end confdefs.h. */
7856 # include <limits.h>
7858 # include <assert.h>
7862 if { (ac_try="$ac_cpp conftest.$ac_ext"
7864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865 *) ac_try_echo=$ac_try;;
7867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7870 grep -v '^ *+' conftest.er1 >conftest.err
7872 cat conftest.err >&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); } >/dev/null && {
7875 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7876 test ! -s conftest.err
7880 echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7883 # Broken: fails on valid input.
7887 rm -f conftest.err conftest.$ac_ext
7889 # OK, works on sane cases. Now check whether nonexistent headers
7890 # can be detected and how.
7891 cat >conftest.$ac_ext <<_ACEOF
7894 cat confdefs.h >>conftest.$ac_ext
7895 cat >>conftest.$ac_ext <<_ACEOF
7896 /* end confdefs.h. */
7897 #include <ac_nonexistent.h>
7899 if { (ac_try="$ac_cpp conftest.$ac_ext"
7901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7902 *) ac_try_echo=$ac_try;;
7904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7907 grep -v '^ *+' conftest.er1 >conftest.err
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } >/dev/null && {
7912 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7913 test ! -s conftest.err
7915 # Broken: success on invalid input.
7918 echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.$ac_ext >&5
7921 # Passes both tests.
7926 rm -f conftest.err conftest.$ac_ext
7929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7930 rm -f conftest.err conftest.$ac_ext
7931 if $ac_preproc_ok; then
7936 ac_cv_prog_CXXCPP=$CXXCPP
7939 CXXCPP=$ac_cv_prog_CXXCPP
7941 ac_cv_prog_CXXCPP=$CXXCPP
7943 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7944 echo "${ECHO_T}$CXXCPP" >&6; }
7946 for ac_cxx_preproc_warn_flag in '' yes
7948 # Use a header file that comes with gcc, so configuring glibc
7949 # with a fresh cross-compiler works.
7950 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7951 # <limits.h> exists even on freestanding compilers.
7952 # On the NeXT, cc -E runs the code through the compiler's parser,
7953 # not just through cpp. "Syntax error" is here to catch this case.
7954 cat >conftest.$ac_ext <<_ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7961 # include <limits.h>
7963 # include <assert.h>
7967 if { (ac_try="$ac_cpp conftest.$ac_ext"
7969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970 *) ac_try_echo=$ac_try;;
7972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7975 grep -v '^ *+' conftest.er1 >conftest.err
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } >/dev/null && {
7980 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7981 test ! -s conftest.err
7985 echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7988 # Broken: fails on valid input.
7992 rm -f conftest.err conftest.$ac_ext
7994 # OK, works on sane cases. Now check whether nonexistent headers
7995 # can be detected and how.
7996 cat >conftest.$ac_ext <<_ACEOF
7999 cat confdefs.h >>conftest.$ac_ext
8000 cat >>conftest.$ac_ext <<_ACEOF
8001 /* end confdefs.h. */
8002 #include <ac_nonexistent.h>
8004 if { (ac_try="$ac_cpp conftest.$ac_ext"
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8012 grep -v '^ *+' conftest.er1 >conftest.err
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } >/dev/null && {
8017 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8018 test ! -s conftest.err
8020 # Broken: success on invalid input.
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8026 # Passes both tests.
8031 rm -f conftest.err conftest.$ac_ext
8034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8035 rm -f conftest.err conftest.$ac_ext
8036 if $ac_preproc_ok; then
8039 _lt_caught_CXX_error=yes
8043 ac_cpp='$CPP $CPPFLAGS'
8044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8049 _lt_caught_CXX_error=yes
8054 { echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
8055 echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6; }
8056 if test "${libltdl_cv_shlibext+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 eval libltdl_cv_shlibext=$shrext_cmds
8064 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
8065 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
8066 if test -n "$libltdl_cv_shlibext"; then
8068 cat >>confdefs.h <<_ACEOF
8069 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
8074 { echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
8075 echo $ECHO_N "checking which variable specifies run-time module search path... $ECHO_C" >&6; }
8076 if test "${lt_cv_module_path_var+set}" = set; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 lt_cv_module_path_var="$shlibpath_var"
8081 { echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
8082 echo "${ECHO_T}$lt_cv_module_path_var" >&6; }
8083 if test -n "$lt_cv_module_path_var"; then
8085 cat >>confdefs.h <<_ACEOF
8086 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
8091 { echo "$as_me:$LINENO: checking for the default library search path" >&5
8092 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
8093 if test "${lt_cv_sys_dlsearch_path+set}" = set; then
8094 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
8098 { echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
8099 echo "${ECHO_T}$lt_cv_sys_dlsearch_path" >&6; }
8100 if test -n "$lt_cv_sys_dlsearch_path"; then
8102 for dir in $lt_cv_sys_dlsearch_path; do
8103 if test -z "$sys_dlsearch_path"; then
8104 sys_dlsearch_path="$dir"
8106 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
8110 cat >>confdefs.h <<_ACEOF
8111 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
8121 ac_cpp='$CPP $CPPFLAGS'
8122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8128 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8129 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8130 if test "${ac_cv_search_dlopen+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 ac_func_search_save_LIBS=$LIBS
8134 cat >conftest.$ac_ext <<_ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8141 /* Override any GCC internal prototype to avoid an error.
8142 Use char because int might match the return type of a GCC
8143 builtin and then its argument prototype would still apply. */
8156 for ac_lib in '' dl; do
8157 if test -z "$ac_lib"; then
8158 ac_res="none required"
8161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8163 rm -f conftest.$ac_objext conftest$ac_exeext
8164 if { (ac_try="$ac_link"
8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167 *) ac_try_echo=$ac_try;;
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170 (eval "$ac_link") 2>conftest.er1
8172 grep -v '^ *+' conftest.er1 >conftest.err
8174 cat conftest.err >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } && {
8177 test -z "$ac_c_werror_flag" ||
8178 test ! -s conftest.err
8179 } && test -s conftest$ac_exeext &&
8180 $as_test_x conftest$ac_exeext; then
8181 ac_cv_search_dlopen=$ac_res
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8191 if test "${ac_cv_search_dlopen+set}" = set; then
8195 if test "${ac_cv_search_dlopen+set}" = set; then
8198 ac_cv_search_dlopen=no
8201 LIBS=$ac_func_search_save_LIBS
8203 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8204 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8205 ac_res=$ac_cv_search_dlopen
8206 if test "$ac_res" != no; then
8207 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8209 cat >>confdefs.h <<\_ACEOF
8210 #define HAVE_LIBDL 1
8213 if test "$ac_cv_search_dlopen" != "none required" ; then
8214 LIBADD_DLOPEN="-ldl"
8216 libltdl_cv_lib_dl_dlopen="yes"
8217 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
8219 cat >conftest.$ac_ext <<_ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8237 rm -f conftest.$ac_objext conftest$ac_exeext
8238 if { (ac_try="$ac_link"
8240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8241 *) ac_try_echo=$ac_try;;
8243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8244 (eval "$ac_link") 2>conftest.er1
8246 grep -v '^ *+' conftest.er1 >conftest.err
8248 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } && {
8251 test -z "$ac_c_werror_flag" ||
8252 test ! -s conftest.err
8253 } && test -s conftest$ac_exeext &&
8254 $as_test_x conftest$ac_exeext; then
8256 cat >>confdefs.h <<\_ACEOF
8257 #define HAVE_LIBDL 1
8260 libltdl_cv_func_dlopen="yes"
8261 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
8263 echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8266 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8267 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8268 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 ac_check_lib_save_LIBS=$LIBS
8273 cat >conftest.$ac_ext <<_ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h. */
8280 /* Override any GCC internal prototype to avoid an error.
8281 Use char because int might match the return type of a GCC
8282 builtin and then its argument prototype would still apply. */
8295 rm -f conftest.$ac_objext conftest$ac_exeext
8296 if { (ac_try="$ac_link"
8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299 *) ac_try_echo=$ac_try;;
8301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302 (eval "$ac_link") 2>conftest.er1
8304 grep -v '^ *+' conftest.er1 >conftest.err
8306 cat conftest.err >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } && {
8309 test -z "$ac_c_werror_flag" ||
8310 test ! -s conftest.err
8311 } && test -s conftest$ac_exeext &&
8312 $as_test_x conftest$ac_exeext; then
8313 ac_cv_lib_svld_dlopen=yes
8315 echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8318 ac_cv_lib_svld_dlopen=no
8321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8322 conftest$ac_exeext conftest.$ac_ext
8323 LIBS=$ac_check_lib_save_LIBS
8325 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8326 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8327 if test $ac_cv_lib_svld_dlopen = yes; then
8329 cat >>confdefs.h <<\_ACEOF
8330 #define HAVE_LIBDL 1
8333 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
8334 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
8339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8340 conftest$ac_exeext conftest.$ac_ext
8343 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8345 lt_save_LIBS="$LIBS"
8346 LIBS="$LIBS $LIBADD_DLOPEN"
8348 for ac_func in dlerror
8350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8351 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8353 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 cat >conftest.$ac_ext <<_ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h. */
8362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8364 #define $ac_func innocuous_$ac_func
8366 /* System header to define __stub macros and hopefully few prototypes,
8367 which can conflict with char $ac_func (); below.
8368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8369 <limits.h> exists even on freestanding compilers. */
8372 # include <limits.h>
8374 # include <assert.h>
8379 /* Override any GCC internal prototype to avoid an error.
8380 Use char because int might match the return type of a GCC
8381 builtin and then its argument prototype would still apply. */
8386 /* The GNU C library defines this for functions which it implements
8387 to always fail with ENOSYS. Some functions are actually named
8388 something starting with __ and the normal name is an alias. */
8389 #if defined __stub_$ac_func || defined __stub___$ac_func
8401 rm -f conftest.$ac_objext conftest$ac_exeext
8402 if { (ac_try="$ac_link"
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_link") 2>conftest.er1
8410 grep -v '^ *+' conftest.er1 >conftest.err
8412 cat conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } && {
8415 test -z "$ac_c_werror_flag" ||
8416 test ! -s conftest.err
8417 } && test -s conftest$ac_exeext &&
8418 $as_test_x conftest$ac_exeext; then
8419 eval "$as_ac_var=yes"
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424 eval "$as_ac_var=no"
8427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8428 conftest$ac_exeext conftest.$ac_ext
8430 ac_res=`eval echo '${'$as_ac_var'}'`
8431 { echo "$as_me:$LINENO: result: $ac_res" >&5
8432 echo "${ECHO_T}$ac_res" >&6; }
8433 if test `eval echo '${'$as_ac_var'}'` = yes; then
8434 cat >>confdefs.h <<_ACEOF
8435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8441 LIBS="$lt_save_LIBS"
8446 { echo "$as_me:$LINENO: checking for shl_load" >&5
8447 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8448 if test "${ac_cv_func_shl_load+set}" = set; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8451 cat >conftest.$ac_ext <<_ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8457 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8459 #define shl_load innocuous_shl_load
8461 /* System header to define __stub macros and hopefully few prototypes,
8462 which can conflict with char shl_load (); below.
8463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8464 <limits.h> exists even on freestanding compilers. */
8467 # include <limits.h>
8469 # include <assert.h>
8474 /* Override any GCC internal prototype to avoid an error.
8475 Use char because int might match the return type of a GCC
8476 builtin and then its argument prototype would still apply. */
8481 /* The GNU C library defines this for functions which it implements
8482 to always fail with ENOSYS. Some functions are actually named
8483 something starting with __ and the normal name is an alias. */
8484 #if defined __stub_shl_load || defined __stub___shl_load
8496 rm -f conftest.$ac_objext conftest$ac_exeext
8497 if { (ac_try="$ac_link"
8499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500 *) ac_try_echo=$ac_try;;
8502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8503 (eval "$ac_link") 2>conftest.er1
8505 grep -v '^ *+' conftest.er1 >conftest.err
8507 cat conftest.err >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); } && {
8510 test -z "$ac_c_werror_flag" ||
8511 test ! -s conftest.err
8512 } && test -s conftest$ac_exeext &&
8513 $as_test_x conftest$ac_exeext; then
8514 ac_cv_func_shl_load=yes
8516 echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8519 ac_cv_func_shl_load=no
8522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8523 conftest$ac_exeext conftest.$ac_ext
8525 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8526 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8527 if test $ac_cv_func_shl_load = yes; then
8529 cat >>confdefs.h <<\_ACEOF
8530 #define HAVE_SHL_LOAD 1
8533 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
8535 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8536 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8537 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8540 ac_check_lib_save_LIBS=$LIBS
8542 cat >conftest.$ac_ext <<_ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h. */
8549 /* Override any GCC internal prototype to avoid an error.
8550 Use char because int might match the return type of a GCC
8551 builtin and then its argument prototype would still apply. */
8564 rm -f conftest.$ac_objext conftest$ac_exeext
8565 if { (ac_try="$ac_link"
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_link") 2>conftest.er1
8573 grep -v '^ *+' conftest.er1 >conftest.err
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } && {
8578 test -z "$ac_c_werror_flag" ||
8579 test ! -s conftest.err
8580 } && test -s conftest$ac_exeext &&
8581 $as_test_x conftest$ac_exeext; then
8582 ac_cv_lib_dld_shl_load=yes
8584 echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8587 ac_cv_lib_dld_shl_load=no
8590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8591 conftest$ac_exeext conftest.$ac_ext
8592 LIBS=$ac_check_lib_save_LIBS
8594 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8595 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8596 if test $ac_cv_lib_dld_shl_load = yes; then
8598 cat >>confdefs.h <<\_ACEOF
8599 #define HAVE_SHL_LOAD 1
8602 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
8603 LIBADD_SHL_LOAD="-ldld"
8612 # We only want this for pre-Mac OS X 10.4.
8613 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8614 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
8615 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 cat >conftest.$ac_ext <<_ACEOF
8621 cat confdefs.h >>conftest.$ac_ext
8622 cat >>conftest.$ac_ext <<_ACEOF
8623 /* end confdefs.h. */
8624 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8626 #define _dyld_func_lookup innocuous__dyld_func_lookup
8628 /* System header to define __stub macros and hopefully few prototypes,
8629 which can conflict with char _dyld_func_lookup (); below.
8630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8631 <limits.h> exists even on freestanding compilers. */
8634 # include <limits.h>
8636 # include <assert.h>
8639 #undef _dyld_func_lookup
8641 /* Override any GCC internal prototype to avoid an error.
8642 Use char because int might match the return type of a GCC
8643 builtin and then its argument prototype would still apply. */
8647 char _dyld_func_lookup ();
8648 /* The GNU C library defines this for functions which it implements
8649 to always fail with ENOSYS. Some functions are actually named
8650 something starting with __ and the normal name is an alias. */
8651 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
8658 return _dyld_func_lookup ();
8663 rm -f conftest.$ac_objext conftest$ac_exeext
8664 if { (ac_try="$ac_link"
8666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667 *) ac_try_echo=$ac_try;;
8669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670 (eval "$ac_link") 2>conftest.er1
8672 grep -v '^ *+' conftest.er1 >conftest.err
8674 cat conftest.err >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); } && {
8677 test -z "$ac_c_werror_flag" ||
8678 test ! -s conftest.err
8679 } && test -s conftest$ac_exeext &&
8680 $as_test_x conftest$ac_exeext; then
8681 ac_cv_func__dyld_func_lookup=yes
8683 echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8686 ac_cv_func__dyld_func_lookup=no
8689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8690 conftest$ac_exeext conftest.$ac_ext
8692 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8693 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
8694 if test $ac_cv_func__dyld_func_lookup = yes; then
8696 cat >>confdefs.h <<\_ACEOF
8700 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
8705 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
8707 cygwin* | mingw* | os2* | pw32*)
8708 { echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
8709 echo $ECHO_N "checking whether cygwin_conv_path is declared... $ECHO_C" >&6; }
8710 if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
8713 cat >conftest.$ac_ext <<_ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h. */
8719 #include <sys/cygwin.h>
8724 #ifndef cygwin_conv_path
8725 (void) cygwin_conv_path;
8732 rm -f conftest.$ac_objext
8733 if { (ac_try="$ac_compile"
8735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736 *) ac_try_echo=$ac_try;;
8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739 (eval "$ac_compile") 2>conftest.er1
8741 grep -v '^ *+' conftest.er1 >conftest.err
8743 cat conftest.err >&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); } && {
8746 test -z "$ac_c_werror_flag" ||
8747 test ! -s conftest.err
8748 } && test -s conftest.$ac_objext; then
8749 ac_cv_have_decl_cygwin_conv_path=yes
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8754 ac_cv_have_decl_cygwin_conv_path=no
8757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8759 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
8760 echo "${ECHO_T}$ac_cv_have_decl_cygwin_conv_path" >&6; }
8761 if test $ac_cv_have_decl_cygwin_conv_path = yes; then
8763 cat >>confdefs.h <<_ACEOF
8764 #define HAVE_DECL_CYGWIN_CONV_PATH 1
8769 cat >>confdefs.h <<_ACEOF
8770 #define HAVE_DECL_CYGWIN_CONV_PATH 0
8777 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
8781 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8782 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8783 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 ac_check_lib_save_LIBS=$LIBS
8788 cat >conftest.$ac_ext <<_ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8795 /* Override any GCC internal prototype to avoid an error.
8796 Use char because int might match the return type of a GCC
8797 builtin and then its argument prototype would still apply. */
8810 rm -f conftest.$ac_objext conftest$ac_exeext
8811 if { (ac_try="$ac_link"
8813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814 *) ac_try_echo=$ac_try;;
8816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8817 (eval "$ac_link") 2>conftest.er1
8819 grep -v '^ *+' conftest.er1 >conftest.err
8821 cat conftest.err >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } && {
8824 test -z "$ac_c_werror_flag" ||
8825 test ! -s conftest.err
8826 } && test -s conftest$ac_exeext &&
8827 $as_test_x conftest$ac_exeext; then
8828 ac_cv_lib_dld_dld_link=yes
8830 echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.$ac_ext >&5
8833 ac_cv_lib_dld_dld_link=no
8836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8837 conftest$ac_exeext conftest.$ac_ext
8838 LIBS=$ac_check_lib_save_LIBS
8840 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8841 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
8842 if test $ac_cv_lib_dld_dld_link = yes; then
8844 cat >>confdefs.h <<\_ACEOF
8848 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
8855 if test -n "$LT_DLLOADERS"
8857 for lt_loader in $LT_DLLOADERS; do
8858 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
8861 cat >>confdefs.h <<\_ACEOF
8862 #define HAVE_LIBDLLOADER 1
8868 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
8872 ac_cpp='$CPP $CPPFLAGS'
8873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8878 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8879 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
8880 if test "${lt_cv_sys_symbol_underscore+set}" = set; then
8881 echo $ECHO_N "(cached) $ECHO_C" >&6
8883 lt_cv_sys_symbol_underscore=no
8884 cat > conftest.$ac_ext <<_LT_EOF
8885 void nm_test_func(){}
8886 int main(){nm_test_func;return 0;}
8888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8889 (eval $ac_compile) 2>&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }; then
8893 # Now try to grab the symbols.
8894 ac_nlist=conftest.nm
8895 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8896 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } && test -s "$ac_nlist"; then
8900 # See whether the symbols have a leading underscore.
8901 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8902 lt_cv_sys_symbol_underscore=yes
8904 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8907 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8911 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8914 echo "configure: failed program was:" >&5
8920 { echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
8921 echo "${ECHO_T}$lt_cv_sys_symbol_underscore" >&6; }
8922 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
8925 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
8926 if test x"$libltdl_cv_func_dlopen" = xyes ||
8927 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8928 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8929 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
8930 if test "${libltdl_cv_need_uscore+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8933 libltdl_cv_need_uscore=unknown
8935 LIBS="$LIBS $LIBADD_DLOPEN"
8936 if test "$cross_compiling" = yes; then :
8937 libltdl_cv_need_uscore=cross
8939 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8940 lt_status=$lt_dlunknown
8941 cat > conftest.$ac_ext <<_LT_EOF
8942 #line 8942 "configure"
8943 #include "confdefs.h"
8952 # define LT_DLGLOBAL RTLD_GLOBAL
8955 # define LT_DLGLOBAL DL_GLOBAL
8957 # define LT_DLGLOBAL 0
8961 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8962 find out it does not work in some platform. */
8963 #ifndef LT_DLLAZY_OR_NOW
8965 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8968 # define LT_DLLAZY_OR_NOW DL_LAZY
8971 # define LT_DLLAZY_OR_NOW RTLD_NOW
8974 # define LT_DLLAZY_OR_NOW DL_NOW
8976 # define LT_DLLAZY_OR_NOW 0
8984 extern "C" void exit (int);
8987 void fnord() { int i=42;}
8990 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8991 int status = $lt_dlunknown;
8995 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8996 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8997 /* dlclose (self); */
9005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9006 (eval $ac_link) 2>&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9010 (./conftest; exit; ) >&5 2>/dev/null
9013 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
9014 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
9015 x$lt_dlunknown|x*) ;;
9018 # compilation failed
9027 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
9028 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
9032 if test x"$libltdl_cv_need_uscore" = xyes; then
9034 cat >>confdefs.h <<\_ACEOF
9035 #define NEED_USCORE 1
9040 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
9041 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
9042 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 # PORTME does your system automatically load deplibs for dlopen?
9046 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
9047 # For now, we just catch OSes we know something about -- in the
9048 # future, we'll try test this programmatically.
9049 lt_cv_sys_dlopen_deplibs=unknown
9051 aix3*|aix4.1.*|aix4.2.*)
9052 # Unknown whether this is true for these versions of AIX, but
9053 # we want this `case' here to explicitly catch those versions.
9054 lt_cv_sys_dlopen_deplibs=unknown
9057 lt_cv_sys_dlopen_deplibs=yes
9062 lt_cv_sys_dlopen_deplibs=no
9067 # Assuming the user has installed a libdl from somewhere, this is true
9068 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
9069 lt_cv_sys_dlopen_deplibs=yes
9071 freebsd* | dragonfly*)
9072 lt_cv_sys_dlopen_deplibs=yes
9074 gnu* | linux* | k*bsd*-gnu)
9075 # GNU and its variants, using gnu ld.so (Glibc)
9076 lt_cv_sys_dlopen_deplibs=yes
9079 lt_cv_sys_dlopen_deplibs=yes
9082 lt_cv_sys_dlopen_deplibs=yes
9084 irix[12345]*|irix6.[01]*)
9085 # Catch all versions of IRIX before 6.2, and indicate that we don't
9086 # know how it worked for any of those versions.
9087 lt_cv_sys_dlopen_deplibs=unknown
9090 # The case above catches anything before 6.2, and it's known that
9091 # at 6.2 and later dlopen does load deplibs.
9092 lt_cv_sys_dlopen_deplibs=yes
9095 lt_cv_sys_dlopen_deplibs=yes
9098 lt_cv_sys_dlopen_deplibs=yes
9101 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
9102 # it did *not* use an RPATH in a shared library to find objects the
9103 # library depends on, so we explicitly say `no'.
9104 lt_cv_sys_dlopen_deplibs=no
9106 osf5.0|osf5.0a|osf5.1)
9107 # dlopen *does* load deplibs and with the right loader patch applied
9108 # it even uses RPATH in a shared library to search for shared objects
9109 # that the library depends on, but there's no easy way to know if that
9110 # patch is installed. Since this is the case, all we can really
9111 # say is unknown -- it depends on the patch being installed. If
9112 # it is, this changes to `yes'. Without it, it would be `no'.
9113 lt_cv_sys_dlopen_deplibs=unknown
9116 # the two cases above should catch all versions of osf <= 5.1. Read
9117 # the comments above for what we know about them.
9118 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
9119 # is used to find them so we can finally say `yes'.
9120 lt_cv_sys_dlopen_deplibs=yes
9123 lt_cv_sys_dlopen_deplibs=yes
9126 lt_cv_sys_dlopen_deplibs=yes
9128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9129 libltdl_cv_sys_dlopen_deplibs=yes
9134 { echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
9135 echo "${ECHO_T}$lt_cv_sys_dlopen_deplibs" >&6; }
9136 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
9138 cat >>confdefs.h <<\_ACEOF
9139 #define LTDL_DLOPEN_DEPLIBS 1
9147 for ac_header in argz.h
9149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9155 cat >conftest.$ac_ext <<_ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9161 $ac_includes_default
9163 #include <$ac_header>
9165 rm -f conftest.$ac_objext
9166 if { (ac_try="$ac_compile"
9168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9169 *) ac_try_echo=$ac_try;;
9171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9172 (eval "$ac_compile") 2>conftest.er1
9174 grep -v '^ *+' conftest.er1 >conftest.err
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } && {
9179 test -z "$ac_c_werror_flag" ||
9180 test ! -s conftest.err
9181 } && test -s conftest.$ac_objext; then
9182 eval "$as_ac_Header=yes"
9184 echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.$ac_ext >&5
9187 eval "$as_ac_Header=no"
9190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9192 ac_res=`eval echo '${'$as_ac_Header'}'`
9193 { echo "$as_me:$LINENO: result: $ac_res" >&5
9194 echo "${ECHO_T}$ac_res" >&6; }
9195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9196 cat >>confdefs.h <<_ACEOF
9197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9205 { echo "$as_me:$LINENO: checking for error_t" >&5
9206 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
9207 if test "${ac_cv_type_error_t+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 cat >conftest.$ac_ext <<_ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h. */
9216 #if defined(HAVE_ARGZ_H)
9220 typedef error_t ac__type_new_;
9224 if ((ac__type_new_ *) 0)
9226 if (sizeof (ac__type_new_))
9232 rm -f conftest.$ac_objext
9233 if { (ac_try="$ac_compile"
9235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9236 *) ac_try_echo=$ac_try;;
9238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9239 (eval "$ac_compile") 2>conftest.er1
9241 grep -v '^ *+' conftest.er1 >conftest.err
9243 cat conftest.err >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); } && {
9246 test -z "$ac_c_werror_flag" ||
9247 test ! -s conftest.err
9248 } && test -s conftest.$ac_objext; then
9249 ac_cv_type_error_t=yes
9251 echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9254 ac_cv_type_error_t=no
9257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9259 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
9260 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
9261 if test $ac_cv_type_error_t = yes; then
9263 cat >>confdefs.h <<_ACEOF
9264 #define HAVE_ERROR_T 1
9270 cat >>confdefs.h <<\_ACEOF
9275 cat >>confdefs.h <<\_ACEOF
9276 #define __error_t_defined 1
9290 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
9291 argz_next argz_stringify
9293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9294 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9296 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9299 cat >conftest.$ac_ext <<_ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h. */
9305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9307 #define $ac_func innocuous_$ac_func
9309 /* System header to define __stub macros and hopefully few prototypes,
9310 which can conflict with char $ac_func (); below.
9311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9312 <limits.h> exists even on freestanding compilers. */
9315 # include <limits.h>
9317 # include <assert.h>
9322 /* Override any GCC internal prototype to avoid an error.
9323 Use char because int might match the return type of a GCC
9324 builtin and then its argument prototype would still apply. */
9329 /* The GNU C library defines this for functions which it implements
9330 to always fail with ENOSYS. Some functions are actually named
9331 something starting with __ and the normal name is an alias. */
9332 #if defined __stub_$ac_func || defined __stub___$ac_func
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (ac_try="$ac_link"
9347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9348 *) ac_try_echo=$ac_try;;
9350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9351 (eval "$ac_link") 2>conftest.er1
9353 grep -v '^ *+' conftest.er1 >conftest.err
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } && {
9358 test -z "$ac_c_werror_flag" ||
9359 test ! -s conftest.err
9360 } && test -s conftest$ac_exeext &&
9361 $as_test_x conftest$ac_exeext; then
9362 eval "$as_ac_var=yes"
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9367 eval "$as_ac_var=no"
9370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9371 conftest$ac_exeext conftest.$ac_ext
9373 ac_res=`eval echo '${'$as_ac_var'}'`
9374 { echo "$as_me:$LINENO: result: $ac_res" >&5
9375 echo "${ECHO_T}$ac_res" >&6; }
9376 if test `eval echo '${'$as_ac_var'}'` = yes; then
9377 cat >>confdefs.h <<_ACEOF
9378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9388 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
9394 if test -z "$ARGZ_H"; then
9395 { echo "$as_me:$LINENO: checking if argz actually works" >&5
9396 echo $ECHO_N "checking if argz actually works... $ECHO_C" >&6; }
9397 if test "${lt_cv_sys_argz_works+set}" = set; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9402 lt_cv_sys_argz_works=no
9403 if test "$cross_compiling" != no; then
9404 lt_cv_sys_argz_works="guessing no"
9406 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
9409 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
9414 if test "$lt_os_major" -gt 1 \
9415 || { test "$lt_os_major" -eq 1 \
9416 && { test "$lt_os_minor" -gt 5 \
9417 || { test "$lt_os_minor" -eq 5 \
9418 && test "$lt_os_micro" -gt 24; }; }; }; then
9419 lt_cv_sys_argz_works=yes
9423 *) lt_cv_sys_argz_works=yes ;;
9426 { echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
9427 echo "${ECHO_T}$lt_cv_sys_argz_works" >&6; }
9428 if test $lt_cv_sys_argz_works = yes; then
9430 cat >>confdefs.h <<\_ACEOF
9431 #define HAVE_WORKING_ARGZ 1
9442 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
9451 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9452 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9453 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9456 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9457 libltdl_cv_preloaded_symbols=yes
9459 libltdl_cv_preloaded_symbols=no
9463 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9464 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9465 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9467 cat >>confdefs.h <<\_ACEOF
9468 #define HAVE_PRELOADED_SYMBOLS 1
9474 # Check whether --with-system-libtool was given.
9475 if test "${with_system_libtool+set}" = set; then
9476 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
9477 set dummy libtool; ac_word=$2
9478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9480 if test "${ac_cv_path_LIBTOOL+set}" = set; then
9481 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
9488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9489 as_dummy="$PATH:/usr/local/bin"
9490 for as_dir in $as_dummy
9493 test -z "$as_dir" && as_dir=.
9494 for ac_exec_ext in '' $ac_executable_extensions; do
9495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9496 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
9497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9507 LIBTOOL=$ac_cv_path_LIBTOOL
9508 if test -n "$LIBTOOL"; then
9509 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
9510 echo "${ECHO_T}$LIBTOOL" >&6; }
9512 { echo "$as_me:$LINENO: result: no" >&5
9513 echo "${ECHO_T}no" >&6; }
9519 LIBTOOL="`pwd`/libtool"
9539 # Check whether --enable-shared was given.
9540 if test "${enable_shared+set}" = set; then
9541 enableval=$enable_shared; p=${PACKAGE-default}
9543 yes) enable_shared=yes ;;
9544 no) enable_shared=no ;;
9547 # Look at the argument we got. We use all the common list separators.
9548 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9549 for pkg in $enableval; do
9551 if test "X$pkg" = "X$p"; then
9570 # Check whether --enable-static was given.
9571 if test "${enable_static+set}" = set; then
9572 enableval=$enable_static; p=${PACKAGE-default}
9574 yes) enable_static=yes ;;
9575 no) enable_static=no ;;
9578 # Look at the argument we got. We use all the common list separators.
9579 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9580 for pkg in $enableval; do
9582 if test "X$pkg" = "X$p"; then
9602 # Check whether --with-pic was given.
9603 if test "${with_pic+set}" = set; then
9604 withval=$with_pic; pic_mode="$withval"
9610 test -z "$pic_mode" && pic_mode=default
9618 # Check whether --enable-fast-install was given.
9619 if test "${enable_fast_install+set}" = set; then
9620 enableval=$enable_fast_install; p=${PACKAGE-default}
9622 yes) enable_fast_install=yes ;;
9623 no) enable_fast_install=no ;;
9625 enable_fast_install=no
9626 # Look at the argument we got. We use all the common list separators.
9627 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9628 for pkg in $enableval; do
9630 if test "X$pkg" = "X$p"; then
9631 enable_fast_install=yes
9638 enable_fast_install=yes
9651 # This can be used to rebuild libtool when needed
9652 LIBTOOL_DEPS="$ltmain"
9654 # Always use our own libtool.
9655 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9681 test -z "$LN_S" && LN_S="ln -s"
9696 if test -n "${ZSH_VERSION+set}" ; then
9697 setopt NO_GLOB_SUBST
9700 { echo "$as_me:$LINENO: checking for objdir" >&5
9701 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9702 if test "${lt_cv_objdir+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9705 rm -f .libs 2>/dev/null
9706 mkdir .libs 2>/dev/null
9707 if test -d .libs; then
9710 # MS-DOS does not allow filenames that begin with a dot.
9713 rmdir .libs 2>/dev/null
9715 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9716 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9717 objdir=$lt_cv_objdir
9723 cat >>confdefs.h <<_ACEOF
9724 #define LT_OBJDIR "$lt_cv_objdir/"
9745 # AIX sometimes has problems with the GCC collect2 program. For some
9746 # reason, if we set the COLLECT_NAMES environment variable, the problems
9747 # vanish in a puff of smoke.
9748 if test "X${COLLECT_NAMES+set}" != Xset; then
9750 export COLLECT_NAMES
9755 # Sed substitution that helps us do robust quoting. It backslashifies
9756 # metacharacters that are still active within double-quoted strings.
9757 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9759 # Same as above, but do not quote variable references.
9760 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9762 # Sed substitution to delay expansion of an escaped shell variable in a
9763 # double_quote_subst'ed string.
9764 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9766 # Sed substitution to delay expansion of an escaped single quote.
9767 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9769 # Sed substitution to avoid accidental globbing in evaled expressions
9770 no_glob_subst='s/\*/\\\*/g'
9774 can_build_shared=yes
9776 # All known linkers require a `.a' archive for static linking (except MSVC,
9777 # which needs '.lib').
9780 with_gnu_ld="$lt_cv_prog_gnu_ld"
9783 old_CFLAGS="$CFLAGS"
9785 # Set sane defaults for various variables
9786 test -z "$CC" && CC=cc
9787 test -z "$LTCC" && LTCC=$CC
9788 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9789 test -z "$LD" && LD=ld
9790 test -z "$ac_objext" && ac_objext=o
9792 for cc_temp in $compiler""; do
9794 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9795 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9800 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9803 # Only perform the check for file, if the check method requires it
9804 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9805 case $deplibs_check_method in
9807 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9808 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9809 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9810 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9818 lt_save_MAGIC_CMD="$MAGIC_CMD"
9819 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9820 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9821 for ac_dir in $ac_dummy; do
9823 test -z "$ac_dir" && ac_dir=.
9824 if test -f $ac_dir/${ac_tool_prefix}file; then
9825 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9826 if test -n "$file_magic_test_file"; then
9827 case $deplibs_check_method in
9829 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9830 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9831 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9832 $EGREP "$file_magic_regex" > /dev/null; then
9837 *** Warning: the command libtool uses to detect shared libraries,
9838 *** $file_magic_cmd, produces output that libtool cannot recognize.
9839 *** The result is that libtool may fail to recognize shared libraries
9840 *** as such. This will affect the creation of libtool libraries that
9841 *** depend on shared libraries, but programs linked with such libtool
9842 *** libraries will work regardless of this problem. Nevertheless, you
9843 *** may want to report the problem to your system manager and/or to
9844 *** bug-libtool@gnu.org
9854 MAGIC_CMD="$lt_save_MAGIC_CMD"
9859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9860 if test -n "$MAGIC_CMD"; then
9861 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9862 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9864 { echo "$as_me:$LINENO: result: no" >&5
9865 echo "${ECHO_T}no" >&6; }
9872 if test -z "$lt_cv_path_MAGIC_CMD"; then
9873 if test -n "$ac_tool_prefix"; then
9874 { echo "$as_me:$LINENO: checking for file" >&5
9875 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9876 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9881 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9884 lt_save_MAGIC_CMD="$MAGIC_CMD"
9885 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9886 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9887 for ac_dir in $ac_dummy; do
9889 test -z "$ac_dir" && ac_dir=.
9890 if test -f $ac_dir/file; then
9891 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9892 if test -n "$file_magic_test_file"; then
9893 case $deplibs_check_method in
9895 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9896 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9897 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9898 $EGREP "$file_magic_regex" > /dev/null; then
9903 *** Warning: the command libtool uses to detect shared libraries,
9904 *** $file_magic_cmd, produces output that libtool cannot recognize.
9905 *** The result is that libtool may fail to recognize shared libraries
9906 *** as such. This will affect the creation of libtool libraries that
9907 *** depend on shared libraries, but programs linked with such libtool
9908 *** libraries will work regardless of this problem. Nevertheless, you
9909 *** may want to report the problem to your system manager and/or to
9910 *** bug-libtool@gnu.org
9920 MAGIC_CMD="$lt_save_MAGIC_CMD"
9925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9926 if test -n "$MAGIC_CMD"; then
9927 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9928 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9930 { echo "$as_me:$LINENO: result: no" >&5
9931 echo "${ECHO_T}no" >&6; }
9944 # Use C for the default configuration in the libtool script
9948 ac_cpp='$CPP $CPPFLAGS'
9949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9954 # Source file extension for C test sources.
9957 # Object file extension for compiled C test sources.
9961 # Code to be used in simple compile tests
9962 lt_simple_compile_test_code="int some_variable = 0;"
9964 # Code to be used in simple link tests
9965 lt_simple_link_test_code='int main(){return(0);}'
9973 # If no C compiler was specified, use CC.
9976 # If no C compiler flags were specified, use CFLAGS.
9977 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9979 # Allow CC to be a program name with arguments.
9982 # Save the default compiler, since it gets overwritten when the other
9983 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9984 compiler_DEFAULT=$CC
9986 # save warnings/boilerplate of simple test code
9987 ac_outfile=conftest.$ac_objext
9988 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9989 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9990 _lt_compiler_boilerplate=`cat conftest.err`
9993 ac_outfile=conftest.$ac_objext
9994 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9995 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9996 _lt_linker_boilerplate=`cat conftest.err`
10001 ## There is no encapsulation within the following macros, do not change
10002 ## the running order or otherwise move them around unless you know exactly
10003 ## what you are doing...
10004 if test -n "$compiler"; then
10006 lt_prog_compiler_no_builtin_flag=
10008 if test "$GCC" = yes; then
10009 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10011 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10012 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
10013 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10016 lt_cv_prog_compiler_rtti_exceptions=no
10017 ac_outfile=conftest.$ac_objext
10018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10019 lt_compiler_flag="-fno-rtti -fno-exceptions"
10020 # Insert the option either (1) after the last *FLAGS variable, or
10021 # (2) before a word containing "conftest.", or (3) at the end.
10022 # Note that $ac_compile itself does not contain backslashes and begins
10023 # with a dollar sign (not a hyphen), so the echo should work correctly.
10024 # The option is referenced via a variable to avoid confusing sed.
10025 lt_compile=`echo "$ac_compile" | $SED \
10026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10028 -e 's:$: $lt_compiler_flag:'`
10029 (eval echo "\"\$as_me:10029: $lt_compile\"" >&5)
10030 (eval "$lt_compile" 2>conftest.err)
10032 cat conftest.err >&5
10033 echo "$as_me:10033: \$? = $ac_status" >&5
10034 if (exit $ac_status) && test -s "$ac_outfile"; then
10035 # The compiler can only warn and ignore the option if not recognized
10036 # So say no if there are warnings other than the usual output.
10037 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10038 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10039 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10040 lt_cv_prog_compiler_rtti_exceptions=yes
10046 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10047 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10049 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10050 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10062 lt_prog_compiler_wl=
10063 lt_prog_compiler_pic=
10064 lt_prog_compiler_static=
10066 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10067 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
10069 if test "$GCC" = yes; then
10070 lt_prog_compiler_wl='-Wl,'
10071 lt_prog_compiler_static='-static'
10075 # All AIX code is PIC.
10076 if test "$host_cpu" = ia64; then
10077 # AIX 5 now supports IA64 processor
10078 lt_prog_compiler_static='-Bstatic'
10085 # see comment about AmigaOS4 .so support
10086 lt_prog_compiler_pic='-fPIC'
10089 # FIXME: we need at least 68020 code to build shared libraries, but
10090 # adding the `-m68020' flag to GCC prevents building anything better,
10092 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10097 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10098 # PIC is the default for these OSes.
10101 mingw* | cygwin* | pw32* | os2*)
10102 # This hack is so that the source file can tell whether it is being
10103 # built for inclusion in a dll (and should export symbols for example).
10104 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10105 # (--disable-auto-import) libraries
10106 lt_prog_compiler_pic='-DDLL_EXPORT'
10109 darwin* | rhapsody*)
10110 # PIC is the default on this platform
10111 # Common symbols not allowed in MH_DYLIB files
10112 lt_prog_compiler_pic='-fno-common'
10116 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10117 # not for PA HP-UX.
10123 lt_prog_compiler_pic='-fPIC'
10129 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10130 # Instead, we relocate shared libraries at runtime.
10134 # Just because we use GCC doesn't mean we suddenly get shared libraries
10135 # on systems that don't support them.
10136 lt_prog_compiler_can_build_shared=no
10141 # QNX uses GNU C++, but need to define -shared option too, otherwise
10142 # it will coredump.
10143 lt_prog_compiler_pic='-fPIC -shared'
10147 if test -d /usr/nec; then
10148 lt_prog_compiler_pic=-Kconform_pic
10153 lt_prog_compiler_pic='-fPIC'
10157 # PORTME Check for flag to pass linker flags through the system compiler.
10160 lt_prog_compiler_wl='-Wl,'
10161 if test "$host_cpu" = ia64; then
10162 # AIX 5 now supports IA64 processor
10163 lt_prog_compiler_static='-Bstatic'
10165 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10169 mingw* | cygwin* | pw32* | os2*)
10170 # This hack is so that the source file can tell whether it is being
10171 # built for inclusion in a dll (and should export symbols for example).
10172 lt_prog_compiler_pic='-DDLL_EXPORT'
10175 hpux9* | hpux10* | hpux11*)
10176 lt_prog_compiler_wl='-Wl,'
10177 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10178 # not for PA HP-UX.
10184 lt_prog_compiler_pic='+Z'
10187 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10188 lt_prog_compiler_static='${wl}-a ${wl}archive'
10191 irix5* | irix6* | nonstopux*)
10192 lt_prog_compiler_wl='-Wl,'
10193 # PIC (with -KPIC) is the default.
10194 lt_prog_compiler_static='-non_shared'
10197 linux* | k*bsd*-gnu)
10198 case $cc_basename in
10199 icc* | ecc* | ifort*)
10200 lt_prog_compiler_wl='-Wl,'
10201 lt_prog_compiler_pic='-KPIC'
10202 lt_prog_compiler_static='-static'
10204 pgcc* | pgf77* | pgf90* | pgf95*)
10205 # Portland Group compilers (*not* the Pentium gcc compiler,
10206 # which looks to be a dead project)
10207 lt_prog_compiler_wl='-Wl,'
10208 lt_prog_compiler_pic='-fpic'
10209 lt_prog_compiler_static='-Bstatic'
10212 lt_prog_compiler_wl='-Wl,'
10213 # All Alpha code is PIC.
10214 lt_prog_compiler_static='-non_shared'
10217 # IBM XL C 8.0/Fortran 10.1 on PPC
10218 lt_prog_compiler_wl='-Wl,'
10219 lt_prog_compiler_pic='-qpic'
10220 lt_prog_compiler_static='-qstaticlink'
10223 case `$CC -V 2>&1 | sed 5q` in
10226 lt_prog_compiler_pic='-KPIC'
10227 lt_prog_compiler_static='-Bstatic'
10228 lt_prog_compiler_wl='-Wl,'
10231 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10232 lt_prog_compiler_pic='-KPIC'
10233 lt_prog_compiler_static='-Bstatic'
10234 lt_prog_compiler_wl=''
10242 lt_prog_compiler_pic='-KPIC'
10243 lt_prog_compiler_static='-Bstatic'
10247 # QNX uses GNU C++, but need to define -shared option too, otherwise
10248 # it will coredump.
10249 lt_prog_compiler_pic='-fPIC -shared'
10252 osf3* | osf4* | osf5*)
10253 lt_prog_compiler_wl='-Wl,'
10254 # All OSF/1 code is PIC.
10255 lt_prog_compiler_static='-non_shared'
10259 lt_prog_compiler_static='-non_shared'
10263 lt_prog_compiler_pic='-KPIC'
10264 lt_prog_compiler_static='-Bstatic'
10265 case $cc_basename in
10266 f77* | f90* | f95*)
10267 lt_prog_compiler_wl='-Qoption ld ';;
10269 lt_prog_compiler_wl='-Wl,';;
10274 lt_prog_compiler_wl='-Qoption ld '
10275 lt_prog_compiler_pic='-PIC'
10276 lt_prog_compiler_static='-Bstatic'
10279 sysv4 | sysv4.2uw2* | sysv4.3*)
10280 lt_prog_compiler_wl='-Wl,'
10281 lt_prog_compiler_pic='-KPIC'
10282 lt_prog_compiler_static='-Bstatic'
10286 if test -d /usr/nec ;then
10287 lt_prog_compiler_pic='-Kconform_pic'
10288 lt_prog_compiler_static='-Bstatic'
10292 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10293 lt_prog_compiler_wl='-Wl,'
10294 lt_prog_compiler_pic='-KPIC'
10295 lt_prog_compiler_static='-Bstatic'
10299 lt_prog_compiler_wl='-Wl,'
10300 lt_prog_compiler_can_build_shared=no
10304 lt_prog_compiler_pic='-pic'
10305 lt_prog_compiler_static='-Bstatic'
10309 lt_prog_compiler_can_build_shared=no
10315 # For platforms which do not support PIC, -DPIC is meaningless:
10317 lt_prog_compiler_pic=
10320 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10323 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10324 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
10332 # Check to make sure the PIC flag actually works.
10334 if test -n "$lt_prog_compiler_pic"; then
10335 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10336 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
10337 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 lt_cv_prog_compiler_pic_works=no
10341 ac_outfile=conftest.$ac_objext
10342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10343 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10344 # Insert the option either (1) after the last *FLAGS variable, or
10345 # (2) before a word containing "conftest.", or (3) at the end.
10346 # Note that $ac_compile itself does not contain backslashes and begins
10347 # with a dollar sign (not a hyphen), so the echo should work correctly.
10348 # The option is referenced via a variable to avoid confusing sed.
10349 lt_compile=`echo "$ac_compile" | $SED \
10350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10352 -e 's:$: $lt_compiler_flag:'`
10353 (eval echo "\"\$as_me:10353: $lt_compile\"" >&5)
10354 (eval "$lt_compile" 2>conftest.err)
10356 cat conftest.err >&5
10357 echo "$as_me:10357: \$? = $ac_status" >&5
10358 if (exit $ac_status) && test -s "$ac_outfile"; then
10359 # The compiler can only warn and ignore the option if not recognized
10360 # So say no if there are warnings other than the usual output.
10361 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10363 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10364 lt_cv_prog_compiler_pic_works=yes
10370 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
10371 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
10373 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10374 case $lt_prog_compiler_pic in
10376 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10379 lt_prog_compiler_pic=
10380 lt_prog_compiler_can_build_shared=no
10391 # Check to make sure the static flag actually works.
10393 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10394 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10395 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
10396 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 lt_cv_prog_compiler_static_works=no
10400 save_LDFLAGS="$LDFLAGS"
10401 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10402 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10403 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10404 # The linker can only warn and ignore the option if not recognized
10405 # So say no if there are warnings
10406 if test -s conftest.err; then
10407 # Append any errors to the config.log.
10408 cat conftest.err 1>&5
10409 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10411 if diff conftest.exp conftest.er2 >/dev/null; then
10412 lt_cv_prog_compiler_static_works=yes
10415 lt_cv_prog_compiler_static_works=yes
10419 LDFLAGS="$save_LDFLAGS"
10422 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10423 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
10425 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10428 lt_prog_compiler_static=
10437 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10438 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
10439 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10442 lt_cv_prog_compiler_c_o=no
10443 $RM -r conftest 2>/dev/null
10447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10449 lt_compiler_flag="-o out/conftest2.$ac_objext"
10450 # Insert the option either (1) after the last *FLAGS variable, or
10451 # (2) before a word containing "conftest.", or (3) at the end.
10452 # Note that $ac_compile itself does not contain backslashes and begins
10453 # with a dollar sign (not a hyphen), so the echo should work correctly.
10454 lt_compile=`echo "$ac_compile" | $SED \
10455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10457 -e 's:$: $lt_compiler_flag:'`
10458 (eval echo "\"\$as_me:10458: $lt_compile\"" >&5)
10459 (eval "$lt_compile" 2>out/conftest.err)
10461 cat out/conftest.err >&5
10462 echo "$as_me:10462: \$? = $ac_status" >&5
10463 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10465 # The compiler can only warn and ignore the option if not recognized
10466 # So say no if there are warnings
10467 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10468 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10469 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10470 lt_cv_prog_compiler_c_o=yes
10475 # SGI C++ compiler will create directory out/ii_files/ for
10476 # template instantiation
10477 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10478 $RM out/* && rmdir out
10484 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10485 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
10492 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10493 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
10494 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 lt_cv_prog_compiler_c_o=no
10498 $RM -r conftest 2>/dev/null
10502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10504 lt_compiler_flag="-o out/conftest2.$ac_objext"
10505 # Insert the option either (1) after the last *FLAGS variable, or
10506 # (2) before a word containing "conftest.", or (3) at the end.
10507 # Note that $ac_compile itself does not contain backslashes and begins
10508 # with a dollar sign (not a hyphen), so the echo should work correctly.
10509 lt_compile=`echo "$ac_compile" | $SED \
10510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10512 -e 's:$: $lt_compiler_flag:'`
10513 (eval echo "\"\$as_me:10513: $lt_compile\"" >&5)
10514 (eval "$lt_compile" 2>out/conftest.err)
10516 cat out/conftest.err >&5
10517 echo "$as_me:10517: \$? = $ac_status" >&5
10518 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10520 # The compiler can only warn and ignore the option if not recognized
10521 # So say no if there are warnings
10522 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10523 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10524 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10525 lt_cv_prog_compiler_c_o=yes
10530 # SGI C++ compiler will create directory out/ii_files/ for
10531 # template instantiation
10532 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10533 $RM out/* && rmdir out
10539 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10540 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
10545 hard_links="nottested"
10546 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10547 # do not overwrite the value of need_locks provided by the user
10548 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10549 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
10552 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10554 ln conftest.a conftest.b 2>&5 || hard_links=no
10555 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10556 { echo "$as_me:$LINENO: result: $hard_links" >&5
10557 echo "${ECHO_T}$hard_links" >&6; }
10558 if test "$hard_links" = no; then
10559 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10560 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10572 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10573 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10576 allow_undefined_flag=
10577 always_export_symbols=no
10579 archive_expsym_cmds=
10580 compiler_needs_object=no
10581 enable_shared_with_static_runtimes=no
10582 export_dynamic_flag_spec=
10583 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10584 hardcode_automatic=no
10586 hardcode_direct_absolute=no
10587 hardcode_libdir_flag_spec=
10588 hardcode_libdir_flag_spec_ld=
10589 hardcode_libdir_separator=
10590 hardcode_minus_L=no
10591 hardcode_shlibpath_var=unsupported
10593 link_all_deplibs=unknown
10595 module_expsym_cmds=
10596 old_archive_from_new_cmds=
10597 old_archive_from_expsyms_cmds=
10598 thread_safe_flag_spec=
10599 whole_archive_flag_spec=
10600 # include_expsyms should be a list of space-separated symbols to be *always*
10601 # included in the symbol list
10603 # exclude_expsyms can be an extended regexp of symbols to exclude
10604 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10605 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10606 # as well as any symbol that contains `d'.
10607 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10608 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10609 # platforms (ab)use it in PIC code, but their linkers get confused if
10610 # the symbol is explicitly referenced. Since portable code cannot
10611 # rely on this symbol name, it's probably fine to never include it in
10612 # preloaded symbol tables.
10613 # Exclude shared library initialization/finalization symbols.
10614 extract_expsyms_cmds=
10617 cygwin* | mingw* | pw32*)
10618 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10619 # When not using gcc, we currently assume that we are using
10620 # Microsoft Visual C++.
10621 if test "$GCC" != yes; then
10626 # we just hope/assume this is gcc and not c89 (= MSVC++)
10635 if test "$with_gnu_ld" = yes; then
10636 # If archive_cmds runs LD, not CC, wlarc should be empty
10639 # Set some defaults for GNU ld with shared library support. These
10640 # are reset later if shared libraries are not supported. Putting them
10641 # here allows them to be overridden if necessary.
10642 runpath_var=LD_RUN_PATH
10643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10644 export_dynamic_flag_spec='${wl}--export-dynamic'
10645 # ancient GNU ld didn't support --whole-archive et. al.
10646 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10647 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10649 whole_archive_flag_spec=
10651 supports_anon_versioning=no
10652 case `$LD -v 2>&1` in
10653 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10654 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10655 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10656 *\ 2.11.*) ;; # other 2.11 versions
10657 *) supports_anon_versioning=yes ;;
10660 # See if GNU ld supports shared libraries.
10663 # On AIX/PPC, the GNU linker is very broken
10664 if test "$host_cpu" != ia64; then
10668 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10669 *** to be unable to reliably create shared libraries on AIX.
10670 *** Therefore, libtool is disabling shared libraries support. If you
10671 *** really care for shared libraries, you may want to modify your PATH
10672 *** so that a non-GNU linker is found, and then restart.
10681 # see comment about AmigaOS4 .so support
10682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10683 archive_expsym_cmds=''
10686 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)'
10687 hardcode_libdir_flag_spec='-L$libdir'
10688 hardcode_minus_L=yes
10694 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10695 allow_undefined_flag=unsupported
10696 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10697 # support --undefined. This deserves some investigation. FIXME
10698 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10704 cygwin* | mingw* | pw32*)
10705 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10706 # as there is no search path for DLLs.
10707 hardcode_libdir_flag_spec='-L$libdir'
10708 allow_undefined_flag=unsupported
10709 always_export_symbols=no
10710 enable_shared_with_static_runtimes=yes
10711 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10713 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10715 # If the export-symbols file already is a .def file (1st line
10716 # is EXPORTS), use it as is; otherwise, prepend...
10717 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10718 cp $export_symbols $output_objdir/$soname.def;
10720 echo EXPORTS > $output_objdir/$soname.def;
10721 cat $export_symbols >> $output_objdir/$soname.def;
10723 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10731 hardcode_shlibpath_var=no
10732 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10733 export_dynamic_flag_spec='${wl}-E'
10734 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10735 # Instead, shared libraries are loaded at an image base (0x10000000 by
10736 # default) and relocated if they conflict, which is a slow very memory
10737 # consuming and fragmenting process. To avoid this, we pick a random,
10738 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10739 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10740 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10741 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'
10744 gnu* | linux* | tpf* | k*bsd*-gnu)
10746 if test "$host_os" = linux-dietlibc; then
10747 case $cc_basename in
10748 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10751 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10752 && test "$tmp_diet" = no
10755 tmp_sharedflag='-shared'
10756 case $cc_basename,$host_cpu in
10757 pgcc*) # Portland Group C compiler
10758 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10759 tmp_addflag=' $pic_flag'
10761 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10762 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10763 tmp_addflag=' $pic_flag -Mnomain' ;;
10764 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10765 tmp_addflag=' -i_dynamic' ;;
10766 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10767 tmp_addflag=' -i_dynamic -nofor_main' ;;
10768 ifc* | ifort*) # Intel Fortran compiler
10769 tmp_addflag=' -nofor_main' ;;
10770 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10771 tmp_sharedflag='-qmkshrobj'
10774 case `$CC -V 2>&1 | sed 5q` in
10775 *Sun\ C*) # Sun C 5.9
10776 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10777 compiler_needs_object=yes
10778 tmp_sharedflag='-G' ;;
10779 *Sun\ F*) # Sun Fortran 8.3
10780 tmp_sharedflag='-G' ;;
10782 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10784 if test "x$supports_anon_versioning" = xyes; then
10785 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10786 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10787 echo "local: *; };" >> $output_objdir/$libname.ver~
10788 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10791 case $cc_basename in
10793 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10794 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10795 hardcode_libdir_flag_spec=
10796 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10797 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10798 if test "x$supports_anon_versioning" = xyes; then
10799 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10800 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10801 echo "local: *; };" >> $output_objdir/$libname.ver~
10802 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10812 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10813 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10817 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10822 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10826 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10827 *** create shared libraries on Solaris systems. Therefore, libtool
10828 *** is disabling shared libraries support. We urge you to upgrade GNU
10829 *** binutils to release 2.9.1 or newer. Another option is to modify
10830 *** your PATH or compiler configuration so that the native linker is
10831 *** used, and then restart.
10834 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10836 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10843 case `$LD -v 2>&1` in
10844 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10848 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10849 *** reliably create shared libraries on SCO systems. Therefore, libtool
10850 *** is disabling shared libraries support. We urge you to upgrade GNU
10851 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10852 *** your PATH or compiler configuration so that the native linker is
10853 *** used, and then restart.
10858 # For security reasons, it is highly recommended that you always
10859 # use absolute paths for naming shared libraries, and exclude the
10860 # DT_RUNPATH tag from executables and libraries. But doing so
10861 # requires that you compile everything twice, which is a pain.
10862 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10864 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10865 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10874 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10876 hardcode_direct=yes
10877 hardcode_shlibpath_var=no
10881 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10883 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10890 if test "$ld_shlibs" = no; then
10892 hardcode_libdir_flag_spec=
10893 export_dynamic_flag_spec=
10894 whole_archive_flag_spec=
10897 # PORTME fill in a description of your system's linker (not GNU ld)
10900 allow_undefined_flag=unsupported
10901 always_export_symbols=yes
10902 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'
10903 # Note: this linker hardcodes the directories in LIBPATH if there
10904 # are no directories specified by -L.
10905 hardcode_minus_L=yes
10906 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10907 # Neither direct hardcoding nor static linking is supported with a
10909 hardcode_direct=unsupported
10914 if test "$host_cpu" = ia64; then
10915 # On IA64, the linker does run time linking by default, so we don't
10916 # have to do anything special.
10917 aix_use_runtimelinking=no
10918 exp_sym_flag='-Bexport'
10921 # If we're using GNU nm, then we don't want the "-C" option.
10922 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10923 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10924 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10926 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10928 aix_use_runtimelinking=no
10930 # Test if we are trying to use run time linking or normal
10931 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10932 # need to do runtime linking.
10933 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10934 for ld_flag in $LDFLAGS; do
10935 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10936 aix_use_runtimelinking=yes
10943 exp_sym_flag='-bexport'
10944 no_entry_flag='-bnoentry'
10947 # When large executables or shared objects are built, AIX ld can
10948 # have problems creating the table of contents. If linking a library
10949 # or program results in "error TOC overflow" add -mminimal-toc to
10950 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10951 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10954 hardcode_direct=yes
10955 hardcode_direct_absolute=yes
10956 hardcode_libdir_separator=':'
10957 link_all_deplibs=yes
10958 file_list_spec='${wl}-f,'
10960 if test "$GCC" = yes; then
10961 case $host_os in aix4.[012]|aix4.[012].*)
10962 # We only want to do this on AIX 4.2 and lower, the check
10963 # below for broken collect2 doesn't work under 4.3+
10964 collect2name=`${CC} -print-prog-name=collect2`
10965 if test -f "$collect2name" &&
10966 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10968 # We have reworked collect2
10971 # We have old collect2
10972 hardcode_direct=unsupported
10973 # It fails to find uninstalled libraries when the uninstalled
10974 # path is not listed in the libpath. Setting hardcode_minus_L
10975 # to unsupported forces relinking
10976 hardcode_minus_L=yes
10977 hardcode_libdir_flag_spec='-L$libdir'
10978 hardcode_libdir_separator=
10982 shared_flag='-shared'
10983 if test "$aix_use_runtimelinking" = yes; then
10984 shared_flag="$shared_flag "'${wl}-G'
10988 if test "$host_cpu" = ia64; then
10989 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10990 # chokes on -Wl,-G. The following line is correct:
10993 if test "$aix_use_runtimelinking" = yes; then
10994 shared_flag='${wl}-G'
10996 shared_flag='${wl}-bM:SRE'
11001 # It seems that -bexpall does not export symbols beginning with
11002 # underscore (_), so it is better to generate a list of symbols to export.
11003 always_export_symbols=yes
11004 if test "$aix_use_runtimelinking" = yes; then
11005 # Warning - without using the other runtime loading flags (-brtl),
11006 # -berok will link without error, but may produce a broken library.
11007 allow_undefined_flag='-berok'
11008 # Determine the default libpath from the value encoded in an
11009 # empty executable.
11010 cat >conftest.$ac_ext <<_ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h. */
11025 rm -f conftest.$ac_objext conftest$ac_exeext
11026 if { (ac_try="$ac_link"
11027 case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_link") 2>conftest.er1
11034 grep -v '^ *+' conftest.er1 >conftest.err
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } && {
11039 test -z "$ac_c_werror_flag" ||
11040 test ! -s conftest.err
11041 } && test -s conftest$ac_exeext &&
11042 $as_test_x conftest$ac_exeext; then
11044 lt_aix_libpath_sed='
11045 /Import File Strings/,/^$/ {
11051 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11052 # Check for a 64-bit object if we didn't find anything.
11053 if test -z "$aix_libpath"; then
11054 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11057 echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11064 conftest$ac_exeext conftest.$ac_ext
11065 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11067 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11068 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11070 if test "$host_cpu" = ia64; then
11071 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11072 allow_undefined_flag="-z nodefs"
11073 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"
11075 # Determine the default libpath from the value encoded in an
11076 # empty executable.
11077 cat >conftest.$ac_ext <<_ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h. */
11092 rm -f conftest.$ac_objext conftest$ac_exeext
11093 if { (ac_try="$ac_link"
11094 case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099 (eval "$ac_link") 2>conftest.er1
11101 grep -v '^ *+' conftest.er1 >conftest.err
11103 cat conftest.err >&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } && {
11106 test -z "$ac_c_werror_flag" ||
11107 test ! -s conftest.err
11108 } && test -s conftest$ac_exeext &&
11109 $as_test_x conftest$ac_exeext; then
11111 lt_aix_libpath_sed='
11112 /Import File Strings/,/^$/ {
11118 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11119 # Check for a 64-bit object if we didn't find anything.
11120 if test -z "$aix_libpath"; then
11121 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11124 echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11131 conftest$ac_exeext conftest.$ac_ext
11132 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11134 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11135 # Warning - without using the other run time loading flags,
11136 # -berok will link without error, but may produce a broken library.
11137 no_undefined_flag=' ${wl}-bernotok'
11138 allow_undefined_flag=' ${wl}-berok'
11139 # Exported symbols can be pulled into shared objects from archives
11140 whole_archive_flag_spec='$convenience'
11141 archive_cmds_need_lc=yes
11142 # This is similar to how AIX traditionally builds its shared libraries.
11143 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11151 # see comment about AmigaOS4 .so support
11152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11153 archive_expsym_cmds=''
11156 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)'
11157 hardcode_libdir_flag_spec='-L$libdir'
11158 hardcode_minus_L=yes
11164 export_dynamic_flag_spec=-rdynamic
11167 cygwin* | mingw* | pw32*)
11168 # When not using gcc, we currently assume that we are using
11169 # Microsoft Visual C++.
11170 # hardcode_libdir_flag_spec is actually meaningless, as there is
11171 # no search path for DLLs.
11172 hardcode_libdir_flag_spec=' '
11173 allow_undefined_flag=unsupported
11174 # Tell ltmain to make .lib files, not .a files.
11176 # Tell ltmain to make .dll files, not .so files.
11178 # FIXME: Setting linknames here is a bad hack.
11179 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11180 # The linker will automatically build a .lib file if we build a DLL.
11181 old_archive_from_new_cmds='true'
11182 # FIXME: Should let the user specify the lib program.
11183 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11184 fix_srcfile_path='`cygpath -w "$srcfile"`'
11185 enable_shared_with_static_runtimes=yes
11188 darwin* | rhapsody*)
11191 archive_cmds_need_lc=no
11193 hardcode_automatic=yes
11194 hardcode_shlibpath_var=unsupported
11195 whole_archive_flag_spec=''
11196 link_all_deplibs=yes
11197 allow_undefined_flag="$_lt_dar_allow_undefined"
11198 if test "$GCC" = "yes"; then
11199 output_verbose_link_cmd=echo
11200 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11201 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11202 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}"
11203 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}"
11212 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11213 hardcode_libdir_flag_spec='-L$libdir'
11214 hardcode_shlibpath_var=no
11221 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11222 # support. Future versions do this automatically, but an explicit c++rt0.o
11223 # does not break anything, and helps significantly (at the cost of a little
11226 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11227 hardcode_libdir_flag_spec='-R$libdir'
11228 hardcode_direct=yes
11229 hardcode_shlibpath_var=no
11232 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11234 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11235 hardcode_direct=yes
11236 hardcode_minus_L=yes
11237 hardcode_shlibpath_var=no
11240 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11241 freebsd* | dragonfly*)
11242 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11243 hardcode_libdir_flag_spec='-R$libdir'
11244 hardcode_direct=yes
11245 hardcode_shlibpath_var=no
11249 if test "$GCC" = yes; then
11250 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11252 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11254 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11255 hardcode_libdir_separator=:
11256 hardcode_direct=yes
11258 # hardcode_minus_L: Not really in the search PATH,
11259 # but as the default location of the library.
11260 hardcode_minus_L=yes
11261 export_dynamic_flag_spec='${wl}-E'
11265 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11266 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11268 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11270 if test "$with_gnu_ld" = no; then
11271 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11272 hardcode_libdir_flag_spec_ld='+b $libdir'
11273 hardcode_libdir_separator=:
11274 hardcode_direct=yes
11275 hardcode_direct_absolute=yes
11276 export_dynamic_flag_spec='${wl}-E'
11277 # hardcode_minus_L: Not really in the search PATH,
11278 # but as the default location of the library.
11279 hardcode_minus_L=yes
11284 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11287 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11290 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11293 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11299 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11302 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11305 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11309 if test "$with_gnu_ld" = no; then
11310 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11311 hardcode_libdir_separator=:
11316 hardcode_shlibpath_var=no
11319 hardcode_direct=yes
11320 hardcode_direct_absolute=yes
11321 export_dynamic_flag_spec='${wl}-E'
11323 # hardcode_minus_L: Not really in the search PATH,
11324 # but as the default location of the library.
11325 hardcode_minus_L=yes
11331 irix5* | irix6* | nonstopux*)
11332 if test "$GCC" = yes; then
11333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11334 # Try to use the -exported_symbol ld option, if it does not
11335 # work, assume that -exports_file does not work either and
11336 # implicitly export all symbols.
11337 save_LDFLAGS="$LDFLAGS"
11338 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11339 cat >conftest.$ac_ext <<_ACEOF
11342 rm -f conftest.$ac_objext conftest$ac_exeext
11343 if { (ac_try="$ac_link"
11344 case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_link") 2>conftest.er1
11351 grep -v '^ *+' conftest.er1 >conftest.err
11353 cat conftest.err >&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } && {
11356 test -z "$ac_c_werror_flag" ||
11357 test ! -s conftest.err
11358 } && test -s conftest$ac_exeext &&
11359 $as_test_x conftest$ac_exeext; then
11360 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11370 conftest$ac_exeext conftest.$ac_ext
11371 LDFLAGS="$save_LDFLAGS"
11373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11376 archive_cmds_need_lc='no'
11377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11378 hardcode_libdir_separator=:
11380 link_all_deplibs=yes
11384 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11387 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11389 hardcode_libdir_flag_spec='-R$libdir'
11390 hardcode_direct=yes
11391 hardcode_shlibpath_var=no
11395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11396 hardcode_direct=yes
11397 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11398 hardcode_libdir_separator=:
11399 hardcode_shlibpath_var=no
11406 if test -f /usr/libexec/ld.so; then
11407 hardcode_direct=yes
11408 hardcode_shlibpath_var=no
11409 hardcode_direct_absolute=yes
11410 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11411 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11412 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11413 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11414 export_dynamic_flag_spec='${wl}-E'
11417 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11418 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11419 hardcode_libdir_flag_spec='-R$libdir'
11422 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11423 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11433 hardcode_libdir_flag_spec='-L$libdir'
11434 hardcode_minus_L=yes
11435 allow_undefined_flag=unsupported
11436 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11437 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11441 if test "$GCC" = yes; then
11442 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11443 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11445 allow_undefined_flag=' -expect_unresolved \*'
11446 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11448 archive_cmds_need_lc='no'
11449 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11450 hardcode_libdir_separator=:
11453 osf4* | osf5*) # as osf3* with the addition of -msym flag
11454 if test "$GCC" = yes; then
11455 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11456 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11457 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11459 allow_undefined_flag=' -expect_unresolved \*'
11460 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11461 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~
11462 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11464 # Both c and cxx compiler support -rpath directly
11465 hardcode_libdir_flag_spec='-rpath $libdir'
11467 archive_cmds_need_lc='no'
11468 hardcode_libdir_separator=:
11472 no_undefined_flag=' -z defs'
11473 if test "$GCC" = yes; then
11475 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11476 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11477 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11479 case `$CC -V 2>&1` in
11482 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11483 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11484 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11488 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11489 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11490 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11494 hardcode_libdir_flag_spec='-R$libdir'
11495 hardcode_shlibpath_var=no
11497 solaris2.[0-5] | solaris2.[0-5].*) ;;
11499 # The compiler driver will combine and reorder linker options,
11500 # but understands `-z linker_flag'. GCC discards it without `$wl',
11501 # but is careful enough not to reorder.
11502 # Supported since Solaris 2.6 (maybe 2.5.1?)
11503 if test "$GCC" = yes; then
11504 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11506 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11510 link_all_deplibs=yes
11514 if test "x$host_vendor" = xsequent; then
11515 # Use $CC to link under sequent, because it throws in some extra .o
11516 # files that make .init and .fini sections work.
11517 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11519 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11521 hardcode_libdir_flag_spec='-L$libdir'
11522 hardcode_direct=yes
11523 hardcode_minus_L=yes
11524 hardcode_shlibpath_var=no
11528 case $host_vendor in
11530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11531 hardcode_direct=yes # is this really true???
11534 ## LD is ld it makes a PLAMLIB
11535 ## CC just makes a GrossModule.
11536 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11537 reload_cmds='$CC -r -o $output$reload_objs'
11541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11542 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11545 runpath_var='LD_RUN_PATH'
11546 hardcode_shlibpath_var=no
11550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11551 hardcode_shlibpath_var=no
11552 export_dynamic_flag_spec='-Bexport'
11556 if test -d /usr/nec; then
11557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11558 hardcode_shlibpath_var=no
11559 runpath_var=LD_RUN_PATH
11560 hardcode_runpath_var=yes
11565 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11566 no_undefined_flag='${wl}-z,text'
11567 archive_cmds_need_lc=no
11568 hardcode_shlibpath_var=no
11569 runpath_var='LD_RUN_PATH'
11571 if test "$GCC" = yes; then
11572 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11573 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11575 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11576 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11580 sysv5* | sco3.2v5* | sco5v6*)
11581 # Note: We can NOT use -z defs as we might desire, because we do not
11582 # link with -lc, and that would cause any symbols used from libc to
11583 # always be unresolved, which means just about no library would
11584 # ever link correctly. If we're not using GNU ld we use -z text
11585 # though, which does catch some bad symbols but isn't as heavy-handed
11587 no_undefined_flag='${wl}-z,text'
11588 allow_undefined_flag='${wl}-z,nodefs'
11589 archive_cmds_need_lc=no
11590 hardcode_shlibpath_var=no
11591 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11592 hardcode_libdir_separator=':'
11593 link_all_deplibs=yes
11594 export_dynamic_flag_spec='${wl}-Bexport'
11595 runpath_var='LD_RUN_PATH'
11597 if test "$GCC" = yes; then
11598 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11599 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11601 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11602 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11608 hardcode_libdir_flag_spec='-L$libdir'
11609 hardcode_shlibpath_var=no
11617 if test x$host_vendor = xsni; then
11619 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11620 export_dynamic_flag_spec='${wl}-Blargedynsym'
11626 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11627 echo "${ECHO_T}$ld_shlibs" >&6; }
11628 test "$ld_shlibs" = no && can_build_shared=no
11630 with_gnu_ld=$with_gnu_ld
11647 # Do we need to explicitly link libc?
11649 case "x$archive_cmds_need_lc" in
11651 # Assume -lc should be added
11652 archive_cmds_need_lc=yes
11654 if test "$enable_shared" = yes && test "$GCC" = yes; then
11655 case $archive_cmds in
11657 # FIXME: we may have to deal with multi-command sequences.
11660 # Test whether the compiler implicitly links with -lc since on some
11661 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11662 # to ld, don't add -lc before -lgcc.
11663 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11664 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11669 (eval $ac_compile) 2>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } 2>conftest.err; then
11675 libobjs=conftest.$ac_objext
11677 wl=$lt_prog_compiler_wl
11678 pic_flag=$lt_prog_compiler_pic
11684 lt_save_allow_undefined_flag=$allow_undefined_flag
11685 allow_undefined_flag=
11686 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11687 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }
11692 archive_cmds_need_lc=no
11694 archive_cmds_need_lc=yes
11696 allow_undefined_flag=$lt_save_allow_undefined_flag
11698 cat conftest.err 1>&5
11701 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11702 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11865 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11866 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11868 if test "$GCC" = yes; then
11870 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11871 *) lt_awk_arg="/^libraries:/" ;;
11873 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11874 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11875 # if the path contains ";" then we assume it to be the separator
11876 # otherwise default to the standard path separator (i.e. ":") - it is
11877 # assumed that no part of a normal pathname contains ";" but that should
11878 # okay in the real world where ";" in dirpaths is itself problematic.
11879 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11881 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11883 # Ok, now we have the path, separated by spaces, we can step through it
11884 # and add multilib dir if necessary.
11885 lt_tmp_lt_search_path_spec=
11886 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11887 for lt_sys_path in $lt_search_path_spec; do
11888 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11889 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11891 test -d "$lt_sys_path" && \
11892 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11895 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11896 BEGIN {RS=" "; FS="/|\n";} {
11899 for (lt_i = NF; lt_i > 0; lt_i--) {
11900 if ($lt_i != "" && $lt_i != ".") {
11901 if ($lt_i == "..") {
11904 if (lt_count == 0) {
11905 lt_foo="/" $lt_i lt_foo;
11912 if (lt_foo != "") { lt_freq[lt_foo]++; }
11913 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11915 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11917 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11919 library_names_spec=
11920 libname_spec='lib$name'
11924 postuninstall_cmds=
11928 shlibpath_overrides_runpath=unknown
11930 dynamic_linker="$host_os ld.so"
11931 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11932 need_lib_prefix=unknown
11933 hardcode_into_libs=no
11935 # when you set need_version to no, make sure it does not cause -set_version
11936 # flags to be left without arguments
11937 need_version=unknown
11942 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11943 shlibpath_var=LIBPATH
11945 # AIX 3 has no versioning support, so we append a major version to the name.
11946 soname_spec='${libname}${release}${shared_ext}$major'
11953 hardcode_into_libs=yes
11954 if test "$host_cpu" = ia64; then
11955 # AIX 5 supports IA64
11956 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11957 shlibpath_var=LD_LIBRARY_PATH
11959 # With GCC up to 2.95.x, collect2 would create an import file
11960 # for dependence libraries. The import file would start with
11961 # the line `#! .'. This would cause the generated library to
11962 # depend on `.', always an invalid library. This was fixed in
11963 # development snapshots of GCC prior to 3.0.
11965 aix4 | aix4.[01] | aix4.[01].*)
11966 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11968 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11971 can_build_shared=no
11975 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11976 # soname into executable. Probably we can add versioning support to
11977 # collect2, so additional links can be useful in future.
11978 if test "$aix_use_runtimelinking" = yes; then
11979 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11980 # instead of lib<name>.a to let people know that these are not
11981 # typical AIX shared libraries.
11982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11984 # We preserve .a as extension for shared libraries through AIX4.2
11985 # and later when we are not doing run time linking.
11986 library_names_spec='${libname}${release}.a $libname.a'
11987 soname_spec='${libname}${release}${shared_ext}$major'
11989 shlibpath_var=LIBPATH
11996 # Since July 2007 AmigaOS4 officially supports .so libraries.
11997 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12001 library_names_spec='$libname.ixlibrary $libname.a'
12002 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12003 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12009 library_names_spec='${libname}${shared_ext}'
12010 dynamic_linker="$host_os ld.so"
12011 shlibpath_var=LIBRARY_PATH
12017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12018 soname_spec='${libname}${release}${shared_ext}$major'
12019 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12020 shlibpath_var=LD_LIBRARY_PATH
12021 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12022 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12023 # the default ld.so.conf also contains /usr/contrib/lib and
12024 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12025 # libtool to hard-code these into programs
12028 cygwin* | mingw* | pw32*)
12029 version_type=windows
12034 case $GCC,$host_os in
12035 yes,cygwin* | yes,mingw* | yes,pw32*)
12036 library_names_spec='$libname.dll.a'
12037 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12038 postinstall_cmds='base_file=`basename \${file}`~
12039 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12040 dldir=$destdir/`dirname \$dlpath`~
12041 test -d \$dldir || mkdir -p \$dldir~
12042 $install_prog $dir/$dlname \$dldir/$dlname~
12043 chmod a+x \$dldir/$dlname~
12044 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12045 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12047 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12048 dlpath=$dir/\$dldll~
12050 shlibpath_overrides_runpath=yes
12054 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12055 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12056 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12059 # MinGW DLLs use traditional 'lib' prefix
12060 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12061 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12062 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12063 # It is most probably a Windows format PATH printed by
12064 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12065 # path with ; separators, and with drive letters. We can handle the
12066 # drive letters (cygwin fileutils understands them), so leave them,
12067 # especially as we might pass files found there to a mingw objdump,
12068 # which wouldn't understand a cygwinified path. Ahh.
12069 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12071 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12075 # pw32 DLLs use 'pw' prefix rather than 'lib'
12076 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12082 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12085 dynamic_linker='Win32 ld.exe'
12086 # FIXME: first we should search . and the directory the executable is in
12090 darwin* | rhapsody*)
12091 dynamic_linker="$host_os dyld"
12092 version_type=darwin
12095 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12096 soname_spec='${libname}${release}${major}$shared_ext'
12097 shlibpath_overrides_runpath=yes
12098 shlibpath_var=DYLD_LIBRARY_PATH
12099 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12101 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12102 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12110 soname_spec='${libname}${release}${shared_ext}$major'
12111 shlibpath_var=LD_LIBRARY_PATH
12118 freebsd* | dragonfly*)
12119 # DragonFly does not have aout. When/if they implement a new
12120 # versioning mechanism, adjust this.
12121 if test -x /usr/bin/objformat; then
12122 objformat=`/usr/bin/objformat`
12125 freebsd[123]*) objformat=aout ;;
12126 *) objformat=elf ;;
12129 version_type=freebsd-$objformat
12130 case $version_type in
12132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12137 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12141 shlibpath_var=LD_LIBRARY_PATH
12144 shlibpath_overrides_runpath=yes
12146 freebsd3.[01]* | freebsdelf3.[01]*)
12147 shlibpath_overrides_runpath=yes
12148 hardcode_into_libs=yes
12150 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12151 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12152 shlibpath_overrides_runpath=no
12153 hardcode_into_libs=yes
12155 *) # from 4.6 on, and DragonFly
12156 shlibpath_overrides_runpath=yes
12157 hardcode_into_libs=yes
12166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12167 soname_spec='${libname}${release}${shared_ext}$major'
12168 shlibpath_var=LD_LIBRARY_PATH
12169 hardcode_into_libs=yes
12172 hpux9* | hpux10* | hpux11*)
12173 # Give a soname corresponding to the major version so that dld.sl refuses to
12174 # link against other versions.
12181 hardcode_into_libs=yes
12182 dynamic_linker="$host_os dld.so"
12183 shlibpath_var=LD_LIBRARY_PATH
12184 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12186 soname_spec='${libname}${release}${shared_ext}$major'
12187 if test "X$HPUX_IA64_MODE" = X32; then
12188 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12190 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12192 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12196 hardcode_into_libs=yes
12197 dynamic_linker="$host_os dld.sl"
12198 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12199 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12201 soname_spec='${libname}${release}${shared_ext}$major'
12202 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12203 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12207 dynamic_linker="$host_os dld.sl"
12208 shlibpath_var=SHLIB_PATH
12209 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12211 soname_spec='${libname}${release}${shared_ext}$major'
12214 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12215 postinstall_cmds='chmod 555 $lib'
12222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12223 soname_spec='${libname}${release}${shared_ext}$major'
12224 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12225 shlibpath_var=LD_LIBRARY_PATH
12226 shlibpath_overrides_runpath=no
12227 hardcode_into_libs=yes
12230 irix5* | irix6* | nonstopux*)
12232 nonstopux*) version_type=nonstopux ;;
12234 if test "$lt_cv_prog_gnu_ld" = yes; then
12242 soname_spec='${libname}${release}${shared_ext}$major'
12243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12245 irix5* | nonstopux*)
12246 libsuff= shlibsuff=
12249 case $LD in # libtool.m4 will add one of these switches to LD
12250 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12251 libsuff= shlibsuff= libmagic=32-bit;;
12252 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12253 libsuff=32 shlibsuff=N32 libmagic=N32;;
12254 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12255 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12256 *) libsuff= shlibsuff= libmagic=never-match;;
12260 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12261 shlibpath_overrides_runpath=no
12262 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12263 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12264 hardcode_into_libs=yes
12267 # No shared lib support for Linux oldld, aout, or coff.
12268 linux*oldld* | linux*aout* | linux*coff*)
12272 # This must be Linux ELF.
12273 linux* | k*bsd*-gnu)
12277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12278 soname_spec='${libname}${release}${shared_ext}$major'
12279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12280 shlibpath_var=LD_LIBRARY_PATH
12281 shlibpath_overrides_runpath=no
12282 # Some binutils ld are patched to set DT_RUNPATH
12283 save_LDFLAGS=$LDFLAGS
12284 save_libdir=$libdir
12285 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12286 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12287 cat >conftest.$ac_ext <<_ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12302 rm -f conftest.$ac_objext conftest$ac_exeext
12303 if { (ac_try="$ac_link"
12304 case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_link") 2>conftest.er1
12311 grep -v '^ *+' conftest.er1 >conftest.err
12313 cat conftest.err >&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } && {
12316 test -z "$ac_c_werror_flag" ||
12317 test ! -s conftest.err
12318 } && test -s conftest$ac_exeext &&
12319 $as_test_x conftest$ac_exeext; then
12320 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
12321 shlibpath_overrides_runpath=yes
12325 echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12332 conftest$ac_exeext conftest.$ac_ext
12333 LDFLAGS=$save_LDFLAGS
12334 libdir=$save_libdir
12336 # This implies no fast_install, which is unacceptable.
12337 # Some rework will be needed to allow for fast_install
12338 # before this can be enabled.
12339 hardcode_into_libs=yes
12341 # Append ld.so.conf contents to the search path
12342 if test -f /etc/ld.so.conf; then
12343 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;/^$/d' | tr '\n' ' '`
12344 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12347 # We used to test for /lib/ld.so.1 and disable shared libraries on
12348 # powerpc, because MkLinux only supported shared libraries with the
12349 # GNU dynamic linker. Since this was broken with cross compilers,
12350 # most powerpc-linux boxes support dynamic linking these days and
12351 # people can always --disable-shared, the test was removed, and we
12352 # assume the GNU/Linux dynamic linker is in use.
12353 dynamic_linker='GNU/Linux ld.so'
12360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12363 dynamic_linker='NetBSD (a.out) ld.so'
12365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12366 soname_spec='${libname}${release}${shared_ext}$major'
12367 dynamic_linker='NetBSD ld.elf_so'
12369 shlibpath_var=LD_LIBRARY_PATH
12370 shlibpath_overrides_runpath=yes
12371 hardcode_into_libs=yes
12376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12377 shlibpath_var=LD_LIBRARY_PATH
12378 shlibpath_overrides_runpath=yes
12385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12386 soname_spec='${libname}${release}${shared_ext}$major'
12387 shlibpath_var=LD_LIBRARY_PATH
12388 shlibpath_overrides_runpath=no
12389 hardcode_into_libs=yes
12390 dynamic_linker='ldqnx.so'
12395 sys_lib_dlsearch_path_spec="/usr/lib"
12397 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12399 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12400 *) need_version=no ;;
12402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12404 shlibpath_var=LD_LIBRARY_PATH
12405 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12407 openbsd2.[89] | openbsd2.[89].*)
12408 shlibpath_overrides_runpath=no
12411 shlibpath_overrides_runpath=yes
12415 shlibpath_overrides_runpath=yes
12420 libname_spec='$name'
12423 library_names_spec='$libname${shared_ext} $libname.a'
12424 dynamic_linker='OS/2 ld.exe'
12425 shlibpath_var=LIBPATH
12428 osf3* | osf4* | osf5*)
12432 soname_spec='${libname}${release}${shared_ext}$major'
12433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12434 shlibpath_var=LD_LIBRARY_PATH
12435 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12436 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12448 soname_spec='${libname}${release}${shared_ext}$major'
12449 shlibpath_var=LD_LIBRARY_PATH
12450 shlibpath_overrides_runpath=yes
12451 hardcode_into_libs=yes
12452 # ldd complains unless libraries are executable
12453 postinstall_cmds='chmod +x $lib'
12458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12459 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12460 shlibpath_var=LD_LIBRARY_PATH
12461 shlibpath_overrides_runpath=yes
12462 if test "$with_gnu_ld" = yes; then
12470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12471 soname_spec='${libname}${release}${shared_ext}$major'
12472 shlibpath_var=LD_LIBRARY_PATH
12473 case $host_vendor in
12475 shlibpath_overrides_runpath=no
12477 runpath_var=LD_RUN_PATH
12485 shlibpath_overrides_runpath=no
12486 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12492 if test -d /usr/nec ;then
12494 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12495 soname_spec='$libname${shared_ext}.$major'
12496 shlibpath_var=LD_LIBRARY_PATH
12500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12501 version_type=freebsd-elf
12504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12505 soname_spec='${libname}${release}${shared_ext}$major'
12506 shlibpath_var=LD_LIBRARY_PATH
12507 shlibpath_overrides_runpath=yes
12508 hardcode_into_libs=yes
12509 if test "$with_gnu_ld" = yes; then
12510 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12512 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12515 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12519 sys_lib_dlsearch_path_spec='/usr/lib'
12523 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12527 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12528 shlibpath_var=LD_LIBRARY_PATH
12529 shlibpath_overrides_runpath=no
12530 hardcode_into_libs=yes
12535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12536 soname_spec='${libname}${release}${shared_ext}$major'
12537 shlibpath_var=LD_LIBRARY_PATH
12544 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12545 echo "${ECHO_T}$dynamic_linker" >&6; }
12546 test "$dynamic_linker" = no && can_build_shared=no
12548 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12549 if test "$GCC" = yes; then
12550 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12553 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12554 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12556 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12557 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12646 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12647 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12649 if test -n "$hardcode_libdir_flag_spec" ||
12650 test -n "$runpath_var" ||
12651 test "X$hardcode_automatic" = "Xyes" ; then
12653 # We can hardcode non-existent directories.
12654 if test "$hardcode_direct" != no &&
12655 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12656 # have to relink, otherwise we might link with an installed library
12657 # when we should be linking with a yet-to-be-installed one
12658 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12659 test "$hardcode_minus_L" != no; then
12660 # Linking always hardcodes the temporary library directory.
12661 hardcode_action=relink
12663 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12664 hardcode_action=immediate
12667 # We cannot hardcode anything, or else we can only hardcode existing
12669 hardcode_action=unsupported
12671 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12672 echo "${ECHO_T}$hardcode_action" >&6; }
12674 if test "$hardcode_action" = relink ||
12675 test "$inherit_rpath" = yes; then
12676 # Fast installation is not supported
12677 enable_fast_install=no
12678 elif test "$shlibpath_overrides_runpath" = yes ||
12679 test "$enable_shared" = no; then
12680 # Fast installation is not necessary
12681 enable_fast_install=needless
12689 if test "x$enable_dlopen" != xyes; then
12690 enable_dlopen=unknown
12691 enable_dlopen_self=unknown
12692 enable_dlopen_self_static=unknown
12699 lt_cv_dlopen="load_add_on"
12701 lt_cv_dlopen_self=yes
12705 lt_cv_dlopen="LoadLibrary"
12710 lt_cv_dlopen="dlopen"
12715 # if libdl is installed we need to link against it
12716 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12717 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12718 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12719 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 ac_check_lib_save_LIBS=$LIBS
12723 cat >conftest.$ac_ext <<_ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12730 /* Override any GCC internal prototype to avoid an error.
12731 Use char because int might match the return type of a GCC
12732 builtin and then its argument prototype would still apply. */
12745 rm -f conftest.$ac_objext conftest$ac_exeext
12746 if { (ac_try="$ac_link"
12747 case "(($ac_try" in
12748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749 *) ac_try_echo=$ac_try;;
12751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12752 (eval "$ac_link") 2>conftest.er1
12754 grep -v '^ *+' conftest.er1 >conftest.err
12756 cat conftest.err >&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } && {
12759 test -z "$ac_c_werror_flag" ||
12760 test ! -s conftest.err
12761 } && test -s conftest$ac_exeext &&
12762 $as_test_x conftest$ac_exeext; then
12763 ac_cv_lib_dl_dlopen=yes
12765 echo "$as_me: failed program was:" >&5
12766 sed 's/^/| /' conftest.$ac_ext >&5
12768 ac_cv_lib_dl_dlopen=no
12771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12772 conftest$ac_exeext conftest.$ac_ext
12773 LIBS=$ac_check_lib_save_LIBS
12775 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12776 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12777 if test $ac_cv_lib_dl_dlopen = yes; then
12778 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12781 lt_cv_dlopen="dyld"
12783 lt_cv_dlopen_self=yes
12790 { echo "$as_me:$LINENO: checking for shl_load" >&5
12791 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12792 if test "${ac_cv_func_shl_load+set}" = set; then
12793 echo $ECHO_N "(cached) $ECHO_C" >&6
12795 cat >conftest.$ac_ext <<_ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12801 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12803 #define shl_load innocuous_shl_load
12805 /* System header to define __stub macros and hopefully few prototypes,
12806 which can conflict with char shl_load (); below.
12807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12808 <limits.h> exists even on freestanding compilers. */
12811 # include <limits.h>
12813 # include <assert.h>
12818 /* Override any GCC internal prototype to avoid an error.
12819 Use char because int might match the return type of a GCC
12820 builtin and then its argument prototype would still apply. */
12825 /* The GNU C library defines this for functions which it implements
12826 to always fail with ENOSYS. Some functions are actually named
12827 something starting with __ and the normal name is an alias. */
12828 #if defined __stub_shl_load || defined __stub___shl_load
12835 return shl_load ();
12840 rm -f conftest.$ac_objext conftest$ac_exeext
12841 if { (ac_try="$ac_link"
12842 case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_link") 2>conftest.er1
12849 grep -v '^ *+' conftest.er1 >conftest.err
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } && {
12854 test -z "$ac_c_werror_flag" ||
12855 test ! -s conftest.err
12856 } && test -s conftest$ac_exeext &&
12857 $as_test_x conftest$ac_exeext; then
12858 ac_cv_func_shl_load=yes
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12863 ac_cv_func_shl_load=no
12866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12867 conftest$ac_exeext conftest.$ac_ext
12869 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12870 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12871 if test $ac_cv_func_shl_load = yes; then
12872 lt_cv_dlopen="shl_load"
12874 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12875 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12876 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12877 echo $ECHO_N "(cached) $ECHO_C" >&6
12879 ac_check_lib_save_LIBS=$LIBS
12881 cat >conftest.$ac_ext <<_ACEOF
12884 cat confdefs.h >>conftest.$ac_ext
12885 cat >>conftest.$ac_ext <<_ACEOF
12886 /* end confdefs.h. */
12888 /* Override any GCC internal prototype to avoid an error.
12889 Use char because int might match the return type of a GCC
12890 builtin and then its argument prototype would still apply. */
12898 return shl_load ();
12903 rm -f conftest.$ac_objext conftest$ac_exeext
12904 if { (ac_try="$ac_link"
12905 case "(($ac_try" in
12906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907 *) ac_try_echo=$ac_try;;
12909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910 (eval "$ac_link") 2>conftest.er1
12912 grep -v '^ *+' conftest.er1 >conftest.err
12914 cat conftest.err >&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); } && {
12917 test -z "$ac_c_werror_flag" ||
12918 test ! -s conftest.err
12919 } && test -s conftest$ac_exeext &&
12920 $as_test_x conftest$ac_exeext; then
12921 ac_cv_lib_dld_shl_load=yes
12923 echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12926 ac_cv_lib_dld_shl_load=no
12929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12930 conftest$ac_exeext conftest.$ac_ext
12931 LIBS=$ac_check_lib_save_LIBS
12933 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12934 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12935 if test $ac_cv_lib_dld_shl_load = yes; then
12936 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12938 { echo "$as_me:$LINENO: checking for dlopen" >&5
12939 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12940 if test "${ac_cv_func_dlopen+set}" = set; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12943 cat >conftest.$ac_ext <<_ACEOF
12946 cat confdefs.h >>conftest.$ac_ext
12947 cat >>conftest.$ac_ext <<_ACEOF
12948 /* end confdefs.h. */
12949 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12951 #define dlopen innocuous_dlopen
12953 /* System header to define __stub macros and hopefully few prototypes,
12954 which can conflict with char dlopen (); below.
12955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12956 <limits.h> exists even on freestanding compilers. */
12959 # include <limits.h>
12961 # include <assert.h>
12966 /* Override any GCC internal prototype to avoid an error.
12967 Use char because int might match the return type of a GCC
12968 builtin and then its argument prototype would still apply. */
12973 /* The GNU C library defines this for functions which it implements
12974 to always fail with ENOSYS. Some functions are actually named
12975 something starting with __ and the normal name is an alias. */
12976 #if defined __stub_dlopen || defined __stub___dlopen
12988 rm -f conftest.$ac_objext conftest$ac_exeext
12989 if { (ac_try="$ac_link"
12990 case "(($ac_try" in
12991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992 *) ac_try_echo=$ac_try;;
12994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995 (eval "$ac_link") 2>conftest.er1
12997 grep -v '^ *+' conftest.er1 >conftest.err
12999 cat conftest.err >&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } && {
13002 test -z "$ac_c_werror_flag" ||
13003 test ! -s conftest.err
13004 } && test -s conftest$ac_exeext &&
13005 $as_test_x conftest$ac_exeext; then
13006 ac_cv_func_dlopen=yes
13008 echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13011 ac_cv_func_dlopen=no
13014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13015 conftest$ac_exeext conftest.$ac_ext
13017 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13018 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13019 if test $ac_cv_func_dlopen = yes; then
13020 lt_cv_dlopen="dlopen"
13022 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13023 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13024 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
13027 ac_check_lib_save_LIBS=$LIBS
13029 cat >conftest.$ac_ext <<_ACEOF
13032 cat confdefs.h >>conftest.$ac_ext
13033 cat >>conftest.$ac_ext <<_ACEOF
13034 /* end confdefs.h. */
13036 /* Override any GCC internal prototype to avoid an error.
13037 Use char because int might match the return type of a GCC
13038 builtin and then its argument prototype would still apply. */
13051 rm -f conftest.$ac_objext conftest$ac_exeext
13052 if { (ac_try="$ac_link"
13053 case "(($ac_try" in
13054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055 *) ac_try_echo=$ac_try;;
13057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13058 (eval "$ac_link") 2>conftest.er1
13060 grep -v '^ *+' conftest.er1 >conftest.err
13062 cat conftest.err >&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); } && {
13065 test -z "$ac_c_werror_flag" ||
13066 test ! -s conftest.err
13067 } && test -s conftest$ac_exeext &&
13068 $as_test_x conftest$ac_exeext; then
13069 ac_cv_lib_dl_dlopen=yes
13071 echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13074 ac_cv_lib_dl_dlopen=no
13077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13078 conftest$ac_exeext conftest.$ac_ext
13079 LIBS=$ac_check_lib_save_LIBS
13081 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13082 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13083 if test $ac_cv_lib_dl_dlopen = yes; then
13084 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13086 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13087 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13088 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13091 ac_check_lib_save_LIBS=$LIBS
13092 LIBS="-lsvld $LIBS"
13093 cat >conftest.$ac_ext <<_ACEOF
13096 cat confdefs.h >>conftest.$ac_ext
13097 cat >>conftest.$ac_ext <<_ACEOF
13098 /* end confdefs.h. */
13100 /* Override any GCC internal prototype to avoid an error.
13101 Use char because int might match the return type of a GCC
13102 builtin and then its argument prototype would still apply. */
13115 rm -f conftest.$ac_objext conftest$ac_exeext
13116 if { (ac_try="$ac_link"
13117 case "(($ac_try" in
13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122 (eval "$ac_link") 2>conftest.er1
13124 grep -v '^ *+' conftest.er1 >conftest.err
13126 cat conftest.err >&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); } && {
13129 test -z "$ac_c_werror_flag" ||
13130 test ! -s conftest.err
13131 } && test -s conftest$ac_exeext &&
13132 $as_test_x conftest$ac_exeext; then
13133 ac_cv_lib_svld_dlopen=yes
13135 echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13138 ac_cv_lib_svld_dlopen=no
13141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13142 conftest$ac_exeext conftest.$ac_ext
13143 LIBS=$ac_check_lib_save_LIBS
13145 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13146 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13147 if test $ac_cv_lib_svld_dlopen = yes; then
13148 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13150 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13151 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13152 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13155 ac_check_lib_save_LIBS=$LIBS
13157 cat >conftest.$ac_ext <<_ACEOF
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
13162 /* end confdefs.h. */
13164 /* Override any GCC internal prototype to avoid an error.
13165 Use char because int might match the return type of a GCC
13166 builtin and then its argument prototype would still apply. */
13174 return dld_link ();
13179 rm -f conftest.$ac_objext conftest$ac_exeext
13180 if { (ac_try="$ac_link"
13181 case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186 (eval "$ac_link") 2>conftest.er1
13188 grep -v '^ *+' conftest.er1 >conftest.err
13190 cat conftest.err >&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } && {
13193 test -z "$ac_c_werror_flag" ||
13194 test ! -s conftest.err
13195 } && test -s conftest$ac_exeext &&
13196 $as_test_x conftest$ac_exeext; then
13197 ac_cv_lib_dld_dld_link=yes
13199 echo "$as_me: failed program was:" >&5
13200 sed 's/^/| /' conftest.$ac_ext >&5
13202 ac_cv_lib_dld_dld_link=no
13205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13206 conftest$ac_exeext conftest.$ac_ext
13207 LIBS=$ac_check_lib_save_LIBS
13209 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13210 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13211 if test $ac_cv_lib_dld_dld_link = yes; then
13212 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13233 if test "x$lt_cv_dlopen" != xno; then
13239 case $lt_cv_dlopen in
13241 save_CPPFLAGS="$CPPFLAGS"
13242 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13244 save_LDFLAGS="$LDFLAGS"
13245 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13248 LIBS="$lt_cv_dlopen_libs $LIBS"
13250 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13251 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13252 if test "${lt_cv_dlopen_self+set}" = set; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13255 if test "$cross_compiling" = yes; then :
13256 lt_cv_dlopen_self=cross
13258 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13259 lt_status=$lt_dlunknown
13260 cat > conftest.$ac_ext <<_LT_EOF
13261 #line 13261 "configure"
13262 #include "confdefs.h"
13271 # define LT_DLGLOBAL RTLD_GLOBAL
13274 # define LT_DLGLOBAL DL_GLOBAL
13276 # define LT_DLGLOBAL 0
13280 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13281 find out it does not work in some platform. */
13282 #ifndef LT_DLLAZY_OR_NOW
13284 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13287 # define LT_DLLAZY_OR_NOW DL_LAZY
13290 # define LT_DLLAZY_OR_NOW RTLD_NOW
13293 # define LT_DLLAZY_OR_NOW DL_NOW
13295 # define LT_DLLAZY_OR_NOW 0
13303 extern "C" void exit (int);
13306 void fnord() { int i=42;}
13309 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13310 int status = $lt_dlunknown;
13314 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13315 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13316 /* dlclose (self); */
13324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13325 (eval $ac_link) 2>&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13329 (./conftest; exit; ) >&5 2>/dev/null
13331 case x$lt_status in
13332 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13333 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13334 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13337 # compilation failed
13338 lt_cv_dlopen_self=no
13345 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13346 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13348 if test "x$lt_cv_dlopen_self" = xyes; then
13349 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13350 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13351 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13352 if test "${lt_cv_dlopen_self_static+set}" = set; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13355 if test "$cross_compiling" = yes; then :
13356 lt_cv_dlopen_self_static=cross
13358 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13359 lt_status=$lt_dlunknown
13360 cat > conftest.$ac_ext <<_LT_EOF
13361 #line 13361 "configure"
13362 #include "confdefs.h"
13371 # define LT_DLGLOBAL RTLD_GLOBAL
13374 # define LT_DLGLOBAL DL_GLOBAL
13376 # define LT_DLGLOBAL 0
13380 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13381 find out it does not work in some platform. */
13382 #ifndef LT_DLLAZY_OR_NOW
13384 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13387 # define LT_DLLAZY_OR_NOW DL_LAZY
13390 # define LT_DLLAZY_OR_NOW RTLD_NOW
13393 # define LT_DLLAZY_OR_NOW DL_NOW
13395 # define LT_DLLAZY_OR_NOW 0
13403 extern "C" void exit (int);
13406 void fnord() { int i=42;}
13409 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13410 int status = $lt_dlunknown;
13414 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13415 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13416 /* dlclose (self); */
13424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13425 (eval $ac_link) 2>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13429 (./conftest; exit; ) >&5 2>/dev/null
13431 case x$lt_status in
13432 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13433 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13434 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13437 # compilation failed
13438 lt_cv_dlopen_self_static=no
13445 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13446 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13449 CPPFLAGS="$save_CPPFLAGS"
13450 LDFLAGS="$save_LDFLAGS"
13455 case $lt_cv_dlopen_self in
13456 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13457 *) enable_dlopen_self=unknown ;;
13460 case $lt_cv_dlopen_self_static in
13461 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13462 *) enable_dlopen_self_static=unknown ;;
13484 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13485 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
13486 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13487 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13488 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13489 { echo "$as_me:$LINENO: result: yes" >&5
13490 echo "${ECHO_T}yes" >&6; }
13492 # FIXME - insert some real tests, host_os isn't really good enough
13495 if test -n "$STRIP" ; then
13496 striplib="$STRIP -x"
13497 old_striplib="$STRIP -S"
13498 { echo "$as_me:$LINENO: result: yes" >&5
13499 echo "${ECHO_T}yes" >&6; }
13501 { echo "$as_me:$LINENO: result: no" >&5
13502 echo "${ECHO_T}no" >&6; }
13506 { echo "$as_me:$LINENO: result: no" >&5
13507 echo "${ECHO_T}no" >&6; }
13523 # Report which library types will actually be built
13524 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13525 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13526 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13527 echo "${ECHO_T}$can_build_shared" >&6; }
13529 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13530 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13531 test "$can_build_shared" = "no" && enable_shared=no
13533 # On AIX, shared libraries and static libraries use the same namespace, and
13534 # are all built from PIC.
13537 test "$enable_shared" = yes && enable_static=no
13538 if test -n "$RANLIB"; then
13539 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13540 postinstall_cmds='$RANLIB $lib'
13545 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13546 test "$enable_shared" = yes && enable_static=no
13550 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13551 echo "${ECHO_T}$enable_shared" >&6; }
13553 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13554 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13555 # Make sure either enable_shared or enable_static is yes.
13556 test "$enable_shared" = yes || enable_static=yes
13557 { echo "$as_me:$LINENO: result: $enable_static" >&5
13558 echo "${ECHO_T}$enable_static" >&6; }
13565 ac_cpp='$CPP $CPPFLAGS'
13566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13574 ac_cpp='$CXXCPP $CPPFLAGS'
13575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13579 archive_cmds_need_lc_CXX=no
13580 allow_undefined_flag_CXX=
13581 always_export_symbols_CXX=no
13582 archive_expsym_cmds_CXX=
13583 compiler_needs_object_CXX=no
13584 export_dynamic_flag_spec_CXX=
13585 hardcode_direct_CXX=no
13586 hardcode_direct_absolute_CXX=no
13587 hardcode_libdir_flag_spec_CXX=
13588 hardcode_libdir_flag_spec_ld_CXX=
13589 hardcode_libdir_separator_CXX=
13590 hardcode_minus_L_CXX=no
13591 hardcode_shlibpath_var_CXX=unsupported
13592 hardcode_automatic_CXX=no
13593 inherit_rpath_CXX=no
13595 module_expsym_cmds_CXX=
13596 link_all_deplibs_CXX=unknown
13597 old_archive_cmds_CXX=$old_archive_cmds
13598 no_undefined_flag_CXX=
13599 whole_archive_flag_spec_CXX=
13600 enable_shared_with_static_runtimes_CXX=no
13602 # Source file extension for C++ test sources.
13605 # Object file extension for compiled C++ test sources.
13609 # No sense in running all these tests if we already determined that
13610 # the CXX compiler isn't working. Some variables (like enable_shared)
13611 # are currently assumed to apply to all compilers on this platform,
13612 # and will be corrupted by setting them based on a non-working compiler.
13613 if test "$_lt_caught_CXX_error" != yes; then
13614 # Code to be used in simple compile tests
13615 lt_simple_compile_test_code="int some_variable = 0;"
13617 # Code to be used in simple link tests
13618 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13620 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13627 # If no C compiler was specified, use CC.
13630 # If no C compiler flags were specified, use CFLAGS.
13631 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13633 # Allow CC to be a program name with arguments.
13637 # save warnings/boilerplate of simple test code
13638 ac_outfile=conftest.$ac_objext
13639 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13640 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13641 _lt_compiler_boilerplate=`cat conftest.err`
13644 ac_outfile=conftest.$ac_objext
13645 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13646 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13647 _lt_linker_boilerplate=`cat conftest.err`
13651 # Allow CC to be a program name with arguments.
13656 lt_save_with_gnu_ld=$with_gnu_ld
13657 lt_save_path_LD=$lt_cv_path_LD
13658 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13659 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13661 $as_unset lt_cv_prog_gnu_ld
13663 if test -n "${lt_cv_path_LDCXX+set}"; then
13664 lt_cv_path_LD=$lt_cv_path_LDCXX
13666 $as_unset lt_cv_path_LD
13668 test -z "${LDCXX+set}" || LD=$LDCXX
13672 for cc_temp in $compiler""; do
13674 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13675 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13680 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13683 if test -n "$compiler"; then
13684 # We don't want -fno-exception when compiling C++ code, so set the
13685 # no_builtin_flag separately
13686 if test "$GXX" = yes; then
13687 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13689 lt_prog_compiler_no_builtin_flag_CXX=
13692 if test "$GXX" = yes; then
13693 # Set up default GNU C++ configuration
13697 # Check whether --with-gnu-ld was given.
13698 if test "${with_gnu_ld+set}" = set; then
13699 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13705 if test "$GCC" = yes; then
13706 # Check if gcc -print-prog-name=ld gives a path.
13707 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13708 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13711 # gcc leaves a trailing carriage return which upsets mingw
13712 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13714 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13717 # Accept absolute paths.
13719 re_direlt='/[^/][^/]*/\.\./'
13720 # Canonicalize the pathname of ld
13721 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13722 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13723 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13725 test -z "$LD" && LD="$ac_prog"
13728 # If it fails, then pretend we aren't using GCC.
13732 # If it is relative, then search for the first ld in PATH.
13733 with_gnu_ld=unknown
13736 elif test "$with_gnu_ld" = yes; then
13737 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13738 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13740 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13741 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13743 if test "${lt_cv_path_LD+set}" = set; then
13744 echo $ECHO_N "(cached) $ECHO_C" >&6
13746 if test -z "$LD"; then
13747 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13748 for ac_dir in $PATH; do
13750 test -z "$ac_dir" && ac_dir=.
13751 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13752 lt_cv_path_LD="$ac_dir/$ac_prog"
13753 # Check to see if the program is GNU ld. I'd rather use --version,
13754 # but apparently some variants of GNU ld only accept -v.
13755 # Break only if it was the GNU/non-GNU ld that we prefer.
13756 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13757 *GNU* | *'with BFD'*)
13758 test "$with_gnu_ld" != no && break
13761 test "$with_gnu_ld" != yes && break
13768 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13772 LD="$lt_cv_path_LD"
13773 if test -n "$LD"; then
13774 { echo "$as_me:$LINENO: result: $LD" >&5
13775 echo "${ECHO_T}$LD" >&6; }
13777 { echo "$as_me:$LINENO: result: no" >&5
13778 echo "${ECHO_T}no" >&6; }
13780 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13781 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13782 { (exit 1); exit 1; }; }
13783 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13784 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13785 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13786 echo $ECHO_N "(cached) $ECHO_C" >&6
13788 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13789 case `$LD -v 2>&1 </dev/null` in
13790 *GNU* | *'with BFD'*)
13791 lt_cv_prog_gnu_ld=yes
13794 lt_cv_prog_gnu_ld=no
13798 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13799 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13800 with_gnu_ld=$lt_cv_prog_gnu_ld
13808 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13809 # archiving commands below assume that GNU ld is being used.
13810 if test "$with_gnu_ld" = yes; then
13811 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13812 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13814 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13815 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13817 # If archive_cmds runs LD, not CC, wlarc should be empty
13818 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13819 # investigate it a little bit more. (MM)
13822 # ancient GNU ld didn't support --whole-archive et. al.
13823 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13824 $GREP 'no-whole-archive' > /dev/null; then
13825 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13827 whole_archive_flag_spec_CXX=
13833 # A generic and very simple default shared library creation
13834 # command for GNU C++ for the case where it uses the native
13835 # linker, instead of GNU ld. If possible, this setting should
13836 # overridden to take advantage of the native linker features on
13837 # the platform it is being used on.
13838 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13841 # Commands to make compiler produce verbose output that lists
13842 # what "hidden" libraries, object files and flags are used when
13843 # linking a shared library.
13844 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13852 # PORTME: fill in a description of your system's C++ link characteristics
13853 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13854 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13858 # FIXME: insert proper C++ library support
13862 if test "$host_cpu" = ia64; then
13863 # On IA64, the linker does run time linking by default, so we don't
13864 # have to do anything special.
13865 aix_use_runtimelinking=no
13866 exp_sym_flag='-Bexport'
13869 aix_use_runtimelinking=no
13871 # Test if we are trying to use run time linking or normal
13872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13873 # need to do runtime linking.
13874 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13875 for ld_flag in $LDFLAGS; do
13878 aix_use_runtimelinking=yes
13886 exp_sym_flag='-bexport'
13887 no_entry_flag='-bnoentry'
13890 # When large executables or shared objects are built, AIX ld can
13891 # have problems creating the table of contents. If linking a library
13892 # or program results in "error TOC overflow" add -mminimal-toc to
13893 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13894 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13896 archive_cmds_CXX=''
13897 hardcode_direct_CXX=yes
13898 hardcode_direct_absolute_CXX=yes
13899 hardcode_libdir_separator_CXX=':'
13900 link_all_deplibs_CXX=yes
13901 file_list_spec_CXX='${wl}-f,'
13903 if test "$GXX" = yes; then
13904 case $host_os in aix4.[012]|aix4.[012].*)
13905 # We only want to do this on AIX 4.2 and lower, the check
13906 # below for broken collect2 doesn't work under 4.3+
13907 collect2name=`${CC} -print-prog-name=collect2`
13908 if test -f "$collect2name" &&
13909 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13911 # We have reworked collect2
13914 # We have old collect2
13915 hardcode_direct_CXX=unsupported
13916 # It fails to find uninstalled libraries when the uninstalled
13917 # path is not listed in the libpath. Setting hardcode_minus_L
13918 # to unsupported forces relinking
13919 hardcode_minus_L_CXX=yes
13920 hardcode_libdir_flag_spec_CXX='-L$libdir'
13921 hardcode_libdir_separator_CXX=
13924 shared_flag='-shared'
13925 if test "$aix_use_runtimelinking" = yes; then
13926 shared_flag="$shared_flag "'${wl}-G'
13930 if test "$host_cpu" = ia64; then
13931 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13932 # chokes on -Wl,-G. The following line is correct:
13935 if test "$aix_use_runtimelinking" = yes; then
13936 shared_flag='${wl}-G'
13938 shared_flag='${wl}-bM:SRE'
13943 # It seems that -bexpall does not export symbols beginning with
13944 # underscore (_), so it is better to generate a list of symbols to
13946 always_export_symbols_CXX=yes
13947 if test "$aix_use_runtimelinking" = yes; then
13948 # Warning - without using the other runtime loading flags (-brtl),
13949 # -berok will link without error, but may produce a broken library.
13950 allow_undefined_flag_CXX='-berok'
13951 # Determine the default libpath from the value encoded in an empty
13953 cat >conftest.$ac_ext <<_ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h. */
13968 rm -f conftest.$ac_objext conftest$ac_exeext
13969 if { (ac_try="$ac_link"
13970 case "(($ac_try" in
13971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13972 *) ac_try_echo=$ac_try;;
13974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13975 (eval "$ac_link") 2>conftest.er1
13977 grep -v '^ *+' conftest.er1 >conftest.err
13979 cat conftest.err >&5
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); } && {
13982 test -z "$ac_cxx_werror_flag" ||
13983 test ! -s conftest.err
13984 } && test -s conftest$ac_exeext &&
13985 $as_test_x conftest$ac_exeext; then
13987 lt_aix_libpath_sed='
13988 /Import File Strings/,/^$/ {
13994 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13995 # Check for a 64-bit object if we didn't find anything.
13996 if test -z "$aix_libpath"; then
13997 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14000 echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14007 conftest$ac_exeext conftest.$ac_ext
14008 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14010 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14012 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14014 if test "$host_cpu" = ia64; then
14015 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14016 allow_undefined_flag_CXX="-z nodefs"
14017 archive_expsym_cmds_CXX="\$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"
14019 # Determine the default libpath from the value encoded in an
14020 # empty executable.
14021 cat >conftest.$ac_ext <<_ACEOF
14024 cat confdefs.h >>conftest.$ac_ext
14025 cat >>conftest.$ac_ext <<_ACEOF
14026 /* end confdefs.h. */
14036 rm -f conftest.$ac_objext conftest$ac_exeext
14037 if { (ac_try="$ac_link"
14038 case "(($ac_try" in
14039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040 *) ac_try_echo=$ac_try;;
14042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14043 (eval "$ac_link") 2>conftest.er1
14045 grep -v '^ *+' conftest.er1 >conftest.err
14047 cat conftest.err >&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); } && {
14050 test -z "$ac_cxx_werror_flag" ||
14051 test ! -s conftest.err
14052 } && test -s conftest$ac_exeext &&
14053 $as_test_x conftest$ac_exeext; then
14055 lt_aix_libpath_sed='
14056 /Import File Strings/,/^$/ {
14062 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14063 # Check for a 64-bit object if we didn't find anything.
14064 if test -z "$aix_libpath"; then
14065 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14068 echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14075 conftest$ac_exeext conftest.$ac_ext
14076 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14078 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14079 # Warning - without using the other run time loading flags,
14080 # -berok will link without error, but may produce a broken library.
14081 no_undefined_flag_CXX=' ${wl}-bernotok'
14082 allow_undefined_flag_CXX=' ${wl}-berok'
14083 # Exported symbols can be pulled into shared objects from archives
14084 whole_archive_flag_spec_CXX='$convenience'
14085 archive_cmds_need_lc_CXX=yes
14086 # This is similar to how AIX traditionally builds its shared
14088 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14094 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14095 allow_undefined_flag_CXX=unsupported
14096 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14097 # support --undefined. This deserves some investigation. FIXME
14098 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14105 case $cc_basename in
14107 # FIXME: insert proper C++ library support
14113 cygwin* | mingw* | pw32*)
14114 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14115 # as there is no search path for DLLs.
14116 hardcode_libdir_flag_spec_CXX='-L$libdir'
14117 allow_undefined_flag_CXX=unsupported
14118 always_export_symbols_CXX=no
14119 enable_shared_with_static_runtimes_CXX=yes
14121 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14122 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14123 # If the export-symbols file already is a .def file (1st line
14124 # is EXPORTS), use it as is; otherwise, prepend...
14125 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14126 cp $export_symbols $output_objdir/$soname.def;
14128 echo EXPORTS > $output_objdir/$soname.def;
14129 cat $export_symbols >> $output_objdir/$soname.def;
14131 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14136 darwin* | rhapsody*)
14139 archive_cmds_need_lc_CXX=no
14140 hardcode_direct_CXX=no
14141 hardcode_automatic_CXX=yes
14142 hardcode_shlibpath_var_CXX=unsupported
14143 whole_archive_flag_spec_CXX=''
14144 link_all_deplibs_CXX=yes
14145 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14146 if test "$GCC" = "yes"; then
14147 output_verbose_link_cmd=echo
14148 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14149 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14150 archive_expsym_cmds_CXX="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}"
14151 module_expsym_cmds_CXX="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}"
14152 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14153 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14154 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14164 case $cc_basename in
14166 # FIXME: insert proper C++ library support
14170 # Green Hills C++ Compiler
14171 # FIXME: insert proper C++ library support
14175 # FIXME: insert proper C++ library support
14182 # C++ shared libraries reported to be fairly broken before
14188 archive_cmds_need_lc_CXX=no
14191 freebsd* | dragonfly*)
14192 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14201 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14202 hardcode_libdir_separator_CXX=:
14203 export_dynamic_flag_spec_CXX='${wl}-E'
14204 hardcode_direct_CXX=yes
14205 hardcode_minus_L_CXX=yes # Not in the search PATH,
14206 # but as the default
14207 # location of the library.
14209 case $cc_basename in
14211 # FIXME: insert proper C++ library support
14215 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14216 # Commands to make compiler produce verbose output that lists
14217 # what "hidden" libraries, object files and flags are used when
14218 # linking a shared library.
14220 # There doesn't appear to be a way to prevent this compiler from
14221 # explicitly linking system object files so we need to strip them
14222 # from the output so that they don't get included in the library
14224 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14227 if test "$GXX" = yes; then
14228 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14230 # FIXME: insert proper C++ library support
14238 if test $with_gnu_ld = no; then
14239 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14240 hardcode_libdir_separator_CXX=:
14246 export_dynamic_flag_spec_CXX='${wl}-E'
14252 hardcode_direct_CXX=no
14253 hardcode_shlibpath_var_CXX=no
14256 hardcode_direct_CXX=yes
14257 hardcode_direct_absolute_CXX=yes
14258 hardcode_minus_L_CXX=yes # Not in the search PATH,
14259 # but as the default
14260 # location of the library.
14264 case $cc_basename in
14266 # FIXME: insert proper C++ library support
14272 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14275 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14278 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14281 # Commands to make compiler produce verbose output that lists
14282 # what "hidden" libraries, object files and flags are used when
14283 # linking a shared library.
14285 # There doesn't appear to be a way to prevent this compiler from
14286 # explicitly linking system object files so we need to strip them
14287 # from the output so that they don't get included in the library
14289 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14292 if test "$GXX" = yes; then
14293 if test $with_gnu_ld = no; then
14296 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14299 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14302 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14307 # FIXME: insert proper C++ library support
14315 hardcode_direct_CXX=no
14316 hardcode_shlibpath_var_CXX=no
14317 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14318 export_dynamic_flag_spec_CXX='${wl}-E'
14319 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14320 # Instead, shared libraries are loaded at an image base (0x10000000 by
14321 # default) and relocated if they conflict, which is a slow very memory
14322 # consuming and fragmenting process. To avoid this, we pick a random,
14323 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14324 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14325 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14326 archive_expsym_cmds_CXX='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'
14329 case $cc_basename in
14332 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14334 # Archives containing C++ object files must be created using
14335 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14336 # necessary to make sure instantiated templates are included
14338 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14341 if test "$GXX" = yes; then
14342 if test "$with_gnu_ld" = no; then
14343 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14345 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
14348 link_all_deplibs_CXX=yes
14351 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14352 hardcode_libdir_separator_CXX=:
14353 inherit_rpath_CXX=yes
14356 linux* | k*bsd*-gnu)
14357 case $cc_basename in
14359 # Kuck and Associates, Inc. (KAI) C++ Compiler
14361 # KCC will only create a shared library if the output file
14362 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14363 # to its proper name (with version) after linking.
14364 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14365 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14366 # Commands to make compiler produce verbose output that lists
14367 # what "hidden" libraries, object files and flags are used when
14368 # linking a shared library.
14370 # There doesn't appear to be a way to prevent this compiler from
14371 # explicitly linking system object files so we need to strip them
14372 # from the output so that they don't get included in the library
14374 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14376 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14377 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14379 # Archives containing C++ object files must be created using
14380 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14381 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14386 # version 8.0 and above of icpc choke on multiply defined symbols
14387 # if we add $predep_objects and $postdep_objects, however 7.1 and
14388 # earlier do not add the objects themselves.
14389 case `$CC -V 2>&1` in
14391 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14392 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14394 *) # Version 8.0 or newer
14397 ia64*) tmp_idyn=' -i_dynamic';;
14399 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14400 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14403 archive_cmds_need_lc_CXX=no
14404 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14405 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14406 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14409 # Portland Group C++ compiler
14411 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14412 prelink_cmds_CXX='tpldir=Template.dir~
14414 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14415 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14416 old_archive_cmds_CXX='tpldir=Template.dir~
14418 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14419 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14421 archive_cmds_CXX='tpldir=Template.dir~
14423 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14424 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14425 archive_expsym_cmds_CXX='tpldir=Template.dir~
14427 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14428 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14430 *) # Version 6 will use weak symbols
14431 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14432 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14436 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14437 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14438 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14442 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14443 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14445 runpath_var=LD_RUN_PATH
14446 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14447 hardcode_libdir_separator_CXX=:
14449 # Commands to make compiler produce verbose output that lists
14450 # what "hidden" libraries, object files and flags are used when
14451 # linking a shared library.
14453 # There doesn't appear to be a way to prevent this compiler from
14454 # explicitly linking system object files so we need to strip them
14455 # from the output so that they don't get included in the library
14457 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14460 # IBM XL 8.0 on PPC, with GNU ld
14461 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14462 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14463 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14464 if test "x$supports_anon_versioning" = xyes; then
14465 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14466 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14467 echo "local: *; };" >> $output_objdir/$libname.ver~
14468 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14472 case `$CC -V 2>&1 | sed 5q` in
14475 no_undefined_flag_CXX=' -zdefs'
14476 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14477 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14478 hardcode_libdir_flag_spec_CXX='-R$libdir'
14479 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14480 compiler_needs_object_CXX=yes
14482 # Not sure whether something based on
14483 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14485 output_verbose_link_cmd='echo'
14487 # Archives containing C++ object files must be created using
14488 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14489 # necessary to make sure instantiated templates are included
14491 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14499 # FIXME: insert proper C++ library support
14504 # FIXME: insert proper C++ library support
14509 case $cc_basename in
14511 # FIXME: insert proper C++ library support
14515 # FIXME: insert proper C++ library support
14522 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14523 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14525 hardcode_libdir_flag_spec_CXX='-R$libdir'
14526 hardcode_direct_CXX=yes
14527 hardcode_shlibpath_var_CXX=no
14529 # Workaround some broken pre-1.5 toolchains
14530 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14538 # C++ shared libraries are fairly broken
14543 if test -f /usr/libexec/ld.so; then
14544 hardcode_direct_CXX=yes
14545 hardcode_shlibpath_var_CXX=no
14546 hardcode_direct_absolute_CXX=yes
14547 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14548 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14549 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14550 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14551 export_dynamic_flag_spec_CXX='${wl}-E'
14552 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14554 output_verbose_link_cmd=echo
14560 osf3* | osf4* | osf5*)
14561 case $cc_basename in
14563 # Kuck and Associates, Inc. (KAI) C++ Compiler
14565 # KCC will only create a shared library if the output file
14566 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14567 # to its proper name (with version) after linking.
14568 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14570 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14571 hardcode_libdir_separator_CXX=:
14573 # Archives containing C++ object files must be created using
14574 # the KAI C++ compiler.
14576 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14577 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14581 # Rational C++ 2.4.1
14582 # FIXME: insert proper C++ library support
14588 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14589 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14590 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14593 allow_undefined_flag_CXX=' -expect_unresolved \*'
14594 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14595 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14596 echo "-hidden">> $lib.exp~
14597 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14599 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14603 hardcode_libdir_separator_CXX=:
14605 # Commands to make compiler produce verbose output that lists
14606 # what "hidden" libraries, object files and flags are used when
14607 # linking a shared library.
14609 # There doesn't appear to be a way to prevent this compiler from
14610 # explicitly linking system object files so we need to strip them
14611 # from the output so that they don't get included in the library
14613 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14616 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14617 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14620 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14623 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14627 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14628 hardcode_libdir_separator_CXX=:
14630 # Commands to make compiler produce verbose output that lists
14631 # what "hidden" libraries, object files and flags are used when
14632 # linking a shared library.
14633 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14636 # FIXME: insert proper C++ library support
14644 # FIXME: insert proper C++ library support
14649 case $cc_basename in
14652 # FIXME: insert proper C++ library support
14657 # FIXME: insert proper C++ library support
14661 # FIXME: insert proper C++ library support
14668 case $cc_basename in
14670 # Sun C++ 4.2, 5.x and Centerline C++
14671 archive_cmds_need_lc_CXX=yes
14672 no_undefined_flag_CXX=' -zdefs'
14673 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14674 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14675 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14677 hardcode_libdir_flag_spec_CXX='-R$libdir'
14678 hardcode_shlibpath_var_CXX=no
14680 solaris2.[0-5] | solaris2.[0-5].*) ;;
14682 # The compiler driver will combine and reorder linker options,
14683 # but understands `-z linker_flag'.
14684 # Supported since Solaris 2.6 (maybe 2.5.1?)
14685 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14688 link_all_deplibs_CXX=yes
14690 output_verbose_link_cmd='echo'
14692 # Archives containing C++ object files must be created using
14693 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14694 # necessary to make sure instantiated templates are included
14696 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14699 # Green Hills C++ Compiler
14700 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14702 # The C++ compiler must be used to create the archive.
14703 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14706 # GNU C++ compiler with Solaris linker
14707 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14708 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14709 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14710 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14711 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14712 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14714 # Commands to make compiler produce verbose output that lists
14715 # what "hidden" libraries, object files and flags are used when
14716 # linking a shared library.
14717 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14719 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14721 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14722 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14723 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14725 # Commands to make compiler produce verbose output that lists
14726 # what "hidden" libraries, object files and flags are used when
14727 # linking a shared library.
14728 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14731 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14733 solaris2.[0-5] | solaris2.[0-5].*) ;;
14735 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14743 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14744 no_undefined_flag_CXX='${wl}-z,text'
14745 archive_cmds_need_lc_CXX=no
14746 hardcode_shlibpath_var_CXX=no
14747 runpath_var='LD_RUN_PATH'
14749 case $cc_basename in
14751 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14752 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14755 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14756 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14761 sysv5* | sco3.2v5* | sco5v6*)
14762 # Note: We can NOT use -z defs as we might desire, because we do not
14763 # link with -lc, and that would cause any symbols used from libc to
14764 # always be unresolved, which means just about no library would
14765 # ever link correctly. If we're not using GNU ld we use -z text
14766 # though, which does catch some bad symbols but isn't as heavy-handed
14768 no_undefined_flag_CXX='${wl}-z,text'
14769 allow_undefined_flag_CXX='${wl}-z,nodefs'
14770 archive_cmds_need_lc_CXX=no
14771 hardcode_shlibpath_var_CXX=no
14772 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14773 hardcode_libdir_separator_CXX=':'
14774 link_all_deplibs_CXX=yes
14775 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14776 runpath_var='LD_RUN_PATH'
14778 case $cc_basename in
14780 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14781 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14784 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14785 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14791 case $cc_basename in
14793 # NonStop-UX NCC 3.20
14794 # FIXME: insert proper C++ library support
14798 # FIXME: insert proper C++ library support
14805 # FIXME: insert proper C++ library support
14810 # FIXME: insert proper C++ library support
14815 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14816 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14817 test "$ld_shlibs_CXX" = no && can_build_shared=no
14823 ## There is no encapsulation within the following macros, do not change
14824 ## the running order or otherwise move them around unless you know exactly
14825 ## what you are doing...
14826 # Dependencies to place before and after the object being linked:
14827 predep_objects_CXX=
14828 postdep_objects_CXX=
14831 compiler_lib_search_path_CXX=
14833 cat > conftest.$ac_ext <<_LT_EOF
14837 Foo (void) { a = 0; }
14843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14844 (eval $ac_compile) 2>&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; then
14848 # Parse the compiler output and extract the necessary
14849 # objects, libraries and library flags.
14851 # Sentinel used to keep track of whether or not we are before
14852 # the conftest object file.
14853 pre_test_object_deps_done=no
14855 for p in `eval "$output_verbose_link_cmd"`; do
14859 # Some compilers place space between "-{L,R}" and the path.
14860 # Remove the space.
14861 if test $p = "-L" ||
14862 test $p = "-R"; then
14869 if test "$pre_test_object_deps_done" = no; then
14872 # Internal compiler library paths should come after those
14873 # provided the user. The postdeps already come after the
14874 # user supplied libs so there is no need to process them.
14875 if test -z "$compiler_lib_search_path_CXX"; then
14876 compiler_lib_search_path_CXX="${prev}${p}"
14878 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14881 # The "-l" case would never come before the object being
14882 # linked, so don't bother handling this case.
14885 if test -z "$postdeps_CXX"; then
14886 postdeps_CXX="${prev}${p}"
14888 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14894 # This assumes that the test object file only shows up
14895 # once in the compiler output.
14896 if test "$p" = "conftest.$objext"; then
14897 pre_test_object_deps_done=yes
14901 if test "$pre_test_object_deps_done" = no; then
14902 if test -z "$predep_objects_CXX"; then
14903 predep_objects_CXX="$p"
14905 predep_objects_CXX="$predep_objects_CXX $p"
14908 if test -z "$postdep_objects_CXX"; then
14909 postdep_objects_CXX="$p"
14911 postdep_objects_CXX="$postdep_objects_CXX $p"
14916 *) ;; # Ignore the rest.
14924 echo "libtool.m4: error: problem compiling CXX test program"
14927 $RM -f confest.$objext
14929 # PORTME: override above test on systems where it is broken
14932 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14933 # hack all around it, let's just trust "g++" to DTRT.
14934 predep_objects_CXX=
14935 postdep_objects_CXX=
14940 case `$CC -V 2>&1 | sed 5q` in
14944 # The more standards-conforming stlport4 library is
14945 # incompatible with the Cstd library. Avoid specifying
14946 # it if it's in CXXFLAGS. Ignore libCrun as
14947 # -library=stlport4 depends on it.
14948 case " $CXX $CXXFLAGS " in
14949 *" -library=stlport4 "*)
14950 solaris_use_stlport4=yes
14954 if test "$solaris_use_stlport4" != yes; then
14955 postdeps_CXX='-library=Cstd -library=Crun'
14962 case $cc_basename in
14964 # The more standards-conforming stlport4 library is
14965 # incompatible with the Cstd library. Avoid specifying
14966 # it if it's in CXXFLAGS. Ignore libCrun as
14967 # -library=stlport4 depends on it.
14968 case " $CXX $CXXFLAGS " in
14969 *" -library=stlport4 "*)
14970 solaris_use_stlport4=yes
14974 # Adding this requires a known-good setup of shared libraries for
14975 # Sun compiler versions before 5.6, else PIC objects from an old
14976 # archive will be linked into the output, leading to subtle bugs.
14977 if test "$solaris_use_stlport4" != yes; then
14978 postdeps_CXX='-library=Cstd -library=Crun'
14986 case " $postdeps_CXX " in
14987 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14989 compiler_lib_search_dirs_CXX=
14990 if test -n "${compiler_lib_search_path_CXX}"; then
14991 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15024 lt_prog_compiler_wl_CXX=
15025 lt_prog_compiler_pic_CXX=
15026 lt_prog_compiler_static_CXX=
15028 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15029 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15031 # C++ specific cases for pic, static, wl, etc.
15032 if test "$GXX" = yes; then
15033 lt_prog_compiler_wl_CXX='-Wl,'
15034 lt_prog_compiler_static_CXX='-static'
15038 # All AIX code is PIC.
15039 if test "$host_cpu" = ia64; then
15040 # AIX 5 now supports IA64 processor
15041 lt_prog_compiler_static_CXX='-Bstatic'
15048 # see comment about AmigaOS4 .so support
15049 lt_prog_compiler_pic_CXX='-fPIC'
15052 # FIXME: we need at least 68020 code to build shared libraries, but
15053 # adding the `-m68020' flag to GCC prevents building anything better,
15055 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15060 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15061 # PIC is the default for these OSes.
15063 mingw* | cygwin* | os2* | pw32*)
15064 # This hack is so that the source file can tell whether it is being
15065 # built for inclusion in a dll (and should export symbols for example).
15066 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15067 # (--disable-auto-import) libraries
15068 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15070 darwin* | rhapsody*)
15071 # PIC is the default on this platform
15072 # Common symbols not allowed in MH_DYLIB files
15073 lt_prog_compiler_pic_CXX='-fno-common'
15076 # DJGPP does not support shared libraries at all
15077 lt_prog_compiler_pic_CXX=
15080 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15081 # Instead, we relocate shared libraries at runtime.
15084 if test -d /usr/nec; then
15085 lt_prog_compiler_pic_CXX=-Kconform_pic
15089 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15090 # not for PA HP-UX.
15095 lt_prog_compiler_pic_CXX='-fPIC'
15100 # QNX uses GNU C++, but need to define -shared option too, otherwise
15101 # it will coredump.
15102 lt_prog_compiler_pic_CXX='-fPIC -shared'
15105 lt_prog_compiler_pic_CXX='-fPIC'
15111 # All AIX code is PIC.
15112 if test "$host_cpu" = ia64; then
15113 # AIX 5 now supports IA64 processor
15114 lt_prog_compiler_static_CXX='-Bstatic'
15116 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15120 case $cc_basename in
15122 # Green Hills C++ Compiler
15123 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15128 case $cc_basename in
15130 lt_prog_compiler_pic_CXX='-KPIC'
15133 # Green Hills C++ Compiler
15134 lt_prog_compiler_pic_CXX='-pic'
15140 freebsd* | dragonfly*)
15141 # FreeBSD uses GNU C++
15143 hpux9* | hpux10* | hpux11*)
15144 case $cc_basename in
15146 lt_prog_compiler_wl_CXX='-Wl,'
15147 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15148 if test "$host_cpu" != ia64; then
15149 lt_prog_compiler_pic_CXX='+Z'
15153 lt_prog_compiler_wl_CXX='-Wl,'
15154 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15160 lt_prog_compiler_pic_CXX='+Z'
15169 # This is c89, which is MS Visual C++ (no shared libs)
15170 # Anyone wants to do a port?
15172 irix5* | irix6* | nonstopux*)
15173 case $cc_basename in
15175 lt_prog_compiler_wl_CXX='-Wl,'
15176 lt_prog_compiler_static_CXX='-non_shared'
15177 # CC pic flag -KPIC is the default.
15183 linux* | k*bsd*-gnu)
15184 case $cc_basename in
15187 lt_prog_compiler_wl_CXX='--backend -Wl,'
15188 lt_prog_compiler_pic_CXX='-fPIC'
15192 lt_prog_compiler_wl_CXX='-Wl,'
15193 lt_prog_compiler_pic_CXX='-KPIC'
15194 lt_prog_compiler_static_CXX='-static'
15197 # Portland Group C++ compiler
15198 lt_prog_compiler_wl_CXX='-Wl,'
15199 lt_prog_compiler_pic_CXX='-fpic'
15200 lt_prog_compiler_static_CXX='-Bstatic'
15204 # Make sure the PIC flag is empty. It appears that all Alpha
15205 # Linux and Compaq Tru64 Unix objects are PIC.
15206 lt_prog_compiler_pic_CXX=
15207 lt_prog_compiler_static_CXX='-non_shared'
15210 # IBM XL 8.0 on PPC
15211 lt_prog_compiler_wl_CXX='-Wl,'
15212 lt_prog_compiler_pic_CXX='-qpic'
15213 lt_prog_compiler_static_CXX='-qstaticlink'
15216 case `$CC -V 2>&1 | sed 5q` in
15219 lt_prog_compiler_pic_CXX='-KPIC'
15220 lt_prog_compiler_static_CXX='-Bstatic'
15221 lt_prog_compiler_wl_CXX='-Qoption ld '
15232 case $cc_basename in
15234 lt_prog_compiler_pic_CXX='-W c,exportall'
15243 # QNX uses GNU C++, but need to define -shared option too, otherwise
15244 # it will coredump.
15245 lt_prog_compiler_pic_CXX='-fPIC -shared'
15247 osf3* | osf4* | osf5*)
15248 case $cc_basename in
15250 lt_prog_compiler_wl_CXX='--backend -Wl,'
15253 # Rational C++ 2.4.1
15254 lt_prog_compiler_pic_CXX='-pic'
15257 # Digital/Compaq C++
15258 lt_prog_compiler_wl_CXX='-Wl,'
15259 # Make sure the PIC flag is empty. It appears that all Alpha
15260 # Linux and Compaq Tru64 Unix objects are PIC.
15261 lt_prog_compiler_pic_CXX=
15262 lt_prog_compiler_static_CXX='-non_shared'
15271 case $cc_basename in
15273 # Sun C++ 4.2, 5.x and Centerline C++
15274 lt_prog_compiler_pic_CXX='-KPIC'
15275 lt_prog_compiler_static_CXX='-Bstatic'
15276 lt_prog_compiler_wl_CXX='-Qoption ld '
15279 # Green Hills C++ Compiler
15280 lt_prog_compiler_pic_CXX='-PIC'
15287 case $cc_basename in
15290 lt_prog_compiler_pic_CXX='-pic'
15291 lt_prog_compiler_static_CXX='-Bstatic'
15295 lt_prog_compiler_pic_CXX='-pic'
15301 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15302 case $cc_basename in
15304 lt_prog_compiler_wl_CXX='-Wl,'
15305 lt_prog_compiler_pic_CXX='-KPIC'
15306 lt_prog_compiler_static_CXX='-Bstatic'
15311 case $cc_basename in
15313 # NonStop-UX NCC 3.20
15314 lt_prog_compiler_pic_CXX='-KPIC'
15323 lt_prog_compiler_can_build_shared_CXX=no
15329 # For platforms which do not support PIC, -DPIC is meaningless:
15331 lt_prog_compiler_pic_CXX=
15334 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15337 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15338 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
15343 # Check to make sure the PIC flag actually works.
15345 if test -n "$lt_prog_compiler_pic_CXX"; then
15346 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15347 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
15348 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15351 lt_cv_prog_compiler_pic_works_CXX=no
15352 ac_outfile=conftest.$ac_objext
15353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15354 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15355 # Insert the option either (1) after the last *FLAGS variable, or
15356 # (2) before a word containing "conftest.", or (3) at the end.
15357 # Note that $ac_compile itself does not contain backslashes and begins
15358 # with a dollar sign (not a hyphen), so the echo should work correctly.
15359 # The option is referenced via a variable to avoid confusing sed.
15360 lt_compile=`echo "$ac_compile" | $SED \
15361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15363 -e 's:$: $lt_compiler_flag:'`
15364 (eval echo "\"\$as_me:15364: $lt_compile\"" >&5)
15365 (eval "$lt_compile" 2>conftest.err)
15367 cat conftest.err >&5
15368 echo "$as_me:15368: \$? = $ac_status" >&5
15369 if (exit $ac_status) && test -s "$ac_outfile"; then
15370 # The compiler can only warn and ignore the option if not recognized
15371 # So say no if there are warnings other than the usual output.
15372 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15374 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15375 lt_cv_prog_compiler_pic_works_CXX=yes
15381 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15382 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15384 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15385 case $lt_prog_compiler_pic_CXX in
15387 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15390 lt_prog_compiler_pic_CXX=
15391 lt_prog_compiler_can_build_shared_CXX=no
15399 # Check to make sure the static flag actually works.
15401 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15402 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15403 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15404 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15407 lt_cv_prog_compiler_static_works_CXX=no
15408 save_LDFLAGS="$LDFLAGS"
15409 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15410 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15411 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15412 # The linker can only warn and ignore the option if not recognized
15413 # So say no if there are warnings
15414 if test -s conftest.err; then
15415 # Append any errors to the config.log.
15416 cat conftest.err 1>&5
15417 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15419 if diff conftest.exp conftest.er2 >/dev/null; then
15420 lt_cv_prog_compiler_static_works_CXX=yes
15423 lt_cv_prog_compiler_static_works_CXX=yes
15427 LDFLAGS="$save_LDFLAGS"
15430 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15431 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
15433 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15436 lt_prog_compiler_static_CXX=
15442 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15443 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15444 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15445 echo $ECHO_N "(cached) $ECHO_C" >&6
15447 lt_cv_prog_compiler_c_o_CXX=no
15448 $RM -r conftest 2>/dev/null
15452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15454 lt_compiler_flag="-o out/conftest2.$ac_objext"
15455 # Insert the option either (1) after the last *FLAGS variable, or
15456 # (2) before a word containing "conftest.", or (3) at the end.
15457 # Note that $ac_compile itself does not contain backslashes and begins
15458 # with a dollar sign (not a hyphen), so the echo should work correctly.
15459 lt_compile=`echo "$ac_compile" | $SED \
15460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15462 -e 's:$: $lt_compiler_flag:'`
15463 (eval echo "\"\$as_me:15463: $lt_compile\"" >&5)
15464 (eval "$lt_compile" 2>out/conftest.err)
15466 cat out/conftest.err >&5
15467 echo "$as_me:15467: \$? = $ac_status" >&5
15468 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15470 # The compiler can only warn and ignore the option if not recognized
15471 # So say no if there are warnings
15472 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15473 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15474 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15475 lt_cv_prog_compiler_c_o_CXX=yes
15480 # SGI C++ compiler will create directory out/ii_files/ for
15481 # template instantiation
15482 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15483 $RM out/* && rmdir out
15489 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15490 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
15494 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15495 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15496 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15497 echo $ECHO_N "(cached) $ECHO_C" >&6
15499 lt_cv_prog_compiler_c_o_CXX=no
15500 $RM -r conftest 2>/dev/null
15504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15506 lt_compiler_flag="-o out/conftest2.$ac_objext"
15507 # Insert the option either (1) after the last *FLAGS variable, or
15508 # (2) before a word containing "conftest.", or (3) at the end.
15509 # Note that $ac_compile itself does not contain backslashes and begins
15510 # with a dollar sign (not a hyphen), so the echo should work correctly.
15511 lt_compile=`echo "$ac_compile" | $SED \
15512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15514 -e 's:$: $lt_compiler_flag:'`
15515 (eval echo "\"\$as_me:15515: $lt_compile\"" >&5)
15516 (eval "$lt_compile" 2>out/conftest.err)
15518 cat out/conftest.err >&5
15519 echo "$as_me:15519: \$? = $ac_status" >&5
15520 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15522 # The compiler can only warn and ignore the option if not recognized
15523 # So say no if there are warnings
15524 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15525 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15526 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15527 lt_cv_prog_compiler_c_o_CXX=yes
15532 # SGI C++ compiler will create directory out/ii_files/ for
15533 # template instantiation
15534 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15535 $RM out/* && rmdir out
15541 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15542 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
15547 hard_links="nottested"
15548 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15549 # do not overwrite the value of need_locks provided by the user
15550 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15551 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15554 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15556 ln conftest.a conftest.b 2>&5 || hard_links=no
15557 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15558 { echo "$as_me:$LINENO: result: $hard_links" >&5
15559 echo "${ECHO_T}$hard_links" >&6; }
15560 if test "$hard_links" = no; then
15561 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15562 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15571 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15572 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15574 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15577 # If we're using GNU nm, then we don't want the "-C" option.
15578 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15579 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15580 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15582 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15586 export_symbols_cmds_CXX="$ltdll_cmds"
15589 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15592 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15595 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15597 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15598 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15599 test "$ld_shlibs_CXX" = no && can_build_shared=no
15601 with_gnu_ld_CXX=$with_gnu_ld
15609 # Do we need to explicitly link libc?
15611 case "x$archive_cmds_need_lc_CXX" in
15613 # Assume -lc should be added
15614 archive_cmds_need_lc_CXX=yes
15616 if test "$enable_shared" = yes && test "$GCC" = yes; then
15617 case $archive_cmds_CXX in
15619 # FIXME: we may have to deal with multi-command sequences.
15622 # Test whether the compiler implicitly links with -lc since on some
15623 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15624 # to ld, don't add -lc before -lgcc.
15625 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15626 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15631 (eval $ac_compile) 2>&5
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); } 2>conftest.err; then
15637 libobjs=conftest.$ac_objext
15639 wl=$lt_prog_compiler_wl_CXX
15640 pic_flag=$lt_prog_compiler_pic_CXX
15646 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15647 allow_undefined_flag_CXX=
15648 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15649 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }
15654 archive_cmds_need_lc_CXX=no
15656 archive_cmds_need_lc_CXX=yes
15658 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15660 cat conftest.err 1>&5
15663 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15664 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15734 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15735 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15737 library_names_spec=
15738 libname_spec='lib$name'
15742 postuninstall_cmds=
15746 shlibpath_overrides_runpath=unknown
15748 dynamic_linker="$host_os ld.so"
15749 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15750 need_lib_prefix=unknown
15751 hardcode_into_libs=no
15753 # when you set need_version to no, make sure it does not cause -set_version
15754 # flags to be left without arguments
15755 need_version=unknown
15760 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15761 shlibpath_var=LIBPATH
15763 # AIX 3 has no versioning support, so we append a major version to the name.
15764 soname_spec='${libname}${release}${shared_ext}$major'
15771 hardcode_into_libs=yes
15772 if test "$host_cpu" = ia64; then
15773 # AIX 5 supports IA64
15774 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15775 shlibpath_var=LD_LIBRARY_PATH
15777 # With GCC up to 2.95.x, collect2 would create an import file
15778 # for dependence libraries. The import file would start with
15779 # the line `#! .'. This would cause the generated library to
15780 # depend on `.', always an invalid library. This was fixed in
15781 # development snapshots of GCC prior to 3.0.
15783 aix4 | aix4.[01] | aix4.[01].*)
15784 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15786 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15789 can_build_shared=no
15793 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15794 # soname into executable. Probably we can add versioning support to
15795 # collect2, so additional links can be useful in future.
15796 if test "$aix_use_runtimelinking" = yes; then
15797 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15798 # instead of lib<name>.a to let people know that these are not
15799 # typical AIX shared libraries.
15800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15802 # We preserve .a as extension for shared libraries through AIX4.2
15803 # and later when we are not doing run time linking.
15804 library_names_spec='${libname}${release}.a $libname.a'
15805 soname_spec='${libname}${release}${shared_ext}$major'
15807 shlibpath_var=LIBPATH
15814 # Since July 2007 AmigaOS4 officially supports .so libraries.
15815 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15819 library_names_spec='$libname.ixlibrary $libname.a'
15820 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15821 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15827 library_names_spec='${libname}${shared_ext}'
15828 dynamic_linker="$host_os ld.so"
15829 shlibpath_var=LIBRARY_PATH
15835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15836 soname_spec='${libname}${release}${shared_ext}$major'
15837 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15838 shlibpath_var=LD_LIBRARY_PATH
15839 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15840 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15841 # the default ld.so.conf also contains /usr/contrib/lib and
15842 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15843 # libtool to hard-code these into programs
15846 cygwin* | mingw* | pw32*)
15847 version_type=windows
15852 case $GCC,$host_os in
15853 yes,cygwin* | yes,mingw* | yes,pw32*)
15854 library_names_spec='$libname.dll.a'
15855 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15856 postinstall_cmds='base_file=`basename \${file}`~
15857 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15858 dldir=$destdir/`dirname \$dlpath`~
15859 test -d \$dldir || mkdir -p \$dldir~
15860 $install_prog $dir/$dlname \$dldir/$dlname~
15861 chmod a+x \$dldir/$dlname~
15862 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15863 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15865 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15866 dlpath=$dir/\$dldll~
15868 shlibpath_overrides_runpath=yes
15872 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15873 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15874 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15877 # MinGW DLLs use traditional 'lib' prefix
15878 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15879 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15880 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15881 # It is most probably a Windows format PATH printed by
15882 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15883 # path with ; separators, and with drive letters. We can handle the
15884 # drive letters (cygwin fileutils understands them), so leave them,
15885 # especially as we might pass files found there to a mingw objdump,
15886 # which wouldn't understand a cygwinified path. Ahh.
15887 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15889 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15893 # pw32 DLLs use 'pw' prefix rather than 'lib'
15894 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15900 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15903 dynamic_linker='Win32 ld.exe'
15904 # FIXME: first we should search . and the directory the executable is in
15908 darwin* | rhapsody*)
15909 dynamic_linker="$host_os dyld"
15910 version_type=darwin
15913 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15914 soname_spec='${libname}${release}${major}$shared_ext'
15915 shlibpath_overrides_runpath=yes
15916 shlibpath_var=DYLD_LIBRARY_PATH
15917 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15919 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15927 soname_spec='${libname}${release}${shared_ext}$major'
15928 shlibpath_var=LD_LIBRARY_PATH
15935 freebsd* | dragonfly*)
15936 # DragonFly does not have aout. When/if they implement a new
15937 # versioning mechanism, adjust this.
15938 if test -x /usr/bin/objformat; then
15939 objformat=`/usr/bin/objformat`
15942 freebsd[123]*) objformat=aout ;;
15943 *) objformat=elf ;;
15946 version_type=freebsd-$objformat
15947 case $version_type in
15949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15954 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15958 shlibpath_var=LD_LIBRARY_PATH
15961 shlibpath_overrides_runpath=yes
15963 freebsd3.[01]* | freebsdelf3.[01]*)
15964 shlibpath_overrides_runpath=yes
15965 hardcode_into_libs=yes
15967 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15968 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15969 shlibpath_overrides_runpath=no
15970 hardcode_into_libs=yes
15972 *) # from 4.6 on, and DragonFly
15973 shlibpath_overrides_runpath=yes
15974 hardcode_into_libs=yes
15983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15984 soname_spec='${libname}${release}${shared_ext}$major'
15985 shlibpath_var=LD_LIBRARY_PATH
15986 hardcode_into_libs=yes
15989 hpux9* | hpux10* | hpux11*)
15990 # Give a soname corresponding to the major version so that dld.sl refuses to
15991 # link against other versions.
15998 hardcode_into_libs=yes
15999 dynamic_linker="$host_os dld.so"
16000 shlibpath_var=LD_LIBRARY_PATH
16001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16003 soname_spec='${libname}${release}${shared_ext}$major'
16004 if test "X$HPUX_IA64_MODE" = X32; then
16005 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16007 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16013 hardcode_into_libs=yes
16014 dynamic_linker="$host_os dld.sl"
16015 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16018 soname_spec='${libname}${release}${shared_ext}$major'
16019 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16020 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16024 dynamic_linker="$host_os dld.sl"
16025 shlibpath_var=SHLIB_PATH
16026 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16028 soname_spec='${libname}${release}${shared_ext}$major'
16031 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16032 postinstall_cmds='chmod 555 $lib'
16039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16040 soname_spec='${libname}${release}${shared_ext}$major'
16041 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16042 shlibpath_var=LD_LIBRARY_PATH
16043 shlibpath_overrides_runpath=no
16044 hardcode_into_libs=yes
16047 irix5* | irix6* | nonstopux*)
16049 nonstopux*) version_type=nonstopux ;;
16051 if test "$lt_cv_prog_gnu_ld" = yes; then
16059 soname_spec='${libname}${release}${shared_ext}$major'
16060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16062 irix5* | nonstopux*)
16063 libsuff= shlibsuff=
16066 case $LD in # libtool.m4 will add one of these switches to LD
16067 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16068 libsuff= shlibsuff= libmagic=32-bit;;
16069 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16070 libsuff=32 shlibsuff=N32 libmagic=N32;;
16071 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16072 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16073 *) libsuff= shlibsuff= libmagic=never-match;;
16077 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16078 shlibpath_overrides_runpath=no
16079 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16080 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16081 hardcode_into_libs=yes
16084 # No shared lib support for Linux oldld, aout, or coff.
16085 linux*oldld* | linux*aout* | linux*coff*)
16089 # This must be Linux ELF.
16090 linux* | k*bsd*-gnu)
16094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095 soname_spec='${libname}${release}${shared_ext}$major'
16096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16097 shlibpath_var=LD_LIBRARY_PATH
16098 shlibpath_overrides_runpath=no
16099 # Some binutils ld are patched to set DT_RUNPATH
16100 save_LDFLAGS=$LDFLAGS
16101 save_libdir=$libdir
16102 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16103 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16104 cat >conftest.$ac_ext <<_ACEOF
16107 cat confdefs.h >>conftest.$ac_ext
16108 cat >>conftest.$ac_ext <<_ACEOF
16109 /* end confdefs.h. */
16119 rm -f conftest.$ac_objext conftest$ac_exeext
16120 if { (ac_try="$ac_link"
16121 case "(($ac_try" in
16122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16123 *) ac_try_echo=$ac_try;;
16125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16126 (eval "$ac_link") 2>conftest.er1
16128 grep -v '^ *+' conftest.er1 >conftest.err
16130 cat conftest.err >&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); } && {
16133 test -z "$ac_cxx_werror_flag" ||
16134 test ! -s conftest.err
16135 } && test -s conftest$ac_exeext &&
16136 $as_test_x conftest$ac_exeext; then
16137 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
16138 shlibpath_overrides_runpath=yes
16142 echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16149 conftest$ac_exeext conftest.$ac_ext
16150 LDFLAGS=$save_LDFLAGS
16151 libdir=$save_libdir
16153 # This implies no fast_install, which is unacceptable.
16154 # Some rework will be needed to allow for fast_install
16155 # before this can be enabled.
16156 hardcode_into_libs=yes
16158 # Append ld.so.conf contents to the search path
16159 if test -f /etc/ld.so.conf; then
16160 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;/^$/d' | tr '\n' ' '`
16161 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16164 # We used to test for /lib/ld.so.1 and disable shared libraries on
16165 # powerpc, because MkLinux only supported shared libraries with the
16166 # GNU dynamic linker. Since this was broken with cross compilers,
16167 # most powerpc-linux boxes support dynamic linking these days and
16168 # people can always --disable-shared, the test was removed, and we
16169 # assume the GNU/Linux dynamic linker is in use.
16170 dynamic_linker='GNU/Linux ld.so'
16177 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16180 dynamic_linker='NetBSD (a.out) ld.so'
16182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16183 soname_spec='${libname}${release}${shared_ext}$major'
16184 dynamic_linker='NetBSD ld.elf_so'
16186 shlibpath_var=LD_LIBRARY_PATH
16187 shlibpath_overrides_runpath=yes
16188 hardcode_into_libs=yes
16193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16194 shlibpath_var=LD_LIBRARY_PATH
16195 shlibpath_overrides_runpath=yes
16202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16203 soname_spec='${libname}${release}${shared_ext}$major'
16204 shlibpath_var=LD_LIBRARY_PATH
16205 shlibpath_overrides_runpath=no
16206 hardcode_into_libs=yes
16207 dynamic_linker='ldqnx.so'
16212 sys_lib_dlsearch_path_spec="/usr/lib"
16214 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16216 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16217 *) need_version=no ;;
16219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16221 shlibpath_var=LD_LIBRARY_PATH
16222 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16224 openbsd2.[89] | openbsd2.[89].*)
16225 shlibpath_overrides_runpath=no
16228 shlibpath_overrides_runpath=yes
16232 shlibpath_overrides_runpath=yes
16237 libname_spec='$name'
16240 library_names_spec='$libname${shared_ext} $libname.a'
16241 dynamic_linker='OS/2 ld.exe'
16242 shlibpath_var=LIBPATH
16245 osf3* | osf4* | osf5*)
16249 soname_spec='${libname}${release}${shared_ext}$major'
16250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16251 shlibpath_var=LD_LIBRARY_PATH
16252 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16253 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16265 soname_spec='${libname}${release}${shared_ext}$major'
16266 shlibpath_var=LD_LIBRARY_PATH
16267 shlibpath_overrides_runpath=yes
16268 hardcode_into_libs=yes
16269 # ldd complains unless libraries are executable
16270 postinstall_cmds='chmod +x $lib'
16275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16276 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16277 shlibpath_var=LD_LIBRARY_PATH
16278 shlibpath_overrides_runpath=yes
16279 if test "$with_gnu_ld" = yes; then
16287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16288 soname_spec='${libname}${release}${shared_ext}$major'
16289 shlibpath_var=LD_LIBRARY_PATH
16290 case $host_vendor in
16292 shlibpath_overrides_runpath=no
16294 runpath_var=LD_RUN_PATH
16302 shlibpath_overrides_runpath=no
16303 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16309 if test -d /usr/nec ;then
16311 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16312 soname_spec='$libname${shared_ext}.$major'
16313 shlibpath_var=LD_LIBRARY_PATH
16317 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16318 version_type=freebsd-elf
16321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16322 soname_spec='${libname}${release}${shared_ext}$major'
16323 shlibpath_var=LD_LIBRARY_PATH
16324 shlibpath_overrides_runpath=yes
16325 hardcode_into_libs=yes
16326 if test "$with_gnu_ld" = yes; then
16327 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16329 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16332 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16336 sys_lib_dlsearch_path_spec='/usr/lib'
16340 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16344 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16345 shlibpath_var=LD_LIBRARY_PATH
16346 shlibpath_overrides_runpath=no
16347 hardcode_into_libs=yes
16352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16353 soname_spec='${libname}${release}${shared_ext}$major'
16354 shlibpath_var=LD_LIBRARY_PATH
16361 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16362 echo "${ECHO_T}$dynamic_linker" >&6; }
16363 test "$dynamic_linker" = no && can_build_shared=no
16365 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16366 if test "$GCC" = yes; then
16367 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16370 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16371 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16373 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16374 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16412 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16413 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16414 hardcode_action_CXX=
16415 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16416 test -n "$runpath_var_CXX" ||
16417 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16419 # We can hardcode non-existent directories.
16420 if test "$hardcode_direct_CXX" != no &&
16421 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16422 # have to relink, otherwise we might link with an installed library
16423 # when we should be linking with a yet-to-be-installed one
16424 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16425 test "$hardcode_minus_L_CXX" != no; then
16426 # Linking always hardcodes the temporary library directory.
16427 hardcode_action_CXX=relink
16429 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16430 hardcode_action_CXX=immediate
16433 # We cannot hardcode anything, or else we can only hardcode existing
16435 hardcode_action_CXX=unsupported
16437 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16438 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
16440 if test "$hardcode_action_CXX" = relink ||
16441 test "$inherit_rpath_CXX" = yes; then
16442 # Fast installation is not supported
16443 enable_fast_install=no
16444 elif test "$shlibpath_overrides_runpath" = yes ||
16445 test "$enable_shared" = no; then
16446 # Fast installation is not necessary
16447 enable_fast_install=needless
16456 fi # test -n "$compiler"
16462 with_gnu_ld=$lt_save_with_gnu_ld
16463 lt_cv_path_LDCXX=$lt_cv_path_LD
16464 lt_cv_path_LD=$lt_save_path_LD
16465 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16466 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16467 fi # test "$_lt_caught_CXX_error" != yes
16470 ac_cpp='$CPP $CPPFLAGS'
16471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16487 ac_config_commands="$ac_config_commands libtool"
16492 # Only expand once:
16508 # Check whether --with-included_ltdl was given.
16509 if test "${with_included_ltdl+set}" = set; then
16510 withval=$with_included_ltdl;
16514 if test "x$with_included_ltdl" != xyes; then
16515 # We are not being forced to use the included libltdl sources, so
16516 # decide whether there is a useful installed version we can use.
16517 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
16518 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
16519 if test "${ac_cv_header_ltdl_h+set}" = set; then
16520 echo $ECHO_N "(cached) $ECHO_C" >&6
16522 cat >conftest.$ac_ext <<_ACEOF
16525 cat confdefs.h >>conftest.$ac_ext
16526 cat >>conftest.$ac_ext <<_ACEOF
16527 /* end confdefs.h. */
16528 $ac_includes_default
16533 rm -f conftest.$ac_objext
16534 if { (ac_try="$ac_compile"
16535 case "(($ac_try" in
16536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16537 *) ac_try_echo=$ac_try;;
16539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16540 (eval "$ac_compile") 2>conftest.er1
16542 grep -v '^ *+' conftest.er1 >conftest.err
16544 cat conftest.err >&5
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); } && {
16547 test -z "$ac_c_werror_flag" ||
16548 test ! -s conftest.err
16549 } && test -s conftest.$ac_objext; then
16550 ac_cv_header_ltdl_h=yes
16552 echo "$as_me: failed program was:" >&5
16553 sed 's/^/| /' conftest.$ac_ext >&5
16555 ac_cv_header_ltdl_h=no
16558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16560 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
16561 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
16562 if test $ac_cv_header_ltdl_h = yes; then
16563 { echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
16564 echo $ECHO_N "checking whether lt_dlinterface_register is declared... $ECHO_C" >&6; }
16565 if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
16566 echo $ECHO_N "(cached) $ECHO_C" >&6
16568 cat >conftest.$ac_ext <<_ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h. */
16574 $ac_includes_default
16580 #ifndef lt_dlinterface_register
16581 (void) lt_dlinterface_register;
16588 rm -f conftest.$ac_objext
16589 if { (ac_try="$ac_compile"
16590 case "(($ac_try" in
16591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592 *) ac_try_echo=$ac_try;;
16594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16595 (eval "$ac_compile") 2>conftest.er1
16597 grep -v '^ *+' conftest.er1 >conftest.err
16599 cat conftest.err >&5
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); } && {
16602 test -z "$ac_c_werror_flag" ||
16603 test ! -s conftest.err
16604 } && test -s conftest.$ac_objext; then
16605 ac_cv_have_decl_lt_dlinterface_register=yes
16607 echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16610 ac_cv_have_decl_lt_dlinterface_register=no
16613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16615 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
16616 echo "${ECHO_T}$ac_cv_have_decl_lt_dlinterface_register" >&6; }
16617 if test $ac_cv_have_decl_lt_dlinterface_register = yes; then
16618 { echo "$as_me:$LINENO: checking for lt_dlinterface_register in -lltdl" >&5
16619 echo $ECHO_N "checking for lt_dlinterface_register in -lltdl... $ECHO_C" >&6; }
16620 if test "${ac_cv_lib_ltdl_lt_dlinterface_register+set}" = set; then
16621 echo $ECHO_N "(cached) $ECHO_C" >&6
16623 ac_check_lib_save_LIBS=$LIBS
16624 LIBS="-lltdl $LIBS"
16625 cat >conftest.$ac_ext <<_ACEOF
16628 cat confdefs.h >>conftest.$ac_ext
16629 cat >>conftest.$ac_ext <<_ACEOF
16630 /* end confdefs.h. */
16632 /* Override any GCC internal prototype to avoid an error.
16633 Use char because int might match the return type of a GCC
16634 builtin and then its argument prototype would still apply. */
16638 char lt_dlinterface_register ();
16642 return lt_dlinterface_register ();
16647 rm -f conftest.$ac_objext conftest$ac_exeext
16648 if { (ac_try="$ac_link"
16649 case "(($ac_try" in
16650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16651 *) ac_try_echo=$ac_try;;
16653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16654 (eval "$ac_link") 2>conftest.er1
16656 grep -v '^ *+' conftest.er1 >conftest.err
16658 cat conftest.err >&5
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); } && {
16661 test -z "$ac_c_werror_flag" ||
16662 test ! -s conftest.err
16663 } && test -s conftest$ac_exeext &&
16664 $as_test_x conftest$ac_exeext; then
16665 ac_cv_lib_ltdl_lt_dlinterface_register=yes
16667 echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16670 ac_cv_lib_ltdl_lt_dlinterface_register=no
16673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16674 conftest$ac_exeext conftest.$ac_ext
16675 LIBS=$ac_check_lib_save_LIBS
16677 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinterface_register" >&5
16678 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinterface_register" >&6; }
16679 if test $ac_cv_lib_ltdl_lt_dlinterface_register = yes; then
16680 with_included_ltdl=no
16682 with_included_ltdl=yes
16686 with_included_ltdl=yes
16690 with_included_ltdl=yes
16699 # Check whether --with-ltdl_include was given.
16700 if test "${with_ltdl_include+set}" = set; then
16701 withval=$with_ltdl_include;
16705 if test -n "$with_ltdl_include"; then
16706 if test -f "$with_ltdl_include/ltdl.h"; then :
16708 { { echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
16709 echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
16710 { (exit 1); exit 1; }; }
16713 with_ltdl_include=no
16717 # Check whether --with-ltdl_lib was given.
16718 if test "${with_ltdl_lib+set}" = set; then
16719 withval=$with_ltdl_lib;
16723 if test -n "$with_ltdl_lib"; then
16724 if test -f "$with_ltdl_lib/libltdl.la"; then :
16726 { { echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
16727 echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
16728 { (exit 1); exit 1; }; }
16734 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16736 case $enable_ltdl_convenience in
16737 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
16738 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
16739 { (exit 1); exit 1; }; } ;;
16740 "") enable_ltdl_convenience=yes
16741 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16743 LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
16745 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16751 # For backwards non-gettext consistent compatibility...
16752 INCLTDL="$LTDLINCL"
16757 # If the included ltdl is not to be used, then use the
16758 # preinstalled libltdl we found.
16760 cat >>confdefs.h <<\_ACEOF
16761 #define HAVE_LTDL 1
16769 { { echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
16770 echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
16771 { (exit 1); exit 1; }; }
16773 *) with_included_ltdl=no
16774 LIBLTDL="-L$with_ltdl_lib -lltdl"
16776 LTDLINCL="-I$with_ltdl_include"
16779 INCLTDL="$LTDLINCL"
16781 # Report our decision...
16782 { echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
16783 echo $ECHO_N "checking where to find libltdl headers... $ECHO_C" >&6; }
16784 { echo "$as_me:$LINENO: result: $LTDLINCL" >&5
16785 echo "${ECHO_T}$LTDLINCL" >&6; }
16786 { echo "$as_me:$LINENO: checking where to find libltdl library" >&5
16787 echo $ECHO_N "checking where to find libltdl library... $ECHO_C" >&6; }
16788 { echo "$as_me:$LINENO: result: $LIBLTDL" >&5
16789 echo "${ECHO_T}$LIBLTDL" >&6; }
16793 # lt_cv_dlopen_self gets defined by LT_SYS_DLOPEN_SELF, called by LT_INIT
16794 if test "$lt_cv_dlopen_self" = yes; then
16796 cat >>confdefs.h <<\_ACEOF
16797 #define LTDL_DLOPEN_SELF_WORKS 1
16802 # Check whether --enable-ltdl-install was given.
16803 if test "${enable_ltdl_install+set}" = set; then
16804 enableval=$enable_ltdl_install;
16808 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
16810 *) enable_ltdl_convenience=yes ;;
16813 if test x"${enable_ltdl_install-no}" != xno; then
16815 INSTALL_LTDL_FALSE='#'
16817 INSTALL_LTDL_TRUE='#'
16818 INSTALL_LTDL_FALSE=
16821 if test x"${enable_ltdl_convenience-no}" != xno; then
16822 CONVENIENCE_LTDL_TRUE=
16823 CONVENIENCE_LTDL_FALSE='#'
16825 CONVENIENCE_LTDL_TRUE='#'
16826 CONVENIENCE_LTDL_FALSE=
16831 subdirs="$subdirs libltdl"
16837 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
16838 # the user used. This is so that ltdl.h can pick up the parent projects
16839 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
16840 # definitions required by ltdl.c.
16841 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
16851 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
16853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
16859 cat >conftest.$ac_ext <<_ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16865 $ac_includes_default
16867 #include <$ac_header>
16869 rm -f conftest.$ac_objext
16870 if { (ac_try="$ac_compile"
16871 case "(($ac_try" in
16872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873 *) ac_try_echo=$ac_try;;
16875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876 (eval "$ac_compile") 2>conftest.er1
16878 grep -v '^ *+' conftest.er1 >conftest.err
16880 cat conftest.err >&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); } && {
16883 test -z "$ac_c_werror_flag" ||
16884 test ! -s conftest.err
16885 } && test -s conftest.$ac_objext; then
16886 eval "$as_ac_Header=yes"
16888 echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16891 eval "$as_ac_Header=no"
16894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16896 ac_res=`eval echo '${'$as_ac_Header'}'`
16897 { echo "$as_me:$LINENO: result: $ac_res" >&5
16898 echo "${ECHO_T}$ac_res" >&6; }
16899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16900 cat >>confdefs.h <<_ACEOF
16901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16912 for ac_func in closedir opendir readdir
16914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16915 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16918 echo $ECHO_N "(cached) $ECHO_C" >&6
16920 cat >conftest.$ac_ext <<_ACEOF
16923 cat confdefs.h >>conftest.$ac_ext
16924 cat >>conftest.$ac_ext <<_ACEOF
16925 /* end confdefs.h. */
16926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16928 #define $ac_func innocuous_$ac_func
16930 /* System header to define __stub macros and hopefully few prototypes,
16931 which can conflict with char $ac_func (); below.
16932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16933 <limits.h> exists even on freestanding compilers. */
16936 # include <limits.h>
16938 # include <assert.h>
16943 /* Override any GCC internal prototype to avoid an error.
16944 Use char because int might match the return type of a GCC
16945 builtin and then its argument prototype would still apply. */
16950 /* The GNU C library defines this for functions which it implements
16951 to always fail with ENOSYS. Some functions are actually named
16952 something starting with __ and the normal name is an alias. */
16953 #if defined __stub_$ac_func || defined __stub___$ac_func
16960 return $ac_func ();
16965 rm -f conftest.$ac_objext conftest$ac_exeext
16966 if { (ac_try="$ac_link"
16967 case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972 (eval "$ac_link") 2>conftest.er1
16974 grep -v '^ *+' conftest.er1 >conftest.err
16976 cat conftest.err >&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } && {
16979 test -z "$ac_c_werror_flag" ||
16980 test ! -s conftest.err
16981 } && test -s conftest$ac_exeext &&
16982 $as_test_x conftest$ac_exeext; then
16983 eval "$as_ac_var=yes"
16985 echo "$as_me: failed program was:" >&5
16986 sed 's/^/| /' conftest.$ac_ext >&5
16988 eval "$as_ac_var=no"
16991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16992 conftest$ac_exeext conftest.$ac_ext
16994 ac_res=`eval echo '${'$as_ac_var'}'`
16995 { echo "$as_me:$LINENO: result: $ac_res" >&5
16996 echo "${ECHO_T}$ac_res" >&6; }
16997 if test `eval echo '${'$as_ac_var'}'` = yes; then
16998 cat >>confdefs.h <<_ACEOF
16999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17009 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
17016 for ac_func in strlcat strlcpy
17018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17022 echo $ECHO_N "(cached) $ECHO_C" >&6
17024 cat >conftest.$ac_ext <<_ACEOF
17027 cat confdefs.h >>conftest.$ac_ext
17028 cat >>conftest.$ac_ext <<_ACEOF
17029 /* end confdefs.h. */
17030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17032 #define $ac_func innocuous_$ac_func
17034 /* System header to define __stub macros and hopefully few prototypes,
17035 which can conflict with char $ac_func (); below.
17036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17037 <limits.h> exists even on freestanding compilers. */
17040 # include <limits.h>
17042 # include <assert.h>
17047 /* Override any GCC internal prototype to avoid an error.
17048 Use char because int might match the return type of a GCC
17049 builtin and then its argument prototype would still apply. */
17054 /* The GNU C library defines this for functions which it implements
17055 to always fail with ENOSYS. Some functions are actually named
17056 something starting with __ and the normal name is an alias. */
17057 #if defined __stub_$ac_func || defined __stub___$ac_func
17064 return $ac_func ();
17069 rm -f conftest.$ac_objext conftest$ac_exeext
17070 if { (ac_try="$ac_link"
17071 case "(($ac_try" in
17072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073 *) ac_try_echo=$ac_try;;
17075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076 (eval "$ac_link") 2>conftest.er1
17078 grep -v '^ *+' conftest.er1 >conftest.err
17080 cat conftest.err >&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); } && {
17083 test -z "$ac_c_werror_flag" ||
17084 test ! -s conftest.err
17085 } && test -s conftest$ac_exeext &&
17086 $as_test_x conftest$ac_exeext; then
17087 eval "$as_ac_var=yes"
17089 echo "$as_me: failed program was:" >&5
17090 sed 's/^/| /' conftest.$ac_ext >&5
17092 eval "$as_ac_var=no"
17095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17096 conftest$ac_exeext conftest.$ac_ext
17098 ac_res=`eval echo '${'$as_ac_var'}'`
17099 { echo "$as_me:$LINENO: result: $ac_res" >&5
17100 echo "${ECHO_T}$ac_res" >&6; }
17101 if test `eval echo '${'$as_ac_var'}'` = yes; then
17102 cat >>confdefs.h <<_ACEOF
17103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17113 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17120 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
17129 # Only expand once:
17133 for ac_dir in libltdl/config "$srcdir"/libltdl/config; do
17134 if test -f "$ac_dir/install-sh"; then
17136 ac_install_sh="$ac_aux_dir/install-sh -c"
17138 elif test -f "$ac_dir/install.sh"; then
17140 ac_install_sh="$ac_aux_dir/install.sh -c"
17142 elif test -f "$ac_dir/shtool"; then
17144 ac_install_sh="$ac_aux_dir/shtool install -c"
17148 if test -z "$ac_aux_dir"; then
17149 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in libltdl/config \"$srcdir\"/libltdl/config" >&5
17150 echo "$as_me: error: cannot find install-sh or install.sh in libltdl/config \"$srcdir\"/libltdl/config" >&2;}
17151 { (exit 1); exit 1; }; }
17154 # These three variables are undocumented and unsupported,
17155 # and are intended to be withdrawn in a future Autoconf release.
17156 # They can cause serious problems if a builder's source tree is in a directory
17157 # whose full name contains unusual characters.
17158 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
17159 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
17160 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
17175 # Check whether --enable-strict-dependencies was given.
17176 if test "${enable_strict_dependencies+set}" = set; then
17177 enableval=$enable_strict_dependencies;
17181 docdir='${datadir}/doc/freeradius'
17182 { echo "$as_me:$LINENO: checking docdir" >&5
17183 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
17185 # Check whether --with-docdir was given.
17186 if test "${with_docdir+set}" = set; then
17187 withval=$with_docdir; case "$withval" in
17193 [\\/$]* | ?:[\\/]* )
17197 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
17198 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
17199 { (exit 1); exit 1; }; }
17206 { echo "$as_me:$LINENO: result: $docdir" >&5
17207 echo "${ECHO_T}$docdir" >&6; }
17208 if test "x$docdir" = xno; then
17209 { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
17210 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
17213 logdir='${localstatedir}/log/radius'
17214 { echo "$as_me:$LINENO: checking logdir" >&5
17215 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
17217 # Check whether --with-logdir was given.
17218 if test "${with_logdir+set}" = set; then
17219 withval=$with_logdir; case "$withval" in
17221 { { echo "$as_me:$LINENO: error: Need logdir" >&5
17222 echo "$as_me: error: Need logdir" >&2;}
17223 { (exit 1); exit 1; }; }
17227 [\\/$]* | ?:[\\/]* )
17231 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
17232 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
17233 { (exit 1); exit 1; }; }
17240 { echo "$as_me:$LINENO: result: $logdir" >&5
17241 echo "${ECHO_T}$logdir" >&6; }
17243 radacctdir='${logdir}/radacct'
17244 { echo "$as_me:$LINENO: checking radacctdir" >&5
17245 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
17247 # Check whether --with-radacctdir was given.
17248 if test "${with_radacctdir+set}" = set; then
17249 withval=$with_radacctdir; case "$withval" in
17251 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
17252 echo "$as_me: error: Need radacctdir" >&2;}
17253 { (exit 1); exit 1; }; }
17257 [\\/$]* | ?:[\\/]* )
17258 radacctdir="$withval"
17261 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
17262 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
17263 { (exit 1); exit 1; }; }
17270 { echo "$as_me:$LINENO: result: $radacctdir" >&5
17271 echo "${ECHO_T}$radacctdir" >&6; }
17273 raddbdir='${sysconfdir}/raddb'
17274 { echo "$as_me:$LINENO: checking raddbdir" >&5
17275 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
17277 # Check whether --with-raddbdir was given.
17278 if test "${with_raddbdir+set}" = set; then
17279 withval=$with_raddbdir; case "$withval" in
17281 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
17282 echo "$as_me: error: Need raddbdir" >&2;}
17283 { (exit 1); exit 1; }; }
17287 [\\/$]* | ?:[\\/]* )
17288 raddbdir="$withval"
17291 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
17292 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
17293 { (exit 1); exit 1; }; }
17300 { echo "$as_me:$LINENO: result: $raddbdir" >&5
17301 echo "${ECHO_T}$raddbdir" >&6; }
17305 # Check whether --with-ascend-binary was given.
17306 if test "${with_ascend_binary+set}" = set; then
17307 withval=$with_ascend_binary; case "$withval" in
17316 if test "X$ASCEND_BINARY" = "Xyes"; then
17318 cat >>confdefs.h <<\_ACEOF
17319 #define ASCEND_BINARY
17326 # Check whether --with-threads was given.
17327 if test "${with_threads+set}" = set; then
17328 withval=$with_threads; case "$withval" in
17340 # Check whether --with-vmps was given.
17341 if test "${with_vmps+set}" = set; then
17342 withval=$with_vmps; case "$withval" in
17351 if test "x$WITH_VMPS" = "xyes"; then
17353 cat >>confdefs.h <<\_ACEOF
17354 #define WITH_VMPS 1
17360 # Check whether --with-dhcp was given.
17361 if test "${with_dhcp+set}" = set; then
17362 withval=$with_dhcp; case "$withval" in
17365 cat >>confdefs.h <<\_ACEOF
17366 #define WITH_DHCP 1
17380 # Check whether --with-static_modules was given.
17381 if test "${with_static_modules+set}" = set; then
17382 withval=$with_static_modules;
17383 for i in $withval; do
17384 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
17392 # Check whether --with-modules was given.
17393 if test "${with_modules+set}" = set; then
17394 withval=$with_modules;
17395 for i in $withval; do
17396 MODULES="$MODULES $i"
17402 # Check whether --enable-developer was given.
17403 if test "${enable_developer+set}" = set; then
17404 enableval=$enable_developer; case "$enableval" in
17415 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
17419 if test "x$developer" != "xno" -a -d $srcdir/.git; then
17425 # Check whether --with-experimental-modules was given.
17426 if test "${with_experimental_modules+set}" = set; then
17427 withval=$with_experimental_modules; case "$withval" in
17439 # Check whether --with-openssl was given.
17440 if test "${with_openssl+set}" = set; then
17441 withval=$with_openssl; case "$withval" in
17453 OPENSSL_INCLUDE_DIR=
17455 # Check whether --with-openssl-includes was given.
17456 if test "${with_openssl_includes+set}" = set; then
17457 withval=$with_openssl_includes; case "$withval" in
17458 *) OPENSSL_INCLUDE_DIR="$withval"
17467 # Check whether --with-openssl-libraries was given.
17468 if test "${with_openssl_libraries+set}" = set; then
17469 withval=$with_openssl_libraries; case "$withval" in
17470 *) OPENSSL_LIB_DIR="$withval"
17479 # Check whether --with-rlm-FOO-lib-dir was given.
17480 if test "${with_rlm_FOO_lib_dir+set}" = set; then
17481 withval=$with_rlm_FOO_lib_dir; case "$withval" in
17490 # Check whether --with-rlm-FOO-include-dir was given.
17491 if test "${with_rlm_FOO_include_dir+set}" = set; then
17492 withval=$with_rlm_FOO_include_dir; case "$withval" in
17503 # Check whether --with-udpfromto was given.
17504 if test "${with_udpfromto+set}" = set; then
17505 withval=$with_udpfromto; case "$withval" in
17516 if test "x$WITH_UDPFROMTO" = "xyes"; then
17518 cat >>confdefs.h <<\_ACEOF
17519 #define WITH_UDPFROMTO
17525 CHECKRAD=checkrad.pl
17526 # Extract the first word of "perl", so it can be a program name with args.
17527 set dummy perl; ac_word=$2
17528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17530 if test "${ac_cv_path_PERL+set}" = set; then
17531 echo $ECHO_N "(cached) $ECHO_C" >&6
17535 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
17538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17539 for as_dir in $PATH
17542 test -z "$as_dir" && as_dir=.
17543 for ac_exec_ext in '' $ac_executable_extensions; do
17544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17545 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
17546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17553 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
17557 PERL=$ac_cv_path_PERL
17558 if test -n "$PERL"; then
17559 { echo "$as_me:$LINENO: result: $PERL" >&5
17560 echo "${ECHO_T}$PERL" >&6; }
17562 { echo "$as_me:$LINENO: result: no" >&5
17563 echo "${ECHO_T}no" >&6; }
17567 if test "x$ac_cv_path_PERL" = "x"; then
17568 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
17569 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
17571 # Extract the first word of "snmpget", so it can be a program name with args.
17572 set dummy snmpget; ac_word=$2
17573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17575 if test "${ac_cv_path_SNMPGET+set}" = set; then
17576 echo $ECHO_N "(cached) $ECHO_C" >&6
17580 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
17583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17584 for as_dir in $PATH
17587 test -z "$as_dir" && as_dir=.
17588 for ac_exec_ext in '' $ac_executable_extensions; do
17589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17590 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
17591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17601 SNMPGET=$ac_cv_path_SNMPGET
17602 if test -n "$SNMPGET"; then
17603 { echo "$as_me:$LINENO: result: $SNMPGET" >&5
17604 echo "${ECHO_T}$SNMPGET" >&6; }
17606 { echo "$as_me:$LINENO: result: no" >&5
17607 echo "${ECHO_T}no" >&6; }
17611 if test "x$ac_cv_path_SNMPGET" = "x"; then
17612 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
17613 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
17616 # Extract the first word of "snmpwalk", so it can be a program name with args.
17617 set dummy snmpwalk; ac_word=$2
17618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17620 if test "${ac_cv_path_SNMPWALK+set}" = set; then
17621 echo $ECHO_N "(cached) $ECHO_C" >&6
17625 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
17628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17629 for as_dir in $PATH
17632 test -z "$as_dir" && as_dir=.
17633 for ac_exec_ext in '' $ac_executable_extensions; do
17634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17635 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
17636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17646 SNMPWALK=$ac_cv_path_SNMPWALK
17647 if test -n "$SNMPWALK"; then
17648 { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
17649 echo "${ECHO_T}$SNMPWALK" >&6; }
17651 { echo "$as_me:$LINENO: result: no" >&5
17652 echo "${ECHO_T}no" >&6; }
17656 if test "x$ac_cv_path_SNMPWALK" = "x"; then
17657 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
17658 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
17661 # Extract the first word of "rusers", so it can be a program name with args.
17662 set dummy rusers; ac_word=$2
17663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17665 if test "${ac_cv_path_RUSERS+set}" = set; then
17666 echo $ECHO_N "(cached) $ECHO_C" >&6
17670 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
17673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17674 for as_dir in $PATH
17677 test -z "$as_dir" && as_dir=.
17678 for ac_exec_ext in '' $ac_executable_extensions; do
17679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17680 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
17681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17688 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
17692 RUSERS=$ac_cv_path_RUSERS
17693 if test -n "$RUSERS"; then
17694 { echo "$as_me:$LINENO: result: $RUSERS" >&5
17695 echo "${ECHO_T}$RUSERS" >&6; }
17697 { echo "$as_me:$LINENO: result: no" >&5
17698 echo "${ECHO_T}no" >&6; }
17703 missing_dir=`cd $ac_aux_dir && pwd`
17704 # expand $ac_aux_dir to an absolute path
17705 am_aux_dir=`cd $ac_aux_dir && pwd`
17707 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
17708 # Use eval to expand $SHELL
17709 if eval "$MISSING --run true"; then
17710 am_missing_run="$MISSING --run "
17713 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
17714 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
17718 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
17721 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
17724 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
17727 # Extract the first word of "locate", so it can be a program name with args.
17728 set dummy locate; ac_word=$2
17729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17731 if test "${ac_cv_path_LOCATE+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17736 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
17739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17740 for as_dir in $PATH
17743 test -z "$as_dir" && as_dir=.
17744 for ac_exec_ext in '' $ac_executable_extensions; do
17745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17746 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
17747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17757 LOCATE=$ac_cv_path_LOCATE
17758 if test -n "$LOCATE"; then
17759 { echo "$as_me:$LINENO: result: $LOCATE" >&5
17760 echo "${ECHO_T}$LOCATE" >&6; }
17762 { echo "$as_me:$LINENO: result: no" >&5
17763 echo "${ECHO_T}no" >&6; }
17767 # Extract the first word of "dirname", so it can be a program name with args.
17768 set dummy dirname; ac_word=$2
17769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17771 if test "${ac_cv_path_DIRNAME+set}" = set; then
17772 echo $ECHO_N "(cached) $ECHO_C" >&6
17776 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
17779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17780 for as_dir in $PATH
17783 test -z "$as_dir" && as_dir=.
17784 for ac_exec_ext in '' $ac_executable_extensions; do
17785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17786 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
17787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17797 DIRNAME=$ac_cv_path_DIRNAME
17798 if test -n "$DIRNAME"; then
17799 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
17800 echo "${ECHO_T}$DIRNAME" >&6; }
17802 { echo "$as_me:$LINENO: result: no" >&5
17803 echo "${ECHO_T}no" >&6; }
17807 # Extract the first word of "grep", so it can be a program name with args.
17808 set dummy grep; ac_word=$2
17809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17811 if test "${ac_cv_path_GREP+set}" = set; then
17812 echo $ECHO_N "(cached) $ECHO_C" >&6
17816 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
17819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17820 for as_dir in $PATH
17823 test -z "$as_dir" && as_dir=.
17824 for ac_exec_ext in '' $ac_executable_extensions; do
17825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17826 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
17827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17837 GREP=$ac_cv_path_GREP
17838 if test -n "$GREP"; then
17839 { echo "$as_me:$LINENO: result: $GREP" >&5
17840 echo "${ECHO_T}$GREP" >&6; }
17842 { echo "$as_me:$LINENO: result: no" >&5
17843 echo "${ECHO_T}no" >&6; }
17850 if test "x$WITH_THREADS" = "xyes"; then
17851 if test $ac_cv_prog_suncc = "yes"; then
17852 CFLAGS="$CFLAGS -mt"
17856 for ac_header in pthread.h
17858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17863 echo $ECHO_N "(cached) $ECHO_C" >&6
17865 ac_res=`eval echo '${'$as_ac_Header'}'`
17866 { echo "$as_me:$LINENO: result: $ac_res" >&5
17867 echo "${ECHO_T}$ac_res" >&6; }
17869 # Is the header compilable?
17870 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17872 cat >conftest.$ac_ext <<_ACEOF
17875 cat confdefs.h >>conftest.$ac_ext
17876 cat >>conftest.$ac_ext <<_ACEOF
17877 /* end confdefs.h. */
17878 $ac_includes_default
17879 #include <$ac_header>
17881 rm -f conftest.$ac_objext
17882 if { (ac_try="$ac_compile"
17883 case "(($ac_try" in
17884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885 *) ac_try_echo=$ac_try;;
17887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888 (eval "$ac_compile") 2>conftest.er1
17890 grep -v '^ *+' conftest.er1 >conftest.err
17892 cat conftest.err >&5
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); } && {
17895 test -z "$ac_c_werror_flag" ||
17896 test ! -s conftest.err
17897 } && test -s conftest.$ac_objext; then
17898 ac_header_compiler=yes
17900 echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17903 ac_header_compiler=no
17906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17908 echo "${ECHO_T}$ac_header_compiler" >&6; }
17910 # Is the header present?
17911 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17913 cat >conftest.$ac_ext <<_ACEOF
17916 cat confdefs.h >>conftest.$ac_ext
17917 cat >>conftest.$ac_ext <<_ACEOF
17918 /* end confdefs.h. */
17919 #include <$ac_header>
17921 if { (ac_try="$ac_cpp conftest.$ac_ext"
17922 case "(($ac_try" in
17923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924 *) ac_try_echo=$ac_try;;
17926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17929 grep -v '^ *+' conftest.er1 >conftest.err
17931 cat conftest.err >&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); } >/dev/null && {
17934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17935 test ! -s conftest.err
17937 ac_header_preproc=yes
17939 echo "$as_me: failed program was:" >&5
17940 sed 's/^/| /' conftest.$ac_ext >&5
17942 ac_header_preproc=no
17945 rm -f conftest.err conftest.$ac_ext
17946 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17947 echo "${ECHO_T}$ac_header_preproc" >&6; }
17949 # So? What about this header?
17950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17952 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17955 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17956 ac_header_preproc=yes
17959 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17961 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17962 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17963 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17964 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17965 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17966 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17969 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17970 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17977 echo $ECHO_N "(cached) $ECHO_C" >&6
17979 eval "$as_ac_Header=\$ac_header_preproc"
17981 ac_res=`eval echo '${'$as_ac_Header'}'`
17982 { echo "$as_me:$LINENO: result: $ac_res" >&5
17983 echo "${ECHO_T}$ac_res" >&6; }
17986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17987 cat >>confdefs.h <<_ACEOF
17988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17998 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17999 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
18000 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18001 echo $ECHO_N "(cached) $ECHO_C" >&6
18003 ac_check_lib_save_LIBS=$LIBS
18004 LIBS="-lpthread $LIBS"
18005 cat >conftest.$ac_ext <<_ACEOF
18008 cat confdefs.h >>conftest.$ac_ext
18009 cat >>conftest.$ac_ext <<_ACEOF
18010 /* end confdefs.h. */
18012 /* Override any GCC internal prototype to avoid an error.
18013 Use char because int might match the return type of a GCC
18014 builtin and then its argument prototype would still apply. */
18018 char pthread_create ();
18022 return pthread_create ();
18027 rm -f conftest.$ac_objext conftest$ac_exeext
18028 if { (ac_try="$ac_link"
18029 case "(($ac_try" in
18030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18031 *) ac_try_echo=$ac_try;;
18033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18034 (eval "$ac_link") 2>conftest.er1
18036 grep -v '^ *+' conftest.er1 >conftest.err
18038 cat conftest.err >&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); } && {
18041 test -z "$ac_c_werror_flag" ||
18042 test ! -s conftest.err
18043 } && test -s conftest$ac_exeext &&
18044 $as_test_x conftest$ac_exeext; then
18045 ac_cv_lib_pthread_pthread_create=yes
18047 echo "$as_me: failed program was:" >&5
18048 sed 's/^/| /' conftest.$ac_ext >&5
18050 ac_cv_lib_pthread_pthread_create=no
18053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18054 conftest$ac_exeext conftest.$ac_ext
18055 LIBS=$ac_check_lib_save_LIBS
18057 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18058 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
18059 if test $ac_cv_lib_pthread_pthread_create = yes; then
18060 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
18061 LIBS="$LIBS -lpthread"
18063 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18064 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
18065 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18066 echo $ECHO_N "(cached) $ECHO_C" >&6
18068 ac_check_lib_save_LIBS=$LIBS
18070 cat >conftest.$ac_ext <<_ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h. */
18077 /* Override any GCC internal prototype to avoid an error.
18078 Use char because int might match the return type of a GCC
18079 builtin and then its argument prototype would still apply. */
18083 char pthread_create ();
18087 return pthread_create ();
18092 rm -f conftest.$ac_objext conftest$ac_exeext
18093 if { (ac_try="$ac_link"
18094 case "(($ac_try" in
18095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096 *) ac_try_echo=$ac_try;;
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099 (eval "$ac_link") 2>conftest.er1
18101 grep -v '^ *+' conftest.er1 >conftest.err
18103 cat conftest.err >&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); } && {
18106 test -z "$ac_c_werror_flag" ||
18107 test ! -s conftest.err
18108 } && test -s conftest$ac_exeext &&
18109 $as_test_x conftest$ac_exeext; then
18110 ac_cv_lib_c_r_pthread_create=yes
18112 echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18115 ac_cv_lib_c_r_pthread_create=no
18118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18119 conftest$ac_exeext conftest.$ac_ext
18120 LIBS=$ac_check_lib_save_LIBS
18122 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18123 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
18124 if test $ac_cv_lib_c_r_pthread_create = yes; then
18125 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
18136 if test "x$WITH_THREADS" != "xyes"; then
18138 ac_cv_header_pthread_h="no"
18142 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
18143 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
18144 if test "${ac_cv_search_sem_init+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18147 ac_func_search_save_LIBS=$LIBS
18148 cat >conftest.$ac_ext <<_ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18155 /* Override any GCC internal prototype to avoid an error.
18156 Use char because int might match the return type of a GCC
18157 builtin and then its argument prototype would still apply. */
18165 return sem_init ();
18170 for ac_lib in '' pthread sem posix4 rt semaphore; do
18171 if test -z "$ac_lib"; then
18172 ac_res="none required"
18175 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18177 rm -f conftest.$ac_objext conftest$ac_exeext
18178 if { (ac_try="$ac_link"
18179 case "(($ac_try" in
18180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181 *) ac_try_echo=$ac_try;;
18183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184 (eval "$ac_link") 2>conftest.er1
18186 grep -v '^ *+' conftest.er1 >conftest.err
18188 cat conftest.err >&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); } && {
18191 test -z "$ac_c_werror_flag" ||
18192 test ! -s conftest.err
18193 } && test -s conftest$ac_exeext &&
18194 $as_test_x conftest$ac_exeext; then
18195 ac_cv_search_sem_init=$ac_res
18197 echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18205 if test "${ac_cv_search_sem_init+set}" = set; then
18209 if test "${ac_cv_search_sem_init+set}" = set; then
18212 ac_cv_search_sem_init=no
18214 rm conftest.$ac_ext
18215 LIBS=$ac_func_search_save_LIBS
18217 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
18218 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
18219 ac_res=$ac_cv_search_sem_init
18220 if test "$ac_res" != no; then
18221 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18224 { { echo "$as_me:$LINENO: error: -lsem not found. You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" >&5
18225 echo "$as_me: error: -lsem not found. You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" >&2;}
18226 { (exit 1); exit 1; }; }
18233 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
18234 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
18235 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
18236 echo $ECHO_N "(cached) $ECHO_C" >&6
18238 ac_check_lib_save_LIBS=$LIBS
18239 LIBS="-lsocket $LIBS"
18240 cat >conftest.$ac_ext <<_ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h. */
18247 /* Override any GCC internal prototype to avoid an error.
18248 Use char because int might match the return type of a GCC
18249 builtin and then its argument prototype would still apply. */
18253 char getsockname ();
18257 return getsockname ();
18262 rm -f conftest.$ac_objext conftest$ac_exeext
18263 if { (ac_try="$ac_link"
18264 case "(($ac_try" in
18265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266 *) ac_try_echo=$ac_try;;
18268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18269 (eval "$ac_link") 2>conftest.er1
18271 grep -v '^ *+' conftest.er1 >conftest.err
18273 cat conftest.err >&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } && {
18276 test -z "$ac_c_werror_flag" ||
18277 test ! -s conftest.err
18278 } && test -s conftest$ac_exeext &&
18279 $as_test_x conftest$ac_exeext; then
18280 ac_cv_lib_socket_getsockname=yes
18282 echo "$as_me: failed program was:" >&5
18283 sed 's/^/| /' conftest.$ac_ext >&5
18285 ac_cv_lib_socket_getsockname=no
18288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18289 conftest$ac_exeext conftest.$ac_ext
18290 LIBS=$ac_check_lib_save_LIBS
18292 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
18293 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
18294 if test $ac_cv_lib_socket_getsockname = yes; then
18295 cat >>confdefs.h <<_ACEOF
18296 #define HAVE_LIBSOCKET 1
18299 LIBS="-lsocket $LIBS"
18305 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
18306 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
18307 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
18308 echo $ECHO_N "(cached) $ECHO_C" >&6
18310 ac_check_lib_save_LIBS=$LIBS
18311 LIBS="-lresolv $LIBS"
18312 cat >conftest.$ac_ext <<_ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h. */
18319 /* Override any GCC internal prototype to avoid an error.
18320 Use char because int might match the return type of a GCC
18321 builtin and then its argument prototype would still apply. */
18329 return inet_aton ();
18334 rm -f conftest.$ac_objext conftest$ac_exeext
18335 if { (ac_try="$ac_link"
18336 case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_link") 2>conftest.er1
18343 grep -v '^ *+' conftest.er1 >conftest.err
18345 cat conftest.err >&5
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } && {
18348 test -z "$ac_c_werror_flag" ||
18349 test ! -s conftest.err
18350 } && test -s conftest$ac_exeext &&
18351 $as_test_x conftest$ac_exeext; then
18352 ac_cv_lib_resolv_inet_aton=yes
18354 echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18357 ac_cv_lib_resolv_inet_aton=no
18360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18361 conftest$ac_exeext conftest.$ac_ext
18362 LIBS=$ac_check_lib_save_LIBS
18364 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
18365 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
18366 if test $ac_cv_lib_resolv_inet_aton = yes; then
18367 cat >>confdefs.h <<_ACEOF
18368 #define HAVE_LIBRESOLV 1
18371 LIBS="-lresolv $LIBS"
18377 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
18378 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
18379 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
18380 echo $ECHO_N "(cached) $ECHO_C" >&6
18382 ac_check_lib_save_LIBS=$LIBS
18384 cat >conftest.$ac_ext <<_ACEOF
18387 cat confdefs.h >>conftest.$ac_ext
18388 cat >>conftest.$ac_ext <<_ACEOF
18389 /* end confdefs.h. */
18391 /* Override any GCC internal prototype to avoid an error.
18392 Use char because int might match the return type of a GCC
18393 builtin and then its argument prototype would still apply. */
18401 return inet_ntoa ();
18406 rm -f conftest.$ac_objext conftest$ac_exeext
18407 if { (ac_try="$ac_link"
18408 case "(($ac_try" in
18409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410 *) ac_try_echo=$ac_try;;
18412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18413 (eval "$ac_link") 2>conftest.er1
18415 grep -v '^ *+' conftest.er1 >conftest.err
18417 cat conftest.err >&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); } && {
18420 test -z "$ac_c_werror_flag" ||
18421 test ! -s conftest.err
18422 } && test -s conftest$ac_exeext &&
18423 $as_test_x conftest$ac_exeext; then
18424 ac_cv_lib_nsl_inet_ntoa=yes
18426 echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18429 ac_cv_lib_nsl_inet_ntoa=no
18432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18433 conftest$ac_exeext conftest.$ac_ext
18434 LIBS=$ac_check_lib_save_LIBS
18436 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
18437 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
18438 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
18439 cat >>confdefs.h <<_ACEOF
18440 #define HAVE_LIBNSL 1
18449 if test "x$WITH_OPENSSL" = xyes; then
18451 if test "x$OPENSSL_LIB_DIR" != "x"; then
18452 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
18454 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
18455 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
18456 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
18457 echo $ECHO_N "(cached) $ECHO_C" >&6
18459 ac_check_lib_save_LIBS=$LIBS
18460 LIBS="-lcrypto $LIBS"
18461 cat >conftest.$ac_ext <<_ACEOF
18464 cat confdefs.h >>conftest.$ac_ext
18465 cat >>conftest.$ac_ext <<_ACEOF
18466 /* end confdefs.h. */
18468 /* Override any GCC internal prototype to avoid an error.
18469 Use char because int might match the return type of a GCC
18470 builtin and then its argument prototype would still apply. */
18483 rm -f conftest.$ac_objext conftest$ac_exeext
18484 if { (ac_try="$ac_link"
18485 case "(($ac_try" in
18486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487 *) ac_try_echo=$ac_try;;
18489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490 (eval "$ac_link") 2>conftest.er1
18492 grep -v '^ *+' conftest.er1 >conftest.err
18494 cat conftest.err >&5
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); } && {
18497 test -z "$ac_c_werror_flag" ||
18498 test ! -s conftest.err
18499 } && test -s conftest$ac_exeext &&
18500 $as_test_x conftest$ac_exeext; then
18501 ac_cv_lib_crypto_DH_new=yes
18503 echo "$as_me: failed program was:" >&5
18504 sed 's/^/| /' conftest.$ac_ext >&5
18506 ac_cv_lib_crypto_DH_new=no
18509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18510 conftest$ac_exeext conftest.$ac_ext
18511 LIBS=$ac_check_lib_save_LIBS
18513 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
18514 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
18515 if test $ac_cv_lib_crypto_DH_new = yes; then
18517 LIBS="-lcrypto $LIBS"
18519 cat >>confdefs.h <<\_ACEOF
18520 #define HAVE_LIBCRYPTO 1
18523 { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
18524 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
18525 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
18526 echo $ECHO_N "(cached) $ECHO_C" >&6
18528 ac_check_lib_save_LIBS=$LIBS
18530 cat >conftest.$ac_ext <<_ACEOF
18533 cat confdefs.h >>conftest.$ac_ext
18534 cat >>conftest.$ac_ext <<_ACEOF
18535 /* end confdefs.h. */
18537 /* Override any GCC internal prototype to avoid an error.
18538 Use char because int might match the return type of a GCC
18539 builtin and then its argument prototype would still apply. */
18552 rm -f conftest.$ac_objext conftest$ac_exeext
18553 if { (ac_try="$ac_link"
18554 case "(($ac_try" in
18555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556 *) ac_try_echo=$ac_try;;
18558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559 (eval "$ac_link") 2>conftest.er1
18561 grep -v '^ *+' conftest.er1 >conftest.err
18563 cat conftest.err >&5
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } && {
18566 test -z "$ac_c_werror_flag" ||
18567 test ! -s conftest.err
18568 } && test -s conftest$ac_exeext &&
18569 $as_test_x conftest$ac_exeext; then
18570 ac_cv_lib_ssl_SSL_new=yes
18572 echo "$as_me: failed program was:" >&5
18573 sed 's/^/| /' conftest.$ac_ext >&5
18575 ac_cv_lib_ssl_SSL_new=no
18578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18579 conftest$ac_exeext conftest.$ac_ext
18580 LIBS=$ac_check_lib_save_LIBS
18582 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
18583 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
18584 if test $ac_cv_lib_ssl_SSL_new = yes; then
18587 cat >>confdefs.h <<\_ACEOF
18588 #define HAVE_LIBSSL 1
18591 if test "x$OPENSSL_LIB_DIR" != "x"; then
18592 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
18594 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
18605 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
18606 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
18607 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
18608 echo $ECHO_N "(cached) $ECHO_C" >&6
18610 ac_check_lib_save_LIBS=$LIBS
18611 LIBS="-lws2_32 $LIBS"
18612 cat >conftest.$ac_ext <<_ACEOF
18615 cat confdefs.h >>conftest.$ac_ext
18616 cat >>conftest.$ac_ext <<_ACEOF
18617 /* end confdefs.h. */
18619 /* Override any GCC internal prototype to avoid an error.
18620 Use char because int might match the return type of a GCC
18621 builtin and then its argument prototype would still apply. */
18634 rm -f conftest.$ac_objext conftest$ac_exeext
18635 if { (ac_try="$ac_link"
18636 case "(($ac_try" in
18637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18638 *) ac_try_echo=$ac_try;;
18640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18641 (eval "$ac_link") 2>conftest.er1
18643 grep -v '^ *+' conftest.er1 >conftest.err
18645 cat conftest.err >&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } && {
18648 test -z "$ac_c_werror_flag" ||
18649 test ! -s conftest.err
18650 } && test -s conftest$ac_exeext &&
18651 $as_test_x conftest$ac_exeext; then
18652 ac_cv_lib_ws2_32_htonl=yes
18654 echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18657 ac_cv_lib_ws2_32_htonl=no
18660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18661 conftest$ac_exeext conftest.$ac_ext
18662 LIBS=$ac_check_lib_save_LIBS
18664 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
18665 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
18666 if test $ac_cv_lib_ws2_32_htonl = yes; then
18667 cat >>confdefs.h <<_ACEOF
18668 #define HAVE_LIBWS2_32 1
18671 LIBS="-lws2_32 $LIBS"
18677 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
18678 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
18679 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
18680 echo $ECHO_N "(cached) $ECHO_C" >&6
18682 ac_check_lib_save_LIBS=$LIBS
18683 LIBS="-lpcap $LIBS"
18684 cat >conftest.$ac_ext <<_ACEOF
18687 cat confdefs.h >>conftest.$ac_ext
18688 cat >>conftest.$ac_ext <<_ACEOF
18689 /* end confdefs.h. */
18691 /* Override any GCC internal prototype to avoid an error.
18692 Use char because int might match the return type of a GCC
18693 builtin and then its argument prototype would still apply. */
18697 char pcap_open_live ();
18701 return pcap_open_live ();
18706 rm -f conftest.$ac_objext conftest$ac_exeext
18707 if { (ac_try="$ac_link"
18708 case "(($ac_try" in
18709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710 *) ac_try_echo=$ac_try;;
18712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713 (eval "$ac_link") 2>conftest.er1
18715 grep -v '^ *+' conftest.er1 >conftest.err
18717 cat conftest.err >&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } && {
18720 test -z "$ac_c_werror_flag" ||
18721 test ! -s conftest.err
18722 } && test -s conftest$ac_exeext &&
18723 $as_test_x conftest$ac_exeext; then
18724 ac_cv_lib_pcap_pcap_open_live=yes
18726 echo "$as_me: failed program was:" >&5
18727 sed 's/^/| /' conftest.$ac_ext >&5
18729 ac_cv_lib_pcap_pcap_open_live=no
18732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18733 conftest$ac_exeext conftest.$ac_ext
18734 LIBS=$ac_check_lib_save_LIBS
18736 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
18737 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
18738 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
18741 cat >>confdefs.h <<\_ACEOF
18742 #define HAVE_LIBPCAP 1
18747 { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
18748 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
18753 { echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18754 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6; }
18755 if test "${ac_cv_lib_readline+set}" = set; then
18756 echo $ECHO_N "(cached) $ECHO_C" >&6
18761 for readline_lib in readline edit editline; do
18762 for termcap_lib in "" termcap curses ncurses; do
18763 if test -z "$termcap_lib"; then
18764 TRY_LIB="-l$readline_lib"
18766 TRY_LIB="-l$readline_lib -l$termcap_lib"
18768 LIBS="$ORIG_LIBS $TRY_LIB"
18769 cat >conftest.$ac_ext <<_ACEOF
18772 cat confdefs.h >>conftest.$ac_ext
18773 cat >>conftest.$ac_ext <<_ACEOF
18774 /* end confdefs.h. */
18776 /* Override any GCC internal prototype to avoid an error.
18777 Use char because int might match the return type of a GCC
18778 builtin and then its argument prototype would still apply. */
18786 return readline ();
18791 rm -f conftest.$ac_objext conftest$ac_exeext
18792 if { (ac_try="$ac_link"
18793 case "(($ac_try" in
18794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795 *) ac_try_echo=$ac_try;;
18797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798 (eval "$ac_link") 2>conftest.er1
18800 grep -v '^ *+' conftest.er1 >conftest.err
18802 cat conftest.err >&5
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); } && {
18805 test -z "$ac_c_werror_flag" ||
18806 test ! -s conftest.err
18807 } && test -s conftest$ac_exeext &&
18808 $as_test_x conftest$ac_exeext; then
18809 ac_cv_lib_readline="$TRY_LIB"
18811 echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18818 conftest$ac_exeext conftest.$ac_ext
18819 if test -n "$ac_cv_lib_readline"; then
18820 LIBREADLINE="$TRY_LIB"
18824 if test -n "$ac_cv_lib_readline"; then
18828 if test -z "$ac_cv_lib_readline"; then
18829 ac_cv_lib_readline="no"
18835 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
18836 echo "${ECHO_T}$ac_cv_lib_readline" >&6; }
18838 if test "$ac_cv_lib_readline" != "no"; then
18840 cat >>confdefs.h <<\_ACEOF
18841 #define HAVE_LIBREADLINE 1
18846 for ac_header in readline.h readline/readline.h
18848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18853 echo $ECHO_N "(cached) $ECHO_C" >&6
18855 ac_res=`eval echo '${'$as_ac_Header'}'`
18856 { echo "$as_me:$LINENO: result: $ac_res" >&5
18857 echo "${ECHO_T}$ac_res" >&6; }
18859 # Is the header compilable?
18860 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18862 cat >conftest.$ac_ext <<_ACEOF
18865 cat confdefs.h >>conftest.$ac_ext
18866 cat >>conftest.$ac_ext <<_ACEOF
18867 /* end confdefs.h. */
18868 $ac_includes_default
18869 #include <$ac_header>
18871 rm -f conftest.$ac_objext
18872 if { (ac_try="$ac_compile"
18873 case "(($ac_try" in
18874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875 *) ac_try_echo=$ac_try;;
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878 (eval "$ac_compile") 2>conftest.er1
18880 grep -v '^ *+' conftest.er1 >conftest.err
18882 cat conftest.err >&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); } && {
18885 test -z "$ac_c_werror_flag" ||
18886 test ! -s conftest.err
18887 } && test -s conftest.$ac_objext; then
18888 ac_header_compiler=yes
18890 echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18893 ac_header_compiler=no
18896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18898 echo "${ECHO_T}$ac_header_compiler" >&6; }
18900 # Is the header present?
18901 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18903 cat >conftest.$ac_ext <<_ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h. */
18909 #include <$ac_header>
18911 if { (ac_try="$ac_cpp conftest.$ac_ext"
18912 case "(($ac_try" in
18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914 *) ac_try_echo=$ac_try;;
18916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18919 grep -v '^ *+' conftest.er1 >conftest.err
18921 cat conftest.err >&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); } >/dev/null && {
18924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18925 test ! -s conftest.err
18927 ac_header_preproc=yes
18929 echo "$as_me: failed program was:" >&5
18930 sed 's/^/| /' conftest.$ac_ext >&5
18932 ac_header_preproc=no
18935 rm -f conftest.err conftest.$ac_ext
18936 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18937 echo "${ECHO_T}$ac_header_preproc" >&6; }
18939 # So? What about this header?
18940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18946 ac_header_preproc=yes
18949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18952 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18956 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18969 eval "$as_ac_Header=\$ac_header_preproc"
18971 ac_res=`eval echo '${'$as_ac_Header'}'`
18972 { echo "$as_me:$LINENO: result: $ac_res" >&5
18973 echo "${ECHO_T}$ac_res" >&6; }
18976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18977 cat >>confdefs.h <<_ACEOF
18978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18985 { echo "$as_me:$LINENO: checking whether readline supports history" >&5
18986 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6; }
18987 if test "${ac_cv_lib_readline_history+set}" = set; then
18988 echo $ECHO_N "(cached) $ECHO_C" >&6
18991 ac_cv_lib_readline_history="no"
18992 cat >conftest.$ac_ext <<_ACEOF
18995 cat confdefs.h >>conftest.$ac_ext
18996 cat >>conftest.$ac_ext <<_ACEOF
18997 /* end confdefs.h. */
18999 /* Override any GCC internal prototype to avoid an error.
19000 Use char because int might match the return type of a GCC
19001 builtin and then its argument prototype would still apply. */
19005 char add_history ();
19009 return add_history ();
19014 rm -f conftest.$ac_objext conftest$ac_exeext
19015 if { (ac_try="$ac_link"
19016 case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021 (eval "$ac_link") 2>conftest.er1
19023 grep -v '^ *+' conftest.er1 >conftest.err
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } && {
19028 test -z "$ac_c_werror_flag" ||
19029 test ! -s conftest.err
19030 } && test -s conftest$ac_exeext &&
19031 $as_test_x conftest$ac_exeext; then
19032 ac_cv_lib_readline_history="yes"
19034 echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19041 conftest$ac_exeext conftest.$ac_ext
19044 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
19045 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6; }
19046 if test "$ac_cv_lib_readline_history" = "yes"; then
19048 cat >>confdefs.h <<\_ACEOF
19049 #define HAVE_READLINE_HISTORY 1
19054 for ac_header in history.h readline/history.h
19056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19061 echo $ECHO_N "(cached) $ECHO_C" >&6
19063 ac_res=`eval echo '${'$as_ac_Header'}'`
19064 { echo "$as_me:$LINENO: result: $ac_res" >&5
19065 echo "${ECHO_T}$ac_res" >&6; }
19067 # Is the header compilable?
19068 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19070 cat >conftest.$ac_ext <<_ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h. */
19076 $ac_includes_default
19077 #include <$ac_header>
19079 rm -f conftest.$ac_objext
19080 if { (ac_try="$ac_compile"
19081 case "(($ac_try" in
19082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19083 *) ac_try_echo=$ac_try;;
19085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19086 (eval "$ac_compile") 2>conftest.er1
19088 grep -v '^ *+' conftest.er1 >conftest.err
19090 cat conftest.err >&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); } && {
19093 test -z "$ac_c_werror_flag" ||
19094 test ! -s conftest.err
19095 } && test -s conftest.$ac_objext; then
19096 ac_header_compiler=yes
19098 echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19101 ac_header_compiler=no
19104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19106 echo "${ECHO_T}$ac_header_compiler" >&6; }
19108 # Is the header present?
19109 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19111 cat >conftest.$ac_ext <<_ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h. */
19117 #include <$ac_header>
19119 if { (ac_try="$ac_cpp conftest.$ac_ext"
19120 case "(($ac_try" in
19121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122 *) ac_try_echo=$ac_try;;
19124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19127 grep -v '^ *+' conftest.er1 >conftest.err
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } >/dev/null && {
19132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19133 test ! -s conftest.err
19135 ac_header_preproc=yes
19137 echo "$as_me: failed program was:" >&5
19138 sed 's/^/| /' conftest.$ac_ext >&5
19140 ac_header_preproc=no
19143 rm -f conftest.err conftest.$ac_ext
19144 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19145 echo "${ECHO_T}$ac_header_preproc" >&6; }
19147 # So? What about this header?
19148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19154 ac_header_preproc=yes
19157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19164 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19175 echo $ECHO_N "(cached) $ECHO_C" >&6
19177 eval "$as_ac_Header=\$ac_header_preproc"
19179 ac_res=`eval echo '${'$as_ac_Header'}'`
19180 { echo "$as_me:$LINENO: result: $ac_res" >&5
19181 echo "${ECHO_T}$ac_res" >&6; }
19184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19185 cat >>confdefs.h <<_ACEOF
19186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19200 CFLAGS="$CFLAGS -D_ALL_SOURCE"
19203 CFLAGS="$CFLAGS -DDARWIN"
19204 LIBS="-framework DirectoryService $LIBS"
19213 ac_header_dirent=no
19214 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19215 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19216 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19217 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19219 echo $ECHO_N "(cached) $ECHO_C" >&6
19221 cat >conftest.$ac_ext <<_ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h. */
19227 #include <sys/types.h>
19239 rm -f conftest.$ac_objext
19240 if { (ac_try="$ac_compile"
19241 case "(($ac_try" in
19242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243 *) ac_try_echo=$ac_try;;
19245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246 (eval "$ac_compile") 2>conftest.er1
19248 grep -v '^ *+' conftest.er1 >conftest.err
19250 cat conftest.err >&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } && {
19253 test -z "$ac_c_werror_flag" ||
19254 test ! -s conftest.err
19255 } && test -s conftest.$ac_objext; then
19256 eval "$as_ac_Header=yes"
19258 echo "$as_me: failed program was:" >&5
19259 sed 's/^/| /' conftest.$ac_ext >&5
19261 eval "$as_ac_Header=no"
19264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19266 ac_res=`eval echo '${'$as_ac_Header'}'`
19267 { echo "$as_me:$LINENO: result: $ac_res" >&5
19268 echo "${ECHO_T}$ac_res" >&6; }
19269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19270 cat >>confdefs.h <<_ACEOF
19271 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19274 ac_header_dirent=$ac_hdr; break
19278 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19279 if test $ac_header_dirent = dirent.h; then
19280 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19281 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19282 if test "${ac_cv_search_opendir+set}" = set; then
19283 echo $ECHO_N "(cached) $ECHO_C" >&6
19285 ac_func_search_save_LIBS=$LIBS
19286 cat >conftest.$ac_ext <<_ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h. */
19293 /* Override any GCC internal prototype to avoid an error.
19294 Use char because int might match the return type of a GCC
19295 builtin and then its argument prototype would still apply. */
19308 for ac_lib in '' dir; do
19309 if test -z "$ac_lib"; then
19310 ac_res="none required"
19313 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19315 rm -f conftest.$ac_objext conftest$ac_exeext
19316 if { (ac_try="$ac_link"
19317 case "(($ac_try" in
19318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19319 *) ac_try_echo=$ac_try;;
19321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19322 (eval "$ac_link") 2>conftest.er1
19324 grep -v '^ *+' conftest.er1 >conftest.err
19326 cat conftest.err >&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } && {
19329 test -z "$ac_c_werror_flag" ||
19330 test ! -s conftest.err
19331 } && test -s conftest$ac_exeext &&
19332 $as_test_x conftest$ac_exeext; then
19333 ac_cv_search_opendir=$ac_res
19335 echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19343 if test "${ac_cv_search_opendir+set}" = set; then
19347 if test "${ac_cv_search_opendir+set}" = set; then
19350 ac_cv_search_opendir=no
19352 rm conftest.$ac_ext
19353 LIBS=$ac_func_search_save_LIBS
19355 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19356 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19357 ac_res=$ac_cv_search_opendir
19358 if test "$ac_res" != no; then
19359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19364 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19365 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19366 if test "${ac_cv_search_opendir+set}" = set; then
19367 echo $ECHO_N "(cached) $ECHO_C" >&6
19369 ac_func_search_save_LIBS=$LIBS
19370 cat >conftest.$ac_ext <<_ACEOF
19373 cat confdefs.h >>conftest.$ac_ext
19374 cat >>conftest.$ac_ext <<_ACEOF
19375 /* end confdefs.h. */
19377 /* Override any GCC internal prototype to avoid an error.
19378 Use char because int might match the return type of a GCC
19379 builtin and then its argument prototype would still apply. */
19392 for ac_lib in '' x; do
19393 if test -z "$ac_lib"; then
19394 ac_res="none required"
19397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19399 rm -f conftest.$ac_objext conftest$ac_exeext
19400 if { (ac_try="$ac_link"
19401 case "(($ac_try" in
19402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403 *) ac_try_echo=$ac_try;;
19405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19406 (eval "$ac_link") 2>conftest.er1
19408 grep -v '^ *+' conftest.er1 >conftest.err
19410 cat conftest.err >&5
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } && {
19413 test -z "$ac_c_werror_flag" ||
19414 test ! -s conftest.err
19415 } && test -s conftest$ac_exeext &&
19416 $as_test_x conftest$ac_exeext; then
19417 ac_cv_search_opendir=$ac_res
19419 echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.$ac_ext >&5
19425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19427 if test "${ac_cv_search_opendir+set}" = set; then
19431 if test "${ac_cv_search_opendir+set}" = set; then
19434 ac_cv_search_opendir=no
19436 rm conftest.$ac_ext
19437 LIBS=$ac_func_search_save_LIBS
19439 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19440 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19441 ac_res=$ac_cv_search_opendir
19442 if test "$ac_res" != no; then
19443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19449 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19450 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19451 if test "${ac_cv_header_stdc+set}" = set; then
19452 echo $ECHO_N "(cached) $ECHO_C" >&6
19454 cat >conftest.$ac_ext <<_ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h. */
19460 #include <stdlib.h>
19461 #include <stdarg.h>
19462 #include <string.h>
19473 rm -f conftest.$ac_objext
19474 if { (ac_try="$ac_compile"
19475 case "(($ac_try" in
19476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477 *) ac_try_echo=$ac_try;;
19479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480 (eval "$ac_compile") 2>conftest.er1
19482 grep -v '^ *+' conftest.er1 >conftest.err
19484 cat conftest.err >&5
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); } && {
19487 test -z "$ac_c_werror_flag" ||
19488 test ! -s conftest.err
19489 } && test -s conftest.$ac_objext; then
19490 ac_cv_header_stdc=yes
19492 echo "$as_me: failed program was:" >&5
19493 sed 's/^/| /' conftest.$ac_ext >&5
19495 ac_cv_header_stdc=no
19498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19500 if test $ac_cv_header_stdc = yes; then
19501 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19502 cat >conftest.$ac_ext <<_ACEOF
19505 cat confdefs.h >>conftest.$ac_ext
19506 cat >>conftest.$ac_ext <<_ACEOF
19507 /* end confdefs.h. */
19508 #include <string.h>
19511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19512 $EGREP "memchr" >/dev/null 2>&1; then
19515 ac_cv_header_stdc=no
19521 if test $ac_cv_header_stdc = yes; then
19522 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19523 cat >conftest.$ac_ext <<_ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19529 #include <stdlib.h>
19532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19533 $EGREP "free" >/dev/null 2>&1; then
19536 ac_cv_header_stdc=no
19542 if test $ac_cv_header_stdc = yes; then
19543 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19544 if test "$cross_compiling" = yes; then
19547 cat >conftest.$ac_ext <<_ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h. */
19554 #include <stdlib.h>
19555 #if ((' ' & 0x0FF) == 0x020)
19556 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19557 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19559 # define ISLOWER(c) \
19560 (('a' <= (c) && (c) <= 'i') \
19561 || ('j' <= (c) && (c) <= 'r') \
19562 || ('s' <= (c) && (c) <= 'z'))
19563 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19566 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19571 for (i = 0; i < 256; i++)
19572 if (XOR (islower (i), ISLOWER (i))
19573 || toupper (i) != TOUPPER (i))
19578 rm -f conftest$ac_exeext
19579 if { (ac_try="$ac_link"
19580 case "(($ac_try" in
19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582 *) ac_try_echo=$ac_try;;
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585 (eval "$ac_link") 2>&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19589 { (case "(($ac_try" in
19590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591 *) ac_try_echo=$ac_try;;
19593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594 (eval "$ac_try") 2>&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); }; }; then
19600 echo "$as_me: program exited with status $ac_status" >&5
19601 echo "$as_me: failed program was:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19604 ( exit $ac_status )
19605 ac_cv_header_stdc=no
19607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19613 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19614 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19615 if test $ac_cv_header_stdc = yes; then
19617 cat >>confdefs.h <<\_ACEOF
19618 #define STDC_HEADERS 1
19623 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19624 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19625 if test "${ac_cv_header_time+set}" = set; then
19626 echo $ECHO_N "(cached) $ECHO_C" >&6
19628 cat >conftest.$ac_ext <<_ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19634 #include <sys/types.h>
19635 #include <sys/time.h>
19641 if ((struct tm *) 0)
19647 rm -f conftest.$ac_objext
19648 if { (ac_try="$ac_compile"
19649 case "(($ac_try" in
19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654 (eval "$ac_compile") 2>conftest.er1
19656 grep -v '^ *+' conftest.er1 >conftest.err
19658 cat conftest.err >&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } && {
19661 test -z "$ac_c_werror_flag" ||
19662 test ! -s conftest.err
19663 } && test -s conftest.$ac_objext; then
19664 ac_cv_header_time=yes
19666 echo "$as_me: failed program was:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19669 ac_cv_header_time=no
19672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19674 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19675 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19676 if test $ac_cv_header_time = yes; then
19678 cat >>confdefs.h <<\_ACEOF
19679 #define TIME_WITH_SYS_TIME 1
19684 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19685 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
19686 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19687 echo $ECHO_N "(cached) $ECHO_C" >&6
19689 cat >conftest.$ac_ext <<_ACEOF
19692 cat confdefs.h >>conftest.$ac_ext
19693 cat >>conftest.$ac_ext <<_ACEOF
19694 /* end confdefs.h. */
19695 #include <sys/types.h>
19696 #include <sys/wait.h>
19697 #ifndef WEXITSTATUS
19698 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19701 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19709 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19714 rm -f conftest.$ac_objext
19715 if { (ac_try="$ac_compile"
19716 case "(($ac_try" in
19717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718 *) ac_try_echo=$ac_try;;
19720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721 (eval "$ac_compile") 2>conftest.er1
19723 grep -v '^ *+' conftest.er1 >conftest.err
19725 cat conftest.err >&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); } && {
19728 test -z "$ac_c_werror_flag" ||
19729 test ! -s conftest.err
19730 } && test -s conftest.$ac_objext; then
19731 ac_cv_header_sys_wait_h=yes
19733 echo "$as_me: failed program was:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19736 ac_cv_header_sys_wait_h=no
19739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19741 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19742 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
19743 if test $ac_cv_header_sys_wait_h = yes; then
19745 cat >>confdefs.h <<\_ACEOF
19746 #define HAVE_SYS_WAIT_H 1
19825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19830 echo $ECHO_N "(cached) $ECHO_C" >&6
19832 ac_res=`eval echo '${'$as_ac_Header'}'`
19833 { echo "$as_me:$LINENO: result: $ac_res" >&5
19834 echo "${ECHO_T}$ac_res" >&6; }
19836 # Is the header compilable?
19837 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19839 cat >conftest.$ac_ext <<_ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h. */
19845 $ac_includes_default
19846 #include <$ac_header>
19848 rm -f conftest.$ac_objext
19849 if { (ac_try="$ac_compile"
19850 case "(($ac_try" in
19851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852 *) ac_try_echo=$ac_try;;
19854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19855 (eval "$ac_compile") 2>conftest.er1
19857 grep -v '^ *+' conftest.er1 >conftest.err
19859 cat conftest.err >&5
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); } && {
19862 test -z "$ac_c_werror_flag" ||
19863 test ! -s conftest.err
19864 } && test -s conftest.$ac_objext; then
19865 ac_header_compiler=yes
19867 echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19870 ac_header_compiler=no
19873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19875 echo "${ECHO_T}$ac_header_compiler" >&6; }
19877 # Is the header present?
19878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19880 cat >conftest.$ac_ext <<_ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h. */
19886 #include <$ac_header>
19888 if { (ac_try="$ac_cpp conftest.$ac_ext"
19889 case "(($ac_try" in
19890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891 *) ac_try_echo=$ac_try;;
19893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19896 grep -v '^ *+' conftest.er1 >conftest.err
19898 cat conftest.err >&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); } >/dev/null && {
19901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19902 test ! -s conftest.err
19904 ac_header_preproc=yes
19906 echo "$as_me: failed program was:" >&5
19907 sed 's/^/| /' conftest.$ac_ext >&5
19909 ac_header_preproc=no
19912 rm -f conftest.err conftest.$ac_ext
19913 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19914 echo "${ECHO_T}$ac_header_preproc" >&6; }
19916 # So? What about this header?
19917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19923 ac_header_preproc=yes
19926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19929 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19932 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19933 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19936 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19944 echo $ECHO_N "(cached) $ECHO_C" >&6
19946 eval "$as_ac_Header=\$ac_header_preproc"
19948 ac_res=`eval echo '${'$as_ac_Header'}'`
19949 { echo "$as_me:$LINENO: result: $ac_res" >&5
19950 echo "${ECHO_T}$ac_res" >&6; }
19953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19954 cat >>confdefs.h <<_ACEOF
19955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19964 for ac_header in net/if.h
19966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19972 cat >conftest.$ac_ext <<_ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h. */
19978 #ifdef HAVE_SYS_SOCKET_H
19979 # include <sys/socket.h>
19983 #include <$ac_header>
19985 rm -f conftest.$ac_objext
19986 if { (ac_try="$ac_compile"
19987 case "(($ac_try" in
19988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19989 *) ac_try_echo=$ac_try;;
19991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19992 (eval "$ac_compile") 2>conftest.er1
19994 grep -v '^ *+' conftest.er1 >conftest.err
19996 cat conftest.err >&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); } && {
19999 test -z "$ac_c_werror_flag" ||
20000 test ! -s conftest.err
20001 } && test -s conftest.$ac_objext; then
20002 eval "$as_ac_Header=yes"
20004 echo "$as_me: failed program was:" >&5
20005 sed 's/^/| /' conftest.$ac_ext >&5
20007 eval "$as_ac_Header=no"
20010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20012 ac_res=`eval echo '${'$as_ac_Header'}'`
20013 { echo "$as_me:$LINENO: result: $ac_res" >&5
20014 echo "${ECHO_T}$ac_res" >&6; }
20015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20016 cat >>confdefs.h <<_ACEOF
20017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20026 if test "${ac_cv_header_regex_h+set}" = set; then
20027 { echo "$as_me:$LINENO: checking for regex.h" >&5
20028 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
20029 if test "${ac_cv_header_regex_h+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20032 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20033 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
20035 # Is the header compilable?
20036 { echo "$as_me:$LINENO: checking regex.h usability" >&5
20037 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
20038 cat >conftest.$ac_ext <<_ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h. */
20044 $ac_includes_default
20047 rm -f conftest.$ac_objext
20048 if { (ac_try="$ac_compile"
20049 case "(($ac_try" in
20050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20051 *) ac_try_echo=$ac_try;;
20053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20054 (eval "$ac_compile") 2>conftest.er1
20056 grep -v '^ *+' conftest.er1 >conftest.err
20058 cat conftest.err >&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); } && {
20061 test -z "$ac_c_werror_flag" ||
20062 test ! -s conftest.err
20063 } && test -s conftest.$ac_objext; then
20064 ac_header_compiler=yes
20066 echo "$as_me: failed program was:" >&5
20067 sed 's/^/| /' conftest.$ac_ext >&5
20069 ac_header_compiler=no
20072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20074 echo "${ECHO_T}$ac_header_compiler" >&6; }
20076 # Is the header present?
20077 { echo "$as_me:$LINENO: checking regex.h presence" >&5
20078 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
20079 cat >conftest.$ac_ext <<_ACEOF
20082 cat confdefs.h >>conftest.$ac_ext
20083 cat >>conftest.$ac_ext <<_ACEOF
20084 /* end confdefs.h. */
20087 if { (ac_try="$ac_cpp conftest.$ac_ext"
20088 case "(($ac_try" in
20089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090 *) ac_try_echo=$ac_try;;
20092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20095 grep -v '^ *+' conftest.er1 >conftest.err
20097 cat conftest.err >&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); } >/dev/null && {
20100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20101 test ! -s conftest.err
20103 ac_header_preproc=yes
20105 echo "$as_me: failed program was:" >&5
20106 sed 's/^/| /' conftest.$ac_ext >&5
20108 ac_header_preproc=no
20111 rm -f conftest.err conftest.$ac_ext
20112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20113 echo "${ECHO_T}$ac_header_preproc" >&6; }
20115 # So? What about this header?
20116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20118 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20119 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20120 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20121 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20122 ac_header_preproc=yes
20125 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20126 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
20127 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20128 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20129 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20130 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20131 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20132 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
20133 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20134 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20135 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20136 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
20140 { echo "$as_me:$LINENO: checking for regex.h" >&5
20141 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
20142 if test "${ac_cv_header_regex_h+set}" = set; then
20143 echo $ECHO_N "(cached) $ECHO_C" >&6
20145 ac_cv_header_regex_h=$ac_header_preproc
20147 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20148 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
20151 if test $ac_cv_header_regex_h = yes; then
20153 cat >>confdefs.h <<\_ACEOF
20154 #define HAVE_REGEX_H
20160 if test "x$ac_cv_header_regex_h" = "xyes"; then
20163 cat >conftest.$ac_ext <<_ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h. */
20170 #ifdef REG_EXTENDED
20175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20176 $EGREP "yes" >/dev/null 2>&1; then
20178 cat >>confdefs.h <<\_ACEOF
20179 #define HAVE_REG_EXTENDED
20189 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
20192 cat >>confdefs.h <<\_ACEOF
20198 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
20201 cat >>confdefs.h <<\_ACEOF
20207 OPENSSL_INCLUDE="-DNO_OPENSSL"
20208 if test "x$WITH_OPENSSL" = xyes; then
20209 if test "x$OPENSSL_LIBS" = "x"; then
20210 { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
20211 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
20213 old_CPPFLAGS=$CPPFLAGS
20214 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
20215 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
20217 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
20230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20235 echo $ECHO_N "(cached) $ECHO_C" >&6
20237 ac_res=`eval echo '${'$as_ac_Header'}'`
20238 { echo "$as_me:$LINENO: result: $ac_res" >&5
20239 echo "${ECHO_T}$ac_res" >&6; }
20241 # Is the header compilable?
20242 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20244 cat >conftest.$ac_ext <<_ACEOF
20247 cat confdefs.h >>conftest.$ac_ext
20248 cat >>conftest.$ac_ext <<_ACEOF
20249 /* end confdefs.h. */
20250 $ac_includes_default
20251 #include <$ac_header>
20253 rm -f conftest.$ac_objext
20254 if { (ac_try="$ac_compile"
20255 case "(($ac_try" in
20256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20257 *) ac_try_echo=$ac_try;;
20259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20260 (eval "$ac_compile") 2>conftest.er1
20262 grep -v '^ *+' conftest.er1 >conftest.err
20264 cat conftest.err >&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); } && {
20267 test -z "$ac_c_werror_flag" ||
20268 test ! -s conftest.err
20269 } && test -s conftest.$ac_objext; then
20270 ac_header_compiler=yes
20272 echo "$as_me: failed program was:" >&5
20273 sed 's/^/| /' conftest.$ac_ext >&5
20275 ac_header_compiler=no
20278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20279 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20280 echo "${ECHO_T}$ac_header_compiler" >&6; }
20282 # Is the header present?
20283 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20285 cat >conftest.$ac_ext <<_ACEOF
20288 cat confdefs.h >>conftest.$ac_ext
20289 cat >>conftest.$ac_ext <<_ACEOF
20290 /* end confdefs.h. */
20291 #include <$ac_header>
20293 if { (ac_try="$ac_cpp conftest.$ac_ext"
20294 case "(($ac_try" in
20295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296 *) ac_try_echo=$ac_try;;
20298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20301 grep -v '^ *+' conftest.er1 >conftest.err
20303 cat conftest.err >&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } >/dev/null && {
20306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20307 test ! -s conftest.err
20309 ac_header_preproc=yes
20311 echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20314 ac_header_preproc=no
20317 rm -f conftest.err conftest.$ac_ext
20318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20319 echo "${ECHO_T}$ac_header_preproc" >&6; }
20321 # So? What about this header?
20322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20328 ac_header_preproc=yes
20331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20338 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20349 echo $ECHO_N "(cached) $ECHO_C" >&6
20351 eval "$as_ac_Header=\$ac_header_preproc"
20353 ac_res=`eval echo '${'$as_ac_Header'}'`
20354 { echo "$as_me:$LINENO: result: $ac_res" >&5
20355 echo "${ECHO_T}$ac_res" >&6; }
20358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20359 cat >>confdefs.h <<_ACEOF
20360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20370 if test "x$OPENSSL_LIBS" != "x"; then
20371 { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
20372 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
20373 cat >conftest.$ac_ext <<_ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h. */
20379 #include <openssl/crypto.h>
20380 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
20385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20386 $EGREP "yes" >/dev/null 2>&1; then
20391 if test "x$goodssl" != "xyes"; then
20392 { echo "$as_me:$LINENO: result: no" >&5
20393 echo "${ECHO_T}no" >&6; }
20396 { echo "$as_me:$LINENO: result: yes" >&5
20397 echo "${ECHO_T}yes" >&6; }
20398 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
20399 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
20401 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
20405 CPPFLAGS=$old_CPPFLAGS
20410 export OPENSSL_LIBS
20412 if test "x$PCAP_LIBS" = x; then
20413 { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
20414 echo "$as_me: skipping test for pcap.h." >&6;}
20416 if test "${ac_cv_header_pcap_h+set}" = set; then
20417 { echo "$as_me:$LINENO: checking for pcap.h" >&5
20418 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
20419 if test "${ac_cv_header_pcap_h+set}" = set; then
20420 echo $ECHO_N "(cached) $ECHO_C" >&6
20422 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
20423 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
20425 # Is the header compilable?
20426 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
20427 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
20428 cat >conftest.$ac_ext <<_ACEOF
20431 cat confdefs.h >>conftest.$ac_ext
20432 cat >>conftest.$ac_ext <<_ACEOF
20433 /* end confdefs.h. */
20434 $ac_includes_default
20437 rm -f conftest.$ac_objext
20438 if { (ac_try="$ac_compile"
20439 case "(($ac_try" in
20440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441 *) ac_try_echo=$ac_try;;
20443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444 (eval "$ac_compile") 2>conftest.er1
20446 grep -v '^ *+' conftest.er1 >conftest.err
20448 cat conftest.err >&5
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); } && {
20451 test -z "$ac_c_werror_flag" ||
20452 test ! -s conftest.err
20453 } && test -s conftest.$ac_objext; then
20454 ac_header_compiler=yes
20456 echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20459 ac_header_compiler=no
20462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20464 echo "${ECHO_T}$ac_header_compiler" >&6; }
20466 # Is the header present?
20467 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
20468 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
20469 cat >conftest.$ac_ext <<_ACEOF
20472 cat confdefs.h >>conftest.$ac_ext
20473 cat >>conftest.$ac_ext <<_ACEOF
20474 /* end confdefs.h. */
20477 if { (ac_try="$ac_cpp conftest.$ac_ext"
20478 case "(($ac_try" in
20479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20480 *) ac_try_echo=$ac_try;;
20482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20485 grep -v '^ *+' conftest.er1 >conftest.err
20487 cat conftest.err >&5
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); } >/dev/null && {
20490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20491 test ! -s conftest.err
20493 ac_header_preproc=yes
20495 echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.$ac_ext >&5
20498 ac_header_preproc=no
20501 rm -f conftest.err conftest.$ac_ext
20502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20503 echo "${ECHO_T}$ac_header_preproc" >&6; }
20505 # So? What about this header?
20506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20508 { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
20509 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20510 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
20511 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
20512 ac_header_preproc=yes
20515 { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
20516 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
20517 { echo "$as_me:$LINENO: WARNING: pcap.h: check for missing prerequisite headers?" >&5
20518 echo "$as_me: WARNING: pcap.h: check for missing prerequisite headers?" >&2;}
20519 { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
20520 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
20521 { echo "$as_me:$LINENO: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&5
20522 echo "$as_me: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
20523 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
20524 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
20525 { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
20526 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
20530 { echo "$as_me:$LINENO: checking for pcap.h" >&5
20531 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
20532 if test "${ac_cv_header_pcap_h+set}" = set; then
20533 echo $ECHO_N "(cached) $ECHO_C" >&6
20535 ac_cv_header_pcap_h=$ac_header_preproc
20537 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
20538 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
20541 if test $ac_cv_header_pcap_h = yes; then
20543 cat >>confdefs.h <<\_ACEOF
20544 #define HAVE_PCAP_H 1
20549 { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
20550 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
20559 { echo "$as_me:$LINENO: checking for off_t" >&5
20560 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
20561 if test "${ac_cv_type_off_t+set}" = set; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20564 cat >conftest.$ac_ext <<_ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h. */
20570 $ac_includes_default
20571 typedef off_t ac__type_new_;
20575 if ((ac__type_new_ *) 0)
20577 if (sizeof (ac__type_new_))
20583 rm -f conftest.$ac_objext
20584 if { (ac_try="$ac_compile"
20585 case "(($ac_try" in
20586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20587 *) ac_try_echo=$ac_try;;
20589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20590 (eval "$ac_compile") 2>conftest.er1
20592 grep -v '^ *+' conftest.er1 >conftest.err
20594 cat conftest.err >&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } && {
20597 test -z "$ac_c_werror_flag" ||
20598 test ! -s conftest.err
20599 } && test -s conftest.$ac_objext; then
20600 ac_cv_type_off_t=yes
20602 echo "$as_me: failed program was:" >&5
20603 sed 's/^/| /' conftest.$ac_ext >&5
20605 ac_cv_type_off_t=no
20608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20610 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20611 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
20612 if test $ac_cv_type_off_t = yes; then
20616 cat >>confdefs.h <<_ACEOF
20617 #define off_t long int
20622 { echo "$as_me:$LINENO: checking for pid_t" >&5
20623 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
20624 if test "${ac_cv_type_pid_t+set}" = set; then
20625 echo $ECHO_N "(cached) $ECHO_C" >&6
20627 cat >conftest.$ac_ext <<_ACEOF
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h. */
20633 $ac_includes_default
20634 typedef pid_t ac__type_new_;
20638 if ((ac__type_new_ *) 0)
20640 if (sizeof (ac__type_new_))
20646 rm -f conftest.$ac_objext
20647 if { (ac_try="$ac_compile"
20648 case "(($ac_try" in
20649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650 *) ac_try_echo=$ac_try;;
20652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653 (eval "$ac_compile") 2>conftest.er1
20655 grep -v '^ *+' conftest.er1 >conftest.err
20657 cat conftest.err >&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); } && {
20660 test -z "$ac_c_werror_flag" ||
20661 test ! -s conftest.err
20662 } && test -s conftest.$ac_objext; then
20663 ac_cv_type_pid_t=yes
20665 echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20668 ac_cv_type_pid_t=no
20671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20673 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20674 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
20675 if test $ac_cv_type_pid_t = yes; then
20679 cat >>confdefs.h <<_ACEOF
20685 { echo "$as_me:$LINENO: checking for size_t" >&5
20686 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20687 if test "${ac_cv_type_size_t+set}" = set; then
20688 echo $ECHO_N "(cached) $ECHO_C" >&6
20690 cat >conftest.$ac_ext <<_ACEOF
20693 cat confdefs.h >>conftest.$ac_ext
20694 cat >>conftest.$ac_ext <<_ACEOF
20695 /* end confdefs.h. */
20696 $ac_includes_default
20697 typedef size_t ac__type_new_;
20701 if ((ac__type_new_ *) 0)
20703 if (sizeof (ac__type_new_))
20709 rm -f conftest.$ac_objext
20710 if { (ac_try="$ac_compile"
20711 case "(($ac_try" in
20712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713 *) ac_try_echo=$ac_try;;
20715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716 (eval "$ac_compile") 2>conftest.er1
20718 grep -v '^ *+' conftest.er1 >conftest.err
20720 cat conftest.err >&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); } && {
20723 test -z "$ac_c_werror_flag" ||
20724 test ! -s conftest.err
20725 } && test -s conftest.$ac_objext; then
20726 ac_cv_type_size_t=yes
20728 echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20731 ac_cv_type_size_t=no
20734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20736 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20737 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20738 if test $ac_cv_type_size_t = yes; then
20742 cat >>confdefs.h <<_ACEOF
20743 #define size_t unsigned int
20748 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20749 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
20750 if test "${ac_cv_type_uid_t+set}" = set; then
20751 echo $ECHO_N "(cached) $ECHO_C" >&6
20753 cat >conftest.$ac_ext <<_ACEOF
20756 cat confdefs.h >>conftest.$ac_ext
20757 cat >>conftest.$ac_ext <<_ACEOF
20758 /* end confdefs.h. */
20759 #include <sys/types.h>
20762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20763 $EGREP "uid_t" >/dev/null 2>&1; then
20764 ac_cv_type_uid_t=yes
20766 ac_cv_type_uid_t=no
20771 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20772 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
20773 if test $ac_cv_type_uid_t = no; then
20775 cat >>confdefs.h <<\_ACEOF
20780 cat >>confdefs.h <<\_ACEOF
20788 { echo "$as_me:$LINENO: checking for socklen_t" >&5
20789 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
20790 if test "${ac_cv_type_socklen_t+set}" = set; then
20791 echo $ECHO_N "(cached) $ECHO_C" >&6
20793 ac_cv_type_socklen_t=no
20794 cat >conftest.$ac_ext <<_ACEOF
20797 cat confdefs.h >>conftest.$ac_ext
20798 cat >>conftest.$ac_ext <<_ACEOF
20799 /* end confdefs.h. */
20800 #ifdef HAVE_SYS_TYPES_H
20801 #include <sys/types.h>
20803 #ifdef HAVE_SYS_SOCKET_H
20804 #include <sys/socket.h>
20815 rm -f conftest.$ac_objext
20816 if { (ac_try="$ac_compile"
20817 case "(($ac_try" in
20818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819 *) ac_try_echo=$ac_try;;
20821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20822 (eval "$ac_compile") 2>conftest.er1
20824 grep -v '^ *+' conftest.er1 >conftest.err
20826 cat conftest.err >&5
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); } && {
20829 test -z "$ac_c_werror_flag" ||
20830 test ! -s conftest.err
20831 } && test -s conftest.$ac_objext; then
20832 ac_cv_type_socklen_t=yes
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20844 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
20845 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
20847 if test "$ac_cv_type_socklen_t" != "yes"; then
20849 cat >>confdefs.h <<\_ACEOF
20850 #define socklen_t int
20857 { echo "$as_me:$LINENO: checking for uint8_t" >&5
20858 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
20859 if test "${ac_cv_type_uint8_t+set}" = set; then
20860 echo $ECHO_N "(cached) $ECHO_C" >&6
20862 ac_cv_type_uint8_t=no
20863 cat >conftest.$ac_ext <<_ACEOF
20866 cat confdefs.h >>conftest.$ac_ext
20867 cat >>conftest.$ac_ext <<_ACEOF
20868 /* end confdefs.h. */
20869 #ifdef HAVE_INTTYPES_H
20870 #include <inttypes.h>
20872 #ifdef HAVE_STDINT_H
20873 #include <stdint.h>
20884 rm -f conftest.$ac_objext
20885 if { (ac_try="$ac_compile"
20886 case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891 (eval "$ac_compile") 2>conftest.er1
20893 grep -v '^ *+' conftest.er1 >conftest.err
20895 cat conftest.err >&5
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); } && {
20898 test -z "$ac_c_werror_flag" ||
20899 test ! -s conftest.err
20900 } && test -s conftest.$ac_objext; then
20901 ac_cv_type_uint8_t=yes
20903 echo "$as_me: failed program was:" >&5
20904 sed 's/^/| /' conftest.$ac_ext >&5
20909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20913 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
20914 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
20916 if test "$ac_cv_type_uint8_t" != "yes"; then
20918 cat >>confdefs.h <<\_ACEOF
20919 #define uint8_t unsigned char
20926 { echo "$as_me:$LINENO: checking for uint16_t" >&5
20927 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
20928 if test "${ac_cv_type_uint16_t+set}" = set; then
20929 echo $ECHO_N "(cached) $ECHO_C" >&6
20931 ac_cv_type_uint16_t=no
20932 cat >conftest.$ac_ext <<_ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h. */
20938 #ifdef HAVE_INTTYPES_H
20939 #include <inttypes.h>
20941 #ifdef HAVE_STDINT_H
20942 #include <stdint.h>
20953 rm -f conftest.$ac_objext
20954 if { (ac_try="$ac_compile"
20955 case "(($ac_try" in
20956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20957 *) ac_try_echo=$ac_try;;
20959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20960 (eval "$ac_compile") 2>conftest.er1
20962 grep -v '^ *+' conftest.er1 >conftest.err
20964 cat conftest.err >&5
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); } && {
20967 test -z "$ac_c_werror_flag" ||
20968 test ! -s conftest.err
20969 } && test -s conftest.$ac_objext; then
20970 ac_cv_type_uint16_t=yes
20972 echo "$as_me: failed program was:" >&5
20973 sed 's/^/| /' conftest.$ac_ext >&5
20978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20982 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
20983 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
20985 if test "$ac_cv_type_uint16_t" != "yes"; then
20987 cat >>confdefs.h <<\_ACEOF
20988 #define uint16_t unsigned short
20995 { echo "$as_me:$LINENO: checking for uint32_t" >&5
20996 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
20997 if test "${ac_cv_type_uint32_t+set}" = set; then
20998 echo $ECHO_N "(cached) $ECHO_C" >&6
21000 ac_cv_type_uint32_t=no
21001 cat >conftest.$ac_ext <<_ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h. */
21007 #ifdef HAVE_INTTYPES_H
21008 #include <inttypes.h>
21010 #ifdef HAVE_STDINT_H
21011 #include <stdint.h>
21022 rm -f conftest.$ac_objext
21023 if { (ac_try="$ac_compile"
21024 case "(($ac_try" in
21025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026 *) ac_try_echo=$ac_try;;
21028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21029 (eval "$ac_compile") 2>conftest.er1
21031 grep -v '^ *+' conftest.er1 >conftest.err
21033 cat conftest.err >&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); } && {
21036 test -z "$ac_c_werror_flag" ||
21037 test ! -s conftest.err
21038 } && test -s conftest.$ac_objext; then
21039 ac_cv_type_uint32_t=yes
21041 echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21051 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
21052 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
21054 if test "$ac_cv_type_uint32_t" != "yes"; then
21056 cat >>confdefs.h <<\_ACEOF
21057 #define uint32_t unsigned int
21063 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
21064 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
21065 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
21066 echo $ECHO_N "(cached) $ECHO_C" >&6
21068 cat >conftest.$ac_ext <<_ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h. */
21075 #ifdef HAVE_NETINET_IN_H
21076 #include <netinet/in.h>
21080 typedef struct in6_addr ac__type_new_;
21084 if ((ac__type_new_ *) 0)
21086 if (sizeof (ac__type_new_))
21092 rm -f conftest.$ac_objext
21093 if { (ac_try="$ac_compile"
21094 case "(($ac_try" in
21095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096 *) ac_try_echo=$ac_try;;
21098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21099 (eval "$ac_compile") 2>conftest.er1
21101 grep -v '^ *+' conftest.er1 >conftest.err
21103 cat conftest.err >&5
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); } && {
21106 test -z "$ac_c_werror_flag" ||
21107 test ! -s conftest.err
21108 } && test -s conftest.$ac_objext; then
21109 ac_cv_type_struct_in6_addr=yes
21111 echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21114 ac_cv_type_struct_in6_addr=no
21117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21119 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
21120 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
21121 if test $ac_cv_type_struct_in6_addr = yes; then
21123 cat >>confdefs.h <<\_ACEOF
21124 #define HAVE_STRUCT_IN6_ADDR 1
21130 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
21131 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
21132 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
21133 echo $ECHO_N "(cached) $ECHO_C" >&6
21135 cat >conftest.$ac_ext <<_ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h. */
21142 #ifdef HAVE_NETINET_IN_H
21143 #include <netinet/in.h>
21145 #ifdef HAVE_SYS_SOCKET_H
21146 #include <sys/socket.h>
21150 typedef struct sockaddr_storage ac__type_new_;
21154 if ((ac__type_new_ *) 0)
21156 if (sizeof (ac__type_new_))
21162 rm -f conftest.$ac_objext
21163 if { (ac_try="$ac_compile"
21164 case "(($ac_try" in
21165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21166 *) ac_try_echo=$ac_try;;
21168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21169 (eval "$ac_compile") 2>conftest.er1
21171 grep -v '^ *+' conftest.er1 >conftest.err
21173 cat conftest.err >&5
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); } && {
21176 test -z "$ac_c_werror_flag" ||
21177 test ! -s conftest.err
21178 } && test -s conftest.$ac_objext; then
21179 ac_cv_type_struct_sockaddr_storage=yes
21181 echo "$as_me: failed program was:" >&5
21182 sed 's/^/| /' conftest.$ac_ext >&5
21184 ac_cv_type_struct_sockaddr_storage=no
21187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21189 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
21190 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
21191 if test $ac_cv_type_struct_sockaddr_storage = yes; then
21193 cat >>confdefs.h <<\_ACEOF
21194 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
21200 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
21201 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
21202 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
21203 echo $ECHO_N "(cached) $ECHO_C" >&6
21205 cat >conftest.$ac_ext <<_ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h. */
21212 #ifdef HAVE_NETINET_IN_H
21213 #include <netinet/in.h>
21217 typedef struct sockaddr_in6 ac__type_new_;
21221 if ((ac__type_new_ *) 0)
21223 if (sizeof (ac__type_new_))
21229 rm -f conftest.$ac_objext
21230 if { (ac_try="$ac_compile"
21231 case "(($ac_try" in
21232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21233 *) ac_try_echo=$ac_try;;
21235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21236 (eval "$ac_compile") 2>conftest.er1
21238 grep -v '^ *+' conftest.er1 >conftest.err
21240 cat conftest.err >&5
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); } && {
21243 test -z "$ac_c_werror_flag" ||
21244 test ! -s conftest.err
21245 } && test -s conftest.$ac_objext; then
21246 ac_cv_type_struct_sockaddr_in6=yes
21248 echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21251 ac_cv_type_struct_sockaddr_in6=no
21254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21256 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
21257 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
21258 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
21260 cat >>confdefs.h <<\_ACEOF
21261 #define HAVE_STRUCT_SOCKADDR_IN6 1
21267 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
21268 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
21269 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
21270 echo $ECHO_N "(cached) $ECHO_C" >&6
21272 cat >conftest.$ac_ext <<_ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h. */
21279 #ifdef HAVE_SYS_TYPES_H
21280 #include <sys/types.h>
21282 #ifdef HAVE_SYS_SOCKET_H
21283 #include <sys/socket.h>
21285 #ifdef HAVE_NETDB_H
21290 typedef struct addrinfo ac__type_new_;
21294 if ((ac__type_new_ *) 0)
21296 if (sizeof (ac__type_new_))
21302 rm -f conftest.$ac_objext
21303 if { (ac_try="$ac_compile"
21304 case "(($ac_try" in
21305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306 *) ac_try_echo=$ac_try;;
21308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21309 (eval "$ac_compile") 2>conftest.er1
21311 grep -v '^ *+' conftest.er1 >conftest.err
21313 cat conftest.err >&5
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); } && {
21316 test -z "$ac_c_werror_flag" ||
21317 test ! -s conftest.err
21318 } && test -s conftest.$ac_objext; then
21319 ac_cv_type_struct_addrinfo=yes
21321 echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21324 ac_cv_type_struct_addrinfo=no
21327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21329 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
21330 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
21331 if test $ac_cv_type_struct_addrinfo = yes; then
21333 cat >>confdefs.h <<\_ACEOF
21334 #define HAVE_STRUCT_ADDRINFO 1
21407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21411 echo $ECHO_N "(cached) $ECHO_C" >&6
21413 cat >conftest.$ac_ext <<_ACEOF
21416 cat confdefs.h >>conftest.$ac_ext
21417 cat >>conftest.$ac_ext <<_ACEOF
21418 /* end confdefs.h. */
21419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21421 #define $ac_func innocuous_$ac_func
21423 /* System header to define __stub macros and hopefully few prototypes,
21424 which can conflict with char $ac_func (); below.
21425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21426 <limits.h> exists even on freestanding compilers. */
21429 # include <limits.h>
21431 # include <assert.h>
21436 /* Override any GCC internal prototype to avoid an error.
21437 Use char because int might match the return type of a GCC
21438 builtin and then its argument prototype would still apply. */
21443 /* The GNU C library defines this for functions which it implements
21444 to always fail with ENOSYS. Some functions are actually named
21445 something starting with __ and the normal name is an alias. */
21446 #if defined __stub_$ac_func || defined __stub___$ac_func
21453 return $ac_func ();
21458 rm -f conftest.$ac_objext conftest$ac_exeext
21459 if { (ac_try="$ac_link"
21460 case "(($ac_try" in
21461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462 *) ac_try_echo=$ac_try;;
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465 (eval "$ac_link") 2>conftest.er1
21467 grep -v '^ *+' conftest.er1 >conftest.err
21469 cat conftest.err >&5
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); } && {
21472 test -z "$ac_c_werror_flag" ||
21473 test ! -s conftest.err
21474 } && test -s conftest$ac_exeext &&
21475 $as_test_x conftest$ac_exeext; then
21476 eval "$as_ac_var=yes"
21478 echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21481 eval "$as_ac_var=no"
21484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21485 conftest$ac_exeext conftest.$ac_ext
21487 ac_res=`eval echo '${'$as_ac_var'}'`
21488 { echo "$as_me:$LINENO: result: $ac_res" >&5
21489 echo "${ECHO_T}$ac_res" >&6; }
21490 if test `eval echo '${'$as_ac_var'}'` = yes; then
21491 cat >>confdefs.h <<_ACEOF
21492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21508 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
21509 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
21510 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
21511 echo $ECHO_N "(cached) $ECHO_C" >&6
21513 cat >conftest.$ac_ext <<_ACEOF
21516 cat confdefs.h >>conftest.$ac_ext
21517 cat >>conftest.$ac_ext <<_ACEOF
21518 /* end confdefs.h. */
21521 #include <string.h>
21522 #ifdef HAVE_UNISTD_H
21523 #include <unistd.h>
21525 #ifdef HAVE_CRYPT_H
21528 #ifdef HAVE_ERRNO_H
21531 #ifdef HAVE_RESOURCE_H
21532 #include <resource.h>
21534 #ifdef HAVE_GETOPT_H
21535 #include <getopt.h>
21537 #ifdef HAVE_MALLOC_H
21538 #include <malloc.h>
21543 #ifdef HAVE_UTMPX_H
21546 #ifdef HAVE_SYS_SELECT_H
21547 #include <sys/select.h>
21549 #ifdef HAVE_DLFCN_H
21552 #ifdef HAVE_REGEX_H
21555 #ifdef HAVE_SYSLOG_H
21556 #include <syslog.h>
21558 #ifdef HAVE_INTTYPES_H
21559 #include <inttypes.h>
21561 #ifdef HAVE_STDINT_H
21562 #include <stdint.h>
21564 #ifdef HAVE_ARPA_INET_H
21565 #include <arpa/inet.h>
21571 char *(*pfn) = (char *(*)) $ac_func
21576 rm -f conftest.$ac_objext
21577 if { (ac_try="$ac_compile"
21578 case "(($ac_try" in
21579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21580 *) ac_try_echo=$ac_try;;
21582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21583 (eval "$ac_compile") 2>conftest.er1
21585 grep -v '^ *+' conftest.er1 >conftest.err
21587 cat conftest.err >&5
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); } && {
21590 test -z "$ac_c_werror_flag" ||
21591 test ! -s conftest.err
21592 } && test -s conftest.$ac_objext; then
21593 eval "radius_cv_decl_needed_$ac_func=no"
21595 echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.$ac_ext >&5
21598 eval "radius_cv_decl_needed_$ac_func=yes"
21601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21604 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
21605 { echo "$as_me:$LINENO: result: yes" >&5
21606 echo "${ECHO_T}yes" >&6; }
21607 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21608 cat >>confdefs.h <<_ACEOF
21609 #define $radius_tr_decl 1
21613 { echo "$as_me:$LINENO: result: no" >&5
21614 echo "${ECHO_T}no" >&6; }
21620 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21621 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
21622 if test "${ac_cv_type_signal+set}" = set; then
21623 echo $ECHO_N "(cached) $ECHO_C" >&6
21625 cat >conftest.$ac_ext <<_ACEOF
21628 cat confdefs.h >>conftest.$ac_ext
21629 cat >>conftest.$ac_ext <<_ACEOF
21630 /* end confdefs.h. */
21631 #include <sys/types.h>
21632 #include <signal.h>
21637 return *(signal (0, 0)) (0) == 1;
21642 rm -f conftest.$ac_objext
21643 if { (ac_try="$ac_compile"
21644 case "(($ac_try" in
21645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21646 *) ac_try_echo=$ac_try;;
21648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21649 (eval "$ac_compile") 2>conftest.er1
21651 grep -v '^ *+' conftest.er1 >conftest.err
21653 cat conftest.err >&5
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); } && {
21656 test -z "$ac_c_werror_flag" ||
21657 test ! -s conftest.err
21658 } && test -s conftest.$ac_objext; then
21659 ac_cv_type_signal=int
21661 echo "$as_me: failed program was:" >&5
21662 sed 's/^/| /' conftest.$ac_ext >&5
21664 ac_cv_type_signal=void
21667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21669 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21670 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
21672 cat >>confdefs.h <<_ACEOF
21673 #define RETSIGTYPE $ac_cv_type_signal
21678 if test "x$ac_cv_header_utmpx_h" = "xyes"
21681 { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
21682 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
21685 cat >conftest.$ac_ext <<_ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h. */
21694 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21700 int foo = offsetof(struct utmpx, ut_xtime)
21705 rm -f conftest.$ac_objext
21706 if { (ac_try="$ac_compile"
21707 case "(($ac_try" in
21708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21709 *) ac_try_echo=$ac_try;;
21711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21712 (eval "$ac_compile") 2>conftest.er1
21714 grep -v '^ *+' conftest.er1 >conftest.err
21716 cat conftest.err >&5
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); } && {
21719 test -z "$ac_c_werror_flag" ||
21720 test ! -s conftest.err
21721 } && test -s conftest.$ac_objext; then
21724 echo "$as_me: failed program was:" >&5
21725 sed 's/^/| /' conftest.$ac_ext >&5
21730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21732 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
21733 if test "x$has_element" != "x"; then
21734 { echo "$as_me:$LINENO: result: yes" >&5
21735 echo "${ECHO_T}yes" >&6; }
21736 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
21738 { echo "$as_me:$LINENO: result: no" >&5
21739 echo "${ECHO_T}no" >&6; }
21740 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
21743 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
21746 cat >>confdefs.h <<\_ACEOF
21747 #define ut_xtime ut_tv.tv_sec
21754 { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
21755 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
21758 cat >conftest.$ac_ext <<_ACEOF
21761 cat confdefs.h >>conftest.$ac_ext
21762 cat >>conftest.$ac_ext <<_ACEOF
21763 /* end confdefs.h. */
21765 #include <netinet/in.h>
21767 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21773 int foo = offsetof(struct in_pktinfo, ipi_addr)
21778 rm -f conftest.$ac_objext
21779 if { (ac_try="$ac_compile"
21780 case "(($ac_try" in
21781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21782 *) ac_try_echo=$ac_try;;
21784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21785 (eval "$ac_compile") 2>conftest.er1
21787 grep -v '^ *+' conftest.er1 >conftest.err
21789 cat conftest.err >&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); } && {
21792 test -z "$ac_c_werror_flag" ||
21793 test ! -s conftest.err
21794 } && test -s conftest.$ac_objext; then
21797 echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21805 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
21806 if test "x$has_element" != "x"; then
21807 { echo "$as_me:$LINENO: result: yes" >&5
21808 echo "${ECHO_T}yes" >&6; }
21809 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
21811 { echo "$as_me:$LINENO: result: no" >&5
21812 echo "${ECHO_T}no" >&6; }
21813 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
21816 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
21819 cat >>confdefs.h <<\_ACEOF
21820 #define HAVE_IP_PKTINFO
21826 { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
21827 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
21830 cat >conftest.$ac_ext <<_ACEOF
21833 cat confdefs.h >>conftest.$ac_ext
21834 cat >>conftest.$ac_ext <<_ACEOF
21835 /* end confdefs.h. */
21837 #include <netinet/in.h>
21839 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21845 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
21850 rm -f conftest.$ac_objext
21851 if { (ac_try="$ac_compile"
21852 case "(($ac_try" in
21853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854 *) ac_try_echo=$ac_try;;
21856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857 (eval "$ac_compile") 2>conftest.er1
21859 grep -v '^ *+' conftest.er1 >conftest.err
21861 cat conftest.err >&5
21862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863 (exit $ac_status); } && {
21864 test -z "$ac_c_werror_flag" ||
21865 test ! -s conftest.err
21866 } && test -s conftest.$ac_objext; then
21869 echo "$as_me: failed program was:" >&5
21870 sed 's/^/| /' conftest.$ac_ext >&5
21875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21877 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
21878 if test "x$has_element" != "x"; then
21879 { echo "$as_me:$LINENO: result: yes" >&5
21880 echo "${ECHO_T}yes" >&6; }
21881 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
21883 { echo "$as_me:$LINENO: result: no" >&5
21884 echo "${ECHO_T}no" >&6; }
21885 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
21888 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
21891 cat >>confdefs.h <<\_ACEOF
21892 #define HAVE_IN6_PKTINFO
21898 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21899 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21900 if test "${ac_cv_c_const+set}" = set; then
21901 echo $ECHO_N "(cached) $ECHO_C" >&6
21903 cat >conftest.$ac_ext <<_ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h. */
21913 /* FIXME: Include the comments suggested by Paul. */
21914 #ifndef __cplusplus
21915 /* Ultrix mips cc rejects this. */
21916 typedef int charset[2];
21918 /* SunOS 4.1.1 cc rejects this. */
21919 char const *const *pcpcc;
21921 /* NEC SVR4.0.2 mips cc rejects this. */
21922 struct point {int x, y;};
21923 static struct point const zero = {0,0};
21924 /* AIX XL C 1.02.0.0 rejects this.
21925 It does not let you subtract one const X* pointer from another in
21926 an arm of an if-expression whose if-part is not a constant
21928 const char *g = "string";
21929 pcpcc = &g + (g ? g-g : 0);
21930 /* HPUX 7.0 cc rejects these. */
21932 ppc = (char**) pcpcc;
21933 pcpcc = (char const *const *) ppc;
21934 { /* SCO 3.2v4 cc rejects this. */
21936 char const *s = 0 ? (char *) 0 : (char const *) 0;
21941 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21942 int x[] = {25, 17};
21943 const int *foo = &x[0];
21946 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21947 typedef const int *iptr;
21951 { /* AIX XL C 1.02.0.0 rejects this saying
21952 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21953 struct s { int j; const int *ap[3]; };
21954 struct s *b; b->j = 5;
21956 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21957 const int foo = 10;
21958 if (!foo) return 0;
21960 return !cs[0] && !zero.x;
21967 rm -f conftest.$ac_objext
21968 if { (ac_try="$ac_compile"
21969 case "(($ac_try" in
21970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21971 *) ac_try_echo=$ac_try;;
21973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21974 (eval "$ac_compile") 2>conftest.er1
21976 grep -v '^ *+' conftest.er1 >conftest.err
21978 cat conftest.err >&5
21979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); } && {
21981 test -z "$ac_c_werror_flag" ||
21982 test ! -s conftest.err
21983 } && test -s conftest.$ac_objext; then
21986 echo "$as_me: failed program was:" >&5
21987 sed 's/^/| /' conftest.$ac_ext >&5
21992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21994 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21995 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21996 if test $ac_cv_c_const = no; then
21998 cat >>confdefs.h <<\_ACEOF
22005 { echo "$as_me:$LINENO: checking type of OS" >&5
22006 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
22008 { echo "$as_me:$LINENO: result: $OS" >&5
22009 echo "${ECHO_T}$OS" >&6; }
22010 if test "$OS" = "OS/2"; then
22017 if test "x$GCC" = "xyes"; then
22018 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22021 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22022 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
22023 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22024 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22025 CFLAGS="$CFLAGS $devflags"
22027 { echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
22028 echo "${ECHO_T}yes. Using $devflags" >&6; }
22031 CFLAGS="$CFLAGS -DNDEBUG"
22033 { echo "$as_me:$LINENO: result: no." >&5
22034 echo "${ECHO_T}no." >&6; }
22038 { echo "$as_me:$LINENO: checking for TLS" >&5
22039 echo $ECHO_N "checking for TLS... $ECHO_C" >&6; }
22040 if test "$cross_compiling" = yes; then
22043 cat >conftest.$ac_ext <<_ACEOF
22046 cat confdefs.h >>conftest.$ac_ext
22047 cat >>conftest.$ac_ext <<_ACEOF
22048 /* end confdefs.h. */
22049 static __thread int val; int main() { return 0; }
22051 rm -f conftest$ac_exeext
22052 if { (ac_try="$ac_link"
22053 case "(($ac_try" in
22054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055 *) ac_try_echo=$ac_try;;
22057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22058 (eval "$ac_link") 2>&5
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22062 { (case "(($ac_try" in
22063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22064 *) ac_try_echo=$ac_try;;
22066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22067 (eval "$ac_try") 2>&5
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); }; }; then
22073 echo "$as_me: program exited with status $ac_status" >&5
22074 echo "$as_me: failed program was:" >&5
22075 sed 's/^/| /' conftest.$ac_ext >&5
22077 ( exit $ac_status )
22080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22084 { echo "$as_me:$LINENO: result: $have_tls" >&5
22085 echo "${ECHO_T}$have_tls" >&6; }
22086 if test "$have_tls" = "yes"; then
22088 cat >>confdefs.h <<\_ACEOF
22089 #define HAVE_THREAD_TLS 1
22096 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22097 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22098 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22099 echo $ECHO_N "(cached) $ECHO_C" >&6
22101 ac_check_lib_save_LIBS=$LIBS
22102 LIBS="-lcrypt $LIBS"
22103 cat >conftest.$ac_ext <<_ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h. */
22110 /* Override any GCC internal prototype to avoid an error.
22111 Use char because int might match the return type of a GCC
22112 builtin and then its argument prototype would still apply. */
22125 rm -f conftest.$ac_objext conftest$ac_exeext
22126 if { (ac_try="$ac_link"
22127 case "(($ac_try" in
22128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22129 *) ac_try_echo=$ac_try;;
22131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22132 (eval "$ac_link") 2>conftest.er1
22134 grep -v '^ *+' conftest.er1 >conftest.err
22136 cat conftest.err >&5
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); } && {
22139 test -z "$ac_c_werror_flag" ||
22140 test ! -s conftest.err
22141 } && test -s conftest$ac_exeext &&
22142 $as_test_x conftest$ac_exeext; then
22143 ac_cv_lib_crypt_crypt=yes
22145 echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22148 ac_cv_lib_crypt_crypt=no
22151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22152 conftest$ac_exeext conftest.$ac_ext
22153 LIBS=$ac_check_lib_save_LIBS
22155 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22156 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22157 if test $ac_cv_lib_crypt_crypt = yes; then
22162 if test "$CRYPTLIB" != ""; then
22164 cat >>confdefs.h <<\_ACEOF
22169 { echo "$as_me:$LINENO: checking for crypt" >&5
22170 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
22171 if test "${ac_cv_func_crypt+set}" = set; then
22172 echo $ECHO_N "(cached) $ECHO_C" >&6
22174 cat >conftest.$ac_ext <<_ACEOF
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h. */
22180 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
22181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22182 #define crypt innocuous_crypt
22184 /* System header to define __stub macros and hopefully few prototypes,
22185 which can conflict with char crypt (); below.
22186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22187 <limits.h> exists even on freestanding compilers. */
22190 # include <limits.h>
22192 # include <assert.h>
22197 /* Override any GCC internal prototype to avoid an error.
22198 Use char because int might match the return type of a GCC
22199 builtin and then its argument prototype would still apply. */
22204 /* The GNU C library defines this for functions which it implements
22205 to always fail with ENOSYS. Some functions are actually named
22206 something starting with __ and the normal name is an alias. */
22207 #if defined __stub_crypt || defined __stub___crypt
22219 rm -f conftest.$ac_objext conftest$ac_exeext
22220 if { (ac_try="$ac_link"
22221 case "(($ac_try" in
22222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223 *) ac_try_echo=$ac_try;;
22225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226 (eval "$ac_link") 2>conftest.er1
22228 grep -v '^ *+' conftest.er1 >conftest.err
22230 cat conftest.err >&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); } && {
22233 test -z "$ac_c_werror_flag" ||
22234 test ! -s conftest.err
22235 } && test -s conftest$ac_exeext &&
22236 $as_test_x conftest$ac_exeext; then
22237 ac_cv_func_crypt=yes
22239 echo "$as_me: failed program was:" >&5
22240 sed 's/^/| /' conftest.$ac_ext >&5
22242 ac_cv_func_crypt=no
22245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22246 conftest$ac_exeext conftest.$ac_ext
22248 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
22249 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
22250 if test $ac_cv_func_crypt = yes; then
22252 cat >>confdefs.h <<\_ACEOF
22260 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
22261 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
22262 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
22263 echo $ECHO_N "(cached) $ECHO_C" >&6
22265 ac_check_lib_save_LIBS=$LIBS
22266 LIBS="-lcipher $LIBS"
22267 cat >conftest.$ac_ext <<_ACEOF
22270 cat confdefs.h >>conftest.$ac_ext
22271 cat >>conftest.$ac_ext <<_ACEOF
22272 /* end confdefs.h. */
22274 /* Override any GCC internal prototype to avoid an error.
22275 Use char because int might match the return type of a GCC
22276 builtin and then its argument prototype would still apply. */
22289 rm -f conftest.$ac_objext conftest$ac_exeext
22290 if { (ac_try="$ac_link"
22291 case "(($ac_try" in
22292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293 *) ac_try_echo=$ac_try;;
22295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22296 (eval "$ac_link") 2>conftest.er1
22298 grep -v '^ *+' conftest.er1 >conftest.err
22300 cat conftest.err >&5
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); } && {
22303 test -z "$ac_c_werror_flag" ||
22304 test ! -s conftest.err
22305 } && test -s conftest$ac_exeext &&
22306 $as_test_x conftest$ac_exeext; then
22307 ac_cv_lib_cipher_setkey=yes
22309 echo "$as_me: failed program was:" >&5
22310 sed 's/^/| /' conftest.$ac_ext >&5
22312 ac_cv_lib_cipher_setkey=no
22315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22316 conftest$ac_exeext conftest.$ac_ext
22317 LIBS=$ac_check_lib_save_LIBS
22319 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
22320 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
22321 if test $ac_cv_lib_cipher_setkey = yes; then
22322 CRYPTLIB="${CRYPTLIB} -lcipher"
22329 cat >>confdefs.h <<\_ACEOF
22334 cat >>confdefs.h <<\_ACEOF
22335 #define SYSVSTYLE 2
22339 cat >>confdefs.h <<\_ACEOF
22343 gethostbyaddrrstyle=""
22344 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
22345 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
22348 { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
22349 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
22350 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
22351 echo $ECHO_N "(cached) $ECHO_C" >&6
22353 cat >conftest.$ac_ext <<_ACEOF
22356 cat confdefs.h >>conftest.$ac_ext
22357 cat >>conftest.$ac_ext <<_ACEOF
22358 /* end confdefs.h. */
22360 #ifdef HAVE_NETDB_H
22368 #ifndef gethostbyaddr_r
22369 (void) gethostbyaddr_r;
22376 rm -f conftest.$ac_objext
22377 if { (ac_try="$ac_compile"
22378 case "(($ac_try" in
22379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22380 *) ac_try_echo=$ac_try;;
22382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22383 (eval "$ac_compile") 2>conftest.er1
22385 grep -v '^ *+' conftest.er1 >conftest.err
22387 cat conftest.err >&5
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); } && {
22390 test -z "$ac_c_werror_flag" ||
22391 test ! -s conftest.err
22392 } && test -s conftest.$ac_objext; then
22393 ac_cv_have_decl_gethostbyaddr_r=yes
22395 echo "$as_me: failed program was:" >&5
22396 sed 's/^/| /' conftest.$ac_ext >&5
22398 ac_cv_have_decl_gethostbyaddr_r=no
22401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22403 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
22404 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
22405 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
22407 cat >>confdefs.h <<_ACEOF
22408 #define HAVE_DECL_GETHOSTBYADDR_R 1
22413 cat >>confdefs.h <<_ACEOF
22414 #define HAVE_DECL_GETHOSTBYADDR_R 0
22419 cat >>confdefs.h <<\_ACEOF
22420 #define GETHOSTBYADDRRSTYLE BSDSTYLE
22423 gethostbyaddrrstyle=BSD
22424 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
22425 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
22432 if test "x$gethostbyaddrrstyle" = "x"; then
22433 cat >conftest.$ac_ext <<_ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h. */
22446 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
22451 rm -f conftest.$ac_objext conftest$ac_exeext
22452 if { (ac_try="$ac_link"
22453 case "(($ac_try" in
22454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455 *) ac_try_echo=$ac_try;;
22457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22458 (eval "$ac_link") 2>conftest.er1
22460 grep -v '^ *+' conftest.er1 >conftest.err
22462 cat conftest.err >&5
22463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464 (exit $ac_status); } && {
22465 test -z "$ac_c_werror_flag" ||
22466 test ! -s conftest.err
22467 } && test -s conftest$ac_exeext &&
22468 $as_test_x conftest$ac_exeext; then
22471 cat >>confdefs.h <<\_ACEOF
22472 #define GETHOSTBYADDRRSTYLE GNUSTYLE
22475 gethostbyaddrrstyle=GNU
22478 echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22485 conftest$ac_exeext conftest.$ac_ext
22487 if test "x$gethostbyaddrrstyle" = "x"; then
22488 cat >conftest.$ac_ext <<_ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h. */
22501 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
22506 rm -f conftest.$ac_objext conftest$ac_exeext
22507 if { (ac_try="$ac_link"
22508 case "(($ac_try" in
22509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22510 *) ac_try_echo=$ac_try;;
22512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22513 (eval "$ac_link") 2>conftest.er1
22515 grep -v '^ *+' conftest.er1 >conftest.err
22517 cat conftest.err >&5
22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); } && {
22520 test -z "$ac_c_werror_flag" ||
22521 test ! -s conftest.err
22522 } && test -s conftest$ac_exeext &&
22523 $as_test_x conftest$ac_exeext; then
22526 cat >>confdefs.h <<\_ACEOF
22527 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
22530 gethostbyaddrrstyle=SYSV
22533 echo "$as_me: failed program was:" >&5
22534 sed 's/^/| /' conftest.$ac_ext >&5
22539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22540 conftest$ac_exeext conftest.$ac_ext
22542 if test "x$gethostbyaddrrstyle" = "x"; then
22543 cat >conftest.$ac_ext <<_ACEOF
22546 cat confdefs.h >>conftest.$ac_ext
22547 cat >>conftest.$ac_ext <<_ACEOF
22548 /* end confdefs.h. */
22556 gethostbyaddr(NULL, 0, 0)
22561 rm -f conftest.$ac_objext conftest$ac_exeext
22562 if { (ac_try="$ac_link"
22563 case "(($ac_try" in
22564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565 *) ac_try_echo=$ac_try;;
22567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22568 (eval "$ac_link") 2>conftest.er1
22570 grep -v '^ *+' conftest.er1 >conftest.err
22572 cat conftest.err >&5
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } && {
22575 test -z "$ac_c_werror_flag" ||
22576 test ! -s conftest.err
22577 } && test -s conftest$ac_exeext &&
22578 $as_test_x conftest$ac_exeext; then
22581 cat >>confdefs.h <<\_ACEOF
22582 #define GETHOSTBYADDRRSTYLE BSDSTYLE
22585 gethostbyaddrrstyle=BSD
22588 echo "$as_me: failed program was:" >&5
22589 sed 's/^/| /' conftest.$ac_ext >&5
22594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22595 conftest$ac_exeext conftest.$ac_ext
22598 if test "x$gethostbyaddrrstyle" = "x"; then
22599 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
22600 echo "${ECHO_T}none! It must not exist, here." >&6; }
22602 { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
22603 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
22606 if test "x$gethostbyaddrrstyle" = "xBSD"; then
22607 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
22608 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
22611 gethostbynamerstyle=""
22612 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
22613 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
22614 cat >conftest.$ac_ext <<_ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h. */
22627 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
22632 rm -f conftest.$ac_objext conftest$ac_exeext
22633 if { (ac_try="$ac_link"
22634 case "(($ac_try" in
22635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22636 *) ac_try_echo=$ac_try;;
22638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22639 (eval "$ac_link") 2>conftest.er1
22641 grep -v '^ *+' conftest.er1 >conftest.err
22643 cat conftest.err >&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); } && {
22646 test -z "$ac_c_werror_flag" ||
22647 test ! -s conftest.err
22648 } && test -s conftest$ac_exeext &&
22649 $as_test_x conftest$ac_exeext; then
22652 cat >>confdefs.h <<\_ACEOF
22653 #define GETHOSTBYNAMERSTYLE GNUSTYLE
22656 gethostbynamerstyle=GNU
22659 echo "$as_me: failed program was:" >&5
22660 sed 's/^/| /' conftest.$ac_ext >&5
22665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22666 conftest$ac_exeext conftest.$ac_ext
22667 if test "x$gethostbynamerstyle" = "x"; then
22668 cat >conftest.$ac_ext <<_ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h. */
22681 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
22686 rm -f conftest.$ac_objext conftest$ac_exeext
22687 if { (ac_try="$ac_link"
22688 case "(($ac_try" in
22689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22690 *) ac_try_echo=$ac_try;;
22692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22693 (eval "$ac_link") 2>conftest.er1
22695 grep -v '^ *+' conftest.er1 >conftest.err
22697 cat conftest.err >&5
22698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699 (exit $ac_status); } && {
22700 test -z "$ac_c_werror_flag" ||
22701 test ! -s conftest.err
22702 } && test -s conftest$ac_exeext &&
22703 $as_test_x conftest$ac_exeext; then
22706 cat >>confdefs.h <<\_ACEOF
22707 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
22710 gethostbynamerstyle=SYSV
22713 echo "$as_me: failed program was:" >&5
22714 sed 's/^/| /' conftest.$ac_ext >&5
22719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22720 conftest$ac_exeext conftest.$ac_ext
22722 if test "x$gethostbynamerstyle" = "x"; then
22723 cat >conftest.$ac_ext <<_ACEOF
22726 cat confdefs.h >>conftest.$ac_ext
22727 cat >>conftest.$ac_ext <<_ACEOF
22728 /* end confdefs.h. */
22736 gethostbyname(NULL)
22741 rm -f conftest.$ac_objext conftest$ac_exeext
22742 if { (ac_try="$ac_link"
22743 case "(($ac_try" in
22744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22745 *) ac_try_echo=$ac_try;;
22747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22748 (eval "$ac_link") 2>conftest.er1
22750 grep -v '^ *+' conftest.er1 >conftest.err
22752 cat conftest.err >&5
22753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); } && {
22755 test -z "$ac_c_werror_flag" ||
22756 test ! -s conftest.err
22757 } && test -s conftest$ac_exeext &&
22758 $as_test_x conftest$ac_exeext; then
22761 cat >>confdefs.h <<\_ACEOF
22762 #define GETHOSTBYNAMERSTYLE BSDSTYLE
22765 gethostbynamerstyle=BSD
22768 echo "$as_me: failed program was:" >&5
22769 sed 's/^/| /' conftest.$ac_ext >&5
22774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22775 conftest$ac_exeext conftest.$ac_ext
22778 if test "x$gethostbynamerstyle" = "x"; then
22779 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
22780 echo "${ECHO_T}none! It must not exist, here." >&6; }
22782 { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
22783 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
22786 if test "x$gethostbynamerstyle" = "xBSD"; then
22787 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
22788 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
22792 cat >>confdefs.h <<\_ACEOF
22793 #define POSIXSTYLE 1
22797 cat >>confdefs.h <<\_ACEOF
22798 #define SOLARISSTYLE 2
22802 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
22803 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
22804 cat >conftest.$ac_ext <<_ACEOF
22807 cat confdefs.h >>conftest.$ac_ext
22808 cat >>conftest.$ac_ext <<_ACEOF
22809 /* end confdefs.h. */
22816 ctime_r(NULL, NULL, 0)
22821 rm -f conftest.$ac_objext conftest$ac_exeext
22822 if { (ac_try="$ac_link"
22823 case "(($ac_try" in
22824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22825 *) ac_try_echo=$ac_try;;
22827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22828 (eval "$ac_link") 2>conftest.er1
22830 grep -v '^ *+' conftest.er1 >conftest.err
22832 cat conftest.err >&5
22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); } && {
22835 test -z "$ac_c_werror_flag" ||
22836 test ! -s conftest.err
22837 } && test -s conftest$ac_exeext &&
22838 $as_test_x conftest$ac_exeext; then
22841 cat >>confdefs.h <<\_ACEOF
22842 #define CTIMERSTYLE SOLARISSTYLE
22845 ctimerstyle="SOLARIS"
22848 echo "$as_me: failed program was:" >&5
22849 sed 's/^/| /' conftest.$ac_ext >&5
22854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22855 conftest$ac_exeext conftest.$ac_ext
22856 if test "x$ctimerstyle" = "x"; then
22857 cat >conftest.$ac_ext <<_ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h. */
22869 ctime_r(NULL, NULL)
22874 rm -f conftest.$ac_objext conftest$ac_exeext
22875 if { (ac_try="$ac_link"
22876 case "(($ac_try" in
22877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22878 *) ac_try_echo=$ac_try;;
22880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22881 (eval "$ac_link") 2>conftest.er1
22883 grep -v '^ *+' conftest.er1 >conftest.err
22885 cat conftest.err >&5
22886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); } && {
22888 test -z "$ac_c_werror_flag" ||
22889 test ! -s conftest.err
22890 } && test -s conftest$ac_exeext &&
22891 $as_test_x conftest$ac_exeext; then
22894 cat >>confdefs.h <<\_ACEOF
22895 #define CTIMERSTYLE POSIXSTYLE
22898 ctimerstyle="POSIX"
22901 echo "$as_me: failed program was:" >&5
22902 sed 's/^/| /' conftest.$ac_ext >&5
22907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22908 conftest$ac_exeext conftest.$ac_ext
22911 if test "x$ctimerstyle" = "x"; then
22912 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
22913 echo "${ECHO_T}none! It must not exist, here." >&6; }
22915 { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
22916 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
22924 export top_builddir
22925 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
22926 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
22932 mysubdirs="$LIBLTDLPATH"
22933 if test "x$EXPERIMENTAL" = "xyes"; then
22934 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
22935 mysubdirs=`echo $mysubdirs $bar`
22937 for bar in `cat "${srcdir}"/src/modules/stable`; do
22938 if test -f "${srcdir}"/src/modules/$bar/configure; then
22939 mysubdirs="$mysubdirs src/modules/$bar"
22944 if test "x$EXPERIMENTAL" = "xyes"; then
22945 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
22946 MODULES="$MODULES $foo"
22949 for foo in `cat "${srcdir}"/src/modules/stable`; do
22950 MODULES="$MODULES $foo"
22954 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
22959 ac_config_commands="$ac_config_commands stamp-h"
22961 ac_config_commands="$ac_config_commands build-radpaths-h"
22963 ac_config_commands="$ac_config_commands main-chmod"
22965 ac_config_commands="$ac_config_commands scripts-chmod"
22971 USE_SHARED_LIBS=$enable_shared
22973 USE_STATIC_LIBS=$enable_static
22981 unset ac_cv_env_LIBS_set
22982 unset ac_cv_env_LIBS_value
22984 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radiusd.conf"
22986 cat >confcache <<\_ACEOF
22987 # This file is a shell script that caches the results of configure
22988 # tests run on this system so they can be shared between configure
22989 # scripts and configure runs, see configure's option --config-cache.
22990 # It is not useful on other systems. If it contains results you don't
22991 # want to keep, you may remove or edit it.
22993 # config.status only pays attention to the cache file if you give it
22994 # the --recheck option to rerun configure.
22996 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22997 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22998 # following values.
23002 # The following way of writing the cache mishandles newlines in values,
23003 # but we know of no workaround that is simple, portable, and efficient.
23004 # So, we kill variables containing newlines.
23005 # Ultrix sh set writes to stderr and can't be redirected directly,
23006 # and sets the high bit in the cache file unless we assign to the vars.
23008 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23009 eval ac_val=\$$ac_var
23013 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23014 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23017 _ | IFS | as_nl) ;; #(
23018 *) $as_unset $ac_var ;;
23024 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23025 *${as_nl}ac_space=\ *)
23026 # `set' does not quote correctly, so add quotes (double-quote
23027 # substitution turns \\\\ into \\, and sed turns \\ into \).
23030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23033 # `set' quotes correctly as required by POSIX, so do not add quotes.
23034 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23043 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23045 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23047 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23048 if test -w "$cache_file"; then
23049 test "x$cache_file" != "x/dev/null" &&
23050 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23051 echo "$as_me: updating cache $cache_file" >&6;}
23052 cat confcache >$cache_file
23054 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23055 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23060 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23061 # Let make expand exec_prefix.
23062 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23064 DEFS=-DHAVE_CONFIG_H
23068 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23069 # 1. Remove the extension, and $U if already installed.
23070 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23071 ac_i=`echo "$ac_i" | sed "$ac_script"`
23072 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23073 # will be set to the directory where LIBOBJS objects are built.
23074 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23075 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23077 LIBOBJS=$ac_libobjs
23079 LTLIBOBJS=$ac_ltlibobjs
23082 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
23083 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
23084 Usually this means the macro was only invoked conditionally." >&5
23085 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
23086 Usually this means the macro was only invoked conditionally." >&2;}
23087 { (exit 1); exit 1; }; }
23089 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
23090 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
23091 Usually this means the macro was only invoked conditionally." >&5
23092 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
23093 Usually this means the macro was only invoked conditionally." >&2;}
23094 { (exit 1); exit 1; }; }
23096 LT_CONFIG_H=src/include/autoconf.h
23100 if test -n "$_LT_LIBOBJS"; then
23101 # Remove the extension.
23102 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
23103 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
23104 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
23105 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
23108 ltdl_LIBOBJS=$_ltdl_libobjs
23110 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
23114 : ${CONFIG_STATUS=./config.status}
23115 ac_clean_files_save=$ac_clean_files
23116 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23117 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23118 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23119 cat >$CONFIG_STATUS <<_ACEOF
23121 # Generated by $as_me.
23122 # Run this file to recreate the current configuration.
23123 # Compiler output produced by configure, useful for debugging
23124 # configure, is in config.log if it exists.
23127 ac_cs_recheck=false
23129 SHELL=\${CONFIG_SHELL-$SHELL}
23132 cat >>$CONFIG_STATUS <<\_ACEOF
23133 ## --------------------- ##
23134 ## M4sh Initialization. ##
23135 ## --------------------- ##
23137 # Be more Bourne compatible
23138 DUALCASE=1; export DUALCASE # for MKS sh
23139 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23142 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23143 # is contrary to our usage. Disable this feature.
23144 alias -g '${1+"$@"}'='"$@"'
23145 setopt NO_GLOB_SUBST
23147 case `(set -o) 2>/dev/null` in
23148 *posix*) set -o posix ;;
23157 # Avoid depending upon Character Ranges.
23158 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23159 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23160 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23161 as_cr_digits='0123456789'
23162 as_cr_alnum=$as_cr_Letters$as_cr_digits
23164 # The user is always right.
23165 if test "${PATH_SEPARATOR+set}" != set; then
23166 echo "#! /bin/sh" >conf$$.sh
23167 echo "exit 0" >>conf$$.sh
23169 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23177 # Support unset when possible.
23178 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23186 # We need space, tab and new line, in precisely that order. Quoting is
23187 # there to prevent editors from complaining about space-tab.
23188 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23189 # splitting by setting IFS to empty value.)
23194 # Find who we are. Look in the path if we contain no directory separator.
23196 *[\\/]* ) as_myself=$0 ;;
23197 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23198 for as_dir in $PATH
23201 test -z "$as_dir" && as_dir=.
23202 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23208 # We did not find ourselves, most probably we were run as `sh COMMAND'
23209 # in which case we are not to be found in the path.
23210 if test "x$as_myself" = x; then
23213 if test ! -f "$as_myself"; then
23214 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23215 { (exit 1); exit 1; }
23218 # Work around bugs in pre-3.0 UWIN ksh.
23219 for as_var in ENV MAIL MAILPATH
23220 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23228 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23229 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23230 LC_TELEPHONE LC_TIME
23232 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23233 eval $as_var=C; export $as_var
23235 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23239 # Required to use basename.
23240 if expr a : '\(a\)' >/dev/null 2>&1 &&
23241 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23247 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23248 as_basename=basename
23254 # Name of the executable.
23255 as_me=`$as_basename -- "$0" ||
23256 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23257 X"$0" : 'X\(//\)$' \| \
23258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23260 sed '/^.*\/\([^/][^/]*\)\/*$/{
23279 as_lineno_1=$LINENO
23280 as_lineno_2=$LINENO
23281 test "x$as_lineno_1" != "x$as_lineno_2" &&
23282 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23284 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23285 # uniformly replaced by the line number. The first 'sed' inserts a
23286 # line-number line after each line using $LINENO; the second 'sed'
23287 # does the real work. The second script uses 'N' to pair each
23288 # line-number line with the line containing $LINENO, and appends
23289 # trailing '-' during substitution so that $LINENO is not a special
23290 # case at line end.
23291 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23292 # scripts with optimization help from Paolo Bonzini. Blame Lee
23293 # E. McMahon (1931-1989) for sed's syntax. :-)
23305 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23308 ' >$as_me.lineno &&
23309 chmod +x "$as_me.lineno" ||
23310 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23311 { (exit 1); exit 1; }; }
23313 # Don't try to exec as it changes $[0], causing all sort of problems
23314 # (the dirname of $[0] is not the place where we might find the
23315 # original and so on. Autoconf is especially sensitive to this).
23316 . "./$as_me.lineno"
23317 # Exit status is that of the last command.
23322 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23328 ECHO_C= ECHO_N= ECHO_T=
23329 case `echo -n x` in
23331 case `echo 'x\c'` in
23332 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23339 if expr a : '\(a\)' >/dev/null 2>&1 &&
23340 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23346 rm -f conf$$ conf$$.exe conf$$.file
23347 if test -d conf$$.dir; then
23348 rm -f conf$$.dir/conf$$.file
23354 if ln -s conf$$.file conf$$ 2>/dev/null; then
23356 # ... but there are two gotchas:
23357 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23358 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23359 # In both cases, we have to default to `cp -p'.
23360 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23362 elif ln conf$$.file conf$$ 2>/dev/null; then
23367 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23368 rmdir conf$$.dir 2>/dev/null
23370 if mkdir -p . 2>/dev/null; then
23373 test -d ./-p && rmdir ./-p
23377 if test -x / >/dev/null 2>&1; then
23378 as_test_x='test -x'
23380 if ls -dL / >/dev/null 2>&1; then
23387 if test -d "$1"; then
23393 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23394 ???[sx]*):;;*)false;;esac;fi
23398 as_executable_p=$as_test_x
23400 # Sed expression to map a string onto a valid CPP name.
23401 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23403 # Sed expression to map a string onto a valid variable name.
23404 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23409 # Save the log message, to keep $[0] and so on meaningful, and to
23410 # report actual input values of CONFIG_FILES etc. instead of their
23411 # values after options handling.
23413 This file was extended by $as_me, which was
23414 generated by GNU Autoconf 2.61. Invocation command line was
23416 CONFIG_FILES = $CONFIG_FILES
23417 CONFIG_HEADERS = $CONFIG_HEADERS
23418 CONFIG_LINKS = $CONFIG_LINKS
23419 CONFIG_COMMANDS = $CONFIG_COMMANDS
23422 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23427 cat >>$CONFIG_STATUS <<_ACEOF
23428 # Files that config.status was made for.
23429 config_files="$ac_config_files"
23430 config_headers="$ac_config_headers"
23431 config_commands="$ac_config_commands"
23435 cat >>$CONFIG_STATUS <<\_ACEOF
23437 \`$as_me' instantiates files from templates according to the
23438 current configuration.
23440 Usage: $0 [OPTIONS] [FILE]...
23442 -h, --help print this help, then exit
23443 -V, --version print version number and configuration settings, then exit
23444 -q, --quiet do not print progress messages
23445 -d, --debug don't remove temporary files
23446 --recheck update $as_me by reconfiguring in the same conditions
23447 --file=FILE[:TEMPLATE]
23448 instantiate the configuration file FILE
23449 --header=FILE[:TEMPLATE]
23450 instantiate the configuration header FILE
23452 Configuration files:
23455 Configuration headers:
23458 Configuration commands:
23461 Report bugs to <bug-autoconf@gnu.org>."
23464 cat >>$CONFIG_STATUS <<_ACEOF
23467 configured by $0, generated by GNU Autoconf 2.61,
23468 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23470 Copyright (C) 2006 Free Software Foundation, Inc.
23471 This config.status script is free software; the Free Software Foundation
23472 gives unlimited permission to copy, distribute and modify it."
23478 cat >>$CONFIG_STATUS <<\_ACEOF
23479 # If no file are specified by the user, then we need to provide default
23480 # value. By we need to know if files were specified by the user.
23486 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23487 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23498 # Handling of the options.
23499 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23501 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23502 echo "$ac_cs_version"; exit ;;
23503 --debug | --debu | --deb | --de | --d | -d )
23505 --file | --fil | --fi | --f )
23507 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23508 ac_need_defaults=false;;
23509 --header | --heade | --head | --hea )
23511 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23512 ac_need_defaults=false;;
23514 # Conflict between --help and --header
23515 { echo "$as_me: error: ambiguous option: $1
23516 Try \`$0 --help' for more information." >&2
23517 { (exit 1); exit 1; }; };;
23518 --help | --hel | -h )
23519 echo "$ac_cs_usage"; exit ;;
23520 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23521 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23524 # This is an error.
23525 -*) { echo "$as_me: error: unrecognized option: $1
23526 Try \`$0 --help' for more information." >&2
23527 { (exit 1); exit 1; }; } ;;
23529 *) ac_config_targets="$ac_config_targets $1"
23530 ac_need_defaults=false ;;
23536 ac_configure_extra_args=
23538 if $ac_cs_silent; then
23540 ac_configure_extra_args="$ac_configure_extra_args --silent"
23544 cat >>$CONFIG_STATUS <<_ACEOF
23545 if \$ac_cs_recheck; then
23546 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23547 CONFIG_SHELL=$SHELL
23548 export CONFIG_SHELL
23549 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23553 cat >>$CONFIG_STATUS <<\_ACEOF
23557 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23558 ## Running $as_me. ##
23564 cat >>$CONFIG_STATUS <<_ACEOF
23570 # The HP-UX ksh and POSIX shell print the target directory to stdout
23571 # if CDPATH is set.
23572 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23574 sed_quote_subst='$sed_quote_subst'
23575 double_quote_subst='$double_quote_subst'
23576 delay_variable_subst='$delay_variable_subst'
23577 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
23578 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
23579 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
23580 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
23581 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
23582 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
23583 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
23584 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
23585 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
23586 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
23587 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
23588 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
23589 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
23590 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
23591 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
23592 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
23593 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
23594 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
23595 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
23596 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
23597 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
23598 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
23599 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
23600 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
23601 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
23602 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
23603 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
23604 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23605 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
23606 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
23607 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
23608 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23609 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
23610 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
23611 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23612 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23613 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23614 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
23615 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23616 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
23617 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
23618 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
23619 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
23620 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
23621 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
23622 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
23623 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
23624 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
23625 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
23626 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
23627 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
23628 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
23629 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
23630 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
23631 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
23632 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
23633 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
23634 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
23635 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
23636 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
23637 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
23638 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23639 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23640 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
23641 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
23642 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23643 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23644 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
23645 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23646 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23647 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23648 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23649 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23650 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23651 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
23652 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23653 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23654 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23655 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
23656 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
23657 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
23658 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
23659 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
23660 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23661 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
23662 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
23663 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
23664 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
23665 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
23666 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23667 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23668 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23669 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23670 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
23671 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
23672 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
23673 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
23674 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
23675 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23676 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23677 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
23678 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23679 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
23680 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23681 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23682 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23683 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23684 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
23685 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
23686 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23687 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23688 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
23689 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
23690 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
23691 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
23692 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
23693 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
23694 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
23695 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
23696 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
23697 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
23698 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
23699 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
23700 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23701 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23702 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23703 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23704 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23705 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23706 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23707 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23708 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23709 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23710 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23711 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23712 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23713 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23714 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23715 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23716 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23717 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23718 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23719 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23720 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23721 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23722 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23723 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23724 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23725 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23726 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23727 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23728 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23729 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23730 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23731 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23732 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23733 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23734 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23735 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23736 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23737 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23738 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23739 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23740 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23741 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23742 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23743 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23744 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23745 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23746 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23749 LTCFLAGS='$LTCFLAGS'
23750 compiler='$compiler_DEFAULT'
23752 # Quote evaled strings.
23763 deplibs_check_method \
23772 lt_cv_sys_global_symbol_pipe \
23773 lt_cv_sys_global_symbol_to_cdecl \
23774 lt_cv_sys_global_symbol_to_c_name_address \
23775 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23778 lt_prog_compiler_no_builtin_flag \
23779 lt_prog_compiler_wl \
23780 lt_prog_compiler_pic \
23781 lt_prog_compiler_static \
23782 lt_cv_prog_compiler_c_o \
23790 export_dynamic_flag_spec \
23791 whole_archive_flag_spec \
23792 compiler_needs_object \
23794 allow_undefined_flag \
23795 no_undefined_flag \
23796 hardcode_libdir_flag_spec \
23797 hardcode_libdir_flag_spec_ld \
23798 hardcode_libdir_separator \
23803 variables_saved_for_relink \
23805 library_names_spec \
23810 compiler_lib_search_dirs \
23815 compiler_lib_search_path \
23818 lt_prog_compiler_no_builtin_flag_CXX \
23819 lt_prog_compiler_wl_CXX \
23820 lt_prog_compiler_pic_CXX \
23821 lt_prog_compiler_static_CXX \
23822 lt_cv_prog_compiler_c_o_CXX \
23823 export_dynamic_flag_spec_CXX \
23824 whole_archive_flag_spec_CXX \
23825 compiler_needs_object_CXX \
23827 allow_undefined_flag_CXX \
23828 no_undefined_flag_CXX \
23829 hardcode_libdir_flag_spec_CXX \
23830 hardcode_libdir_flag_spec_ld_CXX \
23831 hardcode_libdir_separator_CXX \
23832 fix_srcfile_path_CXX \
23833 exclude_expsyms_CXX \
23834 include_expsyms_CXX \
23835 file_list_spec_CXX \
23836 compiler_lib_search_dirs_CXX \
23837 predep_objects_CXX \
23838 postdep_objects_CXX \
23841 compiler_lib_search_path_CXX; do
23842 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23843 *[\\\\\\\`\\"\\\$]*)
23844 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23847 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23852 # Double-quote double-evaled strings.
23853 for var in reload_cmds \
23854 old_postinstall_cmds \
23855 old_postuninstall_cmds \
23857 extract_expsyms_cmds \
23858 old_archive_from_new_cmds \
23859 old_archive_from_expsyms_cmds \
23861 archive_expsym_cmds \
23863 module_expsym_cmds \
23864 export_symbols_cmds \
23867 postuninstall_cmds \
23869 sys_lib_search_path_spec \
23870 sys_lib_dlsearch_path_spec \
23871 old_archive_cmds_CXX \
23872 old_archive_from_new_cmds_CXX \
23873 old_archive_from_expsyms_cmds_CXX \
23875 archive_expsym_cmds_CXX \
23877 module_expsym_cmds_CXX \
23878 export_symbols_cmds_CXX \
23879 prelink_cmds_CXX; do
23880 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23881 *[\\\\\\\`\\"\\\$]*)
23882 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23885 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23890 # Fix-up fallback echo if it was mangled by the above quoting rules.
23892 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
23896 ac_aux_dir='$ac_aux_dir'
23897 xsi_shell='$xsi_shell'
23898 lt_shell_append='$lt_shell_append'
23900 # See if we are running on zsh, and set the options which allow our
23901 # commands through without removal of \ escapes INIT.
23902 if test -n "\${ZSH_VERSION+set}" ; then
23903 setopt NO_GLOB_SUBST
23909 TIMESTAMP='$TIMESTAMP'
23920 cat >>$CONFIG_STATUS <<\_ACEOF
23922 # Handling of arguments.
23923 for ac_config_target in $ac_config_targets
23925 case $ac_config_target in
23926 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
23927 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23928 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
23929 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
23930 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
23931 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
23932 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
23933 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
23934 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
23935 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
23936 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
23937 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
23938 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
23939 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
23940 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
23941 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
23942 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
23943 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
23944 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
23946 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23947 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23948 { (exit 1); exit 1; }; };;
23953 # If the user did not use the arguments to specify the items to instantiate,
23954 # then the envvar interface is used. Set only those that are not.
23955 # We use the long form for the default assignment because of an extremely
23956 # bizarre bug on SunOS 4.1.3.
23957 if $ac_need_defaults; then
23958 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23959 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23960 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23963 # Have a temporary directory for convenience. Make it in the build tree
23964 # simply because there is no reason against having it here, and in addition,
23965 # creating and moving files from /tmp can sometimes cause problems.
23966 # Hook for its removal unless debugging.
23967 # Note that there is a small window in which the directory will not be cleaned:
23968 # after its creation but before its name has been assigned to `$tmp'.
23972 trap 'exit_status=$?
23973 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23975 trap '{ (exit 1); exit 1; }' 1 2 13 15
23977 # Create a (secure) tmp directory for tmp files.
23980 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23981 test -n "$tmp" && test -d "$tmp"
23984 tmp=./conf$$-$RANDOM
23985 (umask 077 && mkdir "$tmp")
23988 echo "$me: cannot create a temporary directory in ." >&2
23989 { (exit 1); exit 1; }
23993 # Set up the sed scripts for CONFIG_FILES section.
23996 # No need to generate the scripts if there are no CONFIG_FILES.
23997 # This happens for instance when ./config.status config.h
23998 if test -n "$CONFIG_FILES"; then
24005 for ac_last_try in false false false false false :; do
24006 cat >conf$$subs.sed <<_ACEOF
24007 SHELL!$SHELL$ac_delim
24008 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24009 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24010 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24011 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24012 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24013 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24014 exec_prefix!$exec_prefix$ac_delim
24015 prefix!$prefix$ac_delim
24016 program_transform_name!$program_transform_name$ac_delim
24017 bindir!$bindir$ac_delim
24018 sbindir!$sbindir$ac_delim
24019 libexecdir!$libexecdir$ac_delim
24020 datarootdir!$datarootdir$ac_delim
24021 datadir!$datadir$ac_delim
24022 sysconfdir!$sysconfdir$ac_delim
24023 sharedstatedir!$sharedstatedir$ac_delim
24024 localstatedir!$localstatedir$ac_delim
24025 includedir!$includedir$ac_delim
24026 oldincludedir!$oldincludedir$ac_delim
24027 docdir!$docdir$ac_delim
24028 infodir!$infodir$ac_delim
24029 htmldir!$htmldir$ac_delim
24030 dvidir!$dvidir$ac_delim
24031 pdfdir!$pdfdir$ac_delim
24032 psdir!$psdir$ac_delim
24033 libdir!$libdir$ac_delim
24034 localedir!$localedir$ac_delim
24035 mandir!$mandir$ac_delim
24036 DEFS!$DEFS$ac_delim
24037 ECHO_C!$ECHO_C$ac_delim
24038 ECHO_N!$ECHO_N$ac_delim
24039 ECHO_T!$ECHO_T$ac_delim
24040 LIBS!$LIBS$ac_delim
24041 build_alias!$build_alias$ac_delim
24042 host_alias!$host_alias$ac_delim
24043 target_alias!$target_alias$ac_delim
24045 CFLAGS!$CFLAGS$ac_delim
24046 LDFLAGS!$LDFLAGS$ac_delim
24047 CPPFLAGS!$CPPFLAGS$ac_delim
24048 ac_ct_CC!$ac_ct_CC$ac_delim
24049 EXEEXT!$EXEEXT$ac_delim
24050 OBJEXT!$OBJEXT$ac_delim
24052 CXXFLAGS!$CXXFLAGS$ac_delim
24053 ac_ct_CXX!$ac_ct_CXX$ac_delim
24055 GREP!$GREP$ac_delim
24056 EGREP!$EGREP$ac_delim
24057 GMAKE!$GMAKE$ac_delim
24058 MAKE!$MAKE$ac_delim
24059 LIBLTDL!$LIBLTDL$ac_delim
24060 LTDLDEPS!$LTDLDEPS$ac_delim
24061 LTDLINCL!$LTDLINCL$ac_delim
24062 INCLTDL!$INCLTDL$ac_delim
24063 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
24064 LIBTOOL!$LIBTOOL$ac_delim
24065 build!$build$ac_delim
24066 build_cpu!$build_cpu$ac_delim
24067 build_vendor!$build_vendor$ac_delim
24068 build_os!$build_os$ac_delim
24069 host!$host$ac_delim
24070 host_cpu!$host_cpu$ac_delim
24071 host_vendor!$host_vendor$ac_delim
24072 host_os!$host_os$ac_delim
24074 FGREP!$FGREP$ac_delim
24076 DUMPBIN!$DUMPBIN$ac_delim
24077 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
24079 LN_S!$LN_S$ac_delim
24081 STRIP!$STRIP$ac_delim
24082 RANLIB!$RANLIB$ac_delim
24083 lt_ECHO!$lt_ECHO$ac_delim
24084 DSYMUTIL!$DSYMUTIL$ac_delim
24085 NMEDIT!$NMEDIT$ac_delim
24086 LIPO!$LIPO$ac_delim
24087 OTOOL!$OTOOL$ac_delim
24088 OTOOL64!$OTOOL64$ac_delim
24089 CXXCPP!$CXXCPP$ac_delim
24090 LT_DLLOADERS!$LT_DLLOADERS$ac_delim
24091 LIBADD_DLOPEN!$LIBADD_DLOPEN$ac_delim
24092 LIBADD_SHL_LOAD!$LIBADD_SHL_LOAD$ac_delim
24093 LIBADD_DLD_LINK!$LIBADD_DLD_LINK$ac_delim
24094 LT_DLPREOPEN!$LT_DLPREOPEN$ac_delim
24095 LIBADD_DL!$LIBADD_DL$ac_delim
24096 sys_symbol_underscore!$sys_symbol_underscore$ac_delim
24097 ARGZ_H!$ARGZ_H$ac_delim
24098 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
24099 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
24100 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
24101 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
24102 subdirs!$subdirs$ac_delim
24103 LT_CONFIG_H!$LT_CONFIG_H$ac_delim
24106 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24108 elif $ac_last_try; then
24109 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24110 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24111 { (exit 1); exit 1; }; }
24113 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24117 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24118 if test -n "$ac_eof"; then
24119 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24120 ac_eof=`expr $ac_eof + 1`
24123 cat >>$CONFIG_STATUS <<_ACEOF
24124 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24125 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24128 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24129 s/^/s,@/; s/!/@,|#_!!_#|/
24132 s/'"$ac_delim"'$/,g/; t
24134 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24135 ' >>$CONFIG_STATUS <conf$$subs.sed
24136 rm -f conf$$subs.sed
24137 cat >>$CONFIG_STATUS <<_ACEOF
24143 for ac_last_try in false false false false false :; do
24144 cat >conf$$subs.sed <<_ACEOF
24145 LTDLOPEN!$LTDLOPEN$ac_delim
24146 logdir!$logdir$ac_delim
24147 radacctdir!$radacctdir$ac_delim
24148 raddbdir!$raddbdir$ac_delim
24149 PERL!$PERL$ac_delim
24150 SNMPGET!$SNMPGET$ac_delim
24151 SNMPWALK!$SNMPWALK$ac_delim
24152 RUSERS!$RUSERS$ac_delim
24153 ACLOCAL!$ACLOCAL$ac_delim
24154 AUTOCONF!$AUTOCONF$ac_delim
24155 AUTOHEADER!$AUTOHEADER$ac_delim
24156 LOCATE!$LOCATE$ac_delim
24157 DIRNAME!$DIRNAME$ac_delim
24158 LIBREADLINE!$LIBREADLINE$ac_delim
24159 REGEX!$REGEX$ac_delim
24160 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
24161 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
24162 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
24163 PCAP_LIBS!$PCAP_LIBS$ac_delim
24164 LIBPREFIX!$LIBPREFIX$ac_delim
24165 CRYPTLIB!$CRYPTLIB$ac_delim
24166 HOSTINFO!$HOSTINFO$ac_delim
24167 MODULES!$MODULES$ac_delim
24168 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
24169 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
24170 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
24171 STATIC_MODULES!$STATIC_MODULES$ac_delim
24172 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
24173 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
24174 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
24175 LIBOBJS!$LIBOBJS$ac_delim
24176 LTLIBOBJS!$LTLIBOBJS$ac_delim
24177 ltdl_LIBOBJS!$ltdl_LIBOBJS$ac_delim
24178 ltdl_LTLIBOBJS!$ltdl_LTLIBOBJS$ac_delim
24181 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
24183 elif $ac_last_try; then
24184 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24185 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24186 { (exit 1); exit 1; }; }
24188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24192 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24193 if test -n "$ac_eof"; then
24194 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24195 ac_eof=`expr $ac_eof + 1`
24198 cat >>$CONFIG_STATUS <<_ACEOF
24199 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24203 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24204 s/^/s,@/; s/!/@,|#_!!_#|/
24207 s/'"$ac_delim"'$/,g/; t
24209 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24210 ' >>$CONFIG_STATUS <conf$$subs.sed
24211 rm -f conf$$subs.sed
24212 cat >>$CONFIG_STATUS <<_ACEOF
24219 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24220 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24221 # trailing colons and then remove the whole line if VPATH becomes empty
24222 # (actually we leave an empty line to preserve line numbers).
24223 if test "x$srcdir" = x.; then
24224 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24225 s/:*\$(srcdir):*/:/
24226 s/:*\${srcdir}:*/:/
24228 s/^\([^=]*=[ ]*\):*/\1/
24234 cat >>$CONFIG_STATUS <<\_ACEOF
24235 fi # test -n "$CONFIG_FILES"
24238 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24241 :[FHLC]) ac_mode=$ac_tag; continue;;
24243 case $ac_mode$ac_tag in
24245 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24246 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24247 { (exit 1); exit 1; }; };;
24248 :[FH]-) ac_tag=-:-;;
24249 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24266 -) ac_f="$tmp/stdin";;
24267 *) # Look for the file first in the build tree, then in the source tree
24268 # (if the path is not absolute). The absolute path cannot be DOS-style,
24269 # because $ac_f cannot contain `:'.
24273 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24275 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24276 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24277 { (exit 1); exit 1; }; };;
24279 ac_file_inputs="$ac_file_inputs $ac_f"
24282 # Let's still pretend it is `configure' which instantiates (i.e., don't
24283 # use $as_me), people would be surprised to read:
24284 # /* config.h. Generated by config.status. */
24285 configure_input="Generated from "`IFS=:
24286 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24287 if test x"$ac_file" != x-; then
24288 configure_input="$ac_file. $configure_input"
24289 { echo "$as_me:$LINENO: creating $ac_file" >&5
24290 echo "$as_me: creating $ac_file" >&6;}
24294 *:-:* | *:-) cat >"$tmp/stdin";;
24299 ac_dir=`$as_dirname -- "$ac_file" ||
24300 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24301 X"$ac_file" : 'X\(//\)[^/]' \| \
24302 X"$ac_file" : 'X\(//\)$' \| \
24303 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24309 /^X\(\/\/\)[^/].*/{
24324 -*) as_dir=./$as_dir;;
24326 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24330 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24331 *) as_qdir=$as_dir;;
24333 as_dirs="'$as_qdir' $as_dirs"
24334 as_dir=`$as_dirname -- "$as_dir" ||
24335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24336 X"$as_dir" : 'X\(//\)[^/]' \| \
24337 X"$as_dir" : 'X\(//\)$' \| \
24338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24344 /^X\(\/\/\)[^/].*/{
24357 test -d "$as_dir" && break
24359 test -z "$as_dirs" || eval "mkdir $as_dirs"
24360 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24361 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24362 { (exit 1); exit 1; }; }; }
24366 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24368 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24369 # A ".." for each directory in $ac_dir_suffix.
24370 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24371 case $ac_top_builddir_sub in
24372 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24373 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24376 ac_abs_top_builddir=$ac_pwd
24377 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24378 # for backward compatibility:
24379 ac_top_builddir=$ac_top_build_prefix
24382 .) # We are building in place.
24384 ac_top_srcdir=$ac_top_builddir_sub
24385 ac_abs_top_srcdir=$ac_pwd ;;
24386 [\\/]* | ?:[\\/]* ) # Absolute name.
24387 ac_srcdir=$srcdir$ac_dir_suffix;
24388 ac_top_srcdir=$srcdir
24389 ac_abs_top_srcdir=$srcdir ;;
24390 *) # Relative name.
24391 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24392 ac_top_srcdir=$ac_top_build_prefix$srcdir
24393 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24395 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24406 cat >>$CONFIG_STATUS <<\_ACEOF
24407 # If the template does not know about datarootdir, expand it.
24408 # FIXME: This hack should be removed a few years after 2.60.
24409 ac_datarootdir_hack=; ac_datarootdir_seen=
24411 case `sed -n '/datarootdir/ {
24420 ' $ac_file_inputs` in
24421 *datarootdir*) ac_datarootdir_seen=yes;;
24422 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24423 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24424 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24426 cat >>$CONFIG_STATUS <<_ACEOF
24427 ac_datarootdir_hack='
24428 s&@datadir@&$datadir&g
24429 s&@docdir@&$docdir&g
24430 s&@infodir@&$infodir&g
24431 s&@localedir@&$localedir&g
24432 s&@mandir@&$mandir&g
24433 s&\\\${datarootdir}&$datarootdir&g' ;;
24437 # Neutralize VPATH when `$srcdir' = `.'.
24438 # Shell code in configure.ac might set extrasub.
24439 # FIXME: do we really want to maintain this feature?
24440 cat >>$CONFIG_STATUS <<_ACEOF
24444 cat >>$CONFIG_STATUS <<\_ACEOF
24446 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24447 s&@configure_input@&$configure_input&;t t
24448 s&@top_builddir@&$ac_top_builddir_sub&;t t
24449 s&@srcdir@&$ac_srcdir&;t t
24450 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24451 s&@top_srcdir@&$ac_top_srcdir&;t t
24452 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24453 s&@builddir@&$ac_builddir&;t t
24454 s&@abs_builddir@&$ac_abs_builddir&;t t
24455 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24456 $ac_datarootdir_hack
24457 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24459 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24460 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24461 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24462 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24463 which seems to be undefined. Please make sure it is defined." >&5
24464 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24465 which seems to be undefined. Please make sure it is defined." >&2;}
24469 -) cat "$tmp/out"; rm -f "$tmp/out";;
24470 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24479 # Transform confdefs.h into a sed script `conftest.defines', that
24480 # substitutes the proper values into config.h.in to produce config.h.
24481 rm -f conftest.defines conftest.tail
24482 # First, append a space to every undef/define line, to ease matching.
24483 echo 's/$/ /' >conftest.defines
24484 # Then, protect against being on the right side of a sed subst, or in
24485 # an unquoted here document, in config.status. If some macros were
24486 # called several times there might be several #defines for the same
24487 # symbol, which is useless. But do not sort them, since the last
24488 # AC_DEFINE must be honored.
24489 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24490 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24491 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24492 # PARAMS is the parameter list in the macro definition--in most cases, it's
24493 # just an empty string.
24494 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24495 ac_dB='\\)[ (].*,\\1define\\2'
24503 s/^[ ]*#[ ]*define[ ][ ]*//
24508 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24509 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24510 ' >>conftest.defines
24512 # Remove the space that was appended to ease matching.
24513 # Then replace #undef with comments. This is necessary, for
24514 # example, in the case of _POSIX_SOURCE, which is predefined and required
24515 # on some systems where configure will not decide to define it.
24516 # (The regexp can be short, since the line contains either #define or #undef.)
24518 s,^[ #]*u.*,/* & */,' >>conftest.defines
24520 # Break up conftest.defines:
24521 ac_max_sed_lines=50
24523 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24524 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24525 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24527 ac_in='$ac_file_inputs'
24528 ac_out='"$tmp/out1"'
24529 ac_nxt='"$tmp/out2"'
24533 # Write a here document:
24534 cat >>$CONFIG_STATUS <<_ACEOF
24535 # First, check the format of the line:
24536 cat >"\$tmp/defines.sed" <<\\CEOF
24537 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24538 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24542 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24544 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24545 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24546 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24547 grep . conftest.tail >/dev/null || break
24548 rm -f conftest.defines
24549 mv conftest.tail conftest.defines
24551 rm -f conftest.defines conftest.tail
24553 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24554 cat >>$CONFIG_STATUS <<\_ACEOF
24555 if test x"$ac_file" != x-; then
24556 echo "/* $configure_input */" >"$tmp/config.h"
24557 cat "$ac_result" >>"$tmp/config.h"
24558 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24559 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24560 echo "$as_me: $ac_file is unchanged" >&6;}
24563 mv "$tmp/config.h" $ac_file
24566 echo "/* $configure_input */"
24572 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24573 echo "$as_me: executing $ac_file commands" >&6;}
24578 case $ac_file$ac_mode in
24581 # See if we are running on zsh, and set the options which allow our
24582 # commands through without removal of \ escapes.
24583 if test -n "${ZSH_VERSION+set}" ; then
24584 setopt NO_GLOB_SUBST
24587 cfgfile="${ofile}T"
24588 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24591 cat <<_LT_EOF >> "$cfgfile"
24594 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24595 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
24596 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24597 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24599 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24600 # 2006, 2007, 2008 Free Software Foundation, Inc.
24601 # Written by Gordon Matzigkeit, 1996
24603 # This file is part of GNU Libtool.
24605 # GNU Libtool is free software; you can redistribute it and/or
24606 # modify it under the terms of the GNU General Public License as
24607 # published by the Free Software Foundation; either version 2 of
24608 # the License, or (at your option) any later version.
24610 # As a special exception to the GNU General Public License,
24611 # if you distribute this file as part of a program or library that
24612 # is built using GNU Libtool, you may include this file under the
24613 # same distribution terms that you use for the rest of that program.
24615 # GNU Libtool is distributed in the hope that it will be useful,
24616 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24617 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24618 # GNU General Public License for more details.
24620 # You should have received a copy of the GNU General Public License
24621 # along with GNU Libtool; see the file COPYING. If not, a copy
24622 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24623 # obtained by writing to the Free Software Foundation, Inc.,
24624 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24627 # The names of the tagged configurations supported by this script.
24628 available_tags="CXX "
24630 # ### BEGIN LIBTOOL CONFIG
24632 # Which release of libtool.m4 was used?
24633 macro_version=$macro_version
24634 macro_revision=$macro_revision
24636 # Whether or not to build shared libraries.
24637 build_libtool_libs=$enable_shared
24639 # Whether or not to build static libraries.
24640 build_old_libs=$enable_static
24642 # What type of objects to build.
24645 # Whether or not to optimize for fast installation.
24646 fast_install=$enable_fast_install
24649 host_alias=$host_alias
24653 # The build system.
24654 build_alias=$build_alias
24658 # A sed program that does not truncate output.
24661 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24662 Xsed="\$SED -e 1s/^X//"
24664 # A grep program that handles long lines.
24670 # A literal string matcher.
24673 # A BSD- or MS-compatible name lister.
24676 # Whether we need soft or hard links.
24679 # What is the maximum length of a command?
24680 max_cmd_len=$max_cmd_len
24682 # Object file suffix (normally "o").
24685 # Executable file suffix (normally "").
24688 # whether the shell understands "unset".
24691 # turn spaces into newlines.
24694 # turn newlines into spaces.
24697 # How to create reloadable object files.
24698 reload_flag=$lt_reload_flag
24699 reload_cmds=$lt_reload_cmds
24701 # Method to check whether dependent libraries are shared objects.
24702 deplibs_check_method=$lt_deplibs_check_method
24704 # Command to use when deplibs_check_method == "file_magic".
24705 file_magic_cmd=$lt_file_magic_cmd
24709 AR_FLAGS=$lt_AR_FLAGS
24711 # A symbol stripping program.
24714 # Commands used to install an old-style archive.
24716 old_postinstall_cmds=$lt_old_postinstall_cmds
24717 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24722 # LTCC compiler flags.
24723 LTCFLAGS=$lt_CFLAGS
24725 # Take the output of nm and produce a listing of raw symbols and C names.
24726 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24728 # Transform the output of nm in a proper C declaration.
24729 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24731 # Transform the output of nm in a C name address pair.
24732 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24734 # Transform the output of nm in a C name address pair when lib prefix is needed.
24735 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24737 # The name of the directory that contains temporary libtool files.
24740 # Shell to use when invoking shell scripts.
24743 # An echo program that does not interpret backslashes.
24746 # Used to examine libraries when file_magic_cmd begins with "file".
24747 MAGIC_CMD=$MAGIC_CMD
24749 # Must we lock files when doing compilation?
24750 need_locks=$lt_need_locks
24752 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24753 DSYMUTIL=$lt_DSYMUTIL
24755 # Tool to change global to local symbols on Mac OS X.
24758 # Tool to manipulate fat objects and archives on Mac OS X.
24761 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24764 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24765 OTOOL64=$lt_OTOOL64
24767 # Old archive suffix (normally "a").
24770 # Shared library suffix (normally ".so").
24771 shrext_cmds=$lt_shrext_cmds
24773 # The commands to extract the exported symbol list from a shared archive.
24774 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24776 # Variables whose values should be saved in libtool wrapper scripts and
24777 # restored at link time.
24778 variables_saved_for_relink=$lt_variables_saved_for_relink
24780 # Do we need the "lib" prefix for modules?
24781 need_lib_prefix=$need_lib_prefix
24783 # Do we need a version for libraries?
24784 need_version=$need_version
24786 # Library versioning type.
24787 version_type=$version_type
24789 # Shared library runtime path variable.
24790 runpath_var=$runpath_var
24792 # Shared library path variable.
24793 shlibpath_var=$shlibpath_var
24795 # Is shlibpath searched before the hard-coded library search path?
24796 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24798 # Format of library name prefix.
24799 libname_spec=$lt_libname_spec
24801 # List of archive names. First name is the real one, the rest are links.
24802 # The last name is the one that the linker finds with -lNAME
24803 library_names_spec=$lt_library_names_spec
24805 # The coded name of the library, if different from the real name.
24806 soname_spec=$lt_soname_spec
24808 # Command to use after installation of a shared archive.
24809 postinstall_cmds=$lt_postinstall_cmds
24811 # Command to use after uninstallation of a shared archive.
24812 postuninstall_cmds=$lt_postuninstall_cmds
24814 # Commands used to finish a libtool library installation in a directory.
24815 finish_cmds=$lt_finish_cmds
24817 # As "finish_cmds", except a single script fragment to be evaled but
24819 finish_eval=$lt_finish_eval
24821 # Whether we should hardcode library paths into libraries.
24822 hardcode_into_libs=$hardcode_into_libs
24824 # Compile-time system search path for libraries.
24825 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24827 # Run-time system search path for libraries.
24828 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24830 # Whether dlopen is supported.
24831 dlopen_support=$enable_dlopen
24833 # Whether dlopen of programs is supported.
24834 dlopen_self=$enable_dlopen_self
24836 # Whether dlopen of statically linked programs is supported.
24837 dlopen_self_static=$enable_dlopen_self_static
24839 # Commands to strip libraries.
24840 old_striplib=$lt_old_striplib
24841 striplib=$lt_striplib
24844 # The linker used to build libraries.
24847 # Commands used to build an old-style archive.
24848 old_archive_cmds=$lt_old_archive_cmds
24850 # A language specific compiler.
24853 # Is the compiler the GNU compiler?
24856 # Compiler flag to turn off builtin functions.
24857 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24859 # How to pass a linker flag through the compiler.
24860 wl=$lt_lt_prog_compiler_wl
24862 # Additional compiler flags for building library objects.
24863 pic_flag=$lt_lt_prog_compiler_pic
24865 # Compiler flag to prevent dynamic linking.
24866 link_static_flag=$lt_lt_prog_compiler_static
24868 # Does compiler simultaneously support -c and -o options?
24869 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24871 # Whether or not to add -lc for building shared libraries.
24872 build_libtool_need_lc=$archive_cmds_need_lc
24874 # Whether or not to disallow shared libs when runtime libs are static.
24875 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24877 # Compiler flag to allow reflexive dlopens.
24878 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24880 # Compiler flag to generate shared objects directly from archives.
24881 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24883 # Whether the compiler copes with passing no objects directly.
24884 compiler_needs_object=$lt_compiler_needs_object
24886 # Create an old-style archive from a shared archive.
24887 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24889 # Create a temporary old-style archive to link instead of a shared archive.
24890 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24892 # Commands used to build a shared archive.
24893 archive_cmds=$lt_archive_cmds
24894 archive_expsym_cmds=$lt_archive_expsym_cmds
24896 # Commands used to build a loadable module if different from building
24897 # a shared archive.
24898 module_cmds=$lt_module_cmds
24899 module_expsym_cmds=$lt_module_expsym_cmds
24901 # Whether we are building with GNU ld or not.
24902 with_gnu_ld=$lt_with_gnu_ld
24904 # Flag that allows shared libraries with undefined symbols to be built.
24905 allow_undefined_flag=$lt_allow_undefined_flag
24907 # Flag that enforces no undefined symbols.
24908 no_undefined_flag=$lt_no_undefined_flag
24910 # Flag to hardcode \$libdir into a binary during linking.
24911 # This must work even if \$libdir does not exist
24912 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24914 # If ld is used when linking, flag to hardcode \$libdir into a binary
24915 # during linking. This must work even if \$libdir does not exist.
24916 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24918 # Whether we need a single "-rpath" flag with a separated argument.
24919 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24921 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24922 # DIR into the resulting binary.
24923 hardcode_direct=$hardcode_direct
24925 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24926 # DIR into the resulting binary and the resulting library dependency is
24927 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24928 # library is relocated.
24929 hardcode_direct_absolute=$hardcode_direct_absolute
24931 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24932 # into the resulting binary.
24933 hardcode_minus_L=$hardcode_minus_L
24935 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24936 # into the resulting binary.
24937 hardcode_shlibpath_var=$hardcode_shlibpath_var
24939 # Set to "yes" if building a shared library automatically hardcodes DIR
24940 # into the library and all subsequent libraries and executables linked
24942 hardcode_automatic=$hardcode_automatic
24944 # Set to yes if linker adds runtime paths of dependent libraries
24945 # to runtime path list.
24946 inherit_rpath=$inherit_rpath
24948 # Whether libtool must link a program against all its dependency libraries.
24949 link_all_deplibs=$link_all_deplibs
24951 # Fix the shell variable \$srcfile for the compiler.
24952 fix_srcfile_path=$lt_fix_srcfile_path
24954 # Set to "yes" if exported symbols are required.
24955 always_export_symbols=$always_export_symbols
24957 # The commands to list exported symbols.
24958 export_symbols_cmds=$lt_export_symbols_cmds
24960 # Symbols that should not be listed in the preloaded symbols.
24961 exclude_expsyms=$lt_exclude_expsyms
24963 # Symbols that must always be exported.
24964 include_expsyms=$lt_include_expsyms
24966 # Commands necessary for linking programs (against libraries) with templates.
24967 prelink_cmds=$lt_prelink_cmds
24969 # Specify filename containing input files.
24970 file_list_spec=$lt_file_list_spec
24972 # How to hardcode a shared library path into an executable.
24973 hardcode_action=$hardcode_action
24975 # The directories searched by this compiler when creating a shared library.
24976 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24978 # Dependencies to place before and after the objects being linked to
24979 # create a shared library.
24980 predep_objects=$lt_predep_objects
24981 postdep_objects=$lt_postdep_objects
24982 predeps=$lt_predeps
24983 postdeps=$lt_postdeps
24985 # The library search path used internally by the compiler when linking
24986 # a shared library.
24987 compiler_lib_search_path=$lt_compiler_lib_search_path
24989 # ### END LIBTOOL CONFIG
24995 cat <<\_LT_EOF >> "$cfgfile"
24996 # AIX sometimes has problems with the GCC collect2 program. For some
24997 # reason, if we set the COLLECT_NAMES environment variable, the problems
24998 # vanish in a puff of smoke.
24999 if test "X${COLLECT_NAMES+set}" != Xset; then
25001 export COLLECT_NAMES
25008 ltmain="$ac_aux_dir/ltmain.sh"
25011 # We use sed instead of cat because bash on DJGPP gets confused if
25012 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25013 # text mode, it properly converts lines to CR/LF. This bash problem
25014 # is reportedly fixed, but why not run on old versions too?
25015 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
25016 || (rm -f "$cfgfile"; exit 1)
25020 cat << \_LT_EOF >> "$cfgfile"
25022 # func_dirname file append nondir_replacement
25023 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
25024 # otherwise set result to NONDIR_REPLACEMENT.
25028 */*) func_dirname_result="${1%/*}${2}" ;;
25029 * ) func_dirname_result="${3}" ;;
25033 # func_basename file
25036 func_basename_result="${1##*/}"
25039 # func_dirname_and_basename file append nondir_replacement
25040 # perform func_basename and func_dirname in a single function
25042 # dirname: Compute the dirname of FILE. If nonempty,
25043 # add APPEND to the result, otherwise set result
25044 # to NONDIR_REPLACEMENT.
25045 # value returned in "$func_dirname_result"
25046 # basename: Compute filename of FILE.
25047 # value retuned in "$func_basename_result"
25048 # Implementation must be kept synchronized with func_dirname
25049 # and func_basename. For efficiency, we do not delegate to
25050 # those functions but instead duplicate the functionality here.
25051 func_dirname_and_basename ()
25054 */*) func_dirname_result="${1%/*}${2}" ;;
25055 * ) func_dirname_result="${3}" ;;
25057 func_basename_result="${1##*/}"
25060 # func_stripname prefix suffix name
25061 # strip PREFIX and SUFFIX off of NAME.
25062 # PREFIX and SUFFIX must not contain globbing or regex special
25063 # characters, hashes, percent signs, but SUFFIX may contain a leading
25064 # dot (in which case that matches only a dot).
25067 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
25068 # positional parameters, so assign one to ordinary parameter first.
25069 func_stripname_result=${3}
25070 func_stripname_result=${func_stripname_result#"${1}"}
25071 func_stripname_result=${func_stripname_result%"${2}"}
25077 func_opt_split_opt=${1%%=*}
25078 func_opt_split_arg=${1#*=}
25085 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
25086 *) func_lo2o_result=${1} ;;
25090 # func_xform libobj-or-source
25093 func_xform_result=${1%.*}.lo
25096 # func_arith arithmetic-term...
25099 func_arith_result=$(( $* ))
25103 # STRING may not start with a hyphen.
25106 func_len_result=${#1}
25111 *) # Bourne compatible functions.
25112 cat << \_LT_EOF >> "$cfgfile"
25114 # func_dirname file append nondir_replacement
25115 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
25116 # otherwise set result to NONDIR_REPLACEMENT.
25119 # Extract subdirectory from the argument.
25120 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
25121 if test "X$func_dirname_result" = "X${1}"; then
25122 func_dirname_result="${3}"
25124 func_dirname_result="$func_dirname_result${2}"
25128 # func_basename file
25131 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
25135 # func_stripname prefix suffix name
25136 # strip PREFIX and SUFFIX off of NAME.
25137 # PREFIX and SUFFIX must not contain globbing or regex special
25138 # characters, hashes, percent signs, but SUFFIX may contain a leading
25139 # dot (in which case that matches only a dot).
25140 # func_strip_suffix prefix name
25144 .*) func_stripname_result=`$ECHO "X${3}" \
25145 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
25146 *) func_stripname_result=`$ECHO "X${3}" \
25147 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
25152 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
25153 my_sed_long_arg='1s/^-[^=]*=//'
25158 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
25159 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
25165 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
25168 # func_xform libobj-or-source
25171 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
25174 # func_arith arithmetic-term...
25177 func_arith_result=`expr "$@"`
25181 # STRING may not start with a hyphen.
25184 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
25190 case $lt_shell_append in
25192 cat << \_LT_EOF >> "$cfgfile"
25194 # func_append var value
25195 # Append VALUE to the end of shell variable VAR.
25203 cat << \_LT_EOF >> "$cfgfile"
25205 # func_append var value
25206 # Append VALUE to the end of shell variable VAR.
25217 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
25218 || (rm -f "$cfgfile"; exit 1)
25220 mv -f "$cfgfile" "$ofile" ||
25221 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25225 cat <<_LT_EOF >> "$ofile"
25227 # ### BEGIN LIBTOOL TAG CONFIG: CXX
25229 # The linker used to build libraries.
25232 # Commands used to build an old-style archive.
25233 old_archive_cmds=$lt_old_archive_cmds_CXX
25235 # A language specific compiler.
25236 CC=$lt_compiler_CXX
25238 # Is the compiler the GNU compiler?
25241 # Compiler flag to turn off builtin functions.
25242 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25244 # How to pass a linker flag through the compiler.
25245 wl=$lt_lt_prog_compiler_wl_CXX
25247 # Additional compiler flags for building library objects.
25248 pic_flag=$lt_lt_prog_compiler_pic_CXX
25250 # Compiler flag to prevent dynamic linking.
25251 link_static_flag=$lt_lt_prog_compiler_static_CXX
25253 # Does compiler simultaneously support -c and -o options?
25254 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25256 # Whether or not to add -lc for building shared libraries.
25257 build_libtool_need_lc=$archive_cmds_need_lc_CXX
25259 # Whether or not to disallow shared libs when runtime libs are static.
25260 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25262 # Compiler flag to allow reflexive dlopens.
25263 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25265 # Compiler flag to generate shared objects directly from archives.
25266 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25268 # Whether the compiler copes with passing no objects directly.
25269 compiler_needs_object=$lt_compiler_needs_object_CXX
25271 # Create an old-style archive from a shared archive.
25272 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25274 # Create a temporary old-style archive to link instead of a shared archive.
25275 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25277 # Commands used to build a shared archive.
25278 archive_cmds=$lt_archive_cmds_CXX
25279 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25281 # Commands used to build a loadable module if different from building
25282 # a shared archive.
25283 module_cmds=$lt_module_cmds_CXX
25284 module_expsym_cmds=$lt_module_expsym_cmds_CXX
25286 # Whether we are building with GNU ld or not.
25287 with_gnu_ld=$lt_with_gnu_ld_CXX
25289 # Flag that allows shared libraries with undefined symbols to be built.
25290 allow_undefined_flag=$lt_allow_undefined_flag_CXX
25292 # Flag that enforces no undefined symbols.
25293 no_undefined_flag=$lt_no_undefined_flag_CXX
25295 # Flag to hardcode \$libdir into a binary during linking.
25296 # This must work even if \$libdir does not exist
25297 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25299 # If ld is used when linking, flag to hardcode \$libdir into a binary
25300 # during linking. This must work even if \$libdir does not exist.
25301 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
25303 # Whether we need a single "-rpath" flag with a separated argument.
25304 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25306 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25307 # DIR into the resulting binary.
25308 hardcode_direct=$hardcode_direct_CXX
25310 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25311 # DIR into the resulting binary and the resulting library dependency is
25312 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25313 # library is relocated.
25314 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25316 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25317 # into the resulting binary.
25318 hardcode_minus_L=$hardcode_minus_L_CXX
25320 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25321 # into the resulting binary.
25322 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25324 # Set to "yes" if building a shared library automatically hardcodes DIR
25325 # into the library and all subsequent libraries and executables linked
25327 hardcode_automatic=$hardcode_automatic_CXX
25329 # Set to yes if linker adds runtime paths of dependent libraries
25330 # to runtime path list.
25331 inherit_rpath=$inherit_rpath_CXX
25333 # Whether libtool must link a program against all its dependency libraries.
25334 link_all_deplibs=$link_all_deplibs_CXX
25336 # Fix the shell variable \$srcfile for the compiler.
25337 fix_srcfile_path=$lt_fix_srcfile_path_CXX
25339 # Set to "yes" if exported symbols are required.
25340 always_export_symbols=$always_export_symbols_CXX
25342 # The commands to list exported symbols.
25343 export_symbols_cmds=$lt_export_symbols_cmds_CXX
25345 # Symbols that should not be listed in the preloaded symbols.
25346 exclude_expsyms=$lt_exclude_expsyms_CXX
25348 # Symbols that must always be exported.
25349 include_expsyms=$lt_include_expsyms_CXX
25351 # Commands necessary for linking programs (against libraries) with templates.
25352 prelink_cmds=$lt_prelink_cmds_CXX
25354 # Specify filename containing input files.
25355 file_list_spec=$lt_file_list_spec_CXX
25357 # How to hardcode a shared library path into an executable.
25358 hardcode_action=$hardcode_action_CXX
25360 # The directories searched by this compiler when creating a shared library.
25361 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25363 # Dependencies to place before and after the objects being linked to
25364 # create a shared library.
25365 predep_objects=$lt_predep_objects_CXX
25366 postdep_objects=$lt_postdep_objects_CXX
25367 predeps=$lt_predeps_CXX
25368 postdeps=$lt_postdeps_CXX
25370 # The library search path used internally by the compiler when linking
25371 # a shared library.
25372 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25374 # ### END LIBTOOL TAG CONFIG: CXX
25378 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
25379 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
25380 "main-chmod":C) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
25381 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
25387 { (exit 0); exit 0; }
25389 chmod +x $CONFIG_STATUS
25390 ac_clean_files=$ac_clean_files_save
25393 # configure is writing to config.log, and then calls config.status.
25394 # config.status does its own redirection, appending to config.log.
25395 # Unfortunately, on DOS this fails, as config.log is still kept open
25396 # by configure, so config.status won't be able to write to it; its
25397 # output is simply discarded. So we exec the FD to /dev/null,
25398 # effectively closing config.log, so it can be properly (re)opened and
25399 # appended to by config.status. When coming back to configure, we
25400 # need to make the FD available again.
25401 if test "$no_create" != yes; then
25403 ac_config_status_args=
25404 test "$silent" = yes &&
25405 ac_config_status_args="$ac_config_status_args --quiet"
25407 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25409 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25410 # would make configure fail if this is the last instruction.
25411 $ac_cs_success || { (exit 1); exit 1; }
25415 # CONFIG_SUBDIRS section.
25417 if test "$no_recursion" != yes; then
25419 # Remove --cache-file and --srcdir arguments so they do not pile up.
25420 ac_sub_configure_args=
25422 eval "set x $ac_configure_args"
25426 if test -n "$ac_prev"; then
25431 -cache-file | --cache-file | --cache-fil | --cache-fi \
25432 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25433 ac_prev=cache_file ;;
25434 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25435 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25438 --config-cache | -C)
25440 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25442 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25444 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25446 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25450 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25452 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
25456 # Always prepend --prefix to ensure using the same prefix
25457 # in subdir configurations.
25458 ac_arg="--prefix=$prefix"
25460 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25462 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
25465 if test "$silent" = yes; then
25466 ac_sub_configure_args="--silent $ac_sub_configure_args"
25470 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25472 # Do not complain, so a configure script can configure whichever
25473 # parts of a large source tree are present.
25474 test -d "$srcdir/$ac_dir" || continue
25476 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
25477 echo "$as_me:$LINENO: $ac_msg" >&5
25481 -*) as_dir=./$as_dir;;
25483 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25487 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25488 *) as_qdir=$as_dir;;
25490 as_dirs="'$as_qdir' $as_dirs"
25491 as_dir=`$as_dirname -- "$as_dir" ||
25492 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25493 X"$as_dir" : 'X\(//\)[^/]' \| \
25494 X"$as_dir" : 'X\(//\)$' \| \
25495 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25501 /^X\(\/\/\)[^/].*/{
25514 test -d "$as_dir" && break
25516 test -z "$as_dirs" || eval "mkdir $as_dirs"
25517 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25518 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25519 { (exit 1); exit 1; }; }; }
25523 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25525 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25526 # A ".." for each directory in $ac_dir_suffix.
25527 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25528 case $ac_top_builddir_sub in
25529 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25530 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25533 ac_abs_top_builddir=$ac_pwd
25534 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25535 # for backward compatibility:
25536 ac_top_builddir=$ac_top_build_prefix
25539 .) # We are building in place.
25541 ac_top_srcdir=$ac_top_builddir_sub
25542 ac_abs_top_srcdir=$ac_pwd ;;
25543 [\\/]* | ?:[\\/]* ) # Absolute name.
25544 ac_srcdir=$srcdir$ac_dir_suffix;
25545 ac_top_srcdir=$srcdir
25546 ac_abs_top_srcdir=$srcdir ;;
25547 *) # Relative name.
25548 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25549 ac_top_srcdir=$ac_top_build_prefix$srcdir
25550 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25557 # Check for guested configure; otherwise get Cygnus style configure.
25558 if test -f "$ac_srcdir/configure.gnu"; then
25559 ac_sub_configure=$ac_srcdir/configure.gnu
25560 elif test -f "$ac_srcdir/configure"; then
25561 ac_sub_configure=$ac_srcdir/configure
25562 elif test -f "$ac_srcdir/configure.in"; then
25563 # This should be Cygnus configure.
25564 ac_sub_configure=$ac_aux_dir/configure
25566 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25567 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25571 # The recursion is here.
25572 if test -n "$ac_sub_configure"; then
25573 # Make the cache file name correct relative to the subdirectory.
25574 case $cache_file in
25575 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25576 *) # Relative name.
25577 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
25580 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25581 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25582 # The eval makes quoting arguments work.
25583 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
25584 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
25585 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25586 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25587 { (exit 1); exit 1; }; }