2 # From configure.in Revision: 1.259 .
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
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
19748 # Check whether --with-static_modules was given.
19749 if test "${with_static_modules+set}" = set; then
19750 withval=$with_static_modules;
19751 for i in $withval; do
19752 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19760 # Check whether --with-modules was given.
19761 if test "${with_modules+set}" = set; then
19762 withval=$with_modules;
19763 for i in $withval; do
19764 MODULES="$MODULES $i"
19770 # Check whether --enable-developer was given.
19771 if test "${enable_developer+set}" = set; then
19772 enableval=$enable_developer; case "$enableval" in
19783 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19789 # Check whether --with-experimental-modules was given.
19790 if test "${with_experimental_modules+set}" = set; then
19791 withval=$with_experimental_modules; case "$withval" in
19803 # Check whether --with-openssl was given.
19804 if test "${with_openssl+set}" = set; then
19805 withval=$with_openssl; case "$withval" in
19817 OPENSSL_INCLUDE_DIR=
19819 # Check whether --with-openssl-includes was given.
19820 if test "${with_openssl_includes+set}" = set; then
19821 withval=$with_openssl_includes; case "$withval" in
19822 *) OPENSSL_INCLUDE_DIR="$withval"
19831 # Check whether --with-openssl-libraries was given.
19832 if test "${with_openssl_libraries+set}" = set; then
19833 withval=$with_openssl_libraries; case "$withval" in
19834 *) OPENSSL_LIB_DIR="$withval"
19843 # Check whether --with-rlm-FOO-lib-dir was given.
19844 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19845 withval=$with_rlm_FOO_lib_dir; case "$withval" in
19854 # Check whether --with-rlm-FOO-include-dir was given.
19855 if test "${with_rlm_FOO_include_dir+set}" = set; then
19856 withval=$with_rlm_FOO_include_dir; case "$withval" in
19867 # Check whether --with-udpfromto was given.
19868 if test "${with_udpfromto+set}" = set; then
19869 withval=$with_udpfromto; case "$withval" in
19880 if test "x$WITH_UDPFROMTO" = "xyes"; then
19882 cat >>confdefs.h <<\_ACEOF
19883 #define WITH_UDPFROMTO
19889 CHECKRAD=checkrad.pl
19890 # Extract the first word of "perl", so it can be a program name with args.
19891 set dummy perl; ac_word=$2
19892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19894 if test "${ac_cv_path_PERL+set}" = set; then
19895 echo $ECHO_N "(cached) $ECHO_C" >&6
19899 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19903 for as_dir in $PATH
19906 test -z "$as_dir" && as_dir=.
19907 for ac_exec_ext in '' $ac_executable_extensions; do
19908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19909 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19917 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19921 PERL=$ac_cv_path_PERL
19922 if test -n "$PERL"; then
19923 { echo "$as_me:$LINENO: result: $PERL" >&5
19924 echo "${ECHO_T}$PERL" >&6; }
19926 { echo "$as_me:$LINENO: result: no" >&5
19927 echo "${ECHO_T}no" >&6; }
19931 if test "x$ac_cv_path_PERL" = "x"; then
19932 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19933 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19935 # Extract the first word of "snmpget", so it can be a program name with args.
19936 set dummy snmpget; ac_word=$2
19937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19939 if test "${ac_cv_path_SNMPGET+set}" = set; then
19940 echo $ECHO_N "(cached) $ECHO_C" >&6
19944 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19948 for as_dir in $PATH
19951 test -z "$as_dir" && as_dir=.
19952 for ac_exec_ext in '' $ac_executable_extensions; do
19953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19954 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19965 SNMPGET=$ac_cv_path_SNMPGET
19966 if test -n "$SNMPGET"; then
19967 { echo "$as_me:$LINENO: result: $SNMPGET" >&5
19968 echo "${ECHO_T}$SNMPGET" >&6; }
19970 { echo "$as_me:$LINENO: result: no" >&5
19971 echo "${ECHO_T}no" >&6; }
19975 if test "x$ac_cv_path_SNMPGET" = "x"; then
19976 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19977 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19980 # Extract the first word of "snmpwalk", so it can be a program name with args.
19981 set dummy snmpwalk; ac_word=$2
19982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19984 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19985 echo $ECHO_N "(cached) $ECHO_C" >&6
19989 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19993 for as_dir in $PATH
19996 test -z "$as_dir" && as_dir=.
19997 for ac_exec_ext in '' $ac_executable_extensions; do
19998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19999 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20010 SNMPWALK=$ac_cv_path_SNMPWALK
20011 if test -n "$SNMPWALK"; then
20012 { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
20013 echo "${ECHO_T}$SNMPWALK" >&6; }
20015 { echo "$as_me:$LINENO: result: no" >&5
20016 echo "${ECHO_T}no" >&6; }
20020 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20021 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20022 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20025 # Extract the first word of "rusers", so it can be a program name with args.
20026 set dummy rusers; ac_word=$2
20027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20029 if test "${ac_cv_path_RUSERS+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20034 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20038 for as_dir in $PATH
20041 test -z "$as_dir" && as_dir=.
20042 for ac_exec_ext in '' $ac_executable_extensions; do
20043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20044 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20052 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20056 RUSERS=$ac_cv_path_RUSERS
20057 if test -n "$RUSERS"; then
20058 { echo "$as_me:$LINENO: result: $RUSERS" >&5
20059 echo "${ECHO_T}$RUSERS" >&6; }
20061 { echo "$as_me:$LINENO: result: no" >&5
20062 echo "${ECHO_T}no" >&6; }
20067 missing_dir=`cd $ac_aux_dir && pwd`
20068 # expand $ac_aux_dir to an absolute path
20069 am_aux_dir=`cd $ac_aux_dir && pwd`
20071 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20072 # Use eval to expand $SHELL
20073 if eval "$MISSING --run true"; then
20074 am_missing_run="$MISSING --run "
20077 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20078 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20082 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20085 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20088 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20091 # Extract the first word of "locate", so it can be a program name with args.
20092 set dummy locate; ac_word=$2
20093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20095 if test "${ac_cv_path_LOCATE+set}" = set; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20100 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20104 for as_dir in $PATH
20107 test -z "$as_dir" && as_dir=.
20108 for ac_exec_ext in '' $ac_executable_extensions; do
20109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20110 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20121 LOCATE=$ac_cv_path_LOCATE
20122 if test -n "$LOCATE"; then
20123 { echo "$as_me:$LINENO: result: $LOCATE" >&5
20124 echo "${ECHO_T}$LOCATE" >&6; }
20126 { echo "$as_me:$LINENO: result: no" >&5
20127 echo "${ECHO_T}no" >&6; }
20131 # Extract the first word of "dirname", so it can be a program name with args.
20132 set dummy dirname; ac_word=$2
20133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20135 if test "${ac_cv_path_DIRNAME+set}" = set; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20140 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20144 for as_dir in $PATH
20147 test -z "$as_dir" && as_dir=.
20148 for ac_exec_ext in '' $ac_executable_extensions; do
20149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20150 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20161 DIRNAME=$ac_cv_path_DIRNAME
20162 if test -n "$DIRNAME"; then
20163 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20164 echo "${ECHO_T}$DIRNAME" >&6; }
20166 { echo "$as_me:$LINENO: result: no" >&5
20167 echo "${ECHO_T}no" >&6; }
20171 # Extract the first word of "grep", so it can be a program name with args.
20172 set dummy grep; ac_word=$2
20173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20175 if test "${ac_cv_path_GREP+set}" = set; then
20176 echo $ECHO_N "(cached) $ECHO_C" >&6
20180 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20184 for as_dir in $PATH
20187 test -z "$as_dir" && as_dir=.
20188 for ac_exec_ext in '' $ac_executable_extensions; do
20189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20190 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20201 GREP=$ac_cv_path_GREP
20202 if test -n "$GREP"; then
20203 { echo "$as_me:$LINENO: result: $GREP" >&5
20204 echo "${ECHO_T}$GREP" >&6; }
20206 { echo "$as_me:$LINENO: result: no" >&5
20207 echo "${ECHO_T}no" >&6; }
20214 if test "x$WITH_THREADS" = "xyes"; then
20215 if test $ac_cv_prog_suncc = "yes"; then
20216 CFLAGS="$CFLAGS -mt"
20220 for ac_header in pthread.h
20222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20227 echo $ECHO_N "(cached) $ECHO_C" >&6
20229 ac_res=`eval echo '${'$as_ac_Header'}'`
20230 { echo "$as_me:$LINENO: result: $ac_res" >&5
20231 echo "${ECHO_T}$ac_res" >&6; }
20233 # Is the header compilable?
20234 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20236 cat >conftest.$ac_ext <<_ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h. */
20242 $ac_includes_default
20243 #include <$ac_header>
20245 rm -f conftest.$ac_objext
20246 if { (ac_try="$ac_compile"
20247 case "(($ac_try" in
20248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20249 *) ac_try_echo=$ac_try;;
20251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20252 (eval "$ac_compile") 2>conftest.er1
20254 grep -v '^ *+' conftest.er1 >conftest.err
20256 cat conftest.err >&5
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); } && {
20259 test -z "$ac_c_werror_flag" ||
20260 test ! -s conftest.err
20261 } && test -s conftest.$ac_objext; then
20262 ac_header_compiler=yes
20264 echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20267 ac_header_compiler=no
20270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20271 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20272 echo "${ECHO_T}$ac_header_compiler" >&6; }
20274 # Is the header present?
20275 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20277 cat >conftest.$ac_ext <<_ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h. */
20283 #include <$ac_header>
20285 if { (ac_try="$ac_cpp conftest.$ac_ext"
20286 case "(($ac_try" in
20287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20288 *) ac_try_echo=$ac_try;;
20290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20293 grep -v '^ *+' conftest.er1 >conftest.err
20295 cat conftest.err >&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); } >/dev/null && {
20298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20299 test ! -s conftest.err
20301 ac_header_preproc=yes
20303 echo "$as_me: failed program was:" >&5
20304 sed 's/^/| /' conftest.$ac_ext >&5
20306 ac_header_preproc=no
20309 rm -f conftest.err conftest.$ac_ext
20310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20311 echo "${ECHO_T}$ac_header_preproc" >&6; }
20313 # So? What about this header?
20314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20320 ac_header_preproc=yes
20323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20341 echo $ECHO_N "(cached) $ECHO_C" >&6
20343 eval "$as_ac_Header=\$ac_header_preproc"
20345 ac_res=`eval echo '${'$as_ac_Header'}'`
20346 { echo "$as_me:$LINENO: result: $ac_res" >&5
20347 echo "${ECHO_T}$ac_res" >&6; }
20350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20351 cat >>confdefs.h <<_ACEOF
20352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20362 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20363 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20364 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20365 echo $ECHO_N "(cached) $ECHO_C" >&6
20367 ac_check_lib_save_LIBS=$LIBS
20368 LIBS="-lpthread $LIBS"
20369 cat >conftest.$ac_ext <<_ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h. */
20376 /* Override any GCC internal prototype to avoid an error.
20377 Use char because int might match the return type of a GCC
20378 builtin and then its argument prototype would still apply. */
20382 char pthread_create ();
20386 return pthread_create ();
20391 rm -f conftest.$ac_objext conftest$ac_exeext
20392 if { (ac_try="$ac_link"
20393 case "(($ac_try" in
20394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395 *) ac_try_echo=$ac_try;;
20397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20398 (eval "$ac_link") 2>conftest.er1
20400 grep -v '^ *+' conftest.er1 >conftest.err
20402 cat conftest.err >&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); } && {
20405 test -z "$ac_c_werror_flag" ||
20406 test ! -s conftest.err
20407 } && test -s conftest$ac_exeext &&
20408 $as_test_x conftest$ac_exeext; then
20409 ac_cv_lib_pthread_pthread_create=yes
20411 echo "$as_me: failed program was:" >&5
20412 sed 's/^/| /' conftest.$ac_ext >&5
20414 ac_cv_lib_pthread_pthread_create=no
20417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20418 conftest$ac_exeext conftest.$ac_ext
20419 LIBS=$ac_check_lib_save_LIBS
20421 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20422 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20423 if test $ac_cv_lib_pthread_pthread_create = yes; then
20424 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20425 LIBS="$LIBS -lpthread"
20427 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20428 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20429 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20430 echo $ECHO_N "(cached) $ECHO_C" >&6
20432 ac_check_lib_save_LIBS=$LIBS
20434 cat >conftest.$ac_ext <<_ACEOF
20437 cat confdefs.h >>conftest.$ac_ext
20438 cat >>conftest.$ac_ext <<_ACEOF
20439 /* end confdefs.h. */
20441 /* Override any GCC internal prototype to avoid an error.
20442 Use char because int might match the return type of a GCC
20443 builtin and then its argument prototype would still apply. */
20447 char pthread_create ();
20451 return pthread_create ();
20456 rm -f conftest.$ac_objext conftest$ac_exeext
20457 if { (ac_try="$ac_link"
20458 case "(($ac_try" in
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463 (eval "$ac_link") 2>conftest.er1
20465 grep -v '^ *+' conftest.er1 >conftest.err
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } && {
20470 test -z "$ac_c_werror_flag" ||
20471 test ! -s conftest.err
20472 } && test -s conftest$ac_exeext &&
20473 $as_test_x conftest$ac_exeext; then
20474 ac_cv_lib_c_r_pthread_create=yes
20476 echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20479 ac_cv_lib_c_r_pthread_create=no
20482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20483 conftest$ac_exeext conftest.$ac_ext
20484 LIBS=$ac_check_lib_save_LIBS
20486 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20487 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20488 if test $ac_cv_lib_c_r_pthread_create = yes; then
20489 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20500 if test "x$WITH_THREADS" != "xyes"; then
20502 ac_cv_header_pthread_h="no"
20506 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20507 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20508 if test "${ac_cv_search_sem_init+set}" = set; then
20509 echo $ECHO_N "(cached) $ECHO_C" >&6
20511 ac_func_search_save_LIBS=$LIBS
20512 cat >conftest.$ac_ext <<_ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h. */
20519 /* Override any GCC internal prototype to avoid an error.
20520 Use char because int might match the return type of a GCC
20521 builtin and then its argument prototype would still apply. */
20529 return sem_init ();
20534 for ac_lib in '' pthread sem posix4 rt semaphore; do
20535 if test -z "$ac_lib"; then
20536 ac_res="none required"
20539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20541 rm -f conftest.$ac_objext conftest$ac_exeext
20542 if { (ac_try="$ac_link"
20543 case "(($ac_try" in
20544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20545 *) ac_try_echo=$ac_try;;
20547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20548 (eval "$ac_link") 2>conftest.er1
20550 grep -v '^ *+' conftest.er1 >conftest.err
20552 cat conftest.err >&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); } && {
20555 test -z "$ac_c_werror_flag" ||
20556 test ! -s conftest.err
20557 } && test -s conftest$ac_exeext &&
20558 $as_test_x conftest$ac_exeext; then
20559 ac_cv_search_sem_init=$ac_res
20561 echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20569 if test "${ac_cv_search_sem_init+set}" = set; then
20573 if test "${ac_cv_search_sem_init+set}" = set; then
20576 ac_cv_search_sem_init=no
20578 rm conftest.$ac_ext
20579 LIBS=$ac_func_search_save_LIBS
20581 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20582 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20583 ac_res=$ac_cv_search_sem_init
20584 if test "$ac_res" != no; then
20585 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20588 { { 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
20589 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;}
20590 { (exit 1); exit 1; }; }
20597 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20598 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20599 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
20602 ac_check_lib_save_LIBS=$LIBS
20603 LIBS="-lsocket $LIBS"
20604 cat >conftest.$ac_ext <<_ACEOF
20607 cat confdefs.h >>conftest.$ac_ext
20608 cat >>conftest.$ac_ext <<_ACEOF
20609 /* end confdefs.h. */
20611 /* Override any GCC internal prototype to avoid an error.
20612 Use char because int might match the return type of a GCC
20613 builtin and then its argument prototype would still apply. */
20617 char getsockname ();
20621 return getsockname ();
20626 rm -f conftest.$ac_objext conftest$ac_exeext
20627 if { (ac_try="$ac_link"
20628 case "(($ac_try" in
20629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20630 *) ac_try_echo=$ac_try;;
20632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20633 (eval "$ac_link") 2>conftest.er1
20635 grep -v '^ *+' conftest.er1 >conftest.err
20637 cat conftest.err >&5
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); } && {
20640 test -z "$ac_c_werror_flag" ||
20641 test ! -s conftest.err
20642 } && test -s conftest$ac_exeext &&
20643 $as_test_x conftest$ac_exeext; then
20644 ac_cv_lib_socket_getsockname=yes
20646 echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20649 ac_cv_lib_socket_getsockname=no
20652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20653 conftest$ac_exeext conftest.$ac_ext
20654 LIBS=$ac_check_lib_save_LIBS
20656 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20657 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20658 if test $ac_cv_lib_socket_getsockname = yes; then
20659 cat >>confdefs.h <<_ACEOF
20660 #define HAVE_LIBSOCKET 1
20663 LIBS="-lsocket $LIBS"
20669 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20670 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20671 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20672 echo $ECHO_N "(cached) $ECHO_C" >&6
20674 ac_check_lib_save_LIBS=$LIBS
20675 LIBS="-lresolv $LIBS"
20676 cat >conftest.$ac_ext <<_ACEOF
20679 cat confdefs.h >>conftest.$ac_ext
20680 cat >>conftest.$ac_ext <<_ACEOF
20681 /* end confdefs.h. */
20683 /* Override any GCC internal prototype to avoid an error.
20684 Use char because int might match the return type of a GCC
20685 builtin and then its argument prototype would still apply. */
20693 return inet_aton ();
20698 rm -f conftest.$ac_objext conftest$ac_exeext
20699 if { (ac_try="$ac_link"
20700 case "(($ac_try" in
20701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702 *) ac_try_echo=$ac_try;;
20704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20705 (eval "$ac_link") 2>conftest.er1
20707 grep -v '^ *+' conftest.er1 >conftest.err
20709 cat conftest.err >&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); } && {
20712 test -z "$ac_c_werror_flag" ||
20713 test ! -s conftest.err
20714 } && test -s conftest$ac_exeext &&
20715 $as_test_x conftest$ac_exeext; then
20716 ac_cv_lib_resolv_inet_aton=yes
20718 echo "$as_me: failed program was:" >&5
20719 sed 's/^/| /' conftest.$ac_ext >&5
20721 ac_cv_lib_resolv_inet_aton=no
20724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20725 conftest$ac_exeext conftest.$ac_ext
20726 LIBS=$ac_check_lib_save_LIBS
20728 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20729 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20730 if test $ac_cv_lib_resolv_inet_aton = yes; then
20731 cat >>confdefs.h <<_ACEOF
20732 #define HAVE_LIBRESOLV 1
20735 LIBS="-lresolv $LIBS"
20741 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20742 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
20743 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20744 echo $ECHO_N "(cached) $ECHO_C" >&6
20746 ac_check_lib_save_LIBS=$LIBS
20748 cat >conftest.$ac_ext <<_ACEOF
20751 cat confdefs.h >>conftest.$ac_ext
20752 cat >>conftest.$ac_ext <<_ACEOF
20753 /* end confdefs.h. */
20755 /* Override any GCC internal prototype to avoid an error.
20756 Use char because int might match the return type of a GCC
20757 builtin and then its argument prototype would still apply. */
20765 return inet_ntoa ();
20770 rm -f conftest.$ac_objext conftest$ac_exeext
20771 if { (ac_try="$ac_link"
20772 case "(($ac_try" in
20773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774 *) ac_try_echo=$ac_try;;
20776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20777 (eval "$ac_link") 2>conftest.er1
20779 grep -v '^ *+' conftest.er1 >conftest.err
20781 cat conftest.err >&5
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); } && {
20784 test -z "$ac_c_werror_flag" ||
20785 test ! -s conftest.err
20786 } && test -s conftest$ac_exeext &&
20787 $as_test_x conftest$ac_exeext; then
20788 ac_cv_lib_nsl_inet_ntoa=yes
20790 echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20793 ac_cv_lib_nsl_inet_ntoa=no
20796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20797 conftest$ac_exeext conftest.$ac_ext
20798 LIBS=$ac_check_lib_save_LIBS
20800 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20801 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
20802 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20803 cat >>confdefs.h <<_ACEOF
20804 #define HAVE_LIBNSL 1
20813 if test "x$WITH_OPENSSL" = xyes; then
20815 if test "x$OPENSSL_LIB_DIR" != "x"; then
20816 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20818 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20819 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
20820 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20821 echo $ECHO_N "(cached) $ECHO_C" >&6
20823 ac_check_lib_save_LIBS=$LIBS
20824 LIBS="-lcrypto $LIBS"
20825 cat >conftest.$ac_ext <<_ACEOF
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h. */
20832 /* Override any GCC internal prototype to avoid an error.
20833 Use char because int might match the return type of a GCC
20834 builtin and then its argument prototype would still apply. */
20847 rm -f conftest.$ac_objext conftest$ac_exeext
20848 if { (ac_try="$ac_link"
20849 case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854 (eval "$ac_link") 2>conftest.er1
20856 grep -v '^ *+' conftest.er1 >conftest.err
20858 cat conftest.err >&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } && {
20861 test -z "$ac_c_werror_flag" ||
20862 test ! -s conftest.err
20863 } && test -s conftest$ac_exeext &&
20864 $as_test_x conftest$ac_exeext; then
20865 ac_cv_lib_crypto_DH_new=yes
20867 echo "$as_me: failed program was:" >&5
20868 sed 's/^/| /' conftest.$ac_ext >&5
20870 ac_cv_lib_crypto_DH_new=no
20873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20874 conftest$ac_exeext conftest.$ac_ext
20875 LIBS=$ac_check_lib_save_LIBS
20877 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20878 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
20879 if test $ac_cv_lib_crypto_DH_new = yes; then
20881 LIBS="-lcrypto $LIBS"
20883 cat >>confdefs.h <<\_ACEOF
20884 #define HAVE_LIBCRYPTO 1
20887 { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20888 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
20889 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20890 echo $ECHO_N "(cached) $ECHO_C" >&6
20892 ac_check_lib_save_LIBS=$LIBS
20894 cat >conftest.$ac_ext <<_ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h. */
20901 /* Override any GCC internal prototype to avoid an error.
20902 Use char because int might match the return type of a GCC
20903 builtin and then its argument prototype would still apply. */
20916 rm -f conftest.$ac_objext conftest$ac_exeext
20917 if { (ac_try="$ac_link"
20918 case "(($ac_try" in
20919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20920 *) ac_try_echo=$ac_try;;
20922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20923 (eval "$ac_link") 2>conftest.er1
20925 grep -v '^ *+' conftest.er1 >conftest.err
20927 cat conftest.err >&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } && {
20930 test -z "$ac_c_werror_flag" ||
20931 test ! -s conftest.err
20932 } && test -s conftest$ac_exeext &&
20933 $as_test_x conftest$ac_exeext; then
20934 ac_cv_lib_ssl_SSL_new=yes
20936 echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.$ac_ext >&5
20939 ac_cv_lib_ssl_SSL_new=no
20942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20943 conftest$ac_exeext conftest.$ac_ext
20944 LIBS=$ac_check_lib_save_LIBS
20946 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20947 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
20948 if test $ac_cv_lib_ssl_SSL_new = yes; then
20951 cat >>confdefs.h <<\_ACEOF
20952 #define HAVE_LIBSSL 1
20955 if test "x$OPENSSL_LIB_DIR" != "x"; then
20956 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20958 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20969 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
20970 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
20971 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
20972 echo $ECHO_N "(cached) $ECHO_C" >&6
20974 ac_check_lib_save_LIBS=$LIBS
20975 LIBS="-lws2_32 $LIBS"
20976 cat >conftest.$ac_ext <<_ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h. */
20983 /* Override any GCC internal prototype to avoid an error.
20984 Use char because int might match the return type of a GCC
20985 builtin and then its argument prototype would still apply. */
20998 rm -f conftest.$ac_objext conftest$ac_exeext
20999 if { (ac_try="$ac_link"
21000 case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_link") 2>conftest.er1
21007 grep -v '^ *+' conftest.er1 >conftest.err
21009 cat conftest.err >&5
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); } && {
21012 test -z "$ac_c_werror_flag" ||
21013 test ! -s conftest.err
21014 } && test -s conftest$ac_exeext &&
21015 $as_test_x conftest$ac_exeext; then
21016 ac_cv_lib_ws2_32_htonl=yes
21018 echo "$as_me: failed program was:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21021 ac_cv_lib_ws2_32_htonl=no
21024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21025 conftest$ac_exeext conftest.$ac_ext
21026 LIBS=$ac_check_lib_save_LIBS
21028 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21029 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21030 if test $ac_cv_lib_ws2_32_htonl = yes; then
21031 cat >>confdefs.h <<_ACEOF
21032 #define HAVE_LIBWS2_32 1
21035 LIBS="-lws2_32 $LIBS"
21041 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21042 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21043 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21044 echo $ECHO_N "(cached) $ECHO_C" >&6
21046 ac_check_lib_save_LIBS=$LIBS
21047 LIBS="-lpcap $LIBS"
21048 cat >conftest.$ac_ext <<_ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h. */
21055 /* Override any GCC internal prototype to avoid an error.
21056 Use char because int might match the return type of a GCC
21057 builtin and then its argument prototype would still apply. */
21061 char pcap_open_live ();
21065 return pcap_open_live ();
21070 rm -f conftest.$ac_objext conftest$ac_exeext
21071 if { (ac_try="$ac_link"
21072 case "(($ac_try" in
21073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074 *) ac_try_echo=$ac_try;;
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077 (eval "$ac_link") 2>conftest.er1
21079 grep -v '^ *+' conftest.er1 >conftest.err
21081 cat conftest.err >&5
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); } && {
21084 test -z "$ac_c_werror_flag" ||
21085 test ! -s conftest.err
21086 } && test -s conftest$ac_exeext &&
21087 $as_test_x conftest$ac_exeext; then
21088 ac_cv_lib_pcap_pcap_open_live=yes
21090 echo "$as_me: failed program was:" >&5
21091 sed 's/^/| /' conftest.$ac_ext >&5
21093 ac_cv_lib_pcap_pcap_open_live=no
21096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21097 conftest$ac_exeext conftest.$ac_ext
21098 LIBS=$ac_check_lib_save_LIBS
21100 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21101 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21102 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21105 cat >>confdefs.h <<\_ACEOF
21106 #define HAVE_LIBPCAP 1
21111 { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21112 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21119 CFLAGS="$CFLAGS -D_ALL_SOURCE"
21122 CFLAGS="$CFLAGS -DDARWIN"
21123 LIBS="-framework DirectoryService $LIBS"
21132 ac_header_dirent=no
21133 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21134 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21135 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21136 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21138 echo $ECHO_N "(cached) $ECHO_C" >&6
21140 cat >conftest.$ac_ext <<_ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21146 #include <sys/types.h>
21158 rm -f conftest.$ac_objext
21159 if { (ac_try="$ac_compile"
21160 case "(($ac_try" in
21161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21162 *) ac_try_echo=$ac_try;;
21164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21165 (eval "$ac_compile") 2>conftest.er1
21167 grep -v '^ *+' conftest.er1 >conftest.err
21169 cat conftest.err >&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); } && {
21172 test -z "$ac_c_werror_flag" ||
21173 test ! -s conftest.err
21174 } && test -s conftest.$ac_objext; then
21175 eval "$as_ac_Header=yes"
21177 echo "$as_me: failed program was:" >&5
21178 sed 's/^/| /' conftest.$ac_ext >&5
21180 eval "$as_ac_Header=no"
21183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21185 ac_res=`eval echo '${'$as_ac_Header'}'`
21186 { echo "$as_me:$LINENO: result: $ac_res" >&5
21187 echo "${ECHO_T}$ac_res" >&6; }
21188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21189 cat >>confdefs.h <<_ACEOF
21190 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21193 ac_header_dirent=$ac_hdr; break
21197 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21198 if test $ac_header_dirent = dirent.h; then
21199 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21200 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21201 if test "${ac_cv_search_opendir+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21204 ac_func_search_save_LIBS=$LIBS
21205 cat >conftest.$ac_ext <<_ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h. */
21212 /* Override any GCC internal prototype to avoid an error.
21213 Use char because int might match the return type of a GCC
21214 builtin and then its argument prototype would still apply. */
21227 for ac_lib in '' dir; do
21228 if test -z "$ac_lib"; then
21229 ac_res="none required"
21232 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21234 rm -f conftest.$ac_objext conftest$ac_exeext
21235 if { (ac_try="$ac_link"
21236 case "(($ac_try" in
21237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21238 *) ac_try_echo=$ac_try;;
21240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21241 (eval "$ac_link") 2>conftest.er1
21243 grep -v '^ *+' conftest.er1 >conftest.err
21245 cat conftest.err >&5
21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); } && {
21248 test -z "$ac_c_werror_flag" ||
21249 test ! -s conftest.err
21250 } && test -s conftest$ac_exeext &&
21251 $as_test_x conftest$ac_exeext; then
21252 ac_cv_search_opendir=$ac_res
21254 echo "$as_me: failed program was:" >&5
21255 sed 's/^/| /' conftest.$ac_ext >&5
21260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21262 if test "${ac_cv_search_opendir+set}" = set; then
21266 if test "${ac_cv_search_opendir+set}" = set; then
21269 ac_cv_search_opendir=no
21271 rm conftest.$ac_ext
21272 LIBS=$ac_func_search_save_LIBS
21274 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21275 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21276 ac_res=$ac_cv_search_opendir
21277 if test "$ac_res" != no; then
21278 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21283 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21284 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21285 if test "${ac_cv_search_opendir+set}" = set; then
21286 echo $ECHO_N "(cached) $ECHO_C" >&6
21288 ac_func_search_save_LIBS=$LIBS
21289 cat >conftest.$ac_ext <<_ACEOF
21292 cat confdefs.h >>conftest.$ac_ext
21293 cat >>conftest.$ac_ext <<_ACEOF
21294 /* end confdefs.h. */
21296 /* Override any GCC internal prototype to avoid an error.
21297 Use char because int might match the return type of a GCC
21298 builtin and then its argument prototype would still apply. */
21311 for ac_lib in '' x; do
21312 if test -z "$ac_lib"; then
21313 ac_res="none required"
21316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21318 rm -f conftest.$ac_objext conftest$ac_exeext
21319 if { (ac_try="$ac_link"
21320 case "(($ac_try" in
21321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21322 *) ac_try_echo=$ac_try;;
21324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21325 (eval "$ac_link") 2>conftest.er1
21327 grep -v '^ *+' conftest.er1 >conftest.err
21329 cat conftest.err >&5
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); } && {
21332 test -z "$ac_c_werror_flag" ||
21333 test ! -s conftest.err
21334 } && test -s conftest$ac_exeext &&
21335 $as_test_x conftest$ac_exeext; then
21336 ac_cv_search_opendir=$ac_res
21338 echo "$as_me: failed program was:" >&5
21339 sed 's/^/| /' conftest.$ac_ext >&5
21344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21346 if test "${ac_cv_search_opendir+set}" = set; then
21350 if test "${ac_cv_search_opendir+set}" = set; then
21353 ac_cv_search_opendir=no
21355 rm conftest.$ac_ext
21356 LIBS=$ac_func_search_save_LIBS
21358 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21359 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21360 ac_res=$ac_cv_search_opendir
21361 if test "$ac_res" != no; then
21362 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21368 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21369 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21370 if test "${ac_cv_header_stdc+set}" = set; then
21371 echo $ECHO_N "(cached) $ECHO_C" >&6
21373 cat >conftest.$ac_ext <<_ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h. */
21379 #include <stdlib.h>
21380 #include <stdarg.h>
21381 #include <string.h>
21392 rm -f conftest.$ac_objext
21393 if { (ac_try="$ac_compile"
21394 case "(($ac_try" in
21395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396 *) ac_try_echo=$ac_try;;
21398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399 (eval "$ac_compile") 2>conftest.er1
21401 grep -v '^ *+' conftest.er1 >conftest.err
21403 cat conftest.err >&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); } && {
21406 test -z "$ac_c_werror_flag" ||
21407 test ! -s conftest.err
21408 } && test -s conftest.$ac_objext; then
21409 ac_cv_header_stdc=yes
21411 echo "$as_me: failed program was:" >&5
21412 sed 's/^/| /' conftest.$ac_ext >&5
21414 ac_cv_header_stdc=no
21417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21419 if test $ac_cv_header_stdc = yes; then
21420 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21421 cat >conftest.$ac_ext <<_ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h. */
21427 #include <string.h>
21430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21431 $EGREP "memchr" >/dev/null 2>&1; then
21434 ac_cv_header_stdc=no
21440 if test $ac_cv_header_stdc = yes; then
21441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21442 cat >conftest.$ac_ext <<_ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h. */
21448 #include <stdlib.h>
21451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21452 $EGREP "free" >/dev/null 2>&1; then
21455 ac_cv_header_stdc=no
21461 if test $ac_cv_header_stdc = yes; then
21462 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21463 if test "$cross_compiling" = yes; then
21466 cat >conftest.$ac_ext <<_ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h. */
21473 #include <stdlib.h>
21474 #if ((' ' & 0x0FF) == 0x020)
21475 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21476 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21478 # define ISLOWER(c) \
21479 (('a' <= (c) && (c) <= 'i') \
21480 || ('j' <= (c) && (c) <= 'r') \
21481 || ('s' <= (c) && (c) <= 'z'))
21482 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21485 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21490 for (i = 0; i < 256; i++)
21491 if (XOR (islower (i), ISLOWER (i))
21492 || toupper (i) != TOUPPER (i))
21497 rm -f conftest$ac_exeext
21498 if { (ac_try="$ac_link"
21499 case "(($ac_try" in
21500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21501 *) ac_try_echo=$ac_try;;
21503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21504 (eval "$ac_link") 2>&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21508 { (case "(($ac_try" in
21509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21510 *) ac_try_echo=$ac_try;;
21512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21513 (eval "$ac_try") 2>&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; }; then
21519 echo "$as_me: program exited with status $ac_status" >&5
21520 echo "$as_me: failed program was:" >&5
21521 sed 's/^/| /' conftest.$ac_ext >&5
21523 ( exit $ac_status )
21524 ac_cv_header_stdc=no
21526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21532 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21533 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21534 if test $ac_cv_header_stdc = yes; then
21536 cat >>confdefs.h <<\_ACEOF
21537 #define STDC_HEADERS 1
21542 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21543 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21544 if test "${ac_cv_header_time+set}" = set; then
21545 echo $ECHO_N "(cached) $ECHO_C" >&6
21547 cat >conftest.$ac_ext <<_ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h. */
21553 #include <sys/types.h>
21554 #include <sys/time.h>
21560 if ((struct tm *) 0)
21566 rm -f conftest.$ac_objext
21567 if { (ac_try="$ac_compile"
21568 case "(($ac_try" in
21569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570 *) ac_try_echo=$ac_try;;
21572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21573 (eval "$ac_compile") 2>conftest.er1
21575 grep -v '^ *+' conftest.er1 >conftest.err
21577 cat conftest.err >&5
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); } && {
21580 test -z "$ac_c_werror_flag" ||
21581 test ! -s conftest.err
21582 } && test -s conftest.$ac_objext; then
21583 ac_cv_header_time=yes
21585 echo "$as_me: failed program was:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21588 ac_cv_header_time=no
21591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21593 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21594 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21595 if test $ac_cv_header_time = yes; then
21597 cat >>confdefs.h <<\_ACEOF
21598 #define TIME_WITH_SYS_TIME 1
21603 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21604 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21605 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21606 echo $ECHO_N "(cached) $ECHO_C" >&6
21608 cat >conftest.$ac_ext <<_ACEOF
21611 cat confdefs.h >>conftest.$ac_ext
21612 cat >>conftest.$ac_ext <<_ACEOF
21613 /* end confdefs.h. */
21614 #include <sys/types.h>
21615 #include <sys/wait.h>
21616 #ifndef WEXITSTATUS
21617 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21620 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21628 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21633 rm -f conftest.$ac_objext
21634 if { (ac_try="$ac_compile"
21635 case "(($ac_try" in
21636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637 *) ac_try_echo=$ac_try;;
21639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640 (eval "$ac_compile") 2>conftest.er1
21642 grep -v '^ *+' conftest.er1 >conftest.err
21644 cat conftest.err >&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); } && {
21647 test -z "$ac_c_werror_flag" ||
21648 test ! -s conftest.err
21649 } && test -s conftest.$ac_objext; then
21650 ac_cv_header_sys_wait_h=yes
21652 echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21655 ac_cv_header_sys_wait_h=no
21658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21660 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21661 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21662 if test $ac_cv_header_sys_wait_h = yes; then
21664 cat >>confdefs.h <<\_ACEOF
21665 #define HAVE_SYS_WAIT_H 1
21740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21745 echo $ECHO_N "(cached) $ECHO_C" >&6
21747 ac_res=`eval echo '${'$as_ac_Header'}'`
21748 { echo "$as_me:$LINENO: result: $ac_res" >&5
21749 echo "${ECHO_T}$ac_res" >&6; }
21751 # Is the header compilable?
21752 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21754 cat >conftest.$ac_ext <<_ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h. */
21760 $ac_includes_default
21761 #include <$ac_header>
21763 rm -f conftest.$ac_objext
21764 if { (ac_try="$ac_compile"
21765 case "(($ac_try" in
21766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21767 *) ac_try_echo=$ac_try;;
21769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21770 (eval "$ac_compile") 2>conftest.er1
21772 grep -v '^ *+' conftest.er1 >conftest.err
21774 cat conftest.err >&5
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); } && {
21777 test -z "$ac_c_werror_flag" ||
21778 test ! -s conftest.err
21779 } && test -s conftest.$ac_objext; then
21780 ac_header_compiler=yes
21782 echo "$as_me: failed program was:" >&5
21783 sed 's/^/| /' conftest.$ac_ext >&5
21785 ac_header_compiler=no
21788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21790 echo "${ECHO_T}$ac_header_compiler" >&6; }
21792 # Is the header present?
21793 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21795 cat >conftest.$ac_ext <<_ACEOF
21798 cat confdefs.h >>conftest.$ac_ext
21799 cat >>conftest.$ac_ext <<_ACEOF
21800 /* end confdefs.h. */
21801 #include <$ac_header>
21803 if { (ac_try="$ac_cpp conftest.$ac_ext"
21804 case "(($ac_try" in
21805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21806 *) ac_try_echo=$ac_try;;
21808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21811 grep -v '^ *+' conftest.er1 >conftest.err
21813 cat conftest.err >&5
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); } >/dev/null && {
21816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21817 test ! -s conftest.err
21819 ac_header_preproc=yes
21821 echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21824 ac_header_preproc=no
21827 rm -f conftest.err conftest.$ac_ext
21828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21829 echo "${ECHO_T}$ac_header_preproc" >&6; }
21831 # So? What about this header?
21832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21838 ac_header_preproc=yes
21841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21848 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21859 echo $ECHO_N "(cached) $ECHO_C" >&6
21861 eval "$as_ac_Header=\$ac_header_preproc"
21863 ac_res=`eval echo '${'$as_ac_Header'}'`
21864 { echo "$as_me:$LINENO: result: $ac_res" >&5
21865 echo "${ECHO_T}$ac_res" >&6; }
21868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21869 cat >>confdefs.h <<_ACEOF
21870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21879 for ac_header in net/if.h
21881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21885 echo $ECHO_N "(cached) $ECHO_C" >&6
21887 cat >conftest.$ac_ext <<_ACEOF
21890 cat confdefs.h >>conftest.$ac_ext
21891 cat >>conftest.$ac_ext <<_ACEOF
21892 /* end confdefs.h. */
21893 #ifdef HAVE_SYS_SOCKET_H
21894 # include <sys/socket.h>
21898 #include <$ac_header>
21900 rm -f conftest.$ac_objext
21901 if { (ac_try="$ac_compile"
21902 case "(($ac_try" in
21903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21904 *) ac_try_echo=$ac_try;;
21906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21907 (eval "$ac_compile") 2>conftest.er1
21909 grep -v '^ *+' conftest.er1 >conftest.err
21911 cat conftest.err >&5
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); } && {
21914 test -z "$ac_c_werror_flag" ||
21915 test ! -s conftest.err
21916 } && test -s conftest.$ac_objext; then
21917 eval "$as_ac_Header=yes"
21919 echo "$as_me: failed program was:" >&5
21920 sed 's/^/| /' conftest.$ac_ext >&5
21922 eval "$as_ac_Header=no"
21925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21927 ac_res=`eval echo '${'$as_ac_Header'}'`
21928 { echo "$as_me:$LINENO: result: $ac_res" >&5
21929 echo "${ECHO_T}$ac_res" >&6; }
21930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21931 cat >>confdefs.h <<_ACEOF
21932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21941 if test "${ac_cv_header_regex_h+set}" = set; then
21942 { echo "$as_me:$LINENO: checking for regex.h" >&5
21943 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21944 if test "${ac_cv_header_regex_h+set}" = set; then
21945 echo $ECHO_N "(cached) $ECHO_C" >&6
21947 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21948 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21950 # Is the header compilable?
21951 { echo "$as_me:$LINENO: checking regex.h usability" >&5
21952 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
21953 cat >conftest.$ac_ext <<_ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h. */
21959 $ac_includes_default
21962 rm -f conftest.$ac_objext
21963 if { (ac_try="$ac_compile"
21964 case "(($ac_try" in
21965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21966 *) ac_try_echo=$ac_try;;
21968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21969 (eval "$ac_compile") 2>conftest.er1
21971 grep -v '^ *+' conftest.er1 >conftest.err
21973 cat conftest.err >&5
21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); } && {
21976 test -z "$ac_c_werror_flag" ||
21977 test ! -s conftest.err
21978 } && test -s conftest.$ac_objext; then
21979 ac_header_compiler=yes
21981 echo "$as_me: failed program was:" >&5
21982 sed 's/^/| /' conftest.$ac_ext >&5
21984 ac_header_compiler=no
21987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21989 echo "${ECHO_T}$ac_header_compiler" >&6; }
21991 # Is the header present?
21992 { echo "$as_me:$LINENO: checking regex.h presence" >&5
21993 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
21994 cat >conftest.$ac_ext <<_ACEOF
21997 cat confdefs.h >>conftest.$ac_ext
21998 cat >>conftest.$ac_ext <<_ACEOF
21999 /* end confdefs.h. */
22002 if { (ac_try="$ac_cpp conftest.$ac_ext"
22003 case "(($ac_try" in
22004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22005 *) ac_try_echo=$ac_try;;
22007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22010 grep -v '^ *+' conftest.er1 >conftest.err
22012 cat conftest.err >&5
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); } >/dev/null && {
22015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22016 test ! -s conftest.err
22018 ac_header_preproc=yes
22020 echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22023 ac_header_preproc=no
22026 rm -f conftest.err conftest.$ac_ext
22027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22028 echo "${ECHO_T}$ac_header_preproc" >&6; }
22030 # So? What about this header?
22031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22033 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22034 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22035 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22036 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22037 ac_header_preproc=yes
22040 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22041 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
22042 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22043 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22044 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22045 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22046 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22047 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
22048 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22049 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
22050 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22051 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
22055 { echo "$as_me:$LINENO: checking for regex.h" >&5
22056 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22057 if test "${ac_cv_header_regex_h+set}" = set; then
22058 echo $ECHO_N "(cached) $ECHO_C" >&6
22060 ac_cv_header_regex_h=$ac_header_preproc
22062 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22063 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22066 if test $ac_cv_header_regex_h = yes; then
22068 cat >>confdefs.h <<\_ACEOF
22069 #define HAVE_REGEX_H
22075 if test "x$ac_cv_header_regex_h" = "xyes"; then
22078 cat >conftest.$ac_ext <<_ACEOF
22081 cat confdefs.h >>conftest.$ac_ext
22082 cat >>conftest.$ac_ext <<_ACEOF
22083 /* end confdefs.h. */
22085 #ifdef REG_EXTENDED
22090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22091 $EGREP "yes" >/dev/null 2>&1; then
22093 cat >>confdefs.h <<\_ACEOF
22094 #define HAVE_REG_EXTENDED
22104 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
22107 cat >>confdefs.h <<\_ACEOF
22113 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
22116 cat >>confdefs.h <<\_ACEOF
22122 OPENSSL_INCLUDE="-DNO_OPENSSL"
22123 if test "x$WITH_OPENSSL" = xyes; then
22124 if test "x$OPENSSL_LIBS" = "x"; then
22125 { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
22126 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
22128 old_CPPFLAGS=$CPPFLAGS
22129 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22130 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
22132 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
22145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22150 echo $ECHO_N "(cached) $ECHO_C" >&6
22152 ac_res=`eval echo '${'$as_ac_Header'}'`
22153 { echo "$as_me:$LINENO: result: $ac_res" >&5
22154 echo "${ECHO_T}$ac_res" >&6; }
22156 # Is the header compilable?
22157 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22159 cat >conftest.$ac_ext <<_ACEOF
22162 cat confdefs.h >>conftest.$ac_ext
22163 cat >>conftest.$ac_ext <<_ACEOF
22164 /* end confdefs.h. */
22165 $ac_includes_default
22166 #include <$ac_header>
22168 rm -f conftest.$ac_objext
22169 if { (ac_try="$ac_compile"
22170 case "(($ac_try" in
22171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22172 *) ac_try_echo=$ac_try;;
22174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22175 (eval "$ac_compile") 2>conftest.er1
22177 grep -v '^ *+' conftest.er1 >conftest.err
22179 cat conftest.err >&5
22180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181 (exit $ac_status); } && {
22182 test -z "$ac_c_werror_flag" ||
22183 test ! -s conftest.err
22184 } && test -s conftest.$ac_objext; then
22185 ac_header_compiler=yes
22187 echo "$as_me: failed program was:" >&5
22188 sed 's/^/| /' conftest.$ac_ext >&5
22190 ac_header_compiler=no
22193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22195 echo "${ECHO_T}$ac_header_compiler" >&6; }
22197 # Is the header present?
22198 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22200 cat >conftest.$ac_ext <<_ACEOF
22203 cat confdefs.h >>conftest.$ac_ext
22204 cat >>conftest.$ac_ext <<_ACEOF
22205 /* end confdefs.h. */
22206 #include <$ac_header>
22208 if { (ac_try="$ac_cpp conftest.$ac_ext"
22209 case "(($ac_try" in
22210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22211 *) ac_try_echo=$ac_try;;
22213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22216 grep -v '^ *+' conftest.er1 >conftest.err
22218 cat conftest.err >&5
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); } >/dev/null && {
22221 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22222 test ! -s conftest.err
22224 ac_header_preproc=yes
22226 echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22229 ac_header_preproc=no
22232 rm -f conftest.err conftest.$ac_ext
22233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22234 echo "${ECHO_T}$ac_header_preproc" >&6; }
22236 # So? What about this header?
22237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22243 ac_header_preproc=yes
22246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22253 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22264 echo $ECHO_N "(cached) $ECHO_C" >&6
22266 eval "$as_ac_Header=\$ac_header_preproc"
22268 ac_res=`eval echo '${'$as_ac_Header'}'`
22269 { echo "$as_me:$LINENO: result: $ac_res" >&5
22270 echo "${ECHO_T}$ac_res" >&6; }
22273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22274 cat >>confdefs.h <<_ACEOF
22275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22285 if test "x$OPENSSL_LIBS" != "x"; then
22286 { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22287 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
22288 cat >conftest.$ac_ext <<_ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h. */
22294 #include <openssl/crypto.h>
22295 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22301 $EGREP "yes" >/dev/null 2>&1; then
22306 if test "x$goodssl" != "xyes"; then
22307 { echo "$as_me:$LINENO: result: no" >&5
22308 echo "${ECHO_T}no" >&6; }
22311 { echo "$as_me:$LINENO: result: yes" >&5
22312 echo "${ECHO_T}yes" >&6; }
22313 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22314 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
22316 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
22320 CPPFLAGS=$old_CPPFLAGS
22325 export OPENSSL_LIBS
22327 if test "x$PCAP_LIBS" = x; then
22328 { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
22329 echo "$as_me: skipping test for pcap.h." >&6;}
22331 if test "${ac_cv_header_pcap_h+set}" = set; then
22332 { echo "$as_me:$LINENO: checking for pcap.h" >&5
22333 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
22334 if test "${ac_cv_header_pcap_h+set}" = set; then
22335 echo $ECHO_N "(cached) $ECHO_C" >&6
22337 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22338 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
22340 # Is the header compilable?
22341 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
22342 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
22343 cat >conftest.$ac_ext <<_ACEOF
22346 cat confdefs.h >>conftest.$ac_ext
22347 cat >>conftest.$ac_ext <<_ACEOF
22348 /* end confdefs.h. */
22349 $ac_includes_default
22352 rm -f conftest.$ac_objext
22353 if { (ac_try="$ac_compile"
22354 case "(($ac_try" in
22355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22356 *) ac_try_echo=$ac_try;;
22358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22359 (eval "$ac_compile") 2>conftest.er1
22361 grep -v '^ *+' conftest.er1 >conftest.err
22363 cat conftest.err >&5
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); } && {
22366 test -z "$ac_c_werror_flag" ||
22367 test ! -s conftest.err
22368 } && test -s conftest.$ac_objext; then
22369 ac_header_compiler=yes
22371 echo "$as_me: failed program was:" >&5
22372 sed 's/^/| /' conftest.$ac_ext >&5
22374 ac_header_compiler=no
22377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22379 echo "${ECHO_T}$ac_header_compiler" >&6; }
22381 # Is the header present?
22382 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
22383 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
22384 cat >conftest.$ac_ext <<_ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h. */
22392 if { (ac_try="$ac_cpp conftest.$ac_ext"
22393 case "(($ac_try" in
22394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22395 *) ac_try_echo=$ac_try;;
22397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22400 grep -v '^ *+' conftest.er1 >conftest.err
22402 cat conftest.err >&5
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); } >/dev/null && {
22405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22406 test ! -s conftest.err
22408 ac_header_preproc=yes
22410 echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22413 ac_header_preproc=no
22416 rm -f conftest.err conftest.$ac_ext
22417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22418 echo "${ECHO_T}$ac_header_preproc" >&6; }
22420 # So? What about this header?
22421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22423 { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
22424 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22425 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
22426 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
22427 ac_header_preproc=yes
22430 { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
22431 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
22432 { echo "$as_me:$LINENO: WARNING: pcap.h: check for missing prerequisite headers?" >&5
22433 echo "$as_me: WARNING: pcap.h: check for missing prerequisite headers?" >&2;}
22434 { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
22435 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
22436 { echo "$as_me:$LINENO: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&5
22437 echo "$as_me: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
22438 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
22439 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
22440 { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
22441 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
22445 { echo "$as_me:$LINENO: checking for pcap.h" >&5
22446 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
22447 if test "${ac_cv_header_pcap_h+set}" = set; then
22448 echo $ECHO_N "(cached) $ECHO_C" >&6
22450 ac_cv_header_pcap_h=$ac_header_preproc
22452 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22453 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
22456 if test $ac_cv_header_pcap_h = yes; then
22458 cat >>confdefs.h <<\_ACEOF
22459 #define HAVE_PCAP_H 1
22464 { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
22465 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
22474 { echo "$as_me:$LINENO: checking for off_t" >&5
22475 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22476 if test "${ac_cv_type_off_t+set}" = set; then
22477 echo $ECHO_N "(cached) $ECHO_C" >&6
22479 cat >conftest.$ac_ext <<_ACEOF
22482 cat confdefs.h >>conftest.$ac_ext
22483 cat >>conftest.$ac_ext <<_ACEOF
22484 /* end confdefs.h. */
22485 $ac_includes_default
22486 typedef off_t ac__type_new_;
22490 if ((ac__type_new_ *) 0)
22492 if (sizeof (ac__type_new_))
22498 rm -f conftest.$ac_objext
22499 if { (ac_try="$ac_compile"
22500 case "(($ac_try" in
22501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22502 *) ac_try_echo=$ac_try;;
22504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22505 (eval "$ac_compile") 2>conftest.er1
22507 grep -v '^ *+' conftest.er1 >conftest.err
22509 cat conftest.err >&5
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); } && {
22512 test -z "$ac_c_werror_flag" ||
22513 test ! -s conftest.err
22514 } && test -s conftest.$ac_objext; then
22515 ac_cv_type_off_t=yes
22517 echo "$as_me: failed program was:" >&5
22518 sed 's/^/| /' conftest.$ac_ext >&5
22520 ac_cv_type_off_t=no
22523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22525 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22526 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22527 if test $ac_cv_type_off_t = yes; then
22531 cat >>confdefs.h <<_ACEOF
22532 #define off_t long int
22537 { echo "$as_me:$LINENO: checking for pid_t" >&5
22538 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22539 if test "${ac_cv_type_pid_t+set}" = set; then
22540 echo $ECHO_N "(cached) $ECHO_C" >&6
22542 cat >conftest.$ac_ext <<_ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h. */
22548 $ac_includes_default
22549 typedef pid_t ac__type_new_;
22553 if ((ac__type_new_ *) 0)
22555 if (sizeof (ac__type_new_))
22561 rm -f conftest.$ac_objext
22562 if { (ac_try="$ac_compile"
22563 case "(($ac_try" in
22564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565 *) ac_try_echo=$ac_try;;
22567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22568 (eval "$ac_compile") 2>conftest.er1
22570 grep -v '^ *+' conftest.er1 >conftest.err
22572 cat conftest.err >&5
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } && {
22575 test -z "$ac_c_werror_flag" ||
22576 test ! -s conftest.err
22577 } && test -s conftest.$ac_objext; then
22578 ac_cv_type_pid_t=yes
22580 echo "$as_me: failed program was:" >&5
22581 sed 's/^/| /' conftest.$ac_ext >&5
22583 ac_cv_type_pid_t=no
22586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22588 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22589 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22590 if test $ac_cv_type_pid_t = yes; then
22594 cat >>confdefs.h <<_ACEOF
22600 { echo "$as_me:$LINENO: checking for size_t" >&5
22601 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22602 if test "${ac_cv_type_size_t+set}" = set; then
22603 echo $ECHO_N "(cached) $ECHO_C" >&6
22605 cat >conftest.$ac_ext <<_ACEOF
22608 cat confdefs.h >>conftest.$ac_ext
22609 cat >>conftest.$ac_ext <<_ACEOF
22610 /* end confdefs.h. */
22611 $ac_includes_default
22612 typedef size_t ac__type_new_;
22616 if ((ac__type_new_ *) 0)
22618 if (sizeof (ac__type_new_))
22624 rm -f conftest.$ac_objext
22625 if { (ac_try="$ac_compile"
22626 case "(($ac_try" in
22627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22628 *) ac_try_echo=$ac_try;;
22630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22631 (eval "$ac_compile") 2>conftest.er1
22633 grep -v '^ *+' conftest.er1 >conftest.err
22635 cat conftest.err >&5
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); } && {
22638 test -z "$ac_c_werror_flag" ||
22639 test ! -s conftest.err
22640 } && test -s conftest.$ac_objext; then
22641 ac_cv_type_size_t=yes
22643 echo "$as_me: failed program was:" >&5
22644 sed 's/^/| /' conftest.$ac_ext >&5
22646 ac_cv_type_size_t=no
22649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22651 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22652 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22653 if test $ac_cv_type_size_t = yes; then
22657 cat >>confdefs.h <<_ACEOF
22658 #define size_t unsigned int
22663 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22664 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22665 if test "${ac_cv_type_uid_t+set}" = set; then
22666 echo $ECHO_N "(cached) $ECHO_C" >&6
22668 cat >conftest.$ac_ext <<_ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h. */
22674 #include <sys/types.h>
22677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22678 $EGREP "uid_t" >/dev/null 2>&1; then
22679 ac_cv_type_uid_t=yes
22681 ac_cv_type_uid_t=no
22686 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22687 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22688 if test $ac_cv_type_uid_t = no; then
22690 cat >>confdefs.h <<\_ACEOF
22695 cat >>confdefs.h <<\_ACEOF
22703 { echo "$as_me:$LINENO: checking for socklen_t" >&5
22704 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22705 if test "${ac_cv_type_socklen_t+set}" = set; then
22706 echo $ECHO_N "(cached) $ECHO_C" >&6
22708 ac_cv_type_socklen_t=no
22709 cat >conftest.$ac_ext <<_ACEOF
22712 cat confdefs.h >>conftest.$ac_ext
22713 cat >>conftest.$ac_ext <<_ACEOF
22714 /* end confdefs.h. */
22715 #ifdef HAVE_SYS_TYPES_H
22716 #include <sys/types.h>
22718 #ifdef HAVE_SYS_SOCKET_H
22719 #include <sys/socket.h>
22730 rm -f conftest.$ac_objext
22731 if { (ac_try="$ac_compile"
22732 case "(($ac_try" in
22733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22734 *) ac_try_echo=$ac_try;;
22736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22737 (eval "$ac_compile") 2>conftest.er1
22739 grep -v '^ *+' conftest.er1 >conftest.err
22741 cat conftest.err >&5
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); } && {
22744 test -z "$ac_c_werror_flag" ||
22745 test ! -s conftest.err
22746 } && test -s conftest.$ac_objext; then
22747 ac_cv_type_socklen_t=yes
22749 echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22759 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22760 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22762 if test "$ac_cv_type_socklen_t" != "yes"; then
22764 cat >>confdefs.h <<\_ACEOF
22765 #define socklen_t int
22772 { echo "$as_me:$LINENO: checking for uint8_t" >&5
22773 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
22774 if test "${ac_cv_type_uint8_t+set}" = set; then
22775 echo $ECHO_N "(cached) $ECHO_C" >&6
22777 ac_cv_type_uint8_t=no
22778 cat >conftest.$ac_ext <<_ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h. */
22784 #ifdef HAVE_INTTYPES_H
22785 #include <inttypes.h>
22787 #ifdef HAVE_STDINT_H
22788 #include <stdint.h>
22799 rm -f conftest.$ac_objext
22800 if { (ac_try="$ac_compile"
22801 case "(($ac_try" in
22802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803 *) ac_try_echo=$ac_try;;
22805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22806 (eval "$ac_compile") 2>conftest.er1
22808 grep -v '^ *+' conftest.er1 >conftest.err
22810 cat conftest.err >&5
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); } && {
22813 test -z "$ac_c_werror_flag" ||
22814 test ! -s conftest.err
22815 } && test -s conftest.$ac_objext; then
22816 ac_cv_type_uint8_t=yes
22818 echo "$as_me: failed program was:" >&5
22819 sed 's/^/| /' conftest.$ac_ext >&5
22824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22828 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22829 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
22831 if test "$ac_cv_type_uint8_t" != "yes"; then
22833 cat >>confdefs.h <<\_ACEOF
22834 #define uint8_t unsigned char
22841 { echo "$as_me:$LINENO: checking for uint16_t" >&5
22842 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22843 if test "${ac_cv_type_uint16_t+set}" = set; then
22844 echo $ECHO_N "(cached) $ECHO_C" >&6
22846 ac_cv_type_uint16_t=no
22847 cat >conftest.$ac_ext <<_ACEOF
22850 cat confdefs.h >>conftest.$ac_ext
22851 cat >>conftest.$ac_ext <<_ACEOF
22852 /* end confdefs.h. */
22853 #ifdef HAVE_INTTYPES_H
22854 #include <inttypes.h>
22856 #ifdef HAVE_STDINT_H
22857 #include <stdint.h>
22868 rm -f conftest.$ac_objext
22869 if { (ac_try="$ac_compile"
22870 case "(($ac_try" in
22871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22872 *) ac_try_echo=$ac_try;;
22874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22875 (eval "$ac_compile") 2>conftest.er1
22877 grep -v '^ *+' conftest.er1 >conftest.err
22879 cat conftest.err >&5
22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881 (exit $ac_status); } && {
22882 test -z "$ac_c_werror_flag" ||
22883 test ! -s conftest.err
22884 } && test -s conftest.$ac_objext; then
22885 ac_cv_type_uint16_t=yes
22887 echo "$as_me: failed program was:" >&5
22888 sed 's/^/| /' conftest.$ac_ext >&5
22893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22897 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22898 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22900 if test "$ac_cv_type_uint16_t" != "yes"; then
22902 cat >>confdefs.h <<\_ACEOF
22903 #define uint16_t unsigned short
22910 { echo "$as_me:$LINENO: checking for uint32_t" >&5
22911 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
22912 if test "${ac_cv_type_uint32_t+set}" = set; then
22913 echo $ECHO_N "(cached) $ECHO_C" >&6
22915 ac_cv_type_uint32_t=no
22916 cat >conftest.$ac_ext <<_ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h. */
22922 #ifdef HAVE_INTTYPES_H
22923 #include <inttypes.h>
22925 #ifdef HAVE_STDINT_H
22926 #include <stdint.h>
22937 rm -f conftest.$ac_objext
22938 if { (ac_try="$ac_compile"
22939 case "(($ac_try" in
22940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22941 *) ac_try_echo=$ac_try;;
22943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22944 (eval "$ac_compile") 2>conftest.er1
22946 grep -v '^ *+' conftest.er1 >conftest.err
22948 cat conftest.err >&5
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); } && {
22951 test -z "$ac_c_werror_flag" ||
22952 test ! -s conftest.err
22953 } && test -s conftest.$ac_objext; then
22954 ac_cv_type_uint32_t=yes
22956 echo "$as_me: failed program was:" >&5
22957 sed 's/^/| /' conftest.$ac_ext >&5
22962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22966 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22967 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
22969 if test "$ac_cv_type_uint32_t" != "yes"; then
22971 cat >>confdefs.h <<\_ACEOF
22972 #define uint32_t unsigned int
22978 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
22979 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
22980 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
22981 echo $ECHO_N "(cached) $ECHO_C" >&6
22983 cat >conftest.$ac_ext <<_ACEOF
22986 cat confdefs.h >>conftest.$ac_ext
22987 cat >>conftest.$ac_ext <<_ACEOF
22988 /* end confdefs.h. */
22990 #ifdef HAVE_NETINET_IN_H
22991 #include <netinet/in.h>
22995 typedef struct in6_addr ac__type_new_;
22999 if ((ac__type_new_ *) 0)
23001 if (sizeof (ac__type_new_))
23007 rm -f conftest.$ac_objext
23008 if { (ac_try="$ac_compile"
23009 case "(($ac_try" in
23010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23011 *) ac_try_echo=$ac_try;;
23013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23014 (eval "$ac_compile") 2>conftest.er1
23016 grep -v '^ *+' conftest.er1 >conftest.err
23018 cat conftest.err >&5
23019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); } && {
23021 test -z "$ac_c_werror_flag" ||
23022 test ! -s conftest.err
23023 } && test -s conftest.$ac_objext; then
23024 ac_cv_type_struct_in6_addr=yes
23026 echo "$as_me: failed program was:" >&5
23027 sed 's/^/| /' conftest.$ac_ext >&5
23029 ac_cv_type_struct_in6_addr=no
23032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23034 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
23035 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
23036 if test $ac_cv_type_struct_in6_addr = yes; then
23038 cat >>confdefs.h <<\_ACEOF
23039 #define HAVE_STRUCT_IN6_ADDR 1
23045 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23046 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
23047 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
23048 echo $ECHO_N "(cached) $ECHO_C" >&6
23050 cat >conftest.$ac_ext <<_ACEOF
23053 cat confdefs.h >>conftest.$ac_ext
23054 cat >>conftest.$ac_ext <<_ACEOF
23055 /* end confdefs.h. */
23057 #ifdef HAVE_NETINET_IN_H
23058 #include <netinet/in.h>
23060 #ifdef HAVE_SYS_SOCKET_H
23061 #include <sys/socket.h>
23065 typedef struct sockaddr_storage ac__type_new_;
23069 if ((ac__type_new_ *) 0)
23071 if (sizeof (ac__type_new_))
23077 rm -f conftest.$ac_objext
23078 if { (ac_try="$ac_compile"
23079 case "(($ac_try" in
23080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23081 *) ac_try_echo=$ac_try;;
23083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23084 (eval "$ac_compile") 2>conftest.er1
23086 grep -v '^ *+' conftest.er1 >conftest.err
23088 cat conftest.err >&5
23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); } && {
23091 test -z "$ac_c_werror_flag" ||
23092 test ! -s conftest.err
23093 } && test -s conftest.$ac_objext; then
23094 ac_cv_type_struct_sockaddr_storage=yes
23096 echo "$as_me: failed program was:" >&5
23097 sed 's/^/| /' conftest.$ac_ext >&5
23099 ac_cv_type_struct_sockaddr_storage=no
23102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23104 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
23105 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
23106 if test $ac_cv_type_struct_sockaddr_storage = yes; then
23108 cat >>confdefs.h <<\_ACEOF
23109 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
23115 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23116 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
23117 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
23118 echo $ECHO_N "(cached) $ECHO_C" >&6
23120 cat >conftest.$ac_ext <<_ACEOF
23123 cat confdefs.h >>conftest.$ac_ext
23124 cat >>conftest.$ac_ext <<_ACEOF
23125 /* end confdefs.h. */
23127 #ifdef HAVE_NETINET_IN_H
23128 #include <netinet/in.h>
23132 typedef struct sockaddr_in6 ac__type_new_;
23136 if ((ac__type_new_ *) 0)
23138 if (sizeof (ac__type_new_))
23144 rm -f conftest.$ac_objext
23145 if { (ac_try="$ac_compile"
23146 case "(($ac_try" in
23147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23148 *) ac_try_echo=$ac_try;;
23150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23151 (eval "$ac_compile") 2>conftest.er1
23153 grep -v '^ *+' conftest.er1 >conftest.err
23155 cat conftest.err >&5
23156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157 (exit $ac_status); } && {
23158 test -z "$ac_c_werror_flag" ||
23159 test ! -s conftest.err
23160 } && test -s conftest.$ac_objext; then
23161 ac_cv_type_struct_sockaddr_in6=yes
23163 echo "$as_me: failed program was:" >&5
23164 sed 's/^/| /' conftest.$ac_ext >&5
23166 ac_cv_type_struct_sockaddr_in6=no
23169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23171 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
23172 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
23173 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
23175 cat >>confdefs.h <<\_ACEOF
23176 #define HAVE_STRUCT_SOCKADDR_IN6 1
23182 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
23183 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
23184 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
23185 echo $ECHO_N "(cached) $ECHO_C" >&6
23187 cat >conftest.$ac_ext <<_ACEOF
23190 cat confdefs.h >>conftest.$ac_ext
23191 cat >>conftest.$ac_ext <<_ACEOF
23192 /* end confdefs.h. */
23194 #ifdef HAVE_SYS_TYPES_H
23195 #include <sys/types.h>
23197 #ifdef HAVE_SYS_SOCKET_H
23198 #include <sys/socket.h>
23200 #ifdef HAVE_NETDB_H
23205 typedef struct addrinfo ac__type_new_;
23209 if ((ac__type_new_ *) 0)
23211 if (sizeof (ac__type_new_))
23217 rm -f conftest.$ac_objext
23218 if { (ac_try="$ac_compile"
23219 case "(($ac_try" in
23220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221 *) ac_try_echo=$ac_try;;
23223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23224 (eval "$ac_compile") 2>conftest.er1
23226 grep -v '^ *+' conftest.er1 >conftest.err
23228 cat conftest.err >&5
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); } && {
23231 test -z "$ac_c_werror_flag" ||
23232 test ! -s conftest.err
23233 } && test -s conftest.$ac_objext; then
23234 ac_cv_type_struct_addrinfo=yes
23236 echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23239 ac_cv_type_struct_addrinfo=no
23242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23244 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
23245 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
23246 if test $ac_cv_type_struct_addrinfo = yes; then
23248 cat >>confdefs.h <<\_ACEOF
23249 #define HAVE_STRUCT_ADDRINFO 1
23314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23315 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23317 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23318 echo $ECHO_N "(cached) $ECHO_C" >&6
23320 cat >conftest.$ac_ext <<_ACEOF
23323 cat confdefs.h >>conftest.$ac_ext
23324 cat >>conftest.$ac_ext <<_ACEOF
23325 /* end confdefs.h. */
23326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23328 #define $ac_func innocuous_$ac_func
23330 /* System header to define __stub macros and hopefully few prototypes,
23331 which can conflict with char $ac_func (); below.
23332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23333 <limits.h> exists even on freestanding compilers. */
23336 # include <limits.h>
23338 # include <assert.h>
23343 /* Override any GCC internal prototype to avoid an error.
23344 Use char because int might match the return type of a GCC
23345 builtin and then its argument prototype would still apply. */
23350 /* The GNU C library defines this for functions which it implements
23351 to always fail with ENOSYS. Some functions are actually named
23352 something starting with __ and the normal name is an alias. */
23353 #if defined __stub_$ac_func || defined __stub___$ac_func
23360 return $ac_func ();
23365 rm -f conftest.$ac_objext conftest$ac_exeext
23366 if { (ac_try="$ac_link"
23367 case "(($ac_try" in
23368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23369 *) ac_try_echo=$ac_try;;
23371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23372 (eval "$ac_link") 2>conftest.er1
23374 grep -v '^ *+' conftest.er1 >conftest.err
23376 cat conftest.err >&5
23377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378 (exit $ac_status); } && {
23379 test -z "$ac_c_werror_flag" ||
23380 test ! -s conftest.err
23381 } && test -s conftest$ac_exeext &&
23382 $as_test_x conftest$ac_exeext; then
23383 eval "$as_ac_var=yes"
23385 echo "$as_me: failed program was:" >&5
23386 sed 's/^/| /' conftest.$ac_ext >&5
23388 eval "$as_ac_var=no"
23391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23392 conftest$ac_exeext conftest.$ac_ext
23394 ac_res=`eval echo '${'$as_ac_var'}'`
23395 { echo "$as_me:$LINENO: result: $ac_res" >&5
23396 echo "${ECHO_T}$ac_res" >&6; }
23397 if test `eval echo '${'$as_ac_var'}'` = yes; then
23398 cat >>confdefs.h <<_ACEOF
23399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23415 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23416 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
23417 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
23418 echo $ECHO_N "(cached) $ECHO_C" >&6
23420 cat >conftest.$ac_ext <<_ACEOF
23423 cat confdefs.h >>conftest.$ac_ext
23424 cat >>conftest.$ac_ext <<_ACEOF
23425 /* end confdefs.h. */
23428 #include <string.h>
23429 #ifdef HAVE_UNISTD_H
23430 #include <unistd.h>
23432 #ifdef HAVE_CRYPT_H
23435 #ifdef HAVE_ERRNO_H
23438 #ifdef HAVE_RESOURCE_H
23439 #include <resource.h>
23441 #ifdef HAVE_GETOPT_H
23442 #include <getopt.h>
23444 #ifdef HAVE_MALLOC_H
23445 #include <malloc.h>
23450 #ifdef HAVE_UTMPX_H
23453 #ifdef HAVE_SYS_SELECT_H
23454 #include <sys/select.h>
23456 #ifdef HAVE_DLFCN_H
23459 #ifdef HAVE_REGEX_H
23462 #ifdef HAVE_SYSLOG_H
23463 #include <syslog.h>
23465 #ifdef HAVE_INTTYPES_H
23466 #include <inttypes.h>
23468 #ifdef HAVE_STDINT_H
23469 #include <stdint.h>
23471 #ifdef HAVE_ARPA_INET_H
23472 #include <arpa/inet.h>
23478 char *(*pfn) = (char *(*)) $ac_func
23483 rm -f conftest.$ac_objext
23484 if { (ac_try="$ac_compile"
23485 case "(($ac_try" in
23486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23487 *) ac_try_echo=$ac_try;;
23489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23490 (eval "$ac_compile") 2>conftest.er1
23492 grep -v '^ *+' conftest.er1 >conftest.err
23494 cat conftest.err >&5
23495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496 (exit $ac_status); } && {
23497 test -z "$ac_c_werror_flag" ||
23498 test ! -s conftest.err
23499 } && test -s conftest.$ac_objext; then
23500 eval "radius_cv_decl_needed_$ac_func=no"
23502 echo "$as_me: failed program was:" >&5
23503 sed 's/^/| /' conftest.$ac_ext >&5
23505 eval "radius_cv_decl_needed_$ac_func=yes"
23508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23511 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23512 { echo "$as_me:$LINENO: result: yes" >&5
23513 echo "${ECHO_T}yes" >&6; }
23514 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23515 cat >>confdefs.h <<_ACEOF
23516 #define $radius_tr_decl 1
23520 { echo "$as_me:$LINENO: result: no" >&5
23521 echo "${ECHO_T}no" >&6; }
23527 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23528 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
23529 if test "${ac_cv_type_signal+set}" = set; then
23530 echo $ECHO_N "(cached) $ECHO_C" >&6
23532 cat >conftest.$ac_ext <<_ACEOF
23535 cat confdefs.h >>conftest.$ac_ext
23536 cat >>conftest.$ac_ext <<_ACEOF
23537 /* end confdefs.h. */
23538 #include <sys/types.h>
23539 #include <signal.h>
23544 return *(signal (0, 0)) (0) == 1;
23549 rm -f conftest.$ac_objext
23550 if { (ac_try="$ac_compile"
23551 case "(($ac_try" in
23552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23553 *) ac_try_echo=$ac_try;;
23555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23556 (eval "$ac_compile") 2>conftest.er1
23558 grep -v '^ *+' conftest.er1 >conftest.err
23560 cat conftest.err >&5
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); } && {
23563 test -z "$ac_c_werror_flag" ||
23564 test ! -s conftest.err
23565 } && test -s conftest.$ac_objext; then
23566 ac_cv_type_signal=int
23568 echo "$as_me: failed program was:" >&5
23569 sed 's/^/| /' conftest.$ac_ext >&5
23571 ac_cv_type_signal=void
23574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23576 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23577 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
23579 cat >>confdefs.h <<_ACEOF
23580 #define RETSIGTYPE $ac_cv_type_signal
23585 if test "x$ac_cv_header_utmpx_h" = "xyes"
23588 { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23589 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
23592 cat >conftest.$ac_ext <<_ACEOF
23595 cat confdefs.h >>conftest.$ac_ext
23596 cat >>conftest.$ac_ext <<_ACEOF
23597 /* end confdefs.h. */
23601 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23607 int foo = offsetof(struct utmpx, ut_xtime)
23612 rm -f conftest.$ac_objext
23613 if { (ac_try="$ac_compile"
23614 case "(($ac_try" in
23615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23616 *) ac_try_echo=$ac_try;;
23618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23619 (eval "$ac_compile") 2>conftest.er1
23621 grep -v '^ *+' conftest.er1 >conftest.err
23623 cat conftest.err >&5
23624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625 (exit $ac_status); } && {
23626 test -z "$ac_c_werror_flag" ||
23627 test ! -s conftest.err
23628 } && test -s conftest.$ac_objext; then
23631 echo "$as_me: failed program was:" >&5
23632 sed 's/^/| /' conftest.$ac_ext >&5
23637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23639 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23640 if test "x$has_element" != "x"; then
23641 { echo "$as_me:$LINENO: result: yes" >&5
23642 echo "${ECHO_T}yes" >&6; }
23643 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23645 { echo "$as_me:$LINENO: result: no" >&5
23646 echo "${ECHO_T}no" >&6; }
23647 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23650 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23653 cat >>confdefs.h <<\_ACEOF
23654 #define ut_xtime ut_tv.tv_sec
23661 { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23662 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
23665 cat >conftest.$ac_ext <<_ACEOF
23668 cat confdefs.h >>conftest.$ac_ext
23669 cat >>conftest.$ac_ext <<_ACEOF
23670 /* end confdefs.h. */
23672 #include <netinet/in.h>
23674 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23680 int foo = offsetof(struct in_pktinfo, ipi_addr)
23685 rm -f conftest.$ac_objext
23686 if { (ac_try="$ac_compile"
23687 case "(($ac_try" in
23688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23689 *) ac_try_echo=$ac_try;;
23691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23692 (eval "$ac_compile") 2>conftest.er1
23694 grep -v '^ *+' conftest.er1 >conftest.err
23696 cat conftest.err >&5
23697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); } && {
23699 test -z "$ac_c_werror_flag" ||
23700 test ! -s conftest.err
23701 } && test -s conftest.$ac_objext; then
23704 echo "$as_me: failed program was:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23712 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23713 if test "x$has_element" != "x"; then
23714 { echo "$as_me:$LINENO: result: yes" >&5
23715 echo "${ECHO_T}yes" >&6; }
23716 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23718 { echo "$as_me:$LINENO: result: no" >&5
23719 echo "${ECHO_T}no" >&6; }
23720 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23723 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23726 cat >>confdefs.h <<\_ACEOF
23727 #define HAVE_IP_PKTINFO
23733 { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
23734 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
23737 cat >conftest.$ac_ext <<_ACEOF
23740 cat confdefs.h >>conftest.$ac_ext
23741 cat >>conftest.$ac_ext <<_ACEOF
23742 /* end confdefs.h. */
23744 #include <netinet/in.h>
23746 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23752 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
23757 rm -f conftest.$ac_objext
23758 if { (ac_try="$ac_compile"
23759 case "(($ac_try" in
23760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23761 *) ac_try_echo=$ac_try;;
23763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23764 (eval "$ac_compile") 2>conftest.er1
23766 grep -v '^ *+' conftest.er1 >conftest.err
23768 cat conftest.err >&5
23769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770 (exit $ac_status); } && {
23771 test -z "$ac_c_werror_flag" ||
23772 test ! -s conftest.err
23773 } && test -s conftest.$ac_objext; then
23776 echo "$as_me: failed program was:" >&5
23777 sed 's/^/| /' conftest.$ac_ext >&5
23782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23784 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
23785 if test "x$has_element" != "x"; then
23786 { echo "$as_me:$LINENO: result: yes" >&5
23787 echo "${ECHO_T}yes" >&6; }
23788 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
23790 { echo "$as_me:$LINENO: result: no" >&5
23791 echo "${ECHO_T}no" >&6; }
23792 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
23795 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
23798 cat >>confdefs.h <<\_ACEOF
23799 #define HAVE_IN6_PKTINFO
23805 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23806 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23807 if test "${ac_cv_c_const+set}" = set; then
23808 echo $ECHO_N "(cached) $ECHO_C" >&6
23810 cat >conftest.$ac_ext <<_ACEOF
23813 cat confdefs.h >>conftest.$ac_ext
23814 cat >>conftest.$ac_ext <<_ACEOF
23815 /* end confdefs.h. */
23820 /* FIXME: Include the comments suggested by Paul. */
23821 #ifndef __cplusplus
23822 /* Ultrix mips cc rejects this. */
23823 typedef int charset[2];
23825 /* SunOS 4.1.1 cc rejects this. */
23826 char const *const *pcpcc;
23828 /* NEC SVR4.0.2 mips cc rejects this. */
23829 struct point {int x, y;};
23830 static struct point const zero = {0,0};
23831 /* AIX XL C 1.02.0.0 rejects this.
23832 It does not let you subtract one const X* pointer from another in
23833 an arm of an if-expression whose if-part is not a constant
23835 const char *g = "string";
23836 pcpcc = &g + (g ? g-g : 0);
23837 /* HPUX 7.0 cc rejects these. */
23839 ppc = (char**) pcpcc;
23840 pcpcc = (char const *const *) ppc;
23841 { /* SCO 3.2v4 cc rejects this. */
23843 char const *s = 0 ? (char *) 0 : (char const *) 0;
23848 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23849 int x[] = {25, 17};
23850 const int *foo = &x[0];
23853 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23854 typedef const int *iptr;
23858 { /* AIX XL C 1.02.0.0 rejects this saying
23859 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23860 struct s { int j; const int *ap[3]; };
23861 struct s *b; b->j = 5;
23863 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23864 const int foo = 10;
23865 if (!foo) return 0;
23867 return !cs[0] && !zero.x;
23874 rm -f conftest.$ac_objext
23875 if { (ac_try="$ac_compile"
23876 case "(($ac_try" in
23877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23878 *) ac_try_echo=$ac_try;;
23880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23881 (eval "$ac_compile") 2>conftest.er1
23883 grep -v '^ *+' conftest.er1 >conftest.err
23885 cat conftest.err >&5
23886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887 (exit $ac_status); } && {
23888 test -z "$ac_c_werror_flag" ||
23889 test ! -s conftest.err
23890 } && test -s conftest.$ac_objext; then
23893 echo "$as_me: failed program was:" >&5
23894 sed 's/^/| /' conftest.$ac_ext >&5
23899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23901 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23902 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23903 if test $ac_cv_c_const = no; then
23905 cat >>confdefs.h <<\_ACEOF
23912 { echo "$as_me:$LINENO: checking type of OS" >&5
23913 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
23915 { echo "$as_me:$LINENO: result: $OS" >&5
23916 echo "${ECHO_T}$OS" >&6; }
23917 if test "$OS" = "OS/2"; then
23924 if test "x$GCC" = "xyes"; then
23925 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
23928 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
23929 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
23930 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
23931 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
23932 CFLAGS="$CFLAGS $devflags"
23934 { echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
23935 echo "${ECHO_T}yes. Using $devflags" >&6; }
23938 CFLAGS="$CFLAGS -DNDEBUG"
23940 { echo "$as_me:$LINENO: result: no." >&5
23941 echo "${ECHO_T}no." >&6; }
23945 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23946 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
23947 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23948 echo $ECHO_N "(cached) $ECHO_C" >&6
23950 ac_check_lib_save_LIBS=$LIBS
23951 LIBS="-lcrypt $LIBS"
23952 cat >conftest.$ac_ext <<_ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h. */
23959 /* Override any GCC internal prototype to avoid an error.
23960 Use char because int might match the return type of a GCC
23961 builtin and then its argument prototype would still apply. */
23974 rm -f conftest.$ac_objext conftest$ac_exeext
23975 if { (ac_try="$ac_link"
23976 case "(($ac_try" in
23977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23978 *) ac_try_echo=$ac_try;;
23980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23981 (eval "$ac_link") 2>conftest.er1
23983 grep -v '^ *+' conftest.er1 >conftest.err
23985 cat conftest.err >&5
23986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987 (exit $ac_status); } && {
23988 test -z "$ac_c_werror_flag" ||
23989 test ! -s conftest.err
23990 } && test -s conftest$ac_exeext &&
23991 $as_test_x conftest$ac_exeext; then
23992 ac_cv_lib_crypt_crypt=yes
23994 echo "$as_me: failed program was:" >&5
23995 sed 's/^/| /' conftest.$ac_ext >&5
23997 ac_cv_lib_crypt_crypt=no
24000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24001 conftest$ac_exeext conftest.$ac_ext
24002 LIBS=$ac_check_lib_save_LIBS
24004 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
24005 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
24006 if test $ac_cv_lib_crypt_crypt = yes; then
24011 if test "$CRYPTLIB" != ""; then
24013 cat >>confdefs.h <<\_ACEOF
24018 { echo "$as_me:$LINENO: checking for crypt" >&5
24019 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
24020 if test "${ac_cv_func_crypt+set}" = set; then
24021 echo $ECHO_N "(cached) $ECHO_C" >&6
24023 cat >conftest.$ac_ext <<_ACEOF
24026 cat confdefs.h >>conftest.$ac_ext
24027 cat >>conftest.$ac_ext <<_ACEOF
24028 /* end confdefs.h. */
24029 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
24030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24031 #define crypt innocuous_crypt
24033 /* System header to define __stub macros and hopefully few prototypes,
24034 which can conflict with char crypt (); below.
24035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24036 <limits.h> exists even on freestanding compilers. */
24039 # include <limits.h>
24041 # include <assert.h>
24046 /* Override any GCC internal prototype to avoid an error.
24047 Use char because int might match the return type of a GCC
24048 builtin and then its argument prototype would still apply. */
24053 /* The GNU C library defines this for functions which it implements
24054 to always fail with ENOSYS. Some functions are actually named
24055 something starting with __ and the normal name is an alias. */
24056 #if defined __stub_crypt || defined __stub___crypt
24068 rm -f conftest.$ac_objext conftest$ac_exeext
24069 if { (ac_try="$ac_link"
24070 case "(($ac_try" in
24071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24072 *) ac_try_echo=$ac_try;;
24074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24075 (eval "$ac_link") 2>conftest.er1
24077 grep -v '^ *+' conftest.er1 >conftest.err
24079 cat conftest.err >&5
24080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081 (exit $ac_status); } && {
24082 test -z "$ac_c_werror_flag" ||
24083 test ! -s conftest.err
24084 } && test -s conftest$ac_exeext &&
24085 $as_test_x conftest$ac_exeext; then
24086 ac_cv_func_crypt=yes
24088 echo "$as_me: failed program was:" >&5
24089 sed 's/^/| /' conftest.$ac_ext >&5
24091 ac_cv_func_crypt=no
24094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24095 conftest$ac_exeext conftest.$ac_ext
24097 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
24098 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
24099 if test $ac_cv_func_crypt = yes; then
24101 cat >>confdefs.h <<\_ACEOF
24109 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
24110 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
24111 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
24112 echo $ECHO_N "(cached) $ECHO_C" >&6
24114 ac_check_lib_save_LIBS=$LIBS
24115 LIBS="-lcipher $LIBS"
24116 cat >conftest.$ac_ext <<_ACEOF
24119 cat confdefs.h >>conftest.$ac_ext
24120 cat >>conftest.$ac_ext <<_ACEOF
24121 /* end confdefs.h. */
24123 /* Override any GCC internal prototype to avoid an error.
24124 Use char because int might match the return type of a GCC
24125 builtin and then its argument prototype would still apply. */
24138 rm -f conftest.$ac_objext conftest$ac_exeext
24139 if { (ac_try="$ac_link"
24140 case "(($ac_try" in
24141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24142 *) ac_try_echo=$ac_try;;
24144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24145 (eval "$ac_link") 2>conftest.er1
24147 grep -v '^ *+' conftest.er1 >conftest.err
24149 cat conftest.err >&5
24150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151 (exit $ac_status); } && {
24152 test -z "$ac_c_werror_flag" ||
24153 test ! -s conftest.err
24154 } && test -s conftest$ac_exeext &&
24155 $as_test_x conftest$ac_exeext; then
24156 ac_cv_lib_cipher_setkey=yes
24158 echo "$as_me: failed program was:" >&5
24159 sed 's/^/| /' conftest.$ac_ext >&5
24161 ac_cv_lib_cipher_setkey=no
24164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24165 conftest$ac_exeext conftest.$ac_ext
24166 LIBS=$ac_check_lib_save_LIBS
24168 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
24169 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
24170 if test $ac_cv_lib_cipher_setkey = yes; then
24171 CRYPTLIB="${CRYPTLIB} -lcipher"
24177 if test "x$WITH_SNMP" = "xyes"; then
24182 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
24183 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
24185 cat >conftest.$ac_ext <<_ACEOF
24188 cat confdefs.h >>conftest.$ac_ext
24189 cat >>conftest.$ac_ext <<_ACEOF
24190 /* end confdefs.h. */
24192 #ifdef HAVE_SYS_TYPES_H
24193 #include <sys/types.h>
24195 #ifdef HAVE_STDINT_H
24196 #include <stdint.h>
24198 #ifdef HAVE_STDIO_H
24201 #ifdef HAVE_NETDB_H
24204 #ifdef HAVE_UNISTD_H
24205 #include <unistd.h>
24207 #include <ucd-snmp/ucd-snmp-config.h>
24208 #include <ucd-snmp/asn1.h>
24209 #include <ucd-snmp/snmp.h>
24210 #include <ucd-snmp/snmp_impl.h>
24219 rm -f conftest.$ac_objext
24220 if { (ac_try="$ac_compile"
24221 case "(($ac_try" in
24222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24223 *) ac_try_echo=$ac_try;;
24225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24226 (eval "$ac_compile") 2>conftest.er1
24228 grep -v '^ *+' conftest.er1 >conftest.err
24230 cat conftest.err >&5
24231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232 (exit $ac_status); } && {
24233 test -z "$ac_c_werror_flag" ||
24234 test ! -s conftest.err
24235 } && test -s conftest.$ac_objext; then
24236 SNMP_INCLUDE="";ucdsnmp=yes
24238 echo "$as_me: failed program was:" >&5
24239 sed 's/^/| /' conftest.$ac_ext >&5
24244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24246 if test "x$ucdsnmp" = "x"; then
24247 old_CFLAGS="$CFLAGS"
24248 for try in /usr/include /usr/local/include $snmp_include_dir; do
24249 CFLAGS="$old_CFLAGS -I$try"
24250 cat >conftest.$ac_ext <<_ACEOF
24253 cat confdefs.h >>conftest.$ac_ext
24254 cat >>conftest.$ac_ext <<_ACEOF
24255 /* end confdefs.h. */
24257 #ifdef HAVE_SYS_TYPES_H
24258 #include <sys/types.h>
24260 #ifdef HAVE_STDINT_H
24261 #include <stdint.h>
24263 #ifdef HAVE_STDIO_H
24266 #ifdef HAVE_NETDB_H
24269 #ifdef HAVE_UNISTD_H
24270 #include <unistd.h>
24272 #include <ucd-snmp/ucd-snmp-config.h>
24273 #include <ucd-snmp/asn1.h>
24274 #include <ucd-snmp/snmp.h>
24275 #include <ucd-snmp/snmp_impl.h>
24284 rm -f conftest.$ac_objext
24285 if { (ac_try="$ac_compile"
24286 case "(($ac_try" in
24287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24288 *) ac_try_echo=$ac_try;;
24290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24291 (eval "$ac_compile") 2>conftest.er1
24293 grep -v '^ *+' conftest.er1 >conftest.err
24295 cat conftest.err >&5
24296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297 (exit $ac_status); } && {
24298 test -z "$ac_c_werror_flag" ||
24299 test ! -s conftest.err
24300 } && test -s conftest.$ac_objext; then
24301 SNMP_INCLUDE="-I$try";ucdsnmp=yes
24303 echo "$as_me: failed program was:" >&5
24304 sed 's/^/| /' conftest.$ac_ext >&5
24309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24310 if test "x$ucdsnmp" != "x"; then
24314 CFLAGS="$old_CFLAGS"
24317 if test "x$ucdsnmp" = "x"; then
24318 old_CFLAGS="$CFLAGS"
24319 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24320 CFLAGS="$old_CFLAGS -I$try"
24321 cat >conftest.$ac_ext <<_ACEOF
24324 cat confdefs.h >>conftest.$ac_ext
24325 cat >>conftest.$ac_ext <<_ACEOF
24326 /* end confdefs.h. */
24328 #ifdef HAVE_SYS_TYPES_H
24329 #include <sys/types.h>
24331 #ifdef HAVE_STDINT_H
24332 #include <stdint.h>
24334 #ifdef HAVE_STDIO_H
24337 #ifdef HAVE_NETDB_H
24340 #ifdef HAVE_UNISTD_H
24341 #include <unistd.h>
24345 #include <snmp_impl.h>
24354 rm -f conftest.$ac_objext
24355 if { (ac_try="$ac_compile"
24356 case "(($ac_try" in
24357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24358 *) ac_try_echo=$ac_try;;
24360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24361 (eval "$ac_compile") 2>conftest.er1
24363 grep -v '^ *+' conftest.er1 >conftest.err
24365 cat conftest.err >&5
24366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367 (exit $ac_status); } && {
24368 test -z "$ac_c_werror_flag" ||
24369 test ! -s conftest.err
24370 } && test -s conftest.$ac_objext; then
24371 SNMP_INCLUDE="";ucdsnmp=no
24373 echo "$as_me: failed program was:" >&5
24374 sed 's/^/| /' conftest.$ac_ext >&5
24379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24380 if test "x$ucdsnmp" != "x"; then
24384 CFLAGS="$old_CFLAGS"
24387 if test "x$ucdsnmp" = "x"; then
24388 old_CFLAGS="$CFLAGS"
24389 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24390 CFLAGS="$old_CFLAGS -I$try"
24391 cat >conftest.$ac_ext <<_ACEOF
24394 cat confdefs.h >>conftest.$ac_ext
24395 cat >>conftest.$ac_ext <<_ACEOF
24396 /* end confdefs.h. */
24398 #ifdef HAVE_SYS_TYPES_H
24399 #include <sys/types.h>
24401 #ifdef HAVE_STDINT_H
24402 #include <stdint.h>
24404 #ifdef HAVE_STDIO_H
24407 #ifdef HAVE_NETDB_H
24410 #ifdef HAVE_UNISTD_H
24411 #include <unistd.h>
24415 #include <snmp_impl.h>
24424 rm -f conftest.$ac_objext
24425 if { (ac_try="$ac_compile"
24426 case "(($ac_try" in
24427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24428 *) ac_try_echo=$ac_try;;
24430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24431 (eval "$ac_compile") 2>conftest.er1
24433 grep -v '^ *+' conftest.er1 >conftest.err
24435 cat conftest.err >&5
24436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); } && {
24438 test -z "$ac_c_werror_flag" ||
24439 test ! -s conftest.err
24440 } && test -s conftest.$ac_objext; then
24441 SNMP_INCLUDE="-I$try";ucdsnmp=no
24443 echo "$as_me: failed program was:" >&5
24444 sed 's/^/| /' conftest.$ac_ext >&5
24449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24450 if test "x$ucdsnmp" != "x"; then
24454 CFLAGS="$old_CFLAGS"
24457 if test "x$ucdsnmp" = "x"; then
24458 { echo "$as_me:$LINENO: result: no" >&5
24459 echo "${ECHO_T}no" >&6; }
24461 if test "x$ucdsnmp" = "xyes"; then
24462 { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
24463 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
24465 cat >>confdefs.h <<\_ACEOF
24466 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
24470 { echo "$as_me:$LINENO: result: yes" >&5
24471 echo "${ECHO_T}yes" >&6; }
24473 cat >>confdefs.h <<\_ACEOF
24474 #define HAVE_ASN1_SNMP_SNMPIMPL_H
24478 { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
24479 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
24482 LIBS="$old_LIBS -lsnmp"
24483 cat >conftest.$ac_ext <<_ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h. */
24489 extern char snmp_build_var_op();
24493 snmp_build_var_op()
24498 rm -f conftest.$ac_objext conftest$ac_exeext
24499 if { (ac_try="$ac_link"
24500 case "(($ac_try" in
24501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24502 *) ac_try_echo=$ac_try;;
24504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24505 (eval "$ac_link") 2>conftest.er1
24507 grep -v '^ *+' conftest.er1 >conftest.err
24509 cat conftest.err >&5
24510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511 (exit $ac_status); } && {
24512 test -z "$ac_c_werror_flag" ||
24513 test ! -s conftest.err
24514 } && test -s conftest$ac_exeext &&
24515 $as_test_x conftest$ac_exeext; then
24518 echo "$as_me: failed program was:" >&5
24519 sed 's/^/| /' conftest.$ac_ext >&5
24524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24525 conftest$ac_exeext conftest.$ac_ext
24527 if test "x$SNMP_LIBS" = "x"; then
24528 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
24529 LIBS="$old_LIBS -L$try -lsnmp"
24530 cat >conftest.$ac_ext <<_ACEOF
24533 cat confdefs.h >>conftest.$ac_ext
24534 cat >>conftest.$ac_ext <<_ACEOF
24535 /* end confdefs.h. */
24536 extern char snmp_build_var_op();
24540 snmp_build_var_op()
24545 rm -f conftest.$ac_objext conftest$ac_exeext
24546 if { (ac_try="$ac_link"
24547 case "(($ac_try" in
24548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24549 *) ac_try_echo=$ac_try;;
24551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24552 (eval "$ac_link") 2>conftest.er1
24554 grep -v '^ *+' conftest.er1 >conftest.err
24556 cat conftest.err >&5
24557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); } && {
24559 test -z "$ac_c_werror_flag" ||
24560 test ! -s conftest.err
24561 } && test -s conftest$ac_exeext &&
24562 $as_test_x conftest$ac_exeext; then
24563 SNMP_LIBS="-L$try -lsnmp"
24565 echo "$as_me: failed program was:" >&5
24566 sed 's/^/| /' conftest.$ac_ext >&5
24571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24572 conftest$ac_exeext conftest.$ac_ext
24573 if test "x$SNMP_LIBS" != "x"; then
24576 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24577 cat >conftest.$ac_ext <<_ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h. */
24583 extern char snmp_build_var_op();
24587 snmp_build_var_op()
24592 rm -f conftest.$ac_objext conftest$ac_exeext
24593 if { (ac_try="$ac_link"
24594 case "(($ac_try" in
24595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596 *) ac_try_echo=$ac_try;;
24598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24599 (eval "$ac_link") 2>conftest.er1
24601 grep -v '^ *+' conftest.er1 >conftest.err
24603 cat conftest.err >&5
24604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605 (exit $ac_status); } && {
24606 test -z "$ac_c_werror_flag" ||
24607 test ! -s conftest.err
24608 } && test -s conftest$ac_exeext &&
24609 $as_test_x conftest$ac_exeext; then
24610 SNMP_LIBS="-L$try -lsnmp -lcrypto"
24612 echo "$as_me: failed program was:" >&5
24613 sed 's/^/| /' conftest.$ac_ext >&5
24618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24619 conftest$ac_exeext conftest.$ac_ext
24620 if test "x$SNMP_LIBS" != "x"; then
24623 LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
24624 cat >conftest.$ac_ext <<_ACEOF
24627 cat confdefs.h >>conftest.$ac_ext
24628 cat >>conftest.$ac_ext <<_ACEOF
24629 /* end confdefs.h. */
24630 extern char snmp_build_var_op();
24634 snmp_build_var_op()
24639 rm -f conftest.$ac_objext conftest$ac_exeext
24640 if { (ac_try="$ac_link"
24641 case "(($ac_try" in
24642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24643 *) ac_try_echo=$ac_try;;
24645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24646 (eval "$ac_link") 2>conftest.er1
24648 grep -v '^ *+' conftest.er1 >conftest.err
24650 cat conftest.err >&5
24651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652 (exit $ac_status); } && {
24653 test -z "$ac_c_werror_flag" ||
24654 test ! -s conftest.err
24655 } && test -s conftest$ac_exeext &&
24656 $as_test_x conftest$ac_exeext; then
24657 SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
24659 echo "$as_me: failed program was:" >&5
24660 sed 's/^/| /' conftest.$ac_ext >&5
24665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24666 conftest$ac_exeext conftest.$ac_ext
24667 if test "x$SNMP_LIBS" != "x"; then
24674 CFLAGS="$old_CFLAGS"
24675 if test "x$SNMP_LIBS" = "x"; then
24676 { echo "$as_me:$LINENO: result: no" >&5
24677 echo "${ECHO_T}no" >&6; }
24680 { echo "$as_me:$LINENO: result: yes" >&5
24681 echo "${ECHO_T}yes" >&6; }
24683 cat >>confdefs.h <<\_ACEOF
24688 cat >>confdefs.h <<\_ACEOF
24689 #define HAVE_LIBSNMP
24698 cat >>confdefs.h <<\_ACEOF
24703 cat >>confdefs.h <<\_ACEOF
24704 #define SYSVSTYLE 2
24708 cat >>confdefs.h <<\_ACEOF
24712 gethostbyaddrrstyle=""
24713 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24714 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
24717 { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
24718 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
24719 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
24720 echo $ECHO_N "(cached) $ECHO_C" >&6
24722 cat >conftest.$ac_ext <<_ACEOF
24725 cat confdefs.h >>conftest.$ac_ext
24726 cat >>conftest.$ac_ext <<_ACEOF
24727 /* end confdefs.h. */
24729 #ifdef HAVE_NETDB_H
24737 #ifndef gethostbyaddr_r
24738 (void) gethostbyaddr_r;
24745 rm -f conftest.$ac_objext
24746 if { (ac_try="$ac_compile"
24747 case "(($ac_try" in
24748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24749 *) ac_try_echo=$ac_try;;
24751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24752 (eval "$ac_compile") 2>conftest.er1
24754 grep -v '^ *+' conftest.er1 >conftest.err
24756 cat conftest.err >&5
24757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758 (exit $ac_status); } && {
24759 test -z "$ac_c_werror_flag" ||
24760 test ! -s conftest.err
24761 } && test -s conftest.$ac_objext; then
24762 ac_cv_have_decl_gethostbyaddr_r=yes
24764 echo "$as_me: failed program was:" >&5
24765 sed 's/^/| /' conftest.$ac_ext >&5
24767 ac_cv_have_decl_gethostbyaddr_r=no
24770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24772 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
24773 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
24774 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
24776 cat >>confdefs.h <<_ACEOF
24777 #define HAVE_DECL_GETHOSTBYADDR_R 1
24782 cat >>confdefs.h <<_ACEOF
24783 #define HAVE_DECL_GETHOSTBYADDR_R 0
24788 cat >>confdefs.h <<\_ACEOF
24789 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24792 gethostbyaddrrstyle=BSD
24793 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24794 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24801 if test "x$gethostbyaddrrstyle" = "x"; then
24802 cat >conftest.$ac_ext <<_ACEOF
24805 cat confdefs.h >>conftest.$ac_ext
24806 cat >>conftest.$ac_ext <<_ACEOF
24807 /* end confdefs.h. */
24815 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24820 rm -f conftest.$ac_objext conftest$ac_exeext
24821 if { (ac_try="$ac_link"
24822 case "(($ac_try" in
24823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24824 *) ac_try_echo=$ac_try;;
24826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24827 (eval "$ac_link") 2>conftest.er1
24829 grep -v '^ *+' conftest.er1 >conftest.err
24831 cat conftest.err >&5
24832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24833 (exit $ac_status); } && {
24834 test -z "$ac_c_werror_flag" ||
24835 test ! -s conftest.err
24836 } && test -s conftest$ac_exeext &&
24837 $as_test_x conftest$ac_exeext; then
24840 cat >>confdefs.h <<\_ACEOF
24841 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24844 gethostbyaddrrstyle=GNU
24847 echo "$as_me: failed program was:" >&5
24848 sed 's/^/| /' conftest.$ac_ext >&5
24853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24854 conftest$ac_exeext conftest.$ac_ext
24856 if test "x$gethostbyaddrrstyle" = "x"; then
24857 cat >conftest.$ac_ext <<_ACEOF
24860 cat confdefs.h >>conftest.$ac_ext
24861 cat >>conftest.$ac_ext <<_ACEOF
24862 /* end confdefs.h. */
24870 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
24875 rm -f conftest.$ac_objext conftest$ac_exeext
24876 if { (ac_try="$ac_link"
24877 case "(($ac_try" in
24878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24879 *) ac_try_echo=$ac_try;;
24881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24882 (eval "$ac_link") 2>conftest.er1
24884 grep -v '^ *+' conftest.er1 >conftest.err
24886 cat conftest.err >&5
24887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888 (exit $ac_status); } && {
24889 test -z "$ac_c_werror_flag" ||
24890 test ! -s conftest.err
24891 } && test -s conftest$ac_exeext &&
24892 $as_test_x conftest$ac_exeext; then
24895 cat >>confdefs.h <<\_ACEOF
24896 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
24899 gethostbyaddrrstyle=SYSV
24902 echo "$as_me: failed program was:" >&5
24903 sed 's/^/| /' conftest.$ac_ext >&5
24908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24909 conftest$ac_exeext conftest.$ac_ext
24911 if test "x$gethostbyaddrrstyle" = "x"; then
24912 cat >conftest.$ac_ext <<_ACEOF
24915 cat confdefs.h >>conftest.$ac_ext
24916 cat >>conftest.$ac_ext <<_ACEOF
24917 /* end confdefs.h. */
24925 gethostbyaddr(NULL, 0, 0)
24930 rm -f conftest.$ac_objext conftest$ac_exeext
24931 if { (ac_try="$ac_link"
24932 case "(($ac_try" in
24933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24934 *) ac_try_echo=$ac_try;;
24936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24937 (eval "$ac_link") 2>conftest.er1
24939 grep -v '^ *+' conftest.er1 >conftest.err
24941 cat conftest.err >&5
24942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24943 (exit $ac_status); } && {
24944 test -z "$ac_c_werror_flag" ||
24945 test ! -s conftest.err
24946 } && test -s conftest$ac_exeext &&
24947 $as_test_x conftest$ac_exeext; then
24950 cat >>confdefs.h <<\_ACEOF
24951 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24954 gethostbyaddrrstyle=BSD
24957 echo "$as_me: failed program was:" >&5
24958 sed 's/^/| /' conftest.$ac_ext >&5
24963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24964 conftest$ac_exeext conftest.$ac_ext
24967 if test "x$gethostbyaddrrstyle" = "x"; then
24968 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24969 echo "${ECHO_T}none! It must not exist, here." >&6; }
24971 { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
24972 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
24975 if test "x$gethostbyaddrrstyle" = "xBSD"; then
24976 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
24977 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
24980 gethostbynamerstyle=""
24981 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
24982 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
24983 cat >conftest.$ac_ext <<_ACEOF
24986 cat confdefs.h >>conftest.$ac_ext
24987 cat >>conftest.$ac_ext <<_ACEOF
24988 /* end confdefs.h. */
24996 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
25001 rm -f conftest.$ac_objext conftest$ac_exeext
25002 if { (ac_try="$ac_link"
25003 case "(($ac_try" in
25004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25005 *) ac_try_echo=$ac_try;;
25007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25008 (eval "$ac_link") 2>conftest.er1
25010 grep -v '^ *+' conftest.er1 >conftest.err
25012 cat conftest.err >&5
25013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014 (exit $ac_status); } && {
25015 test -z "$ac_c_werror_flag" ||
25016 test ! -s conftest.err
25017 } && test -s conftest$ac_exeext &&
25018 $as_test_x conftest$ac_exeext; then
25021 cat >>confdefs.h <<\_ACEOF
25022 #define GETHOSTBYNAMERSTYLE GNUSTYLE
25025 gethostbynamerstyle=GNU
25028 echo "$as_me: failed program was:" >&5
25029 sed 's/^/| /' conftest.$ac_ext >&5
25034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25035 conftest$ac_exeext conftest.$ac_ext
25036 if test "x$gethostbynamerstyle" = "x"; then
25037 cat >conftest.$ac_ext <<_ACEOF
25040 cat confdefs.h >>conftest.$ac_ext
25041 cat >>conftest.$ac_ext <<_ACEOF
25042 /* end confdefs.h. */
25050 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25055 rm -f conftest.$ac_objext conftest$ac_exeext
25056 if { (ac_try="$ac_link"
25057 case "(($ac_try" in
25058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25059 *) ac_try_echo=$ac_try;;
25061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25062 (eval "$ac_link") 2>conftest.er1
25064 grep -v '^ *+' conftest.er1 >conftest.err
25066 cat conftest.err >&5
25067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068 (exit $ac_status); } && {
25069 test -z "$ac_c_werror_flag" ||
25070 test ! -s conftest.err
25071 } && test -s conftest$ac_exeext &&
25072 $as_test_x conftest$ac_exeext; then
25075 cat >>confdefs.h <<\_ACEOF
25076 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25079 gethostbynamerstyle=SYSV
25082 echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25089 conftest$ac_exeext conftest.$ac_ext
25091 if test "x$gethostbynamerstyle" = "x"; then
25092 cat >conftest.$ac_ext <<_ACEOF
25095 cat confdefs.h >>conftest.$ac_ext
25096 cat >>conftest.$ac_ext <<_ACEOF
25097 /* end confdefs.h. */
25105 gethostbyname(NULL)
25110 rm -f conftest.$ac_objext conftest$ac_exeext
25111 if { (ac_try="$ac_link"
25112 case "(($ac_try" in
25113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25114 *) ac_try_echo=$ac_try;;
25116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25117 (eval "$ac_link") 2>conftest.er1
25119 grep -v '^ *+' conftest.er1 >conftest.err
25121 cat conftest.err >&5
25122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25123 (exit $ac_status); } && {
25124 test -z "$ac_c_werror_flag" ||
25125 test ! -s conftest.err
25126 } && test -s conftest$ac_exeext &&
25127 $as_test_x conftest$ac_exeext; then
25130 cat >>confdefs.h <<\_ACEOF
25131 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25134 gethostbynamerstyle=BSD
25137 echo "$as_me: failed program was:" >&5
25138 sed 's/^/| /' conftest.$ac_ext >&5
25143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25144 conftest$ac_exeext conftest.$ac_ext
25147 if test "x$gethostbynamerstyle" = "x"; then
25148 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25149 echo "${ECHO_T}none! It must not exist, here." >&6; }
25151 { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25152 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25155 if test "x$gethostbynamerstyle" = "xBSD"; then
25156 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25157 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25161 cat >>confdefs.h <<\_ACEOF
25162 #define POSIXSTYLE 1
25166 cat >>confdefs.h <<\_ACEOF
25167 #define SOLARISSTYLE 2
25171 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25172 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
25173 cat >conftest.$ac_ext <<_ACEOF
25176 cat confdefs.h >>conftest.$ac_ext
25177 cat >>conftest.$ac_ext <<_ACEOF
25178 /* end confdefs.h. */
25185 ctime_r(NULL, NULL, 0)
25190 rm -f conftest.$ac_objext conftest$ac_exeext
25191 if { (ac_try="$ac_link"
25192 case "(($ac_try" in
25193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25194 *) ac_try_echo=$ac_try;;
25196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25197 (eval "$ac_link") 2>conftest.er1
25199 grep -v '^ *+' conftest.er1 >conftest.err
25201 cat conftest.err >&5
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); } && {
25204 test -z "$ac_c_werror_flag" ||
25205 test ! -s conftest.err
25206 } && test -s conftest$ac_exeext &&
25207 $as_test_x conftest$ac_exeext; then
25210 cat >>confdefs.h <<\_ACEOF
25211 #define CTIMERSTYLE SOLARISSTYLE
25214 ctimerstyle="SOLARIS"
25217 echo "$as_me: failed program was:" >&5
25218 sed 's/^/| /' conftest.$ac_ext >&5
25223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25224 conftest$ac_exeext conftest.$ac_ext
25225 if test "x$ctimerstyle" = "x"; then
25226 cat >conftest.$ac_ext <<_ACEOF
25229 cat confdefs.h >>conftest.$ac_ext
25230 cat >>conftest.$ac_ext <<_ACEOF
25231 /* end confdefs.h. */
25238 ctime_r(NULL, NULL)
25243 rm -f conftest.$ac_objext conftest$ac_exeext
25244 if { (ac_try="$ac_link"
25245 case "(($ac_try" in
25246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25247 *) ac_try_echo=$ac_try;;
25249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25250 (eval "$ac_link") 2>conftest.er1
25252 grep -v '^ *+' conftest.er1 >conftest.err
25254 cat conftest.err >&5
25255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256 (exit $ac_status); } && {
25257 test -z "$ac_c_werror_flag" ||
25258 test ! -s conftest.err
25259 } && test -s conftest$ac_exeext &&
25260 $as_test_x conftest$ac_exeext; then
25263 cat >>confdefs.h <<\_ACEOF
25264 #define CTIMERSTYLE POSIXSTYLE
25267 ctimerstyle="POSIX"
25270 echo "$as_me: failed program was:" >&5
25271 sed 's/^/| /' conftest.$ac_ext >&5
25276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25277 conftest$ac_exeext conftest.$ac_ext
25280 if test "x$ctimerstyle" = "x"; then
25281 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25282 echo "${ECHO_T}none! It must not exist, here." >&6; }
25284 { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25285 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
25293 export top_builddir
25294 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25295 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
25301 mysubdirs="$LIBLTDLPATH"
25302 if test "x$EXPERIMENTAL" = "xyes"; then
25303 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
25304 mysubdirs=`echo $mysubdirs $bar`
25306 for bar in `cat "${srcdir}"/src/modules/stable`; do
25307 if test -f "${srcdir}"/src/modules/$bar/configure; then
25308 mysubdirs="$mysubdirs src/modules/$bar"
25313 if test "x$EXPERIMENTAL" = "xyes"; then
25314 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
25315 MODULES="$MODULES $foo"
25318 for foo in `cat "${srcdir}"/src/modules/stable`; do
25319 MODULES="$MODULES $foo"
25323 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
25328 ac_config_commands="$ac_config_commands stamp-h"
25330 ac_config_commands="$ac_config_commands build-radpaths-h"
25332 ac_config_commands="$ac_config_commands main-chmod"
25334 ac_config_commands="$ac_config_commands scripts-chmod"
25340 USE_SHARED_LIBS=$enable_shared
25342 USE_STATIC_LIBS=$enable_static
25350 unset ac_cv_env_LIBS_set
25351 unset ac_cv_env_LIBS_value
25353 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"
25355 cat >confcache <<\_ACEOF
25356 # This file is a shell script that caches the results of configure
25357 # tests run on this system so they can be shared between configure
25358 # scripts and configure runs, see configure's option --config-cache.
25359 # It is not useful on other systems. If it contains results you don't
25360 # want to keep, you may remove or edit it.
25362 # config.status only pays attention to the cache file if you give it
25363 # the --recheck option to rerun configure.
25365 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25366 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25367 # following values.
25371 # The following way of writing the cache mishandles newlines in values,
25372 # but we know of no workaround that is simple, portable, and efficient.
25373 # So, we kill variables containing newlines.
25374 # Ultrix sh set writes to stderr and can't be redirected directly,
25375 # and sets the high bit in the cache file unless we assign to the vars.
25377 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25378 eval ac_val=\$$ac_var
25382 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25383 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25386 _ | IFS | as_nl) ;; #(
25387 *) $as_unset $ac_var ;;
25393 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25394 *${as_nl}ac_space=\ *)
25395 # `set' does not quote correctly, so add quotes (double-quote
25396 # substitution turns \\\\ into \\, and sed turns \\ into \).
25399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25402 # `set' quotes correctly as required by POSIX, so do not add quotes.
25403 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25412 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25414 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25416 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25417 if test -w "$cache_file"; then
25418 test "x$cache_file" != "x/dev/null" &&
25419 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25420 echo "$as_me: updating cache $cache_file" >&6;}
25421 cat confcache >$cache_file
25423 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25424 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25429 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25430 # Let make expand exec_prefix.
25431 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25433 DEFS=-DHAVE_CONFIG_H
25437 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25438 # 1. Remove the extension, and $U if already installed.
25439 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25440 ac_i=`echo "$ac_i" | sed "$ac_script"`
25441 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25442 # will be set to the directory where LIBOBJS objects are built.
25443 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25444 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25446 LIBOBJS=$ac_libobjs
25448 LTLIBOBJS=$ac_ltlibobjs
25452 : ${CONFIG_STATUS=./config.status}
25453 ac_clean_files_save=$ac_clean_files
25454 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25455 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25456 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25457 cat >$CONFIG_STATUS <<_ACEOF
25459 # Generated by $as_me.
25460 # Run this file to recreate the current configuration.
25461 # Compiler output produced by configure, useful for debugging
25462 # configure, is in config.log if it exists.
25465 ac_cs_recheck=false
25467 SHELL=\${CONFIG_SHELL-$SHELL}
25470 cat >>$CONFIG_STATUS <<\_ACEOF
25471 ## --------------------- ##
25472 ## M4sh Initialization. ##
25473 ## --------------------- ##
25475 # Be more Bourne compatible
25476 DUALCASE=1; export DUALCASE # for MKS sh
25477 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25480 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25481 # is contrary to our usage. Disable this feature.
25482 alias -g '${1+"$@"}'='"$@"'
25483 setopt NO_GLOB_SUBST
25485 case `(set -o) 2>/dev/null` in
25486 *posix*) set -o posix ;;
25495 # Avoid depending upon Character Ranges.
25496 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25497 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25498 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25499 as_cr_digits='0123456789'
25500 as_cr_alnum=$as_cr_Letters$as_cr_digits
25502 # The user is always right.
25503 if test "${PATH_SEPARATOR+set}" != set; then
25504 echo "#! /bin/sh" >conf$$.sh
25505 echo "exit 0" >>conf$$.sh
25507 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25515 # Support unset when possible.
25516 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25524 # We need space, tab and new line, in precisely that order. Quoting is
25525 # there to prevent editors from complaining about space-tab.
25526 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25527 # splitting by setting IFS to empty value.)
25532 # Find who we are. Look in the path if we contain no directory separator.
25534 *[\\/]* ) as_myself=$0 ;;
25535 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25536 for as_dir in $PATH
25539 test -z "$as_dir" && as_dir=.
25540 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25546 # We did not find ourselves, most probably we were run as `sh COMMAND'
25547 # in which case we are not to be found in the path.
25548 if test "x$as_myself" = x; then
25551 if test ! -f "$as_myself"; then
25552 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25553 { (exit 1); exit 1; }
25556 # Work around bugs in pre-3.0 UWIN ksh.
25557 for as_var in ENV MAIL MAILPATH
25558 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25566 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25567 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25568 LC_TELEPHONE LC_TIME
25570 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25571 eval $as_var=C; export $as_var
25573 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25577 # Required to use basename.
25578 if expr a : '\(a\)' >/dev/null 2>&1 &&
25579 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25585 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25586 as_basename=basename
25592 # Name of the executable.
25593 as_me=`$as_basename -- "$0" ||
25594 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25595 X"$0" : 'X\(//\)$' \| \
25596 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25598 sed '/^.*\/\([^/][^/]*\)\/*$/{
25617 as_lineno_1=$LINENO
25618 as_lineno_2=$LINENO
25619 test "x$as_lineno_1" != "x$as_lineno_2" &&
25620 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25622 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25623 # uniformly replaced by the line number. The first 'sed' inserts a
25624 # line-number line after each line using $LINENO; the second 'sed'
25625 # does the real work. The second script uses 'N' to pair each
25626 # line-number line with the line containing $LINENO, and appends
25627 # trailing '-' during substitution so that $LINENO is not a special
25628 # case at line end.
25629 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25630 # scripts with optimization help from Paolo Bonzini. Blame Lee
25631 # E. McMahon (1931-1989) for sed's syntax. :-)
25643 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25646 ' >$as_me.lineno &&
25647 chmod +x "$as_me.lineno" ||
25648 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25649 { (exit 1); exit 1; }; }
25651 # Don't try to exec as it changes $[0], causing all sort of problems
25652 # (the dirname of $[0] is not the place where we might find the
25653 # original and so on. Autoconf is especially sensitive to this).
25654 . "./$as_me.lineno"
25655 # Exit status is that of the last command.
25660 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25666 ECHO_C= ECHO_N= ECHO_T=
25667 case `echo -n x` in
25669 case `echo 'x\c'` in
25670 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25677 if expr a : '\(a\)' >/dev/null 2>&1 &&
25678 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25684 rm -f conf$$ conf$$.exe conf$$.file
25685 if test -d conf$$.dir; then
25686 rm -f conf$$.dir/conf$$.file
25692 if ln -s conf$$.file conf$$ 2>/dev/null; then
25694 # ... but there are two gotchas:
25695 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25696 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25697 # In both cases, we have to default to `cp -p'.
25698 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25700 elif ln conf$$.file conf$$ 2>/dev/null; then
25705 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25706 rmdir conf$$.dir 2>/dev/null
25708 if mkdir -p . 2>/dev/null; then
25711 test -d ./-p && rmdir ./-p
25715 if test -x / >/dev/null 2>&1; then
25716 as_test_x='test -x'
25718 if ls -dL / >/dev/null 2>&1; then
25725 if test -d "$1"; then
25731 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25732 ???[sx]*):;;*)false;;esac;fi
25736 as_executable_p=$as_test_x
25738 # Sed expression to map a string onto a valid CPP name.
25739 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25741 # Sed expression to map a string onto a valid variable name.
25742 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25747 # Save the log message, to keep $[0] and so on meaningful, and to
25748 # report actual input values of CONFIG_FILES etc. instead of their
25749 # values after options handling.
25751 This file was extended by $as_me, which was
25752 generated by GNU Autoconf 2.61. Invocation command line was
25754 CONFIG_FILES = $CONFIG_FILES
25755 CONFIG_HEADERS = $CONFIG_HEADERS
25756 CONFIG_LINKS = $CONFIG_LINKS
25757 CONFIG_COMMANDS = $CONFIG_COMMANDS
25760 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25765 cat >>$CONFIG_STATUS <<_ACEOF
25766 # Files that config.status was made for.
25767 config_files="$ac_config_files"
25768 config_headers="$ac_config_headers"
25769 config_commands="$ac_config_commands"
25773 cat >>$CONFIG_STATUS <<\_ACEOF
25775 \`$as_me' instantiates files from templates according to the
25776 current configuration.
25778 Usage: $0 [OPTIONS] [FILE]...
25780 -h, --help print this help, then exit
25781 -V, --version print version number and configuration settings, then exit
25782 -q, --quiet do not print progress messages
25783 -d, --debug don't remove temporary files
25784 --recheck update $as_me by reconfiguring in the same conditions
25785 --file=FILE[:TEMPLATE]
25786 instantiate the configuration file FILE
25787 --header=FILE[:TEMPLATE]
25788 instantiate the configuration header FILE
25790 Configuration files:
25793 Configuration headers:
25796 Configuration commands:
25799 Report bugs to <bug-autoconf@gnu.org>."
25802 cat >>$CONFIG_STATUS <<_ACEOF
25805 configured by $0, generated by GNU Autoconf 2.61,
25806 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25808 Copyright (C) 2006 Free Software Foundation, Inc.
25809 This config.status script is free software; the Free Software Foundation
25810 gives unlimited permission to copy, distribute and modify it."
25816 cat >>$CONFIG_STATUS <<\_ACEOF
25817 # If no file are specified by the user, then we need to provide default
25818 # value. By we need to know if files were specified by the user.
25824 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25825 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25836 # Handling of the options.
25837 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25839 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25840 echo "$ac_cs_version"; exit ;;
25841 --debug | --debu | --deb | --de | --d | -d )
25843 --file | --fil | --fi | --f )
25845 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25846 ac_need_defaults=false;;
25847 --header | --heade | --head | --hea )
25849 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25850 ac_need_defaults=false;;
25852 # Conflict between --help and --header
25853 { echo "$as_me: error: ambiguous option: $1
25854 Try \`$0 --help' for more information." >&2
25855 { (exit 1); exit 1; }; };;
25856 --help | --hel | -h )
25857 echo "$ac_cs_usage"; exit ;;
25858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25859 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25862 # This is an error.
25863 -*) { echo "$as_me: error: unrecognized option: $1
25864 Try \`$0 --help' for more information." >&2
25865 { (exit 1); exit 1; }; } ;;
25867 *) ac_config_targets="$ac_config_targets $1"
25868 ac_need_defaults=false ;;
25874 ac_configure_extra_args=
25876 if $ac_cs_silent; then
25878 ac_configure_extra_args="$ac_configure_extra_args --silent"
25882 cat >>$CONFIG_STATUS <<_ACEOF
25883 if \$ac_cs_recheck; then
25884 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25885 CONFIG_SHELL=$SHELL
25886 export CONFIG_SHELL
25887 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25891 cat >>$CONFIG_STATUS <<\_ACEOF
25895 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25896 ## Running $as_me. ##
25902 cat >>$CONFIG_STATUS <<_ACEOF
25905 cat >>$CONFIG_STATUS <<\_ACEOF
25907 # Handling of arguments.
25908 for ac_config_target in $ac_config_targets
25910 case $ac_config_target in
25911 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
25912 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
25913 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
25914 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
25915 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
25916 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
25917 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
25918 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
25919 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
25920 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
25921 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
25922 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
25923 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
25924 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
25925 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
25926 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
25927 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
25928 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
25930 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25931 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25932 { (exit 1); exit 1; }; };;
25937 # If the user did not use the arguments to specify the items to instantiate,
25938 # then the envvar interface is used. Set only those that are not.
25939 # We use the long form for the default assignment because of an extremely
25940 # bizarre bug on SunOS 4.1.3.
25941 if $ac_need_defaults; then
25942 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25943 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25944 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25947 # Have a temporary directory for convenience. Make it in the build tree
25948 # simply because there is no reason against having it here, and in addition,
25949 # creating and moving files from /tmp can sometimes cause problems.
25950 # Hook for its removal unless debugging.
25951 # Note that there is a small window in which the directory will not be cleaned:
25952 # after its creation but before its name has been assigned to `$tmp'.
25956 trap 'exit_status=$?
25957 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25959 trap '{ (exit 1); exit 1; }' 1 2 13 15
25961 # Create a (secure) tmp directory for tmp files.
25964 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25965 test -n "$tmp" && test -d "$tmp"
25968 tmp=./conf$$-$RANDOM
25969 (umask 077 && mkdir "$tmp")
25972 echo "$me: cannot create a temporary directory in ." >&2
25973 { (exit 1); exit 1; }
25977 # Set up the sed scripts for CONFIG_FILES section.
25980 # No need to generate the scripts if there are no CONFIG_FILES.
25981 # This happens for instance when ./config.status config.h
25982 if test -n "$CONFIG_FILES"; then
25989 for ac_last_try in false false false false false :; do
25990 cat >conf$$subs.sed <<_ACEOF
25991 SHELL!$SHELL$ac_delim
25992 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25993 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25994 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25995 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25996 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25997 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25998 exec_prefix!$exec_prefix$ac_delim
25999 prefix!$prefix$ac_delim
26000 program_transform_name!$program_transform_name$ac_delim
26001 bindir!$bindir$ac_delim
26002 sbindir!$sbindir$ac_delim
26003 libexecdir!$libexecdir$ac_delim
26004 datarootdir!$datarootdir$ac_delim
26005 datadir!$datadir$ac_delim
26006 sysconfdir!$sysconfdir$ac_delim
26007 sharedstatedir!$sharedstatedir$ac_delim
26008 localstatedir!$localstatedir$ac_delim
26009 includedir!$includedir$ac_delim
26010 oldincludedir!$oldincludedir$ac_delim
26011 docdir!$docdir$ac_delim
26012 infodir!$infodir$ac_delim
26013 htmldir!$htmldir$ac_delim
26014 dvidir!$dvidir$ac_delim
26015 pdfdir!$pdfdir$ac_delim
26016 psdir!$psdir$ac_delim
26017 libdir!$libdir$ac_delim
26018 localedir!$localedir$ac_delim
26019 mandir!$mandir$ac_delim
26020 DEFS!$DEFS$ac_delim
26021 ECHO_C!$ECHO_C$ac_delim
26022 ECHO_N!$ECHO_N$ac_delim
26023 ECHO_T!$ECHO_T$ac_delim
26024 LIBS!$LIBS$ac_delim
26025 build_alias!$build_alias$ac_delim
26026 host_alias!$host_alias$ac_delim
26027 target_alias!$target_alias$ac_delim
26029 CFLAGS!$CFLAGS$ac_delim
26030 LDFLAGS!$LDFLAGS$ac_delim
26031 CPPFLAGS!$CPPFLAGS$ac_delim
26032 ac_ct_CC!$ac_ct_CC$ac_delim
26033 EXEEXT!$EXEEXT$ac_delim
26034 OBJEXT!$OBJEXT$ac_delim
26036 CXXFLAGS!$CXXFLAGS$ac_delim
26037 ac_ct_CXX!$ac_ct_CXX$ac_delim
26039 GREP!$GREP$ac_delim
26040 EGREP!$EGREP$ac_delim
26041 RANLIB!$RANLIB$ac_delim
26042 GMAKE!$GMAKE$ac_delim
26043 MAKE!$MAKE$ac_delim
26044 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
26045 LIBTOOL!$LIBTOOL$ac_delim
26046 build!$build$ac_delim
26047 build_cpu!$build_cpu$ac_delim
26048 build_vendor!$build_vendor$ac_delim
26049 build_os!$build_os$ac_delim
26050 host!$host$ac_delim
26051 host_cpu!$host_cpu$ac_delim
26052 host_vendor!$host_vendor$ac_delim
26053 host_os!$host_os$ac_delim
26054 LN_S!$LN_S$ac_delim
26055 ECHO!$ECHO$ac_delim
26057 STRIP!$STRIP$ac_delim
26058 CXXCPP!$CXXCPP$ac_delim
26060 FFLAGS!$FFLAGS$ac_delim
26061 ac_ct_F77!$ac_ct_F77$ac_delim
26062 logdir!$logdir$ac_delim
26063 radacctdir!$radacctdir$ac_delim
26064 raddbdir!$raddbdir$ac_delim
26065 PERL!$PERL$ac_delim
26066 SNMPGET!$SNMPGET$ac_delim
26067 SNMPWALK!$SNMPWALK$ac_delim
26068 RUSERS!$RUSERS$ac_delim
26069 ACLOCAL!$ACLOCAL$ac_delim
26070 AUTOCONF!$AUTOCONF$ac_delim
26071 AUTOHEADER!$AUTOHEADER$ac_delim
26072 LOCATE!$LOCATE$ac_delim
26073 DIRNAME!$DIRNAME$ac_delim
26074 REGEX!$REGEX$ac_delim
26075 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26076 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26077 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26078 PCAP_LIBS!$PCAP_LIBS$ac_delim
26079 LIBPREFIX!$LIBPREFIX$ac_delim
26080 CRYPTLIB!$CRYPTLIB$ac_delim
26081 SNMP_LIBS!$SNMP_LIBS$ac_delim
26082 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
26083 HOSTINFO!$HOSTINFO$ac_delim
26084 LIBLTDL!$LIBLTDL$ac_delim
26085 INCLTDL!$INCLTDL$ac_delim
26086 subdirs!$subdirs$ac_delim
26087 MODULES!$MODULES$ac_delim
26090 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26092 elif $ac_last_try; then
26093 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26094 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26095 { (exit 1); exit 1; }; }
26097 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26101 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26102 if test -n "$ac_eof"; then
26103 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26104 ac_eof=`expr $ac_eof + 1`
26107 cat >>$CONFIG_STATUS <<_ACEOF
26108 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26109 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26112 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26113 s/^/s,@/; s/!/@,|#_!!_#|/
26116 s/'"$ac_delim"'$/,g/; t
26118 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26119 ' >>$CONFIG_STATUS <conf$$subs.sed
26120 rm -f conf$$subs.sed
26121 cat >>$CONFIG_STATUS <<_ACEOF
26127 for ac_last_try in false false false false false :; do
26128 cat >conf$$subs.sed <<_ACEOF
26129 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26130 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26131 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26132 STATIC_MODULES!$STATIC_MODULES$ac_delim
26133 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26134 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26135 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26136 LIBOBJS!$LIBOBJS$ac_delim
26137 LTLIBOBJS!$LTLIBOBJS$ac_delim
26140 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
26142 elif $ac_last_try; then
26143 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26144 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26145 { (exit 1); exit 1; }; }
26147 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26151 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26152 if test -n "$ac_eof"; then
26153 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26154 ac_eof=`expr $ac_eof + 1`
26157 cat >>$CONFIG_STATUS <<_ACEOF
26158 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26162 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26163 s/^/s,@/; s/!/@,|#_!!_#|/
26166 s/'"$ac_delim"'$/,g/; t
26168 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26169 ' >>$CONFIG_STATUS <conf$$subs.sed
26170 rm -f conf$$subs.sed
26171 cat >>$CONFIG_STATUS <<_ACEOF
26178 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26179 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26180 # trailing colons and then remove the whole line if VPATH becomes empty
26181 # (actually we leave an empty line to preserve line numbers).
26182 if test "x$srcdir" = x.; then
26183 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26184 s/:*\$(srcdir):*/:/
26185 s/:*\${srcdir}:*/:/
26187 s/^\([^=]*=[ ]*\):*/\1/
26193 cat >>$CONFIG_STATUS <<\_ACEOF
26194 fi # test -n "$CONFIG_FILES"
26197 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26200 :[FHLC]) ac_mode=$ac_tag; continue;;
26202 case $ac_mode$ac_tag in
26204 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26205 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26206 { (exit 1); exit 1; }; };;
26207 :[FH]-) ac_tag=-:-;;
26208 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26225 -) ac_f="$tmp/stdin";;
26226 *) # Look for the file first in the build tree, then in the source tree
26227 # (if the path is not absolute). The absolute path cannot be DOS-style,
26228 # because $ac_f cannot contain `:'.
26232 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26234 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26235 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26236 { (exit 1); exit 1; }; };;
26238 ac_file_inputs="$ac_file_inputs $ac_f"
26241 # Let's still pretend it is `configure' which instantiates (i.e., don't
26242 # use $as_me), people would be surprised to read:
26243 # /* config.h. Generated by config.status. */
26244 configure_input="Generated from "`IFS=:
26245 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26246 if test x"$ac_file" != x-; then
26247 configure_input="$ac_file. $configure_input"
26248 { echo "$as_me:$LINENO: creating $ac_file" >&5
26249 echo "$as_me: creating $ac_file" >&6;}
26253 *:-:* | *:-) cat >"$tmp/stdin";;
26258 ac_dir=`$as_dirname -- "$ac_file" ||
26259 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26260 X"$ac_file" : 'X\(//\)[^/]' \| \
26261 X"$ac_file" : 'X\(//\)$' \| \
26262 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26268 /^X\(\/\/\)[^/].*/{
26283 -*) as_dir=./$as_dir;;
26285 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26289 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26290 *) as_qdir=$as_dir;;
26292 as_dirs="'$as_qdir' $as_dirs"
26293 as_dir=`$as_dirname -- "$as_dir" ||
26294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26295 X"$as_dir" : 'X\(//\)[^/]' \| \
26296 X"$as_dir" : 'X\(//\)$' \| \
26297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26303 /^X\(\/\/\)[^/].*/{
26316 test -d "$as_dir" && break
26318 test -z "$as_dirs" || eval "mkdir $as_dirs"
26319 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26320 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26321 { (exit 1); exit 1; }; }; }
26325 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26327 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26328 # A ".." for each directory in $ac_dir_suffix.
26329 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26330 case $ac_top_builddir_sub in
26331 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26332 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26335 ac_abs_top_builddir=$ac_pwd
26336 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26337 # for backward compatibility:
26338 ac_top_builddir=$ac_top_build_prefix
26341 .) # We are building in place.
26343 ac_top_srcdir=$ac_top_builddir_sub
26344 ac_abs_top_srcdir=$ac_pwd ;;
26345 [\\/]* | ?:[\\/]* ) # Absolute name.
26346 ac_srcdir=$srcdir$ac_dir_suffix;
26347 ac_top_srcdir=$srcdir
26348 ac_abs_top_srcdir=$srcdir ;;
26349 *) # Relative name.
26350 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26351 ac_top_srcdir=$ac_top_build_prefix$srcdir
26352 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26354 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26365 cat >>$CONFIG_STATUS <<\_ACEOF
26366 # If the template does not know about datarootdir, expand it.
26367 # FIXME: This hack should be removed a few years after 2.60.
26368 ac_datarootdir_hack=; ac_datarootdir_seen=
26370 case `sed -n '/datarootdir/ {
26379 ' $ac_file_inputs` in
26380 *datarootdir*) ac_datarootdir_seen=yes;;
26381 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26382 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26383 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26385 cat >>$CONFIG_STATUS <<_ACEOF
26386 ac_datarootdir_hack='
26387 s&@datadir@&$datadir&g
26388 s&@docdir@&$docdir&g
26389 s&@infodir@&$infodir&g
26390 s&@localedir@&$localedir&g
26391 s&@mandir@&$mandir&g
26392 s&\\\${datarootdir}&$datarootdir&g' ;;
26396 # Neutralize VPATH when `$srcdir' = `.'.
26397 # Shell code in configure.ac might set extrasub.
26398 # FIXME: do we really want to maintain this feature?
26399 cat >>$CONFIG_STATUS <<_ACEOF
26403 cat >>$CONFIG_STATUS <<\_ACEOF
26405 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26406 s&@configure_input@&$configure_input&;t t
26407 s&@top_builddir@&$ac_top_builddir_sub&;t t
26408 s&@srcdir@&$ac_srcdir&;t t
26409 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26410 s&@top_srcdir@&$ac_top_srcdir&;t t
26411 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26412 s&@builddir@&$ac_builddir&;t t
26413 s&@abs_builddir@&$ac_abs_builddir&;t t
26414 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26415 $ac_datarootdir_hack
26416 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26418 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26419 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26420 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26421 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26422 which seems to be undefined. Please make sure it is defined." >&5
26423 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26424 which seems to be undefined. Please make sure it is defined." >&2;}
26428 -) cat "$tmp/out"; rm -f "$tmp/out";;
26429 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26438 # Transform confdefs.h into a sed script `conftest.defines', that
26439 # substitutes the proper values into config.h.in to produce config.h.
26440 rm -f conftest.defines conftest.tail
26441 # First, append a space to every undef/define line, to ease matching.
26442 echo 's/$/ /' >conftest.defines
26443 # Then, protect against being on the right side of a sed subst, or in
26444 # an unquoted here document, in config.status. If some macros were
26445 # called several times there might be several #defines for the same
26446 # symbol, which is useless. But do not sort them, since the last
26447 # AC_DEFINE must be honored.
26448 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26449 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26450 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26451 # PARAMS is the parameter list in the macro definition--in most cases, it's
26452 # just an empty string.
26453 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26454 ac_dB='\\)[ (].*,\\1define\\2'
26462 s/^[ ]*#[ ]*define[ ][ ]*//
26467 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26468 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26469 ' >>conftest.defines
26471 # Remove the space that was appended to ease matching.
26472 # Then replace #undef with comments. This is necessary, for
26473 # example, in the case of _POSIX_SOURCE, which is predefined and required
26474 # on some systems where configure will not decide to define it.
26475 # (The regexp can be short, since the line contains either #define or #undef.)
26477 s,^[ #]*u.*,/* & */,' >>conftest.defines
26479 # Break up conftest.defines:
26480 ac_max_sed_lines=50
26482 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26483 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26484 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26486 ac_in='$ac_file_inputs'
26487 ac_out='"$tmp/out1"'
26488 ac_nxt='"$tmp/out2"'
26492 # Write a here document:
26493 cat >>$CONFIG_STATUS <<_ACEOF
26494 # First, check the format of the line:
26495 cat >"\$tmp/defines.sed" <<\\CEOF
26496 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26497 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26501 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26503 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26504 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26505 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26506 grep . conftest.tail >/dev/null || break
26507 rm -f conftest.defines
26508 mv conftest.tail conftest.defines
26510 rm -f conftest.defines conftest.tail
26512 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26513 cat >>$CONFIG_STATUS <<\_ACEOF
26514 if test x"$ac_file" != x-; then
26515 echo "/* $configure_input */" >"$tmp/config.h"
26516 cat "$ac_result" >>"$tmp/config.h"
26517 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26518 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26519 echo "$as_me: $ac_file is unchanged" >&6;}
26522 mv "$tmp/config.h" $ac_file
26525 echo "/* $configure_input */"
26531 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26532 echo "$as_me: executing $ac_file commands" >&6;}
26537 case $ac_file$ac_mode in
26538 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
26539 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26540 "main-chmod":C) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
26541 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26547 { (exit 0); exit 0; }
26549 chmod +x $CONFIG_STATUS
26550 ac_clean_files=$ac_clean_files_save
26553 # configure is writing to config.log, and then calls config.status.
26554 # config.status does its own redirection, appending to config.log.
26555 # Unfortunately, on DOS this fails, as config.log is still kept open
26556 # by configure, so config.status won't be able to write to it; its
26557 # output is simply discarded. So we exec the FD to /dev/null,
26558 # effectively closing config.log, so it can be properly (re)opened and
26559 # appended to by config.status. When coming back to configure, we
26560 # need to make the FD available again.
26561 if test "$no_create" != yes; then
26563 ac_config_status_args=
26564 test "$silent" = yes &&
26565 ac_config_status_args="$ac_config_status_args --quiet"
26567 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26569 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26570 # would make configure fail if this is the last instruction.
26571 $ac_cs_success || { (exit 1); exit 1; }
26575 # CONFIG_SUBDIRS section.
26577 if test "$no_recursion" != yes; then
26579 # Remove --cache-file and --srcdir arguments so they do not pile up.
26580 ac_sub_configure_args=
26582 eval "set x $ac_configure_args"
26586 if test -n "$ac_prev"; then
26591 -cache-file | --cache-file | --cache-fil | --cache-fi \
26592 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26593 ac_prev=cache_file ;;
26594 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26595 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26598 --config-cache | -C)
26600 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26602 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26604 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26606 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26610 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26612 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
26616 # Always prepend --prefix to ensure using the same prefix
26617 # in subdir configurations.
26618 ac_arg="--prefix=$prefix"
26620 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26622 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
26625 if test "$silent" = yes; then
26626 ac_sub_configure_args="--silent $ac_sub_configure_args"
26630 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26632 # Do not complain, so a configure script can configure whichever
26633 # parts of a large source tree are present.
26634 test -d "$srcdir/$ac_dir" || continue
26636 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26637 echo "$as_me:$LINENO: $ac_msg" >&5
26641 -*) as_dir=./$as_dir;;
26643 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26647 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26648 *) as_qdir=$as_dir;;
26650 as_dirs="'$as_qdir' $as_dirs"
26651 as_dir=`$as_dirname -- "$as_dir" ||
26652 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26653 X"$as_dir" : 'X\(//\)[^/]' \| \
26654 X"$as_dir" : 'X\(//\)$' \| \
26655 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26661 /^X\(\/\/\)[^/].*/{
26674 test -d "$as_dir" && break
26676 test -z "$as_dirs" || eval "mkdir $as_dirs"
26677 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26678 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26679 { (exit 1); exit 1; }; }; }
26683 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26685 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26686 # A ".." for each directory in $ac_dir_suffix.
26687 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26688 case $ac_top_builddir_sub in
26689 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26690 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26693 ac_abs_top_builddir=$ac_pwd
26694 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26695 # for backward compatibility:
26696 ac_top_builddir=$ac_top_build_prefix
26699 .) # We are building in place.
26701 ac_top_srcdir=$ac_top_builddir_sub
26702 ac_abs_top_srcdir=$ac_pwd ;;
26703 [\\/]* | ?:[\\/]* ) # Absolute name.
26704 ac_srcdir=$srcdir$ac_dir_suffix;
26705 ac_top_srcdir=$srcdir
26706 ac_abs_top_srcdir=$srcdir ;;
26707 *) # Relative name.
26708 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26709 ac_top_srcdir=$ac_top_build_prefix$srcdir
26710 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26712 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26717 # Check for guested configure; otherwise get Cygnus style configure.
26718 if test -f "$ac_srcdir/configure.gnu"; then
26719 ac_sub_configure=$ac_srcdir/configure.gnu
26720 elif test -f "$ac_srcdir/configure"; then
26721 ac_sub_configure=$ac_srcdir/configure
26722 elif test -f "$ac_srcdir/configure.in"; then
26723 # This should be Cygnus configure.
26724 ac_sub_configure=$ac_aux_dir/configure
26726 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26727 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26731 # The recursion is here.
26732 if test -n "$ac_sub_configure"; then
26733 # Make the cache file name correct relative to the subdirectory.
26734 case $cache_file in
26735 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26736 *) # Relative name.
26737 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
26740 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26741 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26742 # The eval makes quoting arguments work.
26743 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
26744 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
26745 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26746 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26747 { (exit 1); exit 1; }; }