2 # From configure.in Revision: 1.260 .
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'"
554 # Check that we are running under the correct shell.
555 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Remove one level of quotation (which was required for Make).
560 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
565 if test "X$1" = X--no-reexec; then
566 # Discard the --no-reexec flag, and continue.
568 elif test "X$1" = X--fallback-echo; then
569 # Avoid inline document here, it may be left over
571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
572 # Yippee, $echo works!
575 # Restart under the correct shell.
576 exec $SHELL "$0" --no-reexec ${1+"$@"}
579 if test "X$1" = X--fallback-echo; then
580 # used as fallback echo
588 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592 if test -z "$ECHO"; then
593 if test "X${echo_test_string+set}" != Xset; then
594 # find a string as large as possible, as long as the shell can cope with it
595 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
598 echo_test_string=`eval $cmd` &&
599 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # The Solaris, AIX, and Digital Unix default echo programs unquote
612 # backslashes. This makes it impossible to quote backslashes using
613 # echo "$something" | sed 's/\\/\\\\/g'
615 # So, first we look for a working echo in the user's PATH.
617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618 for dir in $PATH /usr/ucb; do
620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
630 if test "X$echo" = Xecho; then
631 # We didn't find a better echo, so look for alternatives.
632 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # This shell has a builtin print -r that does the trick.
637 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
638 test "X$CONFIG_SHELL" != X/bin/ksh; then
639 # If we have ksh, try running configure again with it.
640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641 export ORIGINAL_CONFIG_SHELL
642 CONFIG_SHELL=/bin/ksh
644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
649 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654 test "X$echo_testing_string" = 'X\t' &&
655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 SHELL="$CONFIG_SHELL"
661 echo="$CONFIG_SHELL $0 --fallback-echo"
662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663 test "X$echo_testing_string" = 'X\t' &&
664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665 test "X$echo_testing_string" = "X$echo_test_string"; then
666 echo="$CONFIG_SHELL $0 --fallback-echo"
668 # maybe with a smaller string...
671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
679 if test "$prev" != 'sed 50q "$0"'; then
680 echo_test_string=`eval $prev`
681 export echo_test_string
682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 # Oops. We lost completely, so just stick with echo.
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
703 tagnames=${tagnames+${tagnames},}CXX
705 tagnames=${tagnames+${tagnames},}F77
707 exec 7<&0 </dev/null 6>&1
710 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
711 # so uname gets run too.
712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
717 ac_default_prefix=/usr/local
719 ac_config_libobj_dir=.
725 SHELL=${CONFIG_SHELL-/bin/sh}
727 # Identity of this package.
734 ac_unique_file="src/main/radiusd.c"
735 # Factoring default headers for most tests.
736 ac_includes_default="\
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
748 # ifdef HAVE_STDLIB_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
780 program_transform_name
872 RADIUSD_MAJOR_VERSION
873 RADIUSD_MINOR_VERSION
878 ac_precious_vars='build_alias
893 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
895 # Initialize some variables set by options.
897 ac_init_version=false
898 # The variables have the same names as the options, with
899 # dashes changed to underlines.
907 program_transform_name=s,x,x,
915 # Installation directory options.
916 # These are left unexpanded so users can "make install exec_prefix=/foo"
917 # and all the variables that are supposed to be based on exec_prefix
918 # by default will actually change.
919 # Use braces instead of parens because sh, perl, etc. also accept them.
920 # (The list follows the same order as the GNU Coding Standards.)
921 bindir='${exec_prefix}/bin'
922 sbindir='${exec_prefix}/sbin'
923 libexecdir='${exec_prefix}/libexec'
924 datarootdir='${prefix}/share'
925 datadir='${datarootdir}'
926 sysconfdir='${prefix}/etc'
927 sharedstatedir='${prefix}/com'
928 localstatedir='${prefix}/var'
929 includedir='${prefix}/include'
930 oldincludedir='/usr/include'
931 docdir='${datarootdir}/doc/${PACKAGE}'
932 infodir='${datarootdir}/info'
937 libdir='${exec_prefix}/lib'
938 localedir='${datarootdir}/locale'
939 mandir='${datarootdir}/man'
945 # If the previous option needs an argument, assign it.
946 if test -n "$ac_prev"; then
947 eval $ac_prev=\$ac_option
953 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957 # Accept the important Cygnus configure options, so we can diagnose typos.
959 case $ac_dashdash$ac_option in
963 -bindir | --bindir | --bindi | --bind | --bin | --bi)
965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968 -build | --build | --buil | --bui | --bu)
969 ac_prev=build_alias ;;
970 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971 build_alias=$ac_optarg ;;
973 -cache-file | --cache-file | --cache-fil | --cache-fi \
974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975 ac_prev=cache_file ;;
976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978 cache_file=$ac_optarg ;;
981 cache_file=config.cache ;;
983 -datadir | --datadir | --datadi | --datad)
985 -datadir=* | --datadir=* | --datadi=* | --datad=*)
986 datadir=$ac_optarg ;;
988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989 | --dataroo | --dataro | --datar)
990 ac_prev=datarootdir ;;
991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993 datarootdir=$ac_optarg ;;
995 -disable-* | --disable-*)
996 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
999 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1000 { (exit 1); exit 1; }; }
1001 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1002 eval enable_$ac_feature=no ;;
1004 -docdir | --docdir | --docdi | --doc | --do)
1006 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007 docdir=$ac_optarg ;;
1009 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012 dvidir=$ac_optarg ;;
1014 -enable-* | --enable-*)
1015 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019 { (exit 1); exit 1; }; }
1020 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1021 eval enable_$ac_feature=\$ac_optarg ;;
1023 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025 | --exec | --exe | --ex)
1026 ac_prev=exec_prefix ;;
1027 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029 | --exec=* | --exe=* | --ex=*)
1030 exec_prefix=$ac_optarg ;;
1032 -gas | --gas | --ga | --g)
1033 # Obsolete; use --with-gas.
1036 -help | --help | --hel | --he | -h)
1037 ac_init_help=long ;;
1038 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039 ac_init_help=recursive ;;
1040 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041 ac_init_help=short ;;
1043 -host | --host | --hos | --ho)
1044 ac_prev=host_alias ;;
1045 -host=* | --host=* | --hos=* | --ho=*)
1046 host_alias=$ac_optarg ;;
1048 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 htmldir=$ac_optarg ;;
1054 -includedir | --includedir | --includedi | --included | --include \
1055 | --includ | --inclu | --incl | --inc)
1056 ac_prev=includedir ;;
1057 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058 | --includ=* | --inclu=* | --incl=* | --inc=*)
1059 includedir=$ac_optarg ;;
1061 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064 infodir=$ac_optarg ;;
1066 -libdir | --libdir | --libdi | --libd)
1068 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069 libdir=$ac_optarg ;;
1071 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072 | --libexe | --libex | --libe)
1073 ac_prev=libexecdir ;;
1074 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075 | --libexe=* | --libex=* | --libe=*)
1076 libexecdir=$ac_optarg ;;
1078 -localedir | --localedir | --localedi | --localed | --locale)
1079 ac_prev=localedir ;;
1080 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081 localedir=$ac_optarg ;;
1083 -localstatedir | --localstatedir | --localstatedi | --localstated \
1084 | --localstate | --localstat | --localsta | --localst | --locals)
1085 ac_prev=localstatedir ;;
1086 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088 localstatedir=$ac_optarg ;;
1090 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093 mandir=$ac_optarg ;;
1095 -nfp | --nfp | --nf)
1096 # Obsolete; use --without-fp.
1099 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100 | --no-cr | --no-c | -n)
1103 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109 | --oldin | --oldi | --old | --ol | --o)
1110 ac_prev=oldincludedir ;;
1111 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114 oldincludedir=$ac_optarg ;;
1116 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119 prefix=$ac_optarg ;;
1121 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122 | --program-pre | --program-pr | --program-p)
1123 ac_prev=program_prefix ;;
1124 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126 program_prefix=$ac_optarg ;;
1128 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129 | --program-suf | --program-su | --program-s)
1130 ac_prev=program_suffix ;;
1131 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133 program_suffix=$ac_optarg ;;
1135 -program-transform-name | --program-transform-name \
1136 | --program-transform-nam | --program-transform-na \
1137 | --program-transform-n | --program-transform- \
1138 | --program-transform | --program-transfor \
1139 | --program-transfo | --program-transf \
1140 | --program-trans | --program-tran \
1141 | --progr-tra | --program-tr | --program-t)
1142 ac_prev=program_transform_name ;;
1143 -program-transform-name=* | --program-transform-name=* \
1144 | --program-transform-nam=* | --program-transform-na=* \
1145 | --program-transform-n=* | --program-transform-=* \
1146 | --program-transform=* | --program-transfor=* \
1147 | --program-transfo=* | --program-transf=* \
1148 | --program-trans=* | --program-tran=* \
1149 | --progr-tra=* | --program-tr=* | --program-t=*)
1150 program_transform_name=$ac_optarg ;;
1152 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155 pdfdir=$ac_optarg ;;
1157 -psdir | --psdir | --psdi | --psd | --ps)
1159 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163 | -silent | --silent | --silen | --sile | --sil)
1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 sbindir=$ac_optarg ;;
1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174 | --sharedst | --shareds | --shared | --share | --shar \
1176 ac_prev=sharedstatedir ;;
1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 sharedstatedir=$ac_optarg ;;
1183 -site | --site | --sit)
1185 -site=* | --site=* | --sit=*)
1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191 srcdir=$ac_optarg ;;
1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194 | --syscon | --sysco | --sysc | --sys | --sy)
1195 ac_prev=sysconfdir ;;
1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198 sysconfdir=$ac_optarg ;;
1200 -target | --target | --targe | --targ | --tar | --ta | --t)
1201 ac_prev=target_alias ;;
1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203 target_alias=$ac_optarg ;;
1205 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 -version | --version | --versio | --versi | --vers | -V)
1209 ac_init_version=: ;;
1212 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 { echo "$as_me: error: invalid package name: $ac_package" >&2
1216 { (exit 1); exit 1; }; }
1217 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1218 eval with_$ac_package=\$ac_optarg ;;
1220 -without-* | --without-*)
1221 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 { echo "$as_me: error: invalid package name: $ac_package" >&2
1225 { (exit 1); exit 1; }; }
1226 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227 eval with_$ac_package=no ;;
1230 # Obsolete; use --with-x.
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1247 -*) { echo "$as_me: error: unrecognized option: $ac_option
1248 Try \`$0 --help' for more information." >&2
1249 { (exit 1); exit 1; }; }
1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1256 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1257 { (exit 1); exit 1; }; }
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1262 # FIXME: should be removed in autoconf 3.0.
1263 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1272 if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 { echo "$as_me: error: missing argument to $ac_option" >&2
1275 { (exit 1); exit 1; }; }
1278 # Be sure to have absolute directory names.
1279 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280 datadir sysconfdir sharedstatedir localstatedir includedir \
1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282 libdir localedir mandir
1284 eval ac_val=\$$ac_var
1286 [\\/$]* | ?:[\\/]* ) continue;;
1287 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1290 { (exit 1); exit 1; }; }
1293 # There might be people who depend on the old broken behavior: `$host'
1294 # used to hold the argument of --host etc.
1295 # FIXME: To remove some day.
1298 target=$target_alias
1300 # FIXME: To remove some day.
1301 if test "x$host_alias" != x; then
1302 if test "x$build_alias" = x; then
1303 cross_compiling=maybe
1304 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1305 If a cross compiler is detected then cross compile mode will be used." >&2
1306 elif test "x$build_alias" != "x$host_alias"; then
1312 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314 test "$silent" = yes && exec 6>/dev/null
1317 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318 ac_ls_di=`ls -di .` &&
1319 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320 { echo "$as_me: error: Working directory cannot be determined" >&2
1321 { (exit 1); exit 1; }; }
1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323 { echo "$as_me: error: pwd does not report name of working directory" >&2
1324 { (exit 1); exit 1; }; }
1327 # Find the source files, if location was not specified.
1328 if test -z "$srcdir"; then
1329 ac_srcdir_defaulted=yes
1330 # Try the directory containing this script, then the parent directory.
1331 ac_confdir=`$as_dirname -- "$0" ||
1332 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333 X"$0" : 'X\(//\)[^/]' \| \
1334 X"$0" : 'X\(//\)$' \| \
1335 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1359 ac_srcdir_defaulted=no
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1364 { (exit 1); exit 1; }; }
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1369 { (exit 1); exit 1; }; }
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 # Report the --help message.
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1395 \`configure' configures this package to adapt to many kinds of systems.
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1402 Defaults for the options are specified in brackets.
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1426 For better control, use the options below.
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 if test -n "$ac_init_help"; then
1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465 --disable-largefile omit support for large files
1466 --enable-shared[=PKGS] build shared libraries [default=yes]
1467 --enable-static[=PKGS] build static libraries [default=yes]
1468 --enable-fast-install[=PKGS]
1469 optimize for fast installation [default=yes]
1470 --disable-libtool-lock avoid locking (might break parallel builds)
1471 --enable-strict-dependencies Fail configure on lack of module dependancy.
1472 --enable-developer Enables features of interest to developers.
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-system-libtool try to use libtool installed in your system default=use our own
1478 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1479 --with-pic try to use only PIC/non-PIC objects [default=use
1481 --with-tags[=TAGS] include additional configurations [automatic]
1482 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1483 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1484 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1485 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1486 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1487 --with-threads Use threads, if available. (default=yes)
1488 --with-snmp Compile in SNMP support. (default=yes)
1489 --with-snmp-include-dir=DIR Directory to look for include files used by SNMP
1490 --with-vmps Compile in VMPS support. (default=yes)
1491 --with-dhcp Compile in DHCP support. (default=no)
1492 --with-static-modules=QUOTED-MODULE-LIST
1493 --with-modules=QUOTED-MODULE-LIST
1494 --with-experimental-modules Use experimental and unstable modules. (default=no)
1495 --with-openssl Use OpenSSL. (default=yes)
1496 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1497 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1498 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1499 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1500 --with-udpfromto Compile in UDPFROMTO support. (default=yes)
1502 Some influential environment variables:
1503 CC C compiler command
1504 CFLAGS C compiler flags
1505 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1506 nonstandard directory <lib dir>
1507 LIBS libraries to pass to the linker, e.g. -l<library>
1508 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1509 you have headers in a nonstandard directory <include dir>
1510 CXX C++ compiler command
1511 CXXFLAGS C++ compiler flags
1513 CXXCPP C++ preprocessor
1514 F77 Fortran 77 compiler command
1515 FFLAGS Fortran 77 compiler flags
1517 Use these variables to override the choices made by `configure' or to help
1518 it to find libraries and programs with nonstandard names/locations.
1524 if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527 test -d "$ac_dir" || continue
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1547 .) # We are building in place.
1549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
1552 ac_srcdir=$srcdir$ac_dir_suffix;
1553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1571 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1581 generated by GNU Autoconf 2.61
1583 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1584 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1590 cat >config.log <<_ACEOF
1591 This file contains any messages produced by compilers while
1592 running configure, to aid debugging if configure makes a mistake.
1594 It was created by $as_me, which was
1595 generated by GNU Autoconf 2.61. Invocation command line was
1607 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1608 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1609 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1610 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1611 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1613 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1614 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1616 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1617 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1618 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1619 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1620 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1621 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1622 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 test -z "$as_dir" && as_dir=.
1631 echo "PATH: $as_dir"
1647 # Keep a trace of the command line.
1648 # Strip out --no-create and --no-recursion so they do not pile up.
1649 # Strip out --silent because we don't want to record it for future runs.
1650 # Also quote any args containing shell meta-characters.
1651 # Make two passes to allow for proper duplicate-argument suppression.
1655 ac_must_keep_next=false
1661 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1662 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1663 | -silent | --silent | --silen | --sile | --sil)
1666 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1669 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1671 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1672 if test $ac_must_keep_next = true; then
1673 ac_must_keep_next=false # Got value, back to normal.
1676 *=* | --config-cache | -C | -disable-* | --disable-* \
1677 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1678 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1679 | -with-* | --with-* | -without-* | --without-* | --x)
1680 case "$ac_configure_args0 " in
1681 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1684 -* ) ac_must_keep_next=true ;;
1687 ac_configure_args="$ac_configure_args '$ac_arg'"
1692 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1693 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1695 # When interrupted or exit'd, cleanup temporary files, and complete
1696 # config.log. We remove comments because anyway the quotes in there
1697 # would cause problems or look ugly.
1698 # WARNING: Use '\'' to represent an apostrophe within the trap.
1699 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1700 trap 'exit_status=$?
1701 # Save into config.log some information that might help in debugging.
1706 ## ---------------- ##
1707 ## Cache variables. ##
1708 ## ---------------- ##
1711 # The following way of writing the cache mishandles newlines in values,
1713 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1714 eval ac_val=\$$ac_var
1718 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1719 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1722 _ | IFS | as_nl) ;; #(
1723 *) $as_unset $ac_var ;;
1728 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1729 *${as_nl}ac_space=\ *)
1731 "s/'\''/'\''\\\\'\'''\''/g;
1732 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1735 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1743 ## ----------------- ##
1744 ## Output variables. ##
1745 ## ----------------- ##
1748 for ac_var in $ac_subst_vars
1750 eval ac_val=\$$ac_var
1752 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754 echo "$ac_var='\''$ac_val'\''"
1758 if test -n "$ac_subst_files"; then
1760 ## ------------------- ##
1761 ## File substitutions. ##
1762 ## ------------------- ##
1765 for ac_var in $ac_subst_files
1767 eval ac_val=\$$ac_var
1769 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771 echo "$ac_var='\''$ac_val'\''"
1776 if test -s confdefs.h; then
1786 test "$ac_signal" != 0 &&
1787 echo "$as_me: caught signal $ac_signal"
1788 echo "$as_me: exit $exit_status"
1790 rm -f core *.core core.conftest.* &&
1791 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1794 for ac_signal in 1 2 13 15; do
1795 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1799 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1800 rm -f -r conftest* confdefs.h
1802 # Predefined preprocessor variables.
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_NAME "$PACKAGE_NAME"
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_STRING "$PACKAGE_STRING"
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1829 # Let the site file select an alternate cache file if it wants to.
1830 # Prefer explicitly selected file to automatically selected ones.
1831 if test -n "$CONFIG_SITE"; then
1832 set x "$CONFIG_SITE"
1833 elif test "x$prefix" != xNONE; then
1834 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1836 set x "$ac_default_prefix/share/config.site" \
1837 "$ac_default_prefix/etc/config.site"
1842 if test -r "$ac_site_file"; then
1843 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1844 echo "$as_me: loading site script $ac_site_file" >&6;}
1845 sed 's/^/| /' "$ac_site_file" >&5
1850 if test -r "$cache_file"; then
1851 # Some versions of bash will fail to source /dev/null (special
1852 # files actually), so we avoid doing that.
1853 if test -f "$cache_file"; then
1854 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1855 echo "$as_me: loading cache $cache_file" >&6;}
1857 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1858 *) . "./$cache_file";;
1862 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1863 echo "$as_me: creating cache $cache_file" >&6;}
1867 # Check that the precious variables saved in the cache have kept the same
1869 ac_cache_corrupted=false
1870 for ac_var in $ac_precious_vars; do
1871 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1872 eval ac_new_set=\$ac_env_${ac_var}_set
1873 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1874 eval ac_new_val=\$ac_env_${ac_var}_value
1875 case $ac_old_set,$ac_new_set in
1877 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1878 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1879 ac_cache_corrupted=: ;;
1881 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1882 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1883 ac_cache_corrupted=: ;;
1886 if test "x$ac_old_val" != "x$ac_new_val"; then
1887 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1888 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1889 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1890 echo "$as_me: former value: $ac_old_val" >&2;}
1891 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1892 echo "$as_me: current value: $ac_new_val" >&2;}
1893 ac_cache_corrupted=:
1896 # Pass precious variables to config.status.
1897 if test "$ac_new_set" = set; then
1899 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1900 *) ac_arg=$ac_var=$ac_new_val ;;
1902 case " $ac_configure_args " in
1903 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1904 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1908 if $ac_cache_corrupted; then
1909 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1910 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1911 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1912 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1913 { (exit 1); exit 1; }; }
1933 ac_cpp='$CPP $CPPFLAGS'
1934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1939 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1942 RADIUSD_VERSION=`cat VERSION`
1943 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
1944 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^2\.//'`
1949 ac_cpp='$CPP $CPPFLAGS'
1950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1953 if test -n "$ac_tool_prefix"; then
1954 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1955 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1958 if test "${ac_cv_prog_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test -n "$CC"; then
1962 ac_cv_prog_CC="$CC" # Let the user override the test.
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1971 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982 if test -n "$CC"; then
1983 { echo "$as_me:$LINENO: result: $CC" >&5
1984 echo "${ECHO_T}$CC" >&6; }
1986 { echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6; }
1992 if test -z "$ac_cv_prog_CC"; then
1994 # Extract the first word of "gcc", so it can be a program name with args.
1995 set dummy gcc; ac_word=$2
1996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1998 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 if test -n "$ac_ct_CC"; then
2002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2011 ac_cv_prog_ac_ct_CC="gcc"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2022 if test -n "$ac_ct_CC"; then
2023 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2024 echo "${ECHO_T}$ac_ct_CC" >&6; }
2026 { echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6; }
2030 if test "x$ac_ct_CC" = x; then
2033 case $cross_compiling:$ac_tool_warned in
2035 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2036 whose name does not start with the host triplet. If you think this
2037 configuration is useful to you, please write to autoconf@gnu.org." >&5
2038 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2039 whose name does not start with the host triplet. If you think this
2040 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2041 ac_tool_warned=yes ;;
2049 if test -z "$CC"; then
2050 if test -n "$ac_tool_prefix"; then
2051 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2052 set dummy ${ac_tool_prefix}cc; ac_word=$2
2053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 if test -n "$CC"; then
2059 ac_cv_prog_CC="$CC" # Let the user override the test.
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2068 ac_cv_prog_CC="${ac_tool_prefix}cc"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079 if test -n "$CC"; then
2080 { echo "$as_me:$LINENO: result: $CC" >&5
2081 echo "${ECHO_T}$CC" >&6; }
2083 { echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6; }
2090 if test -z "$CC"; then
2091 # Extract the first word of "cc", so it can be a program name with args.
2092 set dummy cc; ac_word=$2
2093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2095 if test "${ac_cv_prog_CC+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 if test -n "$CC"; then
2099 ac_cv_prog_CC="$CC" # Let the user override the test.
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 test -z "$as_dir" && as_dir=.
2107 for ac_exec_ext in '' $ac_executable_extensions; do
2108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2109 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2110 ac_prog_rejected=yes
2114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121 if test $ac_prog_rejected = yes; then
2122 # We found a bogon in the path, so make sure we never use it.
2123 set dummy $ac_cv_prog_CC
2125 if test $# != 0; then
2126 # We chose a different compiler from the bogus one.
2127 # However, it has the same basename, so the bogon will be chosen
2128 # first if we set CC to just the basename; use the full file name.
2130 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2136 if test -n "$CC"; then
2137 { echo "$as_me:$LINENO: result: $CC" >&5
2138 echo "${ECHO_T}$CC" >&6; }
2140 { echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6; }
2146 if test -z "$CC"; then
2147 if test -n "$ac_tool_prefix"; then
2148 for ac_prog in cl.exe
2150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2154 if test "${ac_cv_prog_CC+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 if test -n "$CC"; then
2158 ac_cv_prog_CC="$CC" # Let the user override the test.
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 test -z "$as_dir" && as_dir=.
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2167 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178 if test -n "$CC"; then
2179 { echo "$as_me:$LINENO: result: $CC" >&5
2180 echo "${ECHO_T}$CC" >&6; }
2182 { echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6; }
2187 test -n "$CC" && break
2190 if test -z "$CC"; then
2192 for ac_prog in cl.exe
2194 # Extract the first word of "$ac_prog", so it can be a program name with args.
2195 set dummy $ac_prog; ac_word=$2
2196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2198 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 if test -n "$ac_ct_CC"; then
2202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 test -z "$as_dir" && as_dir=.
2209 for ac_exec_ext in '' $ac_executable_extensions; do
2210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2211 ac_cv_prog_ac_ct_CC="$ac_prog"
2212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2222 if test -n "$ac_ct_CC"; then
2223 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2224 echo "${ECHO_T}$ac_ct_CC" >&6; }
2226 { echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6; }
2231 test -n "$ac_ct_CC" && break
2234 if test "x$ac_ct_CC" = x; then
2237 case $cross_compiling:$ac_tool_warned in
2239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2240 whose name does not start with the host triplet. If you think this
2241 configuration is useful to you, please write to autoconf@gnu.org." >&5
2242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2243 whose name does not start with the host triplet. If you think this
2244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2245 ac_tool_warned=yes ;;
2254 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2255 See \`config.log' for more details." >&5
2256 echo "$as_me: error: no acceptable C compiler found in \$PATH
2257 See \`config.log' for more details." >&2;}
2258 { (exit 1); exit 1; }; }
2260 # Provide some information about the compiler.
2261 echo "$as_me:$LINENO: checking for C compiler version" >&5
2262 ac_compiler=`set X $ac_compile; echo $2`
2263 { (ac_try="$ac_compiler --version >&5"
2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266 *) ac_try_echo=$ac_try;;
2268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2269 (eval "$ac_compiler --version >&5") 2>&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }
2273 { (ac_try="$ac_compiler -v >&5"
2275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2276 *) ac_try_echo=$ac_try;;
2278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2279 (eval "$ac_compiler -v >&5") 2>&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }
2283 { (ac_try="$ac_compiler -V >&5"
2285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2286 *) ac_try_echo=$ac_try;;
2288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2289 (eval "$ac_compiler -V >&5") 2>&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }
2294 cat >conftest.$ac_ext <<_ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h. */
2309 ac_clean_files_save=$ac_clean_files
2310 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2311 # Try to create an executable without -o first, disregard a.out.
2312 # It will help us diagnose broken compilers, and finding out an intuition
2314 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2315 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2316 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2318 # List of possible output files, starting from the most likely.
2319 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2320 # only as a last resort. b.out is created by i960 compilers.
2321 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2323 # The IRIX 6 linker writes into existing files which may not be
2324 # executable, retaining their permissions. Remove them first so a
2325 # subsequent execution test works.
2327 for ac_file in $ac_files
2330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2331 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2336 if { (ac_try="$ac_link_default"
2338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2339 *) ac_try_echo=$ac_try;;
2341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2342 (eval "$ac_link_default") 2>&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; then
2346 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2347 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2348 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2349 # so that the user can short-circuit this test for compilers unknown to
2351 for ac_file in $ac_files ''
2353 test -f "$ac_file" || continue
2355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2358 # We found the default executable, but exeext='' is most
2362 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2364 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2366 # We set ac_cv_exeext here because the later test for it is not
2367 # safe: cross compilers may not add the suffix if given an `-o'
2368 # argument, so we may need to know it at that point already.
2369 # Even if this section looks crufty: it has the advantage of
2376 test "$ac_cv_exeext" = no && ac_cv_exeext=
2382 { echo "$as_me:$LINENO: result: $ac_file" >&5
2383 echo "${ECHO_T}$ac_file" >&6; }
2384 if test -z "$ac_file"; then
2385 echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2388 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2389 See \`config.log' for more details." >&5
2390 echo "$as_me: error: C compiler cannot create executables
2391 See \`config.log' for more details." >&2;}
2392 { (exit 77); exit 77; }; }
2395 ac_exeext=$ac_cv_exeext
2397 # Check that the compiler produces executables we can run. If not, either
2398 # the compiler is broken, or we cross compile.
2399 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2400 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2401 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2402 # If not cross compiling, check that we can run a simple program.
2403 if test "$cross_compiling" != yes; then
2404 if { ac_try='./$ac_file'
2405 { (case "(($ac_try" in
2406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407 *) ac_try_echo=$ac_try;;
2409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2410 (eval "$ac_try") 2>&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; }; then
2416 if test "$cross_compiling" = maybe; then
2419 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2420 If you meant to cross compile, use \`--host'.
2421 See \`config.log' for more details." >&5
2422 echo "$as_me: error: cannot run C compiled programs.
2423 If you meant to cross compile, use \`--host'.
2424 See \`config.log' for more details." >&2;}
2425 { (exit 1); exit 1; }; }
2429 { echo "$as_me:$LINENO: result: yes" >&5
2430 echo "${ECHO_T}yes" >&6; }
2432 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2433 ac_clean_files=$ac_clean_files_save
2434 # Check that the compiler produces executables we can run. If not, either
2435 # the compiler is broken, or we cross compile.
2436 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2437 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2438 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2439 echo "${ECHO_T}$cross_compiling" >&6; }
2441 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2442 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2443 if { (ac_try="$ac_link"
2445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446 *) ac_try_echo=$ac_try;;
2448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2449 (eval "$ac_link") 2>&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; then
2453 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2454 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2455 # work properly (i.e., refer to `conftest.exe'), while it won't with
2457 for ac_file in conftest.exe conftest conftest.*; do
2458 test -f "$ac_file" || continue
2460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2461 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2467 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2468 See \`config.log' for more details." >&5
2469 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2470 See \`config.log' for more details." >&2;}
2471 { (exit 1); exit 1; }; }
2474 rm -f conftest$ac_cv_exeext
2475 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2476 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2478 rm -f conftest.$ac_ext
2479 EXEEXT=$ac_cv_exeext
2481 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2482 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2483 if test "${ac_cv_objext+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 cat >conftest.$ac_ext <<_ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h. */
2501 rm -f conftest.o conftest.obj
2502 if { (ac_try="$ac_compile"
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508 (eval "$ac_compile") 2>&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; then
2512 for ac_file in conftest.o conftest.obj conftest.*; do
2513 test -f "$ac_file" || continue;
2515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2516 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2524 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2525 See \`config.log' for more details." >&5
2526 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2527 See \`config.log' for more details." >&2;}
2528 { (exit 1); exit 1; }; }
2531 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2533 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2534 echo "${ECHO_T}$ac_cv_objext" >&6; }
2535 OBJEXT=$ac_cv_objext
2537 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2538 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2539 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 cat >conftest.$ac_ext <<_ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2560 rm -f conftest.$ac_objext
2561 if { (ac_try="$ac_compile"
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567 (eval "$ac_compile") 2>conftest.er1
2569 grep -v '^ *+' conftest.er1 >conftest.err
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } && {
2574 test -z "$ac_c_werror_flag" ||
2575 test ! -s conftest.err
2576 } && test -s conftest.$ac_objext; then
2579 echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2589 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2590 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2591 GCC=`test $ac_compiler_gnu = yes && echo yes`
2592 ac_test_CFLAGS=${CFLAGS+set}
2593 ac_save_CFLAGS=$CFLAGS
2594 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2595 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2596 if test "${ac_cv_prog_cc_g+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 ac_save_c_werror_flag=$ac_c_werror_flag
2600 ac_c_werror_flag=yes
2603 cat >conftest.$ac_ext <<_ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2618 rm -f conftest.$ac_objext
2619 if { (ac_try="$ac_compile"
2621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622 *) ac_try_echo=$ac_try;;
2624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2625 (eval "$ac_compile") 2>conftest.er1
2627 grep -v '^ *+' conftest.er1 >conftest.err
2629 cat conftest.err >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } && {
2632 test -z "$ac_c_werror_flag" ||
2633 test ! -s conftest.err
2634 } && test -s conftest.$ac_objext; then
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2641 cat >conftest.$ac_ext <<_ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h. */
2656 rm -f conftest.$ac_objext
2657 if { (ac_try="$ac_compile"
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663 (eval "$ac_compile") 2>conftest.er1
2665 grep -v '^ *+' conftest.er1 >conftest.err
2667 cat conftest.err >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } && {
2670 test -z "$ac_c_werror_flag" ||
2671 test ! -s conftest.err
2672 } && test -s conftest.$ac_objext; then
2675 echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2678 ac_c_werror_flag=$ac_save_c_werror_flag
2680 cat >conftest.$ac_ext <<_ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2695 rm -f conftest.$ac_objext
2696 if { (ac_try="$ac_compile"
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702 (eval "$ac_compile") 2>conftest.er1
2704 grep -v '^ *+' conftest.er1 >conftest.err
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } && {
2709 test -z "$ac_c_werror_flag" ||
2710 test ! -s conftest.err
2711 } && test -s conftest.$ac_objext; then
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727 ac_c_werror_flag=$ac_save_c_werror_flag
2729 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2730 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2731 if test "$ac_test_CFLAGS" = set; then
2732 CFLAGS=$ac_save_CFLAGS
2733 elif test $ac_cv_prog_cc_g = yes; then
2734 if test "$GCC" = yes; then
2740 if test "$GCC" = yes; then
2746 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2747 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2748 if test "${ac_cv_prog_cc_c89+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 ac_cv_prog_cc_c89=no
2753 cat >conftest.$ac_ext <<_ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2761 #include <sys/types.h>
2762 #include <sys/stat.h>
2763 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2764 struct buf { int x; };
2765 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2766 static char *e (p, i)
2772 static char *f (char * (*g) (char **, int), char **p, ...)
2777 s = g (p, va_arg (v,int));
2782 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2783 function prototypes and stuff, but not '\xHH' hex character constants.
2784 These don't provoke an error unfortunately, instead are silently treated
2785 as 'x'. The following induces an error, until -std is added to get
2786 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2787 array size at least. It's necessary to write '\x00'==0 to get something
2788 that's true only with -std. */
2789 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2791 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2792 inside strings and character constants. */
2794 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2796 int test (int i, double x);
2797 struct s1 {int (*f) (int a);};
2798 struct s2 {int (*f) (double a);};
2799 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2805 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2810 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2811 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2813 CC="$ac_save_CC $ac_arg"
2814 rm -f conftest.$ac_objext
2815 if { (ac_try="$ac_compile"
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821 (eval "$ac_compile") 2>conftest.er1
2823 grep -v '^ *+' conftest.er1 >conftest.err
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } && {
2828 test -z "$ac_c_werror_flag" ||
2829 test ! -s conftest.err
2830 } && test -s conftest.$ac_objext; then
2831 ac_cv_prog_cc_c89=$ac_arg
2833 echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2839 rm -f core conftest.err conftest.$ac_objext
2840 test "x$ac_cv_prog_cc_c89" != "xno" && break
2842 rm -f conftest.$ac_ext
2847 case "x$ac_cv_prog_cc_c89" in
2849 { echo "$as_me:$LINENO: result: none needed" >&5
2850 echo "${ECHO_T}none needed" >&6; } ;;
2852 { echo "$as_me:$LINENO: result: unsupported" >&5
2853 echo "${ECHO_T}unsupported" >&6; } ;;
2855 CC="$CC $ac_cv_prog_cc_c89"
2856 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2857 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868 ac_cpp='$CXXCPP $CPPFLAGS'
2869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2872 if test -z "$CXX"; then
2873 if test -n "$CCC"; then
2876 if test -n "$ac_tool_prefix"; then
2877 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2883 if test "${ac_cv_prog_CXX+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 if test -n "$CXX"; then
2887 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 if test -n "$CXX"; then
2908 { echo "$as_me:$LINENO: result: $CXX" >&5
2909 echo "${ECHO_T}$CXX" >&6; }
2911 { echo "$as_me:$LINENO: result: no" >&5
2912 echo "${ECHO_T}no" >&6; }
2916 test -n "$CXX" && break
2919 if test -z "$CXX"; then
2921 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2923 # Extract the first word of "$ac_prog", so it can be a program name with args.
2924 set dummy $ac_prog; ac_word=$2
2925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2927 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 if test -n "$ac_ct_CXX"; then
2931 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940 ac_cv_prog_ac_ct_CXX="$ac_prog"
2941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2951 if test -n "$ac_ct_CXX"; then
2952 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2953 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2955 { echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6; }
2960 test -n "$ac_ct_CXX" && break
2963 if test "x$ac_ct_CXX" = x; then
2966 case $cross_compiling:$ac_tool_warned in
2968 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2969 whose name does not start with the host triplet. If you think this
2970 configuration is useful to you, please write to autoconf@gnu.org." >&5
2971 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2972 whose name does not start with the host triplet. If you think this
2973 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2974 ac_tool_warned=yes ;;
2982 # Provide some information about the compiler.
2983 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2984 ac_compiler=`set X $ac_compile; echo $2`
2985 { (ac_try="$ac_compiler --version >&5"
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_compiler --version >&5") 2>&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }
2995 { (ac_try="$ac_compiler -v >&5"
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_compiler -v >&5") 2>&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }
3005 { (ac_try="$ac_compiler -V >&5"
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011 (eval "$ac_compiler -V >&5") 2>&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }
3016 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3017 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3018 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 cat >conftest.$ac_ext <<_ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h. */
3039 rm -f conftest.$ac_objext
3040 if { (ac_try="$ac_compile"
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compile") 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } && {
3053 test -z "$ac_cxx_werror_flag" ||
3054 test ! -s conftest.err
3055 } && test -s conftest.$ac_objext; then
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3065 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3068 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3069 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3070 GXX=`test $ac_compiler_gnu = yes && echo yes`
3071 ac_test_CXXFLAGS=${CXXFLAGS+set}
3072 ac_save_CXXFLAGS=$CXXFLAGS
3073 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3074 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3075 if test "${ac_cv_prog_cxx_g+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3079 ac_cxx_werror_flag=yes
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_compile") 2>conftest.er1
3106 grep -v '^ *+' conftest.er1 >conftest.err
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } && {
3111 test -z "$ac_cxx_werror_flag" ||
3112 test ! -s conftest.err
3113 } && test -s conftest.$ac_objext; then
3114 ac_cv_prog_cxx_g=yes
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3120 cat >conftest.$ac_ext <<_ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3144 grep -v '^ *+' conftest.er1 >conftest.err
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } && {
3149 test -z "$ac_cxx_werror_flag" ||
3150 test ! -s conftest.err
3151 } && test -s conftest.$ac_objext; then
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3157 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3159 cat >conftest.$ac_ext <<_ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3183 grep -v '^ *+' conftest.er1 >conftest.err
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } && {
3188 test -z "$ac_cxx_werror_flag" ||
3189 test ! -s conftest.err
3190 } && test -s conftest.$ac_objext; then
3191 ac_cv_prog_cxx_g=yes
3193 echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3208 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3209 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3210 if test "$ac_test_CXXFLAGS" = set; then
3211 CXXFLAGS=$ac_save_CXXFLAGS
3212 elif test $ac_cv_prog_cxx_g = yes; then
3213 if test "$GXX" = yes; then
3219 if test "$GXX" = yes; then
3226 ac_cpp='$CPP $CPPFLAGS'
3227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3239 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3240 # On Suns, sometimes $CPP names a directory.
3241 if test -n "$CPP" && test -d "$CPP"; then
3244 if test -z "$CPP"; then
3245 if test "${ac_cv_prog_CPP+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 # Double quotes because CPP needs to be expanded
3249 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3252 for ac_c_preproc_warn_flag in '' yes
3254 # Use a header file that comes with gcc, so configuring glibc
3255 # with a fresh cross-compiler works.
3256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3257 # <limits.h> exists even on freestanding compilers.
3258 # On the NeXT, cc -E runs the code through the compiler's parser,
3259 # not just through cpp. "Syntax error" is here to catch this case.
3260 cat >conftest.$ac_ext <<_ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3267 # include <limits.h>
3269 # include <assert.h>
3273 if { (ac_try="$ac_cpp conftest.$ac_ext"
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281 grep -v '^ *+' conftest.er1 >conftest.err
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } >/dev/null && {
3286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3287 test ! -s conftest.err
3291 echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3294 # Broken: fails on valid input.
3298 rm -f conftest.err conftest.$ac_ext
3300 # OK, works on sane cases. Now check whether nonexistent headers
3301 # can be detected and how.
3302 cat >conftest.$ac_ext <<_ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h. */
3308 #include <ac_nonexistent.h>
3310 if { (ac_try="$ac_cpp conftest.$ac_ext"
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3318 grep -v '^ *+' conftest.er1 >conftest.err
3320 cat conftest.err >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } >/dev/null && {
3323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3324 test ! -s conftest.err
3326 # Broken: success on invalid input.
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3332 # Passes both tests.
3337 rm -f conftest.err conftest.$ac_ext
3340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3341 rm -f conftest.err conftest.$ac_ext
3342 if $ac_preproc_ok; then
3354 { echo "$as_me:$LINENO: result: $CPP" >&5
3355 echo "${ECHO_T}$CPP" >&6; }
3357 for ac_c_preproc_warn_flag in '' yes
3359 # Use a header file that comes with gcc, so configuring glibc
3360 # with a fresh cross-compiler works.
3361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3362 # <limits.h> exists even on freestanding compilers.
3363 # On the NeXT, cc -E runs the code through the compiler's parser,
3364 # not just through cpp. "Syntax error" is here to catch this case.
3365 cat >conftest.$ac_ext <<_ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3372 # include <limits.h>
3374 # include <assert.h>
3378 if { (ac_try="$ac_cpp conftest.$ac_ext"
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3386 grep -v '^ *+' conftest.er1 >conftest.err
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } >/dev/null && {
3391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3392 test ! -s conftest.err
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3399 # Broken: fails on valid input.
3403 rm -f conftest.err conftest.$ac_ext
3405 # OK, works on sane cases. Now check whether nonexistent headers
3406 # can be detected and how.
3407 cat >conftest.$ac_ext <<_ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3413 #include <ac_nonexistent.h>
3415 if { (ac_try="$ac_cpp conftest.$ac_ext"
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3423 grep -v '^ *+' conftest.er1 >conftest.err
3425 cat conftest.err >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } >/dev/null && {
3428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3429 test ! -s conftest.err
3431 # Broken: success on invalid input.
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3437 # Passes both tests.
3442 rm -f conftest.err conftest.$ac_ext
3445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446 rm -f conftest.err conftest.$ac_ext
3447 if $ac_preproc_ok; then
3450 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3451 See \`config.log' for more details." >&5
3452 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3453 See \`config.log' for more details." >&2;}
3454 { (exit 1); exit 1; }; }
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3465 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3466 if test "${ac_cv_path_GREP+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 # Extract the first word of "grep ggrep" to use in msg output
3470 if test -z "$GREP"; then
3471 set dummy grep ggrep; ac_prog_name=$2
3472 if test "${ac_cv_path_GREP+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 ac_path_GREP_found=false
3476 # Loop through the user's path and test for each of PROGNAME-LIST
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3481 test -z "$as_dir" && as_dir=.
3482 for ac_prog in grep ggrep; do
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3485 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3486 # Check for GNU ac_path_GREP and select it if it is found.
3487 # Check for GNU $ac_path_GREP
3488 case `"$ac_path_GREP" --version 2>&1` in
3490 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3493 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3496 cat "conftest.in" "conftest.in" >"conftest.tmp"
3497 mv "conftest.tmp" "conftest.in"
3498 cp "conftest.in" "conftest.nl"
3499 echo 'GREP' >> "conftest.nl"
3500 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3502 ac_count=`expr $ac_count + 1`
3503 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3504 # Best one so far, save it but keep looking for a better one
3505 ac_cv_path_GREP="$ac_path_GREP"
3506 ac_path_GREP_max=$ac_count
3508 # 10*(2^10) chars as input seems more than enough
3509 test $ac_count -gt 10 && break
3511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3515 $ac_path_GREP_found && break 3
3525 GREP="$ac_cv_path_GREP"
3526 if test -z "$GREP"; then
3527 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3528 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3529 { (exit 1); exit 1; }; }
3533 ac_cv_path_GREP=$GREP
3538 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3539 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3540 GREP="$ac_cv_path_GREP"
3543 { echo "$as_me:$LINENO: checking for egrep" >&5
3544 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3545 if test "${ac_cv_path_EGREP+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3549 then ac_cv_path_EGREP="$GREP -E"
3551 # Extract the first word of "egrep" to use in msg output
3552 if test -z "$EGREP"; then
3553 set dummy egrep; ac_prog_name=$2
3554 if test "${ac_cv_path_EGREP+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 ac_path_EGREP_found=false
3558 # Loop through the user's path and test for each of PROGNAME-LIST
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3563 test -z "$as_dir" && as_dir=.
3564 for ac_prog in egrep; do
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3567 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3568 # Check for GNU ac_path_EGREP and select it if it is found.
3569 # Check for GNU $ac_path_EGREP
3570 case `"$ac_path_EGREP" --version 2>&1` in
3572 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3575 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3578 cat "conftest.in" "conftest.in" >"conftest.tmp"
3579 mv "conftest.tmp" "conftest.in"
3580 cp "conftest.in" "conftest.nl"
3581 echo 'EGREP' >> "conftest.nl"
3582 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3584 ac_count=`expr $ac_count + 1`
3585 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3586 # Best one so far, save it but keep looking for a better one
3587 ac_cv_path_EGREP="$ac_path_EGREP"
3588 ac_path_EGREP_max=$ac_count
3590 # 10*(2^10) chars as input seems more than enough
3591 test $ac_count -gt 10 && break
3593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3597 $ac_path_EGREP_found && break 3
3607 EGREP="$ac_cv_path_EGREP"
3608 if test -z "$EGREP"; then
3609 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3610 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3611 { (exit 1); exit 1; }; }
3615 ac_cv_path_EGREP=$EGREP
3621 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3622 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3623 EGREP="$ac_cv_path_EGREP"
3627 { echo "$as_me:$LINENO: checking for AIX" >&5
3628 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3629 cat >conftest.$ac_ext <<_ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h. */
3640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3641 $EGREP "yes" >/dev/null 2>&1; then
3642 { echo "$as_me:$LINENO: result: yes" >&5
3643 echo "${ECHO_T}yes" >&6; }
3644 cat >>confdefs.h <<\_ACEOF
3645 #define _ALL_SOURCE 1
3649 { echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6; }
3656 if test $ac_cv_c_compiler_gnu = yes; then
3657 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3658 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3659 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 ac_pattern="Autoconf.*'x'"
3663 cat >conftest.$ac_ext <<_ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3673 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3674 ac_cv_prog_gcc_traditional=yes
3676 ac_cv_prog_gcc_traditional=no
3681 if test $ac_cv_prog_gcc_traditional = no; then
3682 cat >conftest.$ac_ext <<_ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3692 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3693 ac_cv_prog_gcc_traditional=yes
3699 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3700 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3701 if test $ac_cv_prog_gcc_traditional = yes; then
3702 CC="$CC -traditional"
3706 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3707 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3708 if test "${ac_cv_prog_suncc+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 cat > conftest.c <<EOF
3716 if { ac_try='${CC-cc} -E conftest.c'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3722 ac_cv_prog_suncc=yes
3727 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3728 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3729 if test -n "$ac_tool_prefix"; then
3730 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3731 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3734 if test "${ac_cv_prog_RANLIB+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 if test -n "$RANLIB"; then
3738 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 RANLIB=$ac_cv_prog_RANLIB
3758 if test -n "$RANLIB"; then
3759 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3760 echo "${ECHO_T}$RANLIB" >&6; }
3762 { echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6; }
3768 if test -z "$ac_cv_prog_RANLIB"; then
3769 ac_ct_RANLIB=$RANLIB
3770 # Extract the first word of "ranlib", so it can be a program name with args.
3771 set dummy ranlib; ac_word=$2
3772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3774 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 if test -n "$ac_ct_RANLIB"; then
3778 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 test -z "$as_dir" && as_dir=.
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3787 ac_cv_prog_ac_ct_RANLIB="ranlib"
3788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3798 if test -n "$ac_ct_RANLIB"; then
3799 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3800 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3802 { echo "$as_me:$LINENO: result: no" >&5
3803 echo "${ECHO_T}no" >&6; }
3806 if test "x$ac_ct_RANLIB" = x; then
3809 case $cross_compiling:$ac_tool_warned in
3811 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3812 whose name does not start with the host triplet. If you think this
3813 configuration is useful to you, please write to autoconf@gnu.org." >&5
3814 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3815 whose name does not start with the host triplet. If you think this
3816 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3817 ac_tool_warned=yes ;;
3819 RANLIB=$ac_ct_RANLIB
3822 RANLIB="$ac_cv_prog_RANLIB"
3826 # Check whether --enable-largefile was given.
3827 if test "${enable_largefile+set}" = set; then
3828 enableval=$enable_largefile;
3831 if test "$enable_largefile" != no; then
3833 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3834 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3835 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 ac_cv_sys_largefile_CC=no
3839 if test "$GCC" != yes; then
3842 # IRIX 6.2 and later do not support large files by default,
3843 # so use the C compiler's -n32 option if that helps.
3844 cat >conftest.$ac_ext <<_ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3850 #include <sys/types.h>
3851 /* Check that off_t can represent 2**63 - 1 correctly.
3852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3853 since some C++ compilers masquerading as C compilers
3854 incorrectly reject 9223372036854775807. */
3855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3857 && LARGE_OFF_T % 2147483647 == 1)
3867 rm -f conftest.$ac_objext
3868 if { (ac_try="$ac_compile"
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874 (eval "$ac_compile") 2>conftest.er1
3876 grep -v '^ *+' conftest.er1 >conftest.err
3878 cat conftest.err >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); } && {
3881 test -z "$ac_c_werror_flag" ||
3882 test ! -s conftest.err
3883 } && test -s conftest.$ac_objext; then
3886 echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3892 rm -f core conftest.err conftest.$ac_objext
3894 rm -f conftest.$ac_objext
3895 if { (ac_try="$ac_compile"
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901 (eval "$ac_compile") 2>conftest.er1
3903 grep -v '^ *+' conftest.er1 >conftest.err
3905 cat conftest.err >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } && {
3908 test -z "$ac_c_werror_flag" ||
3909 test ! -s conftest.err
3910 } && test -s conftest.$ac_objext; then
3911 ac_cv_sys_largefile_CC=' -n32'; break
3913 echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3919 rm -f core conftest.err conftest.$ac_objext
3923 rm -f conftest.$ac_ext
3926 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3927 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3928 if test "$ac_cv_sys_largefile_CC" != no; then
3929 CC=$CC$ac_cv_sys_largefile_CC
3932 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3933 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3934 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 cat >conftest.$ac_ext <<_ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3944 #include <sys/types.h>
3945 /* Check that off_t can represent 2**63 - 1 correctly.
3946 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3947 since some C++ compilers masquerading as C compilers
3948 incorrectly reject 9223372036854775807. */
3949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3950 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3951 && LARGE_OFF_T % 2147483647 == 1)
3961 rm -f conftest.$ac_objext
3962 if { (ac_try="$ac_compile"
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968 (eval "$ac_compile") 2>conftest.er1
3970 grep -v '^ *+' conftest.er1 >conftest.err
3972 cat conftest.err >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } && {
3975 test -z "$ac_c_werror_flag" ||
3976 test ! -s conftest.err
3977 } && test -s conftest.$ac_objext; then
3978 ac_cv_sys_file_offset_bits=no; break
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987 cat >conftest.$ac_ext <<_ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993 #define _FILE_OFFSET_BITS 64
3994 #include <sys/types.h>
3995 /* Check that off_t can represent 2**63 - 1 correctly.
3996 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3997 since some C++ compilers masquerading as C compilers
3998 incorrectly reject 9223372036854775807. */
3999 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4001 && LARGE_OFF_T % 2147483647 == 1)
4011 rm -f conftest.$ac_objext
4012 if { (ac_try="$ac_compile"
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_compile") 2>conftest.er1
4020 grep -v '^ *+' conftest.er1 >conftest.err
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } && {
4025 test -z "$ac_c_werror_flag" ||
4026 test ! -s conftest.err
4027 } && test -s conftest.$ac_objext; then
4028 ac_cv_sys_file_offset_bits=64; break
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037 ac_cv_sys_file_offset_bits=unknown
4041 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4042 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4043 case $ac_cv_sys_file_offset_bits in #(
4046 cat >>confdefs.h <<_ACEOF
4047 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4052 if test $ac_cv_sys_file_offset_bits = unknown; then
4053 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4054 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4055 if test "${ac_cv_sys_large_files+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 cat >conftest.$ac_ext <<_ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4065 #include <sys/types.h>
4066 /* Check that off_t can represent 2**63 - 1 correctly.
4067 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4068 since some C++ compilers masquerading as C compilers
4069 incorrectly reject 9223372036854775807. */
4070 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4071 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4072 && LARGE_OFF_T % 2147483647 == 1)
4082 rm -f conftest.$ac_objext
4083 if { (ac_try="$ac_compile"
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_compile") 2>conftest.er1
4091 grep -v '^ *+' conftest.er1 >conftest.err
4093 cat conftest.err >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } && {
4096 test -z "$ac_c_werror_flag" ||
4097 test ! -s conftest.err
4098 } && test -s conftest.$ac_objext; then
4099 ac_cv_sys_large_files=no; break
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 cat >conftest.$ac_ext <<_ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4114 #define _LARGE_FILES 1
4115 #include <sys/types.h>
4116 /* Check that off_t can represent 2**63 - 1 correctly.
4117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4118 since some C++ compilers masquerading as C compilers
4119 incorrectly reject 9223372036854775807. */
4120 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4122 && LARGE_OFF_T % 2147483647 == 1)
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_compile") 2>conftest.er1
4141 grep -v '^ *+' conftest.er1 >conftest.err
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } && {
4146 test -z "$ac_c_werror_flag" ||
4147 test ! -s conftest.err
4148 } && test -s conftest.$ac_objext; then
4149 ac_cv_sys_large_files=1; break
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 ac_cv_sys_large_files=unknown
4162 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4163 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4164 case $ac_cv_sys_large_files in #(
4167 cat >>confdefs.h <<_ACEOF
4168 #define _LARGE_FILES $ac_cv_sys_large_files
4177 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4178 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4179 if test "${ac_cv_header_stdc+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 cat >conftest.$ac_ext <<_ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4201 rm -f conftest.$ac_objext
4202 if { (ac_try="$ac_compile"
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208 (eval "$ac_compile") 2>conftest.er1
4210 grep -v '^ *+' conftest.er1 >conftest.err
4212 cat conftest.err >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); } && {
4215 test -z "$ac_c_werror_flag" ||
4216 test ! -s conftest.err
4217 } && test -s conftest.$ac_objext; then
4218 ac_cv_header_stdc=yes
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4223 ac_cv_header_stdc=no
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 if test $ac_cv_header_stdc = yes; then
4229 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4230 cat >conftest.$ac_ext <<_ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4240 $EGREP "memchr" >/dev/null 2>&1; then
4243 ac_cv_header_stdc=no
4249 if test $ac_cv_header_stdc = yes; then
4250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4251 cat >conftest.$ac_ext <<_ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4261 $EGREP "free" >/dev/null 2>&1; then
4264 ac_cv_header_stdc=no
4270 if test $ac_cv_header_stdc = yes; then
4271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4272 if test "$cross_compiling" = yes; then
4275 cat >conftest.$ac_ext <<_ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4283 #if ((' ' & 0x0FF) == 0x020)
4284 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4285 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4287 # define ISLOWER(c) \
4288 (('a' <= (c) && (c) <= 'i') \
4289 || ('j' <= (c) && (c) <= 'r') \
4290 || ('s' <= (c) && (c) <= 'z'))
4291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4299 for (i = 0; i < 256; i++)
4300 if (XOR (islower (i), ISLOWER (i))
4301 || toupper (i) != TOUPPER (i))
4306 rm -f conftest$ac_exeext
4307 if { (ac_try="$ac_link"
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_link") 2>&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4317 { (case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_try") 2>&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4328 echo "$as_me: program exited with status $ac_status" >&5
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4333 ac_cv_header_stdc=no
4335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4341 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4342 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4343 if test $ac_cv_header_stdc = yes; then
4345 cat >>confdefs.h <<\_ACEOF
4346 #define STDC_HEADERS 1
4351 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4361 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4362 inttypes.h stdint.h unistd.h
4364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 cat >conftest.$ac_ext <<_ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h. */
4376 $ac_includes_default
4378 #include <$ac_header>
4380 rm -f conftest.$ac_objext
4381 if { (ac_try="$ac_compile"
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387 (eval "$ac_compile") 2>conftest.er1
4389 grep -v '^ *+' conftest.er1 >conftest.err
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } && {
4394 test -z "$ac_c_werror_flag" ||
4395 test ! -s conftest.err
4396 } && test -s conftest.$ac_objext; then
4397 eval "$as_ac_Header=yes"
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4402 eval "$as_ac_Header=no"
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407 ac_res=`eval echo '${'$as_ac_Header'}'`
4408 { echo "$as_me:$LINENO: result: $ac_res" >&5
4409 echo "${ECHO_T}$ac_res" >&6; }
4410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4411 cat >>confdefs.h <<_ACEOF
4412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4420 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4421 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4422 if test "${ac_cv_c_bigendian+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 # See if sys/param.h defines the BYTE_ORDER macro.
4426 cat >conftest.$ac_ext <<_ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #include <sys/types.h>
4433 #include <sys/param.h>
4438 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4439 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4447 rm -f conftest.$ac_objext
4448 if { (ac_try="$ac_compile"
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454 (eval "$ac_compile") 2>conftest.er1
4456 grep -v '^ *+' conftest.er1 >conftest.err
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } && {
4461 test -z "$ac_c_werror_flag" ||
4462 test ! -s conftest.err
4463 } && test -s conftest.$ac_objext; then
4464 # It does; now see whether it defined to BIG_ENDIAN or not.
4465 cat >conftest.$ac_ext <<_ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h. */
4471 #include <sys/types.h>
4472 #include <sys/param.h>
4477 #if BYTE_ORDER != BIG_ENDIAN
4485 rm -f conftest.$ac_objext
4486 if { (ac_try="$ac_compile"
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4492 (eval "$ac_compile") 2>conftest.er1
4494 grep -v '^ *+' conftest.er1 >conftest.err
4496 cat conftest.err >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } && {
4499 test -z "$ac_c_werror_flag" ||
4500 test ! -s conftest.err
4501 } && test -s conftest.$ac_objext; then
4502 ac_cv_c_bigendian=yes
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4507 ac_cv_c_bigendian=no
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4515 # It does not; compile a test program.
4516 if test "$cross_compiling" = yes; then
4517 # try to guess the endianness by grepping values into an object file
4518 ac_cv_c_bigendian=unknown
4519 cat >conftest.$ac_ext <<_ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h. */
4525 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4526 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4527 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4528 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4529 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4530 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4534 _ascii (); _ebcdic ();
4539 rm -f conftest.$ac_objext
4540 if { (ac_try="$ac_compile"
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546 (eval "$ac_compile") 2>conftest.er1
4548 grep -v '^ *+' conftest.er1 >conftest.err
4550 cat conftest.err >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } && {
4553 test -z "$ac_c_werror_flag" ||
4554 test ! -s conftest.err
4555 } && test -s conftest.$ac_objext; then
4556 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4557 ac_cv_c_bigendian=yes
4559 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4560 if test "$ac_cv_c_bigendian" = unknown; then
4561 ac_cv_c_bigendian=no
4563 # finding both strings is unlikely to happen, but who knows?
4564 ac_cv_c_bigendian=unknown
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 cat >conftest.$ac_ext <<_ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 $ac_includes_default
4587 /* Are we little or big endian? From Harbison&Steele. */
4591 char c[sizeof (long int)];
4594 return u.c[sizeof (long int) - 1] == 1;
4600 rm -f conftest$ac_exeext
4601 if { (ac_try="$ac_link"
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4607 (eval "$ac_link") 2>&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4611 { (case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616 (eval "$ac_try") 2>&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 ac_cv_c_bigendian=no
4622 echo "$as_me: program exited with status $ac_status" >&5
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4627 ac_cv_c_bigendian=yes
4629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4638 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4639 case $ac_cv_c_bigendian in
4642 cat >>confdefs.h <<\_ACEOF
4643 #define WORDS_BIGENDIAN 1
4649 { { echo "$as_me:$LINENO: error: unknown endianness
4650 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4651 echo "$as_me: error: unknown endianness
4652 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4653 { (exit 1); exit 1; }; } ;;
4657 # Extract the first word of "gmake", so it can be a program name with args.
4658 set dummy gmake; ac_word=$2
4659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4661 if test "${ac_cv_prog_GMAKE+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 if test -n "$GMAKE"; then
4665 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674 ac_cv_prog_GMAKE="yes"
4675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4685 GMAKE=$ac_cv_prog_GMAKE
4686 if test -n "$GMAKE"; then
4687 { echo "$as_me:$LINENO: result: $GMAKE" >&5
4688 echo "${ECHO_T}$GMAKE" >&6; }
4690 { echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6; }
4695 if test $GMAKE = no; then
4696 # Extract the first word of "make", so it can be a program name with args.
4697 set dummy make; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_path_MAKE+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4727 MAKE=$ac_cv_path_MAKE
4728 if test -n "$MAKE"; then
4729 { echo "$as_me:$LINENO: result: $MAKE" >&5
4730 echo "${ECHO_T}$MAKE" >&6; }
4732 { echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6; }
4738 # Extract the first word of "gmake", so it can be a program name with args.
4739 set dummy gmake; ac_word=$2
4740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4742 if test "${ac_cv_path_MAKE+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4769 MAKE=$ac_cv_path_MAKE
4770 if test -n "$MAKE"; then
4771 { echo "$as_me:$LINENO: result: $MAKE" >&5
4772 echo "${ECHO_T}$MAKE" >&6; }
4774 { echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6; }
4780 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4781 if test -z "$makever"; then
4782 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
4783 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4784 echo "$as_me: error: GNU Make is not installed. Please download and install it
4785 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4786 { (exit 1); exit 1; }; }
4789 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4790 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4791 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 ac_check_lib_save_LIBS=$LIBS
4796 cat >conftest.$ac_ext <<_ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4803 /* Override any GCC internal prototype to avoid an error.
4804 Use char because int might match the return type of a GCC
4805 builtin and then its argument prototype would still apply. */
4813 return lt_dlinit ();
4818 rm -f conftest.$ac_objext conftest$ac_exeext
4819 if { (ac_try="$ac_link"
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825 (eval "$ac_link") 2>conftest.er1
4827 grep -v '^ *+' conftest.er1 >conftest.err
4829 cat conftest.err >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } && {
4832 test -z "$ac_c_werror_flag" ||
4833 test ! -s conftest.err
4834 } && test -s conftest$ac_exeext &&
4835 $as_test_x conftest$ac_exeext; then
4836 ac_cv_lib_ltdl_lt_dlinit=yes
4838 echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4841 ac_cv_lib_ltdl_lt_dlinit=no
4844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4845 conftest$ac_exeext conftest.$ac_ext
4846 LIBS=$ac_check_lib_save_LIBS
4848 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4849 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4850 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4851 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4853 if test x"$enable_ltdl_install" = xno; then
4854 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4855 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4857 enable_ltdl_install=yes
4862 if test x"$enable_ltdl_install" = x"yes"; then
4863 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4864 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4865 LTDLINCL='-I${top_srcdir}/''libltdl'
4867 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4871 # For backwards non-gettext consistent compatibility...
4875 if test x"$enable_ltdl_install" = x"yes"; then
4876 LTDL_SUBDIRS=libltdl
4880 # Check whether --enable-shared was given.
4881 if test "${enable_shared+set}" = set; then
4882 enableval=$enable_shared; p=${PACKAGE-default}
4884 yes) enable_shared=yes ;;
4885 no) enable_shared=no ;;
4888 # Look at the argument we got. We use all the common list separators.
4889 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4890 for pkg in $enableval; do
4892 if test "X$pkg" = "X$p"; then
4904 # Check whether --enable-static was given.
4905 if test "${enable_static+set}" = set; then
4906 enableval=$enable_static; p=${PACKAGE-default}
4908 yes) enable_static=yes ;;
4909 no) enable_static=no ;;
4912 # Look at the argument we got. We use all the common list separators.
4913 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4914 for pkg in $enableval; do
4916 if test "X$pkg" = "X$p"; then
4928 # Check whether --enable-fast-install was given.
4929 if test "${enable_fast_install+set}" = set; then
4930 enableval=$enable_fast_install; p=${PACKAGE-default}
4932 yes) enable_fast_install=yes ;;
4933 no) enable_fast_install=no ;;
4935 enable_fast_install=no
4936 # Look at the argument we got. We use all the common list separators.
4937 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4938 for pkg in $enableval; do
4940 if test "X$pkg" = "X$p"; then
4941 enable_fast_install=yes
4948 enable_fast_install=yes
4953 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4954 if test -f "$ac_dir/install-sh"; then
4956 ac_install_sh="$ac_aux_dir/install-sh -c"
4958 elif test -f "$ac_dir/install.sh"; then
4960 ac_install_sh="$ac_aux_dir/install.sh -c"
4962 elif test -f "$ac_dir/shtool"; then
4964 ac_install_sh="$ac_aux_dir/shtool install -c"
4968 if test -z "$ac_aux_dir"; then
4969 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4970 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4971 { (exit 1); exit 1; }; }
4974 # These three variables are undocumented and unsupported,
4975 # and are intended to be withdrawn in a future Autoconf release.
4976 # They can cause serious problems if a builder's source tree is in a directory
4977 # whose full name contains unusual characters.
4978 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4979 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4980 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4983 # Make sure we can run config.sub.
4984 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4985 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4986 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4987 { (exit 1); exit 1; }; }
4989 { echo "$as_me:$LINENO: checking build system type" >&5
4990 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4991 if test "${ac_cv_build+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 ac_build_alias=$build_alias
4995 test "x$ac_build_alias" = x &&
4996 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4997 test "x$ac_build_alias" = x &&
4998 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4999 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5000 { (exit 1); exit 1; }; }
5001 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5002 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5003 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5004 { (exit 1); exit 1; }; }
5007 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5008 echo "${ECHO_T}$ac_cv_build" >&6; }
5009 case $ac_cv_build in
5011 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5012 echo "$as_me: error: invalid value of canonical build" >&2;}
5013 { (exit 1); exit 1; }; };;
5016 ac_save_IFS=$IFS; IFS='-'
5022 # Remember, the first character of IFS is used to create $*,
5023 # except with old shells:
5026 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5029 { echo "$as_me:$LINENO: checking host system type" >&5
5030 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5031 if test "${ac_cv_host+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 if test "x$host_alias" = x; then
5035 ac_cv_host=$ac_cv_build
5037 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5038 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5039 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5040 { (exit 1); exit 1; }; }
5044 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5045 echo "${ECHO_T}$ac_cv_host" >&6; }
5048 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5049 echo "$as_me: error: invalid value of canonical host" >&2;}
5050 { (exit 1); exit 1; }; };;
5053 ac_save_IFS=$IFS; IFS='-'
5059 # Remember, the first character of IFS is used to create $*,
5060 # except with old shells:
5063 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5066 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5067 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5068 if test "${lt_cv_path_SED+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 # Loop through the user's path and test for sed and gsed.
5072 # Then use that list of sed's as ones to test for truncation.
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 test -z "$as_dir" && as_dir=.
5078 for lt_ac_prog in sed gsed; do
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5081 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5088 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5089 # along with /bin/sed that truncates output.
5090 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5091 test ! -f $lt_ac_sed && continue
5092 cat /dev/null > conftest.in
5094 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5095 # Check for GNU sed and select it if it is found.
5096 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5097 lt_cv_path_SED=$lt_ac_sed
5101 cat conftest.in conftest.in >conftest.tmp
5102 mv conftest.tmp conftest.in
5103 cp conftest.in conftest.nl
5105 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5106 cmp -s conftest.out conftest.nl || break
5107 # 10000 chars as input seems more than enough
5108 test $lt_ac_count -gt 10 && break
5109 lt_ac_count=`expr $lt_ac_count + 1`
5110 if test $lt_ac_count -gt $lt_ac_max; then
5111 lt_ac_max=$lt_ac_count
5112 lt_cv_path_SED=$lt_ac_sed
5120 { echo "$as_me:$LINENO: result: $SED" >&5
5121 echo "${ECHO_T}$SED" >&6; }
5124 # Check whether --with-gnu-ld was given.
5125 if test "${with_gnu_ld+set}" = set; then
5126 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5132 if test "$GCC" = yes; then
5133 # Check if gcc -print-prog-name=ld gives a path.
5134 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5135 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5138 # gcc leaves a trailing carriage return which upsets mingw
5139 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5141 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5144 # Accept absolute paths.
5146 re_direlt='/[^/][^/]*/\.\./'
5147 # Canonicalize the pathname of ld
5148 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5149 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5150 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5152 test -z "$LD" && LD="$ac_prog"
5155 # If it fails, then pretend we aren't using GCC.
5159 # If it is relative, then search for the first ld in PATH.
5163 elif test "$with_gnu_ld" = yes; then
5164 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5165 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5167 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5168 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5170 if test "${lt_cv_path_LD+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 if test -z "$LD"; then
5174 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5175 for ac_dir in $PATH; do
5177 test -z "$ac_dir" && ac_dir=.
5178 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5179 lt_cv_path_LD="$ac_dir/$ac_prog"
5180 # Check to see if the program is GNU ld. I'd rather use --version,
5181 # but apparently some variants of GNU ld only accept -v.
5182 # Break only if it was the GNU/non-GNU ld that we prefer.
5183 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5184 *GNU* | *'with BFD'*)
5185 test "$with_gnu_ld" != no && break
5188 test "$with_gnu_ld" != yes && break
5195 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5200 if test -n "$LD"; then
5201 { echo "$as_me:$LINENO: result: $LD" >&5
5202 echo "${ECHO_T}$LD" >&6; }
5204 { echo "$as_me:$LINENO: result: no" >&5
5205 echo "${ECHO_T}no" >&6; }
5207 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5208 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5209 { (exit 1); exit 1; }; }
5210 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5211 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5212 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5216 case `$LD -v 2>&1 </dev/null` in
5217 *GNU* | *'with BFD'*)
5218 lt_cv_prog_gnu_ld=yes
5221 lt_cv_prog_gnu_ld=no
5225 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5226 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5227 with_gnu_ld=$lt_cv_prog_gnu_ld
5230 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5231 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5232 if test "${lt_cv_ld_reload_flag+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 lt_cv_ld_reload_flag='-r'
5237 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5238 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5239 reload_flag=$lt_cv_ld_reload_flag
5240 case $reload_flag in
5242 *) reload_flag=" $reload_flag" ;;
5244 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5247 if test "$GCC" = yes; then
5248 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5250 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5255 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5256 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5257 if test "${lt_cv_path_NM+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 if test -n "$NM"; then
5261 # Let the user override the test.
5264 lt_nm_to_check="${ac_tool_prefix}nm"
5265 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5266 lt_nm_to_check="$lt_nm_to_check nm"
5268 for lt_tmp_nm in $lt_nm_to_check; do
5269 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5270 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5272 test -z "$ac_dir" && ac_dir=.
5273 tmp_nm="$ac_dir/$lt_tmp_nm"
5274 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5275 # Check to see if the nm accepts a BSD-compat flag.
5276 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5277 # nm: unknown option "B" ignored
5278 # Tru64's nm complains that /dev/null is an invalid object file
5279 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5280 */dev/null* | *'Invalid file or object type'*)
5281 lt_cv_path_NM="$tmp_nm -B"
5285 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5287 lt_cv_path_NM="$tmp_nm -p"
5291 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5292 continue # so that we can try to find one that supports BSD flags
5301 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5304 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5305 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5308 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5309 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5311 if test "$LN_S" = "ln -s"; then
5312 { echo "$as_me:$LINENO: result: yes" >&5
5313 echo "${ECHO_T}yes" >&6; }
5315 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5316 echo "${ECHO_T}no, using $LN_S" >&6; }
5319 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5320 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5321 if test "${lt_cv_deplibs_check_method+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 lt_cv_file_magic_cmd='$MAGIC_CMD'
5325 lt_cv_file_magic_test_file=
5326 lt_cv_deplibs_check_method='unknown'
5327 # Need to set the preceding variable on all platforms that support
5328 # interlibrary dependencies.
5329 # 'none' -- dependencies not supported.
5330 # `unknown' -- same as none, but documents that we really don't know.
5331 # 'pass_all' -- all dependencies passed with no checks.
5332 # 'test_compile' -- check by making test program.
5333 # 'file_magic [[regex]]' -- check by looking for files in library path
5334 # which responds to the $file_magic_cmd with a given extended regex.
5335 # If you have `file' or equivalent on your system and you're not sure
5336 # whether `pass_all' will *always* work, you probably want this one.
5340 lt_cv_deplibs_check_method=pass_all
5344 lt_cv_deplibs_check_method=pass_all
5348 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5349 lt_cv_file_magic_cmd='/usr/bin/file -L'
5350 lt_cv_file_magic_test_file=/shlib/libc.so
5354 # func_win32_libid is a shell function defined in ltmain.sh
5355 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5356 lt_cv_file_magic_cmd='func_win32_libid'
5360 # Base MSYS/MinGW do not provide the 'file' command needed by
5361 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5362 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5363 lt_cv_file_magic_cmd='$OBJDUMP -f'
5366 darwin* | rhapsody*)
5367 lt_cv_deplibs_check_method=pass_all
5370 freebsd* | kfreebsd*-gnu | dragonfly*)
5371 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5374 # Not sure whether the presence of OpenBSD here was a mistake.
5375 # Let's accept both of them until this is cleared up.
5376 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5377 lt_cv_file_magic_cmd=/usr/bin/file
5378 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5382 lt_cv_deplibs_check_method=pass_all
5387 lt_cv_deplibs_check_method=pass_all
5390 hpux10.20* | hpux11*)
5391 lt_cv_file_magic_cmd=/usr/bin/file
5394 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5395 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5398 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]'
5399 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5402 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5403 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5409 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5413 irix5* | irix6* | nonstopux*)
5415 *-32|*"-32 ") libmagic=32-bit;;
5416 *-n32|*"-n32 ") libmagic=N32;;
5417 *-64|*"-64 ") libmagic=64-bit;;
5418 *) libmagic=never-match;;
5420 lt_cv_deplibs_check_method=pass_all
5423 # This must be Linux ELF.
5425 lt_cv_deplibs_check_method=pass_all
5429 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5430 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5432 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5437 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5438 lt_cv_file_magic_cmd=/usr/bin/file
5439 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5443 lt_cv_deplibs_check_method=unknown
5447 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5448 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5450 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5454 osf3* | osf4* | osf5*)
5455 lt_cv_deplibs_check_method=pass_all
5459 lt_cv_deplibs_check_method=pass_all
5463 case $host_vendor in
5465 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]'
5466 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5469 lt_cv_deplibs_check_method=pass_all
5472 lt_cv_file_magic_cmd='/bin/file'
5473 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5476 lt_cv_file_magic_cmd='/bin/file'
5477 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5478 lt_cv_file_magic_test_file=/lib/libc.so
5481 lt_cv_deplibs_check_method=pass_all
5484 lt_cv_deplibs_check_method=pass_all
5489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5490 lt_cv_deplibs_check_method=pass_all
5495 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5496 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5497 file_magic_cmd=$lt_cv_file_magic_cmd
5498 deplibs_check_method=$lt_cv_deplibs_check_method
5499 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5504 # If no C compiler was specified, use CC.
5507 # If no C compiler flags were specified, use CFLAGS.
5508 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5510 # Allow CC to be a program name with arguments.
5513 # Check whether --enable-libtool-lock was given.
5514 if test "${enable_libtool_lock+set}" = set; then
5515 enableval=$enable_libtool_lock;
5518 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5520 # Some flags need to be propagated to the compiler or linker for good
5524 # Find out which ABI we are using.
5525 echo 'int i;' > conftest.$ac_ext
5526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5527 (eval $ac_compile) 2>&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; then
5531 case `/usr/bin/file conftest.$ac_objext` in
5543 # Find out which ABI we are using.
5544 echo '#line 5544 "configure"' > conftest.$ac_ext
5545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5546 (eval $ac_compile) 2>&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; then
5550 if test "$lt_cv_prog_gnu_ld" = yes; then
5551 case `/usr/bin/file conftest.$ac_objext` in
5553 LD="${LD-ld} -melf32bsmip"
5556 LD="${LD-ld} -melf32bmipn32"
5559 LD="${LD-ld} -melf64bmip"
5563 case `/usr/bin/file conftest.$ac_objext` in
5579 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5580 # Find out which ABI we are using.
5581 echo 'int i;' > conftest.$ac_ext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583 (eval $ac_compile) 2>&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; then
5587 case `/usr/bin/file conftest.o` in
5591 LD="${LD-ld} -m elf_i386"
5593 ppc64-*linux*|powerpc64-*linux*)
5594 LD="${LD-ld} -m elf32ppclinux"
5597 LD="${LD-ld} -m elf_s390"
5600 LD="${LD-ld} -m elf32_sparc"
5607 LD="${LD-ld} -m elf_x86_64"
5609 ppc*-*linux*|powerpc*-*linux*)
5610 LD="${LD-ld} -m elf64ppc"
5613 LD="${LD-ld} -m elf64_s390"
5616 LD="${LD-ld} -m elf64_sparc"
5626 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5627 SAVE_CFLAGS="$CFLAGS"
5628 CFLAGS="$CFLAGS -belf"
5629 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5630 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5631 if test "${lt_cv_cc_needs_belf+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 ac_cpp='$CPP $CPPFLAGS'
5636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5640 cat >conftest.$ac_ext <<_ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h. */
5655 rm -f conftest.$ac_objext conftest$ac_exeext
5656 if { (ac_try="$ac_link"
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_link") 2>conftest.er1
5664 grep -v '^ *+' conftest.er1 >conftest.err
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } && {
5669 test -z "$ac_c_werror_flag" ||
5670 test ! -s conftest.err
5671 } && test -s conftest$ac_exeext &&
5672 $as_test_x conftest$ac_exeext; then
5673 lt_cv_cc_needs_belf=yes
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5678 lt_cv_cc_needs_belf=no
5681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5682 conftest$ac_exeext conftest.$ac_ext
5684 ac_cpp='$CPP $CPPFLAGS'
5685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5690 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5691 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5692 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5693 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5694 CFLAGS="$SAVE_CFLAGS"
5698 # Find out which ABI we are using.
5699 echo 'int i;' > conftest.$ac_ext
5700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5701 (eval $ac_compile) 2>&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; then
5705 case `/usr/bin/file conftest.o` in
5707 case $lt_cv_prog_gnu_ld in
5708 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5709 *) LD="${LD-ld} -64" ;;
5720 need_locks="$enable_libtool_lock"
5724 for ac_header in dlfcn.h
5726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 ac_res=`eval echo '${'$as_ac_Header'}'`
5734 { echo "$as_me:$LINENO: result: $ac_res" >&5
5735 echo "${ECHO_T}$ac_res" >&6; }
5737 # Is the header compilable?
5738 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5740 cat >conftest.$ac_ext <<_ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5746 $ac_includes_default
5747 #include <$ac_header>
5749 rm -f conftest.$ac_objext
5750 if { (ac_try="$ac_compile"
5752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753 *) ac_try_echo=$ac_try;;
5755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5756 (eval "$ac_compile") 2>conftest.er1
5758 grep -v '^ *+' conftest.er1 >conftest.err
5760 cat conftest.err >&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } && {
5763 test -z "$ac_c_werror_flag" ||
5764 test ! -s conftest.err
5765 } && test -s conftest.$ac_objext; then
5766 ac_header_compiler=yes
5768 echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5771 ac_header_compiler=no
5774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5776 echo "${ECHO_T}$ac_header_compiler" >&6; }
5778 # Is the header present?
5779 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5781 cat >conftest.$ac_ext <<_ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5787 #include <$ac_header>
5789 if { (ac_try="$ac_cpp conftest.$ac_ext"
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5797 grep -v '^ *+' conftest.er1 >conftest.err
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } >/dev/null && {
5802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5803 test ! -s conftest.err
5805 ac_header_preproc=yes
5807 echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5810 ac_header_preproc=no
5813 rm -f conftest.err conftest.$ac_ext
5814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5815 echo "${ECHO_T}$ac_header_preproc" >&6; }
5817 # So? What about this header?
5818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5824 ac_header_preproc=yes
5827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 eval "$as_ac_Header=\$ac_header_preproc"
5849 ac_res=`eval echo '${'$as_ac_Header'}'`
5850 { echo "$as_me:$LINENO: result: $ac_res" >&5
5851 echo "${ECHO_T}$ac_res" >&6; }
5854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5855 cat >>confdefs.h <<_ACEOF
5856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5865 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5866 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5867 (test "X$CXX" != "Xg++"))) ; then
5869 ac_cpp='$CXXCPP $CPPFLAGS'
5870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5873 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5874 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5875 if test -z "$CXXCPP"; then
5876 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 # Double quotes because CXXCPP needs to be expanded
5880 for CXXCPP in "$CXX -E" "/lib/cpp"
5883 for ac_cxx_preproc_warn_flag in '' yes
5885 # Use a header file that comes with gcc, so configuring glibc
5886 # with a fresh cross-compiler works.
5887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5888 # <limits.h> exists even on freestanding compilers.
5889 # On the NeXT, cc -E runs the code through the compiler's parser,
5890 # not just through cpp. "Syntax error" is here to catch this case.
5891 cat >conftest.$ac_ext <<_ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5898 # include <limits.h>
5900 # include <assert.h>
5904 if { (ac_try="$ac_cpp conftest.$ac_ext"
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5912 grep -v '^ *+' conftest.er1 >conftest.err
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } >/dev/null && {
5917 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5918 test ! -s conftest.err
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5925 # Broken: fails on valid input.
5929 rm -f conftest.err conftest.$ac_ext
5931 # OK, works on sane cases. Now check whether nonexistent headers
5932 # can be detected and how.
5933 cat >conftest.$ac_ext <<_ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5939 #include <ac_nonexistent.h>
5941 if { (ac_try="$ac_cpp conftest.$ac_ext"
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5949 grep -v '^ *+' conftest.er1 >conftest.err
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } >/dev/null && {
5954 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5955 test ! -s conftest.err
5957 # Broken: success on invalid input.
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5963 # Passes both tests.
5968 rm -f conftest.err conftest.$ac_ext
5971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5972 rm -f conftest.err conftest.$ac_ext
5973 if $ac_preproc_ok; then
5978 ac_cv_prog_CXXCPP=$CXXCPP
5981 CXXCPP=$ac_cv_prog_CXXCPP
5983 ac_cv_prog_CXXCPP=$CXXCPP
5985 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5986 echo "${ECHO_T}$CXXCPP" >&6; }
5988 for ac_cxx_preproc_warn_flag in '' yes
5990 # Use a header file that comes with gcc, so configuring glibc
5991 # with a fresh cross-compiler works.
5992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5993 # <limits.h> exists even on freestanding compilers.
5994 # On the NeXT, cc -E runs the code through the compiler's parser,
5995 # not just through cpp. "Syntax error" is here to catch this case.
5996 cat >conftest.$ac_ext <<_ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6003 # include <limits.h>
6005 # include <assert.h>
6009 if { (ac_try="$ac_cpp conftest.$ac_ext"
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6017 grep -v '^ *+' conftest.er1 >conftest.err
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } >/dev/null && {
6022 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6023 test ! -s conftest.err
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6030 # Broken: fails on valid input.
6034 rm -f conftest.err conftest.$ac_ext
6036 # OK, works on sane cases. Now check whether nonexistent headers
6037 # can be detected and how.
6038 cat >conftest.$ac_ext <<_ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6044 #include <ac_nonexistent.h>
6046 if { (ac_try="$ac_cpp conftest.$ac_ext"
6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6054 grep -v '^ *+' conftest.er1 >conftest.err
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } >/dev/null && {
6059 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6060 test ! -s conftest.err
6062 # Broken: success on invalid input.
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6068 # Passes both tests.
6073 rm -f conftest.err conftest.$ac_ext
6076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6077 rm -f conftest.err conftest.$ac_ext
6078 if $ac_preproc_ok; then
6081 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6082 See \`config.log' for more details." >&5
6083 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6084 See \`config.log' for more details." >&2;}
6085 { (exit 1); exit 1; }; }
6089 ac_cpp='$CXXCPP $CPPFLAGS'
6090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6098 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6099 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6100 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6101 if test -n "$ac_tool_prefix"; then
6102 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6108 if test "${ac_cv_prog_F77+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 if test -n "$F77"; then
6112 ac_cv_prog_F77="$F77" # Let the user override the test.
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6121 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 if test -n "$F77"; then
6133 { echo "$as_me:$LINENO: result: $F77" >&5
6134 echo "${ECHO_T}$F77" >&6; }
6136 { echo "$as_me:$LINENO: result: no" >&5
6137 echo "${ECHO_T}no" >&6; }
6141 test -n "$F77" && break
6144 if test -z "$F77"; then
6146 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6148 # Extract the first word of "$ac_prog", so it can be a program name with args.
6149 set dummy $ac_prog; ac_word=$2
6150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6152 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 if test -n "$ac_ct_F77"; then
6156 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_prog_ac_ct_F77="$ac_prog"
6166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6176 if test -n "$ac_ct_F77"; then
6177 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6178 echo "${ECHO_T}$ac_ct_F77" >&6; }
6180 { echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6; }
6185 test -n "$ac_ct_F77" && break
6188 if test "x$ac_ct_F77" = x; then
6191 case $cross_compiling:$ac_tool_warned in
6193 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6194 whose name does not start with the host triplet. If you think this
6195 configuration is useful to you, please write to autoconf@gnu.org." >&5
6196 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6197 whose name does not start with the host triplet. If you think this
6198 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6199 ac_tool_warned=yes ;;
6206 # Provide some information about the compiler.
6207 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6208 ac_compiler=`set X $ac_compile; echo $2`
6209 { (ac_try="$ac_compiler --version >&5"
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_compiler --version >&5") 2>&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }
6219 { (ac_try="$ac_compiler -v >&5"
6221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6222 *) ac_try_echo=$ac_try;;
6224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6225 (eval "$ac_compiler -v >&5") 2>&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }
6229 { (ac_try="$ac_compiler -V >&5"
6231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232 *) ac_try_echo=$ac_try;;
6234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6235 (eval "$ac_compiler -V >&5") 2>&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }
6241 # If we don't use `.F' as extension, the preprocessor is not run on the
6242 # input file. (Note that this only needs to work for GNU compilers.)
6245 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6246 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6247 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 cat >conftest.$ac_ext <<_ACEOF
6258 rm -f conftest.$ac_objext
6259 if { (ac_try="$ac_compile"
6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265 (eval "$ac_compile") 2>conftest.er1
6267 grep -v '^ *+' conftest.er1 >conftest.err
6269 cat conftest.err >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } && {
6272 test -z "$ac_f77_werror_flag" ||
6273 test ! -s conftest.err
6274 } && test -s conftest.$ac_objext; then
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6287 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6288 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6290 ac_test_FFLAGS=${FFLAGS+set}
6291 ac_save_FFLAGS=$FFLAGS
6293 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6294 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6295 if test "${ac_cv_prog_f77_g+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 cat >conftest.$ac_ext <<_ACEOF
6304 rm -f conftest.$ac_objext
6305 if { (ac_try="$ac_compile"
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_compile") 2>conftest.er1
6313 grep -v '^ *+' conftest.er1 >conftest.err
6315 cat conftest.err >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } && {
6318 test -z "$ac_f77_werror_flag" ||
6319 test ! -s conftest.err
6320 } && test -s conftest.$ac_objext; then
6321 ac_cv_prog_f77_g=yes
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6333 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6334 if test "$ac_test_FFLAGS" = set; then
6335 FFLAGS=$ac_save_FFLAGS
6336 elif test $ac_cv_prog_f77_g = yes; then
6337 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6343 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6350 G77=`test $ac_compiler_gnu = yes && echo yes`
6352 ac_cpp='$CPP $CPPFLAGS'
6353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6359 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6361 # find the maximum length of command line arguments
6362 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6363 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6364 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 # On DJGPP, this test can blow up pretty badly due to problems in libc
6373 # (any single argument exceeding 2000 bytes causes a buffer overrun
6374 # during glob expansion). Even if it were fixed, the result of this
6375 # check would be larger than it should be.
6376 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6380 # Under GNU Hurd, this test is not required because there is
6381 # no limit to the length of command line arguments.
6382 # Libtool will interpret -1 as no limit whatsoever
6383 lt_cv_sys_max_cmd_len=-1;
6387 # On Win9x/ME, this test blows up -- it succeeds, but takes
6388 # about 5 minutes as the teststring grows exponentially.
6389 # Worse, since 9x/ME are not pre-emptively multitasking,
6390 # you end up with a "frozen" computer, even though with patience
6391 # the test eventually succeeds (with a max line length of 256k).
6392 # Instead, let's just punt: use the minimum linelength reported by
6393 # all of the supported platforms: 8192 (on NT/2K/XP).
6394 lt_cv_sys_max_cmd_len=8192;
6398 # On AmigaOS with pdksh, this test takes hours, literally.
6399 # So we just punt and use a minimum line length of 8192.
6400 lt_cv_sys_max_cmd_len=8192;
6403 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6404 # This has been around since 386BSD, at least. Likely further.
6405 if test -x /sbin/sysctl; then
6406 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6407 elif test -x /usr/sbin/sysctl; then
6408 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6410 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6412 # And add a safety zone
6413 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6414 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6418 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6419 lt_cv_sys_max_cmd_len=196608
6423 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6424 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6425 # nice to cause kernel panics so lets avoid the loop below.
6426 # First set a reasonable default.
6427 lt_cv_sys_max_cmd_len=16384
6429 if test -x /sbin/sysconfig; then
6430 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6431 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6436 lt_cv_sys_max_cmd_len=102400
6438 sysv5* | sco5v6* | sysv4.2uw2*)
6439 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6440 if test -n "$kargmax"; then
6441 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6443 lt_cv_sys_max_cmd_len=32768
6447 # If test is not a shell built-in, we'll probably end up computing a
6448 # maximum length that is only half of the actual maximum length, but
6450 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6451 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6452 = "XX$teststring") >/dev/null 2>&1 &&
6453 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6454 lt_cv_sys_max_cmd_len=$new_result &&
6455 test $i != 17 # 1/2 MB should be enough
6458 teststring=$teststring$teststring
6461 # Add a significant safety factor because C++ compilers can tack on massive
6462 # amounts of additional arguments before passing them to the linker.
6463 # It appears as though 1/2 is a usable value.
6464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6470 if test -n $lt_cv_sys_max_cmd_len ; then
6471 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6472 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6474 { echo "$as_me:$LINENO: result: none" >&5
6475 echo "${ECHO_T}none" >&6; }
6481 # Check for command to grab the raw symbol name followed by C symbol from nm.
6482 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6483 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6484 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 # These are sane defaults that work on at least a few old systems.
6489 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6491 # Character class describing NM global symbol codes.
6492 symcode='[BCDEGRST]'
6494 # Regexp to match symbols that can be accessed directly from C.
6495 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6497 # Transform an extracted symbol line into a proper C declaration
6498 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6500 # Transform an extracted symbol line into symbol name and symbol address
6501 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6503 # Define system-specific variables.
6508 cygwin* | mingw* | pw32*)
6509 symcode='[ABCDGISTW]'
6511 hpux*) # Its linker distinguishes data from code symbols
6512 if test "$host_cpu" = ia64; then
6513 symcode='[ABCDEGRST]'
6515 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6516 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6519 if test "$host_cpu" = ia64; then
6520 symcode='[ABCDGIRSTW]'
6521 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6522 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6526 symcode='[BCDEGRST]'
6529 symcode='[BCDEGQRST]'
6540 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6548 # Handle CRLF in mingw tool chain
6552 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6556 # If we're using GNU nm, then use its standard symbol codes.
6557 case `$NM -V 2>&1` in
6558 *GNU* | *'with BFD'*)
6559 symcode='[ABCDGIRSTW]' ;;
6562 # Try without a prefix undercore, then with it.
6563 for ac_symprfx in "" "_"; do
6565 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6566 symxfrm="\\1 $ac_symprfx\\2 \\2"
6568 # Write the raw and C identifiers.
6569 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6571 # Check to see that the pipe works correctly.
6575 cat > conftest.$ac_ext <<EOF
6580 void nm_test_func(){}
6584 int main(){nm_test_var='a';nm_test_func();return(0);}
6587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6588 (eval $ac_compile) 2>&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; then
6592 # Now try to grab the symbols.
6594 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6595 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } && test -s "$nlist"; then
6599 # Try sorting and uniquifying the output.
6600 if sort "$nlist" | uniq > "$nlist"T; then
6601 mv -f "$nlist"T "$nlist"
6606 # Make sure that we snagged all the symbols we need.
6607 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6608 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6609 cat <<EOF > conftest.$ac_ext
6615 # Now generate the symbol file.
6616 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6618 cat <<EOF >> conftest.$ac_ext
6619 #if defined (__STDC__) && __STDC__
6620 # define lt_ptr_t void *
6622 # define lt_ptr_t char *
6626 /* The mapping between symbol names and symbols. */
6631 lt_preloaded_symbols[] =
6634 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6635 cat <<\EOF >> conftest.$ac_ext
6643 # Now try linking the two files.
6644 mv conftest.$ac_objext conftstm.$ac_objext
6645 lt_save_LIBS="$LIBS"
6646 lt_save_CFLAGS="$CFLAGS"
6647 LIBS="conftstm.$ac_objext"
6648 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6650 (eval $ac_link) 2>&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6656 LIBS="$lt_save_LIBS"
6657 CFLAGS="$lt_save_CFLAGS"
6659 echo "cannot find nm_test_func in $nlist" >&5
6662 echo "cannot find nm_test_var in $nlist" >&5
6665 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6668 echo "$progname: failed program was:" >&5
6669 cat conftest.$ac_ext >&5
6671 rm -f conftest* conftst*
6673 # Do not use the global_symbol_pipe unless it works.
6674 if test "$pipe_works" = yes; then
6677 lt_cv_sys_global_symbol_pipe=
6683 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6684 lt_cv_sys_global_symbol_to_cdecl=
6686 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6687 { echo "$as_me:$LINENO: result: failed" >&5
6688 echo "${ECHO_T}failed" >&6; }
6690 { echo "$as_me:$LINENO: result: ok" >&5
6691 echo "${ECHO_T}ok" >&6; }
6694 { echo "$as_me:$LINENO: checking for objdir" >&5
6695 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6696 if test "${lt_cv_objdir+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 rm -f .libs 2>/dev/null
6700 mkdir .libs 2>/dev/null
6701 if test -d .libs; then
6704 # MS-DOS does not allow filenames that begin with a dot.
6707 rmdir .libs 2>/dev/null
6709 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6710 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6711 objdir=$lt_cv_objdir
6719 # AIX sometimes has problems with the GCC collect2 program. For some
6720 # reason, if we set the COLLECT_NAMES environment variable, the problems
6721 # vanish in a puff of smoke.
6722 if test "X${COLLECT_NAMES+set}" != Xset; then
6724 export COLLECT_NAMES
6729 # Sed substitution that helps us do robust quoting. It backslashifies
6730 # metacharacters that are still active within double-quoted strings.
6731 Xsed='sed -e 1s/^X//'
6732 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6734 # Same as above, but do not quote variable references.
6735 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6737 # Sed substitution to delay expansion of an escaped shell variable in a
6738 # double_quote_subst'ed string.
6739 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6741 # Sed substitution to avoid accidental globbing in evaled expressions
6742 no_glob_subst='s/\*/\\\*/g'
6748 default_ofile=libtool
6749 can_build_shared=yes
6751 # All known linkers require a `.a' archive for static linking (except MSVC,
6752 # which needs '.lib').
6754 ltmain="$ac_aux_dir/ltmain.sh"
6755 ofile="$default_ofile"
6756 with_gnu_ld="$lt_cv_prog_gnu_ld"
6758 if test -n "$ac_tool_prefix"; then
6759 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6760 set dummy ${ac_tool_prefix}ar; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_prog_AR+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 if test -n "$AR"; then
6767 ac_cv_prog_AR="$AR" # Let the user override the test.
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_prog_AR="${ac_tool_prefix}ar"
6777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 if test -n "$AR"; then
6788 { echo "$as_me:$LINENO: result: $AR" >&5
6789 echo "${ECHO_T}$AR" >&6; }
6791 { echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6; }
6797 if test -z "$ac_cv_prog_AR"; then
6799 # Extract the first word of "ar", so it can be a program name with args.
6800 set dummy ar; ac_word=$2
6801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6803 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 if test -n "$ac_ct_AR"; then
6807 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6816 ac_cv_prog_ac_ct_AR="ar"
6817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6827 if test -n "$ac_ct_AR"; then
6828 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6829 echo "${ECHO_T}$ac_ct_AR" >&6; }
6831 { echo "$as_me:$LINENO: result: no" >&5
6832 echo "${ECHO_T}no" >&6; }
6835 if test "x$ac_ct_AR" = x; then
6838 case $cross_compiling:$ac_tool_warned in
6840 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6841 whose name does not start with the host triplet. If you think this
6842 configuration is useful to you, please write to autoconf@gnu.org." >&5
6843 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6844 whose name does not start with the host triplet. If you think this
6845 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6846 ac_tool_warned=yes ;;
6854 if test -n "$ac_tool_prefix"; then
6855 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6856 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859 if test "${ac_cv_prog_RANLIB+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 if test -n "$RANLIB"; then
6863 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 RANLIB=$ac_cv_prog_RANLIB
6883 if test -n "$RANLIB"; then
6884 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6885 echo "${ECHO_T}$RANLIB" >&6; }
6887 { echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6; }
6893 if test -z "$ac_cv_prog_RANLIB"; then
6894 ac_ct_RANLIB=$RANLIB
6895 # Extract the first word of "ranlib", so it can be a program name with args.
6896 set dummy ranlib; ac_word=$2
6897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6899 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 if test -n "$ac_ct_RANLIB"; then
6903 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6912 ac_cv_prog_ac_ct_RANLIB="ranlib"
6913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6923 if test -n "$ac_ct_RANLIB"; then
6924 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6925 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6927 { echo "$as_me:$LINENO: result: no" >&5
6928 echo "${ECHO_T}no" >&6; }
6931 if test "x$ac_ct_RANLIB" = x; then
6934 case $cross_compiling:$ac_tool_warned in
6936 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6937 whose name does not start with the host triplet. If you think this
6938 configuration is useful to you, please write to autoconf@gnu.org." >&5
6939 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6940 whose name does not start with the host triplet. If you think this
6941 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6942 ac_tool_warned=yes ;;
6944 RANLIB=$ac_ct_RANLIB
6947 RANLIB="$ac_cv_prog_RANLIB"
6950 if test -n "$ac_tool_prefix"; then
6951 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6952 set dummy ${ac_tool_prefix}strip; ac_word=$2
6953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6955 if test "${ac_cv_prog_STRIP+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 if test -n "$STRIP"; then
6959 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6978 STRIP=$ac_cv_prog_STRIP
6979 if test -n "$STRIP"; then
6980 { echo "$as_me:$LINENO: result: $STRIP" >&5
6981 echo "${ECHO_T}$STRIP" >&6; }
6983 { echo "$as_me:$LINENO: result: no" >&5
6984 echo "${ECHO_T}no" >&6; }
6989 if test -z "$ac_cv_prog_STRIP"; then
6991 # Extract the first word of "strip", so it can be a program name with args.
6992 set dummy strip; ac_word=$2
6993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6995 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 if test -n "$ac_ct_STRIP"; then
6999 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7008 ac_cv_prog_ac_ct_STRIP="strip"
7009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7018 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7019 if test -n "$ac_ct_STRIP"; then
7020 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7021 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7023 { echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6; }
7027 if test "x$ac_ct_STRIP" = x; then
7030 case $cross_compiling:$ac_tool_warned in
7032 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7033 whose name does not start with the host triplet. If you think this
7034 configuration is useful to you, please write to autoconf@gnu.org." >&5
7035 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7036 whose name does not start with the host triplet. If you think this
7037 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7038 ac_tool_warned=yes ;;
7043 STRIP="$ac_cv_prog_STRIP"
7048 old_CFLAGS="$CFLAGS"
7050 # Set sane defaults for various variables
7051 test -z "$AR" && AR=ar
7052 test -z "$AR_FLAGS" && AR_FLAGS=cru
7053 test -z "$AS" && AS=as
7054 test -z "$CC" && CC=cc
7055 test -z "$LTCC" && LTCC=$CC
7056 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7057 test -z "$DLLTOOL" && DLLTOOL=dlltool
7058 test -z "$LD" && LD=ld
7059 test -z "$LN_S" && LN_S="ln -s"
7060 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7061 test -z "$NM" && NM=nm
7062 test -z "$SED" && SED=sed
7063 test -z "$OBJDUMP" && OBJDUMP=objdump
7064 test -z "$RANLIB" && RANLIB=:
7065 test -z "$STRIP" && STRIP=:
7066 test -z "$ac_objext" && ac_objext=o
7068 # Determine commands to create old-style static archives.
7069 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7070 old_postinstall_cmds='chmod 644 $oldlib'
7071 old_postuninstall_cmds=
7073 if test -n "$RANLIB"; then
7076 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7079 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7082 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7085 for cc_temp in $compiler""; do
7087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7096 # Only perform the check for file, if the check method requires it
7097 case $deplibs_check_method in
7099 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7100 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7101 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7102 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7110 lt_save_MAGIC_CMD="$MAGIC_CMD"
7111 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7112 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7113 for ac_dir in $ac_dummy; do
7115 test -z "$ac_dir" && ac_dir=.
7116 if test -f $ac_dir/${ac_tool_prefix}file; then
7117 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7118 if test -n "$file_magic_test_file"; then
7119 case $deplibs_check_method in
7121 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7122 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7123 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7124 $EGREP "$file_magic_regex" > /dev/null; then
7129 *** Warning: the command libtool uses to detect shared libraries,
7130 *** $file_magic_cmd, produces output that libtool cannot recognize.
7131 *** The result is that libtool may fail to recognize shared libraries
7132 *** as such. This will affect the creation of libtool libraries that
7133 *** depend on shared libraries, but programs linked with such libtool
7134 *** libraries will work regardless of this problem. Nevertheless, you
7135 *** may want to report the problem to your system manager and/or to
7136 *** bug-libtool@gnu.org
7146 MAGIC_CMD="$lt_save_MAGIC_CMD"
7151 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7152 if test -n "$MAGIC_CMD"; then
7153 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7154 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7156 { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7160 if test -z "$lt_cv_path_MAGIC_CMD"; then
7161 if test -n "$ac_tool_prefix"; then
7162 { echo "$as_me:$LINENO: checking for file" >&5
7163 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7164 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7172 lt_save_MAGIC_CMD="$MAGIC_CMD"
7173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7174 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7175 for ac_dir in $ac_dummy; do
7177 test -z "$ac_dir" && ac_dir=.
7178 if test -f $ac_dir/file; then
7179 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7180 if test -n "$file_magic_test_file"; then
7181 case $deplibs_check_method in
7183 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7184 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7185 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7186 $EGREP "$file_magic_regex" > /dev/null; then
7191 *** Warning: the command libtool uses to detect shared libraries,
7192 *** $file_magic_cmd, produces output that libtool cannot recognize.
7193 *** The result is that libtool may fail to recognize shared libraries
7194 *** as such. This will affect the creation of libtool libraries that
7195 *** depend on shared libraries, but programs linked with such libtool
7196 *** libraries will work regardless of this problem. Nevertheless, you
7197 *** may want to report the problem to your system manager and/or to
7198 *** bug-libtool@gnu.org
7208 MAGIC_CMD="$lt_save_MAGIC_CMD"
7213 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7214 if test -n "$MAGIC_CMD"; then
7215 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7216 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7218 { echo "$as_me:$LINENO: result: no" >&5
7219 echo "${ECHO_T}no" >&6; }
7234 # Check whether --enable-libtool-lock was given.
7235 if test "${enable_libtool_lock+set}" = set; then
7236 enableval=$enable_libtool_lock;
7239 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7242 # Check whether --with-pic was given.
7243 if test "${with_pic+set}" = set; then
7244 withval=$with_pic; pic_mode="$withval"
7249 test -z "$pic_mode" && pic_mode=default
7251 # Use C for the default configuration in the libtool script
7255 ac_cpp='$CPP $CPPFLAGS'
7256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7261 # Source file extension for C test sources.
7264 # Object file extension for compiled C test sources.
7268 # Code to be used in simple compile tests
7269 lt_simple_compile_test_code="int some_variable = 0;\n"
7271 # Code to be used in simple link tests
7272 lt_simple_link_test_code='int main(){return(0);}\n'
7275 # If no C compiler was specified, use CC.
7278 # If no C compiler flags were specified, use CFLAGS.
7279 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7281 # Allow CC to be a program name with arguments.
7285 # save warnings/boilerplate of simple test code
7286 ac_outfile=conftest.$ac_objext
7287 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7288 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7289 _lt_compiler_boilerplate=`cat conftest.err`
7292 ac_outfile=conftest.$ac_objext
7293 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7294 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7295 _lt_linker_boilerplate=`cat conftest.err`
7300 ## There is no encapsulation within the following macros, do not change
7301 ## the running order or otherwise move them around unless you know exactly
7302 ## what you are doing...
7304 lt_prog_compiler_no_builtin_flag=
7306 if test "$GCC" = yes; then
7307 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7310 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7311 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7312 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 lt_cv_prog_compiler_rtti_exceptions=no
7316 ac_outfile=conftest.$ac_objext
7317 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7318 lt_compiler_flag="-fno-rtti -fno-exceptions"
7319 # Insert the option either (1) after the last *FLAGS variable, or
7320 # (2) before a word containing "conftest.", or (3) at the end.
7321 # Note that $ac_compile itself does not contain backslashes and begins
7322 # with a dollar sign (not a hyphen), so the echo should work correctly.
7323 # The option is referenced via a variable to avoid confusing sed.
7324 lt_compile=`echo "$ac_compile" | $SED \
7325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7327 -e 's:$: $lt_compiler_flag:'`
7328 (eval echo "\"\$as_me:7328: $lt_compile\"" >&5)
7329 (eval "$lt_compile" 2>conftest.err)
7331 cat conftest.err >&5
7332 echo "$as_me:7332: \$? = $ac_status" >&5
7333 if (exit $ac_status) && test -s "$ac_outfile"; then
7334 # The compiler can only warn and ignore the option if not recognized
7335 # So say no if there are warnings other than the usual output.
7336 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7338 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7339 lt_cv_prog_compiler_rtti_exceptions=yes
7345 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7346 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7348 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7349 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7356 lt_prog_compiler_wl=
7357 lt_prog_compiler_pic=
7358 lt_prog_compiler_static=
7360 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7361 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7363 if test "$GCC" = yes; then
7364 lt_prog_compiler_wl='-Wl,'
7365 lt_prog_compiler_static='-static'
7369 # All AIX code is PIC.
7370 if test "$host_cpu" = ia64; then
7371 # AIX 5 now supports IA64 processor
7372 lt_prog_compiler_static='-Bstatic'
7377 # FIXME: we need at least 68020 code to build shared libraries, but
7378 # adding the `-m68020' flag to GCC prevents building anything better,
7380 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7383 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7384 # PIC is the default for these OSes.
7387 mingw* | pw32* | os2*)
7388 # This hack is so that the source file can tell whether it is being
7389 # built for inclusion in a dll (and should export symbols for example).
7390 lt_prog_compiler_pic='-DDLL_EXPORT'
7393 darwin* | rhapsody*)
7394 # PIC is the default on this platform
7395 # Common symbols not allowed in MH_DYLIB files
7396 lt_prog_compiler_pic='-fno-common'
7400 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7401 # Instead, we relocate shared libraries at runtime.
7405 # Just because we use GCC doesn't mean we suddenly get shared libraries
7406 # on systems that don't support them.
7407 lt_prog_compiler_can_build_shared=no
7412 if test -d /usr/nec; then
7413 lt_prog_compiler_pic=-Kconform_pic
7418 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7425 lt_prog_compiler_pic='-fPIC'
7431 lt_prog_compiler_pic='-fPIC'
7435 # PORTME Check for flag to pass linker flags through the system compiler.
7438 lt_prog_compiler_wl='-Wl,'
7439 if test "$host_cpu" = ia64; then
7440 # AIX 5 now supports IA64 processor
7441 lt_prog_compiler_static='-Bstatic'
7443 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7447 # PIC is the default on this platform
7448 # Common symbols not allowed in MH_DYLIB files
7449 case $cc_basename in
7451 lt_prog_compiler_pic='-qnocommon'
7452 lt_prog_compiler_wl='-Wl,'
7457 mingw* | pw32* | os2*)
7458 # This hack is so that the source file can tell whether it is being
7459 # built for inclusion in a dll (and should export symbols for example).
7460 lt_prog_compiler_pic='-DDLL_EXPORT'
7463 hpux9* | hpux10* | hpux11*)
7464 lt_prog_compiler_wl='-Wl,'
7465 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7472 lt_prog_compiler_pic='+Z'
7475 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7476 lt_prog_compiler_static='${wl}-a ${wl}archive'
7479 irix5* | irix6* | nonstopux*)
7480 lt_prog_compiler_wl='-Wl,'
7481 # PIC (with -KPIC) is the default.
7482 lt_prog_compiler_static='-non_shared'
7486 lt_prog_compiler_pic='-KPIC'
7487 lt_prog_compiler_static='-Bstatic'
7491 case $cc_basename in
7493 lt_prog_compiler_wl='-Wl,'
7494 lt_prog_compiler_pic='-KPIC'
7495 lt_prog_compiler_static='-static'
7497 pgcc* | pgf77* | pgf90* | pgf95*)
7498 # Portland Group compilers (*not* the Pentium gcc compiler,
7499 # which looks to be a dead project)
7500 lt_prog_compiler_wl='-Wl,'
7501 lt_prog_compiler_pic='-fpic'
7502 lt_prog_compiler_static='-Bstatic'
7505 lt_prog_compiler_wl='-Wl,'
7506 # All Alpha code is PIC.
7507 lt_prog_compiler_static='-non_shared'
7512 osf3* | osf4* | osf5*)
7513 lt_prog_compiler_wl='-Wl,'
7514 # All OSF/1 code is PIC.
7515 lt_prog_compiler_static='-non_shared'
7519 lt_prog_compiler_pic='-KPIC'
7520 lt_prog_compiler_static='-Bstatic'
7521 case $cc_basename in
7523 lt_prog_compiler_wl='-Qoption ld ';;
7525 lt_prog_compiler_wl='-Wl,';;
7530 lt_prog_compiler_wl='-Qoption ld '
7531 lt_prog_compiler_pic='-PIC'
7532 lt_prog_compiler_static='-Bstatic'
7535 sysv4 | sysv4.2uw2* | sysv4.3*)
7536 lt_prog_compiler_wl='-Wl,'
7537 lt_prog_compiler_pic='-KPIC'
7538 lt_prog_compiler_static='-Bstatic'
7542 if test -d /usr/nec ;then
7543 lt_prog_compiler_pic='-Kconform_pic'
7544 lt_prog_compiler_static='-Bstatic'
7548 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7549 lt_prog_compiler_wl='-Wl,'
7550 lt_prog_compiler_pic='-KPIC'
7551 lt_prog_compiler_static='-Bstatic'
7555 lt_prog_compiler_wl='-Wl,'
7556 lt_prog_compiler_can_build_shared=no
7560 lt_prog_compiler_pic='-pic'
7561 lt_prog_compiler_static='-Bstatic'
7565 lt_prog_compiler_can_build_shared=no
7570 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7571 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7574 # Check to make sure the PIC flag actually works.
7576 if test -n "$lt_prog_compiler_pic"; then
7578 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7579 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7580 if test "${lt_prog_compiler_pic_works+set}" = set; then
7581 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 lt_prog_compiler_pic_works=no
7584 ac_outfile=conftest.$ac_objext
7585 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7586 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7587 # Insert the option either (1) after the last *FLAGS variable, or
7588 # (2) before a word containing "conftest.", or (3) at the end.
7589 # Note that $ac_compile itself does not contain backslashes and begins
7590 # with a dollar sign (not a hyphen), so the echo should work correctly.
7591 # The option is referenced via a variable to avoid confusing sed.
7592 lt_compile=`echo "$ac_compile" | $SED \
7593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7595 -e 's:$: $lt_compiler_flag:'`
7596 (eval echo "\"\$as_me:7596: $lt_compile\"" >&5)
7597 (eval "$lt_compile" 2>conftest.err)
7599 cat conftest.err >&5
7600 echo "$as_me:7600: \$? = $ac_status" >&5
7601 if (exit $ac_status) && test -s "$ac_outfile"; then
7602 # The compiler can only warn and ignore the option if not recognized
7603 # So say no if there are warnings other than the usual output.
7604 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7605 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7606 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7607 lt_prog_compiler_pic_works=yes
7613 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7614 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7616 if test x"$lt_prog_compiler_pic_works" = xyes; then
7617 case $lt_prog_compiler_pic in
7619 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7622 lt_prog_compiler_pic=
7623 lt_prog_compiler_can_build_shared=no
7628 # For platforms which do not support PIC, -DPIC is meaningless:
7630 lt_prog_compiler_pic=
7633 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7638 # Check to make sure the static flag actually works.
7640 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7641 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7642 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7643 if test "${lt_prog_compiler_static_works+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 lt_prog_compiler_static_works=no
7647 save_LDFLAGS="$LDFLAGS"
7648 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7649 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7650 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7651 # The linker can only warn and ignore the option if not recognized
7652 # So say no if there are warnings
7653 if test -s conftest.err; then
7654 # Append any errors to the config.log.
7655 cat conftest.err 1>&5
7656 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7657 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7658 if diff conftest.exp conftest.er2 >/dev/null; then
7659 lt_prog_compiler_static_works=yes
7662 lt_prog_compiler_static_works=yes
7666 LDFLAGS="$save_LDFLAGS"
7669 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7670 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7672 if test x"$lt_prog_compiler_static_works" = xyes; then
7675 lt_prog_compiler_static=
7679 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7680 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7681 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 lt_cv_prog_compiler_c_o=no
7685 $rm -r conftest 2>/dev/null
7689 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7691 lt_compiler_flag="-o out/conftest2.$ac_objext"
7692 # Insert the option either (1) after the last *FLAGS variable, or
7693 # (2) before a word containing "conftest.", or (3) at the end.
7694 # Note that $ac_compile itself does not contain backslashes and begins
7695 # with a dollar sign (not a hyphen), so the echo should work correctly.
7696 lt_compile=`echo "$ac_compile" | $SED \
7697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7699 -e 's:$: $lt_compiler_flag:'`
7700 (eval echo "\"\$as_me:7700: $lt_compile\"" >&5)
7701 (eval "$lt_compile" 2>out/conftest.err)
7703 cat out/conftest.err >&5
7704 echo "$as_me:7704: \$? = $ac_status" >&5
7705 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7707 # The compiler can only warn and ignore the option if not recognized
7708 # So say no if there are warnings
7709 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7710 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7711 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7712 lt_cv_prog_compiler_c_o=yes
7717 # SGI C++ compiler will create directory out/ii_files/ for
7718 # template instantiation
7719 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7720 $rm out/* && rmdir out
7726 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7727 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7730 hard_links="nottested"
7731 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7732 # do not overwrite the value of need_locks provided by the user
7733 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7734 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7737 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7739 ln conftest.a conftest.b 2>&5 || hard_links=no
7740 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7741 { echo "$as_me:$LINENO: result: $hard_links" >&5
7742 echo "${ECHO_T}$hard_links" >&6; }
7743 if test "$hard_links" = no; then
7744 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7745 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7752 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7753 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7756 allow_undefined_flag=
7757 enable_shared_with_static_runtimes=no
7759 archive_expsym_cmds=
7760 old_archive_From_new_cmds=
7761 old_archive_from_expsyms_cmds=
7762 export_dynamic_flag_spec=
7763 whole_archive_flag_spec=
7764 thread_safe_flag_spec=
7765 hardcode_libdir_flag_spec=
7766 hardcode_libdir_flag_spec_ld=
7767 hardcode_libdir_separator=
7770 hardcode_shlibpath_var=unsupported
7771 link_all_deplibs=unknown
7772 hardcode_automatic=no
7775 always_export_symbols=no
7776 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7777 # include_expsyms should be a list of space-separated symbols to be *always*
7778 # included in the symbol list
7780 # exclude_expsyms can be an extended regexp of symbols to exclude
7781 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7782 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7783 # as well as any symbol that contains `d'.
7784 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7785 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7786 # platforms (ab)use it in PIC code, but their linkers get confused if
7787 # the symbol is explicitly referenced. Since portable code cannot
7788 # rely on this symbol name, it's probably fine to never include it in
7789 # preloaded symbol tables.
7790 extract_expsyms_cmds=
7791 # Just being paranoid about ensuring that cc_basename is set.
7792 for cc_temp in $compiler""; do
7794 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7795 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7800 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7803 cygwin* | mingw* | pw32*)
7804 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7805 # When not using gcc, we currently assume that we are using
7806 # Microsoft Visual C++.
7807 if test "$GCC" != yes; then
7812 # we just hope/assume this is gcc and not c89 (= MSVC++)
7821 if test "$with_gnu_ld" = yes; then
7822 # If archive_cmds runs LD, not CC, wlarc should be empty
7825 # Set some defaults for GNU ld with shared library support. These
7826 # are reset later if shared libraries are not supported. Putting them
7827 # here allows them to be overridden if necessary.
7828 runpath_var=LD_RUN_PATH
7829 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7830 export_dynamic_flag_spec='${wl}--export-dynamic'
7831 # ancient GNU ld didn't support --whole-archive et. al.
7832 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7833 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7835 whole_archive_flag_spec=
7837 supports_anon_versioning=no
7838 case `$LD -v 2>/dev/null` in
7839 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7840 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7841 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7842 *\ 2.11.*) ;; # other 2.11 versions
7843 *) supports_anon_versioning=yes ;;
7846 # See if GNU ld supports shared libraries.
7848 aix3* | aix4* | aix5*)
7849 # On AIX/PPC, the GNU linker is very broken
7850 if test "$host_cpu" != ia64; then
7854 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7855 *** to be unable to reliably create shared libraries on AIX.
7856 *** Therefore, libtool is disabling shared libraries support. If you
7857 *** really care for shared libraries, you may want to modify your PATH
7858 *** so that a non-GNU linker is found, and then restart.
7865 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)'
7866 hardcode_libdir_flag_spec='-L$libdir'
7867 hardcode_minus_L=yes
7869 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7870 # that the semantics of dynamic libraries on AmigaOS, at least up
7871 # to version 4, is to share data among multiple programs linked
7872 # with the same dynamic library. Since this doesn't match the
7873 # behavior of shared libraries on other platforms, we can't use
7879 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7880 allow_undefined_flag=unsupported
7881 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7882 # support --undefined. This deserves some investigation. FIXME
7883 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7889 cygwin* | mingw* | pw32*)
7890 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7891 # as there is no search path for DLLs.
7892 hardcode_libdir_flag_spec='-L$libdir'
7893 allow_undefined_flag=unsupported
7894 always_export_symbols=no
7895 enable_shared_with_static_runtimes=yes
7896 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7898 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7900 # If the export-symbols file already is a .def file (1st line
7901 # is EXPORTS), use it as is; otherwise, prepend...
7902 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7903 cp $export_symbols $output_objdir/$soname.def;
7905 echo EXPORTS > $output_objdir/$soname.def;
7906 cat $export_symbols >> $output_objdir/$soname.def;
7908 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7916 hardcode_shlibpath_var=no
7917 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7918 export_dynamic_flag_spec='${wl}-E'
7919 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7920 # Instead, shared libraries are loaded at an image base (0x10000000 by
7921 # default) and relocated if they conflict, which is a slow very memory
7922 # consuming and fragmenting process. To avoid this, we pick a random,
7923 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7924 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7925 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7926 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'
7930 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7932 case $cc_basename,$host_cpu in
7933 pgcc*) # Portland Group C compiler
7934 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'
7935 tmp_addflag=' $pic_flag'
7937 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7938 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'
7939 tmp_addflag=' $pic_flag -Mnomain' ;;
7940 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7941 tmp_addflag=' -i_dynamic' ;;
7942 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7943 tmp_addflag=' -i_dynamic -nofor_main' ;;
7944 ifc* | ifort*) # Intel Fortran compiler
7945 tmp_addflag=' -nofor_main' ;;
7947 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7949 if test $supports_anon_versioning = yes; then
7950 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7951 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7952 $echo "local: *; };" >> $output_objdir/$libname.ver~
7953 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7961 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7962 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7966 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7971 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7975 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7976 *** create shared libraries on Solaris systems. Therefore, libtool
7977 *** is disabling shared libraries support. We urge you to upgrade GNU
7978 *** binutils to release 2.9.1 or newer. Another option is to modify
7979 *** your PATH or compiler configuration so that the native linker is
7980 *** used, and then restart.
7983 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7985 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7991 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7992 case `$LD -v 2>&1` in
7993 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7997 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7998 *** reliably create shared libraries on SCO systems. Therefore, libtool
7999 *** is disabling shared libraries support. We urge you to upgrade GNU
8000 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8001 *** your PATH or compiler configuration so that the native linker is
8002 *** used, and then restart.
8007 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8008 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8010 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8019 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8022 hardcode_shlibpath_var=no
8026 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8028 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8035 if test "$ld_shlibs" = no; then
8037 hardcode_libdir_flag_spec=
8038 export_dynamic_flag_spec=
8039 whole_archive_flag_spec=
8042 # PORTME fill in a description of your system's linker (not GNU ld)
8045 allow_undefined_flag=unsupported
8046 always_export_symbols=yes
8047 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'
8048 # Note: this linker hardcodes the directories in LIBPATH if there
8049 # are no directories specified by -L.
8050 hardcode_minus_L=yes
8051 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8052 # Neither direct hardcoding nor static linking is supported with a
8054 hardcode_direct=unsupported
8059 if test "$host_cpu" = ia64; then
8060 # On IA64, the linker does run time linking by default, so we don't
8061 # have to do anything special.
8062 aix_use_runtimelinking=no
8063 exp_sym_flag='-Bexport'
8066 # If we're using GNU nm, then we don't want the "-C" option.
8067 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8068 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8069 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'
8071 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'
8073 aix_use_runtimelinking=no
8075 # Test if we are trying to use run time linking or normal
8076 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8077 # need to do runtime linking.
8078 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8079 for ld_flag in $LDFLAGS; do
8080 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8081 aix_use_runtimelinking=yes
8088 exp_sym_flag='-bexport'
8089 no_entry_flag='-bnoentry'
8092 # When large executables or shared objects are built, AIX ld can
8093 # have problems creating the table of contents. If linking a library
8094 # or program results in "error TOC overflow" add -mminimal-toc to
8095 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8096 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8100 hardcode_libdir_separator=':'
8101 link_all_deplibs=yes
8103 if test "$GCC" = yes; then
8104 case $host_os in aix4.[012]|aix4.[012].*)
8105 # We only want to do this on AIX 4.2 and lower, the check
8106 # below for broken collect2 doesn't work under 4.3+
8107 collect2name=`${CC} -print-prog-name=collect2`
8108 if test -f "$collect2name" && \
8109 strings "$collect2name" | grep resolve_lib_name >/dev/null
8111 # We have reworked collect2
8114 # We have old collect2
8115 hardcode_direct=unsupported
8116 # It fails to find uninstalled libraries when the uninstalled
8117 # path is not listed in the libpath. Setting hardcode_minus_L
8118 # to unsupported forces relinking
8119 hardcode_minus_L=yes
8120 hardcode_libdir_flag_spec='-L$libdir'
8121 hardcode_libdir_separator=
8125 shared_flag='-shared'
8126 if test "$aix_use_runtimelinking" = yes; then
8127 shared_flag="$shared_flag "'${wl}-G'
8131 if test "$host_cpu" = ia64; then
8132 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8133 # chokes on -Wl,-G. The following line is correct:
8136 if test "$aix_use_runtimelinking" = yes; then
8137 shared_flag='${wl}-G'
8139 shared_flag='${wl}-bM:SRE'
8144 # It seems that -bexpall does not export symbols beginning with
8145 # underscore (_), so it is better to generate a list of symbols to export.
8146 always_export_symbols=yes
8147 if test "$aix_use_runtimelinking" = yes; then
8148 # Warning - without using the other runtime loading flags (-brtl),
8149 # -berok will link without error, but may produce a broken library.
8150 allow_undefined_flag='-berok'
8151 # Determine the default libpath from the value encoded in an empty executable.
8152 cat >conftest.$ac_ext <<_ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h. */
8167 rm -f conftest.$ac_objext conftest$ac_exeext
8168 if { (ac_try="$ac_link"
8170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171 *) ac_try_echo=$ac_try;;
8173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8174 (eval "$ac_link") 2>conftest.er1
8176 grep -v '^ *+' conftest.er1 >conftest.err
8178 cat conftest.err >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } && {
8181 test -z "$ac_c_werror_flag" ||
8182 test ! -s conftest.err
8183 } && test -s conftest$ac_exeext &&
8184 $as_test_x conftest$ac_exeext; then
8186 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8188 # Check for a 64-bit object if we didn't find anything.
8189 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8199 conftest$ac_exeext conftest.$ac_ext
8200 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8202 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8203 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8205 if test "$host_cpu" = ia64; then
8206 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8207 allow_undefined_flag="-z nodefs"
8208 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"
8210 # Determine the default libpath from the value encoded in an empty executable.
8211 cat >conftest.$ac_ext <<_ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8226 rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (ac_try="$ac_link"
8229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230 *) ac_try_echo=$ac_try;;
8232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233 (eval "$ac_link") 2>conftest.er1
8235 grep -v '^ *+' conftest.er1 >conftest.err
8237 cat conftest.err >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } && {
8240 test -z "$ac_c_werror_flag" ||
8241 test ! -s conftest.err
8242 } && test -s conftest$ac_exeext &&
8243 $as_test_x conftest$ac_exeext; then
8245 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8247 # Check for a 64-bit object if we didn't find anything.
8248 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8251 echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8258 conftest$ac_exeext conftest.$ac_ext
8259 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8261 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8262 # Warning - without using the other run time loading flags,
8263 # -berok will link without error, but may produce a broken library.
8264 no_undefined_flag=' ${wl}-bernotok'
8265 allow_undefined_flag=' ${wl}-berok'
8266 # Exported symbols can be pulled into shared objects from archives
8267 whole_archive_flag_spec='$convenience'
8268 archive_cmds_need_lc=yes
8269 # This is similar to how AIX traditionally builds its shared libraries.
8270 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'
8276 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)'
8277 hardcode_libdir_flag_spec='-L$libdir'
8278 hardcode_minus_L=yes
8279 # see comment about different semantics on the GNU ld section
8284 export_dynamic_flag_spec=-rdynamic
8287 cygwin* | mingw* | pw32*)
8288 # When not using gcc, we currently assume that we are using
8289 # Microsoft Visual C++.
8290 # hardcode_libdir_flag_spec is actually meaningless, as there is
8291 # no search path for DLLs.
8292 hardcode_libdir_flag_spec=' '
8293 allow_undefined_flag=unsupported
8294 # Tell ltmain to make .lib files, not .a files.
8296 # Tell ltmain to make .dll files, not .so files.
8298 # FIXME: Setting linknames here is a bad hack.
8299 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8300 # The linker will automatically build a .lib file if we build a DLL.
8301 old_archive_From_new_cmds='true'
8302 # FIXME: Should let the user specify the lib program.
8303 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8304 fix_srcfile_path='`cygpath -w "$srcfile"`'
8305 enable_shared_with_static_runtimes=yes
8308 darwin* | rhapsody*)
8310 rhapsody* | darwin1.[012])
8311 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8314 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8315 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8317 case ${MACOSX_DEPLOYMENT_TARGET} in
8319 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8322 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8328 archive_cmds_need_lc=no
8330 hardcode_automatic=yes
8331 hardcode_shlibpath_var=unsupported
8332 whole_archive_flag_spec=''
8333 link_all_deplibs=yes
8334 if test "$GCC" = yes ; then
8335 output_verbose_link_cmd='echo'
8336 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8337 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8338 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8339 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8340 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8342 case $cc_basename in
8344 output_verbose_link_cmd='echo'
8345 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8346 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8347 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8348 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8349 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8360 hardcode_libdir_flag_spec='-L$libdir'
8361 hardcode_shlibpath_var=no
8368 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8369 # support. Future versions do this automatically, but an explicit c++rt0.o
8370 # does not break anything, and helps significantly (at the cost of a little
8373 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8374 hardcode_libdir_flag_spec='-R$libdir'
8376 hardcode_shlibpath_var=no
8379 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8381 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8383 hardcode_minus_L=yes
8384 hardcode_shlibpath_var=no
8387 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8388 freebsd* | kfreebsd*-gnu | dragonfly*)
8389 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8390 hardcode_libdir_flag_spec='-R$libdir'
8392 hardcode_shlibpath_var=no
8396 if test "$GCC" = yes; then
8397 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'
8399 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'
8401 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8402 hardcode_libdir_separator=:
8405 # hardcode_minus_L: Not really in the search PATH,
8406 # but as the default location of the library.
8407 hardcode_minus_L=yes
8408 export_dynamic_flag_spec='${wl}-E'
8412 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8413 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8415 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8417 if test "$with_gnu_ld" = no; then
8418 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8419 hardcode_libdir_separator=:
8422 export_dynamic_flag_spec='${wl}-E'
8424 # hardcode_minus_L: Not really in the search PATH,
8425 # but as the default location of the library.
8426 hardcode_minus_L=yes
8431 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8434 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8437 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8440 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8446 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8449 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8452 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8456 if test "$with_gnu_ld" = no; then
8457 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8458 hardcode_libdir_separator=:
8462 hardcode_libdir_flag_spec_ld='+b $libdir'
8464 hardcode_shlibpath_var=no
8468 export_dynamic_flag_spec='${wl}-E'
8470 # hardcode_minus_L: Not really in the search PATH,
8471 # but as the default location of the library.
8472 hardcode_minus_L=yes
8478 irix5* | irix6* | nonstopux*)
8479 if test "$GCC" = yes; then
8480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8482 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8483 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8485 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8486 hardcode_libdir_separator=:
8487 link_all_deplibs=yes
8491 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8492 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8494 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8496 hardcode_libdir_flag_spec='-R$libdir'
8498 hardcode_shlibpath_var=no
8502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8505 hardcode_libdir_separator=:
8506 hardcode_shlibpath_var=no
8511 hardcode_shlibpath_var=no
8512 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8513 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8514 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8515 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8516 export_dynamic_flag_spec='${wl}-E'
8519 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8520 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8521 hardcode_libdir_flag_spec='-R$libdir'
8524 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8525 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8532 hardcode_libdir_flag_spec='-L$libdir'
8533 hardcode_minus_L=yes
8534 allow_undefined_flag=unsupported
8535 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'
8536 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8540 if test "$GCC" = yes; then
8541 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8542 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8544 allow_undefined_flag=' -expect_unresolved \*'
8545 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8547 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8548 hardcode_libdir_separator=:
8551 osf4* | osf5*) # as osf3* with the addition of -msym flag
8552 if test "$GCC" = yes; then
8553 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8554 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8557 allow_undefined_flag=' -expect_unresolved \*'
8558 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8559 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8560 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8562 # Both c and cxx compiler support -rpath directly
8563 hardcode_libdir_flag_spec='-rpath $libdir'
8565 hardcode_libdir_separator=:
8569 no_undefined_flag=' -z text'
8570 if test "$GCC" = yes; then
8572 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8573 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8574 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8577 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8578 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8579 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8581 hardcode_libdir_flag_spec='-R$libdir'
8582 hardcode_shlibpath_var=no
8584 solaris2.[0-5] | solaris2.[0-5].*) ;;
8586 # The compiler driver will combine linker options so we
8587 # cannot just pass the convience library names through
8588 # without $wl, iff we do not link with $LD.
8589 # Luckily, gcc supports the same syntax we need for Sun Studio.
8590 # Supported since Solaris 2.6 (maybe 2.5.1?)
8593 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8595 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8598 link_all_deplibs=yes
8602 if test "x$host_vendor" = xsequent; then
8603 # Use $CC to link under sequent, because it throws in some extra .o
8604 # files that make .init and .fini sections work.
8605 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8607 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8609 hardcode_libdir_flag_spec='-L$libdir'
8611 hardcode_minus_L=yes
8612 hardcode_shlibpath_var=no
8616 case $host_vendor in
8618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8619 hardcode_direct=yes # is this really true???
8622 ## LD is ld it makes a PLAMLIB
8623 ## CC just makes a GrossModule.
8624 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8625 reload_cmds='$CC -r -o $output$reload_objs'
8629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8630 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8633 runpath_var='LD_RUN_PATH'
8634 hardcode_shlibpath_var=no
8638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8639 hardcode_shlibpath_var=no
8640 export_dynamic_flag_spec='-Bexport'
8644 if test -d /usr/nec; then
8645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8646 hardcode_shlibpath_var=no
8647 runpath_var=LD_RUN_PATH
8648 hardcode_runpath_var=yes
8653 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8654 no_undefined_flag='${wl}-z,text'
8655 archive_cmds_need_lc=no
8656 hardcode_shlibpath_var=no
8657 runpath_var='LD_RUN_PATH'
8659 if test "$GCC" = yes; then
8660 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8661 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8663 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8664 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8668 sysv5* | sco3.2v5* | sco5v6*)
8669 # Note: We can NOT use -z defs as we might desire, because we do not
8670 # link with -lc, and that would cause any symbols used from libc to
8671 # always be unresolved, which means just about no library would
8672 # ever link correctly. If we're not using GNU ld we use -z text
8673 # though, which does catch some bad symbols but isn't as heavy-handed
8675 no_undefined_flag='${wl}-z,text'
8676 allow_undefined_flag='${wl}-z,nodefs'
8677 archive_cmds_need_lc=no
8678 hardcode_shlibpath_var=no
8679 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8680 hardcode_libdir_separator=':'
8681 link_all_deplibs=yes
8682 export_dynamic_flag_spec='${wl}-Bexport'
8683 runpath_var='LD_RUN_PATH'
8685 if test "$GCC" = yes; then
8686 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8687 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8689 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8690 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8696 hardcode_libdir_flag_spec='-L$libdir'
8697 hardcode_shlibpath_var=no
8706 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8707 echo "${ECHO_T}$ld_shlibs" >&6; }
8708 test "$ld_shlibs" = no && can_build_shared=no
8711 # Do we need to explicitly link libc?
8713 case "x$archive_cmds_need_lc" in
8715 # Assume -lc should be added
8716 archive_cmds_need_lc=yes
8718 if test "$enable_shared" = yes && test "$GCC" = yes; then
8719 case $archive_cmds in
8721 # FIXME: we may have to deal with multi-command sequences.
8724 # Test whether the compiler implicitly links with -lc since on some
8725 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8726 # to ld, don't add -lc before -lgcc.
8727 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8728 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8730 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8733 (eval $ac_compile) 2>&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } 2>conftest.err; then
8739 libobjs=conftest.$ac_objext
8741 wl=$lt_prog_compiler_wl
8742 pic_flag=$lt_prog_compiler_pic
8748 lt_save_allow_undefined_flag=$allow_undefined_flag
8749 allow_undefined_flag=
8750 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8751 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); }
8756 archive_cmds_need_lc=no
8758 archive_cmds_need_lc=yes
8760 allow_undefined_flag=$lt_save_allow_undefined_flag
8762 cat conftest.err 1>&5
8765 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8766 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8773 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8774 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8776 libname_spec='lib$name'
8784 shlibpath_overrides_runpath=unknown
8786 dynamic_linker="$host_os ld.so"
8787 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8788 if test "$GCC" = yes; then
8789 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8790 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8791 # if the path contains ";" then we assume it to be the separator
8792 # otherwise default to the standard path separator (i.e. ":") - it is
8793 # assumed that no part of a normal pathname contains ";" but that should
8794 # okay in the real world where ";" in dirpaths is itself problematic.
8795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8797 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8800 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8802 need_lib_prefix=unknown
8803 hardcode_into_libs=no
8805 # when you set need_version to no, make sure it does not cause -set_version
8806 # flags to be left without arguments
8807 need_version=unknown
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8813 shlibpath_var=LIBPATH
8815 # AIX 3 has no versioning support, so we append a major version to the name.
8816 soname_spec='${libname}${release}${shared_ext}$major'
8823 hardcode_into_libs=yes
8824 if test "$host_cpu" = ia64; then
8825 # AIX 5 supports IA64
8826 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8827 shlibpath_var=LD_LIBRARY_PATH
8829 # With GCC up to 2.95.x, collect2 would create an import file
8830 # for dependence libraries. The import file would start with
8831 # the line `#! .'. This would cause the generated library to
8832 # depend on `.', always an invalid library. This was fixed in
8833 # development snapshots of GCC prior to 3.0.
8835 aix4 | aix4.[01] | aix4.[01].*)
8836 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8838 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8845 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8846 # soname into executable. Probably we can add versioning support to
8847 # collect2, so additional links can be useful in future.
8848 if test "$aix_use_runtimelinking" = yes; then
8849 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8850 # instead of lib<name>.a to let people know that these are not
8851 # typical AIX shared libraries.
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8854 # We preserve .a as extension for shared libraries through AIX4.2
8855 # and later when we are not doing run time linking.
8856 library_names_spec='${libname}${release}.a $libname.a'
8857 soname_spec='${libname}${release}${shared_ext}$major'
8859 shlibpath_var=LIBPATH
8864 library_names_spec='$libname.ixlibrary $libname.a'
8865 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8866 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'
8870 library_names_spec='${libname}${shared_ext}'
8871 dynamic_linker="$host_os ld.so"
8872 shlibpath_var=LIBRARY_PATH
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8879 soname_spec='${libname}${release}${shared_ext}$major'
8880 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8881 shlibpath_var=LD_LIBRARY_PATH
8882 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8883 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8884 # the default ld.so.conf also contains /usr/contrib/lib and
8885 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8886 # libtool to hard-code these into programs
8889 cygwin* | mingw* | pw32*)
8890 version_type=windows
8895 case $GCC,$host_os in
8896 yes,cygwin* | yes,mingw* | yes,pw32*)
8897 library_names_spec='$libname.dll.a'
8898 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8899 postinstall_cmds='base_file=`basename \${file}`~
8900 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8901 dldir=$destdir/`dirname \$dlpath`~
8902 test -d \$dldir || mkdir -p \$dldir~
8903 $install_prog $dir/$dlname \$dldir/$dlname~
8904 chmod a+x \$dldir/$dlname'
8905 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8906 dlpath=$dir/\$dldll~
8908 shlibpath_overrides_runpath=yes
8912 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8913 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8914 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8917 # MinGW DLLs use traditional 'lib' prefix
8918 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8919 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8920 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8921 # It is most probably a Windows format PATH printed by
8922 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8923 # path with ; separators, and with drive letters. We can handle the
8924 # drive letters (cygwin fileutils understands them), so leave them,
8925 # especially as we might pass files found there to a mingw objdump,
8926 # which wouldn't understand a cygwinified path. Ahh.
8927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8929 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8933 # pw32 DLLs use 'pw' prefix rather than 'lib'
8934 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8940 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8943 dynamic_linker='Win32 ld.exe'
8944 # FIXME: first we should search . and the directory the executable is in
8948 darwin* | rhapsody*)
8949 dynamic_linker="$host_os dyld"
8953 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8954 soname_spec='${libname}${release}${major}$shared_ext'
8955 shlibpath_overrides_runpath=yes
8956 shlibpath_var=DYLD_LIBRARY_PATH
8957 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8958 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8959 if test "$GCC" = yes; then
8960 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8962 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8964 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8972 soname_spec='${libname}${release}${shared_ext}$major'
8973 shlibpath_var=LD_LIBRARY_PATH
8984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8985 soname_spec='${libname}${release}${shared_ext}$major'
8986 shlibpath_var=LD_LIBRARY_PATH
8987 shlibpath_overrides_runpath=no
8988 hardcode_into_libs=yes
8989 dynamic_linker='GNU ld.so'
8992 freebsd* | dragonfly*)
8993 # DragonFly does not have aout. When/if they implement a new
8994 # versioning mechanism, adjust this.
8995 if test -x /usr/bin/objformat; then
8996 objformat=`/usr/bin/objformat`
8999 freebsd[123]*) objformat=aout ;;
9003 version_type=freebsd-$objformat
9004 case $version_type in
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9015 shlibpath_var=LD_LIBRARY_PATH
9018 shlibpath_overrides_runpath=yes
9020 freebsd3.[01]* | freebsdelf3.[01]*)
9021 shlibpath_overrides_runpath=yes
9022 hardcode_into_libs=yes
9024 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9025 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9026 shlibpath_overrides_runpath=no
9027 hardcode_into_libs=yes
9029 freebsd*) # from 4.6 on
9030 shlibpath_overrides_runpath=yes
9031 hardcode_into_libs=yes
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9041 soname_spec='${libname}${release}${shared_ext}$major'
9042 shlibpath_var=LD_LIBRARY_PATH
9043 hardcode_into_libs=yes
9046 hpux9* | hpux10* | hpux11*)
9047 # Give a soname corresponding to the major version so that dld.sl refuses to
9048 # link against other versions.
9055 hardcode_into_libs=yes
9056 dynamic_linker="$host_os dld.so"
9057 shlibpath_var=LD_LIBRARY_PATH
9058 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9060 soname_spec='${libname}${release}${shared_ext}$major'
9061 if test "X$HPUX_IA64_MODE" = X32; then
9062 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9064 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9066 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9070 hardcode_into_libs=yes
9071 dynamic_linker="$host_os dld.sl"
9072 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9073 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075 soname_spec='${libname}${release}${shared_ext}$major'
9076 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9077 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9081 dynamic_linker="$host_os dld.sl"
9082 shlibpath_var=SHLIB_PATH
9083 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9088 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9089 postinstall_cmds='chmod 555 $lib'
9096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9097 soname_spec='${libname}${release}${shared_ext}$major'
9098 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 shlibpath_overrides_runpath=no
9101 hardcode_into_libs=yes
9104 irix5* | irix6* | nonstopux*)
9106 nonstopux*) version_type=nonstopux ;;
9108 if test "$lt_cv_prog_gnu_ld" = yes; then
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9119 irix5* | nonstopux*)
9123 case $LD in # libtool.m4 will add one of these switches to LD
9124 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9125 libsuff= shlibsuff= libmagic=32-bit;;
9126 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9127 libsuff=32 shlibsuff=N32 libmagic=N32;;
9128 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9129 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9130 *) libsuff= shlibsuff= libmagic=never-match;;
9134 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9135 shlibpath_overrides_runpath=no
9136 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9137 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9138 hardcode_into_libs=yes
9141 # No shared lib support for Linux oldld, aout, or coff.
9142 linux*oldld* | linux*aout* | linux*coff*)
9146 # This must be Linux ELF.
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152 soname_spec='${libname}${release}${shared_ext}$major'
9153 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9154 shlibpath_var=LD_LIBRARY_PATH
9155 shlibpath_overrides_runpath=no
9156 # This implies no fast_install, which is unacceptable.
9157 # Some rework will be needed to allow for fast_install
9158 # before this can be enabled.
9159 hardcode_into_libs=yes
9161 # Append ld.so.conf contents to the search path
9162 if test -f /etc/ld.so.conf; then
9163 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9164 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9167 # We used to test for /lib/ld.so.1 and disable shared libraries on
9168 # powerpc, because MkLinux only supported shared libraries with the
9169 # GNU dynamic linker. Since this was broken with cross compilers,
9170 # most powerpc-linux boxes support dynamic linking these days and
9171 # people can always --disable-shared, the test was removed, and we
9172 # assume the GNU/Linux dynamic linker is in use.
9173 dynamic_linker='GNU/Linux ld.so'
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9181 soname_spec='${libname}${release}${shared_ext}$major'
9182 shlibpath_var=LD_LIBRARY_PATH
9183 shlibpath_overrides_runpath=no
9184 hardcode_into_libs=yes
9185 dynamic_linker='GNU ld.so'
9192 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9195 dynamic_linker='NetBSD (a.out) ld.so'
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 dynamic_linker='NetBSD ld.elf_so'
9201 shlibpath_var=LD_LIBRARY_PATH
9202 shlibpath_overrides_runpath=yes
9203 hardcode_into_libs=yes
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209 shlibpath_var=LD_LIBRARY_PATH
9210 shlibpath_overrides_runpath=yes
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9218 soname_spec='${libname}${release}${shared_ext}$major'
9219 shlibpath_var=LD_LIBRARY_PATH
9220 shlibpath_overrides_runpath=yes
9225 sys_lib_dlsearch_path_spec="/usr/lib"
9227 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9229 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9230 *) need_version=no ;;
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9234 shlibpath_var=LD_LIBRARY_PATH
9235 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9237 openbsd2.[89] | openbsd2.[89].*)
9238 shlibpath_overrides_runpath=no
9241 shlibpath_overrides_runpath=yes
9245 shlibpath_overrides_runpath=yes
9250 libname_spec='$name'
9253 library_names_spec='$libname${shared_ext} $libname.a'
9254 dynamic_linker='OS/2 ld.exe'
9255 shlibpath_var=LIBPATH
9258 osf3* | osf4* | osf5*)
9262 soname_spec='${libname}${release}${shared_ext}$major'
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264 shlibpath_var=LD_LIBRARY_PATH
9265 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9266 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9274 soname_spec='${libname}${release}${shared_ext}$major'
9275 shlibpath_var=LD_LIBRARY_PATH
9276 shlibpath_overrides_runpath=yes
9277 hardcode_into_libs=yes
9278 # ldd complains unless libraries are executable
9279 postinstall_cmds='chmod +x $lib'
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9285 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9286 shlibpath_var=LD_LIBRARY_PATH
9287 shlibpath_overrides_runpath=yes
9288 if test "$with_gnu_ld" = yes; then
9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9297 soname_spec='${libname}${release}${shared_ext}$major'
9298 shlibpath_var=LD_LIBRARY_PATH
9299 case $host_vendor in
9301 shlibpath_overrides_runpath=no
9303 export_dynamic_flag_spec='${wl}-Blargedynsym'
9304 runpath_var=LD_RUN_PATH
9312 shlibpath_overrides_runpath=no
9313 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9319 if test -d /usr/nec ;then
9321 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9322 soname_spec='$libname${shared_ext}.$major'
9323 shlibpath_var=LD_LIBRARY_PATH
9327 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9328 version_type=freebsd-elf
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9332 soname_spec='${libname}${release}${shared_ext}$major'
9333 shlibpath_var=LD_LIBRARY_PATH
9334 hardcode_into_libs=yes
9335 if test "$with_gnu_ld" = yes; then
9336 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9337 shlibpath_overrides_runpath=no
9339 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9340 shlibpath_overrides_runpath=yes
9343 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9347 sys_lib_dlsearch_path_spec='/usr/lib'
9352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9353 soname_spec='${libname}${release}${shared_ext}$major'
9354 shlibpath_var=LD_LIBRARY_PATH
9361 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9362 echo "${ECHO_T}$dynamic_linker" >&6; }
9363 test "$dynamic_linker" = no && can_build_shared=no
9365 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9366 if test "$GCC" = yes; then
9367 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9370 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9371 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9373 if test -n "$hardcode_libdir_flag_spec" || \
9374 test -n "$runpath_var" || \
9375 test "X$hardcode_automatic" = "Xyes" ; then
9377 # We can hardcode non-existant directories.
9378 if test "$hardcode_direct" != no &&
9379 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9380 # have to relink, otherwise we might link with an installed library
9381 # when we should be linking with a yet-to-be-installed one
9382 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9383 test "$hardcode_minus_L" != no; then
9384 # Linking always hardcodes the temporary library directory.
9385 hardcode_action=relink
9387 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9388 hardcode_action=immediate
9391 # We cannot hardcode anything, or else we can only hardcode existing
9393 hardcode_action=unsupported
9395 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9396 echo "${ECHO_T}$hardcode_action" >&6; }
9398 if test "$hardcode_action" = relink; then
9399 # Fast installation is not supported
9400 enable_fast_install=no
9401 elif test "$shlibpath_overrides_runpath" = yes ||
9402 test "$enable_shared" = no; then
9403 # Fast installation is not necessary
9404 enable_fast_install=needless
9409 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9410 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9411 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9412 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9413 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9414 { echo "$as_me:$LINENO: result: yes" >&5
9415 echo "${ECHO_T}yes" >&6; }
9417 # FIXME - insert some real tests, host_os isn't really good enough
9420 if test -n "$STRIP" ; then
9421 striplib="$STRIP -x"
9422 { echo "$as_me:$LINENO: result: yes" >&5
9423 echo "${ECHO_T}yes" >&6; }
9425 { echo "$as_me:$LINENO: result: no" >&5
9426 echo "${ECHO_T}no" >&6; }
9430 { echo "$as_me:$LINENO: result: no" >&5
9431 echo "${ECHO_T}no" >&6; }
9436 if test "x$enable_dlopen" != xyes; then
9437 enable_dlopen=unknown
9438 enable_dlopen_self=unknown
9439 enable_dlopen_self_static=unknown
9446 lt_cv_dlopen="load_add_on"
9448 lt_cv_dlopen_self=yes
9452 lt_cv_dlopen="LoadLibrary"
9457 lt_cv_dlopen="dlopen"
9462 # if libdl is installed we need to link against it
9463 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9464 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9465 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 ac_check_lib_save_LIBS=$LIBS
9470 cat >conftest.$ac_ext <<_ACEOF
9473 cat confdefs.h >>conftest.$ac_ext
9474 cat >>conftest.$ac_ext <<_ACEOF
9475 /* end confdefs.h. */
9477 /* Override any GCC internal prototype to avoid an error.
9478 Use char because int might match the return type of a GCC
9479 builtin and then its argument prototype would still apply. */
9492 rm -f conftest.$ac_objext conftest$ac_exeext
9493 if { (ac_try="$ac_link"
9495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496 *) ac_try_echo=$ac_try;;
9498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499 (eval "$ac_link") 2>conftest.er1
9501 grep -v '^ *+' conftest.er1 >conftest.err
9503 cat conftest.err >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } && {
9506 test -z "$ac_c_werror_flag" ||
9507 test ! -s conftest.err
9508 } && test -s conftest$ac_exeext &&
9509 $as_test_x conftest$ac_exeext; then
9510 ac_cv_lib_dl_dlopen=yes
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 ac_cv_lib_dl_dlopen=no
9518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9519 conftest$ac_exeext conftest.$ac_ext
9520 LIBS=$ac_check_lib_save_LIBS
9522 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9523 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9524 if test $ac_cv_lib_dl_dlopen = yes; then
9525 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9530 lt_cv_dlopen_self=yes
9537 { echo "$as_me:$LINENO: checking for shl_load" >&5
9538 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9539 if test "${ac_cv_func_shl_load+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 cat >conftest.$ac_ext <<_ACEOF
9545 cat confdefs.h >>conftest.$ac_ext
9546 cat >>conftest.$ac_ext <<_ACEOF
9547 /* end confdefs.h. */
9548 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9550 #define shl_load innocuous_shl_load
9552 /* System header to define __stub macros and hopefully few prototypes,
9553 which can conflict with char shl_load (); below.
9554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9555 <limits.h> exists even on freestanding compilers. */
9558 # include <limits.h>
9560 # include <assert.h>
9565 /* Override any GCC internal prototype to avoid an error.
9566 Use char because int might match the return type of a GCC
9567 builtin and then its argument prototype would still apply. */
9572 /* The GNU C library defines this for functions which it implements
9573 to always fail with ENOSYS. Some functions are actually named
9574 something starting with __ and the normal name is an alias. */
9575 #if defined __stub_shl_load || defined __stub___shl_load
9587 rm -f conftest.$ac_objext conftest$ac_exeext
9588 if { (ac_try="$ac_link"
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594 (eval "$ac_link") 2>conftest.er1
9596 grep -v '^ *+' conftest.er1 >conftest.err
9598 cat conftest.err >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } && {
9601 test -z "$ac_c_werror_flag" ||
9602 test ! -s conftest.err
9603 } && test -s conftest$ac_exeext &&
9604 $as_test_x conftest$ac_exeext; then
9605 ac_cv_func_shl_load=yes
9607 echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9610 ac_cv_func_shl_load=no
9613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9614 conftest$ac_exeext conftest.$ac_ext
9616 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9617 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9618 if test $ac_cv_func_shl_load = yes; then
9619 lt_cv_dlopen="shl_load"
9621 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9622 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9623 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9624 echo $ECHO_N "(cached) $ECHO_C" >&6
9626 ac_check_lib_save_LIBS=$LIBS
9628 cat >conftest.$ac_ext <<_ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9635 /* Override any GCC internal prototype to avoid an error.
9636 Use char because int might match the return type of a GCC
9637 builtin and then its argument prototype would still apply. */
9650 rm -f conftest.$ac_objext conftest$ac_exeext
9651 if { (ac_try="$ac_link"
9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654 *) ac_try_echo=$ac_try;;
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657 (eval "$ac_link") 2>conftest.er1
9659 grep -v '^ *+' conftest.er1 >conftest.err
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } && {
9664 test -z "$ac_c_werror_flag" ||
9665 test ! -s conftest.err
9666 } && test -s conftest$ac_exeext &&
9667 $as_test_x conftest$ac_exeext; then
9668 ac_cv_lib_dld_shl_load=yes
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9673 ac_cv_lib_dld_shl_load=no
9676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9677 conftest$ac_exeext conftest.$ac_ext
9678 LIBS=$ac_check_lib_save_LIBS
9680 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9681 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9682 if test $ac_cv_lib_dld_shl_load = yes; then
9683 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9685 { echo "$as_me:$LINENO: checking for dlopen" >&5
9686 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9687 if test "${ac_cv_func_dlopen+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 cat >conftest.$ac_ext <<_ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9696 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9698 #define dlopen innocuous_dlopen
9700 /* System header to define __stub macros and hopefully few prototypes,
9701 which can conflict with char dlopen (); below.
9702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9703 <limits.h> exists even on freestanding compilers. */
9706 # include <limits.h>
9708 # include <assert.h>
9713 /* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
9720 /* The GNU C library defines this for functions which it implements
9721 to always fail with ENOSYS. Some functions are actually named
9722 something starting with __ and the normal name is an alias. */
9723 #if defined __stub_dlopen || defined __stub___dlopen
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (ac_try="$ac_link"
9738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739 *) ac_try_echo=$ac_try;;
9741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742 (eval "$ac_link") 2>conftest.er1
9744 grep -v '^ *+' conftest.er1 >conftest.err
9746 cat conftest.err >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } && {
9749 test -z "$ac_c_werror_flag" ||
9750 test ! -s conftest.err
9751 } && test -s conftest$ac_exeext &&
9752 $as_test_x conftest$ac_exeext; then
9753 ac_cv_func_dlopen=yes
9755 echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9758 ac_cv_func_dlopen=no
9761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9762 conftest$ac_exeext conftest.$ac_ext
9764 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9765 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9766 if test $ac_cv_func_dlopen = yes; then
9767 lt_cv_dlopen="dlopen"
9769 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9770 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9771 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 ac_check_lib_save_LIBS=$LIBS
9776 cat >conftest.$ac_ext <<_ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9783 /* Override any GCC internal prototype to avoid an error.
9784 Use char because int might match the return type of a GCC
9785 builtin and then its argument prototype would still apply. */
9798 rm -f conftest.$ac_objext conftest$ac_exeext
9799 if { (ac_try="$ac_link"
9801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802 *) ac_try_echo=$ac_try;;
9804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9805 (eval "$ac_link") 2>conftest.er1
9807 grep -v '^ *+' conftest.er1 >conftest.err
9809 cat conftest.err >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } && {
9812 test -z "$ac_c_werror_flag" ||
9813 test ! -s conftest.err
9814 } && test -s conftest$ac_exeext &&
9815 $as_test_x conftest$ac_exeext; then
9816 ac_cv_lib_dl_dlopen=yes
9818 echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9821 ac_cv_lib_dl_dlopen=no
9824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9825 conftest$ac_exeext conftest.$ac_ext
9826 LIBS=$ac_check_lib_save_LIBS
9828 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9829 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9830 if test $ac_cv_lib_dl_dlopen = yes; then
9831 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9833 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9834 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9835 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 ac_check_lib_save_LIBS=$LIBS
9840 cat >conftest.$ac_ext <<_ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9847 /* Override any GCC internal prototype to avoid an error.
9848 Use char because int might match the return type of a GCC
9849 builtin and then its argument prototype would still apply. */
9862 rm -f conftest.$ac_objext conftest$ac_exeext
9863 if { (ac_try="$ac_link"
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869 (eval "$ac_link") 2>conftest.er1
9871 grep -v '^ *+' conftest.er1 >conftest.err
9873 cat conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } && {
9876 test -z "$ac_c_werror_flag" ||
9877 test ! -s conftest.err
9878 } && test -s conftest$ac_exeext &&
9879 $as_test_x conftest$ac_exeext; then
9880 ac_cv_lib_svld_dlopen=yes
9882 echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9885 ac_cv_lib_svld_dlopen=no
9888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9889 conftest$ac_exeext conftest.$ac_ext
9890 LIBS=$ac_check_lib_save_LIBS
9892 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9893 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9894 if test $ac_cv_lib_svld_dlopen = yes; then
9895 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9897 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9898 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9899 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9900 echo $ECHO_N "(cached) $ECHO_C" >&6
9902 ac_check_lib_save_LIBS=$LIBS
9904 cat >conftest.$ac_ext <<_ACEOF
9907 cat confdefs.h >>conftest.$ac_ext
9908 cat >>conftest.$ac_ext <<_ACEOF
9909 /* end confdefs.h. */
9911 /* Override any GCC internal prototype to avoid an error.
9912 Use char because int might match the return type of a GCC
9913 builtin and then its argument prototype would still apply. */
9926 rm -f conftest.$ac_objext conftest$ac_exeext
9927 if { (ac_try="$ac_link"
9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930 *) ac_try_echo=$ac_try;;
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933 (eval "$ac_link") 2>conftest.er1
9935 grep -v '^ *+' conftest.er1 >conftest.err
9937 cat conftest.err >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } && {
9940 test -z "$ac_c_werror_flag" ||
9941 test ! -s conftest.err
9942 } && test -s conftest$ac_exeext &&
9943 $as_test_x conftest$ac_exeext; then
9944 ac_cv_lib_dld_dld_link=yes
9946 echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9949 ac_cv_lib_dld_dld_link=no
9952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9953 conftest$ac_exeext conftest.$ac_ext
9954 LIBS=$ac_check_lib_save_LIBS
9956 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9957 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9958 if test $ac_cv_lib_dld_dld_link = yes; then
9959 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9980 if test "x$lt_cv_dlopen" != xno; then
9986 case $lt_cv_dlopen in
9988 save_CPPFLAGS="$CPPFLAGS"
9989 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9991 save_LDFLAGS="$LDFLAGS"
9992 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9995 LIBS="$lt_cv_dlopen_libs $LIBS"
9997 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9998 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9999 if test "${lt_cv_dlopen_self+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 if test "$cross_compiling" = yes; then :
10003 lt_cv_dlopen_self=cross
10005 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10006 lt_status=$lt_dlunknown
10007 cat > conftest.$ac_ext <<EOF
10008 #line 10008 "configure"
10009 #include "confdefs.h"
10018 # define LT_DLGLOBAL RTLD_GLOBAL
10021 # define LT_DLGLOBAL DL_GLOBAL
10023 # define LT_DLGLOBAL 0
10027 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10028 find out it does not work in some platform. */
10029 #ifndef LT_DLLAZY_OR_NOW
10031 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10034 # define LT_DLLAZY_OR_NOW DL_LAZY
10037 # define LT_DLLAZY_OR_NOW RTLD_NOW
10040 # define LT_DLLAZY_OR_NOW DL_NOW
10042 # define LT_DLLAZY_OR_NOW 0
10050 extern "C" void exit (int);
10053 void fnord() { int i=42;}
10056 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10057 int status = $lt_dlunknown;
10061 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10062 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10063 /* dlclose (self); */
10071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10072 (eval $ac_link) 2>&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10076 (./conftest; exit; ) >&5 2>/dev/null
10078 case x$lt_status in
10079 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10080 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10081 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10084 # compilation failed
10085 lt_cv_dlopen_self=no
10092 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10093 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10095 if test "x$lt_cv_dlopen_self" = xyes; then
10096 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10097 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10098 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10099 if test "${lt_cv_dlopen_self_static+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 if test "$cross_compiling" = yes; then :
10103 lt_cv_dlopen_self_static=cross
10105 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10106 lt_status=$lt_dlunknown
10107 cat > conftest.$ac_ext <<EOF
10108 #line 10108 "configure"
10109 #include "confdefs.h"
10118 # define LT_DLGLOBAL RTLD_GLOBAL
10121 # define LT_DLGLOBAL DL_GLOBAL
10123 # define LT_DLGLOBAL 0
10127 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10128 find out it does not work in some platform. */
10129 #ifndef LT_DLLAZY_OR_NOW
10131 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10134 # define LT_DLLAZY_OR_NOW DL_LAZY
10137 # define LT_DLLAZY_OR_NOW RTLD_NOW
10140 # define LT_DLLAZY_OR_NOW DL_NOW
10142 # define LT_DLLAZY_OR_NOW 0
10150 extern "C" void exit (int);
10153 void fnord() { int i=42;}
10156 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10157 int status = $lt_dlunknown;
10161 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10162 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10163 /* dlclose (self); */
10171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172 (eval $ac_link) 2>&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10176 (./conftest; exit; ) >&5 2>/dev/null
10178 case x$lt_status in
10179 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10180 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10181 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10184 # compilation failed
10185 lt_cv_dlopen_self_static=no
10192 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10193 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10196 CPPFLAGS="$save_CPPFLAGS"
10197 LDFLAGS="$save_LDFLAGS"
10202 case $lt_cv_dlopen_self in
10203 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10204 *) enable_dlopen_self=unknown ;;
10207 case $lt_cv_dlopen_self_static in
10208 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10209 *) enable_dlopen_self_static=unknown ;;
10214 # Report which library types will actually be built
10215 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10216 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10217 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10218 echo "${ECHO_T}$can_build_shared" >&6; }
10220 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10221 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10222 test "$can_build_shared" = "no" && enable_shared=no
10224 # On AIX, shared libraries and static libraries use the same namespace, and
10225 # are all built from PIC.
10228 test "$enable_shared" = yes && enable_static=no
10229 if test -n "$RANLIB"; then
10230 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10231 postinstall_cmds='$RANLIB $lib'
10236 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10237 test "$enable_shared" = yes && enable_static=no
10241 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10242 echo "${ECHO_T}$enable_shared" >&6; }
10244 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10245 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10246 # Make sure either enable_shared or enable_static is yes.
10247 test "$enable_shared" = yes || enable_static=yes
10248 { echo "$as_me:$LINENO: result: $enable_static" >&5
10249 echo "${ECHO_T}$enable_static" >&6; }
10251 # The else clause should only fire when bootstrapping the
10252 # libtool distribution, otherwise you forgot to ship ltmain.sh
10253 # with your package, and you will get complaints that there are
10254 # no rules to generate ltmain.sh.
10255 if test -f "$ltmain"; then
10256 # See if we are running on zsh, and set the options which allow our commands through
10257 # without removal of \ escapes.
10258 if test -n "${ZSH_VERSION+set}" ; then
10259 setopt NO_GLOB_SUBST
10261 # Now quote all the things that may contain metacharacters while being
10262 # careful not to overquote the AC_SUBSTed values. We take copies of the
10263 # variables and quote the copies for generation of the libtool script.
10264 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10266 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10267 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10268 deplibs_check_method reload_flag reload_cmds need_locks \
10269 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10270 lt_cv_sys_global_symbol_to_c_name_address \
10271 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10272 old_postinstall_cmds old_postuninstall_cmds \
10276 lt_prog_compiler_wl \
10277 lt_prog_compiler_pic \
10278 lt_prog_compiler_static \
10279 lt_prog_compiler_no_builtin_flag \
10280 export_dynamic_flag_spec \
10281 thread_safe_flag_spec \
10282 whole_archive_flag_spec \
10283 enable_shared_with_static_runtimes \
10285 old_archive_from_new_cmds \
10290 compiler_lib_search_path \
10292 archive_expsym_cmds \
10294 postuninstall_cmds \
10295 old_archive_from_expsyms_cmds \
10296 allow_undefined_flag \
10297 no_undefined_flag \
10298 export_symbols_cmds \
10299 hardcode_libdir_flag_spec \
10300 hardcode_libdir_flag_spec_ld \
10301 hardcode_libdir_separator \
10302 hardcode_automatic \
10304 module_expsym_cmds \
10305 lt_cv_prog_compiler_c_o \
10307 include_expsyms; do
10310 old_archive_cmds | \
10311 old_archive_from_new_cmds | \
10313 archive_expsym_cmds | \
10315 module_expsym_cmds | \
10316 old_archive_from_expsyms_cmds | \
10317 export_symbols_cmds | \
10318 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10319 postinstall_cmds | postuninstall_cmds | \
10320 old_postinstall_cmds | old_postuninstall_cmds | \
10321 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10322 # Double-quote double-evaled strings.
10323 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10326 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10332 *'\$0 --fallback-echo"')
10333 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10337 cfgfile="${ofile}T"
10338 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10340 { echo "$as_me:$LINENO: creating $ofile" >&5
10341 echo "$as_me: creating $ofile" >&6;}
10343 cat <<__EOF__ >> "$cfgfile"
10346 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10347 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10348 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10350 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10351 # Free Software Foundation, Inc.
10353 # This file is part of GNU Libtool:
10354 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10356 # This program is free software; you can redistribute it and/or modify
10357 # it under the terms of the GNU General Public License as published by
10358 # the Free Software Foundation; either version 2 of the License, or
10359 # (at your option) any later version.
10361 # This program is distributed in the hope that it will be useful, but
10362 # WITHOUT ANY WARRANTY; without even the implied warranty of
10363 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10364 # General Public License for more details.
10366 # You should have received a copy of the GNU General Public License
10367 # along with this program; if not, write to the Free Software
10368 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10370 # As a special exception to the GNU General Public License, if you
10371 # distribute this file as part of a program that contains a
10372 # configuration script generated by Autoconf, you may include it under
10373 # the same distribution terms that you use for the rest of that program.
10375 # A sed program that does not truncate output.
10378 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10379 Xsed="$SED -e 1s/^X//"
10381 # The HP-UX ksh and POSIX shell print the target directory to stdout
10382 # if CDPATH is set.
10383 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10385 # The names of the tagged configurations supported by this script.
10388 # ### BEGIN LIBTOOL CONFIG
10390 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10392 # Shell to use when invoking shell scripts.
10395 # Whether or not to build shared libraries.
10396 build_libtool_libs=$enable_shared
10398 # Whether or not to build static libraries.
10399 build_old_libs=$enable_static
10401 # Whether or not to add -lc for building shared libraries.
10402 build_libtool_need_lc=$archive_cmds_need_lc
10404 # Whether or not to disallow shared libs when runtime libs are static
10405 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10407 # Whether or not to optimize for fast installation.
10408 fast_install=$enable_fast_install
10411 host_alias=$host_alias
10415 # The build system.
10416 build_alias=$build_alias
10420 # An echo program that does not interpret backslashes.
10425 AR_FLAGS=$lt_AR_FLAGS
10430 # LTCC compiler flags.
10431 LTCFLAGS=$lt_LTCFLAGS
10433 # A language-specific compiler.
10436 # Is the compiler the GNU C compiler?
10442 # The linker used to build libraries.
10445 # Whether we need hard or soft links.
10448 # A BSD-compatible nm program.
10451 # A symbol stripping program
10454 # Used to examine libraries when file_magic_cmd begins "file"
10455 MAGIC_CMD=$MAGIC_CMD
10457 # Used on cygwin: DLL creation program.
10460 # Used on cygwin: object dumper.
10463 # Used on cygwin: assembler.
10466 # The name of the directory that contains temporary libtool files.
10469 # How to create reloadable object files.
10470 reload_flag=$lt_reload_flag
10471 reload_cmds=$lt_reload_cmds
10473 # How to pass a linker flag through the compiler.
10474 wl=$lt_lt_prog_compiler_wl
10476 # Object file suffix (normally "o").
10477 objext="$ac_objext"
10479 # Old archive suffix (normally "a").
10482 # Shared library suffix (normally ".so").
10483 shrext_cmds='$shrext_cmds'
10485 # Executable file suffix (normally "").
10488 # Additional compiler flags for building library objects.
10489 pic_flag=$lt_lt_prog_compiler_pic
10492 # What is the maximum length of a command?
10493 max_cmd_len=$lt_cv_sys_max_cmd_len
10495 # Does compiler simultaneously support -c and -o options?
10496 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10498 # Must we lock files when doing compilation?
10499 need_locks=$lt_need_locks
10501 # Do we need the lib prefix for modules?
10502 need_lib_prefix=$need_lib_prefix
10504 # Do we need a version for libraries?
10505 need_version=$need_version
10507 # Whether dlopen is supported.
10508 dlopen_support=$enable_dlopen
10510 # Whether dlopen of programs is supported.
10511 dlopen_self=$enable_dlopen_self
10513 # Whether dlopen of statically linked programs is supported.
10514 dlopen_self_static=$enable_dlopen_self_static
10516 # Compiler flag to prevent dynamic linking.
10517 link_static_flag=$lt_lt_prog_compiler_static
10519 # Compiler flag to turn off builtin functions.
10520 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10522 # Compiler flag to allow reflexive dlopens.
10523 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10525 # Compiler flag to generate shared objects directly from archives.
10526 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10528 # Compiler flag to generate thread-safe objects.
10529 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10531 # Library versioning type.
10532 version_type=$version_type
10534 # Format of library name prefix.
10535 libname_spec=$lt_libname_spec
10537 # List of archive names. First name is the real one, the rest are links.
10538 # The last name is the one that the linker finds with -lNAME.
10539 library_names_spec=$lt_library_names_spec
10541 # The coded name of the library, if different from the real name.
10542 soname_spec=$lt_soname_spec
10544 # Commands used to build and install an old-style archive.
10546 old_archive_cmds=$lt_old_archive_cmds
10547 old_postinstall_cmds=$lt_old_postinstall_cmds
10548 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10550 # Create an old-style archive from a shared archive.
10551 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10553 # Create a temporary old-style archive to link instead of a shared archive.
10554 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10556 # Commands used to build and install a shared archive.
10557 archive_cmds=$lt_archive_cmds
10558 archive_expsym_cmds=$lt_archive_expsym_cmds
10559 postinstall_cmds=$lt_postinstall_cmds
10560 postuninstall_cmds=$lt_postuninstall_cmds
10562 # Commands used to build a loadable module (assumed same as above if empty)
10563 module_cmds=$lt_module_cmds
10564 module_expsym_cmds=$lt_module_expsym_cmds
10566 # Commands to strip libraries.
10567 old_striplib=$lt_old_striplib
10568 striplib=$lt_striplib
10570 # Dependencies to place before the objects being linked to create a
10572 predep_objects=$lt_predep_objects
10574 # Dependencies to place after the objects being linked to create a
10576 postdep_objects=$lt_postdep_objects
10578 # Dependencies to place before the objects being linked to create a
10580 predeps=$lt_predeps
10582 # Dependencies to place after the objects being linked to create a
10584 postdeps=$lt_postdeps
10586 # The library search path used internally by the compiler when linking
10587 # a shared library.
10588 compiler_lib_search_path=$lt_compiler_lib_search_path
10590 # Method to check whether dependent libraries are shared objects.
10591 deplibs_check_method=$lt_deplibs_check_method
10593 # Command to use when deplibs_check_method == file_magic.
10594 file_magic_cmd=$lt_file_magic_cmd
10596 # Flag that allows shared libraries with undefined symbols to be built.
10597 allow_undefined_flag=$lt_allow_undefined_flag
10599 # Flag that forces no undefined symbols.
10600 no_undefined_flag=$lt_no_undefined_flag
10602 # Commands used to finish a libtool library installation in a directory.
10603 finish_cmds=$lt_finish_cmds
10605 # Same as above, but a single script fragment to be evaled but not shown.
10606 finish_eval=$lt_finish_eval
10608 # Take the output of nm and produce a listing of raw symbols and C names.
10609 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10611 # Transform the output of nm in a proper C declaration
10612 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10614 # Transform the output of nm in a C name address pair
10615 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10617 # This is the shared library runtime path variable.
10618 runpath_var=$runpath_var
10620 # This is the shared library path variable.
10621 shlibpath_var=$shlibpath_var
10623 # Is shlibpath searched before the hard-coded library search path?
10624 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10626 # How to hardcode a shared library path into an executable.
10627 hardcode_action=$hardcode_action
10629 # Whether we should hardcode library paths into libraries.
10630 hardcode_into_libs=$hardcode_into_libs
10632 # Flag to hardcode \$libdir into a binary during linking.
10633 # This must work even if \$libdir does not exist.
10634 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10636 # If ld is used when linking, flag to hardcode \$libdir into
10637 # a binary during linking. This must work even if \$libdir does
10639 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10641 # Whether we need a single -rpath flag with a separated argument.
10642 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10644 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10645 # resulting binary.
10646 hardcode_direct=$hardcode_direct
10648 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10649 # resulting binary.
10650 hardcode_minus_L=$hardcode_minus_L
10652 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10653 # the resulting binary.
10654 hardcode_shlibpath_var=$hardcode_shlibpath_var
10656 # Set to yes if building a shared library automatically hardcodes DIR into the library
10657 # and all subsequent libraries and executables linked against it.
10658 hardcode_automatic=$hardcode_automatic
10660 # Variables whose values should be saved in libtool wrapper scripts and
10661 # restored at relink time.
10662 variables_saved_for_relink="$variables_saved_for_relink"
10664 # Whether libtool must link a program against all its dependency libraries.
10665 link_all_deplibs=$link_all_deplibs
10667 # Compile-time system search path for libraries
10668 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10670 # Run-time system search path for libraries
10671 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10673 # Fix the shell variable \$srcfile for the compiler.
10674 fix_srcfile_path="$fix_srcfile_path"
10676 # Set to yes if exported symbols are required.
10677 always_export_symbols=$always_export_symbols
10679 # The commands to list exported symbols.
10680 export_symbols_cmds=$lt_export_symbols_cmds
10682 # The commands to extract the exported symbol list from a shared archive.
10683 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10685 # Symbols that should not be listed in the preloaded symbols.
10686 exclude_expsyms=$lt_exclude_expsyms
10688 # Symbols that must always be exported.
10689 include_expsyms=$lt_include_expsyms
10691 # ### END LIBTOOL CONFIG
10698 cat <<\EOF >> "$cfgfile"
10700 # AIX sometimes has problems with the GCC collect2 program. For some
10701 # reason, if we set the COLLECT_NAMES environment variable, the problems
10702 # vanish in a puff of smoke.
10703 if test "X${COLLECT_NAMES+set}" != Xset; then
10705 export COLLECT_NAMES
10711 # We use sed instead of cat because bash on DJGPP gets confused if
10712 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10713 # text mode, it properly converts lines to CR/LF. This bash problem
10714 # is reportedly fixed, but why not run on old versions too?
10715 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10717 mv -f "$cfgfile" "$ofile" || \
10718 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10722 # If there is no Makefile yet, we rely on a make rule to execute
10723 # `config.status --recheck' to rerun these tests and create the
10724 # libtool script then.
10725 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10726 if test -f "$ltmain_in"; then
10727 test -f Makefile && make "$ltmain"
10733 ac_cpp='$CPP $CPPFLAGS'
10734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10741 # Check whether --with-tags was given.
10742 if test "${with_tags+set}" = set; then
10743 withval=$with_tags; tagnames="$withval"
10747 if test -f "$ltmain" && test -n "$tagnames"; then
10748 if test ! -f "${ofile}"; then
10749 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10750 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10753 if test -z "$LTCC"; then
10754 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10755 if test -z "$LTCC"; then
10756 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10757 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10759 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10760 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10763 if test -z "$LTCFLAGS"; then
10764 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10767 # Extract list of available tagged configurations in $ofile.
10768 # Note that this assumes the entire list is on one line.
10769 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10771 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10772 for tagname in $tagnames; do
10774 # Check whether tagname contains only valid characters
10775 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10777 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10778 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10779 { (exit 1); exit 1; }; }
10783 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10785 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10786 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10787 { (exit 1); exit 1; }; }
10790 # Update the list of available tags.
10791 if test -n "$tagname"; then
10792 echo appending configuration tag \"$tagname\" to $ofile
10796 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10797 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10798 (test "X$CXX" != "Xg++"))) ; then
10800 ac_cpp='$CXXCPP $CPPFLAGS'
10801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10808 archive_cmds_need_lc_CXX=no
10809 allow_undefined_flag_CXX=
10810 always_export_symbols_CXX=no
10811 archive_expsym_cmds_CXX=
10812 export_dynamic_flag_spec_CXX=
10813 hardcode_direct_CXX=no
10814 hardcode_libdir_flag_spec_CXX=
10815 hardcode_libdir_flag_spec_ld_CXX=
10816 hardcode_libdir_separator_CXX=
10817 hardcode_minus_L_CXX=no
10818 hardcode_shlibpath_var_CXX=unsupported
10819 hardcode_automatic_CXX=no
10821 module_expsym_cmds_CXX=
10822 link_all_deplibs_CXX=unknown
10823 old_archive_cmds_CXX=$old_archive_cmds
10824 no_undefined_flag_CXX=
10825 whole_archive_flag_spec_CXX=
10826 enable_shared_with_static_runtimes_CXX=no
10828 # Dependencies to place before and after the object being linked:
10829 predep_objects_CXX=
10830 postdep_objects_CXX=
10833 compiler_lib_search_path_CXX=
10835 # Source file extension for C++ test sources.
10838 # Object file extension for compiled C++ test sources.
10842 # Code to be used in simple compile tests
10843 lt_simple_compile_test_code="int some_variable = 0;\n"
10845 # Code to be used in simple link tests
10846 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10848 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10850 # If no C compiler was specified, use CC.
10853 # If no C compiler flags were specified, use CFLAGS.
10854 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10856 # Allow CC to be a program name with arguments.
10860 # save warnings/boilerplate of simple test code
10861 ac_outfile=conftest.$ac_objext
10862 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10863 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10864 _lt_compiler_boilerplate=`cat conftest.err`
10867 ac_outfile=conftest.$ac_objext
10868 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10869 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10870 _lt_linker_boilerplate=`cat conftest.err`
10874 # Allow CC to be a program name with arguments.
10879 lt_save_with_gnu_ld=$with_gnu_ld
10880 lt_save_path_LD=$lt_cv_path_LD
10881 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10882 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10884 $as_unset lt_cv_prog_gnu_ld
10886 if test -n "${lt_cv_path_LDCXX+set}"; then
10887 lt_cv_path_LD=$lt_cv_path_LDCXX
10889 $as_unset lt_cv_path_LD
10891 test -z "${LDCXX+set}" || LD=$LDCXX
10895 for cc_temp in $compiler""; do
10897 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10898 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10903 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10906 # We don't want -fno-exception wen compiling C++ code, so set the
10907 # no_builtin_flag separately
10908 if test "$GXX" = yes; then
10909 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10911 lt_prog_compiler_no_builtin_flag_CXX=
10914 if test "$GXX" = yes; then
10915 # Set up default GNU C++ configuration
10918 # Check whether --with-gnu-ld was given.
10919 if test "${with_gnu_ld+set}" = set; then
10920 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10926 if test "$GCC" = yes; then
10927 # Check if gcc -print-prog-name=ld gives a path.
10928 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10929 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10932 # gcc leaves a trailing carriage return which upsets mingw
10933 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10935 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10938 # Accept absolute paths.
10940 re_direlt='/[^/][^/]*/\.\./'
10941 # Canonicalize the pathname of ld
10942 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10943 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10944 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10946 test -z "$LD" && LD="$ac_prog"
10949 # If it fails, then pretend we aren't using GCC.
10953 # If it is relative, then search for the first ld in PATH.
10954 with_gnu_ld=unknown
10957 elif test "$with_gnu_ld" = yes; then
10958 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10959 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10961 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10962 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10964 if test "${lt_cv_path_LD+set}" = set; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10967 if test -z "$LD"; then
10968 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10969 for ac_dir in $PATH; do
10971 test -z "$ac_dir" && ac_dir=.
10972 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10973 lt_cv_path_LD="$ac_dir/$ac_prog"
10974 # Check to see if the program is GNU ld. I'd rather use --version,
10975 # but apparently some variants of GNU ld only accept -v.
10976 # Break only if it was the GNU/non-GNU ld that we prefer.
10977 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10978 *GNU* | *'with BFD'*)
10979 test "$with_gnu_ld" != no && break
10982 test "$with_gnu_ld" != yes && break
10989 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10993 LD="$lt_cv_path_LD"
10994 if test -n "$LD"; then
10995 { echo "$as_me:$LINENO: result: $LD" >&5
10996 echo "${ECHO_T}$LD" >&6; }
10998 { echo "$as_me:$LINENO: result: no" >&5
10999 echo "${ECHO_T}no" >&6; }
11001 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11002 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11003 { (exit 1); exit 1; }; }
11004 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11005 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11006 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11009 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11010 case `$LD -v 2>&1 </dev/null` in
11011 *GNU* | *'with BFD'*)
11012 lt_cv_prog_gnu_ld=yes
11015 lt_cv_prog_gnu_ld=no
11019 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11020 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11021 with_gnu_ld=$lt_cv_prog_gnu_ld
11025 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11026 # archiving commands below assume that GNU ld is being used.
11027 if test "$with_gnu_ld" = yes; then
11028 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11029 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'
11031 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11032 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11034 # If archive_cmds runs LD, not CC, wlarc should be empty
11035 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11036 # investigate it a little bit more. (MM)
11039 # ancient GNU ld didn't support --whole-archive et. al.
11040 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11041 grep 'no-whole-archive' > /dev/null; then
11042 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11044 whole_archive_flag_spec_CXX=
11050 # A generic and very simple default shared library creation
11051 # command for GNU C++ for the case where it uses the native
11052 # linker, instead of GNU ld. If possible, this setting should
11053 # overridden to take advantage of the native linker features on
11054 # the platform it is being used on.
11055 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11058 # Commands to make compiler produce verbose output that lists
11059 # what "hidden" libraries, object files and flags are used when
11060 # linking a shared library.
11061 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11069 # PORTME: fill in a description of your system's C++ link characteristics
11070 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11071 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11075 # FIXME: insert proper C++ library support
11079 if test "$host_cpu" = ia64; then
11080 # On IA64, the linker does run time linking by default, so we don't
11081 # have to do anything special.
11082 aix_use_runtimelinking=no
11083 exp_sym_flag='-Bexport'
11086 aix_use_runtimelinking=no
11088 # Test if we are trying to use run time linking or normal
11089 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11090 # need to do runtime linking.
11091 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11092 for ld_flag in $LDFLAGS; do
11095 aix_use_runtimelinking=yes
11103 exp_sym_flag='-bexport'
11104 no_entry_flag='-bnoentry'
11107 # When large executables or shared objects are built, AIX ld can
11108 # have problems creating the table of contents. If linking a library
11109 # or program results in "error TOC overflow" add -mminimal-toc to
11110 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11111 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11113 archive_cmds_CXX=''
11114 hardcode_direct_CXX=yes
11115 hardcode_libdir_separator_CXX=':'
11116 link_all_deplibs_CXX=yes
11118 if test "$GXX" = yes; then
11119 case $host_os in aix4.[012]|aix4.[012].*)
11120 # We only want to do this on AIX 4.2 and lower, the check
11121 # below for broken collect2 doesn't work under 4.3+
11122 collect2name=`${CC} -print-prog-name=collect2`
11123 if test -f "$collect2name" && \
11124 strings "$collect2name" | grep resolve_lib_name >/dev/null
11126 # We have reworked collect2
11127 hardcode_direct_CXX=yes
11129 # We have old collect2
11130 hardcode_direct_CXX=unsupported
11131 # It fails to find uninstalled libraries when the uninstalled
11132 # path is not listed in the libpath. Setting hardcode_minus_L
11133 # to unsupported forces relinking
11134 hardcode_minus_L_CXX=yes
11135 hardcode_libdir_flag_spec_CXX='-L$libdir'
11136 hardcode_libdir_separator_CXX=
11140 shared_flag='-shared'
11141 if test "$aix_use_runtimelinking" = yes; then
11142 shared_flag="$shared_flag "'${wl}-G'
11146 if test "$host_cpu" = ia64; then
11147 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11148 # chokes on -Wl,-G. The following line is correct:
11151 if test "$aix_use_runtimelinking" = yes; then
11152 shared_flag='${wl}-G'
11154 shared_flag='${wl}-bM:SRE'
11159 # It seems that -bexpall does not export symbols beginning with
11160 # underscore (_), so it is better to generate a list of symbols to export.
11161 always_export_symbols_CXX=yes
11162 if test "$aix_use_runtimelinking" = yes; then
11163 # Warning - without using the other runtime loading flags (-brtl),
11164 # -berok will link without error, but may produce a broken library.
11165 allow_undefined_flag_CXX='-berok'
11166 # Determine the default libpath from the value encoded in an empty executable.
11167 cat >conftest.$ac_ext <<_ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h. */
11182 rm -f conftest.$ac_objext conftest$ac_exeext
11183 if { (ac_try="$ac_link"
11184 case "(($ac_try" in
11185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11186 *) ac_try_echo=$ac_try;;
11188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11189 (eval "$ac_link") 2>conftest.er1
11191 grep -v '^ *+' conftest.er1 >conftest.err
11193 cat conftest.err >&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } && {
11196 test -z "$ac_cxx_werror_flag" ||
11197 test ! -s conftest.err
11198 } && test -s conftest$ac_exeext &&
11199 $as_test_x conftest$ac_exeext; then
11201 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11203 # Check for a 64-bit object if we didn't find anything.
11204 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11207 echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11214 conftest$ac_exeext conftest.$ac_ext
11215 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11217 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11219 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11221 if test "$host_cpu" = ia64; then
11222 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11223 allow_undefined_flag_CXX="-z nodefs"
11224 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"
11226 # Determine the default libpath from the value encoded in an empty executable.
11227 cat >conftest.$ac_ext <<_ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h. */
11242 rm -f conftest.$ac_objext conftest$ac_exeext
11243 if { (ac_try="$ac_link"
11244 case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_link") 2>conftest.er1
11251 grep -v '^ *+' conftest.er1 >conftest.err
11253 cat conftest.err >&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } && {
11256 test -z "$ac_cxx_werror_flag" ||
11257 test ! -s conftest.err
11258 } && test -s conftest$ac_exeext &&
11259 $as_test_x conftest$ac_exeext; then
11261 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11263 # Check for a 64-bit object if we didn't find anything.
11264 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11267 echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11274 conftest$ac_exeext conftest.$ac_ext
11275 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11277 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11278 # Warning - without using the other run time loading flags,
11279 # -berok will link without error, but may produce a broken library.
11280 no_undefined_flag_CXX=' ${wl}-bernotok'
11281 allow_undefined_flag_CXX=' ${wl}-berok'
11282 # Exported symbols can be pulled into shared objects from archives
11283 whole_archive_flag_spec_CXX='$convenience'
11284 archive_cmds_need_lc_CXX=yes
11285 # This is similar to how AIX traditionally builds its shared libraries.
11286 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'
11292 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11293 allow_undefined_flag_CXX=unsupported
11294 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11295 # support --undefined. This deserves some investigation. FIXME
11296 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11303 case $cc_basename in
11305 # FIXME: insert proper C++ library support
11311 cygwin* | mingw* | pw32*)
11312 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11313 # as there is no search path for DLLs.
11314 hardcode_libdir_flag_spec_CXX='-L$libdir'
11315 allow_undefined_flag_CXX=unsupported
11316 always_export_symbols_CXX=no
11317 enable_shared_with_static_runtimes_CXX=yes
11319 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11320 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'
11321 # If the export-symbols file already is a .def file (1st line
11322 # is EXPORTS), use it as is; otherwise, prepend...
11323 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11324 cp $export_symbols $output_objdir/$soname.def;
11326 echo EXPORTS > $output_objdir/$soname.def;
11327 cat $export_symbols >> $output_objdir/$soname.def;
11329 $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'
11334 darwin* | rhapsody*)
11336 rhapsody* | darwin1.[012])
11337 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11340 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11341 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11343 case ${MACOSX_DEPLOYMENT_TARGET} in
11345 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11348 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11354 archive_cmds_need_lc_CXX=no
11355 hardcode_direct_CXX=no
11356 hardcode_automatic_CXX=yes
11357 hardcode_shlibpath_var_CXX=unsupported
11358 whole_archive_flag_spec_CXX=''
11359 link_all_deplibs_CXX=yes
11361 if test "$GXX" = yes ; then
11362 lt_int_apple_cc_single_mod=no
11363 output_verbose_link_cmd='echo'
11364 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11365 lt_int_apple_cc_single_mod=yes
11367 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11368 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11370 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'
11372 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11373 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11374 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11375 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11377 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11379 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11381 case $cc_basename in
11383 output_verbose_link_cmd='echo'
11384 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11385 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11386 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11387 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11388 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11398 case $cc_basename in
11400 # FIXME: insert proper C++ library support
11404 # Green Hills C++ Compiler
11405 # FIXME: insert proper C++ library support
11409 # FIXME: insert proper C++ library support
11415 # C++ shared libraries reported to be fairly broken before switch to ELF
11419 archive_cmds_need_lc_CXX=no
11421 freebsd* | kfreebsd*-gnu | dragonfly*)
11422 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11429 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11430 hardcode_libdir_separator_CXX=:
11431 export_dynamic_flag_spec_CXX='${wl}-E'
11432 hardcode_direct_CXX=yes
11433 hardcode_minus_L_CXX=yes # Not in the search PATH,
11434 # but as the default
11435 # location of the library.
11437 case $cc_basename in
11439 # FIXME: insert proper C++ library support
11443 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'
11444 # Commands to make compiler produce verbose output that lists
11445 # what "hidden" libraries, object files and flags are used when
11446 # linking a shared library.
11448 # There doesn't appear to be a way to prevent this compiler from
11449 # explicitly linking system object files so we need to strip them
11450 # from the output so that they don't get included in the library
11452 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 $list'
11455 if test "$GXX" = yes; then
11456 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'
11458 # FIXME: insert proper C++ library support
11465 if test $with_gnu_ld = no; then
11466 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11467 hardcode_libdir_separator_CXX=:
11471 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11474 export_dynamic_flag_spec_CXX='${wl}-E'
11480 hardcode_direct_CXX=no
11481 hardcode_shlibpath_var_CXX=no
11484 hardcode_direct_CXX=yes
11485 hardcode_minus_L_CXX=yes # Not in the search PATH,
11486 # but as the default
11487 # location of the library.
11491 case $cc_basename in
11493 # FIXME: insert proper C++ library support
11499 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11502 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11505 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11508 # Commands to make compiler produce verbose output that lists
11509 # what "hidden" libraries, object files and flags are used when
11510 # linking a shared library.
11512 # There doesn't appear to be a way to prevent this compiler from
11513 # explicitly linking system object files so we need to strip them
11514 # from the output so that they don't get included in the library
11516 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 $list'
11519 if test "$GXX" = yes; then
11520 if test $with_gnu_ld = no; then
11523 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11526 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11529 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'
11534 # FIXME: insert proper C++ library support
11541 hardcode_direct_CXX=no
11542 hardcode_shlibpath_var_CXX=no
11543 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11544 export_dynamic_flag_spec_CXX='${wl}-E'
11545 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11546 # Instead, shared libraries are loaded at an image base (0x10000000 by
11547 # default) and relocated if they conflict, which is a slow very memory
11548 # consuming and fragmenting process. To avoid this, we pick a random,
11549 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11550 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11551 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'
11552 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'
11555 case $cc_basename in
11558 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11560 # Archives containing C++ object files must be created using
11561 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11562 # necessary to make sure instantiated templates are included
11564 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11567 if test "$GXX" = yes; then
11568 if test "$with_gnu_ld" = no; then
11569 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11571 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11574 link_all_deplibs_CXX=yes
11577 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11578 hardcode_libdir_separator_CXX=:
11581 case $cc_basename in
11583 # Kuck and Associates, Inc. (KAI) C++ Compiler
11585 # KCC will only create a shared library if the output file
11586 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11587 # to its proper name (with version) after linking.
11588 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'
11589 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'
11590 # Commands to make compiler produce verbose output that lists
11591 # what "hidden" libraries, object files and flags are used when
11592 # linking a shared library.
11594 # There doesn't appear to be a way to prevent this compiler from
11595 # explicitly linking system object files so we need to strip them
11596 # from the output so that they don't get included in the library
11598 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 $list'
11600 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11601 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11603 # Archives containing C++ object files must be created using
11604 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11605 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11610 # version 8.0 and above of icpc choke on multiply defined symbols
11611 # if we add $predep_objects and $postdep_objects, however 7.1 and
11612 # earlier do not add the objects themselves.
11613 case `$CC -V 2>&1` in
11615 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11616 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'
11618 *) # Version 8.0 or newer
11621 ia64*) tmp_idyn=' -i_dynamic';;
11623 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11624 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'
11627 archive_cmds_need_lc_CXX=no
11628 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11629 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11630 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11633 # Portland Group C++ compiler
11634 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11635 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'
11637 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11638 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11639 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'
11643 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11644 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'
11646 runpath_var=LD_RUN_PATH
11647 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11648 hardcode_libdir_separator_CXX=:
11650 # Commands to make compiler produce verbose output that lists
11651 # what "hidden" libraries, object files and flags are used when
11652 # linking a shared library.
11654 # There doesn't appear to be a way to prevent this compiler from
11655 # explicitly linking system object files so we need to strip them
11656 # from the output so that they don't get included in the library
11658 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "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 $list'
11663 # FIXME: insert proper C++ library support
11667 # FIXME: insert proper C++ library support
11671 case $cc_basename in
11673 # FIXME: insert proper C++ library support
11677 # FIXME: insert proper C++ library support
11683 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11684 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11686 hardcode_libdir_flag_spec_CXX='-R$libdir'
11687 hardcode_direct_CXX=yes
11688 hardcode_shlibpath_var_CXX=no
11690 # Workaround some broken pre-1.5 toolchains
11691 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11694 # C++ shared libraries are fairly broken
11698 hardcode_direct_CXX=yes
11699 hardcode_shlibpath_var_CXX=no
11700 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11701 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11702 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11703 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11704 export_dynamic_flag_spec_CXX='${wl}-E'
11705 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11707 output_verbose_link_cmd='echo'
11710 case $cc_basename in
11712 # Kuck and Associates, Inc. (KAI) C++ Compiler
11714 # KCC will only create a shared library if the output file
11715 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11716 # to its proper name (with version) after linking.
11717 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'
11719 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11720 hardcode_libdir_separator_CXX=:
11722 # Archives containing C++ object files must be created using
11723 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11724 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11728 # Rational C++ 2.4.1
11729 # FIXME: insert proper C++ library support
11733 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11734 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11736 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11737 hardcode_libdir_separator_CXX=:
11739 # Commands to make compiler produce verbose output that lists
11740 # what "hidden" libraries, object files and flags are used when
11741 # linking a shared library.
11743 # There doesn't appear to be a way to prevent this compiler from
11744 # explicitly linking system object files so we need to strip them
11745 # from the output so that they don't get included in the library
11747 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
11750 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11751 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11752 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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11754 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11755 hardcode_libdir_separator_CXX=:
11757 # Commands to make compiler produce verbose output that lists
11758 # what "hidden" libraries, object files and flags are used when
11759 # linking a shared library.
11760 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11763 # FIXME: insert proper C++ library support
11770 case $cc_basename in
11772 # Kuck and Associates, Inc. (KAI) C++ Compiler
11774 # KCC will only create a shared library if the output file
11775 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11776 # to its proper name (with version) after linking.
11777 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'
11779 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11780 hardcode_libdir_separator_CXX=:
11782 # Archives containing C++ object files must be created using
11783 # the KAI C++ compiler.
11784 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11787 # Rational C++ 2.4.1
11788 # FIXME: insert proper C++ library support
11792 allow_undefined_flag_CXX=' -expect_unresolved \*'
11793 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11794 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11795 echo "-hidden">> $lib.exp~
11796 $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 -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11799 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11800 hardcode_libdir_separator_CXX=:
11802 # Commands to make compiler produce verbose output that lists
11803 # what "hidden" libraries, object files and flags are used when
11804 # linking a shared library.
11806 # There doesn't appear to be a way to prevent this compiler from
11807 # explicitly linking system object files so we need to strip them
11808 # from the output so that they don't get included in the library
11810 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
11813 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11814 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11815 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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11817 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11818 hardcode_libdir_separator_CXX=:
11820 # Commands to make compiler produce verbose output that lists
11821 # what "hidden" libraries, object files and flags are used when
11822 # linking a shared library.
11823 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11826 # FIXME: insert proper C++ library support
11833 # FIXME: insert proper C++ library support
11837 case $cc_basename in
11840 # FIXME: insert proper C++ library support
11845 # FIXME: insert proper C++ library support
11849 # FIXME: insert proper C++ library support
11855 case $cc_basename in
11857 # Sun C++ 4.2, 5.x and Centerline C++
11858 archive_cmds_need_lc_CXX=yes
11859 no_undefined_flag_CXX=' -zdefs'
11860 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11861 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11862 $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'
11864 hardcode_libdir_flag_spec_CXX='-R$libdir'
11865 hardcode_shlibpath_var_CXX=no
11867 solaris2.[0-5] | solaris2.[0-5].*) ;;
11869 # The C++ compiler is used as linker so we must use $wl
11870 # flag to pass the commands to the underlying system
11871 # linker. We must also pass each convience library through
11872 # to the system linker between allextract/defaultextract.
11873 # The C++ compiler will combine linker options so we
11874 # cannot just pass the convience library names through
11876 # Supported since Solaris 2.6 (maybe 2.5.1?)
11877 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11880 link_all_deplibs_CXX=yes
11882 output_verbose_link_cmd='echo'
11884 # Archives containing C++ object files must be created using
11885 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11886 # necessary to make sure instantiated templates are included
11888 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11891 # Green Hills C++ Compiler
11892 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11894 # The C++ compiler must be used to create the archive.
11895 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11898 # GNU C++ compiler with Solaris linker
11899 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11900 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11901 if $CC --version | grep -v '^2\.7' > /dev/null; then
11902 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11903 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11904 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11906 # Commands to make compiler produce verbose output that lists
11907 # what "hidden" libraries, object files and flags are used when
11908 # linking a shared library.
11909 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11911 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11913 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11914 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11915 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11917 # Commands to make compiler produce verbose output that lists
11918 # what "hidden" libraries, object files and flags are used when
11919 # linking a shared library.
11920 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11923 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11928 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11929 no_undefined_flag_CXX='${wl}-z,text'
11930 archive_cmds_need_lc_CXX=no
11931 hardcode_shlibpath_var_CXX=no
11932 runpath_var='LD_RUN_PATH'
11934 case $cc_basename in
11936 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11937 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11940 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11941 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11945 sysv5* | sco3.2v5* | sco5v6*)
11946 # Note: We can NOT use -z defs as we might desire, because we do not
11947 # link with -lc, and that would cause any symbols used from libc to
11948 # always be unresolved, which means just about no library would
11949 # ever link correctly. If we're not using GNU ld we use -z text
11950 # though, which does catch some bad symbols but isn't as heavy-handed
11952 # For security reasons, it is highly recommended that you always
11953 # use absolute paths for naming shared libraries, and exclude the
11954 # DT_RUNPATH tag from executables and libraries. But doing so
11955 # requires that you compile everything twice, which is a pain.
11956 # So that behaviour is only enabled if SCOABSPATH is set to a
11957 # non-empty value in the environment. Most likely only useful for
11958 # creating official distributions of packages.
11959 # This is a hack until libtool officially supports absolute path
11960 # names for shared libraries.
11961 no_undefined_flag_CXX='${wl}-z,text'
11962 allow_undefined_flag_CXX='${wl}-z,nodefs'
11963 archive_cmds_need_lc_CXX=no
11964 hardcode_shlibpath_var_CXX=no
11965 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11966 hardcode_libdir_separator_CXX=':'
11967 link_all_deplibs_CXX=yes
11968 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11969 runpath_var='LD_RUN_PATH'
11971 case $cc_basename in
11973 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11974 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11977 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11978 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11983 case $cc_basename in
11985 # NonStop-UX NCC 3.20
11986 # FIXME: insert proper C++ library support
11990 # FIXME: insert proper C++ library support
11996 # FIXME: insert proper C++ library support
12000 # FIXME: insert proper C++ library support
12004 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12005 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12006 test "$ld_shlibs_CXX" = no && can_build_shared=no
12012 ## There is no encapsulation within the following macros, do not change
12013 ## the running order or otherwise move them around unless you know exactly
12014 ## what you are doing...
12016 cat > conftest.$ac_ext <<EOF
12020 Foo (void) { a = 0; }
12026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12027 (eval $ac_compile) 2>&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; then
12031 # Parse the compiler output and extract the necessary
12032 # objects, libraries and library flags.
12034 # Sentinel used to keep track of whether or not we are before
12035 # the conftest object file.
12036 pre_test_object_deps_done=no
12038 # The `*' in the case matches for architectures that use `case' in
12039 # $output_verbose_cmd can trigger glob expansion during the loop
12040 # eval without this substitution.
12041 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12043 for p in `eval $output_verbose_link_cmd`; do
12047 # Some compilers place space between "-{L,R}" and the path.
12048 # Remove the space.
12049 if test $p = "-L" \
12050 || test $p = "-R"; then
12057 if test "$pre_test_object_deps_done" = no; then
12060 # Internal compiler library paths should come after those
12061 # provided the user. The postdeps already come after the
12062 # user supplied libs so there is no need to process them.
12063 if test -z "$compiler_lib_search_path_CXX"; then
12064 compiler_lib_search_path_CXX="${prev}${p}"
12066 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12069 # The "-l" case would never come before the object being
12070 # linked, so don't bother handling this case.
12073 if test -z "$postdeps_CXX"; then
12074 postdeps_CXX="${prev}${p}"
12076 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12082 # This assumes that the test object file only shows up
12083 # once in the compiler output.
12084 if test "$p" = "conftest.$objext"; then
12085 pre_test_object_deps_done=yes
12089 if test "$pre_test_object_deps_done" = no; then
12090 if test -z "$predep_objects_CXX"; then
12091 predep_objects_CXX="$p"
12093 predep_objects_CXX="$predep_objects_CXX $p"
12096 if test -z "$postdep_objects_CXX"; then
12097 postdep_objects_CXX="$p"
12099 postdep_objects_CXX="$postdep_objects_CXX $p"
12104 *) ;; # Ignore the rest.
12112 echo "libtool.m4: error: problem compiling CXX test program"
12115 $rm -f confest.$objext
12117 # PORTME: override above test on systems where it is broken
12120 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12121 # hack all around it, let's just trust "g++" to DTRT.
12122 predep_objects_CXX=
12123 postdep_objects_CXX=
12128 case $cc_basename in
12130 # Adding this requires a known-good setup of shared libraries for
12131 # Sun compiler versions before 5.6, else PIC objects from an old
12132 # archive will be linked into the output, leading to subtle bugs.
12133 postdeps_CXX='-lCstd -lCrun'
12140 case " $postdeps_CXX " in
12141 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12144 lt_prog_compiler_wl_CXX=
12145 lt_prog_compiler_pic_CXX=
12146 lt_prog_compiler_static_CXX=
12148 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12149 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12151 # C++ specific cases for pic, static, wl, etc.
12152 if test "$GXX" = yes; then
12153 lt_prog_compiler_wl_CXX='-Wl,'
12154 lt_prog_compiler_static_CXX='-static'
12158 # All AIX code is PIC.
12159 if test "$host_cpu" = ia64; then
12160 # AIX 5 now supports IA64 processor
12161 lt_prog_compiler_static_CXX='-Bstatic'
12165 # FIXME: we need at least 68020 code to build shared libraries, but
12166 # adding the `-m68020' flag to GCC prevents building anything better,
12168 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12170 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12171 # PIC is the default for these OSes.
12173 mingw* | os2* | pw32*)
12174 # This hack is so that the source file can tell whether it is being
12175 # built for inclusion in a dll (and should export symbols for example).
12176 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12178 darwin* | rhapsody*)
12179 # PIC is the default on this platform
12180 # Common symbols not allowed in MH_DYLIB files
12181 lt_prog_compiler_pic_CXX='-fno-common'
12184 # DJGPP does not support shared libraries at all
12185 lt_prog_compiler_pic_CXX=
12188 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12189 # Instead, we relocate shared libraries at runtime.
12192 if test -d /usr/nec; then
12193 lt_prog_compiler_pic_CXX=-Kconform_pic
12197 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12198 # not for PA HP-UX.
12203 lt_prog_compiler_pic_CXX='-fPIC'
12208 lt_prog_compiler_pic_CXX='-fPIC'
12214 # All AIX code is PIC.
12215 if test "$host_cpu" = ia64; then
12216 # AIX 5 now supports IA64 processor
12217 lt_prog_compiler_static_CXX='-Bstatic'
12219 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12223 case $cc_basename in
12225 # Green Hills C++ Compiler
12226 # _LT_AC_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"
12231 # PIC is the default on this platform
12232 # Common symbols not allowed in MH_DYLIB files
12233 case $cc_basename in
12235 lt_prog_compiler_pic_CXX='-qnocommon'
12236 lt_prog_compiler_wl_CXX='-Wl,'
12241 case $cc_basename in
12243 lt_prog_compiler_pic_CXX='-KPIC'
12246 # Green Hills C++ Compiler
12247 lt_prog_compiler_pic_CXX='-pic'
12253 freebsd* | kfreebsd*-gnu | dragonfly*)
12254 # FreeBSD uses GNU C++
12256 hpux9* | hpux10* | hpux11*)
12257 case $cc_basename in
12259 lt_prog_compiler_wl_CXX='-Wl,'
12260 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12261 if test "$host_cpu" != ia64; then
12262 lt_prog_compiler_pic_CXX='+Z'
12266 lt_prog_compiler_wl_CXX='-Wl,'
12267 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12273 lt_prog_compiler_pic_CXX='+Z'
12282 # This is c89, which is MS Visual C++ (no shared libs)
12283 # Anyone wants to do a port?
12285 irix5* | irix6* | nonstopux*)
12286 case $cc_basename in
12288 lt_prog_compiler_wl_CXX='-Wl,'
12289 lt_prog_compiler_static_CXX='-non_shared'
12290 # CC pic flag -KPIC is the default.
12297 case $cc_basename in
12300 lt_prog_compiler_wl_CXX='--backend -Wl,'
12301 lt_prog_compiler_pic_CXX='-fPIC'
12305 lt_prog_compiler_wl_CXX='-Wl,'
12306 lt_prog_compiler_pic_CXX='-KPIC'
12307 lt_prog_compiler_static_CXX='-static'
12310 # Portland Group C++ compiler.
12311 lt_prog_compiler_wl_CXX='-Wl,'
12312 lt_prog_compiler_pic_CXX='-fpic'
12313 lt_prog_compiler_static_CXX='-Bstatic'
12317 # Make sure the PIC flag is empty. It appears that all Alpha
12318 # Linux and Compaq Tru64 Unix objects are PIC.
12319 lt_prog_compiler_pic_CXX=
12320 lt_prog_compiler_static_CXX='-non_shared'
12331 case $cc_basename in
12333 lt_prog_compiler_pic_CXX='-W c,exportall'
12341 osf3* | osf4* | osf5*)
12342 case $cc_basename in
12344 lt_prog_compiler_wl_CXX='--backend -Wl,'
12347 # Rational C++ 2.4.1
12348 lt_prog_compiler_pic_CXX='-pic'
12351 # Digital/Compaq C++
12352 lt_prog_compiler_wl_CXX='-Wl,'
12353 # Make sure the PIC flag is empty. It appears that all Alpha
12354 # Linux and Compaq Tru64 Unix objects are PIC.
12355 lt_prog_compiler_pic_CXX=
12356 lt_prog_compiler_static_CXX='-non_shared'
12365 case $cc_basename in
12367 # Sun C++ 4.2, 5.x and Centerline C++
12368 lt_prog_compiler_pic_CXX='-KPIC'
12369 lt_prog_compiler_static_CXX='-Bstatic'
12370 lt_prog_compiler_wl_CXX='-Qoption ld '
12373 # Green Hills C++ Compiler
12374 lt_prog_compiler_pic_CXX='-PIC'
12381 case $cc_basename in
12384 lt_prog_compiler_pic_CXX='-pic'
12385 lt_prog_compiler_static_CXX='-Bstatic'
12389 lt_prog_compiler_pic_CXX='-pic'
12396 case $cc_basename in
12398 # NonStop-UX NCC 3.20
12399 lt_prog_compiler_pic_CXX='-KPIC'
12405 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12406 case $cc_basename in
12408 lt_prog_compiler_wl_CXX='-Wl,'
12409 lt_prog_compiler_pic_CXX='-KPIC'
12410 lt_prog_compiler_static_CXX='-Bstatic'
12417 lt_prog_compiler_can_build_shared_CXX=no
12422 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12423 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12426 # Check to make sure the PIC flag actually works.
12428 if test -n "$lt_prog_compiler_pic_CXX"; then
12430 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12431 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12432 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12433 echo $ECHO_N "(cached) $ECHO_C" >&6
12435 lt_prog_compiler_pic_works_CXX=no
12436 ac_outfile=conftest.$ac_objext
12437 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12438 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12439 # Insert the option either (1) after the last *FLAGS variable, or
12440 # (2) before a word containing "conftest.", or (3) at the end.
12441 # Note that $ac_compile itself does not contain backslashes and begins
12442 # with a dollar sign (not a hyphen), so the echo should work correctly.
12443 # The option is referenced via a variable to avoid confusing sed.
12444 lt_compile=`echo "$ac_compile" | $SED \
12445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12447 -e 's:$: $lt_compiler_flag:'`
12448 (eval echo "\"\$as_me:12448: $lt_compile\"" >&5)
12449 (eval "$lt_compile" 2>conftest.err)
12451 cat conftest.err >&5
12452 echo "$as_me:12452: \$? = $ac_status" >&5
12453 if (exit $ac_status) && test -s "$ac_outfile"; then
12454 # The compiler can only warn and ignore the option if not recognized
12455 # So say no if there are warnings other than the usual output.
12456 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12458 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12459 lt_prog_compiler_pic_works_CXX=yes
12465 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12466 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12468 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12469 case $lt_prog_compiler_pic_CXX in
12471 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12474 lt_prog_compiler_pic_CXX=
12475 lt_prog_compiler_can_build_shared_CXX=no
12480 # For platforms which do not support PIC, -DPIC is meaningless:
12482 lt_prog_compiler_pic_CXX=
12485 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12490 # Check to make sure the static flag actually works.
12492 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12493 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12494 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12495 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 lt_prog_compiler_static_works_CXX=no
12499 save_LDFLAGS="$LDFLAGS"
12500 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12501 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12502 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12503 # The linker can only warn and ignore the option if not recognized
12504 # So say no if there are warnings
12505 if test -s conftest.err; then
12506 # Append any errors to the config.log.
12507 cat conftest.err 1>&5
12508 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12510 if diff conftest.exp conftest.er2 >/dev/null; then
12511 lt_prog_compiler_static_works_CXX=yes
12514 lt_prog_compiler_static_works_CXX=yes
12518 LDFLAGS="$save_LDFLAGS"
12521 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12522 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12524 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12527 lt_prog_compiler_static_CXX=
12531 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12532 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12533 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12536 lt_cv_prog_compiler_c_o_CXX=no
12537 $rm -r conftest 2>/dev/null
12541 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12543 lt_compiler_flag="-o out/conftest2.$ac_objext"
12544 # Insert the option either (1) after the last *FLAGS variable, or
12545 # (2) before a word containing "conftest.", or (3) at the end.
12546 # Note that $ac_compile itself does not contain backslashes and begins
12547 # with a dollar sign (not a hyphen), so the echo should work correctly.
12548 lt_compile=`echo "$ac_compile" | $SED \
12549 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12551 -e 's:$: $lt_compiler_flag:'`
12552 (eval echo "\"\$as_me:12552: $lt_compile\"" >&5)
12553 (eval "$lt_compile" 2>out/conftest.err)
12555 cat out/conftest.err >&5
12556 echo "$as_me:12556: \$? = $ac_status" >&5
12557 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12559 # The compiler can only warn and ignore the option if not recognized
12560 # So say no if there are warnings
12561 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12562 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12563 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12564 lt_cv_prog_compiler_c_o_CXX=yes
12569 # SGI C++ compiler will create directory out/ii_files/ for
12570 # template instantiation
12571 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12572 $rm out/* && rmdir out
12578 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12579 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12582 hard_links="nottested"
12583 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12584 # do not overwrite the value of need_locks provided by the user
12585 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12586 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12589 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12591 ln conftest.a conftest.b 2>&5 || hard_links=no
12592 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12593 { echo "$as_me:$LINENO: result: $hard_links" >&5
12594 echo "${ECHO_T}$hard_links" >&6; }
12595 if test "$hard_links" = no; then
12596 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12597 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12604 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12605 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12607 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12610 # If we're using GNU nm, then we don't want the "-C" option.
12611 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12612 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12613 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'
12615 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'
12619 export_symbols_cmds_CXX="$ltdll_cmds"
12622 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'
12625 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12629 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12630 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12631 test "$ld_shlibs_CXX" = no && can_build_shared=no
12634 # Do we need to explicitly link libc?
12636 case "x$archive_cmds_need_lc_CXX" in
12638 # Assume -lc should be added
12639 archive_cmds_need_lc_CXX=yes
12641 if test "$enable_shared" = yes && test "$GCC" = yes; then
12642 case $archive_cmds_CXX in
12644 # FIXME: we may have to deal with multi-command sequences.
12647 # Test whether the compiler implicitly links with -lc since on some
12648 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12649 # to ld, don't add -lc before -lgcc.
12650 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12651 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12653 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12656 (eval $ac_compile) 2>&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } 2>conftest.err; then
12662 libobjs=conftest.$ac_objext
12664 wl=$lt_prog_compiler_wl_CXX
12665 pic_flag=$lt_prog_compiler_pic_CXX
12671 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12672 allow_undefined_flag_CXX=
12673 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12674 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }
12679 archive_cmds_need_lc_CXX=no
12681 archive_cmds_need_lc_CXX=yes
12683 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12685 cat conftest.err 1>&5
12688 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12689 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12696 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12697 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12698 library_names_spec=
12699 libname_spec='lib$name'
12703 postuninstall_cmds=
12707 shlibpath_overrides_runpath=unknown
12709 dynamic_linker="$host_os ld.so"
12710 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12711 if test "$GCC" = yes; then
12712 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12713 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12714 # if the path contains ";" then we assume it to be the separator
12715 # otherwise default to the standard path separator (i.e. ":") - it is
12716 # assumed that no part of a normal pathname contains ";" but that should
12717 # okay in the real world where ";" in dirpaths is itself problematic.
12718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12723 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12725 need_lib_prefix=unknown
12726 hardcode_into_libs=no
12728 # when you set need_version to no, make sure it does not cause -set_version
12729 # flags to be left without arguments
12730 need_version=unknown
12735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12736 shlibpath_var=LIBPATH
12738 # AIX 3 has no versioning support, so we append a major version to the name.
12739 soname_spec='${libname}${release}${shared_ext}$major'
12746 hardcode_into_libs=yes
12747 if test "$host_cpu" = ia64; then
12748 # AIX 5 supports IA64
12749 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12750 shlibpath_var=LD_LIBRARY_PATH
12752 # With GCC up to 2.95.x, collect2 would create an import file
12753 # for dependence libraries. The import file would start with
12754 # the line `#! .'. This would cause the generated library to
12755 # depend on `.', always an invalid library. This was fixed in
12756 # development snapshots of GCC prior to 3.0.
12758 aix4 | aix4.[01] | aix4.[01].*)
12759 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12761 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12764 can_build_shared=no
12768 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12769 # soname into executable. Probably we can add versioning support to
12770 # collect2, so additional links can be useful in future.
12771 if test "$aix_use_runtimelinking" = yes; then
12772 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12773 # instead of lib<name>.a to let people know that these are not
12774 # typical AIX shared libraries.
12775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12777 # We preserve .a as extension for shared libraries through AIX4.2
12778 # and later when we are not doing run time linking.
12779 library_names_spec='${libname}${release}.a $libname.a'
12780 soname_spec='${libname}${release}${shared_ext}$major'
12782 shlibpath_var=LIBPATH
12787 library_names_spec='$libname.ixlibrary $libname.a'
12788 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12789 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'
12793 library_names_spec='${libname}${shared_ext}'
12794 dynamic_linker="$host_os ld.so"
12795 shlibpath_var=LIBRARY_PATH
12801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12802 soname_spec='${libname}${release}${shared_ext}$major'
12803 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12804 shlibpath_var=LD_LIBRARY_PATH
12805 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12806 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12807 # the default ld.so.conf also contains /usr/contrib/lib and
12808 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12809 # libtool to hard-code these into programs
12812 cygwin* | mingw* | pw32*)
12813 version_type=windows
12818 case $GCC,$host_os in
12819 yes,cygwin* | yes,mingw* | yes,pw32*)
12820 library_names_spec='$libname.dll.a'
12821 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12822 postinstall_cmds='base_file=`basename \${file}`~
12823 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12824 dldir=$destdir/`dirname \$dlpath`~
12825 test -d \$dldir || mkdir -p \$dldir~
12826 $install_prog $dir/$dlname \$dldir/$dlname~
12827 chmod a+x \$dldir/$dlname'
12828 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12829 dlpath=$dir/\$dldll~
12831 shlibpath_overrides_runpath=yes
12835 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12836 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12837 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12840 # MinGW DLLs use traditional 'lib' prefix
12841 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12842 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12843 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12844 # It is most probably a Windows format PATH printed by
12845 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12846 # path with ; separators, and with drive letters. We can handle the
12847 # drive letters (cygwin fileutils understands them), so leave them,
12848 # especially as we might pass files found there to a mingw objdump,
12849 # which wouldn't understand a cygwinified path. Ahh.
12850 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12852 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12856 # pw32 DLLs use 'pw' prefix rather than 'lib'
12857 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12863 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12866 dynamic_linker='Win32 ld.exe'
12867 # FIXME: first we should search . and the directory the executable is in
12871 darwin* | rhapsody*)
12872 dynamic_linker="$host_os dyld"
12873 version_type=darwin
12876 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12877 soname_spec='${libname}${release}${major}$shared_ext'
12878 shlibpath_overrides_runpath=yes
12879 shlibpath_var=DYLD_LIBRARY_PATH
12880 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12881 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12882 if test "$GCC" = yes; then
12883 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12885 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12887 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12895 soname_spec='${libname}${release}${shared_ext}$major'
12896 shlibpath_var=LD_LIBRARY_PATH
12907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12908 soname_spec='${libname}${release}${shared_ext}$major'
12909 shlibpath_var=LD_LIBRARY_PATH
12910 shlibpath_overrides_runpath=no
12911 hardcode_into_libs=yes
12912 dynamic_linker='GNU ld.so'
12915 freebsd* | dragonfly*)
12916 # DragonFly does not have aout. When/if they implement a new
12917 # versioning mechanism, adjust this.
12918 if test -x /usr/bin/objformat; then
12919 objformat=`/usr/bin/objformat`
12922 freebsd[123]*) objformat=aout ;;
12923 *) objformat=elf ;;
12926 version_type=freebsd-$objformat
12927 case $version_type in
12929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12934 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12938 shlibpath_var=LD_LIBRARY_PATH
12941 shlibpath_overrides_runpath=yes
12943 freebsd3.[01]* | freebsdelf3.[01]*)
12944 shlibpath_overrides_runpath=yes
12945 hardcode_into_libs=yes
12947 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12948 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12949 shlibpath_overrides_runpath=no
12950 hardcode_into_libs=yes
12952 freebsd*) # from 4.6 on
12953 shlibpath_overrides_runpath=yes
12954 hardcode_into_libs=yes
12963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12964 soname_spec='${libname}${release}${shared_ext}$major'
12965 shlibpath_var=LD_LIBRARY_PATH
12966 hardcode_into_libs=yes
12969 hpux9* | hpux10* | hpux11*)
12970 # Give a soname corresponding to the major version so that dld.sl refuses to
12971 # link against other versions.
12978 hardcode_into_libs=yes
12979 dynamic_linker="$host_os dld.so"
12980 shlibpath_var=LD_LIBRARY_PATH
12981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12983 soname_spec='${libname}${release}${shared_ext}$major'
12984 if test "X$HPUX_IA64_MODE" = X32; then
12985 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12987 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12989 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12993 hardcode_into_libs=yes
12994 dynamic_linker="$host_os dld.sl"
12995 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12998 soname_spec='${libname}${release}${shared_ext}$major'
12999 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13000 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13004 dynamic_linker="$host_os dld.sl"
13005 shlibpath_var=SHLIB_PATH
13006 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13008 soname_spec='${libname}${release}${shared_ext}$major'
13011 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13012 postinstall_cmds='chmod 555 $lib'
13019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13020 soname_spec='${libname}${release}${shared_ext}$major'
13021 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13022 shlibpath_var=LD_LIBRARY_PATH
13023 shlibpath_overrides_runpath=no
13024 hardcode_into_libs=yes
13027 irix5* | irix6* | nonstopux*)
13029 nonstopux*) version_type=nonstopux ;;
13031 if test "$lt_cv_prog_gnu_ld" = yes; then
13039 soname_spec='${libname}${release}${shared_ext}$major'
13040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13042 irix5* | nonstopux*)
13043 libsuff= shlibsuff=
13046 case $LD in # libtool.m4 will add one of these switches to LD
13047 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13048 libsuff= shlibsuff= libmagic=32-bit;;
13049 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13050 libsuff=32 shlibsuff=N32 libmagic=N32;;
13051 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13052 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13053 *) libsuff= shlibsuff= libmagic=never-match;;
13057 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13058 shlibpath_overrides_runpath=no
13059 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13060 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13061 hardcode_into_libs=yes
13064 # No shared lib support for Linux oldld, aout, or coff.
13065 linux*oldld* | linux*aout* | linux*coff*)
13069 # This must be Linux ELF.
13074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13075 soname_spec='${libname}${release}${shared_ext}$major'
13076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13077 shlibpath_var=LD_LIBRARY_PATH
13078 shlibpath_overrides_runpath=no
13079 # This implies no fast_install, which is unacceptable.
13080 # Some rework will be needed to allow for fast_install
13081 # before this can be enabled.
13082 hardcode_into_libs=yes
13084 # Append ld.so.conf contents to the search path
13085 if test -f /etc/ld.so.conf; then
13086 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13087 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13090 # We used to test for /lib/ld.so.1 and disable shared libraries on
13091 # powerpc, because MkLinux only supported shared libraries with the
13092 # GNU dynamic linker. Since this was broken with cross compilers,
13093 # most powerpc-linux boxes support dynamic linking these days and
13094 # people can always --disable-shared, the test was removed, and we
13095 # assume the GNU/Linux dynamic linker is in use.
13096 dynamic_linker='GNU/Linux ld.so'
13103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13104 soname_spec='${libname}${release}${shared_ext}$major'
13105 shlibpath_var=LD_LIBRARY_PATH
13106 shlibpath_overrides_runpath=no
13107 hardcode_into_libs=yes
13108 dynamic_linker='GNU ld.so'
13115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13118 dynamic_linker='NetBSD (a.out) ld.so'
13120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13121 soname_spec='${libname}${release}${shared_ext}$major'
13122 dynamic_linker='NetBSD ld.elf_so'
13124 shlibpath_var=LD_LIBRARY_PATH
13125 shlibpath_overrides_runpath=yes
13126 hardcode_into_libs=yes
13131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13132 shlibpath_var=LD_LIBRARY_PATH
13133 shlibpath_overrides_runpath=yes
13140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13141 soname_spec='${libname}${release}${shared_ext}$major'
13142 shlibpath_var=LD_LIBRARY_PATH
13143 shlibpath_overrides_runpath=yes
13148 sys_lib_dlsearch_path_spec="/usr/lib"
13150 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13152 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13153 *) need_version=no ;;
13155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13157 shlibpath_var=LD_LIBRARY_PATH
13158 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13160 openbsd2.[89] | openbsd2.[89].*)
13161 shlibpath_overrides_runpath=no
13164 shlibpath_overrides_runpath=yes
13168 shlibpath_overrides_runpath=yes
13173 libname_spec='$name'
13176 library_names_spec='$libname${shared_ext} $libname.a'
13177 dynamic_linker='OS/2 ld.exe'
13178 shlibpath_var=LIBPATH
13181 osf3* | osf4* | osf5*)
13185 soname_spec='${libname}${release}${shared_ext}$major'
13186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13187 shlibpath_var=LD_LIBRARY_PATH
13188 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13189 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13197 soname_spec='${libname}${release}${shared_ext}$major'
13198 shlibpath_var=LD_LIBRARY_PATH
13199 shlibpath_overrides_runpath=yes
13200 hardcode_into_libs=yes
13201 # ldd complains unless libraries are executable
13202 postinstall_cmds='chmod +x $lib'
13207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13208 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13209 shlibpath_var=LD_LIBRARY_PATH
13210 shlibpath_overrides_runpath=yes
13211 if test "$with_gnu_ld" = yes; then
13219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13220 soname_spec='${libname}${release}${shared_ext}$major'
13221 shlibpath_var=LD_LIBRARY_PATH
13222 case $host_vendor in
13224 shlibpath_overrides_runpath=no
13226 export_dynamic_flag_spec='${wl}-Blargedynsym'
13227 runpath_var=LD_RUN_PATH
13235 shlibpath_overrides_runpath=no
13236 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13242 if test -d /usr/nec ;then
13244 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13245 soname_spec='$libname${shared_ext}.$major'
13246 shlibpath_var=LD_LIBRARY_PATH
13250 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13251 version_type=freebsd-elf
13254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13255 soname_spec='${libname}${release}${shared_ext}$major'
13256 shlibpath_var=LD_LIBRARY_PATH
13257 hardcode_into_libs=yes
13258 if test "$with_gnu_ld" = yes; then
13259 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13260 shlibpath_overrides_runpath=no
13262 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13263 shlibpath_overrides_runpath=yes
13266 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13270 sys_lib_dlsearch_path_spec='/usr/lib'
13275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13276 soname_spec='${libname}${release}${shared_ext}$major'
13277 shlibpath_var=LD_LIBRARY_PATH
13284 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13285 echo "${ECHO_T}$dynamic_linker" >&6; }
13286 test "$dynamic_linker" = no && can_build_shared=no
13288 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13289 if test "$GCC" = yes; then
13290 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13293 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13294 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13295 hardcode_action_CXX=
13296 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13297 test -n "$runpath_var_CXX" || \
13298 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13300 # We can hardcode non-existant directories.
13301 if test "$hardcode_direct_CXX" != no &&
13302 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13303 # have to relink, otherwise we might link with an installed library
13304 # when we should be linking with a yet-to-be-installed one
13305 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13306 test "$hardcode_minus_L_CXX" != no; then
13307 # Linking always hardcodes the temporary library directory.
13308 hardcode_action_CXX=relink
13310 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13311 hardcode_action_CXX=immediate
13314 # We cannot hardcode anything, or else we can only hardcode existing
13316 hardcode_action_CXX=unsupported
13318 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13319 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13321 if test "$hardcode_action_CXX" = relink; then
13322 # Fast installation is not supported
13323 enable_fast_install=no
13324 elif test "$shlibpath_overrides_runpath" = yes ||
13325 test "$enable_shared" = no; then
13326 # Fast installation is not necessary
13327 enable_fast_install=needless
13331 # The else clause should only fire when bootstrapping the
13332 # libtool distribution, otherwise you forgot to ship ltmain.sh
13333 # with your package, and you will get complaints that there are
13334 # no rules to generate ltmain.sh.
13335 if test -f "$ltmain"; then
13336 # See if we are running on zsh, and set the options which allow our commands through
13337 # without removal of \ escapes.
13338 if test -n "${ZSH_VERSION+set}" ; then
13339 setopt NO_GLOB_SUBST
13341 # Now quote all the things that may contain metacharacters while being
13342 # careful not to overquote the AC_SUBSTed values. We take copies of the
13343 # variables and quote the copies for generation of the libtool script.
13344 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13346 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13347 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13348 deplibs_check_method reload_flag reload_cmds need_locks \
13349 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13350 lt_cv_sys_global_symbol_to_c_name_address \
13351 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13352 old_postinstall_cmds old_postuninstall_cmds \
13356 lt_prog_compiler_wl_CXX \
13357 lt_prog_compiler_pic_CXX \
13358 lt_prog_compiler_static_CXX \
13359 lt_prog_compiler_no_builtin_flag_CXX \
13360 export_dynamic_flag_spec_CXX \
13361 thread_safe_flag_spec_CXX \
13362 whole_archive_flag_spec_CXX \
13363 enable_shared_with_static_runtimes_CXX \
13364 old_archive_cmds_CXX \
13365 old_archive_from_new_cmds_CXX \
13366 predep_objects_CXX \
13367 postdep_objects_CXX \
13370 compiler_lib_search_path_CXX \
13372 archive_expsym_cmds_CXX \
13373 postinstall_cmds_CXX \
13374 postuninstall_cmds_CXX \
13375 old_archive_from_expsyms_cmds_CXX \
13376 allow_undefined_flag_CXX \
13377 no_undefined_flag_CXX \
13378 export_symbols_cmds_CXX \
13379 hardcode_libdir_flag_spec_CXX \
13380 hardcode_libdir_flag_spec_ld_CXX \
13381 hardcode_libdir_separator_CXX \
13382 hardcode_automatic_CXX \
13384 module_expsym_cmds_CXX \
13385 lt_cv_prog_compiler_c_o_CXX \
13386 exclude_expsyms_CXX \
13387 include_expsyms_CXX; do
13390 old_archive_cmds_CXX | \
13391 old_archive_from_new_cmds_CXX | \
13392 archive_cmds_CXX | \
13393 archive_expsym_cmds_CXX | \
13394 module_cmds_CXX | \
13395 module_expsym_cmds_CXX | \
13396 old_archive_from_expsyms_cmds_CXX | \
13397 export_symbols_cmds_CXX | \
13398 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13399 postinstall_cmds | postuninstall_cmds | \
13400 old_postinstall_cmds | old_postuninstall_cmds | \
13401 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13402 # Double-quote double-evaled strings.
13403 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13406 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13412 *'\$0 --fallback-echo"')
13413 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13419 cat <<__EOF__ >> "$cfgfile"
13420 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13422 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13424 # Shell to use when invoking shell scripts.
13427 # Whether or not to build shared libraries.
13428 build_libtool_libs=$enable_shared
13430 # Whether or not to build static libraries.
13431 build_old_libs=$enable_static
13433 # Whether or not to add -lc for building shared libraries.
13434 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13436 # Whether or not to disallow shared libs when runtime libs are static
13437 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13439 # Whether or not to optimize for fast installation.
13440 fast_install=$enable_fast_install
13443 host_alias=$host_alias
13447 # The build system.
13448 build_alias=$build_alias
13452 # An echo program that does not interpret backslashes.
13457 AR_FLAGS=$lt_AR_FLAGS
13462 # LTCC compiler flags.
13463 LTCFLAGS=$lt_LTCFLAGS
13465 # A language-specific compiler.
13466 CC=$lt_compiler_CXX
13468 # Is the compiler the GNU C compiler?
13474 # The linker used to build libraries.
13477 # Whether we need hard or soft links.
13480 # A BSD-compatible nm program.
13483 # A symbol stripping program
13486 # Used to examine libraries when file_magic_cmd begins "file"
13487 MAGIC_CMD=$MAGIC_CMD
13489 # Used on cygwin: DLL creation program.
13492 # Used on cygwin: object dumper.
13495 # Used on cygwin: assembler.
13498 # The name of the directory that contains temporary libtool files.
13501 # How to create reloadable object files.
13502 reload_flag=$lt_reload_flag
13503 reload_cmds=$lt_reload_cmds
13505 # How to pass a linker flag through the compiler.
13506 wl=$lt_lt_prog_compiler_wl_CXX
13508 # Object file suffix (normally "o").
13509 objext="$ac_objext"
13511 # Old archive suffix (normally "a").
13514 # Shared library suffix (normally ".so").
13515 shrext_cmds='$shrext_cmds'
13517 # Executable file suffix (normally "").
13520 # Additional compiler flags for building library objects.
13521 pic_flag=$lt_lt_prog_compiler_pic_CXX
13524 # What is the maximum length of a command?
13525 max_cmd_len=$lt_cv_sys_max_cmd_len
13527 # Does compiler simultaneously support -c and -o options?
13528 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13530 # Must we lock files when doing compilation?
13531 need_locks=$lt_need_locks
13533 # Do we need the lib prefix for modules?
13534 need_lib_prefix=$need_lib_prefix
13536 # Do we need a version for libraries?
13537 need_version=$need_version
13539 # Whether dlopen is supported.
13540 dlopen_support=$enable_dlopen
13542 # Whether dlopen of programs is supported.
13543 dlopen_self=$enable_dlopen_self
13545 # Whether dlopen of statically linked programs is supported.
13546 dlopen_self_static=$enable_dlopen_self_static
13548 # Compiler flag to prevent dynamic linking.
13549 link_static_flag=$lt_lt_prog_compiler_static_CXX
13551 # Compiler flag to turn off builtin functions.
13552 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13554 # Compiler flag to allow reflexive dlopens.
13555 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13557 # Compiler flag to generate shared objects directly from archives.
13558 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13560 # Compiler flag to generate thread-safe objects.
13561 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13563 # Library versioning type.
13564 version_type=$version_type
13566 # Format of library name prefix.
13567 libname_spec=$lt_libname_spec
13569 # List of archive names. First name is the real one, the rest are links.
13570 # The last name is the one that the linker finds with -lNAME.
13571 library_names_spec=$lt_library_names_spec
13573 # The coded name of the library, if different from the real name.
13574 soname_spec=$lt_soname_spec
13576 # Commands used to build and install an old-style archive.
13578 old_archive_cmds=$lt_old_archive_cmds_CXX
13579 old_postinstall_cmds=$lt_old_postinstall_cmds
13580 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13582 # Create an old-style archive from a shared archive.
13583 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13585 # Create a temporary old-style archive to link instead of a shared archive.
13586 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13588 # Commands used to build and install a shared archive.
13589 archive_cmds=$lt_archive_cmds_CXX
13590 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13591 postinstall_cmds=$lt_postinstall_cmds
13592 postuninstall_cmds=$lt_postuninstall_cmds
13594 # Commands used to build a loadable module (assumed same as above if empty)
13595 module_cmds=$lt_module_cmds_CXX
13596 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13598 # Commands to strip libraries.
13599 old_striplib=$lt_old_striplib
13600 striplib=$lt_striplib
13602 # Dependencies to place before the objects being linked to create a
13604 predep_objects=$lt_predep_objects_CXX
13606 # Dependencies to place after the objects being linked to create a
13608 postdep_objects=$lt_postdep_objects_CXX
13610 # Dependencies to place before the objects being linked to create a
13612 predeps=$lt_predeps_CXX
13614 # Dependencies to place after the objects being linked to create a
13616 postdeps=$lt_postdeps_CXX
13618 # The library search path used internally by the compiler when linking
13619 # a shared library.
13620 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13622 # Method to check whether dependent libraries are shared objects.
13623 deplibs_check_method=$lt_deplibs_check_method
13625 # Command to use when deplibs_check_method == file_magic.
13626 file_magic_cmd=$lt_file_magic_cmd
13628 # Flag that allows shared libraries with undefined symbols to be built.
13629 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13631 # Flag that forces no undefined symbols.
13632 no_undefined_flag=$lt_no_undefined_flag_CXX
13634 # Commands used to finish a libtool library installation in a directory.
13635 finish_cmds=$lt_finish_cmds
13637 # Same as above, but a single script fragment to be evaled but not shown.
13638 finish_eval=$lt_finish_eval
13640 # Take the output of nm and produce a listing of raw symbols and C names.
13641 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13643 # Transform the output of nm in a proper C declaration
13644 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13646 # Transform the output of nm in a C name address pair
13647 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13649 # This is the shared library runtime path variable.
13650 runpath_var=$runpath_var
13652 # This is the shared library path variable.
13653 shlibpath_var=$shlibpath_var
13655 # Is shlibpath searched before the hard-coded library search path?
13656 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13658 # How to hardcode a shared library path into an executable.
13659 hardcode_action=$hardcode_action_CXX
13661 # Whether we should hardcode library paths into libraries.
13662 hardcode_into_libs=$hardcode_into_libs
13664 # Flag to hardcode \$libdir into a binary during linking.
13665 # This must work even if \$libdir does not exist.
13666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13668 # If ld is used when linking, flag to hardcode \$libdir into
13669 # a binary during linking. This must work even if \$libdir does
13671 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13673 # Whether we need a single -rpath flag with a separated argument.
13674 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13676 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13677 # resulting binary.
13678 hardcode_direct=$hardcode_direct_CXX
13680 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13681 # resulting binary.
13682 hardcode_minus_L=$hardcode_minus_L_CXX
13684 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13685 # the resulting binary.
13686 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13688 # Set to yes if building a shared library automatically hardcodes DIR into the library
13689 # and all subsequent libraries and executables linked against it.
13690 hardcode_automatic=$hardcode_automatic_CXX
13692 # Variables whose values should be saved in libtool wrapper scripts and
13693 # restored at relink time.
13694 variables_saved_for_relink="$variables_saved_for_relink"
13696 # Whether libtool must link a program against all its dependency libraries.
13697 link_all_deplibs=$link_all_deplibs_CXX
13699 # Compile-time system search path for libraries
13700 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13702 # Run-time system search path for libraries
13703 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13705 # Fix the shell variable \$srcfile for the compiler.
13706 fix_srcfile_path="$fix_srcfile_path_CXX"
13708 # Set to yes if exported symbols are required.
13709 always_export_symbols=$always_export_symbols_CXX
13711 # The commands to list exported symbols.
13712 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13714 # The commands to extract the exported symbol list from a shared archive.
13715 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13717 # Symbols that should not be listed in the preloaded symbols.
13718 exclude_expsyms=$lt_exclude_expsyms_CXX
13720 # Symbols that must always be exported.
13721 include_expsyms=$lt_include_expsyms_CXX
13723 # ### END LIBTOOL TAG CONFIG: $tagname
13729 # If there is no Makefile yet, we rely on a make rule to execute
13730 # `config.status --recheck' to rerun these tests and create the
13731 # libtool script then.
13732 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13733 if test -f "$ltmain_in"; then
13734 test -f Makefile && make "$ltmain"
13740 ac_cpp='$CPP $CPPFLAGS'
13741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13749 with_gnu_ldcxx=$with_gnu_ld
13750 with_gnu_ld=$lt_save_with_gnu_ld
13751 lt_cv_path_LDCXX=$lt_cv_path_LD
13752 lt_cv_path_LD=$lt_save_path_LD
13753 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13754 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13762 if test -n "$F77" && test "X$F77" != "Xno"; then
13765 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13766 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13767 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13770 archive_cmds_need_lc_F77=no
13771 allow_undefined_flag_F77=
13772 always_export_symbols_F77=no
13773 archive_expsym_cmds_F77=
13774 export_dynamic_flag_spec_F77=
13775 hardcode_direct_F77=no
13776 hardcode_libdir_flag_spec_F77=
13777 hardcode_libdir_flag_spec_ld_F77=
13778 hardcode_libdir_separator_F77=
13779 hardcode_minus_L_F77=no
13780 hardcode_automatic_F77=no
13782 module_expsym_cmds_F77=
13783 link_all_deplibs_F77=unknown
13784 old_archive_cmds_F77=$old_archive_cmds
13785 no_undefined_flag_F77=
13786 whole_archive_flag_spec_F77=
13787 enable_shared_with_static_runtimes_F77=no
13789 # Source file extension for f77 test sources.
13792 # Object file extension for compiled f77 test sources.
13796 # Code to be used in simple compile tests
13797 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13799 # Code to be used in simple link tests
13800 lt_simple_link_test_code=" program t\n end\n"
13802 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13804 # If no C compiler was specified, use CC.
13807 # If no C compiler flags were specified, use CFLAGS.
13808 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13810 # Allow CC to be a program name with arguments.
13814 # save warnings/boilerplate of simple test code
13815 ac_outfile=conftest.$ac_objext
13816 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13817 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13818 _lt_compiler_boilerplate=`cat conftest.err`
13821 ac_outfile=conftest.$ac_objext
13822 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13823 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13824 _lt_linker_boilerplate=`cat conftest.err`
13828 # Allow CC to be a program name with arguments.
13833 for cc_temp in $compiler""; do
13835 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13836 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13841 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13844 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13845 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13846 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13847 echo "${ECHO_T}$can_build_shared" >&6; }
13849 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13850 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13851 test "$can_build_shared" = "no" && enable_shared=no
13853 # On AIX, shared libraries and static libraries use the same namespace, and
13854 # are all built from PIC.
13857 test "$enable_shared" = yes && enable_static=no
13858 if test -n "$RANLIB"; then
13859 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13860 postinstall_cmds='$RANLIB $lib'
13864 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13865 test "$enable_shared" = yes && enable_static=no
13869 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13870 echo "${ECHO_T}$enable_shared" >&6; }
13872 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13873 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13874 # Make sure either enable_shared or enable_static is yes.
13875 test "$enable_shared" = yes || enable_static=yes
13876 { echo "$as_me:$LINENO: result: $enable_static" >&5
13877 echo "${ECHO_T}$enable_static" >&6; }
13882 lt_prog_compiler_wl_F77=
13883 lt_prog_compiler_pic_F77=
13884 lt_prog_compiler_static_F77=
13886 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13887 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13889 if test "$GCC" = yes; then
13890 lt_prog_compiler_wl_F77='-Wl,'
13891 lt_prog_compiler_static_F77='-static'
13895 # All AIX code is PIC.
13896 if test "$host_cpu" = ia64; then
13897 # AIX 5 now supports IA64 processor
13898 lt_prog_compiler_static_F77='-Bstatic'
13903 # FIXME: we need at least 68020 code to build shared libraries, but
13904 # adding the `-m68020' flag to GCC prevents building anything better,
13906 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13909 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13910 # PIC is the default for these OSes.
13913 mingw* | pw32* | os2*)
13914 # This hack is so that the source file can tell whether it is being
13915 # built for inclusion in a dll (and should export symbols for example).
13916 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13919 darwin* | rhapsody*)
13920 # PIC is the default on this platform
13921 # Common symbols not allowed in MH_DYLIB files
13922 lt_prog_compiler_pic_F77='-fno-common'
13926 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13927 # Instead, we relocate shared libraries at runtime.
13931 # Just because we use GCC doesn't mean we suddenly get shared libraries
13932 # on systems that don't support them.
13933 lt_prog_compiler_can_build_shared_F77=no
13938 if test -d /usr/nec; then
13939 lt_prog_compiler_pic_F77=-Kconform_pic
13944 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13945 # not for PA HP-UX.
13951 lt_prog_compiler_pic_F77='-fPIC'
13957 lt_prog_compiler_pic_F77='-fPIC'
13961 # PORTME Check for flag to pass linker flags through the system compiler.
13964 lt_prog_compiler_wl_F77='-Wl,'
13965 if test "$host_cpu" = ia64; then
13966 # AIX 5 now supports IA64 processor
13967 lt_prog_compiler_static_F77='-Bstatic'
13969 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13973 # PIC is the default on this platform
13974 # Common symbols not allowed in MH_DYLIB files
13975 case $cc_basename in
13977 lt_prog_compiler_pic_F77='-qnocommon'
13978 lt_prog_compiler_wl_F77='-Wl,'
13983 mingw* | pw32* | os2*)
13984 # This hack is so that the source file can tell whether it is being
13985 # built for inclusion in a dll (and should export symbols for example).
13986 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13989 hpux9* | hpux10* | hpux11*)
13990 lt_prog_compiler_wl_F77='-Wl,'
13991 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13992 # not for PA HP-UX.
13998 lt_prog_compiler_pic_F77='+Z'
14001 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14002 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14005 irix5* | irix6* | nonstopux*)
14006 lt_prog_compiler_wl_F77='-Wl,'
14007 # PIC (with -KPIC) is the default.
14008 lt_prog_compiler_static_F77='-non_shared'
14012 lt_prog_compiler_pic_F77='-KPIC'
14013 lt_prog_compiler_static_F77='-Bstatic'
14017 case $cc_basename in
14019 lt_prog_compiler_wl_F77='-Wl,'
14020 lt_prog_compiler_pic_F77='-KPIC'
14021 lt_prog_compiler_static_F77='-static'
14023 pgcc* | pgf77* | pgf90* | pgf95*)
14024 # Portland Group compilers (*not* the Pentium gcc compiler,
14025 # which looks to be a dead project)
14026 lt_prog_compiler_wl_F77='-Wl,'
14027 lt_prog_compiler_pic_F77='-fpic'
14028 lt_prog_compiler_static_F77='-Bstatic'
14031 lt_prog_compiler_wl_F77='-Wl,'
14032 # All Alpha code is PIC.
14033 lt_prog_compiler_static_F77='-non_shared'
14038 osf3* | osf4* | osf5*)
14039 lt_prog_compiler_wl_F77='-Wl,'
14040 # All OSF/1 code is PIC.
14041 lt_prog_compiler_static_F77='-non_shared'
14045 lt_prog_compiler_pic_F77='-KPIC'
14046 lt_prog_compiler_static_F77='-Bstatic'
14047 case $cc_basename in
14048 f77* | f90* | f95*)
14049 lt_prog_compiler_wl_F77='-Qoption ld ';;
14051 lt_prog_compiler_wl_F77='-Wl,';;
14056 lt_prog_compiler_wl_F77='-Qoption ld '
14057 lt_prog_compiler_pic_F77='-PIC'
14058 lt_prog_compiler_static_F77='-Bstatic'
14061 sysv4 | sysv4.2uw2* | sysv4.3*)
14062 lt_prog_compiler_wl_F77='-Wl,'
14063 lt_prog_compiler_pic_F77='-KPIC'
14064 lt_prog_compiler_static_F77='-Bstatic'
14068 if test -d /usr/nec ;then
14069 lt_prog_compiler_pic_F77='-Kconform_pic'
14070 lt_prog_compiler_static_F77='-Bstatic'
14074 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14075 lt_prog_compiler_wl_F77='-Wl,'
14076 lt_prog_compiler_pic_F77='-KPIC'
14077 lt_prog_compiler_static_F77='-Bstatic'
14081 lt_prog_compiler_wl_F77='-Wl,'
14082 lt_prog_compiler_can_build_shared_F77=no
14086 lt_prog_compiler_pic_F77='-pic'
14087 lt_prog_compiler_static_F77='-Bstatic'
14091 lt_prog_compiler_can_build_shared_F77=no
14096 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14097 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14100 # Check to make sure the PIC flag actually works.
14102 if test -n "$lt_prog_compiler_pic_F77"; then
14104 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14105 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14106 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14109 lt_prog_compiler_pic_works_F77=no
14110 ac_outfile=conftest.$ac_objext
14111 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14112 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14113 # Insert the option either (1) after the last *FLAGS variable, or
14114 # (2) before a word containing "conftest.", or (3) at the end.
14115 # Note that $ac_compile itself does not contain backslashes and begins
14116 # with a dollar sign (not a hyphen), so the echo should work correctly.
14117 # The option is referenced via a variable to avoid confusing sed.
14118 lt_compile=`echo "$ac_compile" | $SED \
14119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14121 -e 's:$: $lt_compiler_flag:'`
14122 (eval echo "\"\$as_me:14122: $lt_compile\"" >&5)
14123 (eval "$lt_compile" 2>conftest.err)
14125 cat conftest.err >&5
14126 echo "$as_me:14126: \$? = $ac_status" >&5
14127 if (exit $ac_status) && test -s "$ac_outfile"; then
14128 # The compiler can only warn and ignore the option if not recognized
14129 # So say no if there are warnings other than the usual output.
14130 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14132 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14133 lt_prog_compiler_pic_works_F77=yes
14139 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14140 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14142 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14143 case $lt_prog_compiler_pic_F77 in
14145 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14148 lt_prog_compiler_pic_F77=
14149 lt_prog_compiler_can_build_shared_F77=no
14154 # For platforms which do not support PIC, -DPIC is meaningless:
14156 lt_prog_compiler_pic_F77=
14159 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14164 # Check to make sure the static flag actually works.
14166 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14167 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14168 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14169 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14172 lt_prog_compiler_static_works_F77=no
14173 save_LDFLAGS="$LDFLAGS"
14174 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14175 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14176 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14177 # The linker can only warn and ignore the option if not recognized
14178 # So say no if there are warnings
14179 if test -s conftest.err; then
14180 # Append any errors to the config.log.
14181 cat conftest.err 1>&5
14182 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14183 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14184 if diff conftest.exp conftest.er2 >/dev/null; then
14185 lt_prog_compiler_static_works_F77=yes
14188 lt_prog_compiler_static_works_F77=yes
14192 LDFLAGS="$save_LDFLAGS"
14195 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14196 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14198 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14201 lt_prog_compiler_static_F77=
14205 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14206 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14207 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14208 echo $ECHO_N "(cached) $ECHO_C" >&6
14210 lt_cv_prog_compiler_c_o_F77=no
14211 $rm -r conftest 2>/dev/null
14215 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14217 lt_compiler_flag="-o out/conftest2.$ac_objext"
14218 # Insert the option either (1) after the last *FLAGS variable, or
14219 # (2) before a word containing "conftest.", or (3) at the end.
14220 # Note that $ac_compile itself does not contain backslashes and begins
14221 # with a dollar sign (not a hyphen), so the echo should work correctly.
14222 lt_compile=`echo "$ac_compile" | $SED \
14223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14225 -e 's:$: $lt_compiler_flag:'`
14226 (eval echo "\"\$as_me:14226: $lt_compile\"" >&5)
14227 (eval "$lt_compile" 2>out/conftest.err)
14229 cat out/conftest.err >&5
14230 echo "$as_me:14230: \$? = $ac_status" >&5
14231 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14233 # The compiler can only warn and ignore the option if not recognized
14234 # So say no if there are warnings
14235 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14236 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14237 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14238 lt_cv_prog_compiler_c_o_F77=yes
14243 # SGI C++ compiler will create directory out/ii_files/ for
14244 # template instantiation
14245 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14246 $rm out/* && rmdir out
14252 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14253 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14256 hard_links="nottested"
14257 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14258 # do not overwrite the value of need_locks provided by the user
14259 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14260 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14263 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14265 ln conftest.a conftest.b 2>&5 || hard_links=no
14266 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14267 { echo "$as_me:$LINENO: result: $hard_links" >&5
14268 echo "${ECHO_T}$hard_links" >&6; }
14269 if test "$hard_links" = no; then
14270 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14271 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14278 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14279 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14282 allow_undefined_flag_F77=
14283 enable_shared_with_static_runtimes_F77=no
14285 archive_expsym_cmds_F77=
14286 old_archive_From_new_cmds_F77=
14287 old_archive_from_expsyms_cmds_F77=
14288 export_dynamic_flag_spec_F77=
14289 whole_archive_flag_spec_F77=
14290 thread_safe_flag_spec_F77=
14291 hardcode_libdir_flag_spec_F77=
14292 hardcode_libdir_flag_spec_ld_F77=
14293 hardcode_libdir_separator_F77=
14294 hardcode_direct_F77=no
14295 hardcode_minus_L_F77=no
14296 hardcode_shlibpath_var_F77=unsupported
14297 link_all_deplibs_F77=unknown
14298 hardcode_automatic_F77=no
14300 module_expsym_cmds_F77=
14301 always_export_symbols_F77=no
14302 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14303 # include_expsyms should be a list of space-separated symbols to be *always*
14304 # included in the symbol list
14305 include_expsyms_F77=
14306 # exclude_expsyms can be an extended regexp of symbols to exclude
14307 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14308 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14309 # as well as any symbol that contains `d'.
14310 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14311 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14312 # platforms (ab)use it in PIC code, but their linkers get confused if
14313 # the symbol is explicitly referenced. Since portable code cannot
14314 # rely on this symbol name, it's probably fine to never include it in
14315 # preloaded symbol tables.
14316 extract_expsyms_cmds=
14317 # Just being paranoid about ensuring that cc_basename is set.
14318 for cc_temp in $compiler""; do
14320 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14321 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14326 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14329 cygwin* | mingw* | pw32*)
14330 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14331 # When not using gcc, we currently assume that we are using
14332 # Microsoft Visual C++.
14333 if test "$GCC" != yes; then
14338 # we just hope/assume this is gcc and not c89 (= MSVC++)
14347 if test "$with_gnu_ld" = yes; then
14348 # If archive_cmds runs LD, not CC, wlarc should be empty
14351 # Set some defaults for GNU ld with shared library support. These
14352 # are reset later if shared libraries are not supported. Putting them
14353 # here allows them to be overridden if necessary.
14354 runpath_var=LD_RUN_PATH
14355 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14356 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14357 # ancient GNU ld didn't support --whole-archive et. al.
14358 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14359 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14361 whole_archive_flag_spec_F77=
14363 supports_anon_versioning=no
14364 case `$LD -v 2>/dev/null` in
14365 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14366 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14367 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14368 *\ 2.11.*) ;; # other 2.11 versions
14369 *) supports_anon_versioning=yes ;;
14372 # See if GNU ld supports shared libraries.
14374 aix3* | aix4* | aix5*)
14375 # On AIX/PPC, the GNU linker is very broken
14376 if test "$host_cpu" != ia64; then
14380 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14381 *** to be unable to reliably create shared libraries on AIX.
14382 *** Therefore, libtool is disabling shared libraries support. If you
14383 *** really care for shared libraries, you may want to modify your PATH
14384 *** so that a non-GNU linker is found, and then restart.
14391 archive_cmds_F77='$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)'
14392 hardcode_libdir_flag_spec_F77='-L$libdir'
14393 hardcode_minus_L_F77=yes
14395 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14396 # that the semantics of dynamic libraries on AmigaOS, at least up
14397 # to version 4, is to share data among multiple programs linked
14398 # with the same dynamic library. Since this doesn't match the
14399 # behavior of shared libraries on other platforms, we can't use
14405 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14406 allow_undefined_flag_F77=unsupported
14407 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14408 # support --undefined. This deserves some investigation. FIXME
14409 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14415 cygwin* | mingw* | pw32*)
14416 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14417 # as there is no search path for DLLs.
14418 hardcode_libdir_flag_spec_F77='-L$libdir'
14419 allow_undefined_flag_F77=unsupported
14420 always_export_symbols_F77=no
14421 enable_shared_with_static_runtimes_F77=yes
14422 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14424 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14425 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14426 # If the export-symbols file already is a .def file (1st line
14427 # is EXPORTS), use it as is; otherwise, prepend...
14428 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14429 cp $export_symbols $output_objdir/$soname.def;
14431 echo EXPORTS > $output_objdir/$soname.def;
14432 cat $export_symbols >> $output_objdir/$soname.def;
14434 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14441 hardcode_direct_F77=no
14442 hardcode_shlibpath_var_F77=no
14443 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14444 export_dynamic_flag_spec_F77='${wl}-E'
14445 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14446 # Instead, shared libraries are loaded at an image base (0x10000000 by
14447 # default) and relocated if they conflict, which is a slow very memory
14448 # consuming and fragmenting process. To avoid this, we pick a random,
14449 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14450 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14451 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14452 archive_expsym_cmds_F77='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'
14456 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14458 case $cc_basename,$host_cpu in
14459 pgcc*) # Portland Group C compiler
14460 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14461 tmp_addflag=' $pic_flag'
14463 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14464 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14465 tmp_addflag=' $pic_flag -Mnomain' ;;
14466 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14467 tmp_addflag=' -i_dynamic' ;;
14468 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14469 tmp_addflag=' -i_dynamic -nofor_main' ;;
14470 ifc* | ifort*) # Intel Fortran compiler
14471 tmp_addflag=' -nofor_main' ;;
14473 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14475 if test $supports_anon_versioning = yes; then
14476 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14477 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14478 $echo "local: *; };" >> $output_objdir/$libname.ver~
14479 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14487 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14488 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14491 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14492 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14497 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14501 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14502 *** create shared libraries on Solaris systems. Therefore, libtool
14503 *** is disabling shared libraries support. We urge you to upgrade GNU
14504 *** binutils to release 2.9.1 or newer. Another option is to modify
14505 *** your PATH or compiler configuration so that the native linker is
14506 *** used, and then restart.
14509 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14510 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14511 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14517 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14518 case `$LD -v 2>&1` in
14519 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14523 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14524 *** reliably create shared libraries on SCO systems. Therefore, libtool
14525 *** is disabling shared libraries support. We urge you to upgrade GNU
14526 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14527 *** your PATH or compiler configuration so that the native linker is
14528 *** used, and then restart.
14533 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14534 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14535 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14536 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14545 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14547 hardcode_direct_F77=yes
14548 hardcode_shlibpath_var_F77=no
14552 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14553 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14554 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14561 if test "$ld_shlibs_F77" = no; then
14563 hardcode_libdir_flag_spec_F77=
14564 export_dynamic_flag_spec_F77=
14565 whole_archive_flag_spec_F77=
14568 # PORTME fill in a description of your system's linker (not GNU ld)
14571 allow_undefined_flag_F77=unsupported
14572 always_export_symbols_F77=yes
14573 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14574 # Note: this linker hardcodes the directories in LIBPATH if there
14575 # are no directories specified by -L.
14576 hardcode_minus_L_F77=yes
14577 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14578 # Neither direct hardcoding nor static linking is supported with a
14580 hardcode_direct_F77=unsupported
14585 if test "$host_cpu" = ia64; then
14586 # On IA64, the linker does run time linking by default, so we don't
14587 # have to do anything special.
14588 aix_use_runtimelinking=no
14589 exp_sym_flag='-Bexport'
14592 # If we're using GNU nm, then we don't want the "-C" option.
14593 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14594 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14595 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14597 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14599 aix_use_runtimelinking=no
14601 # Test if we are trying to use run time linking or normal
14602 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14603 # need to do runtime linking.
14604 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14605 for ld_flag in $LDFLAGS; do
14606 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14607 aix_use_runtimelinking=yes
14614 exp_sym_flag='-bexport'
14615 no_entry_flag='-bnoentry'
14618 # When large executables or shared objects are built, AIX ld can
14619 # have problems creating the table of contents. If linking a library
14620 # or program results in "error TOC overflow" add -mminimal-toc to
14621 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14622 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14624 archive_cmds_F77=''
14625 hardcode_direct_F77=yes
14626 hardcode_libdir_separator_F77=':'
14627 link_all_deplibs_F77=yes
14629 if test "$GCC" = yes; then
14630 case $host_os in aix4.[012]|aix4.[012].*)
14631 # We only want to do this on AIX 4.2 and lower, the check
14632 # below for broken collect2 doesn't work under 4.3+
14633 collect2name=`${CC} -print-prog-name=collect2`
14634 if test -f "$collect2name" && \
14635 strings "$collect2name" | grep resolve_lib_name >/dev/null
14637 # We have reworked collect2
14638 hardcode_direct_F77=yes
14640 # We have old collect2
14641 hardcode_direct_F77=unsupported
14642 # It fails to find uninstalled libraries when the uninstalled
14643 # path is not listed in the libpath. Setting hardcode_minus_L
14644 # to unsupported forces relinking
14645 hardcode_minus_L_F77=yes
14646 hardcode_libdir_flag_spec_F77='-L$libdir'
14647 hardcode_libdir_separator_F77=
14651 shared_flag='-shared'
14652 if test "$aix_use_runtimelinking" = yes; then
14653 shared_flag="$shared_flag "'${wl}-G'
14657 if test "$host_cpu" = ia64; then
14658 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14659 # chokes on -Wl,-G. The following line is correct:
14662 if test "$aix_use_runtimelinking" = yes; then
14663 shared_flag='${wl}-G'
14665 shared_flag='${wl}-bM:SRE'
14670 # It seems that -bexpall does not export symbols beginning with
14671 # underscore (_), so it is better to generate a list of symbols to export.
14672 always_export_symbols_F77=yes
14673 if test "$aix_use_runtimelinking" = yes; then
14674 # Warning - without using the other runtime loading flags (-brtl),
14675 # -berok will link without error, but may produce a broken library.
14676 allow_undefined_flag_F77='-berok'
14677 # Determine the default libpath from the value encoded in an empty executable.
14678 cat >conftest.$ac_ext <<_ACEOF
14683 rm -f conftest.$ac_objext conftest$ac_exeext
14684 if { (ac_try="$ac_link"
14685 case "(($ac_try" in
14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687 *) ac_try_echo=$ac_try;;
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690 (eval "$ac_link") 2>conftest.er1
14692 grep -v '^ *+' conftest.er1 >conftest.err
14694 cat conftest.err >&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } && {
14697 test -z "$ac_f77_werror_flag" ||
14698 test ! -s conftest.err
14699 } && test -s conftest$ac_exeext &&
14700 $as_test_x conftest$ac_exeext; then
14702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14704 # Check for a 64-bit object if we didn't find anything.
14705 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14708 echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14715 conftest$ac_exeext conftest.$ac_ext
14716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14718 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14719 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14721 if test "$host_cpu" = ia64; then
14722 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14723 allow_undefined_flag_F77="-z nodefs"
14724 archive_expsym_cmds_F77="\$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"
14726 # Determine the default libpath from the value encoded in an empty executable.
14727 cat >conftest.$ac_ext <<_ACEOF
14732 rm -f conftest.$ac_objext conftest$ac_exeext
14733 if { (ac_try="$ac_link"
14734 case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_link") 2>conftest.er1
14741 grep -v '^ *+' conftest.er1 >conftest.err
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } && {
14746 test -z "$ac_f77_werror_flag" ||
14747 test ! -s conftest.err
14748 } && test -s conftest$ac_exeext &&
14749 $as_test_x conftest$ac_exeext; then
14751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14753 # Check for a 64-bit object if we didn't find anything.
14754 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14757 echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.$ac_ext >&5
14763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14764 conftest$ac_exeext conftest.$ac_ext
14765 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14767 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14768 # Warning - without using the other run time loading flags,
14769 # -berok will link without error, but may produce a broken library.
14770 no_undefined_flag_F77=' ${wl}-bernotok'
14771 allow_undefined_flag_F77=' ${wl}-berok'
14772 # Exported symbols can be pulled into shared objects from archives
14773 whole_archive_flag_spec_F77='$convenience'
14774 archive_cmds_need_lc_F77=yes
14775 # This is similar to how AIX traditionally builds its shared libraries.
14776 archive_expsym_cmds_F77="\$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'
14782 archive_cmds_F77='$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)'
14783 hardcode_libdir_flag_spec_F77='-L$libdir'
14784 hardcode_minus_L_F77=yes
14785 # see comment about different semantics on the GNU ld section
14790 export_dynamic_flag_spec_F77=-rdynamic
14793 cygwin* | mingw* | pw32*)
14794 # When not using gcc, we currently assume that we are using
14795 # Microsoft Visual C++.
14796 # hardcode_libdir_flag_spec is actually meaningless, as there is
14797 # no search path for DLLs.
14798 hardcode_libdir_flag_spec_F77=' '
14799 allow_undefined_flag_F77=unsupported
14800 # Tell ltmain to make .lib files, not .a files.
14802 # Tell ltmain to make .dll files, not .so files.
14804 # FIXME: Setting linknames here is a bad hack.
14805 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14806 # The linker will automatically build a .lib file if we build a DLL.
14807 old_archive_From_new_cmds_F77='true'
14808 # FIXME: Should let the user specify the lib program.
14809 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14810 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14811 enable_shared_with_static_runtimes_F77=yes
14814 darwin* | rhapsody*)
14816 rhapsody* | darwin1.[012])
14817 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14820 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14821 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14823 case ${MACOSX_DEPLOYMENT_TARGET} in
14825 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14828 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14834 archive_cmds_need_lc_F77=no
14835 hardcode_direct_F77=no
14836 hardcode_automatic_F77=yes
14837 hardcode_shlibpath_var_F77=unsupported
14838 whole_archive_flag_spec_F77=''
14839 link_all_deplibs_F77=yes
14840 if test "$GCC" = yes ; then
14841 output_verbose_link_cmd='echo'
14842 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14843 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14844 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14845 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14846 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14848 case $cc_basename in
14850 output_verbose_link_cmd='echo'
14851 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14852 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14853 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14854 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14855 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14865 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14866 hardcode_libdir_flag_spec_F77='-L$libdir'
14867 hardcode_shlibpath_var_F77=no
14874 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14875 # support. Future versions do this automatically, but an explicit c++rt0.o
14876 # does not break anything, and helps significantly (at the cost of a little
14879 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14880 hardcode_libdir_flag_spec_F77='-R$libdir'
14881 hardcode_direct_F77=yes
14882 hardcode_shlibpath_var_F77=no
14885 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14887 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14888 hardcode_direct_F77=yes
14889 hardcode_minus_L_F77=yes
14890 hardcode_shlibpath_var_F77=no
14893 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14894 freebsd* | kfreebsd*-gnu | dragonfly*)
14895 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14896 hardcode_libdir_flag_spec_F77='-R$libdir'
14897 hardcode_direct_F77=yes
14898 hardcode_shlibpath_var_F77=no
14902 if test "$GCC" = yes; then
14903 archive_cmds_F77='$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'
14905 archive_cmds_F77='$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'
14907 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14908 hardcode_libdir_separator_F77=:
14909 hardcode_direct_F77=yes
14911 # hardcode_minus_L: Not really in the search PATH,
14912 # but as the default location of the library.
14913 hardcode_minus_L_F77=yes
14914 export_dynamic_flag_spec_F77='${wl}-E'
14918 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14919 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14921 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14923 if test "$with_gnu_ld" = no; then
14924 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14925 hardcode_libdir_separator_F77=:
14927 hardcode_direct_F77=yes
14928 export_dynamic_flag_spec_F77='${wl}-E'
14930 # hardcode_minus_L: Not really in the search PATH,
14931 # but as the default location of the library.
14932 hardcode_minus_L_F77=yes
14937 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14940 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14943 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14946 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14952 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14955 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14958 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14962 if test "$with_gnu_ld" = no; then
14963 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14964 hardcode_libdir_separator_F77=:
14968 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14969 hardcode_direct_F77=no
14970 hardcode_shlibpath_var_F77=no
14973 hardcode_direct_F77=yes
14974 export_dynamic_flag_spec_F77='${wl}-E'
14976 # hardcode_minus_L: Not really in the search PATH,
14977 # but as the default location of the library.
14978 hardcode_minus_L_F77=yes
14984 irix5* | irix6* | nonstopux*)
14985 if test "$GCC" = yes; then
14986 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14988 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14989 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14991 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14992 hardcode_libdir_separator_F77=:
14993 link_all_deplibs_F77=yes
14997 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14998 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15000 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15002 hardcode_libdir_flag_spec_F77='-R$libdir'
15003 hardcode_direct_F77=yes
15004 hardcode_shlibpath_var_F77=no
15008 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15009 hardcode_direct_F77=yes
15010 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15011 hardcode_libdir_separator_F77=:
15012 hardcode_shlibpath_var_F77=no
15016 hardcode_direct_F77=yes
15017 hardcode_shlibpath_var_F77=no
15018 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15019 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15020 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15021 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15022 export_dynamic_flag_spec_F77='${wl}-E'
15025 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15026 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15027 hardcode_libdir_flag_spec_F77='-R$libdir'
15030 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15031 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15038 hardcode_libdir_flag_spec_F77='-L$libdir'
15039 hardcode_minus_L_F77=yes
15040 allow_undefined_flag_F77=unsupported
15041 archive_cmds_F77='$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'
15042 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15046 if test "$GCC" = yes; then
15047 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15048 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15050 allow_undefined_flag_F77=' -expect_unresolved \*'
15051 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15053 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15054 hardcode_libdir_separator_F77=:
15057 osf4* | osf5*) # as osf3* with the addition of -msym flag
15058 if test "$GCC" = yes; then
15059 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15060 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15061 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15063 allow_undefined_flag_F77=' -expect_unresolved \*'
15064 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15065 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15066 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15068 # Both c and cxx compiler support -rpath directly
15069 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15071 hardcode_libdir_separator_F77=:
15075 no_undefined_flag_F77=' -z text'
15076 if test "$GCC" = yes; then
15078 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15079 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15080 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15083 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15084 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15085 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15087 hardcode_libdir_flag_spec_F77='-R$libdir'
15088 hardcode_shlibpath_var_F77=no
15090 solaris2.[0-5] | solaris2.[0-5].*) ;;
15092 # The compiler driver will combine linker options so we
15093 # cannot just pass the convience library names through
15094 # without $wl, iff we do not link with $LD.
15095 # Luckily, gcc supports the same syntax we need for Sun Studio.
15096 # Supported since Solaris 2.6 (maybe 2.5.1?)
15099 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15101 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15104 link_all_deplibs_F77=yes
15108 if test "x$host_vendor" = xsequent; then
15109 # Use $CC to link under sequent, because it throws in some extra .o
15110 # files that make .init and .fini sections work.
15111 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15113 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15115 hardcode_libdir_flag_spec_F77='-L$libdir'
15116 hardcode_direct_F77=yes
15117 hardcode_minus_L_F77=yes
15118 hardcode_shlibpath_var_F77=no
15122 case $host_vendor in
15124 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15125 hardcode_direct_F77=yes # is this really true???
15128 ## LD is ld it makes a PLAMLIB
15129 ## CC just makes a GrossModule.
15130 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15131 reload_cmds_F77='$CC -r -o $output$reload_objs'
15132 hardcode_direct_F77=no
15135 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15136 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15139 runpath_var='LD_RUN_PATH'
15140 hardcode_shlibpath_var_F77=no
15144 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15145 hardcode_shlibpath_var_F77=no
15146 export_dynamic_flag_spec_F77='-Bexport'
15150 if test -d /usr/nec; then
15151 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15152 hardcode_shlibpath_var_F77=no
15153 runpath_var=LD_RUN_PATH
15154 hardcode_runpath_var=yes
15159 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15160 no_undefined_flag_F77='${wl}-z,text'
15161 archive_cmds_need_lc_F77=no
15162 hardcode_shlibpath_var_F77=no
15163 runpath_var='LD_RUN_PATH'
15165 if test "$GCC" = yes; then
15166 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15167 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15169 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15170 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15174 sysv5* | sco3.2v5* | sco5v6*)
15175 # Note: We can NOT use -z defs as we might desire, because we do not
15176 # link with -lc, and that would cause any symbols used from libc to
15177 # always be unresolved, which means just about no library would
15178 # ever link correctly. If we're not using GNU ld we use -z text
15179 # though, which does catch some bad symbols but isn't as heavy-handed
15181 no_undefined_flag_F77='${wl}-z,text'
15182 allow_undefined_flag_F77='${wl}-z,nodefs'
15183 archive_cmds_need_lc_F77=no
15184 hardcode_shlibpath_var_F77=no
15185 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15186 hardcode_libdir_separator_F77=':'
15187 link_all_deplibs_F77=yes
15188 export_dynamic_flag_spec_F77='${wl}-Bexport'
15189 runpath_var='LD_RUN_PATH'
15191 if test "$GCC" = yes; then
15192 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15193 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15195 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15196 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15201 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15202 hardcode_libdir_flag_spec_F77='-L$libdir'
15203 hardcode_shlibpath_var_F77=no
15212 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15213 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15214 test "$ld_shlibs_F77" = no && can_build_shared=no
15217 # Do we need to explicitly link libc?
15219 case "x$archive_cmds_need_lc_F77" in
15221 # Assume -lc should be added
15222 archive_cmds_need_lc_F77=yes
15224 if test "$enable_shared" = yes && test "$GCC" = yes; then
15225 case $archive_cmds_F77 in
15227 # FIXME: we may have to deal with multi-command sequences.
15230 # Test whether the compiler implicitly links with -lc since on some
15231 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15232 # to ld, don't add -lc before -lgcc.
15233 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15234 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15236 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15239 (eval $ac_compile) 2>&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } 2>conftest.err; then
15245 libobjs=conftest.$ac_objext
15247 wl=$lt_prog_compiler_wl_F77
15248 pic_flag=$lt_prog_compiler_pic_F77
15254 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15255 allow_undefined_flag_F77=
15256 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15257 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }
15262 archive_cmds_need_lc_F77=no
15264 archive_cmds_need_lc_F77=yes
15266 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15268 cat conftest.err 1>&5
15271 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15272 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15279 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15280 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15281 library_names_spec=
15282 libname_spec='lib$name'
15286 postuninstall_cmds=
15290 shlibpath_overrides_runpath=unknown
15292 dynamic_linker="$host_os ld.so"
15293 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15294 if test "$GCC" = yes; then
15295 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15296 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15297 # if the path contains ";" then we assume it to be the separator
15298 # otherwise default to the standard path separator (i.e. ":") - it is
15299 # assumed that no part of a normal pathname contains ";" but that should
15300 # okay in the real world where ";" in dirpaths is itself problematic.
15301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15306 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15308 need_lib_prefix=unknown
15309 hardcode_into_libs=no
15311 # when you set need_version to no, make sure it does not cause -set_version
15312 # flags to be left without arguments
15313 need_version=unknown
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15319 shlibpath_var=LIBPATH
15321 # AIX 3 has no versioning support, so we append a major version to the name.
15322 soname_spec='${libname}${release}${shared_ext}$major'
15329 hardcode_into_libs=yes
15330 if test "$host_cpu" = ia64; then
15331 # AIX 5 supports IA64
15332 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15333 shlibpath_var=LD_LIBRARY_PATH
15335 # With GCC up to 2.95.x, collect2 would create an import file
15336 # for dependence libraries. The import file would start with
15337 # the line `#! .'. This would cause the generated library to
15338 # depend on `.', always an invalid library. This was fixed in
15339 # development snapshots of GCC prior to 3.0.
15341 aix4 | aix4.[01] | aix4.[01].*)
15342 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15344 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15347 can_build_shared=no
15351 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15352 # soname into executable. Probably we can add versioning support to
15353 # collect2, so additional links can be useful in future.
15354 if test "$aix_use_runtimelinking" = yes; then
15355 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15356 # instead of lib<name>.a to let people know that these are not
15357 # typical AIX shared libraries.
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15360 # We preserve .a as extension for shared libraries through AIX4.2
15361 # and later when we are not doing run time linking.
15362 library_names_spec='${libname}${release}.a $libname.a'
15363 soname_spec='${libname}${release}${shared_ext}$major'
15365 shlibpath_var=LIBPATH
15370 library_names_spec='$libname.ixlibrary $libname.a'
15371 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15372 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'
15376 library_names_spec='${libname}${shared_ext}'
15377 dynamic_linker="$host_os ld.so"
15378 shlibpath_var=LIBRARY_PATH
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15385 soname_spec='${libname}${release}${shared_ext}$major'
15386 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15387 shlibpath_var=LD_LIBRARY_PATH
15388 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15389 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15390 # the default ld.so.conf also contains /usr/contrib/lib and
15391 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15392 # libtool to hard-code these into programs
15395 cygwin* | mingw* | pw32*)
15396 version_type=windows
15401 case $GCC,$host_os in
15402 yes,cygwin* | yes,mingw* | yes,pw32*)
15403 library_names_spec='$libname.dll.a'
15404 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15405 postinstall_cmds='base_file=`basename \${file}`~
15406 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15407 dldir=$destdir/`dirname \$dlpath`~
15408 test -d \$dldir || mkdir -p \$dldir~
15409 $install_prog $dir/$dlname \$dldir/$dlname~
15410 chmod a+x \$dldir/$dlname'
15411 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15412 dlpath=$dir/\$dldll~
15414 shlibpath_overrides_runpath=yes
15418 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15419 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15420 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15423 # MinGW DLLs use traditional 'lib' prefix
15424 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15425 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15426 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15427 # It is most probably a Windows format PATH printed by
15428 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15429 # path with ; separators, and with drive letters. We can handle the
15430 # drive letters (cygwin fileutils understands them), so leave them,
15431 # especially as we might pass files found there to a mingw objdump,
15432 # which wouldn't understand a cygwinified path. Ahh.
15433 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15439 # pw32 DLLs use 'pw' prefix rather than 'lib'
15440 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15446 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15449 dynamic_linker='Win32 ld.exe'
15450 # FIXME: first we should search . and the directory the executable is in
15454 darwin* | rhapsody*)
15455 dynamic_linker="$host_os dyld"
15456 version_type=darwin
15459 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15460 soname_spec='${libname}${release}${major}$shared_ext'
15461 shlibpath_overrides_runpath=yes
15462 shlibpath_var=DYLD_LIBRARY_PATH
15463 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15464 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15465 if test "$GCC" = yes; then
15466 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15468 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15470 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15478 soname_spec='${libname}${release}${shared_ext}$major'
15479 shlibpath_var=LD_LIBRARY_PATH
15490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15491 soname_spec='${libname}${release}${shared_ext}$major'
15492 shlibpath_var=LD_LIBRARY_PATH
15493 shlibpath_overrides_runpath=no
15494 hardcode_into_libs=yes
15495 dynamic_linker='GNU ld.so'
15498 freebsd* | dragonfly*)
15499 # DragonFly does not have aout. When/if they implement a new
15500 # versioning mechanism, adjust this.
15501 if test -x /usr/bin/objformat; then
15502 objformat=`/usr/bin/objformat`
15505 freebsd[123]*) objformat=aout ;;
15506 *) objformat=elf ;;
15509 version_type=freebsd-$objformat
15510 case $version_type in
15512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15517 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15521 shlibpath_var=LD_LIBRARY_PATH
15524 shlibpath_overrides_runpath=yes
15526 freebsd3.[01]* | freebsdelf3.[01]*)
15527 shlibpath_overrides_runpath=yes
15528 hardcode_into_libs=yes
15530 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15531 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15532 shlibpath_overrides_runpath=no
15533 hardcode_into_libs=yes
15535 freebsd*) # from 4.6 on
15536 shlibpath_overrides_runpath=yes
15537 hardcode_into_libs=yes
15546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15547 soname_spec='${libname}${release}${shared_ext}$major'
15548 shlibpath_var=LD_LIBRARY_PATH
15549 hardcode_into_libs=yes
15552 hpux9* | hpux10* | hpux11*)
15553 # Give a soname corresponding to the major version so that dld.sl refuses to
15554 # link against other versions.
15561 hardcode_into_libs=yes
15562 dynamic_linker="$host_os dld.so"
15563 shlibpath_var=LD_LIBRARY_PATH
15564 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15566 soname_spec='${libname}${release}${shared_ext}$major'
15567 if test "X$HPUX_IA64_MODE" = X32; then
15568 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15570 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15576 hardcode_into_libs=yes
15577 dynamic_linker="$host_os dld.sl"
15578 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15579 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15581 soname_spec='${libname}${release}${shared_ext}$major'
15582 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15583 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15587 dynamic_linker="$host_os dld.sl"
15588 shlibpath_var=SHLIB_PATH
15589 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15591 soname_spec='${libname}${release}${shared_ext}$major'
15594 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15595 postinstall_cmds='chmod 555 $lib'
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15603 soname_spec='${libname}${release}${shared_ext}$major'
15604 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15605 shlibpath_var=LD_LIBRARY_PATH
15606 shlibpath_overrides_runpath=no
15607 hardcode_into_libs=yes
15610 irix5* | irix6* | nonstopux*)
15612 nonstopux*) version_type=nonstopux ;;
15614 if test "$lt_cv_prog_gnu_ld" = yes; then
15622 soname_spec='${libname}${release}${shared_ext}$major'
15623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15625 irix5* | nonstopux*)
15626 libsuff= shlibsuff=
15629 case $LD in # libtool.m4 will add one of these switches to LD
15630 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15631 libsuff= shlibsuff= libmagic=32-bit;;
15632 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15633 libsuff=32 shlibsuff=N32 libmagic=N32;;
15634 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15635 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15636 *) libsuff= shlibsuff= libmagic=never-match;;
15640 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15641 shlibpath_overrides_runpath=no
15642 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15643 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15644 hardcode_into_libs=yes
15647 # No shared lib support for Linux oldld, aout, or coff.
15648 linux*oldld* | linux*aout* | linux*coff*)
15652 # This must be Linux ELF.
15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658 soname_spec='${libname}${release}${shared_ext}$major'
15659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15660 shlibpath_var=LD_LIBRARY_PATH
15661 shlibpath_overrides_runpath=no
15662 # This implies no fast_install, which is unacceptable.
15663 # Some rework will be needed to allow for fast_install
15664 # before this can be enabled.
15665 hardcode_into_libs=yes
15667 # Append ld.so.conf contents to the search path
15668 if test -f /etc/ld.so.conf; then
15669 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15670 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15673 # We used to test for /lib/ld.so.1 and disable shared libraries on
15674 # powerpc, because MkLinux only supported shared libraries with the
15675 # GNU dynamic linker. Since this was broken with cross compilers,
15676 # most powerpc-linux boxes support dynamic linking these days and
15677 # people can always --disable-shared, the test was removed, and we
15678 # assume the GNU/Linux dynamic linker is in use.
15679 dynamic_linker='GNU/Linux ld.so'
15686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15687 soname_spec='${libname}${release}${shared_ext}$major'
15688 shlibpath_var=LD_LIBRARY_PATH
15689 shlibpath_overrides_runpath=no
15690 hardcode_into_libs=yes
15691 dynamic_linker='GNU ld.so'
15698 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15701 dynamic_linker='NetBSD (a.out) ld.so'
15703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15704 soname_spec='${libname}${release}${shared_ext}$major'
15705 dynamic_linker='NetBSD ld.elf_so'
15707 shlibpath_var=LD_LIBRARY_PATH
15708 shlibpath_overrides_runpath=yes
15709 hardcode_into_libs=yes
15714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15715 shlibpath_var=LD_LIBRARY_PATH
15716 shlibpath_overrides_runpath=yes
15723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724 soname_spec='${libname}${release}${shared_ext}$major'
15725 shlibpath_var=LD_LIBRARY_PATH
15726 shlibpath_overrides_runpath=yes
15731 sys_lib_dlsearch_path_spec="/usr/lib"
15733 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15735 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15736 *) need_version=no ;;
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15740 shlibpath_var=LD_LIBRARY_PATH
15741 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15743 openbsd2.[89] | openbsd2.[89].*)
15744 shlibpath_overrides_runpath=no
15747 shlibpath_overrides_runpath=yes
15751 shlibpath_overrides_runpath=yes
15756 libname_spec='$name'
15759 library_names_spec='$libname${shared_ext} $libname.a'
15760 dynamic_linker='OS/2 ld.exe'
15761 shlibpath_var=LIBPATH
15764 osf3* | osf4* | osf5*)
15768 soname_spec='${libname}${release}${shared_ext}$major'
15769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15770 shlibpath_var=LD_LIBRARY_PATH
15771 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15772 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15780 soname_spec='${libname}${release}${shared_ext}$major'
15781 shlibpath_var=LD_LIBRARY_PATH
15782 shlibpath_overrides_runpath=yes
15783 hardcode_into_libs=yes
15784 # ldd complains unless libraries are executable
15785 postinstall_cmds='chmod +x $lib'
15790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15791 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15792 shlibpath_var=LD_LIBRARY_PATH
15793 shlibpath_overrides_runpath=yes
15794 if test "$with_gnu_ld" = yes; then
15802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15803 soname_spec='${libname}${release}${shared_ext}$major'
15804 shlibpath_var=LD_LIBRARY_PATH
15805 case $host_vendor in
15807 shlibpath_overrides_runpath=no
15809 export_dynamic_flag_spec='${wl}-Blargedynsym'
15810 runpath_var=LD_RUN_PATH
15818 shlibpath_overrides_runpath=no
15819 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15825 if test -d /usr/nec ;then
15827 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15828 soname_spec='$libname${shared_ext}.$major'
15829 shlibpath_var=LD_LIBRARY_PATH
15833 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15834 version_type=freebsd-elf
15837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15838 soname_spec='${libname}${release}${shared_ext}$major'
15839 shlibpath_var=LD_LIBRARY_PATH
15840 hardcode_into_libs=yes
15841 if test "$with_gnu_ld" = yes; then
15842 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15843 shlibpath_overrides_runpath=no
15845 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15846 shlibpath_overrides_runpath=yes
15849 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15853 sys_lib_dlsearch_path_spec='/usr/lib'
15858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15859 soname_spec='${libname}${release}${shared_ext}$major'
15860 shlibpath_var=LD_LIBRARY_PATH
15867 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15868 echo "${ECHO_T}$dynamic_linker" >&6; }
15869 test "$dynamic_linker" = no && can_build_shared=no
15871 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15872 if test "$GCC" = yes; then
15873 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15876 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15877 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15878 hardcode_action_F77=
15879 if test -n "$hardcode_libdir_flag_spec_F77" || \
15880 test -n "$runpath_var_F77" || \
15881 test "X$hardcode_automatic_F77" = "Xyes" ; then
15883 # We can hardcode non-existant directories.
15884 if test "$hardcode_direct_F77" != no &&
15885 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15886 # have to relink, otherwise we might link with an installed library
15887 # when we should be linking with a yet-to-be-installed one
15888 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15889 test "$hardcode_minus_L_F77" != no; then
15890 # Linking always hardcodes the temporary library directory.
15891 hardcode_action_F77=relink
15893 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15894 hardcode_action_F77=immediate
15897 # We cannot hardcode anything, or else we can only hardcode existing
15899 hardcode_action_F77=unsupported
15901 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15902 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15904 if test "$hardcode_action_F77" = relink; then
15905 # Fast installation is not supported
15906 enable_fast_install=no
15907 elif test "$shlibpath_overrides_runpath" = yes ||
15908 test "$enable_shared" = no; then
15909 # Fast installation is not necessary
15910 enable_fast_install=needless
15914 # The else clause should only fire when bootstrapping the
15915 # libtool distribution, otherwise you forgot to ship ltmain.sh
15916 # with your package, and you will get complaints that there are
15917 # no rules to generate ltmain.sh.
15918 if test -f "$ltmain"; then
15919 # See if we are running on zsh, and set the options which allow our commands through
15920 # without removal of \ escapes.
15921 if test -n "${ZSH_VERSION+set}" ; then
15922 setopt NO_GLOB_SUBST
15924 # Now quote all the things that may contain metacharacters while being
15925 # careful not to overquote the AC_SUBSTed values. We take copies of the
15926 # variables and quote the copies for generation of the libtool script.
15927 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15929 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15930 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15931 deplibs_check_method reload_flag reload_cmds need_locks \
15932 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15933 lt_cv_sys_global_symbol_to_c_name_address \
15934 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15935 old_postinstall_cmds old_postuninstall_cmds \
15939 lt_prog_compiler_wl_F77 \
15940 lt_prog_compiler_pic_F77 \
15941 lt_prog_compiler_static_F77 \
15942 lt_prog_compiler_no_builtin_flag_F77 \
15943 export_dynamic_flag_spec_F77 \
15944 thread_safe_flag_spec_F77 \
15945 whole_archive_flag_spec_F77 \
15946 enable_shared_with_static_runtimes_F77 \
15947 old_archive_cmds_F77 \
15948 old_archive_from_new_cmds_F77 \
15949 predep_objects_F77 \
15950 postdep_objects_F77 \
15953 compiler_lib_search_path_F77 \
15955 archive_expsym_cmds_F77 \
15956 postinstall_cmds_F77 \
15957 postuninstall_cmds_F77 \
15958 old_archive_from_expsyms_cmds_F77 \
15959 allow_undefined_flag_F77 \
15960 no_undefined_flag_F77 \
15961 export_symbols_cmds_F77 \
15962 hardcode_libdir_flag_spec_F77 \
15963 hardcode_libdir_flag_spec_ld_F77 \
15964 hardcode_libdir_separator_F77 \
15965 hardcode_automatic_F77 \
15967 module_expsym_cmds_F77 \
15968 lt_cv_prog_compiler_c_o_F77 \
15969 exclude_expsyms_F77 \
15970 include_expsyms_F77; do
15973 old_archive_cmds_F77 | \
15974 old_archive_from_new_cmds_F77 | \
15975 archive_cmds_F77 | \
15976 archive_expsym_cmds_F77 | \
15977 module_cmds_F77 | \
15978 module_expsym_cmds_F77 | \
15979 old_archive_from_expsyms_cmds_F77 | \
15980 export_symbols_cmds_F77 | \
15981 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15982 postinstall_cmds | postuninstall_cmds | \
15983 old_postinstall_cmds | old_postuninstall_cmds | \
15984 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15985 # Double-quote double-evaled strings.
15986 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15989 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15995 *'\$0 --fallback-echo"')
15996 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16002 cat <<__EOF__ >> "$cfgfile"
16003 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16005 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16007 # Shell to use when invoking shell scripts.
16010 # Whether or not to build shared libraries.
16011 build_libtool_libs=$enable_shared
16013 # Whether or not to build static libraries.
16014 build_old_libs=$enable_static
16016 # Whether or not to add -lc for building shared libraries.
16017 build_libtool_need_lc=$archive_cmds_need_lc_F77
16019 # Whether or not to disallow shared libs when runtime libs are static
16020 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16022 # Whether or not to optimize for fast installation.
16023 fast_install=$enable_fast_install
16026 host_alias=$host_alias
16030 # The build system.
16031 build_alias=$build_alias
16035 # An echo program that does not interpret backslashes.
16040 AR_FLAGS=$lt_AR_FLAGS
16045 # LTCC compiler flags.
16046 LTCFLAGS=$lt_LTCFLAGS
16048 # A language-specific compiler.
16049 CC=$lt_compiler_F77
16051 # Is the compiler the GNU C compiler?
16057 # The linker used to build libraries.
16060 # Whether we need hard or soft links.
16063 # A BSD-compatible nm program.
16066 # A symbol stripping program
16069 # Used to examine libraries when file_magic_cmd begins "file"
16070 MAGIC_CMD=$MAGIC_CMD
16072 # Used on cygwin: DLL creation program.
16075 # Used on cygwin: object dumper.
16078 # Used on cygwin: assembler.
16081 # The name of the directory that contains temporary libtool files.
16084 # How to create reloadable object files.
16085 reload_flag=$lt_reload_flag
16086 reload_cmds=$lt_reload_cmds
16088 # How to pass a linker flag through the compiler.
16089 wl=$lt_lt_prog_compiler_wl_F77
16091 # Object file suffix (normally "o").
16092 objext="$ac_objext"
16094 # Old archive suffix (normally "a").
16097 # Shared library suffix (normally ".so").
16098 shrext_cmds='$shrext_cmds'
16100 # Executable file suffix (normally "").
16103 # Additional compiler flags for building library objects.
16104 pic_flag=$lt_lt_prog_compiler_pic_F77
16107 # What is the maximum length of a command?
16108 max_cmd_len=$lt_cv_sys_max_cmd_len
16110 # Does compiler simultaneously support -c and -o options?
16111 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16113 # Must we lock files when doing compilation?
16114 need_locks=$lt_need_locks
16116 # Do we need the lib prefix for modules?
16117 need_lib_prefix=$need_lib_prefix
16119 # Do we need a version for libraries?
16120 need_version=$need_version
16122 # Whether dlopen is supported.
16123 dlopen_support=$enable_dlopen
16125 # Whether dlopen of programs is supported.
16126 dlopen_self=$enable_dlopen_self
16128 # Whether dlopen of statically linked programs is supported.
16129 dlopen_self_static=$enable_dlopen_self_static
16131 # Compiler flag to prevent dynamic linking.
16132 link_static_flag=$lt_lt_prog_compiler_static_F77
16134 # Compiler flag to turn off builtin functions.
16135 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16137 # Compiler flag to allow reflexive dlopens.
16138 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16140 # Compiler flag to generate shared objects directly from archives.
16141 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16143 # Compiler flag to generate thread-safe objects.
16144 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16146 # Library versioning type.
16147 version_type=$version_type
16149 # Format of library name prefix.
16150 libname_spec=$lt_libname_spec
16152 # List of archive names. First name is the real one, the rest are links.
16153 # The last name is the one that the linker finds with -lNAME.
16154 library_names_spec=$lt_library_names_spec
16156 # The coded name of the library, if different from the real name.
16157 soname_spec=$lt_soname_spec
16159 # Commands used to build and install an old-style archive.
16161 old_archive_cmds=$lt_old_archive_cmds_F77
16162 old_postinstall_cmds=$lt_old_postinstall_cmds
16163 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16165 # Create an old-style archive from a shared archive.
16166 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16168 # Create a temporary old-style archive to link instead of a shared archive.
16169 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16171 # Commands used to build and install a shared archive.
16172 archive_cmds=$lt_archive_cmds_F77
16173 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16174 postinstall_cmds=$lt_postinstall_cmds
16175 postuninstall_cmds=$lt_postuninstall_cmds
16177 # Commands used to build a loadable module (assumed same as above if empty)
16178 module_cmds=$lt_module_cmds_F77
16179 module_expsym_cmds=$lt_module_expsym_cmds_F77
16181 # Commands to strip libraries.
16182 old_striplib=$lt_old_striplib
16183 striplib=$lt_striplib
16185 # Dependencies to place before the objects being linked to create a
16187 predep_objects=$lt_predep_objects_F77
16189 # Dependencies to place after the objects being linked to create a
16191 postdep_objects=$lt_postdep_objects_F77
16193 # Dependencies to place before the objects being linked to create a
16195 predeps=$lt_predeps_F77
16197 # Dependencies to place after the objects being linked to create a
16199 postdeps=$lt_postdeps_F77
16201 # The library search path used internally by the compiler when linking
16202 # a shared library.
16203 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16205 # Method to check whether dependent libraries are shared objects.
16206 deplibs_check_method=$lt_deplibs_check_method
16208 # Command to use when deplibs_check_method == file_magic.
16209 file_magic_cmd=$lt_file_magic_cmd
16211 # Flag that allows shared libraries with undefined symbols to be built.
16212 allow_undefined_flag=$lt_allow_undefined_flag_F77
16214 # Flag that forces no undefined symbols.
16215 no_undefined_flag=$lt_no_undefined_flag_F77
16217 # Commands used to finish a libtool library installation in a directory.
16218 finish_cmds=$lt_finish_cmds
16220 # Same as above, but a single script fragment to be evaled but not shown.
16221 finish_eval=$lt_finish_eval
16223 # Take the output of nm and produce a listing of raw symbols and C names.
16224 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16226 # Transform the output of nm in a proper C declaration
16227 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16229 # Transform the output of nm in a C name address pair
16230 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16232 # This is the shared library runtime path variable.
16233 runpath_var=$runpath_var
16235 # This is the shared library path variable.
16236 shlibpath_var=$shlibpath_var
16238 # Is shlibpath searched before the hard-coded library search path?
16239 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16241 # How to hardcode a shared library path into an executable.
16242 hardcode_action=$hardcode_action_F77
16244 # Whether we should hardcode library paths into libraries.
16245 hardcode_into_libs=$hardcode_into_libs
16247 # Flag to hardcode \$libdir into a binary during linking.
16248 # This must work even if \$libdir does not exist.
16249 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16251 # If ld is used when linking, flag to hardcode \$libdir into
16252 # a binary during linking. This must work even if \$libdir does
16254 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16256 # Whether we need a single -rpath flag with a separated argument.
16257 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16259 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16260 # resulting binary.
16261 hardcode_direct=$hardcode_direct_F77
16263 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16264 # resulting binary.
16265 hardcode_minus_L=$hardcode_minus_L_F77
16267 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16268 # the resulting binary.
16269 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16271 # Set to yes if building a shared library automatically hardcodes DIR into the library
16272 # and all subsequent libraries and executables linked against it.
16273 hardcode_automatic=$hardcode_automatic_F77
16275 # Variables whose values should be saved in libtool wrapper scripts and
16276 # restored at relink time.
16277 variables_saved_for_relink="$variables_saved_for_relink"
16279 # Whether libtool must link a program against all its dependency libraries.
16280 link_all_deplibs=$link_all_deplibs_F77
16282 # Compile-time system search path for libraries
16283 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16285 # Run-time system search path for libraries
16286 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16288 # Fix the shell variable \$srcfile for the compiler.
16289 fix_srcfile_path="$fix_srcfile_path_F77"
16291 # Set to yes if exported symbols are required.
16292 always_export_symbols=$always_export_symbols_F77
16294 # The commands to list exported symbols.
16295 export_symbols_cmds=$lt_export_symbols_cmds_F77
16297 # The commands to extract the exported symbol list from a shared archive.
16298 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16300 # Symbols that should not be listed in the preloaded symbols.
16301 exclude_expsyms=$lt_exclude_expsyms_F77
16303 # Symbols that must always be exported.
16304 include_expsyms=$lt_include_expsyms_F77
16306 # ### END LIBTOOL TAG CONFIG: $tagname
16312 # If there is no Makefile yet, we rely on a make rule to execute
16313 # `config.status --recheck' to rerun these tests and create the
16314 # libtool script then.
16315 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16316 if test -f "$ltmain_in"; then
16317 test -f Makefile && make "$ltmain"
16323 ac_cpp='$CPP $CPPFLAGS'
16324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16336 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16339 # Source file extension for Java test sources.
16342 # Object file extension for compiled Java test sources.
16346 # Code to be used in simple compile tests
16347 lt_simple_compile_test_code="class foo {}\n"
16349 # Code to be used in simple link tests
16350 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16352 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16354 # If no C compiler was specified, use CC.
16357 # If no C compiler flags were specified, use CFLAGS.
16358 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16360 # Allow CC to be a program name with arguments.
16364 # save warnings/boilerplate of simple test code
16365 ac_outfile=conftest.$ac_objext
16366 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16367 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16368 _lt_compiler_boilerplate=`cat conftest.err`
16371 ac_outfile=conftest.$ac_objext
16372 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16373 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16374 _lt_linker_boilerplate=`cat conftest.err`
16378 # Allow CC to be a program name with arguments.
16383 for cc_temp in $compiler""; do
16385 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16386 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16391 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16394 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16395 archive_cmds_need_lc_GCJ=no
16397 old_archive_cmds_GCJ=$old_archive_cmds
16400 ## There is no encapsulation within the following macros, do not change
16401 ## the running order or otherwise move them around unless you know exactly
16402 ## what you are doing...
16404 lt_prog_compiler_no_builtin_flag_GCJ=
16406 if test "$GCC" = yes; then
16407 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16410 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16411 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16412 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16413 echo $ECHO_N "(cached) $ECHO_C" >&6
16415 lt_cv_prog_compiler_rtti_exceptions=no
16416 ac_outfile=conftest.$ac_objext
16417 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16418 lt_compiler_flag="-fno-rtti -fno-exceptions"
16419 # Insert the option either (1) after the last *FLAGS variable, or
16420 # (2) before a word containing "conftest.", or (3) at the end.
16421 # Note that $ac_compile itself does not contain backslashes and begins
16422 # with a dollar sign (not a hyphen), so the echo should work correctly.
16423 # The option is referenced via a variable to avoid confusing sed.
16424 lt_compile=`echo "$ac_compile" | $SED \
16425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16427 -e 's:$: $lt_compiler_flag:'`
16428 (eval echo "\"\$as_me:16428: $lt_compile\"" >&5)
16429 (eval "$lt_compile" 2>conftest.err)
16431 cat conftest.err >&5
16432 echo "$as_me:16432: \$? = $ac_status" >&5
16433 if (exit $ac_status) && test -s "$ac_outfile"; then
16434 # The compiler can only warn and ignore the option if not recognized
16435 # So say no if there are warnings other than the usual output.
16436 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16438 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16439 lt_cv_prog_compiler_rtti_exceptions=yes
16445 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16446 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16448 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16449 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16456 lt_prog_compiler_wl_GCJ=
16457 lt_prog_compiler_pic_GCJ=
16458 lt_prog_compiler_static_GCJ=
16460 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16461 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16463 if test "$GCC" = yes; then
16464 lt_prog_compiler_wl_GCJ='-Wl,'
16465 lt_prog_compiler_static_GCJ='-static'
16469 # All AIX code is PIC.
16470 if test "$host_cpu" = ia64; then
16471 # AIX 5 now supports IA64 processor
16472 lt_prog_compiler_static_GCJ='-Bstatic'
16477 # FIXME: we need at least 68020 code to build shared libraries, but
16478 # adding the `-m68020' flag to GCC prevents building anything better,
16480 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16483 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16484 # PIC is the default for these OSes.
16487 mingw* | pw32* | os2*)
16488 # This hack is so that the source file can tell whether it is being
16489 # built for inclusion in a dll (and should export symbols for example).
16490 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16493 darwin* | rhapsody*)
16494 # PIC is the default on this platform
16495 # Common symbols not allowed in MH_DYLIB files
16496 lt_prog_compiler_pic_GCJ='-fno-common'
16500 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16501 # Instead, we relocate shared libraries at runtime.
16505 # Just because we use GCC doesn't mean we suddenly get shared libraries
16506 # on systems that don't support them.
16507 lt_prog_compiler_can_build_shared_GCJ=no
16512 if test -d /usr/nec; then
16513 lt_prog_compiler_pic_GCJ=-Kconform_pic
16518 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16519 # not for PA HP-UX.
16525 lt_prog_compiler_pic_GCJ='-fPIC'
16531 lt_prog_compiler_pic_GCJ='-fPIC'
16535 # PORTME Check for flag to pass linker flags through the system compiler.
16538 lt_prog_compiler_wl_GCJ='-Wl,'
16539 if test "$host_cpu" = ia64; then
16540 # AIX 5 now supports IA64 processor
16541 lt_prog_compiler_static_GCJ='-Bstatic'
16543 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16547 # PIC is the default on this platform
16548 # Common symbols not allowed in MH_DYLIB files
16549 case $cc_basename in
16551 lt_prog_compiler_pic_GCJ='-qnocommon'
16552 lt_prog_compiler_wl_GCJ='-Wl,'
16557 mingw* | pw32* | os2*)
16558 # This hack is so that the source file can tell whether it is being
16559 # built for inclusion in a dll (and should export symbols for example).
16560 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16563 hpux9* | hpux10* | hpux11*)
16564 lt_prog_compiler_wl_GCJ='-Wl,'
16565 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16566 # not for PA HP-UX.
16572 lt_prog_compiler_pic_GCJ='+Z'
16575 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16576 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16579 irix5* | irix6* | nonstopux*)
16580 lt_prog_compiler_wl_GCJ='-Wl,'
16581 # PIC (with -KPIC) is the default.
16582 lt_prog_compiler_static_GCJ='-non_shared'
16586 lt_prog_compiler_pic_GCJ='-KPIC'
16587 lt_prog_compiler_static_GCJ='-Bstatic'
16591 case $cc_basename in
16593 lt_prog_compiler_wl_GCJ='-Wl,'
16594 lt_prog_compiler_pic_GCJ='-KPIC'
16595 lt_prog_compiler_static_GCJ='-static'
16597 pgcc* | pgf77* | pgf90* | pgf95*)
16598 # Portland Group compilers (*not* the Pentium gcc compiler,
16599 # which looks to be a dead project)
16600 lt_prog_compiler_wl_GCJ='-Wl,'
16601 lt_prog_compiler_pic_GCJ='-fpic'
16602 lt_prog_compiler_static_GCJ='-Bstatic'
16605 lt_prog_compiler_wl_GCJ='-Wl,'
16606 # All Alpha code is PIC.
16607 lt_prog_compiler_static_GCJ='-non_shared'
16612 osf3* | osf4* | osf5*)
16613 lt_prog_compiler_wl_GCJ='-Wl,'
16614 # All OSF/1 code is PIC.
16615 lt_prog_compiler_static_GCJ='-non_shared'
16619 lt_prog_compiler_pic_GCJ='-KPIC'
16620 lt_prog_compiler_static_GCJ='-Bstatic'
16621 case $cc_basename in
16622 f77* | f90* | f95*)
16623 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16625 lt_prog_compiler_wl_GCJ='-Wl,';;
16630 lt_prog_compiler_wl_GCJ='-Qoption ld '
16631 lt_prog_compiler_pic_GCJ='-PIC'
16632 lt_prog_compiler_static_GCJ='-Bstatic'
16635 sysv4 | sysv4.2uw2* | sysv4.3*)
16636 lt_prog_compiler_wl_GCJ='-Wl,'
16637 lt_prog_compiler_pic_GCJ='-KPIC'
16638 lt_prog_compiler_static_GCJ='-Bstatic'
16642 if test -d /usr/nec ;then
16643 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16644 lt_prog_compiler_static_GCJ='-Bstatic'
16648 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16649 lt_prog_compiler_wl_GCJ='-Wl,'
16650 lt_prog_compiler_pic_GCJ='-KPIC'
16651 lt_prog_compiler_static_GCJ='-Bstatic'
16655 lt_prog_compiler_wl_GCJ='-Wl,'
16656 lt_prog_compiler_can_build_shared_GCJ=no
16660 lt_prog_compiler_pic_GCJ='-pic'
16661 lt_prog_compiler_static_GCJ='-Bstatic'
16665 lt_prog_compiler_can_build_shared_GCJ=no
16670 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16671 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16674 # Check to make sure the PIC flag actually works.
16676 if test -n "$lt_prog_compiler_pic_GCJ"; then
16678 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16679 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16680 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16681 echo $ECHO_N "(cached) $ECHO_C" >&6
16683 lt_prog_compiler_pic_works_GCJ=no
16684 ac_outfile=conftest.$ac_objext
16685 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16686 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16687 # Insert the option either (1) after the last *FLAGS variable, or
16688 # (2) before a word containing "conftest.", or (3) at the end.
16689 # Note that $ac_compile itself does not contain backslashes and begins
16690 # with a dollar sign (not a hyphen), so the echo should work correctly.
16691 # The option is referenced via a variable to avoid confusing sed.
16692 lt_compile=`echo "$ac_compile" | $SED \
16693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16695 -e 's:$: $lt_compiler_flag:'`
16696 (eval echo "\"\$as_me:16696: $lt_compile\"" >&5)
16697 (eval "$lt_compile" 2>conftest.err)
16699 cat conftest.err >&5
16700 echo "$as_me:16700: \$? = $ac_status" >&5
16701 if (exit $ac_status) && test -s "$ac_outfile"; then
16702 # The compiler can only warn and ignore the option if not recognized
16703 # So say no if there are warnings other than the usual output.
16704 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16706 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16707 lt_prog_compiler_pic_works_GCJ=yes
16713 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16714 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16716 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16717 case $lt_prog_compiler_pic_GCJ in
16719 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16722 lt_prog_compiler_pic_GCJ=
16723 lt_prog_compiler_can_build_shared_GCJ=no
16728 # For platforms which do not support PIC, -DPIC is meaningless:
16730 lt_prog_compiler_pic_GCJ=
16733 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16738 # Check to make sure the static flag actually works.
16740 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16741 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16742 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16743 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16744 echo $ECHO_N "(cached) $ECHO_C" >&6
16746 lt_prog_compiler_static_works_GCJ=no
16747 save_LDFLAGS="$LDFLAGS"
16748 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16749 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16750 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16751 # The linker can only warn and ignore the option if not recognized
16752 # So say no if there are warnings
16753 if test -s conftest.err; then
16754 # Append any errors to the config.log.
16755 cat conftest.err 1>&5
16756 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16758 if diff conftest.exp conftest.er2 >/dev/null; then
16759 lt_prog_compiler_static_works_GCJ=yes
16762 lt_prog_compiler_static_works_GCJ=yes
16766 LDFLAGS="$save_LDFLAGS"
16769 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16770 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16772 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16775 lt_prog_compiler_static_GCJ=
16779 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16780 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16781 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16782 echo $ECHO_N "(cached) $ECHO_C" >&6
16784 lt_cv_prog_compiler_c_o_GCJ=no
16785 $rm -r conftest 2>/dev/null
16789 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16791 lt_compiler_flag="-o out/conftest2.$ac_objext"
16792 # Insert the option either (1) after the last *FLAGS variable, or
16793 # (2) before a word containing "conftest.", or (3) at the end.
16794 # Note that $ac_compile itself does not contain backslashes and begins
16795 # with a dollar sign (not a hyphen), so the echo should work correctly.
16796 lt_compile=`echo "$ac_compile" | $SED \
16797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16799 -e 's:$: $lt_compiler_flag:'`
16800 (eval echo "\"\$as_me:16800: $lt_compile\"" >&5)
16801 (eval "$lt_compile" 2>out/conftest.err)
16803 cat out/conftest.err >&5
16804 echo "$as_me:16804: \$? = $ac_status" >&5
16805 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16807 # The compiler can only warn and ignore the option if not recognized
16808 # So say no if there are warnings
16809 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16810 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16811 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16812 lt_cv_prog_compiler_c_o_GCJ=yes
16817 # SGI C++ compiler will create directory out/ii_files/ for
16818 # template instantiation
16819 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16820 $rm out/* && rmdir out
16826 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16827 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16830 hard_links="nottested"
16831 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16832 # do not overwrite the value of need_locks provided by the user
16833 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16834 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16839 ln conftest.a conftest.b 2>&5 || hard_links=no
16840 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16841 { echo "$as_me:$LINENO: result: $hard_links" >&5
16842 echo "${ECHO_T}$hard_links" >&6; }
16843 if test "$hard_links" = no; then
16844 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16845 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16852 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16853 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16856 allow_undefined_flag_GCJ=
16857 enable_shared_with_static_runtimes_GCJ=no
16859 archive_expsym_cmds_GCJ=
16860 old_archive_From_new_cmds_GCJ=
16861 old_archive_from_expsyms_cmds_GCJ=
16862 export_dynamic_flag_spec_GCJ=
16863 whole_archive_flag_spec_GCJ=
16864 thread_safe_flag_spec_GCJ=
16865 hardcode_libdir_flag_spec_GCJ=
16866 hardcode_libdir_flag_spec_ld_GCJ=
16867 hardcode_libdir_separator_GCJ=
16868 hardcode_direct_GCJ=no
16869 hardcode_minus_L_GCJ=no
16870 hardcode_shlibpath_var_GCJ=unsupported
16871 link_all_deplibs_GCJ=unknown
16872 hardcode_automatic_GCJ=no
16874 module_expsym_cmds_GCJ=
16875 always_export_symbols_GCJ=no
16876 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16877 # include_expsyms should be a list of space-separated symbols to be *always*
16878 # included in the symbol list
16879 include_expsyms_GCJ=
16880 # exclude_expsyms can be an extended regexp of symbols to exclude
16881 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16882 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16883 # as well as any symbol that contains `d'.
16884 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16885 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16886 # platforms (ab)use it in PIC code, but their linkers get confused if
16887 # the symbol is explicitly referenced. Since portable code cannot
16888 # rely on this symbol name, it's probably fine to never include it in
16889 # preloaded symbol tables.
16890 extract_expsyms_cmds=
16891 # Just being paranoid about ensuring that cc_basename is set.
16892 for cc_temp in $compiler""; do
16894 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16895 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16900 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16903 cygwin* | mingw* | pw32*)
16904 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16905 # When not using gcc, we currently assume that we are using
16906 # Microsoft Visual C++.
16907 if test "$GCC" != yes; then
16912 # we just hope/assume this is gcc and not c89 (= MSVC++)
16921 if test "$with_gnu_ld" = yes; then
16922 # If archive_cmds runs LD, not CC, wlarc should be empty
16925 # Set some defaults for GNU ld with shared library support. These
16926 # are reset later if shared libraries are not supported. Putting them
16927 # here allows them to be overridden if necessary.
16928 runpath_var=LD_RUN_PATH
16929 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16930 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16931 # ancient GNU ld didn't support --whole-archive et. al.
16932 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16933 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16935 whole_archive_flag_spec_GCJ=
16937 supports_anon_versioning=no
16938 case `$LD -v 2>/dev/null` in
16939 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16940 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16941 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16942 *\ 2.11.*) ;; # other 2.11 versions
16943 *) supports_anon_versioning=yes ;;
16946 # See if GNU ld supports shared libraries.
16948 aix3* | aix4* | aix5*)
16949 # On AIX/PPC, the GNU linker is very broken
16950 if test "$host_cpu" != ia64; then
16954 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16955 *** to be unable to reliably create shared libraries on AIX.
16956 *** Therefore, libtool is disabling shared libraries support. If you
16957 *** really care for shared libraries, you may want to modify your PATH
16958 *** so that a non-GNU linker is found, and then restart.
16965 archive_cmds_GCJ='$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)'
16966 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16967 hardcode_minus_L_GCJ=yes
16969 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16970 # that the semantics of dynamic libraries on AmigaOS, at least up
16971 # to version 4, is to share data among multiple programs linked
16972 # with the same dynamic library. Since this doesn't match the
16973 # behavior of shared libraries on other platforms, we can't use
16979 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16980 allow_undefined_flag_GCJ=unsupported
16981 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16982 # support --undefined. This deserves some investigation. FIXME
16983 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16989 cygwin* | mingw* | pw32*)
16990 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16991 # as there is no search path for DLLs.
16992 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16993 allow_undefined_flag_GCJ=unsupported
16994 always_export_symbols_GCJ=no
16995 enable_shared_with_static_runtimes_GCJ=yes
16996 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16998 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16999 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17000 # If the export-symbols file already is a .def file (1st line
17001 # is EXPORTS), use it as is; otherwise, prepend...
17002 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17003 cp $export_symbols $output_objdir/$soname.def;
17005 echo EXPORTS > $output_objdir/$soname.def;
17006 cat $export_symbols >> $output_objdir/$soname.def;
17008 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17015 hardcode_direct_GCJ=no
17016 hardcode_shlibpath_var_GCJ=no
17017 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17018 export_dynamic_flag_spec_GCJ='${wl}-E'
17019 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17020 # Instead, shared libraries are loaded at an image base (0x10000000 by
17021 # default) and relocated if they conflict, which is a slow very memory
17022 # consuming and fragmenting process. To avoid this, we pick a random,
17023 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17024 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17025 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17026 archive_expsym_cmds_GCJ='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'
17030 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17032 case $cc_basename,$host_cpu in
17033 pgcc*) # Portland Group C compiler
17034 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17035 tmp_addflag=' $pic_flag'
17037 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17038 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17039 tmp_addflag=' $pic_flag -Mnomain' ;;
17040 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17041 tmp_addflag=' -i_dynamic' ;;
17042 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17043 tmp_addflag=' -i_dynamic -nofor_main' ;;
17044 ifc* | ifort*) # Intel Fortran compiler
17045 tmp_addflag=' -nofor_main' ;;
17047 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17049 if test $supports_anon_versioning = yes; then
17050 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17051 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17052 $echo "local: *; };" >> $output_objdir/$libname.ver~
17053 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17061 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17062 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17065 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17066 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17071 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17075 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17076 *** create shared libraries on Solaris systems. Therefore, libtool
17077 *** is disabling shared libraries support. We urge you to upgrade GNU
17078 *** binutils to release 2.9.1 or newer. Another option is to modify
17079 *** your PATH or compiler configuration so that the native linker is
17080 *** used, and then restart.
17083 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17084 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17085 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17091 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17092 case `$LD -v 2>&1` in
17093 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17097 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17098 *** reliably create shared libraries on SCO systems. Therefore, libtool
17099 *** is disabling shared libraries support. We urge you to upgrade GNU
17100 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17101 *** your PATH or compiler configuration so that the native linker is
17102 *** used, and then restart.
17107 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17108 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17109 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17110 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17119 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17121 hardcode_direct_GCJ=yes
17122 hardcode_shlibpath_var_GCJ=no
17126 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17127 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17128 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17135 if test "$ld_shlibs_GCJ" = no; then
17137 hardcode_libdir_flag_spec_GCJ=
17138 export_dynamic_flag_spec_GCJ=
17139 whole_archive_flag_spec_GCJ=
17142 # PORTME fill in a description of your system's linker (not GNU ld)
17145 allow_undefined_flag_GCJ=unsupported
17146 always_export_symbols_GCJ=yes
17147 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17148 # Note: this linker hardcodes the directories in LIBPATH if there
17149 # are no directories specified by -L.
17150 hardcode_minus_L_GCJ=yes
17151 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17152 # Neither direct hardcoding nor static linking is supported with a
17154 hardcode_direct_GCJ=unsupported
17159 if test "$host_cpu" = ia64; then
17160 # On IA64, the linker does run time linking by default, so we don't
17161 # have to do anything special.
17162 aix_use_runtimelinking=no
17163 exp_sym_flag='-Bexport'
17166 # If we're using GNU nm, then we don't want the "-C" option.
17167 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17168 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17169 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17171 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17173 aix_use_runtimelinking=no
17175 # Test if we are trying to use run time linking or normal
17176 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17177 # need to do runtime linking.
17178 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17179 for ld_flag in $LDFLAGS; do
17180 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17181 aix_use_runtimelinking=yes
17188 exp_sym_flag='-bexport'
17189 no_entry_flag='-bnoentry'
17192 # When large executables or shared objects are built, AIX ld can
17193 # have problems creating the table of contents. If linking a library
17194 # or program results in "error TOC overflow" add -mminimal-toc to
17195 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17196 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17198 archive_cmds_GCJ=''
17199 hardcode_direct_GCJ=yes
17200 hardcode_libdir_separator_GCJ=':'
17201 link_all_deplibs_GCJ=yes
17203 if test "$GCC" = yes; then
17204 case $host_os in aix4.[012]|aix4.[012].*)
17205 # We only want to do this on AIX 4.2 and lower, the check
17206 # below for broken collect2 doesn't work under 4.3+
17207 collect2name=`${CC} -print-prog-name=collect2`
17208 if test -f "$collect2name" && \
17209 strings "$collect2name" | grep resolve_lib_name >/dev/null
17211 # We have reworked collect2
17212 hardcode_direct_GCJ=yes
17214 # We have old collect2
17215 hardcode_direct_GCJ=unsupported
17216 # It fails to find uninstalled libraries when the uninstalled
17217 # path is not listed in the libpath. Setting hardcode_minus_L
17218 # to unsupported forces relinking
17219 hardcode_minus_L_GCJ=yes
17220 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17221 hardcode_libdir_separator_GCJ=
17225 shared_flag='-shared'
17226 if test "$aix_use_runtimelinking" = yes; then
17227 shared_flag="$shared_flag "'${wl}-G'
17231 if test "$host_cpu" = ia64; then
17232 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17233 # chokes on -Wl,-G. The following line is correct:
17236 if test "$aix_use_runtimelinking" = yes; then
17237 shared_flag='${wl}-G'
17239 shared_flag='${wl}-bM:SRE'
17244 # It seems that -bexpall does not export symbols beginning with
17245 # underscore (_), so it is better to generate a list of symbols to export.
17246 always_export_symbols_GCJ=yes
17247 if test "$aix_use_runtimelinking" = yes; then
17248 # Warning - without using the other runtime loading flags (-brtl),
17249 # -berok will link without error, but may produce a broken library.
17250 allow_undefined_flag_GCJ='-berok'
17251 # Determine the default libpath from the value encoded in an empty executable.
17252 cat >conftest.$ac_ext <<_ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h. */
17267 rm -f conftest.$ac_objext conftest$ac_exeext
17268 if { (ac_try="$ac_link"
17269 case "(($ac_try" in
17270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271 *) ac_try_echo=$ac_try;;
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274 (eval "$ac_link") 2>conftest.er1
17276 grep -v '^ *+' conftest.er1 >conftest.err
17278 cat conftest.err >&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } && {
17281 test -z "$ac_c_werror_flag" ||
17282 test ! -s conftest.err
17283 } && test -s conftest$ac_exeext &&
17284 $as_test_x conftest$ac_exeext; then
17286 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17288 # Check for a 64-bit object if we didn't find anything.
17289 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17292 echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17299 conftest$ac_exeext conftest.$ac_ext
17300 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17302 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17303 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17305 if test "$host_cpu" = ia64; then
17306 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17307 allow_undefined_flag_GCJ="-z nodefs"
17308 archive_expsym_cmds_GCJ="\$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"
17310 # Determine the default libpath from the value encoded in an empty executable.
17311 cat >conftest.$ac_ext <<_ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h. */
17326 rm -f conftest.$ac_objext conftest$ac_exeext
17327 if { (ac_try="$ac_link"
17328 case "(($ac_try" in
17329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17330 *) ac_try_echo=$ac_try;;
17332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17333 (eval "$ac_link") 2>conftest.er1
17335 grep -v '^ *+' conftest.er1 >conftest.err
17337 cat conftest.err >&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } && {
17340 test -z "$ac_c_werror_flag" ||
17341 test ! -s conftest.err
17342 } && test -s conftest$ac_exeext &&
17343 $as_test_x conftest$ac_exeext; then
17345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17347 # Check for a 64-bit object if we didn't find anything.
17348 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17351 echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.$ac_ext >&5
17357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17358 conftest$ac_exeext conftest.$ac_ext
17359 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17361 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17362 # Warning - without using the other run time loading flags,
17363 # -berok will link without error, but may produce a broken library.
17364 no_undefined_flag_GCJ=' ${wl}-bernotok'
17365 allow_undefined_flag_GCJ=' ${wl}-berok'
17366 # Exported symbols can be pulled into shared objects from archives
17367 whole_archive_flag_spec_GCJ='$convenience'
17368 archive_cmds_need_lc_GCJ=yes
17369 # This is similar to how AIX traditionally builds its shared libraries.
17370 archive_expsym_cmds_GCJ="\$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'
17376 archive_cmds_GCJ='$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)'
17377 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17378 hardcode_minus_L_GCJ=yes
17379 # see comment about different semantics on the GNU ld section
17384 export_dynamic_flag_spec_GCJ=-rdynamic
17387 cygwin* | mingw* | pw32*)
17388 # When not using gcc, we currently assume that we are using
17389 # Microsoft Visual C++.
17390 # hardcode_libdir_flag_spec is actually meaningless, as there is
17391 # no search path for DLLs.
17392 hardcode_libdir_flag_spec_GCJ=' '
17393 allow_undefined_flag_GCJ=unsupported
17394 # Tell ltmain to make .lib files, not .a files.
17396 # Tell ltmain to make .dll files, not .so files.
17398 # FIXME: Setting linknames here is a bad hack.
17399 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17400 # The linker will automatically build a .lib file if we build a DLL.
17401 old_archive_From_new_cmds_GCJ='true'
17402 # FIXME: Should let the user specify the lib program.
17403 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17404 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17405 enable_shared_with_static_runtimes_GCJ=yes
17408 darwin* | rhapsody*)
17410 rhapsody* | darwin1.[012])
17411 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17414 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17415 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17417 case ${MACOSX_DEPLOYMENT_TARGET} in
17419 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17422 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17428 archive_cmds_need_lc_GCJ=no
17429 hardcode_direct_GCJ=no
17430 hardcode_automatic_GCJ=yes
17431 hardcode_shlibpath_var_GCJ=unsupported
17432 whole_archive_flag_spec_GCJ=''
17433 link_all_deplibs_GCJ=yes
17434 if test "$GCC" = yes ; then
17435 output_verbose_link_cmd='echo'
17436 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17437 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17438 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17439 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17440 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17442 case $cc_basename in
17444 output_verbose_link_cmd='echo'
17445 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17446 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17447 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17448 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17449 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17459 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17460 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17461 hardcode_shlibpath_var_GCJ=no
17468 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17469 # support. Future versions do this automatically, but an explicit c++rt0.o
17470 # does not break anything, and helps significantly (at the cost of a little
17473 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17474 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17475 hardcode_direct_GCJ=yes
17476 hardcode_shlibpath_var_GCJ=no
17479 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17481 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17482 hardcode_direct_GCJ=yes
17483 hardcode_minus_L_GCJ=yes
17484 hardcode_shlibpath_var_GCJ=no
17487 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17488 freebsd* | kfreebsd*-gnu | dragonfly*)
17489 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17490 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17491 hardcode_direct_GCJ=yes
17492 hardcode_shlibpath_var_GCJ=no
17496 if test "$GCC" = yes; then
17497 archive_cmds_GCJ='$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'
17499 archive_cmds_GCJ='$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'
17501 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17502 hardcode_libdir_separator_GCJ=:
17503 hardcode_direct_GCJ=yes
17505 # hardcode_minus_L: Not really in the search PATH,
17506 # but as the default location of the library.
17507 hardcode_minus_L_GCJ=yes
17508 export_dynamic_flag_spec_GCJ='${wl}-E'
17512 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17513 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17515 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17517 if test "$with_gnu_ld" = no; then
17518 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17519 hardcode_libdir_separator_GCJ=:
17521 hardcode_direct_GCJ=yes
17522 export_dynamic_flag_spec_GCJ='${wl}-E'
17524 # hardcode_minus_L: Not really in the search PATH,
17525 # but as the default location of the library.
17526 hardcode_minus_L_GCJ=yes
17531 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17534 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17537 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17540 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17546 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17549 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17552 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17556 if test "$with_gnu_ld" = no; then
17557 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17558 hardcode_libdir_separator_GCJ=:
17562 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17563 hardcode_direct_GCJ=no
17564 hardcode_shlibpath_var_GCJ=no
17567 hardcode_direct_GCJ=yes
17568 export_dynamic_flag_spec_GCJ='${wl}-E'
17570 # hardcode_minus_L: Not really in the search PATH,
17571 # but as the default location of the library.
17572 hardcode_minus_L_GCJ=yes
17578 irix5* | irix6* | nonstopux*)
17579 if test "$GCC" = yes; then
17580 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17582 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17583 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17585 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17586 hardcode_libdir_separator_GCJ=:
17587 link_all_deplibs_GCJ=yes
17591 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17592 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17594 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17596 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17597 hardcode_direct_GCJ=yes
17598 hardcode_shlibpath_var_GCJ=no
17602 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17603 hardcode_direct_GCJ=yes
17604 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17605 hardcode_libdir_separator_GCJ=:
17606 hardcode_shlibpath_var_GCJ=no
17610 hardcode_direct_GCJ=yes
17611 hardcode_shlibpath_var_GCJ=no
17612 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17613 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17614 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17615 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17616 export_dynamic_flag_spec_GCJ='${wl}-E'
17619 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17620 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17621 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17624 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17625 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17632 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17633 hardcode_minus_L_GCJ=yes
17634 allow_undefined_flag_GCJ=unsupported
17635 archive_cmds_GCJ='$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'
17636 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17640 if test "$GCC" = yes; then
17641 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17642 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17644 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17645 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17647 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17648 hardcode_libdir_separator_GCJ=:
17651 osf4* | osf5*) # as osf3* with the addition of -msym flag
17652 if test "$GCC" = yes; then
17653 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17654 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17655 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17657 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17658 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17659 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17660 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17662 # Both c and cxx compiler support -rpath directly
17663 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17665 hardcode_libdir_separator_GCJ=:
17669 no_undefined_flag_GCJ=' -z text'
17670 if test "$GCC" = yes; then
17672 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17673 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17674 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17677 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17678 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17679 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17681 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17682 hardcode_shlibpath_var_GCJ=no
17684 solaris2.[0-5] | solaris2.[0-5].*) ;;
17686 # The compiler driver will combine linker options so we
17687 # cannot just pass the convience library names through
17688 # without $wl, iff we do not link with $LD.
17689 # Luckily, gcc supports the same syntax we need for Sun Studio.
17690 # Supported since Solaris 2.6 (maybe 2.5.1?)
17693 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17695 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17698 link_all_deplibs_GCJ=yes
17702 if test "x$host_vendor" = xsequent; then
17703 # Use $CC to link under sequent, because it throws in some extra .o
17704 # files that make .init and .fini sections work.
17705 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17707 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17709 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17710 hardcode_direct_GCJ=yes
17711 hardcode_minus_L_GCJ=yes
17712 hardcode_shlibpath_var_GCJ=no
17716 case $host_vendor in
17718 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17719 hardcode_direct_GCJ=yes # is this really true???
17722 ## LD is ld it makes a PLAMLIB
17723 ## CC just makes a GrossModule.
17724 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17725 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17726 hardcode_direct_GCJ=no
17729 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17730 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17733 runpath_var='LD_RUN_PATH'
17734 hardcode_shlibpath_var_GCJ=no
17738 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17739 hardcode_shlibpath_var_GCJ=no
17740 export_dynamic_flag_spec_GCJ='-Bexport'
17744 if test -d /usr/nec; then
17745 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17746 hardcode_shlibpath_var_GCJ=no
17747 runpath_var=LD_RUN_PATH
17748 hardcode_runpath_var=yes
17753 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17754 no_undefined_flag_GCJ='${wl}-z,text'
17755 archive_cmds_need_lc_GCJ=no
17756 hardcode_shlibpath_var_GCJ=no
17757 runpath_var='LD_RUN_PATH'
17759 if test "$GCC" = yes; then
17760 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17761 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17763 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17764 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17768 sysv5* | sco3.2v5* | sco5v6*)
17769 # Note: We can NOT use -z defs as we might desire, because we do not
17770 # link with -lc, and that would cause any symbols used from libc to
17771 # always be unresolved, which means just about no library would
17772 # ever link correctly. If we're not using GNU ld we use -z text
17773 # though, which does catch some bad symbols but isn't as heavy-handed
17775 no_undefined_flag_GCJ='${wl}-z,text'
17776 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17777 archive_cmds_need_lc_GCJ=no
17778 hardcode_shlibpath_var_GCJ=no
17779 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17780 hardcode_libdir_separator_GCJ=':'
17781 link_all_deplibs_GCJ=yes
17782 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17783 runpath_var='LD_RUN_PATH'
17785 if test "$GCC" = yes; then
17786 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17787 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17789 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17790 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17795 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17796 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17797 hardcode_shlibpath_var_GCJ=no
17806 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17807 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17808 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17811 # Do we need to explicitly link libc?
17813 case "x$archive_cmds_need_lc_GCJ" in
17815 # Assume -lc should be added
17816 archive_cmds_need_lc_GCJ=yes
17818 if test "$enable_shared" = yes && test "$GCC" = yes; then
17819 case $archive_cmds_GCJ in
17821 # FIXME: we may have to deal with multi-command sequences.
17824 # Test whether the compiler implicitly links with -lc since on some
17825 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17826 # to ld, don't add -lc before -lgcc.
17827 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17828 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17830 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17833 (eval $ac_compile) 2>&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } 2>conftest.err; then
17839 libobjs=conftest.$ac_objext
17841 wl=$lt_prog_compiler_wl_GCJ
17842 pic_flag=$lt_prog_compiler_pic_GCJ
17848 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17849 allow_undefined_flag_GCJ=
17850 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17851 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }
17856 archive_cmds_need_lc_GCJ=no
17858 archive_cmds_need_lc_GCJ=yes
17860 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17862 cat conftest.err 1>&5
17865 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17866 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17873 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17874 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17875 library_names_spec=
17876 libname_spec='lib$name'
17880 postuninstall_cmds=
17884 shlibpath_overrides_runpath=unknown
17886 dynamic_linker="$host_os ld.so"
17887 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17888 if test "$GCC" = yes; then
17889 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17890 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17891 # if the path contains ";" then we assume it to be the separator
17892 # otherwise default to the standard path separator (i.e. ":") - it is
17893 # assumed that no part of a normal pathname contains ";" but that should
17894 # okay in the real world where ";" in dirpaths is itself problematic.
17895 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17900 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17902 need_lib_prefix=unknown
17903 hardcode_into_libs=no
17905 # when you set need_version to no, make sure it does not cause -set_version
17906 # flags to be left without arguments
17907 need_version=unknown
17912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17913 shlibpath_var=LIBPATH
17915 # AIX 3 has no versioning support, so we append a major version to the name.
17916 soname_spec='${libname}${release}${shared_ext}$major'
17923 hardcode_into_libs=yes
17924 if test "$host_cpu" = ia64; then
17925 # AIX 5 supports IA64
17926 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17927 shlibpath_var=LD_LIBRARY_PATH
17929 # With GCC up to 2.95.x, collect2 would create an import file
17930 # for dependence libraries. The import file would start with
17931 # the line `#! .'. This would cause the generated library to
17932 # depend on `.', always an invalid library. This was fixed in
17933 # development snapshots of GCC prior to 3.0.
17935 aix4 | aix4.[01] | aix4.[01].*)
17936 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17938 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17941 can_build_shared=no
17945 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17946 # soname into executable. Probably we can add versioning support to
17947 # collect2, so additional links can be useful in future.
17948 if test "$aix_use_runtimelinking" = yes; then
17949 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17950 # instead of lib<name>.a to let people know that these are not
17951 # typical AIX shared libraries.
17952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17954 # We preserve .a as extension for shared libraries through AIX4.2
17955 # and later when we are not doing run time linking.
17956 library_names_spec='${libname}${release}.a $libname.a'
17957 soname_spec='${libname}${release}${shared_ext}$major'
17959 shlibpath_var=LIBPATH
17964 library_names_spec='$libname.ixlibrary $libname.a'
17965 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17966 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'
17970 library_names_spec='${libname}${shared_ext}'
17971 dynamic_linker="$host_os ld.so"
17972 shlibpath_var=LIBRARY_PATH
17978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17979 soname_spec='${libname}${release}${shared_ext}$major'
17980 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17981 shlibpath_var=LD_LIBRARY_PATH
17982 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17983 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17984 # the default ld.so.conf also contains /usr/contrib/lib and
17985 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17986 # libtool to hard-code these into programs
17989 cygwin* | mingw* | pw32*)
17990 version_type=windows
17995 case $GCC,$host_os in
17996 yes,cygwin* | yes,mingw* | yes,pw32*)
17997 library_names_spec='$libname.dll.a'
17998 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17999 postinstall_cmds='base_file=`basename \${file}`~
18000 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18001 dldir=$destdir/`dirname \$dlpath`~
18002 test -d \$dldir || mkdir -p \$dldir~
18003 $install_prog $dir/$dlname \$dldir/$dlname~
18004 chmod a+x \$dldir/$dlname'
18005 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18006 dlpath=$dir/\$dldll~
18008 shlibpath_overrides_runpath=yes
18012 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18013 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18014 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18017 # MinGW DLLs use traditional 'lib' prefix
18018 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18019 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18020 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18021 # It is most probably a Windows format PATH printed by
18022 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18023 # path with ; separators, and with drive letters. We can handle the
18024 # drive letters (cygwin fileutils understands them), so leave them,
18025 # especially as we might pass files found there to a mingw objdump,
18026 # which wouldn't understand a cygwinified path. Ahh.
18027 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18029 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18033 # pw32 DLLs use 'pw' prefix rather than 'lib'
18034 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18040 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18043 dynamic_linker='Win32 ld.exe'
18044 # FIXME: first we should search . and the directory the executable is in
18048 darwin* | rhapsody*)
18049 dynamic_linker="$host_os dyld"
18050 version_type=darwin
18053 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18054 soname_spec='${libname}${release}${major}$shared_ext'
18055 shlibpath_overrides_runpath=yes
18056 shlibpath_var=DYLD_LIBRARY_PATH
18057 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18058 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18059 if test "$GCC" = yes; then
18060 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18062 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18064 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18072 soname_spec='${libname}${release}${shared_ext}$major'
18073 shlibpath_var=LD_LIBRARY_PATH
18084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18085 soname_spec='${libname}${release}${shared_ext}$major'
18086 shlibpath_var=LD_LIBRARY_PATH
18087 shlibpath_overrides_runpath=no
18088 hardcode_into_libs=yes
18089 dynamic_linker='GNU ld.so'
18092 freebsd* | dragonfly*)
18093 # DragonFly does not have aout. When/if they implement a new
18094 # versioning mechanism, adjust this.
18095 if test -x /usr/bin/objformat; then
18096 objformat=`/usr/bin/objformat`
18099 freebsd[123]*) objformat=aout ;;
18100 *) objformat=elf ;;
18103 version_type=freebsd-$objformat
18104 case $version_type in
18106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18115 shlibpath_var=LD_LIBRARY_PATH
18118 shlibpath_overrides_runpath=yes
18120 freebsd3.[01]* | freebsdelf3.[01]*)
18121 shlibpath_overrides_runpath=yes
18122 hardcode_into_libs=yes
18124 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18125 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18126 shlibpath_overrides_runpath=no
18127 hardcode_into_libs=yes
18129 freebsd*) # from 4.6 on
18130 shlibpath_overrides_runpath=yes
18131 hardcode_into_libs=yes
18140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18141 soname_spec='${libname}${release}${shared_ext}$major'
18142 shlibpath_var=LD_LIBRARY_PATH
18143 hardcode_into_libs=yes
18146 hpux9* | hpux10* | hpux11*)
18147 # Give a soname corresponding to the major version so that dld.sl refuses to
18148 # link against other versions.
18155 hardcode_into_libs=yes
18156 dynamic_linker="$host_os dld.so"
18157 shlibpath_var=LD_LIBRARY_PATH
18158 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18160 soname_spec='${libname}${release}${shared_ext}$major'
18161 if test "X$HPUX_IA64_MODE" = X32; then
18162 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18164 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18166 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18170 hardcode_into_libs=yes
18171 dynamic_linker="$host_os dld.sl"
18172 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18173 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18175 soname_spec='${libname}${release}${shared_ext}$major'
18176 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18181 dynamic_linker="$host_os dld.sl"
18182 shlibpath_var=SHLIB_PATH
18183 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18185 soname_spec='${libname}${release}${shared_ext}$major'
18188 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18189 postinstall_cmds='chmod 555 $lib'
18196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18197 soname_spec='${libname}${release}${shared_ext}$major'
18198 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18199 shlibpath_var=LD_LIBRARY_PATH
18200 shlibpath_overrides_runpath=no
18201 hardcode_into_libs=yes
18204 irix5* | irix6* | nonstopux*)
18206 nonstopux*) version_type=nonstopux ;;
18208 if test "$lt_cv_prog_gnu_ld" = yes; then
18216 soname_spec='${libname}${release}${shared_ext}$major'
18217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18219 irix5* | nonstopux*)
18220 libsuff= shlibsuff=
18223 case $LD in # libtool.m4 will add one of these switches to LD
18224 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18225 libsuff= shlibsuff= libmagic=32-bit;;
18226 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18227 libsuff=32 shlibsuff=N32 libmagic=N32;;
18228 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18229 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18230 *) libsuff= shlibsuff= libmagic=never-match;;
18234 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18235 shlibpath_overrides_runpath=no
18236 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18237 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18238 hardcode_into_libs=yes
18241 # No shared lib support for Linux oldld, aout, or coff.
18242 linux*oldld* | linux*aout* | linux*coff*)
18246 # This must be Linux ELF.
18251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18252 soname_spec='${libname}${release}${shared_ext}$major'
18253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18254 shlibpath_var=LD_LIBRARY_PATH
18255 shlibpath_overrides_runpath=no
18256 # This implies no fast_install, which is unacceptable.
18257 # Some rework will be needed to allow for fast_install
18258 # before this can be enabled.
18259 hardcode_into_libs=yes
18261 # Append ld.so.conf contents to the search path
18262 if test -f /etc/ld.so.conf; then
18263 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18264 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18267 # We used to test for /lib/ld.so.1 and disable shared libraries on
18268 # powerpc, because MkLinux only supported shared libraries with the
18269 # GNU dynamic linker. Since this was broken with cross compilers,
18270 # most powerpc-linux boxes support dynamic linking these days and
18271 # people can always --disable-shared, the test was removed, and we
18272 # assume the GNU/Linux dynamic linker is in use.
18273 dynamic_linker='GNU/Linux ld.so'
18280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18281 soname_spec='${libname}${release}${shared_ext}$major'
18282 shlibpath_var=LD_LIBRARY_PATH
18283 shlibpath_overrides_runpath=no
18284 hardcode_into_libs=yes
18285 dynamic_linker='GNU ld.so'
18292 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18295 dynamic_linker='NetBSD (a.out) ld.so'
18297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18298 soname_spec='${libname}${release}${shared_ext}$major'
18299 dynamic_linker='NetBSD ld.elf_so'
18301 shlibpath_var=LD_LIBRARY_PATH
18302 shlibpath_overrides_runpath=yes
18303 hardcode_into_libs=yes
18308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18309 shlibpath_var=LD_LIBRARY_PATH
18310 shlibpath_overrides_runpath=yes
18317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18318 soname_spec='${libname}${release}${shared_ext}$major'
18319 shlibpath_var=LD_LIBRARY_PATH
18320 shlibpath_overrides_runpath=yes
18325 sys_lib_dlsearch_path_spec="/usr/lib"
18327 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18329 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18330 *) need_version=no ;;
18332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18334 shlibpath_var=LD_LIBRARY_PATH
18335 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18337 openbsd2.[89] | openbsd2.[89].*)
18338 shlibpath_overrides_runpath=no
18341 shlibpath_overrides_runpath=yes
18345 shlibpath_overrides_runpath=yes
18350 libname_spec='$name'
18353 library_names_spec='$libname${shared_ext} $libname.a'
18354 dynamic_linker='OS/2 ld.exe'
18355 shlibpath_var=LIBPATH
18358 osf3* | osf4* | osf5*)
18362 soname_spec='${libname}${release}${shared_ext}$major'
18363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18364 shlibpath_var=LD_LIBRARY_PATH
18365 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18366 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18374 soname_spec='${libname}${release}${shared_ext}$major'
18375 shlibpath_var=LD_LIBRARY_PATH
18376 shlibpath_overrides_runpath=yes
18377 hardcode_into_libs=yes
18378 # ldd complains unless libraries are executable
18379 postinstall_cmds='chmod +x $lib'
18384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18385 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18386 shlibpath_var=LD_LIBRARY_PATH
18387 shlibpath_overrides_runpath=yes
18388 if test "$with_gnu_ld" = yes; then
18396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18397 soname_spec='${libname}${release}${shared_ext}$major'
18398 shlibpath_var=LD_LIBRARY_PATH
18399 case $host_vendor in
18401 shlibpath_overrides_runpath=no
18403 export_dynamic_flag_spec='${wl}-Blargedynsym'
18404 runpath_var=LD_RUN_PATH
18412 shlibpath_overrides_runpath=no
18413 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18419 if test -d /usr/nec ;then
18421 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18422 soname_spec='$libname${shared_ext}.$major'
18423 shlibpath_var=LD_LIBRARY_PATH
18427 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18428 version_type=freebsd-elf
18431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18432 soname_spec='${libname}${release}${shared_ext}$major'
18433 shlibpath_var=LD_LIBRARY_PATH
18434 hardcode_into_libs=yes
18435 if test "$with_gnu_ld" = yes; then
18436 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18437 shlibpath_overrides_runpath=no
18439 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18440 shlibpath_overrides_runpath=yes
18443 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18447 sys_lib_dlsearch_path_spec='/usr/lib'
18452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18453 soname_spec='${libname}${release}${shared_ext}$major'
18454 shlibpath_var=LD_LIBRARY_PATH
18461 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18462 echo "${ECHO_T}$dynamic_linker" >&6; }
18463 test "$dynamic_linker" = no && can_build_shared=no
18465 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18466 if test "$GCC" = yes; then
18467 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18470 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18471 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18472 hardcode_action_GCJ=
18473 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18474 test -n "$runpath_var_GCJ" || \
18475 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18477 # We can hardcode non-existant directories.
18478 if test "$hardcode_direct_GCJ" != no &&
18479 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18480 # have to relink, otherwise we might link with an installed library
18481 # when we should be linking with a yet-to-be-installed one
18482 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18483 test "$hardcode_minus_L_GCJ" != no; then
18484 # Linking always hardcodes the temporary library directory.
18485 hardcode_action_GCJ=relink
18487 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18488 hardcode_action_GCJ=immediate
18491 # We cannot hardcode anything, or else we can only hardcode existing
18493 hardcode_action_GCJ=unsupported
18495 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18496 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18498 if test "$hardcode_action_GCJ" = relink; then
18499 # Fast installation is not supported
18500 enable_fast_install=no
18501 elif test "$shlibpath_overrides_runpath" = yes ||
18502 test "$enable_shared" = no; then
18503 # Fast installation is not necessary
18504 enable_fast_install=needless
18508 # The else clause should only fire when bootstrapping the
18509 # libtool distribution, otherwise you forgot to ship ltmain.sh
18510 # with your package, and you will get complaints that there are
18511 # no rules to generate ltmain.sh.
18512 if test -f "$ltmain"; then
18513 # See if we are running on zsh, and set the options which allow our commands through
18514 # without removal of \ escapes.
18515 if test -n "${ZSH_VERSION+set}" ; then
18516 setopt NO_GLOB_SUBST
18518 # Now quote all the things that may contain metacharacters while being
18519 # careful not to overquote the AC_SUBSTed values. We take copies of the
18520 # variables and quote the copies for generation of the libtool script.
18521 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18523 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18524 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18525 deplibs_check_method reload_flag reload_cmds need_locks \
18526 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18527 lt_cv_sys_global_symbol_to_c_name_address \
18528 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18529 old_postinstall_cmds old_postuninstall_cmds \
18533 lt_prog_compiler_wl_GCJ \
18534 lt_prog_compiler_pic_GCJ \
18535 lt_prog_compiler_static_GCJ \
18536 lt_prog_compiler_no_builtin_flag_GCJ \
18537 export_dynamic_flag_spec_GCJ \
18538 thread_safe_flag_spec_GCJ \
18539 whole_archive_flag_spec_GCJ \
18540 enable_shared_with_static_runtimes_GCJ \
18541 old_archive_cmds_GCJ \
18542 old_archive_from_new_cmds_GCJ \
18543 predep_objects_GCJ \
18544 postdep_objects_GCJ \
18547 compiler_lib_search_path_GCJ \
18549 archive_expsym_cmds_GCJ \
18550 postinstall_cmds_GCJ \
18551 postuninstall_cmds_GCJ \
18552 old_archive_from_expsyms_cmds_GCJ \
18553 allow_undefined_flag_GCJ \
18554 no_undefined_flag_GCJ \
18555 export_symbols_cmds_GCJ \
18556 hardcode_libdir_flag_spec_GCJ \
18557 hardcode_libdir_flag_spec_ld_GCJ \
18558 hardcode_libdir_separator_GCJ \
18559 hardcode_automatic_GCJ \
18561 module_expsym_cmds_GCJ \
18562 lt_cv_prog_compiler_c_o_GCJ \
18563 exclude_expsyms_GCJ \
18564 include_expsyms_GCJ; do
18567 old_archive_cmds_GCJ | \
18568 old_archive_from_new_cmds_GCJ | \
18569 archive_cmds_GCJ | \
18570 archive_expsym_cmds_GCJ | \
18571 module_cmds_GCJ | \
18572 module_expsym_cmds_GCJ | \
18573 old_archive_from_expsyms_cmds_GCJ | \
18574 export_symbols_cmds_GCJ | \
18575 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18576 postinstall_cmds | postuninstall_cmds | \
18577 old_postinstall_cmds | old_postuninstall_cmds | \
18578 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18579 # Double-quote double-evaled strings.
18580 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18583 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18589 *'\$0 --fallback-echo"')
18590 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18596 cat <<__EOF__ >> "$cfgfile"
18597 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18599 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18601 # Shell to use when invoking shell scripts.
18604 # Whether or not to build shared libraries.
18605 build_libtool_libs=$enable_shared
18607 # Whether or not to build static libraries.
18608 build_old_libs=$enable_static
18610 # Whether or not to add -lc for building shared libraries.
18611 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18613 # Whether or not to disallow shared libs when runtime libs are static
18614 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18616 # Whether or not to optimize for fast installation.
18617 fast_install=$enable_fast_install
18620 host_alias=$host_alias
18624 # The build system.
18625 build_alias=$build_alias
18629 # An echo program that does not interpret backslashes.
18634 AR_FLAGS=$lt_AR_FLAGS
18639 # LTCC compiler flags.
18640 LTCFLAGS=$lt_LTCFLAGS
18642 # A language-specific compiler.
18643 CC=$lt_compiler_GCJ
18645 # Is the compiler the GNU C compiler?
18651 # The linker used to build libraries.
18654 # Whether we need hard or soft links.
18657 # A BSD-compatible nm program.
18660 # A symbol stripping program
18663 # Used to examine libraries when file_magic_cmd begins "file"
18664 MAGIC_CMD=$MAGIC_CMD
18666 # Used on cygwin: DLL creation program.
18669 # Used on cygwin: object dumper.
18672 # Used on cygwin: assembler.
18675 # The name of the directory that contains temporary libtool files.
18678 # How to create reloadable object files.
18679 reload_flag=$lt_reload_flag
18680 reload_cmds=$lt_reload_cmds
18682 # How to pass a linker flag through the compiler.
18683 wl=$lt_lt_prog_compiler_wl_GCJ
18685 # Object file suffix (normally "o").
18686 objext="$ac_objext"
18688 # Old archive suffix (normally "a").
18691 # Shared library suffix (normally ".so").
18692 shrext_cmds='$shrext_cmds'
18694 # Executable file suffix (normally "").
18697 # Additional compiler flags for building library objects.
18698 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18701 # What is the maximum length of a command?
18702 max_cmd_len=$lt_cv_sys_max_cmd_len
18704 # Does compiler simultaneously support -c and -o options?
18705 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18707 # Must we lock files when doing compilation?
18708 need_locks=$lt_need_locks
18710 # Do we need the lib prefix for modules?
18711 need_lib_prefix=$need_lib_prefix
18713 # Do we need a version for libraries?
18714 need_version=$need_version
18716 # Whether dlopen is supported.
18717 dlopen_support=$enable_dlopen
18719 # Whether dlopen of programs is supported.
18720 dlopen_self=$enable_dlopen_self
18722 # Whether dlopen of statically linked programs is supported.
18723 dlopen_self_static=$enable_dlopen_self_static
18725 # Compiler flag to prevent dynamic linking.
18726 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18728 # Compiler flag to turn off builtin functions.
18729 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18731 # Compiler flag to allow reflexive dlopens.
18732 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18734 # Compiler flag to generate shared objects directly from archives.
18735 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18737 # Compiler flag to generate thread-safe objects.
18738 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18740 # Library versioning type.
18741 version_type=$version_type
18743 # Format of library name prefix.
18744 libname_spec=$lt_libname_spec
18746 # List of archive names. First name is the real one, the rest are links.
18747 # The last name is the one that the linker finds with -lNAME.
18748 library_names_spec=$lt_library_names_spec
18750 # The coded name of the library, if different from the real name.
18751 soname_spec=$lt_soname_spec
18753 # Commands used to build and install an old-style archive.
18755 old_archive_cmds=$lt_old_archive_cmds_GCJ
18756 old_postinstall_cmds=$lt_old_postinstall_cmds
18757 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18759 # Create an old-style archive from a shared archive.
18760 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18762 # Create a temporary old-style archive to link instead of a shared archive.
18763 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18765 # Commands used to build and install a shared archive.
18766 archive_cmds=$lt_archive_cmds_GCJ
18767 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18768 postinstall_cmds=$lt_postinstall_cmds
18769 postuninstall_cmds=$lt_postuninstall_cmds
18771 # Commands used to build a loadable module (assumed same as above if empty)
18772 module_cmds=$lt_module_cmds_GCJ
18773 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18775 # Commands to strip libraries.
18776 old_striplib=$lt_old_striplib
18777 striplib=$lt_striplib
18779 # Dependencies to place before the objects being linked to create a
18781 predep_objects=$lt_predep_objects_GCJ
18783 # Dependencies to place after the objects being linked to create a
18785 postdep_objects=$lt_postdep_objects_GCJ
18787 # Dependencies to place before the objects being linked to create a
18789 predeps=$lt_predeps_GCJ
18791 # Dependencies to place after the objects being linked to create a
18793 postdeps=$lt_postdeps_GCJ
18795 # The library search path used internally by the compiler when linking
18796 # a shared library.
18797 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18799 # Method to check whether dependent libraries are shared objects.
18800 deplibs_check_method=$lt_deplibs_check_method
18802 # Command to use when deplibs_check_method == file_magic.
18803 file_magic_cmd=$lt_file_magic_cmd
18805 # Flag that allows shared libraries with undefined symbols to be built.
18806 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18808 # Flag that forces no undefined symbols.
18809 no_undefined_flag=$lt_no_undefined_flag_GCJ
18811 # Commands used to finish a libtool library installation in a directory.
18812 finish_cmds=$lt_finish_cmds
18814 # Same as above, but a single script fragment to be evaled but not shown.
18815 finish_eval=$lt_finish_eval
18817 # Take the output of nm and produce a listing of raw symbols and C names.
18818 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18820 # Transform the output of nm in a proper C declaration
18821 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18823 # Transform the output of nm in a C name address pair
18824 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18826 # This is the shared library runtime path variable.
18827 runpath_var=$runpath_var
18829 # This is the shared library path variable.
18830 shlibpath_var=$shlibpath_var
18832 # Is shlibpath searched before the hard-coded library search path?
18833 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18835 # How to hardcode a shared library path into an executable.
18836 hardcode_action=$hardcode_action_GCJ
18838 # Whether we should hardcode library paths into libraries.
18839 hardcode_into_libs=$hardcode_into_libs
18841 # Flag to hardcode \$libdir into a binary during linking.
18842 # This must work even if \$libdir does not exist.
18843 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18845 # If ld is used when linking, flag to hardcode \$libdir into
18846 # a binary during linking. This must work even if \$libdir does
18848 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18850 # Whether we need a single -rpath flag with a separated argument.
18851 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18853 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18854 # resulting binary.
18855 hardcode_direct=$hardcode_direct_GCJ
18857 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18858 # resulting binary.
18859 hardcode_minus_L=$hardcode_minus_L_GCJ
18861 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18862 # the resulting binary.
18863 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18865 # Set to yes if building a shared library automatically hardcodes DIR into the library
18866 # and all subsequent libraries and executables linked against it.
18867 hardcode_automatic=$hardcode_automatic_GCJ
18869 # Variables whose values should be saved in libtool wrapper scripts and
18870 # restored at relink time.
18871 variables_saved_for_relink="$variables_saved_for_relink"
18873 # Whether libtool must link a program against all its dependency libraries.
18874 link_all_deplibs=$link_all_deplibs_GCJ
18876 # Compile-time system search path for libraries
18877 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18879 # Run-time system search path for libraries
18880 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18882 # Fix the shell variable \$srcfile for the compiler.
18883 fix_srcfile_path="$fix_srcfile_path_GCJ"
18885 # Set to yes if exported symbols are required.
18886 always_export_symbols=$always_export_symbols_GCJ
18888 # The commands to list exported symbols.
18889 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18891 # The commands to extract the exported symbol list from a shared archive.
18892 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18894 # Symbols that should not be listed in the preloaded symbols.
18895 exclude_expsyms=$lt_exclude_expsyms_GCJ
18897 # Symbols that must always be exported.
18898 include_expsyms=$lt_include_expsyms_GCJ
18900 # ### END LIBTOOL TAG CONFIG: $tagname
18906 # If there is no Makefile yet, we rely on a make rule to execute
18907 # `config.status --recheck' to rerun these tests and create the
18908 # libtool script then.
18909 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18910 if test -f "$ltmain_in"; then
18911 test -f Makefile && make "$ltmain"
18917 ac_cpp='$CPP $CPPFLAGS'
18918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18932 # Source file extension for RC test sources.
18935 # Object file extension for compiled RC test sources.
18939 # Code to be used in simple compile tests
18940 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18942 # Code to be used in simple link tests
18943 lt_simple_link_test_code="$lt_simple_compile_test_code"
18945 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18947 # If no C compiler was specified, use CC.
18950 # If no C compiler flags were specified, use CFLAGS.
18951 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18953 # Allow CC to be a program name with arguments.
18957 # save warnings/boilerplate of simple test code
18958 ac_outfile=conftest.$ac_objext
18959 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18960 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18961 _lt_compiler_boilerplate=`cat conftest.err`
18964 ac_outfile=conftest.$ac_objext
18965 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18966 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18967 _lt_linker_boilerplate=`cat conftest.err`
18971 # Allow CC to be a program name with arguments.
18976 for cc_temp in $compiler""; do
18978 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18979 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18984 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18986 lt_cv_prog_compiler_c_o_RC=yes
18988 # The else clause should only fire when bootstrapping the
18989 # libtool distribution, otherwise you forgot to ship ltmain.sh
18990 # with your package, and you will get complaints that there are
18991 # no rules to generate ltmain.sh.
18992 if test -f "$ltmain"; then
18993 # See if we are running on zsh, and set the options which allow our commands through
18994 # without removal of \ escapes.
18995 if test -n "${ZSH_VERSION+set}" ; then
18996 setopt NO_GLOB_SUBST
18998 # Now quote all the things that may contain metacharacters while being
18999 # careful not to overquote the AC_SUBSTed values. We take copies of the
19000 # variables and quote the copies for generation of the libtool script.
19001 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19003 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19004 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19005 deplibs_check_method reload_flag reload_cmds need_locks \
19006 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19007 lt_cv_sys_global_symbol_to_c_name_address \
19008 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19009 old_postinstall_cmds old_postuninstall_cmds \
19013 lt_prog_compiler_wl_RC \
19014 lt_prog_compiler_pic_RC \
19015 lt_prog_compiler_static_RC \
19016 lt_prog_compiler_no_builtin_flag_RC \
19017 export_dynamic_flag_spec_RC \
19018 thread_safe_flag_spec_RC \
19019 whole_archive_flag_spec_RC \
19020 enable_shared_with_static_runtimes_RC \
19021 old_archive_cmds_RC \
19022 old_archive_from_new_cmds_RC \
19023 predep_objects_RC \
19024 postdep_objects_RC \
19027 compiler_lib_search_path_RC \
19029 archive_expsym_cmds_RC \
19030 postinstall_cmds_RC \
19031 postuninstall_cmds_RC \
19032 old_archive_from_expsyms_cmds_RC \
19033 allow_undefined_flag_RC \
19034 no_undefined_flag_RC \
19035 export_symbols_cmds_RC \
19036 hardcode_libdir_flag_spec_RC \
19037 hardcode_libdir_flag_spec_ld_RC \
19038 hardcode_libdir_separator_RC \
19039 hardcode_automatic_RC \
19041 module_expsym_cmds_RC \
19042 lt_cv_prog_compiler_c_o_RC \
19043 exclude_expsyms_RC \
19044 include_expsyms_RC; do
19047 old_archive_cmds_RC | \
19048 old_archive_from_new_cmds_RC | \
19049 archive_cmds_RC | \
19050 archive_expsym_cmds_RC | \
19052 module_expsym_cmds_RC | \
19053 old_archive_from_expsyms_cmds_RC | \
19054 export_symbols_cmds_RC | \
19055 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19056 postinstall_cmds | postuninstall_cmds | \
19057 old_postinstall_cmds | old_postuninstall_cmds | \
19058 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19059 # Double-quote double-evaled strings.
19060 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19063 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19069 *'\$0 --fallback-echo"')
19070 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19076 cat <<__EOF__ >> "$cfgfile"
19077 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19079 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19081 # Shell to use when invoking shell scripts.
19084 # Whether or not to build shared libraries.
19085 build_libtool_libs=$enable_shared
19087 # Whether or not to build static libraries.
19088 build_old_libs=$enable_static
19090 # Whether or not to add -lc for building shared libraries.
19091 build_libtool_need_lc=$archive_cmds_need_lc_RC
19093 # Whether or not to disallow shared libs when runtime libs are static
19094 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19096 # Whether or not to optimize for fast installation.
19097 fast_install=$enable_fast_install
19100 host_alias=$host_alias
19104 # The build system.
19105 build_alias=$build_alias
19109 # An echo program that does not interpret backslashes.
19114 AR_FLAGS=$lt_AR_FLAGS
19119 # LTCC compiler flags.
19120 LTCFLAGS=$lt_LTCFLAGS
19122 # A language-specific compiler.
19125 # Is the compiler the GNU C compiler?
19131 # The linker used to build libraries.
19134 # Whether we need hard or soft links.
19137 # A BSD-compatible nm program.
19140 # A symbol stripping program
19143 # Used to examine libraries when file_magic_cmd begins "file"
19144 MAGIC_CMD=$MAGIC_CMD
19146 # Used on cygwin: DLL creation program.
19149 # Used on cygwin: object dumper.
19152 # Used on cygwin: assembler.
19155 # The name of the directory that contains temporary libtool files.
19158 # How to create reloadable object files.
19159 reload_flag=$lt_reload_flag
19160 reload_cmds=$lt_reload_cmds
19162 # How to pass a linker flag through the compiler.
19163 wl=$lt_lt_prog_compiler_wl_RC
19165 # Object file suffix (normally "o").
19166 objext="$ac_objext"
19168 # Old archive suffix (normally "a").
19171 # Shared library suffix (normally ".so").
19172 shrext_cmds='$shrext_cmds'
19174 # Executable file suffix (normally "").
19177 # Additional compiler flags for building library objects.
19178 pic_flag=$lt_lt_prog_compiler_pic_RC
19181 # What is the maximum length of a command?
19182 max_cmd_len=$lt_cv_sys_max_cmd_len
19184 # Does compiler simultaneously support -c and -o options?
19185 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19187 # Must we lock files when doing compilation?
19188 need_locks=$lt_need_locks
19190 # Do we need the lib prefix for modules?
19191 need_lib_prefix=$need_lib_prefix
19193 # Do we need a version for libraries?
19194 need_version=$need_version
19196 # Whether dlopen is supported.
19197 dlopen_support=$enable_dlopen
19199 # Whether dlopen of programs is supported.
19200 dlopen_self=$enable_dlopen_self
19202 # Whether dlopen of statically linked programs is supported.
19203 dlopen_self_static=$enable_dlopen_self_static
19205 # Compiler flag to prevent dynamic linking.
19206 link_static_flag=$lt_lt_prog_compiler_static_RC
19208 # Compiler flag to turn off builtin functions.
19209 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19211 # Compiler flag to allow reflexive dlopens.
19212 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19214 # Compiler flag to generate shared objects directly from archives.
19215 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19217 # Compiler flag to generate thread-safe objects.
19218 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19220 # Library versioning type.
19221 version_type=$version_type
19223 # Format of library name prefix.
19224 libname_spec=$lt_libname_spec
19226 # List of archive names. First name is the real one, the rest are links.
19227 # The last name is the one that the linker finds with -lNAME.
19228 library_names_spec=$lt_library_names_spec
19230 # The coded name of the library, if different from the real name.
19231 soname_spec=$lt_soname_spec
19233 # Commands used to build and install an old-style archive.
19235 old_archive_cmds=$lt_old_archive_cmds_RC
19236 old_postinstall_cmds=$lt_old_postinstall_cmds
19237 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19239 # Create an old-style archive from a shared archive.
19240 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19242 # Create a temporary old-style archive to link instead of a shared archive.
19243 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19245 # Commands used to build and install a shared archive.
19246 archive_cmds=$lt_archive_cmds_RC
19247 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19248 postinstall_cmds=$lt_postinstall_cmds
19249 postuninstall_cmds=$lt_postuninstall_cmds
19251 # Commands used to build a loadable module (assumed same as above if empty)
19252 module_cmds=$lt_module_cmds_RC
19253 module_expsym_cmds=$lt_module_expsym_cmds_RC
19255 # Commands to strip libraries.
19256 old_striplib=$lt_old_striplib
19257 striplib=$lt_striplib
19259 # Dependencies to place before the objects being linked to create a
19261 predep_objects=$lt_predep_objects_RC
19263 # Dependencies to place after the objects being linked to create a
19265 postdep_objects=$lt_postdep_objects_RC
19267 # Dependencies to place before the objects being linked to create a
19269 predeps=$lt_predeps_RC
19271 # Dependencies to place after the objects being linked to create a
19273 postdeps=$lt_postdeps_RC
19275 # The library search path used internally by the compiler when linking
19276 # a shared library.
19277 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19279 # Method to check whether dependent libraries are shared objects.
19280 deplibs_check_method=$lt_deplibs_check_method
19282 # Command to use when deplibs_check_method == file_magic.
19283 file_magic_cmd=$lt_file_magic_cmd
19285 # Flag that allows shared libraries with undefined symbols to be built.
19286 allow_undefined_flag=$lt_allow_undefined_flag_RC
19288 # Flag that forces no undefined symbols.
19289 no_undefined_flag=$lt_no_undefined_flag_RC
19291 # Commands used to finish a libtool library installation in a directory.
19292 finish_cmds=$lt_finish_cmds
19294 # Same as above, but a single script fragment to be evaled but not shown.
19295 finish_eval=$lt_finish_eval
19297 # Take the output of nm and produce a listing of raw symbols and C names.
19298 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19300 # Transform the output of nm in a proper C declaration
19301 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19303 # Transform the output of nm in a C name address pair
19304 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19306 # This is the shared library runtime path variable.
19307 runpath_var=$runpath_var
19309 # This is the shared library path variable.
19310 shlibpath_var=$shlibpath_var
19312 # Is shlibpath searched before the hard-coded library search path?
19313 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19315 # How to hardcode a shared library path into an executable.
19316 hardcode_action=$hardcode_action_RC
19318 # Whether we should hardcode library paths into libraries.
19319 hardcode_into_libs=$hardcode_into_libs
19321 # Flag to hardcode \$libdir into a binary during linking.
19322 # This must work even if \$libdir does not exist.
19323 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19325 # If ld is used when linking, flag to hardcode \$libdir into
19326 # a binary during linking. This must work even if \$libdir does
19328 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19330 # Whether we need a single -rpath flag with a separated argument.
19331 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19333 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19334 # resulting binary.
19335 hardcode_direct=$hardcode_direct_RC
19337 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19338 # resulting binary.
19339 hardcode_minus_L=$hardcode_minus_L_RC
19341 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19342 # the resulting binary.
19343 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19345 # Set to yes if building a shared library automatically hardcodes DIR into the library
19346 # and all subsequent libraries and executables linked against it.
19347 hardcode_automatic=$hardcode_automatic_RC
19349 # Variables whose values should be saved in libtool wrapper scripts and
19350 # restored at relink time.
19351 variables_saved_for_relink="$variables_saved_for_relink"
19353 # Whether libtool must link a program against all its dependency libraries.
19354 link_all_deplibs=$link_all_deplibs_RC
19356 # Compile-time system search path for libraries
19357 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19359 # Run-time system search path for libraries
19360 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19362 # Fix the shell variable \$srcfile for the compiler.
19363 fix_srcfile_path="$fix_srcfile_path_RC"
19365 # Set to yes if exported symbols are required.
19366 always_export_symbols=$always_export_symbols_RC
19368 # The commands to list exported symbols.
19369 export_symbols_cmds=$lt_export_symbols_cmds_RC
19371 # The commands to extract the exported symbol list from a shared archive.
19372 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19374 # Symbols that should not be listed in the preloaded symbols.
19375 exclude_expsyms=$lt_exclude_expsyms_RC
19377 # Symbols that must always be exported.
19378 include_expsyms=$lt_include_expsyms_RC
19380 # ### END LIBTOOL TAG CONFIG: $tagname
19386 # If there is no Makefile yet, we rely on a make rule to execute
19387 # `config.status --recheck' to rerun these tests and create the
19388 # libtool script then.
19389 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19390 if test -f "$ltmain_in"; then
19391 test -f Makefile && make "$ltmain"
19397 ac_cpp='$CPP $CPPFLAGS'
19398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19407 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19408 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19409 { (exit 1); exit 1; }; }
19413 # Append the new tag name to the list of available tags.
19414 if test -n "$tagname" ; then
19415 available_tags="$available_tags $tagname"
19421 # Now substitute the updated list of available tags.
19422 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19423 mv "${ofile}T" "$ofile"
19427 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19428 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19429 { (exit 1); exit 1; }; }
19435 # This can be used to rebuild libtool when needed
19436 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19438 # Always use our own libtool.
19439 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19441 # Prevent multiple expansion
19454 # Check whether --with-system-libtool was given.
19455 if test "${with_system_libtool+set}" = set; then
19456 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
19457 set dummy libtool; ac_word=$2
19458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19460 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19461 echo $ECHO_N "(cached) $ECHO_C" >&6
19465 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19469 as_dummy="$PATH:/usr/local/bin"
19470 for as_dir in $as_dummy
19473 test -z "$as_dir" && as_dir=.
19474 for ac_exec_ext in '' $ac_executable_extensions; do
19475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19476 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19487 LIBTOOL=$ac_cv_path_LIBTOOL
19488 if test -n "$LIBTOOL"; then
19489 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19490 echo "${ECHO_T}$LIBTOOL" >&6; }
19492 { echo "$as_me:$LINENO: result: no" >&5
19493 echo "${ECHO_T}no" >&6; }
19499 LIBTOOL="`pwd`/libtool"
19519 # Check whether --enable-strict-dependencies was given.
19520 if test "${enable_strict_dependencies+set}" = set; then
19521 enableval=$enable_strict_dependencies;
19525 docdir='${datadir}/doc/freeradius'
19526 { echo "$as_me:$LINENO: checking docdir" >&5
19527 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
19529 # Check whether --with-docdir was given.
19530 if test "${with_docdir+set}" = set; then
19531 withval=$with_docdir; case "$withval" in
19537 [\\/$]* | ?:[\\/]* )
19541 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19542 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19543 { (exit 1); exit 1; }; }
19550 { echo "$as_me:$LINENO: result: $docdir" >&5
19551 echo "${ECHO_T}$docdir" >&6; }
19552 if test "x$docdir" = xno; then
19553 { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
19554 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19557 logdir='${localstatedir}/log/radius'
19558 { echo "$as_me:$LINENO: checking logdir" >&5
19559 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
19561 # Check whether --with-logdir was given.
19562 if test "${with_logdir+set}" = set; then
19563 withval=$with_logdir; case "$withval" in
19565 { { echo "$as_me:$LINENO: error: Need logdir" >&5
19566 echo "$as_me: error: Need logdir" >&2;}
19567 { (exit 1); exit 1; }; }
19571 [\\/$]* | ?:[\\/]* )
19575 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19576 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19577 { (exit 1); exit 1; }; }
19584 { echo "$as_me:$LINENO: result: $logdir" >&5
19585 echo "${ECHO_T}$logdir" >&6; }
19587 radacctdir='${logdir}/radacct'
19588 { echo "$as_me:$LINENO: checking radacctdir" >&5
19589 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
19591 # Check whether --with-radacctdir was given.
19592 if test "${with_radacctdir+set}" = set; then
19593 withval=$with_radacctdir; case "$withval" in
19595 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19596 echo "$as_me: error: Need radacctdir" >&2;}
19597 { (exit 1); exit 1; }; }
19601 [\\/$]* | ?:[\\/]* )
19602 radacctdir="$withval"
19605 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19606 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19607 { (exit 1); exit 1; }; }
19614 { echo "$as_me:$LINENO: result: $radacctdir" >&5
19615 echo "${ECHO_T}$radacctdir" >&6; }
19617 raddbdir='${sysconfdir}/raddb'
19618 { echo "$as_me:$LINENO: checking raddbdir" >&5
19619 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
19621 # Check whether --with-raddbdir was given.
19622 if test "${with_raddbdir+set}" = set; then
19623 withval=$with_raddbdir; case "$withval" in
19625 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19626 echo "$as_me: error: Need raddbdir" >&2;}
19627 { (exit 1); exit 1; }; }
19631 [\\/$]* | ?:[\\/]* )
19632 raddbdir="$withval"
19635 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19636 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19637 { (exit 1); exit 1; }; }
19644 { echo "$as_me:$LINENO: result: $raddbdir" >&5
19645 echo "${ECHO_T}$raddbdir" >&6; }
19649 # Check whether --with-ascend-binary was given.
19650 if test "${with_ascend_binary+set}" = set; then
19651 withval=$with_ascend_binary; case "$withval" in
19660 if test "X$ASCEND_BINARY" = "Xyes"; then
19662 cat >>confdefs.h <<\_ACEOF
19663 #define ASCEND_BINARY
19670 # Check whether --with-threads was given.
19671 if test "${with_threads+set}" = set; then
19672 withval=$with_threads; case "$withval" in
19684 # Check whether --with-snmp was given.
19685 if test "${with_snmp+set}" = set; then
19686 withval=$with_snmp; case "$withval" in
19697 # Check whether --with-snmp-include-dir was given.
19698 if test "${with_snmp_include_dir+set}" = set; then
19699 withval=$with_snmp_include_dir; case "$withval" in
19709 # Check whether --with-vmps was given.
19710 if test "${with_vmps+set}" = set; then
19711 withval=$with_vmps; case "$withval" in
19720 if test "x$WITH_VMPS" = "xyes"; then
19722 cat >>confdefs.h <<\_ACEOF
19723 #define WITH_VMPS 1
19729 # Check whether --with-dhcp was given.
19730 if test "${with_dhcp+set}" = set; then
19731 withval=$with_dhcp; case "$withval" in
19734 cat >>confdefs.h <<\_ACEOF
19735 #define WITH_DHCP 1
19749 # Check whether --with-static_modules was given.
19750 if test "${with_static_modules+set}" = set; then
19751 withval=$with_static_modules;
19752 for i in $withval; do
19753 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19761 # Check whether --with-modules was given.
19762 if test "${with_modules+set}" = set; then
19763 withval=$with_modules;
19764 for i in $withval; do
19765 MODULES="$MODULES $i"
19771 # Check whether --enable-developer was given.
19772 if test "${enable_developer+set}" = set; then
19773 enableval=$enable_developer; case "$enableval" in
19784 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19790 # Check whether --with-experimental-modules was given.
19791 if test "${with_experimental_modules+set}" = set; then
19792 withval=$with_experimental_modules; case "$withval" in
19804 # Check whether --with-openssl was given.
19805 if test "${with_openssl+set}" = set; then
19806 withval=$with_openssl; case "$withval" in
19818 OPENSSL_INCLUDE_DIR=
19820 # Check whether --with-openssl-includes was given.
19821 if test "${with_openssl_includes+set}" = set; then
19822 withval=$with_openssl_includes; case "$withval" in
19823 *) OPENSSL_INCLUDE_DIR="$withval"
19832 # Check whether --with-openssl-libraries was given.
19833 if test "${with_openssl_libraries+set}" = set; then
19834 withval=$with_openssl_libraries; case "$withval" in
19835 *) OPENSSL_LIB_DIR="$withval"
19844 # Check whether --with-rlm-FOO-lib-dir was given.
19845 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19846 withval=$with_rlm_FOO_lib_dir; case "$withval" in
19855 # Check whether --with-rlm-FOO-include-dir was given.
19856 if test "${with_rlm_FOO_include_dir+set}" = set; then
19857 withval=$with_rlm_FOO_include_dir; case "$withval" in
19868 # Check whether --with-udpfromto was given.
19869 if test "${with_udpfromto+set}" = set; then
19870 withval=$with_udpfromto; case "$withval" in
19881 if test "x$WITH_UDPFROMTO" = "xyes"; then
19883 cat >>confdefs.h <<\_ACEOF
19884 #define WITH_UDPFROMTO
19890 CHECKRAD=checkrad.pl
19891 # Extract the first word of "perl", so it can be a program name with args.
19892 set dummy perl; ac_word=$2
19893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19895 if test "${ac_cv_path_PERL+set}" = set; then
19896 echo $ECHO_N "(cached) $ECHO_C" >&6
19900 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19904 for as_dir in $PATH
19907 test -z "$as_dir" && as_dir=.
19908 for ac_exec_ext in '' $ac_executable_extensions; do
19909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19910 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19918 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19922 PERL=$ac_cv_path_PERL
19923 if test -n "$PERL"; then
19924 { echo "$as_me:$LINENO: result: $PERL" >&5
19925 echo "${ECHO_T}$PERL" >&6; }
19927 { echo "$as_me:$LINENO: result: no" >&5
19928 echo "${ECHO_T}no" >&6; }
19932 if test "x$ac_cv_path_PERL" = "x"; then
19933 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19934 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19936 # Extract the first word of "snmpget", so it can be a program name with args.
19937 set dummy snmpget; ac_word=$2
19938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19940 if test "${ac_cv_path_SNMPGET+set}" = set; then
19941 echo $ECHO_N "(cached) $ECHO_C" >&6
19945 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19949 for as_dir in $PATH
19952 test -z "$as_dir" && as_dir=.
19953 for ac_exec_ext in '' $ac_executable_extensions; do
19954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19955 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19966 SNMPGET=$ac_cv_path_SNMPGET
19967 if test -n "$SNMPGET"; then
19968 { echo "$as_me:$LINENO: result: $SNMPGET" >&5
19969 echo "${ECHO_T}$SNMPGET" >&6; }
19971 { echo "$as_me:$LINENO: result: no" >&5
19972 echo "${ECHO_T}no" >&6; }
19976 if test "x$ac_cv_path_SNMPGET" = "x"; then
19977 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19978 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19981 # Extract the first word of "snmpwalk", so it can be a program name with args.
19982 set dummy snmpwalk; ac_word=$2
19983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19985 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19986 echo $ECHO_N "(cached) $ECHO_C" >&6
19990 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19994 for as_dir in $PATH
19997 test -z "$as_dir" && as_dir=.
19998 for ac_exec_ext in '' $ac_executable_extensions; do
19999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20000 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20011 SNMPWALK=$ac_cv_path_SNMPWALK
20012 if test -n "$SNMPWALK"; then
20013 { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
20014 echo "${ECHO_T}$SNMPWALK" >&6; }
20016 { echo "$as_me:$LINENO: result: no" >&5
20017 echo "${ECHO_T}no" >&6; }
20021 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20022 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20023 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20026 # Extract the first word of "rusers", so it can be a program name with args.
20027 set dummy rusers; ac_word=$2
20028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20030 if test "${ac_cv_path_RUSERS+set}" = set; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
20035 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20039 for as_dir in $PATH
20042 test -z "$as_dir" && as_dir=.
20043 for ac_exec_ext in '' $ac_executable_extensions; do
20044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20045 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20053 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20057 RUSERS=$ac_cv_path_RUSERS
20058 if test -n "$RUSERS"; then
20059 { echo "$as_me:$LINENO: result: $RUSERS" >&5
20060 echo "${ECHO_T}$RUSERS" >&6; }
20062 { echo "$as_me:$LINENO: result: no" >&5
20063 echo "${ECHO_T}no" >&6; }
20068 missing_dir=`cd $ac_aux_dir && pwd`
20069 # expand $ac_aux_dir to an absolute path
20070 am_aux_dir=`cd $ac_aux_dir && pwd`
20072 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20073 # Use eval to expand $SHELL
20074 if eval "$MISSING --run true"; then
20075 am_missing_run="$MISSING --run "
20078 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20079 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20083 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20086 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20089 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20092 # Extract the first word of "locate", so it can be a program name with args.
20093 set dummy locate; ac_word=$2
20094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20096 if test "${ac_cv_path_LOCATE+set}" = set; then
20097 echo $ECHO_N "(cached) $ECHO_C" >&6
20101 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20105 for as_dir in $PATH
20108 test -z "$as_dir" && as_dir=.
20109 for ac_exec_ext in '' $ac_executable_extensions; do
20110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20111 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20122 LOCATE=$ac_cv_path_LOCATE
20123 if test -n "$LOCATE"; then
20124 { echo "$as_me:$LINENO: result: $LOCATE" >&5
20125 echo "${ECHO_T}$LOCATE" >&6; }
20127 { echo "$as_me:$LINENO: result: no" >&5
20128 echo "${ECHO_T}no" >&6; }
20132 # Extract the first word of "dirname", so it can be a program name with args.
20133 set dummy dirname; ac_word=$2
20134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20136 if test "${ac_cv_path_DIRNAME+set}" = set; then
20137 echo $ECHO_N "(cached) $ECHO_C" >&6
20141 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20145 for as_dir in $PATH
20148 test -z "$as_dir" && as_dir=.
20149 for ac_exec_ext in '' $ac_executable_extensions; do
20150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20151 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20162 DIRNAME=$ac_cv_path_DIRNAME
20163 if test -n "$DIRNAME"; then
20164 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20165 echo "${ECHO_T}$DIRNAME" >&6; }
20167 { echo "$as_me:$LINENO: result: no" >&5
20168 echo "${ECHO_T}no" >&6; }
20172 # Extract the first word of "grep", so it can be a program name with args.
20173 set dummy grep; ac_word=$2
20174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20176 if test "${ac_cv_path_GREP+set}" = set; then
20177 echo $ECHO_N "(cached) $ECHO_C" >&6
20181 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20185 for as_dir in $PATH
20188 test -z "$as_dir" && as_dir=.
20189 for ac_exec_ext in '' $ac_executable_extensions; do
20190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20191 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20202 GREP=$ac_cv_path_GREP
20203 if test -n "$GREP"; then
20204 { echo "$as_me:$LINENO: result: $GREP" >&5
20205 echo "${ECHO_T}$GREP" >&6; }
20207 { echo "$as_me:$LINENO: result: no" >&5
20208 echo "${ECHO_T}no" >&6; }
20215 if test "x$WITH_THREADS" = "xyes"; then
20216 if test $ac_cv_prog_suncc = "yes"; then
20217 CFLAGS="$CFLAGS -mt"
20221 for ac_header in pthread.h
20223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20228 echo $ECHO_N "(cached) $ECHO_C" >&6
20230 ac_res=`eval echo '${'$as_ac_Header'}'`
20231 { echo "$as_me:$LINENO: result: $ac_res" >&5
20232 echo "${ECHO_T}$ac_res" >&6; }
20234 # Is the header compilable?
20235 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20237 cat >conftest.$ac_ext <<_ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h. */
20243 $ac_includes_default
20244 #include <$ac_header>
20246 rm -f conftest.$ac_objext
20247 if { (ac_try="$ac_compile"
20248 case "(($ac_try" in
20249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20250 *) ac_try_echo=$ac_try;;
20252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20253 (eval "$ac_compile") 2>conftest.er1
20255 grep -v '^ *+' conftest.er1 >conftest.err
20257 cat conftest.err >&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); } && {
20260 test -z "$ac_c_werror_flag" ||
20261 test ! -s conftest.err
20262 } && test -s conftest.$ac_objext; then
20263 ac_header_compiler=yes
20265 echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20268 ac_header_compiler=no
20271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20272 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20273 echo "${ECHO_T}$ac_header_compiler" >&6; }
20275 # Is the header present?
20276 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20277 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20278 cat >conftest.$ac_ext <<_ACEOF
20281 cat confdefs.h >>conftest.$ac_ext
20282 cat >>conftest.$ac_ext <<_ACEOF
20283 /* end confdefs.h. */
20284 #include <$ac_header>
20286 if { (ac_try="$ac_cpp conftest.$ac_ext"
20287 case "(($ac_try" in
20288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20289 *) ac_try_echo=$ac_try;;
20291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20294 grep -v '^ *+' conftest.er1 >conftest.err
20296 cat conftest.err >&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); } >/dev/null && {
20299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20300 test ! -s conftest.err
20302 ac_header_preproc=yes
20304 echo "$as_me: failed program was:" >&5
20305 sed 's/^/| /' conftest.$ac_ext >&5
20307 ac_header_preproc=no
20310 rm -f conftest.err conftest.$ac_ext
20311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20312 echo "${ECHO_T}$ac_header_preproc" >&6; }
20314 # So? What about this header?
20315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20320 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20321 ac_header_preproc=yes
20324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20327 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20329 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20331 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20335 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20339 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20342 echo $ECHO_N "(cached) $ECHO_C" >&6
20344 eval "$as_ac_Header=\$ac_header_preproc"
20346 ac_res=`eval echo '${'$as_ac_Header'}'`
20347 { echo "$as_me:$LINENO: result: $ac_res" >&5
20348 echo "${ECHO_T}$ac_res" >&6; }
20351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20352 cat >>confdefs.h <<_ACEOF
20353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20363 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20364 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20365 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20366 echo $ECHO_N "(cached) $ECHO_C" >&6
20368 ac_check_lib_save_LIBS=$LIBS
20369 LIBS="-lpthread $LIBS"
20370 cat >conftest.$ac_ext <<_ACEOF
20373 cat confdefs.h >>conftest.$ac_ext
20374 cat >>conftest.$ac_ext <<_ACEOF
20375 /* end confdefs.h. */
20377 /* Override any GCC internal prototype to avoid an error.
20378 Use char because int might match the return type of a GCC
20379 builtin and then its argument prototype would still apply. */
20383 char pthread_create ();
20387 return pthread_create ();
20392 rm -f conftest.$ac_objext conftest$ac_exeext
20393 if { (ac_try="$ac_link"
20394 case "(($ac_try" in
20395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396 *) ac_try_echo=$ac_try;;
20398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20399 (eval "$ac_link") 2>conftest.er1
20401 grep -v '^ *+' conftest.er1 >conftest.err
20403 cat conftest.err >&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); } && {
20406 test -z "$ac_c_werror_flag" ||
20407 test ! -s conftest.err
20408 } && test -s conftest$ac_exeext &&
20409 $as_test_x conftest$ac_exeext; then
20410 ac_cv_lib_pthread_pthread_create=yes
20412 echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20415 ac_cv_lib_pthread_pthread_create=no
20418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20419 conftest$ac_exeext conftest.$ac_ext
20420 LIBS=$ac_check_lib_save_LIBS
20422 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20423 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20424 if test $ac_cv_lib_pthread_pthread_create = yes; then
20425 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20426 LIBS="$LIBS -lpthread"
20428 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20429 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20430 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20431 echo $ECHO_N "(cached) $ECHO_C" >&6
20433 ac_check_lib_save_LIBS=$LIBS
20435 cat >conftest.$ac_ext <<_ACEOF
20438 cat confdefs.h >>conftest.$ac_ext
20439 cat >>conftest.$ac_ext <<_ACEOF
20440 /* end confdefs.h. */
20442 /* Override any GCC internal prototype to avoid an error.
20443 Use char because int might match the return type of a GCC
20444 builtin and then its argument prototype would still apply. */
20448 char pthread_create ();
20452 return pthread_create ();
20457 rm -f conftest.$ac_objext conftest$ac_exeext
20458 if { (ac_try="$ac_link"
20459 case "(($ac_try" in
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461 *) ac_try_echo=$ac_try;;
20463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464 (eval "$ac_link") 2>conftest.er1
20466 grep -v '^ *+' conftest.er1 >conftest.err
20468 cat conftest.err >&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } && {
20471 test -z "$ac_c_werror_flag" ||
20472 test ! -s conftest.err
20473 } && test -s conftest$ac_exeext &&
20474 $as_test_x conftest$ac_exeext; then
20475 ac_cv_lib_c_r_pthread_create=yes
20477 echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20480 ac_cv_lib_c_r_pthread_create=no
20483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20484 conftest$ac_exeext conftest.$ac_ext
20485 LIBS=$ac_check_lib_save_LIBS
20487 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20488 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20489 if test $ac_cv_lib_c_r_pthread_create = yes; then
20490 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20501 if test "x$WITH_THREADS" != "xyes"; then
20503 ac_cv_header_pthread_h="no"
20507 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20508 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20509 if test "${ac_cv_search_sem_init+set}" = set; then
20510 echo $ECHO_N "(cached) $ECHO_C" >&6
20512 ac_func_search_save_LIBS=$LIBS
20513 cat >conftest.$ac_ext <<_ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h. */
20520 /* Override any GCC internal prototype to avoid an error.
20521 Use char because int might match the return type of a GCC
20522 builtin and then its argument prototype would still apply. */
20530 return sem_init ();
20535 for ac_lib in '' pthread sem posix4 rt semaphore; do
20536 if test -z "$ac_lib"; then
20537 ac_res="none required"
20540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20542 rm -f conftest.$ac_objext conftest$ac_exeext
20543 if { (ac_try="$ac_link"
20544 case "(($ac_try" in
20545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546 *) ac_try_echo=$ac_try;;
20548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549 (eval "$ac_link") 2>conftest.er1
20551 grep -v '^ *+' conftest.er1 >conftest.err
20553 cat conftest.err >&5
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); } && {
20556 test -z "$ac_c_werror_flag" ||
20557 test ! -s conftest.err
20558 } && test -s conftest$ac_exeext &&
20559 $as_test_x conftest$ac_exeext; then
20560 ac_cv_search_sem_init=$ac_res
20562 echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20570 if test "${ac_cv_search_sem_init+set}" = set; then
20574 if test "${ac_cv_search_sem_init+set}" = set; then
20577 ac_cv_search_sem_init=no
20579 rm conftest.$ac_ext
20580 LIBS=$ac_func_search_save_LIBS
20582 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20583 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20584 ac_res=$ac_cv_search_sem_init
20585 if test "$ac_res" != no; then
20586 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20589 { { 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
20590 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;}
20591 { (exit 1); exit 1; }; }
20598 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20599 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20600 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20601 echo $ECHO_N "(cached) $ECHO_C" >&6
20603 ac_check_lib_save_LIBS=$LIBS
20604 LIBS="-lsocket $LIBS"
20605 cat >conftest.$ac_ext <<_ACEOF
20608 cat confdefs.h >>conftest.$ac_ext
20609 cat >>conftest.$ac_ext <<_ACEOF
20610 /* end confdefs.h. */
20612 /* Override any GCC internal prototype to avoid an error.
20613 Use char because int might match the return type of a GCC
20614 builtin and then its argument prototype would still apply. */
20618 char getsockname ();
20622 return getsockname ();
20627 rm -f conftest.$ac_objext conftest$ac_exeext
20628 if { (ac_try="$ac_link"
20629 case "(($ac_try" in
20630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631 *) ac_try_echo=$ac_try;;
20633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634 (eval "$ac_link") 2>conftest.er1
20636 grep -v '^ *+' conftest.er1 >conftest.err
20638 cat conftest.err >&5
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); } && {
20641 test -z "$ac_c_werror_flag" ||
20642 test ! -s conftest.err
20643 } && test -s conftest$ac_exeext &&
20644 $as_test_x conftest$ac_exeext; then
20645 ac_cv_lib_socket_getsockname=yes
20647 echo "$as_me: failed program was:" >&5
20648 sed 's/^/| /' conftest.$ac_ext >&5
20650 ac_cv_lib_socket_getsockname=no
20653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20654 conftest$ac_exeext conftest.$ac_ext
20655 LIBS=$ac_check_lib_save_LIBS
20657 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20658 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20659 if test $ac_cv_lib_socket_getsockname = yes; then
20660 cat >>confdefs.h <<_ACEOF
20661 #define HAVE_LIBSOCKET 1
20664 LIBS="-lsocket $LIBS"
20670 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20671 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20672 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20673 echo $ECHO_N "(cached) $ECHO_C" >&6
20675 ac_check_lib_save_LIBS=$LIBS
20676 LIBS="-lresolv $LIBS"
20677 cat >conftest.$ac_ext <<_ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h. */
20684 /* Override any GCC internal prototype to avoid an error.
20685 Use char because int might match the return type of a GCC
20686 builtin and then its argument prototype would still apply. */
20694 return inet_aton ();
20699 rm -f conftest.$ac_objext conftest$ac_exeext
20700 if { (ac_try="$ac_link"
20701 case "(($ac_try" in
20702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703 *) ac_try_echo=$ac_try;;
20705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20706 (eval "$ac_link") 2>conftest.er1
20708 grep -v '^ *+' conftest.er1 >conftest.err
20710 cat conftest.err >&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); } && {
20713 test -z "$ac_c_werror_flag" ||
20714 test ! -s conftest.err
20715 } && test -s conftest$ac_exeext &&
20716 $as_test_x conftest$ac_exeext; then
20717 ac_cv_lib_resolv_inet_aton=yes
20719 echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20722 ac_cv_lib_resolv_inet_aton=no
20725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20726 conftest$ac_exeext conftest.$ac_ext
20727 LIBS=$ac_check_lib_save_LIBS
20729 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20730 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20731 if test $ac_cv_lib_resolv_inet_aton = yes; then
20732 cat >>confdefs.h <<_ACEOF
20733 #define HAVE_LIBRESOLV 1
20736 LIBS="-lresolv $LIBS"
20742 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20743 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
20744 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20745 echo $ECHO_N "(cached) $ECHO_C" >&6
20747 ac_check_lib_save_LIBS=$LIBS
20749 cat >conftest.$ac_ext <<_ACEOF
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h. */
20756 /* Override any GCC internal prototype to avoid an error.
20757 Use char because int might match the return type of a GCC
20758 builtin and then its argument prototype would still apply. */
20766 return inet_ntoa ();
20771 rm -f conftest.$ac_objext conftest$ac_exeext
20772 if { (ac_try="$ac_link"
20773 case "(($ac_try" in
20774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20775 *) ac_try_echo=$ac_try;;
20777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20778 (eval "$ac_link") 2>conftest.er1
20780 grep -v '^ *+' conftest.er1 >conftest.err
20782 cat conftest.err >&5
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); } && {
20785 test -z "$ac_c_werror_flag" ||
20786 test ! -s conftest.err
20787 } && test -s conftest$ac_exeext &&
20788 $as_test_x conftest$ac_exeext; then
20789 ac_cv_lib_nsl_inet_ntoa=yes
20791 echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20794 ac_cv_lib_nsl_inet_ntoa=no
20797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20798 conftest$ac_exeext conftest.$ac_ext
20799 LIBS=$ac_check_lib_save_LIBS
20801 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20802 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
20803 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20804 cat >>confdefs.h <<_ACEOF
20805 #define HAVE_LIBNSL 1
20814 if test "x$WITH_OPENSSL" = xyes; then
20816 if test "x$OPENSSL_LIB_DIR" != "x"; then
20817 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20819 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20820 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
20821 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20822 echo $ECHO_N "(cached) $ECHO_C" >&6
20824 ac_check_lib_save_LIBS=$LIBS
20825 LIBS="-lcrypto $LIBS"
20826 cat >conftest.$ac_ext <<_ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h. */
20833 /* Override any GCC internal prototype to avoid an error.
20834 Use char because int might match the return type of a GCC
20835 builtin and then its argument prototype would still apply. */
20848 rm -f conftest.$ac_objext conftest$ac_exeext
20849 if { (ac_try="$ac_link"
20850 case "(($ac_try" in
20851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852 *) ac_try_echo=$ac_try;;
20854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20855 (eval "$ac_link") 2>conftest.er1
20857 grep -v '^ *+' conftest.er1 >conftest.err
20859 cat conftest.err >&5
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); } && {
20862 test -z "$ac_c_werror_flag" ||
20863 test ! -s conftest.err
20864 } && test -s conftest$ac_exeext &&
20865 $as_test_x conftest$ac_exeext; then
20866 ac_cv_lib_crypto_DH_new=yes
20868 echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20871 ac_cv_lib_crypto_DH_new=no
20874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20875 conftest$ac_exeext conftest.$ac_ext
20876 LIBS=$ac_check_lib_save_LIBS
20878 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20879 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
20880 if test $ac_cv_lib_crypto_DH_new = yes; then
20882 LIBS="-lcrypto $LIBS"
20884 cat >>confdefs.h <<\_ACEOF
20885 #define HAVE_LIBCRYPTO 1
20888 { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20889 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
20890 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20891 echo $ECHO_N "(cached) $ECHO_C" >&6
20893 ac_check_lib_save_LIBS=$LIBS
20895 cat >conftest.$ac_ext <<_ACEOF
20898 cat confdefs.h >>conftest.$ac_ext
20899 cat >>conftest.$ac_ext <<_ACEOF
20900 /* end confdefs.h. */
20902 /* Override any GCC internal prototype to avoid an error.
20903 Use char because int might match the return type of a GCC
20904 builtin and then its argument prototype would still apply. */
20917 rm -f conftest.$ac_objext conftest$ac_exeext
20918 if { (ac_try="$ac_link"
20919 case "(($ac_try" in
20920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20921 *) ac_try_echo=$ac_try;;
20923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20924 (eval "$ac_link") 2>conftest.er1
20926 grep -v '^ *+' conftest.er1 >conftest.err
20928 cat conftest.err >&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); } && {
20931 test -z "$ac_c_werror_flag" ||
20932 test ! -s conftest.err
20933 } && test -s conftest$ac_exeext &&
20934 $as_test_x conftest$ac_exeext; then
20935 ac_cv_lib_ssl_SSL_new=yes
20937 echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20940 ac_cv_lib_ssl_SSL_new=no
20943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20944 conftest$ac_exeext conftest.$ac_ext
20945 LIBS=$ac_check_lib_save_LIBS
20947 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20948 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
20949 if test $ac_cv_lib_ssl_SSL_new = yes; then
20952 cat >>confdefs.h <<\_ACEOF
20953 #define HAVE_LIBSSL 1
20956 if test "x$OPENSSL_LIB_DIR" != "x"; then
20957 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20959 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20970 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
20971 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
20972 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
20973 echo $ECHO_N "(cached) $ECHO_C" >&6
20975 ac_check_lib_save_LIBS=$LIBS
20976 LIBS="-lws2_32 $LIBS"
20977 cat >conftest.$ac_ext <<_ACEOF
20980 cat confdefs.h >>conftest.$ac_ext
20981 cat >>conftest.$ac_ext <<_ACEOF
20982 /* end confdefs.h. */
20984 /* Override any GCC internal prototype to avoid an error.
20985 Use char because int might match the return type of a GCC
20986 builtin and then its argument prototype would still apply. */
20999 rm -f conftest.$ac_objext conftest$ac_exeext
21000 if { (ac_try="$ac_link"
21001 case "(($ac_try" in
21002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003 *) ac_try_echo=$ac_try;;
21005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006 (eval "$ac_link") 2>conftest.er1
21008 grep -v '^ *+' conftest.er1 >conftest.err
21010 cat conftest.err >&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); } && {
21013 test -z "$ac_c_werror_flag" ||
21014 test ! -s conftest.err
21015 } && test -s conftest$ac_exeext &&
21016 $as_test_x conftest$ac_exeext; then
21017 ac_cv_lib_ws2_32_htonl=yes
21019 echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21022 ac_cv_lib_ws2_32_htonl=no
21025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21026 conftest$ac_exeext conftest.$ac_ext
21027 LIBS=$ac_check_lib_save_LIBS
21029 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21030 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21031 if test $ac_cv_lib_ws2_32_htonl = yes; then
21032 cat >>confdefs.h <<_ACEOF
21033 #define HAVE_LIBWS2_32 1
21036 LIBS="-lws2_32 $LIBS"
21042 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21043 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21044 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21045 echo $ECHO_N "(cached) $ECHO_C" >&6
21047 ac_check_lib_save_LIBS=$LIBS
21048 LIBS="-lpcap $LIBS"
21049 cat >conftest.$ac_ext <<_ACEOF
21052 cat confdefs.h >>conftest.$ac_ext
21053 cat >>conftest.$ac_ext <<_ACEOF
21054 /* end confdefs.h. */
21056 /* Override any GCC internal prototype to avoid an error.
21057 Use char because int might match the return type of a GCC
21058 builtin and then its argument prototype would still apply. */
21062 char pcap_open_live ();
21066 return pcap_open_live ();
21071 rm -f conftest.$ac_objext conftest$ac_exeext
21072 if { (ac_try="$ac_link"
21073 case "(($ac_try" in
21074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21075 *) ac_try_echo=$ac_try;;
21077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21078 (eval "$ac_link") 2>conftest.er1
21080 grep -v '^ *+' conftest.er1 >conftest.err
21082 cat conftest.err >&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } && {
21085 test -z "$ac_c_werror_flag" ||
21086 test ! -s conftest.err
21087 } && test -s conftest$ac_exeext &&
21088 $as_test_x conftest$ac_exeext; then
21089 ac_cv_lib_pcap_pcap_open_live=yes
21091 echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21094 ac_cv_lib_pcap_pcap_open_live=no
21097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21098 conftest$ac_exeext conftest.$ac_ext
21099 LIBS=$ac_check_lib_save_LIBS
21101 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21102 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21103 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21106 cat >>confdefs.h <<\_ACEOF
21107 #define HAVE_LIBPCAP 1
21112 { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21113 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21120 CFLAGS="$CFLAGS -D_ALL_SOURCE"
21123 CFLAGS="$CFLAGS -DDARWIN"
21124 LIBS="-framework DirectoryService $LIBS"
21133 ac_header_dirent=no
21134 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21135 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21136 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21137 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21139 echo $ECHO_N "(cached) $ECHO_C" >&6
21141 cat >conftest.$ac_ext <<_ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h. */
21147 #include <sys/types.h>
21159 rm -f conftest.$ac_objext
21160 if { (ac_try="$ac_compile"
21161 case "(($ac_try" in
21162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163 *) ac_try_echo=$ac_try;;
21165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21166 (eval "$ac_compile") 2>conftest.er1
21168 grep -v '^ *+' conftest.er1 >conftest.err
21170 cat conftest.err >&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } && {
21173 test -z "$ac_c_werror_flag" ||
21174 test ! -s conftest.err
21175 } && test -s conftest.$ac_objext; then
21176 eval "$as_ac_Header=yes"
21178 echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21181 eval "$as_ac_Header=no"
21184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21186 ac_res=`eval echo '${'$as_ac_Header'}'`
21187 { echo "$as_me:$LINENO: result: $ac_res" >&5
21188 echo "${ECHO_T}$ac_res" >&6; }
21189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21190 cat >>confdefs.h <<_ACEOF
21191 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21194 ac_header_dirent=$ac_hdr; break
21198 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21199 if test $ac_header_dirent = dirent.h; then
21200 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21201 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21202 if test "${ac_cv_search_opendir+set}" = set; then
21203 echo $ECHO_N "(cached) $ECHO_C" >&6
21205 ac_func_search_save_LIBS=$LIBS
21206 cat >conftest.$ac_ext <<_ACEOF
21209 cat confdefs.h >>conftest.$ac_ext
21210 cat >>conftest.$ac_ext <<_ACEOF
21211 /* end confdefs.h. */
21213 /* Override any GCC internal prototype to avoid an error.
21214 Use char because int might match the return type of a GCC
21215 builtin and then its argument prototype would still apply. */
21228 for ac_lib in '' dir; do
21229 if test -z "$ac_lib"; then
21230 ac_res="none required"
21233 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21235 rm -f conftest.$ac_objext conftest$ac_exeext
21236 if { (ac_try="$ac_link"
21237 case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_link") 2>conftest.er1
21244 grep -v '^ *+' conftest.er1 >conftest.err
21246 cat conftest.err >&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } && {
21249 test -z "$ac_c_werror_flag" ||
21250 test ! -s conftest.err
21251 } && test -s conftest$ac_exeext &&
21252 $as_test_x conftest$ac_exeext; then
21253 ac_cv_search_opendir=$ac_res
21255 echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.$ac_ext >&5
21261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21263 if test "${ac_cv_search_opendir+set}" = set; then
21267 if test "${ac_cv_search_opendir+set}" = set; then
21270 ac_cv_search_opendir=no
21272 rm conftest.$ac_ext
21273 LIBS=$ac_func_search_save_LIBS
21275 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21276 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21277 ac_res=$ac_cv_search_opendir
21278 if test "$ac_res" != no; then
21279 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21284 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21285 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21286 if test "${ac_cv_search_opendir+set}" = set; then
21287 echo $ECHO_N "(cached) $ECHO_C" >&6
21289 ac_func_search_save_LIBS=$LIBS
21290 cat >conftest.$ac_ext <<_ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21297 /* Override any GCC internal prototype to avoid an error.
21298 Use char because int might match the return type of a GCC
21299 builtin and then its argument prototype would still apply. */
21312 for ac_lib in '' x; do
21313 if test -z "$ac_lib"; then
21314 ac_res="none required"
21317 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21319 rm -f conftest.$ac_objext conftest$ac_exeext
21320 if { (ac_try="$ac_link"
21321 case "(($ac_try" in
21322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21323 *) ac_try_echo=$ac_try;;
21325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21326 (eval "$ac_link") 2>conftest.er1
21328 grep -v '^ *+' conftest.er1 >conftest.err
21330 cat conftest.err >&5
21331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332 (exit $ac_status); } && {
21333 test -z "$ac_c_werror_flag" ||
21334 test ! -s conftest.err
21335 } && test -s conftest$ac_exeext &&
21336 $as_test_x conftest$ac_exeext; then
21337 ac_cv_search_opendir=$ac_res
21339 echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21347 if test "${ac_cv_search_opendir+set}" = set; then
21351 if test "${ac_cv_search_opendir+set}" = set; then
21354 ac_cv_search_opendir=no
21356 rm conftest.$ac_ext
21357 LIBS=$ac_func_search_save_LIBS
21359 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21360 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21361 ac_res=$ac_cv_search_opendir
21362 if test "$ac_res" != no; then
21363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21369 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21370 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21371 if test "${ac_cv_header_stdc+set}" = set; then
21372 echo $ECHO_N "(cached) $ECHO_C" >&6
21374 cat >conftest.$ac_ext <<_ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h. */
21380 #include <stdlib.h>
21381 #include <stdarg.h>
21382 #include <string.h>
21393 rm -f conftest.$ac_objext
21394 if { (ac_try="$ac_compile"
21395 case "(($ac_try" in
21396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21397 *) ac_try_echo=$ac_try;;
21399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21400 (eval "$ac_compile") 2>conftest.er1
21402 grep -v '^ *+' conftest.er1 >conftest.err
21404 cat conftest.err >&5
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); } && {
21407 test -z "$ac_c_werror_flag" ||
21408 test ! -s conftest.err
21409 } && test -s conftest.$ac_objext; then
21410 ac_cv_header_stdc=yes
21412 echo "$as_me: failed program was:" >&5
21413 sed 's/^/| /' conftest.$ac_ext >&5
21415 ac_cv_header_stdc=no
21418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21420 if test $ac_cv_header_stdc = yes; then
21421 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21422 cat >conftest.$ac_ext <<_ACEOF
21425 cat confdefs.h >>conftest.$ac_ext
21426 cat >>conftest.$ac_ext <<_ACEOF
21427 /* end confdefs.h. */
21428 #include <string.h>
21431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21432 $EGREP "memchr" >/dev/null 2>&1; then
21435 ac_cv_header_stdc=no
21441 if test $ac_cv_header_stdc = yes; then
21442 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21443 cat >conftest.$ac_ext <<_ACEOF
21446 cat confdefs.h >>conftest.$ac_ext
21447 cat >>conftest.$ac_ext <<_ACEOF
21448 /* end confdefs.h. */
21449 #include <stdlib.h>
21452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21453 $EGREP "free" >/dev/null 2>&1; then
21456 ac_cv_header_stdc=no
21462 if test $ac_cv_header_stdc = yes; then
21463 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21464 if test "$cross_compiling" = yes; then
21467 cat >conftest.$ac_ext <<_ACEOF
21470 cat confdefs.h >>conftest.$ac_ext
21471 cat >>conftest.$ac_ext <<_ACEOF
21472 /* end confdefs.h. */
21474 #include <stdlib.h>
21475 #if ((' ' & 0x0FF) == 0x020)
21476 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21477 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21479 # define ISLOWER(c) \
21480 (('a' <= (c) && (c) <= 'i') \
21481 || ('j' <= (c) && (c) <= 'r') \
21482 || ('s' <= (c) && (c) <= 'z'))
21483 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21486 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21491 for (i = 0; i < 256; i++)
21492 if (XOR (islower (i), ISLOWER (i))
21493 || toupper (i) != TOUPPER (i))
21498 rm -f conftest$ac_exeext
21499 if { (ac_try="$ac_link"
21500 case "(($ac_try" in
21501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502 *) ac_try_echo=$ac_try;;
21504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505 (eval "$ac_link") 2>&5
21507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21509 { (case "(($ac_try" in
21510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21511 *) ac_try_echo=$ac_try;;
21513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21514 (eval "$ac_try") 2>&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); }; }; then
21520 echo "$as_me: program exited with status $ac_status" >&5
21521 echo "$as_me: failed program was:" >&5
21522 sed 's/^/| /' conftest.$ac_ext >&5
21524 ( exit $ac_status )
21525 ac_cv_header_stdc=no
21527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21533 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21534 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21535 if test $ac_cv_header_stdc = yes; then
21537 cat >>confdefs.h <<\_ACEOF
21538 #define STDC_HEADERS 1
21543 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21544 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21545 if test "${ac_cv_header_time+set}" = set; then
21546 echo $ECHO_N "(cached) $ECHO_C" >&6
21548 cat >conftest.$ac_ext <<_ACEOF
21551 cat confdefs.h >>conftest.$ac_ext
21552 cat >>conftest.$ac_ext <<_ACEOF
21553 /* end confdefs.h. */
21554 #include <sys/types.h>
21555 #include <sys/time.h>
21561 if ((struct tm *) 0)
21567 rm -f conftest.$ac_objext
21568 if { (ac_try="$ac_compile"
21569 case "(($ac_try" in
21570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571 *) ac_try_echo=$ac_try;;
21573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574 (eval "$ac_compile") 2>conftest.er1
21576 grep -v '^ *+' conftest.er1 >conftest.err
21578 cat conftest.err >&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } && {
21581 test -z "$ac_c_werror_flag" ||
21582 test ! -s conftest.err
21583 } && test -s conftest.$ac_objext; then
21584 ac_cv_header_time=yes
21586 echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21589 ac_cv_header_time=no
21592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21594 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21595 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21596 if test $ac_cv_header_time = yes; then
21598 cat >>confdefs.h <<\_ACEOF
21599 #define TIME_WITH_SYS_TIME 1
21604 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21605 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21606 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21607 echo $ECHO_N "(cached) $ECHO_C" >&6
21609 cat >conftest.$ac_ext <<_ACEOF
21612 cat confdefs.h >>conftest.$ac_ext
21613 cat >>conftest.$ac_ext <<_ACEOF
21614 /* end confdefs.h. */
21615 #include <sys/types.h>
21616 #include <sys/wait.h>
21617 #ifndef WEXITSTATUS
21618 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21621 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21629 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21634 rm -f conftest.$ac_objext
21635 if { (ac_try="$ac_compile"
21636 case "(($ac_try" in
21637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21638 *) ac_try_echo=$ac_try;;
21640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21641 (eval "$ac_compile") 2>conftest.er1
21643 grep -v '^ *+' conftest.er1 >conftest.err
21645 cat conftest.err >&5
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); } && {
21648 test -z "$ac_c_werror_flag" ||
21649 test ! -s conftest.err
21650 } && test -s conftest.$ac_objext; then
21651 ac_cv_header_sys_wait_h=yes
21653 echo "$as_me: failed program was:" >&5
21654 sed 's/^/| /' conftest.$ac_ext >&5
21656 ac_cv_header_sys_wait_h=no
21659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21661 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21662 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21663 if test $ac_cv_header_sys_wait_h = yes; then
21665 cat >>confdefs.h <<\_ACEOF
21666 #define HAVE_SYS_WAIT_H 1
21741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21746 echo $ECHO_N "(cached) $ECHO_C" >&6
21748 ac_res=`eval echo '${'$as_ac_Header'}'`
21749 { echo "$as_me:$LINENO: result: $ac_res" >&5
21750 echo "${ECHO_T}$ac_res" >&6; }
21752 # Is the header compilable?
21753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21755 cat >conftest.$ac_ext <<_ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h. */
21761 $ac_includes_default
21762 #include <$ac_header>
21764 rm -f conftest.$ac_objext
21765 if { (ac_try="$ac_compile"
21766 case "(($ac_try" in
21767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21768 *) ac_try_echo=$ac_try;;
21770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21771 (eval "$ac_compile") 2>conftest.er1
21773 grep -v '^ *+' conftest.er1 >conftest.err
21775 cat conftest.err >&5
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); } && {
21778 test -z "$ac_c_werror_flag" ||
21779 test ! -s conftest.err
21780 } && test -s conftest.$ac_objext; then
21781 ac_header_compiler=yes
21783 echo "$as_me: failed program was:" >&5
21784 sed 's/^/| /' conftest.$ac_ext >&5
21786 ac_header_compiler=no
21789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21791 echo "${ECHO_T}$ac_header_compiler" >&6; }
21793 # Is the header present?
21794 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21796 cat >conftest.$ac_ext <<_ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h. */
21802 #include <$ac_header>
21804 if { (ac_try="$ac_cpp conftest.$ac_ext"
21805 case "(($ac_try" in
21806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807 *) ac_try_echo=$ac_try;;
21809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21812 grep -v '^ *+' conftest.er1 >conftest.err
21814 cat conftest.err >&5
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); } >/dev/null && {
21817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21818 test ! -s conftest.err
21820 ac_header_preproc=yes
21822 echo "$as_me: failed program was:" >&5
21823 sed 's/^/| /' conftest.$ac_ext >&5
21825 ac_header_preproc=no
21828 rm -f conftest.err conftest.$ac_ext
21829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21830 echo "${ECHO_T}$ac_header_preproc" >&6; }
21832 # So? What about this header?
21833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21839 ac_header_preproc=yes
21842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21849 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21860 echo $ECHO_N "(cached) $ECHO_C" >&6
21862 eval "$as_ac_Header=\$ac_header_preproc"
21864 ac_res=`eval echo '${'$as_ac_Header'}'`
21865 { echo "$as_me:$LINENO: result: $ac_res" >&5
21866 echo "${ECHO_T}$ac_res" >&6; }
21869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21870 cat >>confdefs.h <<_ACEOF
21871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21880 for ac_header in net/if.h
21882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21886 echo $ECHO_N "(cached) $ECHO_C" >&6
21888 cat >conftest.$ac_ext <<_ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h. */
21894 #ifdef HAVE_SYS_SOCKET_H
21895 # include <sys/socket.h>
21899 #include <$ac_header>
21901 rm -f conftest.$ac_objext
21902 if { (ac_try="$ac_compile"
21903 case "(($ac_try" in
21904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21905 *) ac_try_echo=$ac_try;;
21907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21908 (eval "$ac_compile") 2>conftest.er1
21910 grep -v '^ *+' conftest.er1 >conftest.err
21912 cat conftest.err >&5
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); } && {
21915 test -z "$ac_c_werror_flag" ||
21916 test ! -s conftest.err
21917 } && test -s conftest.$ac_objext; then
21918 eval "$as_ac_Header=yes"
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21923 eval "$as_ac_Header=no"
21926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21928 ac_res=`eval echo '${'$as_ac_Header'}'`
21929 { echo "$as_me:$LINENO: result: $ac_res" >&5
21930 echo "${ECHO_T}$ac_res" >&6; }
21931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21932 cat >>confdefs.h <<_ACEOF
21933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21942 if test "${ac_cv_header_regex_h+set}" = set; then
21943 { echo "$as_me:$LINENO: checking for regex.h" >&5
21944 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21945 if test "${ac_cv_header_regex_h+set}" = set; then
21946 echo $ECHO_N "(cached) $ECHO_C" >&6
21948 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21949 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21951 # Is the header compilable?
21952 { echo "$as_me:$LINENO: checking regex.h usability" >&5
21953 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
21954 cat >conftest.$ac_ext <<_ACEOF
21957 cat confdefs.h >>conftest.$ac_ext
21958 cat >>conftest.$ac_ext <<_ACEOF
21959 /* end confdefs.h. */
21960 $ac_includes_default
21963 rm -f conftest.$ac_objext
21964 if { (ac_try="$ac_compile"
21965 case "(($ac_try" in
21966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967 *) ac_try_echo=$ac_try;;
21969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21970 (eval "$ac_compile") 2>conftest.er1
21972 grep -v '^ *+' conftest.er1 >conftest.err
21974 cat conftest.err >&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); } && {
21977 test -z "$ac_c_werror_flag" ||
21978 test ! -s conftest.err
21979 } && test -s conftest.$ac_objext; then
21980 ac_header_compiler=yes
21982 echo "$as_me: failed program was:" >&5
21983 sed 's/^/| /' conftest.$ac_ext >&5
21985 ac_header_compiler=no
21988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21990 echo "${ECHO_T}$ac_header_compiler" >&6; }
21992 # Is the header present?
21993 { echo "$as_me:$LINENO: checking regex.h presence" >&5
21994 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
21995 cat >conftest.$ac_ext <<_ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22003 if { (ac_try="$ac_cpp conftest.$ac_ext"
22004 case "(($ac_try" in
22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22011 grep -v '^ *+' conftest.er1 >conftest.err
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } >/dev/null && {
22016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22017 test ! -s conftest.err
22019 ac_header_preproc=yes
22021 echo "$as_me: failed program was:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22024 ac_header_preproc=no
22027 rm -f conftest.err conftest.$ac_ext
22028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22029 echo "${ECHO_T}$ac_header_preproc" >&6; }
22031 # So? What about this header?
22032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22034 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22035 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22036 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22037 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22038 ac_header_preproc=yes
22041 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22042 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
22043 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22044 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22045 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22046 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22047 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22048 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
22049 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22050 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
22051 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22052 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
22056 { echo "$as_me:$LINENO: checking for regex.h" >&5
22057 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22058 if test "${ac_cv_header_regex_h+set}" = set; then
22059 echo $ECHO_N "(cached) $ECHO_C" >&6
22061 ac_cv_header_regex_h=$ac_header_preproc
22063 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22064 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22067 if test $ac_cv_header_regex_h = yes; then
22069 cat >>confdefs.h <<\_ACEOF
22070 #define HAVE_REGEX_H
22076 if test "x$ac_cv_header_regex_h" = "xyes"; then
22079 cat >conftest.$ac_ext <<_ACEOF
22082 cat confdefs.h >>conftest.$ac_ext
22083 cat >>conftest.$ac_ext <<_ACEOF
22084 /* end confdefs.h. */
22086 #ifdef REG_EXTENDED
22091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22092 $EGREP "yes" >/dev/null 2>&1; then
22094 cat >>confdefs.h <<\_ACEOF
22095 #define HAVE_REG_EXTENDED
22105 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
22108 cat >>confdefs.h <<\_ACEOF
22114 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
22117 cat >>confdefs.h <<\_ACEOF
22123 OPENSSL_INCLUDE="-DNO_OPENSSL"
22124 if test "x$WITH_OPENSSL" = xyes; then
22125 if test "x$OPENSSL_LIBS" = "x"; then
22126 { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
22127 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
22129 old_CPPFLAGS=$CPPFLAGS
22130 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22131 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
22133 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
22146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22148 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22151 echo $ECHO_N "(cached) $ECHO_C" >&6
22153 ac_res=`eval echo '${'$as_ac_Header'}'`
22154 { echo "$as_me:$LINENO: result: $ac_res" >&5
22155 echo "${ECHO_T}$ac_res" >&6; }
22157 # Is the header compilable?
22158 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22160 cat >conftest.$ac_ext <<_ACEOF
22163 cat confdefs.h >>conftest.$ac_ext
22164 cat >>conftest.$ac_ext <<_ACEOF
22165 /* end confdefs.h. */
22166 $ac_includes_default
22167 #include <$ac_header>
22169 rm -f conftest.$ac_objext
22170 if { (ac_try="$ac_compile"
22171 case "(($ac_try" in
22172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173 *) ac_try_echo=$ac_try;;
22175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22176 (eval "$ac_compile") 2>conftest.er1
22178 grep -v '^ *+' conftest.er1 >conftest.err
22180 cat conftest.err >&5
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); } && {
22183 test -z "$ac_c_werror_flag" ||
22184 test ! -s conftest.err
22185 } && test -s conftest.$ac_objext; then
22186 ac_header_compiler=yes
22188 echo "$as_me: failed program was:" >&5
22189 sed 's/^/| /' conftest.$ac_ext >&5
22191 ac_header_compiler=no
22194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22196 echo "${ECHO_T}$ac_header_compiler" >&6; }
22198 # Is the header present?
22199 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22201 cat >conftest.$ac_ext <<_ACEOF
22204 cat confdefs.h >>conftest.$ac_ext
22205 cat >>conftest.$ac_ext <<_ACEOF
22206 /* end confdefs.h. */
22207 #include <$ac_header>
22209 if { (ac_try="$ac_cpp conftest.$ac_ext"
22210 case "(($ac_try" in
22211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22212 *) ac_try_echo=$ac_try;;
22214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22217 grep -v '^ *+' conftest.er1 >conftest.err
22219 cat conftest.err >&5
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); } >/dev/null && {
22222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22223 test ! -s conftest.err
22225 ac_header_preproc=yes
22227 echo "$as_me: failed program was:" >&5
22228 sed 's/^/| /' conftest.$ac_ext >&5
22230 ac_header_preproc=no
22233 rm -f conftest.err conftest.$ac_ext
22234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22235 echo "${ECHO_T}$ac_header_preproc" >&6; }
22237 # So? What about this header?
22238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22244 ac_header_preproc=yes
22247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22265 echo $ECHO_N "(cached) $ECHO_C" >&6
22267 eval "$as_ac_Header=\$ac_header_preproc"
22269 ac_res=`eval echo '${'$as_ac_Header'}'`
22270 { echo "$as_me:$LINENO: result: $ac_res" >&5
22271 echo "${ECHO_T}$ac_res" >&6; }
22274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22275 cat >>confdefs.h <<_ACEOF
22276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22286 if test "x$OPENSSL_LIBS" != "x"; then
22287 { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22288 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
22289 cat >conftest.$ac_ext <<_ACEOF
22292 cat confdefs.h >>conftest.$ac_ext
22293 cat >>conftest.$ac_ext <<_ACEOF
22294 /* end confdefs.h. */
22295 #include <openssl/crypto.h>
22296 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22302 $EGREP "yes" >/dev/null 2>&1; then
22307 if test "x$goodssl" != "xyes"; then
22308 { echo "$as_me:$LINENO: result: no" >&5
22309 echo "${ECHO_T}no" >&6; }
22312 { echo "$as_me:$LINENO: result: yes" >&5
22313 echo "${ECHO_T}yes" >&6; }
22314 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22315 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
22317 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
22321 CPPFLAGS=$old_CPPFLAGS
22326 export OPENSSL_LIBS
22328 if test "x$PCAP_LIBS" = x; then
22329 { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
22330 echo "$as_me: skipping test for pcap.h." >&6;}
22332 if test "${ac_cv_header_pcap_h+set}" = set; then
22333 { echo "$as_me:$LINENO: checking for pcap.h" >&5
22334 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
22335 if test "${ac_cv_header_pcap_h+set}" = set; then
22336 echo $ECHO_N "(cached) $ECHO_C" >&6
22338 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22339 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
22341 # Is the header compilable?
22342 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
22343 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
22344 cat >conftest.$ac_ext <<_ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h. */
22350 $ac_includes_default
22353 rm -f conftest.$ac_objext
22354 if { (ac_try="$ac_compile"
22355 case "(($ac_try" in
22356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22357 *) ac_try_echo=$ac_try;;
22359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22360 (eval "$ac_compile") 2>conftest.er1
22362 grep -v '^ *+' conftest.er1 >conftest.err
22364 cat conftest.err >&5
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); } && {
22367 test -z "$ac_c_werror_flag" ||
22368 test ! -s conftest.err
22369 } && test -s conftest.$ac_objext; then
22370 ac_header_compiler=yes
22372 echo "$as_me: failed program was:" >&5
22373 sed 's/^/| /' conftest.$ac_ext >&5
22375 ac_header_compiler=no
22378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22380 echo "${ECHO_T}$ac_header_compiler" >&6; }
22382 # Is the header present?
22383 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
22384 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
22385 cat >conftest.$ac_ext <<_ACEOF
22388 cat confdefs.h >>conftest.$ac_ext
22389 cat >>conftest.$ac_ext <<_ACEOF
22390 /* end confdefs.h. */
22393 if { (ac_try="$ac_cpp conftest.$ac_ext"
22394 case "(($ac_try" in
22395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22396 *) ac_try_echo=$ac_try;;
22398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22401 grep -v '^ *+' conftest.er1 >conftest.err
22403 cat conftest.err >&5
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); } >/dev/null && {
22406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22407 test ! -s conftest.err
22409 ac_header_preproc=yes
22411 echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22414 ac_header_preproc=no
22417 rm -f conftest.err conftest.$ac_ext
22418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22419 echo "${ECHO_T}$ac_header_preproc" >&6; }
22421 # So? What about this header?
22422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22424 { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
22425 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22426 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
22427 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
22428 ac_header_preproc=yes
22431 { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
22432 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
22433 { echo "$as_me:$LINENO: WARNING: pcap.h: check for missing prerequisite headers?" >&5
22434 echo "$as_me: WARNING: pcap.h: check for missing prerequisite headers?" >&2;}
22435 { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
22436 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
22437 { echo "$as_me:$LINENO: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&5
22438 echo "$as_me: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
22439 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
22440 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
22441 { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
22442 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
22446 { echo "$as_me:$LINENO: checking for pcap.h" >&5
22447 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
22448 if test "${ac_cv_header_pcap_h+set}" = set; then
22449 echo $ECHO_N "(cached) $ECHO_C" >&6
22451 ac_cv_header_pcap_h=$ac_header_preproc
22453 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22454 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
22457 if test $ac_cv_header_pcap_h = yes; then
22459 cat >>confdefs.h <<\_ACEOF
22460 #define HAVE_PCAP_H 1
22465 { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
22466 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
22475 { echo "$as_me:$LINENO: checking for off_t" >&5
22476 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22477 if test "${ac_cv_type_off_t+set}" = set; then
22478 echo $ECHO_N "(cached) $ECHO_C" >&6
22480 cat >conftest.$ac_ext <<_ACEOF
22483 cat confdefs.h >>conftest.$ac_ext
22484 cat >>conftest.$ac_ext <<_ACEOF
22485 /* end confdefs.h. */
22486 $ac_includes_default
22487 typedef off_t ac__type_new_;
22491 if ((ac__type_new_ *) 0)
22493 if (sizeof (ac__type_new_))
22499 rm -f conftest.$ac_objext
22500 if { (ac_try="$ac_compile"
22501 case "(($ac_try" in
22502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503 *) ac_try_echo=$ac_try;;
22505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22506 (eval "$ac_compile") 2>conftest.er1
22508 grep -v '^ *+' conftest.er1 >conftest.err
22510 cat conftest.err >&5
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); } && {
22513 test -z "$ac_c_werror_flag" ||
22514 test ! -s conftest.err
22515 } && test -s conftest.$ac_objext; then
22516 ac_cv_type_off_t=yes
22518 echo "$as_me: failed program was:" >&5
22519 sed 's/^/| /' conftest.$ac_ext >&5
22521 ac_cv_type_off_t=no
22524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22526 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22527 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22528 if test $ac_cv_type_off_t = yes; then
22532 cat >>confdefs.h <<_ACEOF
22533 #define off_t long int
22538 { echo "$as_me:$LINENO: checking for pid_t" >&5
22539 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22540 if test "${ac_cv_type_pid_t+set}" = set; then
22541 echo $ECHO_N "(cached) $ECHO_C" >&6
22543 cat >conftest.$ac_ext <<_ACEOF
22546 cat confdefs.h >>conftest.$ac_ext
22547 cat >>conftest.$ac_ext <<_ACEOF
22548 /* end confdefs.h. */
22549 $ac_includes_default
22550 typedef pid_t ac__type_new_;
22554 if ((ac__type_new_ *) 0)
22556 if (sizeof (ac__type_new_))
22562 rm -f conftest.$ac_objext
22563 if { (ac_try="$ac_compile"
22564 case "(($ac_try" in
22565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22566 *) ac_try_echo=$ac_try;;
22568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22569 (eval "$ac_compile") 2>conftest.er1
22571 grep -v '^ *+' conftest.er1 >conftest.err
22573 cat conftest.err >&5
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); } && {
22576 test -z "$ac_c_werror_flag" ||
22577 test ! -s conftest.err
22578 } && test -s conftest.$ac_objext; then
22579 ac_cv_type_pid_t=yes
22581 echo "$as_me: failed program was:" >&5
22582 sed 's/^/| /' conftest.$ac_ext >&5
22584 ac_cv_type_pid_t=no
22587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22589 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22590 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22591 if test $ac_cv_type_pid_t = yes; then
22595 cat >>confdefs.h <<_ACEOF
22601 { echo "$as_me:$LINENO: checking for size_t" >&5
22602 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22603 if test "${ac_cv_type_size_t+set}" = set; then
22604 echo $ECHO_N "(cached) $ECHO_C" >&6
22606 cat >conftest.$ac_ext <<_ACEOF
22609 cat confdefs.h >>conftest.$ac_ext
22610 cat >>conftest.$ac_ext <<_ACEOF
22611 /* end confdefs.h. */
22612 $ac_includes_default
22613 typedef size_t ac__type_new_;
22617 if ((ac__type_new_ *) 0)
22619 if (sizeof (ac__type_new_))
22625 rm -f conftest.$ac_objext
22626 if { (ac_try="$ac_compile"
22627 case "(($ac_try" in
22628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22629 *) ac_try_echo=$ac_try;;
22631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22632 (eval "$ac_compile") 2>conftest.er1
22634 grep -v '^ *+' conftest.er1 >conftest.err
22636 cat conftest.err >&5
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); } && {
22639 test -z "$ac_c_werror_flag" ||
22640 test ! -s conftest.err
22641 } && test -s conftest.$ac_objext; then
22642 ac_cv_type_size_t=yes
22644 echo "$as_me: failed program was:" >&5
22645 sed 's/^/| /' conftest.$ac_ext >&5
22647 ac_cv_type_size_t=no
22650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22652 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22653 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22654 if test $ac_cv_type_size_t = yes; then
22658 cat >>confdefs.h <<_ACEOF
22659 #define size_t unsigned int
22664 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22665 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22666 if test "${ac_cv_type_uid_t+set}" = set; then
22667 echo $ECHO_N "(cached) $ECHO_C" >&6
22669 cat >conftest.$ac_ext <<_ACEOF
22672 cat confdefs.h >>conftest.$ac_ext
22673 cat >>conftest.$ac_ext <<_ACEOF
22674 /* end confdefs.h. */
22675 #include <sys/types.h>
22678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22679 $EGREP "uid_t" >/dev/null 2>&1; then
22680 ac_cv_type_uid_t=yes
22682 ac_cv_type_uid_t=no
22687 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22688 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22689 if test $ac_cv_type_uid_t = no; then
22691 cat >>confdefs.h <<\_ACEOF
22696 cat >>confdefs.h <<\_ACEOF
22704 { echo "$as_me:$LINENO: checking for socklen_t" >&5
22705 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22706 if test "${ac_cv_type_socklen_t+set}" = set; then
22707 echo $ECHO_N "(cached) $ECHO_C" >&6
22709 ac_cv_type_socklen_t=no
22710 cat >conftest.$ac_ext <<_ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h. */
22716 #ifdef HAVE_SYS_TYPES_H
22717 #include <sys/types.h>
22719 #ifdef HAVE_SYS_SOCKET_H
22720 #include <sys/socket.h>
22731 rm -f conftest.$ac_objext
22732 if { (ac_try="$ac_compile"
22733 case "(($ac_try" in
22734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735 *) ac_try_echo=$ac_try;;
22737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22738 (eval "$ac_compile") 2>conftest.er1
22740 grep -v '^ *+' conftest.er1 >conftest.err
22742 cat conftest.err >&5
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); } && {
22745 test -z "$ac_c_werror_flag" ||
22746 test ! -s conftest.err
22747 } && test -s conftest.$ac_objext; then
22748 ac_cv_type_socklen_t=yes
22750 echo "$as_me: failed program was:" >&5
22751 sed 's/^/| /' conftest.$ac_ext >&5
22756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22760 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22761 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22763 if test "$ac_cv_type_socklen_t" != "yes"; then
22765 cat >>confdefs.h <<\_ACEOF
22766 #define socklen_t int
22773 { echo "$as_me:$LINENO: checking for uint8_t" >&5
22774 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
22775 if test "${ac_cv_type_uint8_t+set}" = set; then
22776 echo $ECHO_N "(cached) $ECHO_C" >&6
22778 ac_cv_type_uint8_t=no
22779 cat >conftest.$ac_ext <<_ACEOF
22782 cat confdefs.h >>conftest.$ac_ext
22783 cat >>conftest.$ac_ext <<_ACEOF
22784 /* end confdefs.h. */
22785 #ifdef HAVE_INTTYPES_H
22786 #include <inttypes.h>
22788 #ifdef HAVE_STDINT_H
22789 #include <stdint.h>
22800 rm -f conftest.$ac_objext
22801 if { (ac_try="$ac_compile"
22802 case "(($ac_try" in
22803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22804 *) ac_try_echo=$ac_try;;
22806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22807 (eval "$ac_compile") 2>conftest.er1
22809 grep -v '^ *+' conftest.er1 >conftest.err
22811 cat conftest.err >&5
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); } && {
22814 test -z "$ac_c_werror_flag" ||
22815 test ! -s conftest.err
22816 } && test -s conftest.$ac_objext; then
22817 ac_cv_type_uint8_t=yes
22819 echo "$as_me: failed program was:" >&5
22820 sed 's/^/| /' conftest.$ac_ext >&5
22825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22829 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22830 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
22832 if test "$ac_cv_type_uint8_t" != "yes"; then
22834 cat >>confdefs.h <<\_ACEOF
22835 #define uint8_t unsigned char
22842 { echo "$as_me:$LINENO: checking for uint16_t" >&5
22843 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22844 if test "${ac_cv_type_uint16_t+set}" = set; then
22845 echo $ECHO_N "(cached) $ECHO_C" >&6
22847 ac_cv_type_uint16_t=no
22848 cat >conftest.$ac_ext <<_ACEOF
22851 cat confdefs.h >>conftest.$ac_ext
22852 cat >>conftest.$ac_ext <<_ACEOF
22853 /* end confdefs.h. */
22854 #ifdef HAVE_INTTYPES_H
22855 #include <inttypes.h>
22857 #ifdef HAVE_STDINT_H
22858 #include <stdint.h>
22869 rm -f conftest.$ac_objext
22870 if { (ac_try="$ac_compile"
22871 case "(($ac_try" in
22872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873 *) ac_try_echo=$ac_try;;
22875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22876 (eval "$ac_compile") 2>conftest.er1
22878 grep -v '^ *+' conftest.er1 >conftest.err
22880 cat conftest.err >&5
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); } && {
22883 test -z "$ac_c_werror_flag" ||
22884 test ! -s conftest.err
22885 } && test -s conftest.$ac_objext; then
22886 ac_cv_type_uint16_t=yes
22888 echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.$ac_ext >&5
22894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22898 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22899 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22901 if test "$ac_cv_type_uint16_t" != "yes"; then
22903 cat >>confdefs.h <<\_ACEOF
22904 #define uint16_t unsigned short
22911 { echo "$as_me:$LINENO: checking for uint32_t" >&5
22912 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
22913 if test "${ac_cv_type_uint32_t+set}" = set; then
22914 echo $ECHO_N "(cached) $ECHO_C" >&6
22916 ac_cv_type_uint32_t=no
22917 cat >conftest.$ac_ext <<_ACEOF
22920 cat confdefs.h >>conftest.$ac_ext
22921 cat >>conftest.$ac_ext <<_ACEOF
22922 /* end confdefs.h. */
22923 #ifdef HAVE_INTTYPES_H
22924 #include <inttypes.h>
22926 #ifdef HAVE_STDINT_H
22927 #include <stdint.h>
22938 rm -f conftest.$ac_objext
22939 if { (ac_try="$ac_compile"
22940 case "(($ac_try" in
22941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22942 *) ac_try_echo=$ac_try;;
22944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22945 (eval "$ac_compile") 2>conftest.er1
22947 grep -v '^ *+' conftest.er1 >conftest.err
22949 cat conftest.err >&5
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); } && {
22952 test -z "$ac_c_werror_flag" ||
22953 test ! -s conftest.err
22954 } && test -s conftest.$ac_objext; then
22955 ac_cv_type_uint32_t=yes
22957 echo "$as_me: failed program was:" >&5
22958 sed 's/^/| /' conftest.$ac_ext >&5
22963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22967 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22968 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
22970 if test "$ac_cv_type_uint32_t" != "yes"; then
22972 cat >>confdefs.h <<\_ACEOF
22973 #define uint32_t unsigned int
22979 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
22980 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
22981 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
22982 echo $ECHO_N "(cached) $ECHO_C" >&6
22984 cat >conftest.$ac_ext <<_ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h. */
22991 #ifdef HAVE_NETINET_IN_H
22992 #include <netinet/in.h>
22996 typedef struct in6_addr ac__type_new_;
23000 if ((ac__type_new_ *) 0)
23002 if (sizeof (ac__type_new_))
23008 rm -f conftest.$ac_objext
23009 if { (ac_try="$ac_compile"
23010 case "(($ac_try" in
23011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23012 *) ac_try_echo=$ac_try;;
23014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23015 (eval "$ac_compile") 2>conftest.er1
23017 grep -v '^ *+' conftest.er1 >conftest.err
23019 cat conftest.err >&5
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); } && {
23022 test -z "$ac_c_werror_flag" ||
23023 test ! -s conftest.err
23024 } && test -s conftest.$ac_objext; then
23025 ac_cv_type_struct_in6_addr=yes
23027 echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23030 ac_cv_type_struct_in6_addr=no
23033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23035 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
23036 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
23037 if test $ac_cv_type_struct_in6_addr = yes; then
23039 cat >>confdefs.h <<\_ACEOF
23040 #define HAVE_STRUCT_IN6_ADDR 1
23046 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23047 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
23048 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
23049 echo $ECHO_N "(cached) $ECHO_C" >&6
23051 cat >conftest.$ac_ext <<_ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h. */
23058 #ifdef HAVE_NETINET_IN_H
23059 #include <netinet/in.h>
23061 #ifdef HAVE_SYS_SOCKET_H
23062 #include <sys/socket.h>
23066 typedef struct sockaddr_storage ac__type_new_;
23070 if ((ac__type_new_ *) 0)
23072 if (sizeof (ac__type_new_))
23078 rm -f conftest.$ac_objext
23079 if { (ac_try="$ac_compile"
23080 case "(($ac_try" in
23081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23082 *) ac_try_echo=$ac_try;;
23084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23085 (eval "$ac_compile") 2>conftest.er1
23087 grep -v '^ *+' conftest.er1 >conftest.err
23089 cat conftest.err >&5
23090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091 (exit $ac_status); } && {
23092 test -z "$ac_c_werror_flag" ||
23093 test ! -s conftest.err
23094 } && test -s conftest.$ac_objext; then
23095 ac_cv_type_struct_sockaddr_storage=yes
23097 echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23100 ac_cv_type_struct_sockaddr_storage=no
23103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23105 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
23106 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
23107 if test $ac_cv_type_struct_sockaddr_storage = yes; then
23109 cat >>confdefs.h <<\_ACEOF
23110 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
23116 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23117 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
23118 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
23119 echo $ECHO_N "(cached) $ECHO_C" >&6
23121 cat >conftest.$ac_ext <<_ACEOF
23124 cat confdefs.h >>conftest.$ac_ext
23125 cat >>conftest.$ac_ext <<_ACEOF
23126 /* end confdefs.h. */
23128 #ifdef HAVE_NETINET_IN_H
23129 #include <netinet/in.h>
23133 typedef struct sockaddr_in6 ac__type_new_;
23137 if ((ac__type_new_ *) 0)
23139 if (sizeof (ac__type_new_))
23145 rm -f conftest.$ac_objext
23146 if { (ac_try="$ac_compile"
23147 case "(($ac_try" in
23148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23149 *) ac_try_echo=$ac_try;;
23151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23152 (eval "$ac_compile") 2>conftest.er1
23154 grep -v '^ *+' conftest.er1 >conftest.err
23156 cat conftest.err >&5
23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); } && {
23159 test -z "$ac_c_werror_flag" ||
23160 test ! -s conftest.err
23161 } && test -s conftest.$ac_objext; then
23162 ac_cv_type_struct_sockaddr_in6=yes
23164 echo "$as_me: failed program was:" >&5
23165 sed 's/^/| /' conftest.$ac_ext >&5
23167 ac_cv_type_struct_sockaddr_in6=no
23170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23172 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
23173 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
23174 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
23176 cat >>confdefs.h <<\_ACEOF
23177 #define HAVE_STRUCT_SOCKADDR_IN6 1
23183 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
23184 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
23185 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
23186 echo $ECHO_N "(cached) $ECHO_C" >&6
23188 cat >conftest.$ac_ext <<_ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h. */
23195 #ifdef HAVE_SYS_TYPES_H
23196 #include <sys/types.h>
23198 #ifdef HAVE_SYS_SOCKET_H
23199 #include <sys/socket.h>
23201 #ifdef HAVE_NETDB_H
23206 typedef struct addrinfo ac__type_new_;
23210 if ((ac__type_new_ *) 0)
23212 if (sizeof (ac__type_new_))
23218 rm -f conftest.$ac_objext
23219 if { (ac_try="$ac_compile"
23220 case "(($ac_try" in
23221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23222 *) ac_try_echo=$ac_try;;
23224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23225 (eval "$ac_compile") 2>conftest.er1
23227 grep -v '^ *+' conftest.er1 >conftest.err
23229 cat conftest.err >&5
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); } && {
23232 test -z "$ac_c_werror_flag" ||
23233 test ! -s conftest.err
23234 } && test -s conftest.$ac_objext; then
23235 ac_cv_type_struct_addrinfo=yes
23237 echo "$as_me: failed program was:" >&5
23238 sed 's/^/| /' conftest.$ac_ext >&5
23240 ac_cv_type_struct_addrinfo=no
23243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23245 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
23246 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
23247 if test $ac_cv_type_struct_addrinfo = yes; then
23249 cat >>confdefs.h <<\_ACEOF
23250 #define HAVE_STRUCT_ADDRINFO 1
23315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23316 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23318 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23319 echo $ECHO_N "(cached) $ECHO_C" >&6
23321 cat >conftest.$ac_ext <<_ACEOF
23324 cat confdefs.h >>conftest.$ac_ext
23325 cat >>conftest.$ac_ext <<_ACEOF
23326 /* end confdefs.h. */
23327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23329 #define $ac_func innocuous_$ac_func
23331 /* System header to define __stub macros and hopefully few prototypes,
23332 which can conflict with char $ac_func (); below.
23333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23334 <limits.h> exists even on freestanding compilers. */
23337 # include <limits.h>
23339 # include <assert.h>
23344 /* Override any GCC internal prototype to avoid an error.
23345 Use char because int might match the return type of a GCC
23346 builtin and then its argument prototype would still apply. */
23351 /* The GNU C library defines this for functions which it implements
23352 to always fail with ENOSYS. Some functions are actually named
23353 something starting with __ and the normal name is an alias. */
23354 #if defined __stub_$ac_func || defined __stub___$ac_func
23361 return $ac_func ();
23366 rm -f conftest.$ac_objext conftest$ac_exeext
23367 if { (ac_try="$ac_link"
23368 case "(($ac_try" in
23369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23370 *) ac_try_echo=$ac_try;;
23372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23373 (eval "$ac_link") 2>conftest.er1
23375 grep -v '^ *+' conftest.er1 >conftest.err
23377 cat conftest.err >&5
23378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379 (exit $ac_status); } && {
23380 test -z "$ac_c_werror_flag" ||
23381 test ! -s conftest.err
23382 } && test -s conftest$ac_exeext &&
23383 $as_test_x conftest$ac_exeext; then
23384 eval "$as_ac_var=yes"
23386 echo "$as_me: failed program was:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23389 eval "$as_ac_var=no"
23392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23393 conftest$ac_exeext conftest.$ac_ext
23395 ac_res=`eval echo '${'$as_ac_var'}'`
23396 { echo "$as_me:$LINENO: result: $ac_res" >&5
23397 echo "${ECHO_T}$ac_res" >&6; }
23398 if test `eval echo '${'$as_ac_var'}'` = yes; then
23399 cat >>confdefs.h <<_ACEOF
23400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23416 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23417 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
23418 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
23419 echo $ECHO_N "(cached) $ECHO_C" >&6
23421 cat >conftest.$ac_ext <<_ACEOF
23424 cat confdefs.h >>conftest.$ac_ext
23425 cat >>conftest.$ac_ext <<_ACEOF
23426 /* end confdefs.h. */
23429 #include <string.h>
23430 #ifdef HAVE_UNISTD_H
23431 #include <unistd.h>
23433 #ifdef HAVE_CRYPT_H
23436 #ifdef HAVE_ERRNO_H
23439 #ifdef HAVE_RESOURCE_H
23440 #include <resource.h>
23442 #ifdef HAVE_GETOPT_H
23443 #include <getopt.h>
23445 #ifdef HAVE_MALLOC_H
23446 #include <malloc.h>
23451 #ifdef HAVE_UTMPX_H
23454 #ifdef HAVE_SYS_SELECT_H
23455 #include <sys/select.h>
23457 #ifdef HAVE_DLFCN_H
23460 #ifdef HAVE_REGEX_H
23463 #ifdef HAVE_SYSLOG_H
23464 #include <syslog.h>
23466 #ifdef HAVE_INTTYPES_H
23467 #include <inttypes.h>
23469 #ifdef HAVE_STDINT_H
23470 #include <stdint.h>
23472 #ifdef HAVE_ARPA_INET_H
23473 #include <arpa/inet.h>
23479 char *(*pfn) = (char *(*)) $ac_func
23484 rm -f conftest.$ac_objext
23485 if { (ac_try="$ac_compile"
23486 case "(($ac_try" in
23487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23488 *) ac_try_echo=$ac_try;;
23490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23491 (eval "$ac_compile") 2>conftest.er1
23493 grep -v '^ *+' conftest.er1 >conftest.err
23495 cat conftest.err >&5
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); } && {
23498 test -z "$ac_c_werror_flag" ||
23499 test ! -s conftest.err
23500 } && test -s conftest.$ac_objext; then
23501 eval "radius_cv_decl_needed_$ac_func=no"
23503 echo "$as_me: failed program was:" >&5
23504 sed 's/^/| /' conftest.$ac_ext >&5
23506 eval "radius_cv_decl_needed_$ac_func=yes"
23509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23512 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23513 { echo "$as_me:$LINENO: result: yes" >&5
23514 echo "${ECHO_T}yes" >&6; }
23515 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23516 cat >>confdefs.h <<_ACEOF
23517 #define $radius_tr_decl 1
23521 { echo "$as_me:$LINENO: result: no" >&5
23522 echo "${ECHO_T}no" >&6; }
23528 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23529 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
23530 if test "${ac_cv_type_signal+set}" = set; then
23531 echo $ECHO_N "(cached) $ECHO_C" >&6
23533 cat >conftest.$ac_ext <<_ACEOF
23536 cat confdefs.h >>conftest.$ac_ext
23537 cat >>conftest.$ac_ext <<_ACEOF
23538 /* end confdefs.h. */
23539 #include <sys/types.h>
23540 #include <signal.h>
23545 return *(signal (0, 0)) (0) == 1;
23550 rm -f conftest.$ac_objext
23551 if { (ac_try="$ac_compile"
23552 case "(($ac_try" in
23553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23554 *) ac_try_echo=$ac_try;;
23556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23557 (eval "$ac_compile") 2>conftest.er1
23559 grep -v '^ *+' conftest.er1 >conftest.err
23561 cat conftest.err >&5
23562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563 (exit $ac_status); } && {
23564 test -z "$ac_c_werror_flag" ||
23565 test ! -s conftest.err
23566 } && test -s conftest.$ac_objext; then
23567 ac_cv_type_signal=int
23569 echo "$as_me: failed program was:" >&5
23570 sed 's/^/| /' conftest.$ac_ext >&5
23572 ac_cv_type_signal=void
23575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23577 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23578 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
23580 cat >>confdefs.h <<_ACEOF
23581 #define RETSIGTYPE $ac_cv_type_signal
23586 if test "x$ac_cv_header_utmpx_h" = "xyes"
23589 { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23590 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
23593 cat >conftest.$ac_ext <<_ACEOF
23596 cat confdefs.h >>conftest.$ac_ext
23597 cat >>conftest.$ac_ext <<_ACEOF
23598 /* end confdefs.h. */
23602 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23608 int foo = offsetof(struct utmpx, ut_xtime)
23613 rm -f conftest.$ac_objext
23614 if { (ac_try="$ac_compile"
23615 case "(($ac_try" in
23616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23617 *) ac_try_echo=$ac_try;;
23619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23620 (eval "$ac_compile") 2>conftest.er1
23622 grep -v '^ *+' conftest.er1 >conftest.err
23624 cat conftest.err >&5
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); } && {
23627 test -z "$ac_c_werror_flag" ||
23628 test ! -s conftest.err
23629 } && test -s conftest.$ac_objext; then
23632 echo "$as_me: failed program was:" >&5
23633 sed 's/^/| /' conftest.$ac_ext >&5
23638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23640 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23641 if test "x$has_element" != "x"; then
23642 { echo "$as_me:$LINENO: result: yes" >&5
23643 echo "${ECHO_T}yes" >&6; }
23644 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23646 { echo "$as_me:$LINENO: result: no" >&5
23647 echo "${ECHO_T}no" >&6; }
23648 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23651 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23654 cat >>confdefs.h <<\_ACEOF
23655 #define ut_xtime ut_tv.tv_sec
23662 { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23663 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
23666 cat >conftest.$ac_ext <<_ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h. */
23673 #include <netinet/in.h>
23675 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23681 int foo = offsetof(struct in_pktinfo, ipi_addr)
23686 rm -f conftest.$ac_objext
23687 if { (ac_try="$ac_compile"
23688 case "(($ac_try" in
23689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23690 *) ac_try_echo=$ac_try;;
23692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23693 (eval "$ac_compile") 2>conftest.er1
23695 grep -v '^ *+' conftest.er1 >conftest.err
23697 cat conftest.err >&5
23698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699 (exit $ac_status); } && {
23700 test -z "$ac_c_werror_flag" ||
23701 test ! -s conftest.err
23702 } && test -s conftest.$ac_objext; then
23705 echo "$as_me: failed program was:" >&5
23706 sed 's/^/| /' conftest.$ac_ext >&5
23711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23713 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23714 if test "x$has_element" != "x"; then
23715 { echo "$as_me:$LINENO: result: yes" >&5
23716 echo "${ECHO_T}yes" >&6; }
23717 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23719 { echo "$as_me:$LINENO: result: no" >&5
23720 echo "${ECHO_T}no" >&6; }
23721 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23724 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23727 cat >>confdefs.h <<\_ACEOF
23728 #define HAVE_IP_PKTINFO
23734 { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
23735 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
23738 cat >conftest.$ac_ext <<_ACEOF
23741 cat confdefs.h >>conftest.$ac_ext
23742 cat >>conftest.$ac_ext <<_ACEOF
23743 /* end confdefs.h. */
23745 #include <netinet/in.h>
23747 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23753 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
23758 rm -f conftest.$ac_objext
23759 if { (ac_try="$ac_compile"
23760 case "(($ac_try" in
23761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23762 *) ac_try_echo=$ac_try;;
23764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23765 (eval "$ac_compile") 2>conftest.er1
23767 grep -v '^ *+' conftest.er1 >conftest.err
23769 cat conftest.err >&5
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); } && {
23772 test -z "$ac_c_werror_flag" ||
23773 test ! -s conftest.err
23774 } && test -s conftest.$ac_objext; then
23777 echo "$as_me: failed program was:" >&5
23778 sed 's/^/| /' conftest.$ac_ext >&5
23783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23785 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
23786 if test "x$has_element" != "x"; then
23787 { echo "$as_me:$LINENO: result: yes" >&5
23788 echo "${ECHO_T}yes" >&6; }
23789 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
23791 { echo "$as_me:$LINENO: result: no" >&5
23792 echo "${ECHO_T}no" >&6; }
23793 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
23796 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
23799 cat >>confdefs.h <<\_ACEOF
23800 #define HAVE_IN6_PKTINFO
23806 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23807 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23808 if test "${ac_cv_c_const+set}" = set; then
23809 echo $ECHO_N "(cached) $ECHO_C" >&6
23811 cat >conftest.$ac_ext <<_ACEOF
23814 cat confdefs.h >>conftest.$ac_ext
23815 cat >>conftest.$ac_ext <<_ACEOF
23816 /* end confdefs.h. */
23821 /* FIXME: Include the comments suggested by Paul. */
23822 #ifndef __cplusplus
23823 /* Ultrix mips cc rejects this. */
23824 typedef int charset[2];
23826 /* SunOS 4.1.1 cc rejects this. */
23827 char const *const *pcpcc;
23829 /* NEC SVR4.0.2 mips cc rejects this. */
23830 struct point {int x, y;};
23831 static struct point const zero = {0,0};
23832 /* AIX XL C 1.02.0.0 rejects this.
23833 It does not let you subtract one const X* pointer from another in
23834 an arm of an if-expression whose if-part is not a constant
23836 const char *g = "string";
23837 pcpcc = &g + (g ? g-g : 0);
23838 /* HPUX 7.0 cc rejects these. */
23840 ppc = (char**) pcpcc;
23841 pcpcc = (char const *const *) ppc;
23842 { /* SCO 3.2v4 cc rejects this. */
23844 char const *s = 0 ? (char *) 0 : (char const *) 0;
23849 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23850 int x[] = {25, 17};
23851 const int *foo = &x[0];
23854 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23855 typedef const int *iptr;
23859 { /* AIX XL C 1.02.0.0 rejects this saying
23860 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23861 struct s { int j; const int *ap[3]; };
23862 struct s *b; b->j = 5;
23864 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23865 const int foo = 10;
23866 if (!foo) return 0;
23868 return !cs[0] && !zero.x;
23875 rm -f conftest.$ac_objext
23876 if { (ac_try="$ac_compile"
23877 case "(($ac_try" in
23878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23879 *) ac_try_echo=$ac_try;;
23881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23882 (eval "$ac_compile") 2>conftest.er1
23884 grep -v '^ *+' conftest.er1 >conftest.err
23886 cat conftest.err >&5
23887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888 (exit $ac_status); } && {
23889 test -z "$ac_c_werror_flag" ||
23890 test ! -s conftest.err
23891 } && test -s conftest.$ac_objext; then
23894 echo "$as_me: failed program was:" >&5
23895 sed 's/^/| /' conftest.$ac_ext >&5
23900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23902 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23903 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23904 if test $ac_cv_c_const = no; then
23906 cat >>confdefs.h <<\_ACEOF
23913 { echo "$as_me:$LINENO: checking type of OS" >&5
23914 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
23916 { echo "$as_me:$LINENO: result: $OS" >&5
23917 echo "${ECHO_T}$OS" >&6; }
23918 if test "$OS" = "OS/2"; then
23925 if test "x$GCC" = "xyes"; then
23926 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
23929 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
23930 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
23931 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
23932 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
23933 CFLAGS="$CFLAGS $devflags"
23935 { echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
23936 echo "${ECHO_T}yes. Using $devflags" >&6; }
23939 CFLAGS="$CFLAGS -DNDEBUG"
23941 { echo "$as_me:$LINENO: result: no." >&5
23942 echo "${ECHO_T}no." >&6; }
23946 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23947 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
23948 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23949 echo $ECHO_N "(cached) $ECHO_C" >&6
23951 ac_check_lib_save_LIBS=$LIBS
23952 LIBS="-lcrypt $LIBS"
23953 cat >conftest.$ac_ext <<_ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h. */
23960 /* Override any GCC internal prototype to avoid an error.
23961 Use char because int might match the return type of a GCC
23962 builtin and then its argument prototype would still apply. */
23975 rm -f conftest.$ac_objext conftest$ac_exeext
23976 if { (ac_try="$ac_link"
23977 case "(($ac_try" in
23978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23979 *) ac_try_echo=$ac_try;;
23981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23982 (eval "$ac_link") 2>conftest.er1
23984 grep -v '^ *+' conftest.er1 >conftest.err
23986 cat conftest.err >&5
23987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23988 (exit $ac_status); } && {
23989 test -z "$ac_c_werror_flag" ||
23990 test ! -s conftest.err
23991 } && test -s conftest$ac_exeext &&
23992 $as_test_x conftest$ac_exeext; then
23993 ac_cv_lib_crypt_crypt=yes
23995 echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
23998 ac_cv_lib_crypt_crypt=no
24001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24002 conftest$ac_exeext conftest.$ac_ext
24003 LIBS=$ac_check_lib_save_LIBS
24005 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
24006 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
24007 if test $ac_cv_lib_crypt_crypt = yes; then
24012 if test "$CRYPTLIB" != ""; then
24014 cat >>confdefs.h <<\_ACEOF
24019 { echo "$as_me:$LINENO: checking for crypt" >&5
24020 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
24021 if test "${ac_cv_func_crypt+set}" = set; then
24022 echo $ECHO_N "(cached) $ECHO_C" >&6
24024 cat >conftest.$ac_ext <<_ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h. */
24030 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
24031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24032 #define crypt innocuous_crypt
24034 /* System header to define __stub macros and hopefully few prototypes,
24035 which can conflict with char crypt (); below.
24036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24037 <limits.h> exists even on freestanding compilers. */
24040 # include <limits.h>
24042 # include <assert.h>
24047 /* Override any GCC internal prototype to avoid an error.
24048 Use char because int might match the return type of a GCC
24049 builtin and then its argument prototype would still apply. */
24054 /* The GNU C library defines this for functions which it implements
24055 to always fail with ENOSYS. Some functions are actually named
24056 something starting with __ and the normal name is an alias. */
24057 #if defined __stub_crypt || defined __stub___crypt
24069 rm -f conftest.$ac_objext conftest$ac_exeext
24070 if { (ac_try="$ac_link"
24071 case "(($ac_try" in
24072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24073 *) ac_try_echo=$ac_try;;
24075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24076 (eval "$ac_link") 2>conftest.er1
24078 grep -v '^ *+' conftest.er1 >conftest.err
24080 cat conftest.err >&5
24081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082 (exit $ac_status); } && {
24083 test -z "$ac_c_werror_flag" ||
24084 test ! -s conftest.err
24085 } && test -s conftest$ac_exeext &&
24086 $as_test_x conftest$ac_exeext; then
24087 ac_cv_func_crypt=yes
24089 echo "$as_me: failed program was:" >&5
24090 sed 's/^/| /' conftest.$ac_ext >&5
24092 ac_cv_func_crypt=no
24095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24096 conftest$ac_exeext conftest.$ac_ext
24098 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
24099 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
24100 if test $ac_cv_func_crypt = yes; then
24102 cat >>confdefs.h <<\_ACEOF
24110 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
24111 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
24112 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
24113 echo $ECHO_N "(cached) $ECHO_C" >&6
24115 ac_check_lib_save_LIBS=$LIBS
24116 LIBS="-lcipher $LIBS"
24117 cat >conftest.$ac_ext <<_ACEOF
24120 cat confdefs.h >>conftest.$ac_ext
24121 cat >>conftest.$ac_ext <<_ACEOF
24122 /* end confdefs.h. */
24124 /* Override any GCC internal prototype to avoid an error.
24125 Use char because int might match the return type of a GCC
24126 builtin and then its argument prototype would still apply. */
24139 rm -f conftest.$ac_objext conftest$ac_exeext
24140 if { (ac_try="$ac_link"
24141 case "(($ac_try" in
24142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24143 *) ac_try_echo=$ac_try;;
24145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24146 (eval "$ac_link") 2>conftest.er1
24148 grep -v '^ *+' conftest.er1 >conftest.err
24150 cat conftest.err >&5
24151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152 (exit $ac_status); } && {
24153 test -z "$ac_c_werror_flag" ||
24154 test ! -s conftest.err
24155 } && test -s conftest$ac_exeext &&
24156 $as_test_x conftest$ac_exeext; then
24157 ac_cv_lib_cipher_setkey=yes
24159 echo "$as_me: failed program was:" >&5
24160 sed 's/^/| /' conftest.$ac_ext >&5
24162 ac_cv_lib_cipher_setkey=no
24165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24166 conftest$ac_exeext conftest.$ac_ext
24167 LIBS=$ac_check_lib_save_LIBS
24169 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
24170 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
24171 if test $ac_cv_lib_cipher_setkey = yes; then
24172 CRYPTLIB="${CRYPTLIB} -lcipher"
24178 if test "x$WITH_SNMP" = "xyes"; then
24183 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
24184 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
24186 cat >conftest.$ac_ext <<_ACEOF
24189 cat confdefs.h >>conftest.$ac_ext
24190 cat >>conftest.$ac_ext <<_ACEOF
24191 /* end confdefs.h. */
24193 #ifdef HAVE_SYS_TYPES_H
24194 #include <sys/types.h>
24196 #ifdef HAVE_STDINT_H
24197 #include <stdint.h>
24199 #ifdef HAVE_STDIO_H
24202 #ifdef HAVE_NETDB_H
24205 #ifdef HAVE_UNISTD_H
24206 #include <unistd.h>
24208 #include <ucd-snmp/ucd-snmp-config.h>
24209 #include <ucd-snmp/asn1.h>
24210 #include <ucd-snmp/snmp.h>
24211 #include <ucd-snmp/snmp_impl.h>
24220 rm -f conftest.$ac_objext
24221 if { (ac_try="$ac_compile"
24222 case "(($ac_try" in
24223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24224 *) ac_try_echo=$ac_try;;
24226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24227 (eval "$ac_compile") 2>conftest.er1
24229 grep -v '^ *+' conftest.er1 >conftest.err
24231 cat conftest.err >&5
24232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24233 (exit $ac_status); } && {
24234 test -z "$ac_c_werror_flag" ||
24235 test ! -s conftest.err
24236 } && test -s conftest.$ac_objext; then
24237 SNMP_INCLUDE="";ucdsnmp=yes
24239 echo "$as_me: failed program was:" >&5
24240 sed 's/^/| /' conftest.$ac_ext >&5
24245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24247 if test "x$ucdsnmp" = "x"; then
24248 old_CFLAGS="$CFLAGS"
24249 for try in /usr/include /usr/local/include $snmp_include_dir; do
24250 CFLAGS="$old_CFLAGS -I$try"
24251 cat >conftest.$ac_ext <<_ACEOF
24254 cat confdefs.h >>conftest.$ac_ext
24255 cat >>conftest.$ac_ext <<_ACEOF
24256 /* end confdefs.h. */
24258 #ifdef HAVE_SYS_TYPES_H
24259 #include <sys/types.h>
24261 #ifdef HAVE_STDINT_H
24262 #include <stdint.h>
24264 #ifdef HAVE_STDIO_H
24267 #ifdef HAVE_NETDB_H
24270 #ifdef HAVE_UNISTD_H
24271 #include <unistd.h>
24273 #include <ucd-snmp/ucd-snmp-config.h>
24274 #include <ucd-snmp/asn1.h>
24275 #include <ucd-snmp/snmp.h>
24276 #include <ucd-snmp/snmp_impl.h>
24285 rm -f conftest.$ac_objext
24286 if { (ac_try="$ac_compile"
24287 case "(($ac_try" in
24288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24289 *) ac_try_echo=$ac_try;;
24291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24292 (eval "$ac_compile") 2>conftest.er1
24294 grep -v '^ *+' conftest.er1 >conftest.err
24296 cat conftest.err >&5
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); } && {
24299 test -z "$ac_c_werror_flag" ||
24300 test ! -s conftest.err
24301 } && test -s conftest.$ac_objext; then
24302 SNMP_INCLUDE="-I$try";ucdsnmp=yes
24304 echo "$as_me: failed program was:" >&5
24305 sed 's/^/| /' conftest.$ac_ext >&5
24310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24311 if test "x$ucdsnmp" != "x"; then
24315 CFLAGS="$old_CFLAGS"
24318 if test "x$ucdsnmp" = "x"; then
24319 old_CFLAGS="$CFLAGS"
24320 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24321 CFLAGS="$old_CFLAGS -I$try"
24322 cat >conftest.$ac_ext <<_ACEOF
24325 cat confdefs.h >>conftest.$ac_ext
24326 cat >>conftest.$ac_ext <<_ACEOF
24327 /* end confdefs.h. */
24329 #ifdef HAVE_SYS_TYPES_H
24330 #include <sys/types.h>
24332 #ifdef HAVE_STDINT_H
24333 #include <stdint.h>
24335 #ifdef HAVE_STDIO_H
24338 #ifdef HAVE_NETDB_H
24341 #ifdef HAVE_UNISTD_H
24342 #include <unistd.h>
24346 #include <snmp_impl.h>
24355 rm -f conftest.$ac_objext
24356 if { (ac_try="$ac_compile"
24357 case "(($ac_try" in
24358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24359 *) ac_try_echo=$ac_try;;
24361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24362 (eval "$ac_compile") 2>conftest.er1
24364 grep -v '^ *+' conftest.er1 >conftest.err
24366 cat conftest.err >&5
24367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368 (exit $ac_status); } && {
24369 test -z "$ac_c_werror_flag" ||
24370 test ! -s conftest.err
24371 } && test -s conftest.$ac_objext; then
24372 SNMP_INCLUDE="";ucdsnmp=no
24374 echo "$as_me: failed program was:" >&5
24375 sed 's/^/| /' conftest.$ac_ext >&5
24380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24381 if test "x$ucdsnmp" != "x"; then
24385 CFLAGS="$old_CFLAGS"
24388 if test "x$ucdsnmp" = "x"; then
24389 old_CFLAGS="$CFLAGS"
24390 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24391 CFLAGS="$old_CFLAGS -I$try"
24392 cat >conftest.$ac_ext <<_ACEOF
24395 cat confdefs.h >>conftest.$ac_ext
24396 cat >>conftest.$ac_ext <<_ACEOF
24397 /* end confdefs.h. */
24399 #ifdef HAVE_SYS_TYPES_H
24400 #include <sys/types.h>
24402 #ifdef HAVE_STDINT_H
24403 #include <stdint.h>
24405 #ifdef HAVE_STDIO_H
24408 #ifdef HAVE_NETDB_H
24411 #ifdef HAVE_UNISTD_H
24412 #include <unistd.h>
24416 #include <snmp_impl.h>
24425 rm -f conftest.$ac_objext
24426 if { (ac_try="$ac_compile"
24427 case "(($ac_try" in
24428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24429 *) ac_try_echo=$ac_try;;
24431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24432 (eval "$ac_compile") 2>conftest.er1
24434 grep -v '^ *+' conftest.er1 >conftest.err
24436 cat conftest.err >&5
24437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438 (exit $ac_status); } && {
24439 test -z "$ac_c_werror_flag" ||
24440 test ! -s conftest.err
24441 } && test -s conftest.$ac_objext; then
24442 SNMP_INCLUDE="-I$try";ucdsnmp=no
24444 echo "$as_me: failed program was:" >&5
24445 sed 's/^/| /' conftest.$ac_ext >&5
24450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24451 if test "x$ucdsnmp" != "x"; then
24455 CFLAGS="$old_CFLAGS"
24458 if test "x$ucdsnmp" = "x"; then
24459 { echo "$as_me:$LINENO: result: no" >&5
24460 echo "${ECHO_T}no" >&6; }
24462 if test "x$ucdsnmp" = "xyes"; then
24463 { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
24464 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
24466 cat >>confdefs.h <<\_ACEOF
24467 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
24471 { echo "$as_me:$LINENO: result: yes" >&5
24472 echo "${ECHO_T}yes" >&6; }
24474 cat >>confdefs.h <<\_ACEOF
24475 #define HAVE_ASN1_SNMP_SNMPIMPL_H
24479 { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
24480 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
24483 LIBS="$old_LIBS -lsnmp"
24484 cat >conftest.$ac_ext <<_ACEOF
24487 cat confdefs.h >>conftest.$ac_ext
24488 cat >>conftest.$ac_ext <<_ACEOF
24489 /* end confdefs.h. */
24490 extern char snmp_build_var_op();
24494 snmp_build_var_op()
24499 rm -f conftest.$ac_objext conftest$ac_exeext
24500 if { (ac_try="$ac_link"
24501 case "(($ac_try" in
24502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24503 *) ac_try_echo=$ac_try;;
24505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24506 (eval "$ac_link") 2>conftest.er1
24508 grep -v '^ *+' conftest.er1 >conftest.err
24510 cat conftest.err >&5
24511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512 (exit $ac_status); } && {
24513 test -z "$ac_c_werror_flag" ||
24514 test ! -s conftest.err
24515 } && test -s conftest$ac_exeext &&
24516 $as_test_x conftest$ac_exeext; then
24519 echo "$as_me: failed program was:" >&5
24520 sed 's/^/| /' conftest.$ac_ext >&5
24525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24526 conftest$ac_exeext conftest.$ac_ext
24528 if test "x$SNMP_LIBS" = "x"; then
24529 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
24530 LIBS="$old_LIBS -L$try -lsnmp"
24531 cat >conftest.$ac_ext <<_ACEOF
24534 cat confdefs.h >>conftest.$ac_ext
24535 cat >>conftest.$ac_ext <<_ACEOF
24536 /* end confdefs.h. */
24537 extern char snmp_build_var_op();
24541 snmp_build_var_op()
24546 rm -f conftest.$ac_objext conftest$ac_exeext
24547 if { (ac_try="$ac_link"
24548 case "(($ac_try" in
24549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24550 *) ac_try_echo=$ac_try;;
24552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24553 (eval "$ac_link") 2>conftest.er1
24555 grep -v '^ *+' conftest.er1 >conftest.err
24557 cat conftest.err >&5
24558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559 (exit $ac_status); } && {
24560 test -z "$ac_c_werror_flag" ||
24561 test ! -s conftest.err
24562 } && test -s conftest$ac_exeext &&
24563 $as_test_x conftest$ac_exeext; then
24564 SNMP_LIBS="-L$try -lsnmp"
24566 echo "$as_me: failed program was:" >&5
24567 sed 's/^/| /' conftest.$ac_ext >&5
24572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24573 conftest$ac_exeext conftest.$ac_ext
24574 if test "x$SNMP_LIBS" != "x"; then
24577 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24578 cat >conftest.$ac_ext <<_ACEOF
24581 cat confdefs.h >>conftest.$ac_ext
24582 cat >>conftest.$ac_ext <<_ACEOF
24583 /* end confdefs.h. */
24584 extern char snmp_build_var_op();
24588 snmp_build_var_op()
24593 rm -f conftest.$ac_objext conftest$ac_exeext
24594 if { (ac_try="$ac_link"
24595 case "(($ac_try" in
24596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24597 *) ac_try_echo=$ac_try;;
24599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24600 (eval "$ac_link") 2>conftest.er1
24602 grep -v '^ *+' conftest.er1 >conftest.err
24604 cat conftest.err >&5
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); } && {
24607 test -z "$ac_c_werror_flag" ||
24608 test ! -s conftest.err
24609 } && test -s conftest$ac_exeext &&
24610 $as_test_x conftest$ac_exeext; then
24611 SNMP_LIBS="-L$try -lsnmp -lcrypto"
24613 echo "$as_me: failed program was:" >&5
24614 sed 's/^/| /' conftest.$ac_ext >&5
24619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24620 conftest$ac_exeext conftest.$ac_ext
24621 if test "x$SNMP_LIBS" != "x"; then
24624 LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
24625 cat >conftest.$ac_ext <<_ACEOF
24628 cat confdefs.h >>conftest.$ac_ext
24629 cat >>conftest.$ac_ext <<_ACEOF
24630 /* end confdefs.h. */
24631 extern char snmp_build_var_op();
24635 snmp_build_var_op()
24640 rm -f conftest.$ac_objext conftest$ac_exeext
24641 if { (ac_try="$ac_link"
24642 case "(($ac_try" in
24643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24644 *) ac_try_echo=$ac_try;;
24646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24647 (eval "$ac_link") 2>conftest.er1
24649 grep -v '^ *+' conftest.er1 >conftest.err
24651 cat conftest.err >&5
24652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653 (exit $ac_status); } && {
24654 test -z "$ac_c_werror_flag" ||
24655 test ! -s conftest.err
24656 } && test -s conftest$ac_exeext &&
24657 $as_test_x conftest$ac_exeext; then
24658 SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
24660 echo "$as_me: failed program was:" >&5
24661 sed 's/^/| /' conftest.$ac_ext >&5
24666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24667 conftest$ac_exeext conftest.$ac_ext
24668 if test "x$SNMP_LIBS" != "x"; then
24675 CFLAGS="$old_CFLAGS"
24676 if test "x$SNMP_LIBS" = "x"; then
24677 { echo "$as_me:$LINENO: result: no" >&5
24678 echo "${ECHO_T}no" >&6; }
24681 { echo "$as_me:$LINENO: result: yes" >&5
24682 echo "${ECHO_T}yes" >&6; }
24684 cat >>confdefs.h <<\_ACEOF
24689 cat >>confdefs.h <<\_ACEOF
24690 #define HAVE_LIBSNMP
24699 cat >>confdefs.h <<\_ACEOF
24704 cat >>confdefs.h <<\_ACEOF
24705 #define SYSVSTYLE 2
24709 cat >>confdefs.h <<\_ACEOF
24713 gethostbyaddrrstyle=""
24714 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24715 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
24718 { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
24719 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
24720 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
24721 echo $ECHO_N "(cached) $ECHO_C" >&6
24723 cat >conftest.$ac_ext <<_ACEOF
24726 cat confdefs.h >>conftest.$ac_ext
24727 cat >>conftest.$ac_ext <<_ACEOF
24728 /* end confdefs.h. */
24730 #ifdef HAVE_NETDB_H
24738 #ifndef gethostbyaddr_r
24739 (void) gethostbyaddr_r;
24746 rm -f conftest.$ac_objext
24747 if { (ac_try="$ac_compile"
24748 case "(($ac_try" in
24749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24750 *) ac_try_echo=$ac_try;;
24752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24753 (eval "$ac_compile") 2>conftest.er1
24755 grep -v '^ *+' conftest.er1 >conftest.err
24757 cat conftest.err >&5
24758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759 (exit $ac_status); } && {
24760 test -z "$ac_c_werror_flag" ||
24761 test ! -s conftest.err
24762 } && test -s conftest.$ac_objext; then
24763 ac_cv_have_decl_gethostbyaddr_r=yes
24765 echo "$as_me: failed program was:" >&5
24766 sed 's/^/| /' conftest.$ac_ext >&5
24768 ac_cv_have_decl_gethostbyaddr_r=no
24771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24773 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
24774 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
24775 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
24777 cat >>confdefs.h <<_ACEOF
24778 #define HAVE_DECL_GETHOSTBYADDR_R 1
24783 cat >>confdefs.h <<_ACEOF
24784 #define HAVE_DECL_GETHOSTBYADDR_R 0
24789 cat >>confdefs.h <<\_ACEOF
24790 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24793 gethostbyaddrrstyle=BSD
24794 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24795 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24802 if test "x$gethostbyaddrrstyle" = "x"; then
24803 cat >conftest.$ac_ext <<_ACEOF
24806 cat confdefs.h >>conftest.$ac_ext
24807 cat >>conftest.$ac_ext <<_ACEOF
24808 /* end confdefs.h. */
24816 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24821 rm -f conftest.$ac_objext conftest$ac_exeext
24822 if { (ac_try="$ac_link"
24823 case "(($ac_try" in
24824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24825 *) ac_try_echo=$ac_try;;
24827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24828 (eval "$ac_link") 2>conftest.er1
24830 grep -v '^ *+' conftest.er1 >conftest.err
24832 cat conftest.err >&5
24833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834 (exit $ac_status); } && {
24835 test -z "$ac_c_werror_flag" ||
24836 test ! -s conftest.err
24837 } && test -s conftest$ac_exeext &&
24838 $as_test_x conftest$ac_exeext; then
24841 cat >>confdefs.h <<\_ACEOF
24842 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24845 gethostbyaddrrstyle=GNU
24848 echo "$as_me: failed program was:" >&5
24849 sed 's/^/| /' conftest.$ac_ext >&5
24854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24855 conftest$ac_exeext conftest.$ac_ext
24857 if test "x$gethostbyaddrrstyle" = "x"; then
24858 cat >conftest.$ac_ext <<_ACEOF
24861 cat confdefs.h >>conftest.$ac_ext
24862 cat >>conftest.$ac_ext <<_ACEOF
24863 /* end confdefs.h. */
24871 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
24876 rm -f conftest.$ac_objext conftest$ac_exeext
24877 if { (ac_try="$ac_link"
24878 case "(($ac_try" in
24879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24880 *) ac_try_echo=$ac_try;;
24882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24883 (eval "$ac_link") 2>conftest.er1
24885 grep -v '^ *+' conftest.er1 >conftest.err
24887 cat conftest.err >&5
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); } && {
24890 test -z "$ac_c_werror_flag" ||
24891 test ! -s conftest.err
24892 } && test -s conftest$ac_exeext &&
24893 $as_test_x conftest$ac_exeext; then
24896 cat >>confdefs.h <<\_ACEOF
24897 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
24900 gethostbyaddrrstyle=SYSV
24903 echo "$as_me: failed program was:" >&5
24904 sed 's/^/| /' conftest.$ac_ext >&5
24909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24910 conftest$ac_exeext conftest.$ac_ext
24912 if test "x$gethostbyaddrrstyle" = "x"; then
24913 cat >conftest.$ac_ext <<_ACEOF
24916 cat confdefs.h >>conftest.$ac_ext
24917 cat >>conftest.$ac_ext <<_ACEOF
24918 /* end confdefs.h. */
24926 gethostbyaddr(NULL, 0, 0)
24931 rm -f conftest.$ac_objext conftest$ac_exeext
24932 if { (ac_try="$ac_link"
24933 case "(($ac_try" in
24934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24935 *) ac_try_echo=$ac_try;;
24937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24938 (eval "$ac_link") 2>conftest.er1
24940 grep -v '^ *+' conftest.er1 >conftest.err
24942 cat conftest.err >&5
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); } && {
24945 test -z "$ac_c_werror_flag" ||
24946 test ! -s conftest.err
24947 } && test -s conftest$ac_exeext &&
24948 $as_test_x conftest$ac_exeext; then
24951 cat >>confdefs.h <<\_ACEOF
24952 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24955 gethostbyaddrrstyle=BSD
24958 echo "$as_me: failed program was:" >&5
24959 sed 's/^/| /' conftest.$ac_ext >&5
24964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24965 conftest$ac_exeext conftest.$ac_ext
24968 if test "x$gethostbyaddrrstyle" = "x"; then
24969 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24970 echo "${ECHO_T}none! It must not exist, here." >&6; }
24972 { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
24973 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
24976 if test "x$gethostbyaddrrstyle" = "xBSD"; then
24977 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
24978 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
24981 gethostbynamerstyle=""
24982 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
24983 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
24984 cat >conftest.$ac_ext <<_ACEOF
24987 cat confdefs.h >>conftest.$ac_ext
24988 cat >>conftest.$ac_ext <<_ACEOF
24989 /* end confdefs.h. */
24997 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
25002 rm -f conftest.$ac_objext conftest$ac_exeext
25003 if { (ac_try="$ac_link"
25004 case "(($ac_try" in
25005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25006 *) ac_try_echo=$ac_try;;
25008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25009 (eval "$ac_link") 2>conftest.er1
25011 grep -v '^ *+' conftest.er1 >conftest.err
25013 cat conftest.err >&5
25014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); } && {
25016 test -z "$ac_c_werror_flag" ||
25017 test ! -s conftest.err
25018 } && test -s conftest$ac_exeext &&
25019 $as_test_x conftest$ac_exeext; then
25022 cat >>confdefs.h <<\_ACEOF
25023 #define GETHOSTBYNAMERSTYLE GNUSTYLE
25026 gethostbynamerstyle=GNU
25029 echo "$as_me: failed program was:" >&5
25030 sed 's/^/| /' conftest.$ac_ext >&5
25035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25036 conftest$ac_exeext conftest.$ac_ext
25037 if test "x$gethostbynamerstyle" = "x"; then
25038 cat >conftest.$ac_ext <<_ACEOF
25041 cat confdefs.h >>conftest.$ac_ext
25042 cat >>conftest.$ac_ext <<_ACEOF
25043 /* end confdefs.h. */
25051 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25056 rm -f conftest.$ac_objext conftest$ac_exeext
25057 if { (ac_try="$ac_link"
25058 case "(($ac_try" in
25059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25060 *) ac_try_echo=$ac_try;;
25062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25063 (eval "$ac_link") 2>conftest.er1
25065 grep -v '^ *+' conftest.er1 >conftest.err
25067 cat conftest.err >&5
25068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069 (exit $ac_status); } && {
25070 test -z "$ac_c_werror_flag" ||
25071 test ! -s conftest.err
25072 } && test -s conftest$ac_exeext &&
25073 $as_test_x conftest$ac_exeext; then
25076 cat >>confdefs.h <<\_ACEOF
25077 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25080 gethostbynamerstyle=SYSV
25083 echo "$as_me: failed program was:" >&5
25084 sed 's/^/| /' conftest.$ac_ext >&5
25089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25090 conftest$ac_exeext conftest.$ac_ext
25092 if test "x$gethostbynamerstyle" = "x"; then
25093 cat >conftest.$ac_ext <<_ACEOF
25096 cat confdefs.h >>conftest.$ac_ext
25097 cat >>conftest.$ac_ext <<_ACEOF
25098 /* end confdefs.h. */
25106 gethostbyname(NULL)
25111 rm -f conftest.$ac_objext conftest$ac_exeext
25112 if { (ac_try="$ac_link"
25113 case "(($ac_try" in
25114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25115 *) ac_try_echo=$ac_try;;
25117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25118 (eval "$ac_link") 2>conftest.er1
25120 grep -v '^ *+' conftest.er1 >conftest.err
25122 cat conftest.err >&5
25123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124 (exit $ac_status); } && {
25125 test -z "$ac_c_werror_flag" ||
25126 test ! -s conftest.err
25127 } && test -s conftest$ac_exeext &&
25128 $as_test_x conftest$ac_exeext; then
25131 cat >>confdefs.h <<\_ACEOF
25132 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25135 gethostbynamerstyle=BSD
25138 echo "$as_me: failed program was:" >&5
25139 sed 's/^/| /' conftest.$ac_ext >&5
25144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25145 conftest$ac_exeext conftest.$ac_ext
25148 if test "x$gethostbynamerstyle" = "x"; then
25149 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25150 echo "${ECHO_T}none! It must not exist, here." >&6; }
25152 { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25153 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25156 if test "x$gethostbynamerstyle" = "xBSD"; then
25157 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25158 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25162 cat >>confdefs.h <<\_ACEOF
25163 #define POSIXSTYLE 1
25167 cat >>confdefs.h <<\_ACEOF
25168 #define SOLARISSTYLE 2
25172 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25173 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
25174 cat >conftest.$ac_ext <<_ACEOF
25177 cat confdefs.h >>conftest.$ac_ext
25178 cat >>conftest.$ac_ext <<_ACEOF
25179 /* end confdefs.h. */
25186 ctime_r(NULL, NULL, 0)
25191 rm -f conftest.$ac_objext conftest$ac_exeext
25192 if { (ac_try="$ac_link"
25193 case "(($ac_try" in
25194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25195 *) ac_try_echo=$ac_try;;
25197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25198 (eval "$ac_link") 2>conftest.er1
25200 grep -v '^ *+' conftest.er1 >conftest.err
25202 cat conftest.err >&5
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); } && {
25205 test -z "$ac_c_werror_flag" ||
25206 test ! -s conftest.err
25207 } && test -s conftest$ac_exeext &&
25208 $as_test_x conftest$ac_exeext; then
25211 cat >>confdefs.h <<\_ACEOF
25212 #define CTIMERSTYLE SOLARISSTYLE
25215 ctimerstyle="SOLARIS"
25218 echo "$as_me: failed program was:" >&5
25219 sed 's/^/| /' conftest.$ac_ext >&5
25224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25225 conftest$ac_exeext conftest.$ac_ext
25226 if test "x$ctimerstyle" = "x"; then
25227 cat >conftest.$ac_ext <<_ACEOF
25230 cat confdefs.h >>conftest.$ac_ext
25231 cat >>conftest.$ac_ext <<_ACEOF
25232 /* end confdefs.h. */
25239 ctime_r(NULL, NULL)
25244 rm -f conftest.$ac_objext conftest$ac_exeext
25245 if { (ac_try="$ac_link"
25246 case "(($ac_try" in
25247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25248 *) ac_try_echo=$ac_try;;
25250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25251 (eval "$ac_link") 2>conftest.er1
25253 grep -v '^ *+' conftest.er1 >conftest.err
25255 cat conftest.err >&5
25256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257 (exit $ac_status); } && {
25258 test -z "$ac_c_werror_flag" ||
25259 test ! -s conftest.err
25260 } && test -s conftest$ac_exeext &&
25261 $as_test_x conftest$ac_exeext; then
25264 cat >>confdefs.h <<\_ACEOF
25265 #define CTIMERSTYLE POSIXSTYLE
25268 ctimerstyle="POSIX"
25271 echo "$as_me: failed program was:" >&5
25272 sed 's/^/| /' conftest.$ac_ext >&5
25277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25278 conftest$ac_exeext conftest.$ac_ext
25281 if test "x$ctimerstyle" = "x"; then
25282 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25283 echo "${ECHO_T}none! It must not exist, here." >&6; }
25285 { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25286 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
25294 export top_builddir
25295 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25296 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
25302 mysubdirs="$LIBLTDLPATH"
25303 if test "x$EXPERIMENTAL" = "xyes"; then
25304 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
25305 mysubdirs=`echo $mysubdirs $bar`
25307 for bar in `cat "${srcdir}"/src/modules/stable`; do
25308 if test -f "${srcdir}"/src/modules/$bar/configure; then
25309 mysubdirs="$mysubdirs src/modules/$bar"
25314 if test "x$EXPERIMENTAL" = "xyes"; then
25315 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
25316 MODULES="$MODULES $foo"
25319 for foo in `cat "${srcdir}"/src/modules/stable`; do
25320 MODULES="$MODULES $foo"
25324 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
25329 ac_config_commands="$ac_config_commands stamp-h"
25331 ac_config_commands="$ac_config_commands build-radpaths-h"
25333 ac_config_commands="$ac_config_commands main-chmod"
25335 ac_config_commands="$ac_config_commands scripts-chmod"
25341 USE_SHARED_LIBS=$enable_shared
25343 USE_STATIC_LIBS=$enable_static
25351 unset ac_cv_env_LIBS_set
25352 unset ac_cv_env_LIBS_value
25354 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"
25356 cat >confcache <<\_ACEOF
25357 # This file is a shell script that caches the results of configure
25358 # tests run on this system so they can be shared between configure
25359 # scripts and configure runs, see configure's option --config-cache.
25360 # It is not useful on other systems. If it contains results you don't
25361 # want to keep, you may remove or edit it.
25363 # config.status only pays attention to the cache file if you give it
25364 # the --recheck option to rerun configure.
25366 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25367 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25368 # following values.
25372 # The following way of writing the cache mishandles newlines in values,
25373 # but we know of no workaround that is simple, portable, and efficient.
25374 # So, we kill variables containing newlines.
25375 # Ultrix sh set writes to stderr and can't be redirected directly,
25376 # and sets the high bit in the cache file unless we assign to the vars.
25378 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25379 eval ac_val=\$$ac_var
25383 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25384 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25387 _ | IFS | as_nl) ;; #(
25388 *) $as_unset $ac_var ;;
25394 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25395 *${as_nl}ac_space=\ *)
25396 # `set' does not quote correctly, so add quotes (double-quote
25397 # substitution turns \\\\ into \\, and sed turns \\ into \).
25400 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25403 # `set' quotes correctly as required by POSIX, so do not add quotes.
25404 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25413 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25415 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25417 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25418 if test -w "$cache_file"; then
25419 test "x$cache_file" != "x/dev/null" &&
25420 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25421 echo "$as_me: updating cache $cache_file" >&6;}
25422 cat confcache >$cache_file
25424 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25425 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25430 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25431 # Let make expand exec_prefix.
25432 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25434 DEFS=-DHAVE_CONFIG_H
25438 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25439 # 1. Remove the extension, and $U if already installed.
25440 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25441 ac_i=`echo "$ac_i" | sed "$ac_script"`
25442 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25443 # will be set to the directory where LIBOBJS objects are built.
25444 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25445 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25447 LIBOBJS=$ac_libobjs
25449 LTLIBOBJS=$ac_ltlibobjs
25453 : ${CONFIG_STATUS=./config.status}
25454 ac_clean_files_save=$ac_clean_files
25455 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25456 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25457 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25458 cat >$CONFIG_STATUS <<_ACEOF
25460 # Generated by $as_me.
25461 # Run this file to recreate the current configuration.
25462 # Compiler output produced by configure, useful for debugging
25463 # configure, is in config.log if it exists.
25466 ac_cs_recheck=false
25468 SHELL=\${CONFIG_SHELL-$SHELL}
25471 cat >>$CONFIG_STATUS <<\_ACEOF
25472 ## --------------------- ##
25473 ## M4sh Initialization. ##
25474 ## --------------------- ##
25476 # Be more Bourne compatible
25477 DUALCASE=1; export DUALCASE # for MKS sh
25478 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25481 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25482 # is contrary to our usage. Disable this feature.
25483 alias -g '${1+"$@"}'='"$@"'
25484 setopt NO_GLOB_SUBST
25486 case `(set -o) 2>/dev/null` in
25487 *posix*) set -o posix ;;
25496 # Avoid depending upon Character Ranges.
25497 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25498 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25499 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25500 as_cr_digits='0123456789'
25501 as_cr_alnum=$as_cr_Letters$as_cr_digits
25503 # The user is always right.
25504 if test "${PATH_SEPARATOR+set}" != set; then
25505 echo "#! /bin/sh" >conf$$.sh
25506 echo "exit 0" >>conf$$.sh
25508 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25516 # Support unset when possible.
25517 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25525 # We need space, tab and new line, in precisely that order. Quoting is
25526 # there to prevent editors from complaining about space-tab.
25527 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25528 # splitting by setting IFS to empty value.)
25533 # Find who we are. Look in the path if we contain no directory separator.
25535 *[\\/]* ) as_myself=$0 ;;
25536 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25537 for as_dir in $PATH
25540 test -z "$as_dir" && as_dir=.
25541 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25547 # We did not find ourselves, most probably we were run as `sh COMMAND'
25548 # in which case we are not to be found in the path.
25549 if test "x$as_myself" = x; then
25552 if test ! -f "$as_myself"; then
25553 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25554 { (exit 1); exit 1; }
25557 # Work around bugs in pre-3.0 UWIN ksh.
25558 for as_var in ENV MAIL MAILPATH
25559 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25567 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25568 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25569 LC_TELEPHONE LC_TIME
25571 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25572 eval $as_var=C; export $as_var
25574 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25578 # Required to use basename.
25579 if expr a : '\(a\)' >/dev/null 2>&1 &&
25580 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25586 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25587 as_basename=basename
25593 # Name of the executable.
25594 as_me=`$as_basename -- "$0" ||
25595 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25596 X"$0" : 'X\(//\)$' \| \
25597 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25599 sed '/^.*\/\([^/][^/]*\)\/*$/{
25618 as_lineno_1=$LINENO
25619 as_lineno_2=$LINENO
25620 test "x$as_lineno_1" != "x$as_lineno_2" &&
25621 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25623 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25624 # uniformly replaced by the line number. The first 'sed' inserts a
25625 # line-number line after each line using $LINENO; the second 'sed'
25626 # does the real work. The second script uses 'N' to pair each
25627 # line-number line with the line containing $LINENO, and appends
25628 # trailing '-' during substitution so that $LINENO is not a special
25629 # case at line end.
25630 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25631 # scripts with optimization help from Paolo Bonzini. Blame Lee
25632 # E. McMahon (1931-1989) for sed's syntax. :-)
25644 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25647 ' >$as_me.lineno &&
25648 chmod +x "$as_me.lineno" ||
25649 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25650 { (exit 1); exit 1; }; }
25652 # Don't try to exec as it changes $[0], causing all sort of problems
25653 # (the dirname of $[0] is not the place where we might find the
25654 # original and so on. Autoconf is especially sensitive to this).
25655 . "./$as_me.lineno"
25656 # Exit status is that of the last command.
25661 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25667 ECHO_C= ECHO_N= ECHO_T=
25668 case `echo -n x` in
25670 case `echo 'x\c'` in
25671 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25678 if expr a : '\(a\)' >/dev/null 2>&1 &&
25679 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25685 rm -f conf$$ conf$$.exe conf$$.file
25686 if test -d conf$$.dir; then
25687 rm -f conf$$.dir/conf$$.file
25693 if ln -s conf$$.file conf$$ 2>/dev/null; then
25695 # ... but there are two gotchas:
25696 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25697 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25698 # In both cases, we have to default to `cp -p'.
25699 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25701 elif ln conf$$.file conf$$ 2>/dev/null; then
25706 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25707 rmdir conf$$.dir 2>/dev/null
25709 if mkdir -p . 2>/dev/null; then
25712 test -d ./-p && rmdir ./-p
25716 if test -x / >/dev/null 2>&1; then
25717 as_test_x='test -x'
25719 if ls -dL / >/dev/null 2>&1; then
25726 if test -d "$1"; then
25732 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25733 ???[sx]*):;;*)false;;esac;fi
25737 as_executable_p=$as_test_x
25739 # Sed expression to map a string onto a valid CPP name.
25740 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25742 # Sed expression to map a string onto a valid variable name.
25743 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25748 # Save the log message, to keep $[0] and so on meaningful, and to
25749 # report actual input values of CONFIG_FILES etc. instead of their
25750 # values after options handling.
25752 This file was extended by $as_me, which was
25753 generated by GNU Autoconf 2.61. Invocation command line was
25755 CONFIG_FILES = $CONFIG_FILES
25756 CONFIG_HEADERS = $CONFIG_HEADERS
25757 CONFIG_LINKS = $CONFIG_LINKS
25758 CONFIG_COMMANDS = $CONFIG_COMMANDS
25761 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25766 cat >>$CONFIG_STATUS <<_ACEOF
25767 # Files that config.status was made for.
25768 config_files="$ac_config_files"
25769 config_headers="$ac_config_headers"
25770 config_commands="$ac_config_commands"
25774 cat >>$CONFIG_STATUS <<\_ACEOF
25776 \`$as_me' instantiates files from templates according to the
25777 current configuration.
25779 Usage: $0 [OPTIONS] [FILE]...
25781 -h, --help print this help, then exit
25782 -V, --version print version number and configuration settings, then exit
25783 -q, --quiet do not print progress messages
25784 -d, --debug don't remove temporary files
25785 --recheck update $as_me by reconfiguring in the same conditions
25786 --file=FILE[:TEMPLATE]
25787 instantiate the configuration file FILE
25788 --header=FILE[:TEMPLATE]
25789 instantiate the configuration header FILE
25791 Configuration files:
25794 Configuration headers:
25797 Configuration commands:
25800 Report bugs to <bug-autoconf@gnu.org>."
25803 cat >>$CONFIG_STATUS <<_ACEOF
25806 configured by $0, generated by GNU Autoconf 2.61,
25807 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25809 Copyright (C) 2006 Free Software Foundation, Inc.
25810 This config.status script is free software; the Free Software Foundation
25811 gives unlimited permission to copy, distribute and modify it."
25817 cat >>$CONFIG_STATUS <<\_ACEOF
25818 # If no file are specified by the user, then we need to provide default
25819 # value. By we need to know if files were specified by the user.
25825 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25826 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25837 # Handling of the options.
25838 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25840 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25841 echo "$ac_cs_version"; exit ;;
25842 --debug | --debu | --deb | --de | --d | -d )
25844 --file | --fil | --fi | --f )
25846 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25847 ac_need_defaults=false;;
25848 --header | --heade | --head | --hea )
25850 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25851 ac_need_defaults=false;;
25853 # Conflict between --help and --header
25854 { echo "$as_me: error: ambiguous option: $1
25855 Try \`$0 --help' for more information." >&2
25856 { (exit 1); exit 1; }; };;
25857 --help | --hel | -h )
25858 echo "$ac_cs_usage"; exit ;;
25859 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25860 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25863 # This is an error.
25864 -*) { echo "$as_me: error: unrecognized option: $1
25865 Try \`$0 --help' for more information." >&2
25866 { (exit 1); exit 1; }; } ;;
25868 *) ac_config_targets="$ac_config_targets $1"
25869 ac_need_defaults=false ;;
25875 ac_configure_extra_args=
25877 if $ac_cs_silent; then
25879 ac_configure_extra_args="$ac_configure_extra_args --silent"
25883 cat >>$CONFIG_STATUS <<_ACEOF
25884 if \$ac_cs_recheck; then
25885 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25886 CONFIG_SHELL=$SHELL
25887 export CONFIG_SHELL
25888 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25892 cat >>$CONFIG_STATUS <<\_ACEOF
25896 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25897 ## Running $as_me. ##
25903 cat >>$CONFIG_STATUS <<_ACEOF
25906 cat >>$CONFIG_STATUS <<\_ACEOF
25908 # Handling of arguments.
25909 for ac_config_target in $ac_config_targets
25911 case $ac_config_target in
25912 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
25913 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
25914 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
25915 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
25916 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
25917 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
25918 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
25919 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
25920 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
25921 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
25922 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
25923 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
25924 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
25925 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
25926 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
25927 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
25928 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
25929 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
25931 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25932 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25933 { (exit 1); exit 1; }; };;
25938 # If the user did not use the arguments to specify the items to instantiate,
25939 # then the envvar interface is used. Set only those that are not.
25940 # We use the long form for the default assignment because of an extremely
25941 # bizarre bug on SunOS 4.1.3.
25942 if $ac_need_defaults; then
25943 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25944 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25945 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25948 # Have a temporary directory for convenience. Make it in the build tree
25949 # simply because there is no reason against having it here, and in addition,
25950 # creating and moving files from /tmp can sometimes cause problems.
25951 # Hook for its removal unless debugging.
25952 # Note that there is a small window in which the directory will not be cleaned:
25953 # after its creation but before its name has been assigned to `$tmp'.
25957 trap 'exit_status=$?
25958 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25960 trap '{ (exit 1); exit 1; }' 1 2 13 15
25962 # Create a (secure) tmp directory for tmp files.
25965 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25966 test -n "$tmp" && test -d "$tmp"
25969 tmp=./conf$$-$RANDOM
25970 (umask 077 && mkdir "$tmp")
25973 echo "$me: cannot create a temporary directory in ." >&2
25974 { (exit 1); exit 1; }
25978 # Set up the sed scripts for CONFIG_FILES section.
25981 # No need to generate the scripts if there are no CONFIG_FILES.
25982 # This happens for instance when ./config.status config.h
25983 if test -n "$CONFIG_FILES"; then
25990 for ac_last_try in false false false false false :; do
25991 cat >conf$$subs.sed <<_ACEOF
25992 SHELL!$SHELL$ac_delim
25993 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25994 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25995 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25996 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25997 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25998 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25999 exec_prefix!$exec_prefix$ac_delim
26000 prefix!$prefix$ac_delim
26001 program_transform_name!$program_transform_name$ac_delim
26002 bindir!$bindir$ac_delim
26003 sbindir!$sbindir$ac_delim
26004 libexecdir!$libexecdir$ac_delim
26005 datarootdir!$datarootdir$ac_delim
26006 datadir!$datadir$ac_delim
26007 sysconfdir!$sysconfdir$ac_delim
26008 sharedstatedir!$sharedstatedir$ac_delim
26009 localstatedir!$localstatedir$ac_delim
26010 includedir!$includedir$ac_delim
26011 oldincludedir!$oldincludedir$ac_delim
26012 docdir!$docdir$ac_delim
26013 infodir!$infodir$ac_delim
26014 htmldir!$htmldir$ac_delim
26015 dvidir!$dvidir$ac_delim
26016 pdfdir!$pdfdir$ac_delim
26017 psdir!$psdir$ac_delim
26018 libdir!$libdir$ac_delim
26019 localedir!$localedir$ac_delim
26020 mandir!$mandir$ac_delim
26021 DEFS!$DEFS$ac_delim
26022 ECHO_C!$ECHO_C$ac_delim
26023 ECHO_N!$ECHO_N$ac_delim
26024 ECHO_T!$ECHO_T$ac_delim
26025 LIBS!$LIBS$ac_delim
26026 build_alias!$build_alias$ac_delim
26027 host_alias!$host_alias$ac_delim
26028 target_alias!$target_alias$ac_delim
26030 CFLAGS!$CFLAGS$ac_delim
26031 LDFLAGS!$LDFLAGS$ac_delim
26032 CPPFLAGS!$CPPFLAGS$ac_delim
26033 ac_ct_CC!$ac_ct_CC$ac_delim
26034 EXEEXT!$EXEEXT$ac_delim
26035 OBJEXT!$OBJEXT$ac_delim
26037 CXXFLAGS!$CXXFLAGS$ac_delim
26038 ac_ct_CXX!$ac_ct_CXX$ac_delim
26040 GREP!$GREP$ac_delim
26041 EGREP!$EGREP$ac_delim
26042 RANLIB!$RANLIB$ac_delim
26043 GMAKE!$GMAKE$ac_delim
26044 MAKE!$MAKE$ac_delim
26045 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
26046 LIBTOOL!$LIBTOOL$ac_delim
26047 build!$build$ac_delim
26048 build_cpu!$build_cpu$ac_delim
26049 build_vendor!$build_vendor$ac_delim
26050 build_os!$build_os$ac_delim
26051 host!$host$ac_delim
26052 host_cpu!$host_cpu$ac_delim
26053 host_vendor!$host_vendor$ac_delim
26054 host_os!$host_os$ac_delim
26055 LN_S!$LN_S$ac_delim
26056 ECHO!$ECHO$ac_delim
26058 STRIP!$STRIP$ac_delim
26059 CXXCPP!$CXXCPP$ac_delim
26061 FFLAGS!$FFLAGS$ac_delim
26062 ac_ct_F77!$ac_ct_F77$ac_delim
26063 logdir!$logdir$ac_delim
26064 radacctdir!$radacctdir$ac_delim
26065 raddbdir!$raddbdir$ac_delim
26066 PERL!$PERL$ac_delim
26067 SNMPGET!$SNMPGET$ac_delim
26068 SNMPWALK!$SNMPWALK$ac_delim
26069 RUSERS!$RUSERS$ac_delim
26070 ACLOCAL!$ACLOCAL$ac_delim
26071 AUTOCONF!$AUTOCONF$ac_delim
26072 AUTOHEADER!$AUTOHEADER$ac_delim
26073 LOCATE!$LOCATE$ac_delim
26074 DIRNAME!$DIRNAME$ac_delim
26075 REGEX!$REGEX$ac_delim
26076 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26077 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26078 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26079 PCAP_LIBS!$PCAP_LIBS$ac_delim
26080 LIBPREFIX!$LIBPREFIX$ac_delim
26081 CRYPTLIB!$CRYPTLIB$ac_delim
26082 SNMP_LIBS!$SNMP_LIBS$ac_delim
26083 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
26084 HOSTINFO!$HOSTINFO$ac_delim
26085 LIBLTDL!$LIBLTDL$ac_delim
26086 INCLTDL!$INCLTDL$ac_delim
26087 subdirs!$subdirs$ac_delim
26088 MODULES!$MODULES$ac_delim
26091 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26093 elif $ac_last_try; then
26094 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26095 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26096 { (exit 1); exit 1; }; }
26098 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26102 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26103 if test -n "$ac_eof"; then
26104 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26105 ac_eof=`expr $ac_eof + 1`
26108 cat >>$CONFIG_STATUS <<_ACEOF
26109 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26113 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26114 s/^/s,@/; s/!/@,|#_!!_#|/
26117 s/'"$ac_delim"'$/,g/; t
26119 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26120 ' >>$CONFIG_STATUS <conf$$subs.sed
26121 rm -f conf$$subs.sed
26122 cat >>$CONFIG_STATUS <<_ACEOF
26128 for ac_last_try in false false false false false :; do
26129 cat >conf$$subs.sed <<_ACEOF
26130 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26131 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26132 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26133 STATIC_MODULES!$STATIC_MODULES$ac_delim
26134 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26135 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26136 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26137 LIBOBJS!$LIBOBJS$ac_delim
26138 LTLIBOBJS!$LTLIBOBJS$ac_delim
26141 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
26143 elif $ac_last_try; then
26144 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26145 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26146 { (exit 1); exit 1; }; }
26148 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26152 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26153 if test -n "$ac_eof"; then
26154 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26155 ac_eof=`expr $ac_eof + 1`
26158 cat >>$CONFIG_STATUS <<_ACEOF
26159 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26160 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26163 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26164 s/^/s,@/; s/!/@,|#_!!_#|/
26167 s/'"$ac_delim"'$/,g/; t
26169 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26170 ' >>$CONFIG_STATUS <conf$$subs.sed
26171 rm -f conf$$subs.sed
26172 cat >>$CONFIG_STATUS <<_ACEOF
26179 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26180 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26181 # trailing colons and then remove the whole line if VPATH becomes empty
26182 # (actually we leave an empty line to preserve line numbers).
26183 if test "x$srcdir" = x.; then
26184 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26185 s/:*\$(srcdir):*/:/
26186 s/:*\${srcdir}:*/:/
26188 s/^\([^=]*=[ ]*\):*/\1/
26194 cat >>$CONFIG_STATUS <<\_ACEOF
26195 fi # test -n "$CONFIG_FILES"
26198 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26201 :[FHLC]) ac_mode=$ac_tag; continue;;
26203 case $ac_mode$ac_tag in
26205 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26206 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26207 { (exit 1); exit 1; }; };;
26208 :[FH]-) ac_tag=-:-;;
26209 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26226 -) ac_f="$tmp/stdin";;
26227 *) # Look for the file first in the build tree, then in the source tree
26228 # (if the path is not absolute). The absolute path cannot be DOS-style,
26229 # because $ac_f cannot contain `:'.
26233 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26235 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26236 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26237 { (exit 1); exit 1; }; };;
26239 ac_file_inputs="$ac_file_inputs $ac_f"
26242 # Let's still pretend it is `configure' which instantiates (i.e., don't
26243 # use $as_me), people would be surprised to read:
26244 # /* config.h. Generated by config.status. */
26245 configure_input="Generated from "`IFS=:
26246 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26247 if test x"$ac_file" != x-; then
26248 configure_input="$ac_file. $configure_input"
26249 { echo "$as_me:$LINENO: creating $ac_file" >&5
26250 echo "$as_me: creating $ac_file" >&6;}
26254 *:-:* | *:-) cat >"$tmp/stdin";;
26259 ac_dir=`$as_dirname -- "$ac_file" ||
26260 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26261 X"$ac_file" : 'X\(//\)[^/]' \| \
26262 X"$ac_file" : 'X\(//\)$' \| \
26263 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26269 /^X\(\/\/\)[^/].*/{
26284 -*) as_dir=./$as_dir;;
26286 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26290 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26291 *) as_qdir=$as_dir;;
26293 as_dirs="'$as_qdir' $as_dirs"
26294 as_dir=`$as_dirname -- "$as_dir" ||
26295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26296 X"$as_dir" : 'X\(//\)[^/]' \| \
26297 X"$as_dir" : 'X\(//\)$' \| \
26298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26304 /^X\(\/\/\)[^/].*/{
26317 test -d "$as_dir" && break
26319 test -z "$as_dirs" || eval "mkdir $as_dirs"
26320 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26321 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26322 { (exit 1); exit 1; }; }; }
26326 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26328 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26329 # A ".." for each directory in $ac_dir_suffix.
26330 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26331 case $ac_top_builddir_sub in
26332 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26333 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26336 ac_abs_top_builddir=$ac_pwd
26337 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26338 # for backward compatibility:
26339 ac_top_builddir=$ac_top_build_prefix
26342 .) # We are building in place.
26344 ac_top_srcdir=$ac_top_builddir_sub
26345 ac_abs_top_srcdir=$ac_pwd ;;
26346 [\\/]* | ?:[\\/]* ) # Absolute name.
26347 ac_srcdir=$srcdir$ac_dir_suffix;
26348 ac_top_srcdir=$srcdir
26349 ac_abs_top_srcdir=$srcdir ;;
26350 *) # Relative name.
26351 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26352 ac_top_srcdir=$ac_top_build_prefix$srcdir
26353 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26355 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26366 cat >>$CONFIG_STATUS <<\_ACEOF
26367 # If the template does not know about datarootdir, expand it.
26368 # FIXME: This hack should be removed a few years after 2.60.
26369 ac_datarootdir_hack=; ac_datarootdir_seen=
26371 case `sed -n '/datarootdir/ {
26380 ' $ac_file_inputs` in
26381 *datarootdir*) ac_datarootdir_seen=yes;;
26382 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26383 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26384 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26386 cat >>$CONFIG_STATUS <<_ACEOF
26387 ac_datarootdir_hack='
26388 s&@datadir@&$datadir&g
26389 s&@docdir@&$docdir&g
26390 s&@infodir@&$infodir&g
26391 s&@localedir@&$localedir&g
26392 s&@mandir@&$mandir&g
26393 s&\\\${datarootdir}&$datarootdir&g' ;;
26397 # Neutralize VPATH when `$srcdir' = `.'.
26398 # Shell code in configure.ac might set extrasub.
26399 # FIXME: do we really want to maintain this feature?
26400 cat >>$CONFIG_STATUS <<_ACEOF
26404 cat >>$CONFIG_STATUS <<\_ACEOF
26406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26407 s&@configure_input@&$configure_input&;t t
26408 s&@top_builddir@&$ac_top_builddir_sub&;t t
26409 s&@srcdir@&$ac_srcdir&;t t
26410 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26411 s&@top_srcdir@&$ac_top_srcdir&;t t
26412 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26413 s&@builddir@&$ac_builddir&;t t
26414 s&@abs_builddir@&$ac_abs_builddir&;t t
26415 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26416 $ac_datarootdir_hack
26417 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26419 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26420 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26421 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26422 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26423 which seems to be undefined. Please make sure it is defined." >&5
26424 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26425 which seems to be undefined. Please make sure it is defined." >&2;}
26429 -) cat "$tmp/out"; rm -f "$tmp/out";;
26430 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26439 # Transform confdefs.h into a sed script `conftest.defines', that
26440 # substitutes the proper values into config.h.in to produce config.h.
26441 rm -f conftest.defines conftest.tail
26442 # First, append a space to every undef/define line, to ease matching.
26443 echo 's/$/ /' >conftest.defines
26444 # Then, protect against being on the right side of a sed subst, or in
26445 # an unquoted here document, in config.status. If some macros were
26446 # called several times there might be several #defines for the same
26447 # symbol, which is useless. But do not sort them, since the last
26448 # AC_DEFINE must be honored.
26449 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26450 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26451 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26452 # PARAMS is the parameter list in the macro definition--in most cases, it's
26453 # just an empty string.
26454 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26455 ac_dB='\\)[ (].*,\\1define\\2'
26463 s/^[ ]*#[ ]*define[ ][ ]*//
26468 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26469 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26470 ' >>conftest.defines
26472 # Remove the space that was appended to ease matching.
26473 # Then replace #undef with comments. This is necessary, for
26474 # example, in the case of _POSIX_SOURCE, which is predefined and required
26475 # on some systems where configure will not decide to define it.
26476 # (The regexp can be short, since the line contains either #define or #undef.)
26478 s,^[ #]*u.*,/* & */,' >>conftest.defines
26480 # Break up conftest.defines:
26481 ac_max_sed_lines=50
26483 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26484 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26485 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26487 ac_in='$ac_file_inputs'
26488 ac_out='"$tmp/out1"'
26489 ac_nxt='"$tmp/out2"'
26493 # Write a here document:
26494 cat >>$CONFIG_STATUS <<_ACEOF
26495 # First, check the format of the line:
26496 cat >"\$tmp/defines.sed" <<\\CEOF
26497 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26498 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26502 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26504 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26505 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26506 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26507 grep . conftest.tail >/dev/null || break
26508 rm -f conftest.defines
26509 mv conftest.tail conftest.defines
26511 rm -f conftest.defines conftest.tail
26513 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26514 cat >>$CONFIG_STATUS <<\_ACEOF
26515 if test x"$ac_file" != x-; then
26516 echo "/* $configure_input */" >"$tmp/config.h"
26517 cat "$ac_result" >>"$tmp/config.h"
26518 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26519 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26520 echo "$as_me: $ac_file is unchanged" >&6;}
26523 mv "$tmp/config.h" $ac_file
26526 echo "/* $configure_input */"
26532 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26533 echo "$as_me: executing $ac_file commands" >&6;}
26538 case $ac_file$ac_mode in
26539 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
26540 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26541 "main-chmod":C) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
26542 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26548 { (exit 0); exit 0; }
26550 chmod +x $CONFIG_STATUS
26551 ac_clean_files=$ac_clean_files_save
26554 # configure is writing to config.log, and then calls config.status.
26555 # config.status does its own redirection, appending to config.log.
26556 # Unfortunately, on DOS this fails, as config.log is still kept open
26557 # by configure, so config.status won't be able to write to it; its
26558 # output is simply discarded. So we exec the FD to /dev/null,
26559 # effectively closing config.log, so it can be properly (re)opened and
26560 # appended to by config.status. When coming back to configure, we
26561 # need to make the FD available again.
26562 if test "$no_create" != yes; then
26564 ac_config_status_args=
26565 test "$silent" = yes &&
26566 ac_config_status_args="$ac_config_status_args --quiet"
26568 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26570 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26571 # would make configure fail if this is the last instruction.
26572 $ac_cs_success || { (exit 1); exit 1; }
26576 # CONFIG_SUBDIRS section.
26578 if test "$no_recursion" != yes; then
26580 # Remove --cache-file and --srcdir arguments so they do not pile up.
26581 ac_sub_configure_args=
26583 eval "set x $ac_configure_args"
26587 if test -n "$ac_prev"; then
26592 -cache-file | --cache-file | --cache-fil | --cache-fi \
26593 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26594 ac_prev=cache_file ;;
26595 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26596 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26599 --config-cache | -C)
26601 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26603 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26605 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26607 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26611 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26613 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
26617 # Always prepend --prefix to ensure using the same prefix
26618 # in subdir configurations.
26619 ac_arg="--prefix=$prefix"
26621 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26623 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
26626 if test "$silent" = yes; then
26627 ac_sub_configure_args="--silent $ac_sub_configure_args"
26631 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26633 # Do not complain, so a configure script can configure whichever
26634 # parts of a large source tree are present.
26635 test -d "$srcdir/$ac_dir" || continue
26637 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26638 echo "$as_me:$LINENO: $ac_msg" >&5
26642 -*) as_dir=./$as_dir;;
26644 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26648 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26649 *) as_qdir=$as_dir;;
26651 as_dirs="'$as_qdir' $as_dirs"
26652 as_dir=`$as_dirname -- "$as_dir" ||
26653 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26654 X"$as_dir" : 'X\(//\)[^/]' \| \
26655 X"$as_dir" : 'X\(//\)$' \| \
26656 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26662 /^X\(\/\/\)[^/].*/{
26675 test -d "$as_dir" && break
26677 test -z "$as_dirs" || eval "mkdir $as_dirs"
26678 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26679 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26680 { (exit 1); exit 1; }; }; }
26684 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26686 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26687 # A ".." for each directory in $ac_dir_suffix.
26688 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26689 case $ac_top_builddir_sub in
26690 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26691 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26694 ac_abs_top_builddir=$ac_pwd
26695 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26696 # for backward compatibility:
26697 ac_top_builddir=$ac_top_build_prefix
26700 .) # We are building in place.
26702 ac_top_srcdir=$ac_top_builddir_sub
26703 ac_abs_top_srcdir=$ac_pwd ;;
26704 [\\/]* | ?:[\\/]* ) # Absolute name.
26705 ac_srcdir=$srcdir$ac_dir_suffix;
26706 ac_top_srcdir=$srcdir
26707 ac_abs_top_srcdir=$srcdir ;;
26708 *) # Relative name.
26709 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26710 ac_top_srcdir=$ac_top_build_prefix$srcdir
26711 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26713 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26718 # Check for guested configure; otherwise get Cygnus style configure.
26719 if test -f "$ac_srcdir/configure.gnu"; then
26720 ac_sub_configure=$ac_srcdir/configure.gnu
26721 elif test -f "$ac_srcdir/configure"; then
26722 ac_sub_configure=$ac_srcdir/configure
26723 elif test -f "$ac_srcdir/configure.in"; then
26724 # This should be Cygnus configure.
26725 ac_sub_configure=$ac_aux_dir/configure
26727 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26728 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26732 # The recursion is here.
26733 if test -n "$ac_sub_configure"; then
26734 # Make the cache file name correct relative to the subdirectory.
26735 case $cache_file in
26736 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26737 *) # Relative name.
26738 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
26741 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26742 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26743 # The eval makes quoting arguments work.
26744 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
26745 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
26746 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26747 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26748 { (exit 1); exit 1; }; }