2 # From configure.in Revision: 1.244 .
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-static-modules=QUOTED-MODULE-LIST
1492 --with-modules=QUOTED-MODULE-LIST
1493 --with-experimental-modules Use experimental and unstable modules. (default=no)
1494 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1495 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1496 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1497 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1498 --with-udpfromto Compile in UDPFROMTO support. (default=yes)
1500 Some influential environment variables:
1501 CC C compiler command
1502 CFLAGS C compiler flags
1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504 nonstandard directory <lib dir>
1505 LIBS libraries to pass to the linker, e.g. -l<library>
1506 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1507 you have headers in a nonstandard directory <include dir>
1508 CXX C++ compiler command
1509 CXXFLAGS C++ compiler flags
1511 CXXCPP C++ preprocessor
1512 F77 Fortran 77 compiler command
1513 FFLAGS Fortran 77 compiler flags
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1522 if test "$ac_init_help" = "recursive"; then
1523 # If there are subdirs, report their specific --help.
1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525 test -d "$ac_dir" || continue
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1532 # A ".." for each directory in $ac_dir_suffix.
1533 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1534 case $ac_top_builddir_sub in
1535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1545 .) # We are building in place.
1547 ac_top_srcdir=$ac_top_builddir_sub
1548 ac_abs_top_srcdir=$ac_pwd ;;
1549 [\\/]* | ?:[\\/]* ) # Absolute name.
1550 ac_srcdir=$srcdir$ac_dir_suffix;
1551 ac_top_srcdir=$srcdir
1552 ac_abs_top_srcdir=$srcdir ;;
1554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555 ac_top_srcdir=$ac_top_build_prefix$srcdir
1556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560 cd "$ac_dir" || { ac_status=$?; continue; }
1561 # Check for guested configure.
1562 if test -f "$ac_srcdir/configure.gnu"; then
1564 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565 elif test -f "$ac_srcdir/configure"; then
1567 $SHELL "$ac_srcdir/configure" --help=recursive
1569 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571 cd "$ac_pwd" || { ac_status=$?; break; }
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1579 generated by GNU Autoconf 2.61
1581 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1582 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1583 This configure script is free software; the Free Software Foundation
1584 gives unlimited permission to copy, distribute and modify it.
1588 cat >config.log <<_ACEOF
1589 This file contains any messages produced by compilers while
1590 running configure, to aid debugging if configure makes a mistake.
1592 It was created by $as_me, which was
1593 generated by GNU Autoconf 2.61. Invocation command line was
1605 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1606 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1607 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1608 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1609 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1611 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1612 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1614 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1615 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1616 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1617 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1618 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1619 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1620 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 test -z "$as_dir" && as_dir=.
1629 echo "PATH: $as_dir"
1645 # Keep a trace of the command line.
1646 # Strip out --no-create and --no-recursion so they do not pile up.
1647 # Strip out --silent because we don't want to record it for future runs.
1648 # Also quote any args containing shell meta-characters.
1649 # Make two passes to allow for proper duplicate-argument suppression.
1653 ac_must_keep_next=false
1659 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1660 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1661 | -silent | --silent | --silen | --sile | --sil)
1664 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1667 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1669 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1670 if test $ac_must_keep_next = true; then
1671 ac_must_keep_next=false # Got value, back to normal.
1674 *=* | --config-cache | -C | -disable-* | --disable-* \
1675 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1676 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1677 | -with-* | --with-* | -without-* | --without-* | --x)
1678 case "$ac_configure_args0 " in
1679 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1682 -* ) ac_must_keep_next=true ;;
1685 ac_configure_args="$ac_configure_args '$ac_arg'"
1690 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1691 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1693 # When interrupted or exit'd, cleanup temporary files, and complete
1694 # config.log. We remove comments because anyway the quotes in there
1695 # would cause problems or look ugly.
1696 # WARNING: Use '\'' to represent an apostrophe within the trap.
1697 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1698 trap 'exit_status=$?
1699 # Save into config.log some information that might help in debugging.
1704 ## ---------------- ##
1705 ## Cache variables. ##
1706 ## ---------------- ##
1709 # The following way of writing the cache mishandles newlines in values,
1711 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1712 eval ac_val=\$$ac_var
1716 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1717 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1720 _ | IFS | as_nl) ;; #(
1721 *) $as_unset $ac_var ;;
1726 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1727 *${as_nl}ac_space=\ *)
1729 "s/'\''/'\''\\\\'\'''\''/g;
1730 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1733 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1741 ## ----------------- ##
1742 ## Output variables. ##
1743 ## ----------------- ##
1746 for ac_var in $ac_subst_vars
1748 eval ac_val=\$$ac_var
1750 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752 echo "$ac_var='\''$ac_val'\''"
1756 if test -n "$ac_subst_files"; then
1758 ## ------------------- ##
1759 ## File substitutions. ##
1760 ## ------------------- ##
1763 for ac_var in $ac_subst_files
1765 eval ac_val=\$$ac_var
1767 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769 echo "$ac_var='\''$ac_val'\''"
1774 if test -s confdefs.h; then
1784 test "$ac_signal" != 0 &&
1785 echo "$as_me: caught signal $ac_signal"
1786 echo "$as_me: exit $exit_status"
1788 rm -f core *.core core.conftest.* &&
1789 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1792 for ac_signal in 1 2 13 15; do
1793 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1797 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1798 rm -f -r conftest* confdefs.h
1800 # Predefined preprocessor variables.
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_NAME "$PACKAGE_NAME"
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_STRING "$PACKAGE_STRING"
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1827 # Let the site file select an alternate cache file if it wants to.
1828 # Prefer explicitly selected file to automatically selected ones.
1829 if test -n "$CONFIG_SITE"; then
1830 set x "$CONFIG_SITE"
1831 elif test "x$prefix" != xNONE; then
1832 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1834 set x "$ac_default_prefix/share/config.site" \
1835 "$ac_default_prefix/etc/config.site"
1840 if test -r "$ac_site_file"; then
1841 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1842 echo "$as_me: loading site script $ac_site_file" >&6;}
1843 sed 's/^/| /' "$ac_site_file" >&5
1848 if test -r "$cache_file"; then
1849 # Some versions of bash will fail to source /dev/null (special
1850 # files actually), so we avoid doing that.
1851 if test -f "$cache_file"; then
1852 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1853 echo "$as_me: loading cache $cache_file" >&6;}
1855 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1856 *) . "./$cache_file";;
1860 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1861 echo "$as_me: creating cache $cache_file" >&6;}
1865 # Check that the precious variables saved in the cache have kept the same
1867 ac_cache_corrupted=false
1868 for ac_var in $ac_precious_vars; do
1869 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1870 eval ac_new_set=\$ac_env_${ac_var}_set
1871 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1872 eval ac_new_val=\$ac_env_${ac_var}_value
1873 case $ac_old_set,$ac_new_set in
1875 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1876 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1877 ac_cache_corrupted=: ;;
1879 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1880 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1881 ac_cache_corrupted=: ;;
1884 if test "x$ac_old_val" != "x$ac_new_val"; then
1885 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1886 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1887 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1888 echo "$as_me: former value: $ac_old_val" >&2;}
1889 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1890 echo "$as_me: current value: $ac_new_val" >&2;}
1891 ac_cache_corrupted=:
1894 # Pass precious variables to config.status.
1895 if test "$ac_new_set" = set; then
1897 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1898 *) ac_arg=$ac_var=$ac_new_val ;;
1900 case " $ac_configure_args " in
1901 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1902 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1906 if $ac_cache_corrupted; then
1907 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1908 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1909 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1910 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1911 { (exit 1); exit 1; }; }
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1937 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1940 RADIUSD_MAJOR_VERSION=2
1941 RADIUSD_MINOR_VERSION=0.0-pre2
1942 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1947 ac_cpp='$CPP $CPPFLAGS'
1948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1951 if test -n "$ac_tool_prefix"; then
1952 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1953 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1956 if test "${ac_cv_prog_CC+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 if test -n "$CC"; then
1960 ac_cv_prog_CC="$CC" # Let the user override the test.
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966 test -z "$as_dir" && as_dir=.
1967 for ac_exec_ext in '' $ac_executable_extensions; do
1968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1969 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980 if test -n "$CC"; then
1981 { echo "$as_me:$LINENO: result: $CC" >&5
1982 echo "${ECHO_T}$CC" >&6; }
1984 { echo "$as_me:$LINENO: result: no" >&5
1985 echo "${ECHO_T}no" >&6; }
1990 if test -z "$ac_cv_prog_CC"; then
1992 # Extract the first word of "gcc", so it can be a program name with args.
1993 set dummy gcc; ac_word=$2
1994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1996 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1999 if test -n "$ac_ct_CC"; then
2000 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 test -z "$as_dir" && as_dir=.
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2009 ac_cv_prog_ac_ct_CC="gcc"
2010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2020 if test -n "$ac_ct_CC"; then
2021 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2022 echo "${ECHO_T}$ac_ct_CC" >&6; }
2024 { echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6; }
2028 if test "x$ac_ct_CC" = x; then
2031 case $cross_compiling:$ac_tool_warned in
2033 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2034 whose name does not start with the host triplet. If you think this
2035 configuration is useful to you, please write to autoconf@gnu.org." >&5
2036 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2037 whose name does not start with the host triplet. If you think this
2038 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2039 ac_tool_warned=yes ;;
2047 if test -z "$CC"; then
2048 if test -n "$ac_tool_prefix"; then
2049 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2050 set dummy ${ac_tool_prefix}cc; ac_word=$2
2051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2053 if test "${ac_cv_prog_CC+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 if test -n "$CC"; then
2057 ac_cv_prog_CC="$CC" # Let the user override the test.
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 test -z "$as_dir" && as_dir=.
2064 for ac_exec_ext in '' $ac_executable_extensions; do
2065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2066 ac_cv_prog_CC="${ac_tool_prefix}cc"
2067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077 if test -n "$CC"; then
2078 { echo "$as_me:$LINENO: result: $CC" >&5
2079 echo "${ECHO_T}$CC" >&6; }
2081 { echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6; }
2088 if test -z "$CC"; then
2089 # Extract the first word of "cc", so it can be a program name with args.
2090 set dummy cc; ac_word=$2
2091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 if test -n "$CC"; then
2097 ac_cv_prog_CC="$CC" # Let the user override the test.
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 test -z "$as_dir" && as_dir=.
2105 for ac_exec_ext in '' $ac_executable_extensions; do
2106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2107 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2108 ac_prog_rejected=yes
2112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119 if test $ac_prog_rejected = yes; then
2120 # We found a bogon in the path, so make sure we never use it.
2121 set dummy $ac_cv_prog_CC
2123 if test $# != 0; then
2124 # We chose a different compiler from the bogus one.
2125 # However, it has the same basename, so the bogon will be chosen
2126 # first if we set CC to just the basename; use the full file name.
2128 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2134 if test -n "$CC"; then
2135 { echo "$as_me:$LINENO: result: $CC" >&5
2136 echo "${ECHO_T}$CC" >&6; }
2138 { echo "$as_me:$LINENO: result: no" >&5
2139 echo "${ECHO_T}no" >&6; }
2144 if test -z "$CC"; then
2145 if test -n "$ac_tool_prefix"; then
2146 for ac_prog in cl.exe
2148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2152 if test "${ac_cv_prog_CC+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 if test -n "$CC"; then
2156 ac_cv_prog_CC="$CC" # Let the user override the test.
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 test -z "$as_dir" && as_dir=.
2163 for ac_exec_ext in '' $ac_executable_extensions; do
2164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2165 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176 if test -n "$CC"; then
2177 { echo "$as_me:$LINENO: result: $CC" >&5
2178 echo "${ECHO_T}$CC" >&6; }
2180 { echo "$as_me:$LINENO: result: no" >&5
2181 echo "${ECHO_T}no" >&6; }
2185 test -n "$CC" && break
2188 if test -z "$CC"; then
2190 for ac_prog in cl.exe
2192 # Extract the first word of "$ac_prog", so it can be a program name with args.
2193 set dummy $ac_prog; ac_word=$2
2194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2196 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 if test -n "$ac_ct_CC"; then
2200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2209 ac_cv_prog_ac_ct_CC="$ac_prog"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2220 if test -n "$ac_ct_CC"; then
2221 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2222 echo "${ECHO_T}$ac_ct_CC" >&6; }
2224 { echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6; }
2229 test -n "$ac_ct_CC" && break
2232 if test "x$ac_ct_CC" = x; then
2235 case $cross_compiling:$ac_tool_warned in
2237 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2238 whose name does not start with the host triplet. If you think this
2239 configuration is useful to you, please write to autoconf@gnu.org." >&5
2240 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2241 whose name does not start with the host triplet. If you think this
2242 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2243 ac_tool_warned=yes ;;
2252 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2253 See \`config.log' for more details." >&5
2254 echo "$as_me: error: no acceptable C compiler found in \$PATH
2255 See \`config.log' for more details." >&2;}
2256 { (exit 1); exit 1; }; }
2258 # Provide some information about the compiler.
2259 echo "$as_me:$LINENO: checking for C compiler version" >&5
2260 ac_compiler=`set X $ac_compile; echo $2`
2261 { (ac_try="$ac_compiler --version >&5"
2263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264 *) ac_try_echo=$ac_try;;
2266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2267 (eval "$ac_compiler --version >&5") 2>&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }
2271 { (ac_try="$ac_compiler -v >&5"
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277 (eval "$ac_compiler -v >&5") 2>&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }
2281 { (ac_try="$ac_compiler -V >&5"
2283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2284 *) ac_try_echo=$ac_try;;
2286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2287 (eval "$ac_compiler -V >&5") 2>&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }
2292 cat >conftest.$ac_ext <<_ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2307 ac_clean_files_save=$ac_clean_files
2308 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2309 # Try to create an executable without -o first, disregard a.out.
2310 # It will help us diagnose broken compilers, and finding out an intuition
2312 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2313 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2314 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2316 # List of possible output files, starting from the most likely.
2317 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2318 # only as a last resort. b.out is created by i960 compilers.
2319 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2321 # The IRIX 6 linker writes into existing files which may not be
2322 # executable, retaining their permissions. Remove them first so a
2323 # subsequent execution test works.
2325 for ac_file in $ac_files
2328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2329 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2334 if { (ac_try="$ac_link_default"
2336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337 *) ac_try_echo=$ac_try;;
2339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2340 (eval "$ac_link_default") 2>&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; then
2344 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2345 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2346 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2347 # so that the user can short-circuit this test for compilers unknown to
2349 for ac_file in $ac_files ''
2351 test -f "$ac_file" || continue
2353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2356 # We found the default executable, but exeext='' is most
2360 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2362 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2364 # We set ac_cv_exeext here because the later test for it is not
2365 # safe: cross compilers may not add the suffix if given an `-o'
2366 # argument, so we may need to know it at that point already.
2367 # Even if this section looks crufty: it has the advantage of
2374 test "$ac_cv_exeext" = no && ac_cv_exeext=
2380 { echo "$as_me:$LINENO: result: $ac_file" >&5
2381 echo "${ECHO_T}$ac_file" >&6; }
2382 if test -z "$ac_file"; then
2383 echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2386 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2387 See \`config.log' for more details." >&5
2388 echo "$as_me: error: C compiler cannot create executables
2389 See \`config.log' for more details." >&2;}
2390 { (exit 77); exit 77; }; }
2393 ac_exeext=$ac_cv_exeext
2395 # Check that the compiler produces executables we can run. If not, either
2396 # the compiler is broken, or we cross compile.
2397 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2398 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2399 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2400 # If not cross compiling, check that we can run a simple program.
2401 if test "$cross_compiling" != yes; then
2402 if { ac_try='./$ac_file'
2403 { (case "(($ac_try" in
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_try") 2>&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2414 if test "$cross_compiling" = maybe; then
2417 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2418 If you meant to cross compile, use \`--host'.
2419 See \`config.log' for more details." >&5
2420 echo "$as_me: error: cannot run C compiled programs.
2421 If you meant to cross compile, use \`--host'.
2422 See \`config.log' for more details." >&2;}
2423 { (exit 1); exit 1; }; }
2427 { echo "$as_me:$LINENO: result: yes" >&5
2428 echo "${ECHO_T}yes" >&6; }
2430 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2431 ac_clean_files=$ac_clean_files_save
2432 # Check that the compiler produces executables we can run. If not, either
2433 # the compiler is broken, or we cross compile.
2434 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2435 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2436 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2437 echo "${ECHO_T}$cross_compiling" >&6; }
2439 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2440 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2441 if { (ac_try="$ac_link"
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447 (eval "$ac_link") 2>&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; then
2451 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2452 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2453 # work properly (i.e., refer to `conftest.exe'), while it won't with
2455 for ac_file in conftest.exe conftest conftest.*; do
2456 test -f "$ac_file" || continue
2458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2459 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2465 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2466 See \`config.log' for more details." >&5
2467 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2468 See \`config.log' for more details." >&2;}
2469 { (exit 1); exit 1; }; }
2472 rm -f conftest$ac_cv_exeext
2473 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2474 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2476 rm -f conftest.$ac_ext
2477 EXEEXT=$ac_cv_exeext
2479 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2480 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2481 if test "${ac_cv_objext+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 cat >conftest.$ac_ext <<_ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2499 rm -f conftest.o conftest.obj
2500 if { (ac_try="$ac_compile"
2502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503 *) ac_try_echo=$ac_try;;
2505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2506 (eval "$ac_compile") 2>&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; then
2510 for ac_file in conftest.o conftest.obj conftest.*; do
2511 test -f "$ac_file" || continue;
2513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2514 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2519 echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2522 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2523 See \`config.log' for more details." >&5
2524 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2525 See \`config.log' for more details." >&2;}
2526 { (exit 1); exit 1; }; }
2529 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2531 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2532 echo "${ECHO_T}$ac_cv_objext" >&6; }
2533 OBJEXT=$ac_cv_objext
2535 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2536 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2537 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 cat >conftest.$ac_ext <<_ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h. */
2558 rm -f conftest.$ac_objext
2559 if { (ac_try="$ac_compile"
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_compile") 2>conftest.er1
2567 grep -v '^ *+' conftest.er1 >conftest.err
2569 cat conftest.err >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); } && {
2572 test -z "$ac_c_werror_flag" ||
2573 test ! -s conftest.err
2574 } && test -s conftest.$ac_objext; then
2577 echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2587 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2588 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2589 GCC=`test $ac_compiler_gnu = yes && echo yes`
2590 ac_test_CFLAGS=${CFLAGS+set}
2591 ac_save_CFLAGS=$CFLAGS
2592 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2593 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2594 if test "${ac_cv_prog_cc_g+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2597 ac_save_c_werror_flag=$ac_c_werror_flag
2598 ac_c_werror_flag=yes
2601 cat >conftest.$ac_ext <<_ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2616 rm -f conftest.$ac_objext
2617 if { (ac_try="$ac_compile"
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_compile") 2>conftest.er1
2625 grep -v '^ *+' conftest.er1 >conftest.err
2627 cat conftest.err >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } && {
2630 test -z "$ac_c_werror_flag" ||
2631 test ! -s conftest.err
2632 } && test -s conftest.$ac_objext; then
2635 echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2639 cat >conftest.$ac_ext <<_ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2654 rm -f conftest.$ac_objext
2655 if { (ac_try="$ac_compile"
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_compile") 2>conftest.er1
2663 grep -v '^ *+' conftest.er1 >conftest.err
2665 cat conftest.err >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } && {
2668 test -z "$ac_c_werror_flag" ||
2669 test ! -s conftest.err
2670 } && test -s conftest.$ac_objext; then
2673 echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2676 ac_c_werror_flag=$ac_save_c_werror_flag
2678 cat >conftest.$ac_ext <<_ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2693 rm -f conftest.$ac_objext
2694 if { (ac_try="$ac_compile"
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compile") 2>conftest.er1
2702 grep -v '^ *+' conftest.er1 >conftest.err
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } && {
2707 test -z "$ac_c_werror_flag" ||
2708 test ! -s conftest.err
2709 } && test -s conftest.$ac_objext; then
2712 echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 ac_c_werror_flag=$ac_save_c_werror_flag
2727 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2728 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2729 if test "$ac_test_CFLAGS" = set; then
2730 CFLAGS=$ac_save_CFLAGS
2731 elif test $ac_cv_prog_cc_g = yes; then
2732 if test "$GCC" = yes; then
2738 if test "$GCC" = yes; then
2744 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2745 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2746 if test "${ac_cv_prog_cc_c89+set}" = set; then
2747 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 ac_cv_prog_cc_c89=no
2751 cat >conftest.$ac_ext <<_ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h. */
2759 #include <sys/types.h>
2760 #include <sys/stat.h>
2761 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2762 struct buf { int x; };
2763 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2764 static char *e (p, i)
2770 static char *f (char * (*g) (char **, int), char **p, ...)
2775 s = g (p, va_arg (v,int));
2780 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2781 function prototypes and stuff, but not '\xHH' hex character constants.
2782 These don't provoke an error unfortunately, instead are silently treated
2783 as 'x'. The following induces an error, until -std is added to get
2784 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2785 array size at least. It's necessary to write '\x00'==0 to get something
2786 that's true only with -std. */
2787 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2789 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2790 inside strings and character constants. */
2792 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2794 int test (int i, double x);
2795 struct s1 {int (*f) (int a);};
2796 struct s2 {int (*f) (double a);};
2797 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2803 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2808 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2809 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2811 CC="$ac_save_CC $ac_arg"
2812 rm -f conftest.$ac_objext
2813 if { (ac_try="$ac_compile"
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819 (eval "$ac_compile") 2>conftest.er1
2821 grep -v '^ *+' conftest.er1 >conftest.err
2823 cat conftest.err >&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); } && {
2826 test -z "$ac_c_werror_flag" ||
2827 test ! -s conftest.err
2828 } && test -s conftest.$ac_objext; then
2829 ac_cv_prog_cc_c89=$ac_arg
2831 echo "$as_me: failed program was:" >&5
2832 sed 's/^/| /' conftest.$ac_ext >&5
2837 rm -f core conftest.err conftest.$ac_objext
2838 test "x$ac_cv_prog_cc_c89" != "xno" && break
2840 rm -f conftest.$ac_ext
2845 case "x$ac_cv_prog_cc_c89" in
2847 { echo "$as_me:$LINENO: result: none needed" >&5
2848 echo "${ECHO_T}none needed" >&6; } ;;
2850 { echo "$as_me:$LINENO: result: unsupported" >&5
2851 echo "${ECHO_T}unsupported" >&6; } ;;
2853 CC="$CC $ac_cv_prog_cc_c89"
2854 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2855 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2860 ac_cpp='$CPP $CPPFLAGS'
2861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2866 ac_cpp='$CXXCPP $CPPFLAGS'
2867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2870 if test -z "$CXX"; then
2871 if test -n "$CCC"; then
2874 if test -n "$ac_tool_prefix"; then
2875 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2881 if test "${ac_cv_prog_CXX+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 if test -n "$CXX"; then
2885 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 if test -n "$CXX"; then
2906 { echo "$as_me:$LINENO: result: $CXX" >&5
2907 echo "${ECHO_T}$CXX" >&6; }
2909 { echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6; }
2914 test -n "$CXX" && break
2917 if test -z "$CXX"; then
2919 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2921 # Extract the first word of "$ac_prog", so it can be a program name with args.
2922 set dummy $ac_prog; ac_word=$2
2923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2925 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 if test -n "$ac_ct_CXX"; then
2929 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2938 ac_cv_prog_ac_ct_CXX="$ac_prog"
2939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2949 if test -n "$ac_ct_CXX"; then
2950 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2951 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2953 { echo "$as_me:$LINENO: result: no" >&5
2954 echo "${ECHO_T}no" >&6; }
2958 test -n "$ac_ct_CXX" && break
2961 if test "x$ac_ct_CXX" = x; then
2964 case $cross_compiling:$ac_tool_warned in
2966 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2967 whose name does not start with the host triplet. If you think this
2968 configuration is useful to you, please write to autoconf@gnu.org." >&5
2969 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2970 whose name does not start with the host triplet. If you think this
2971 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2972 ac_tool_warned=yes ;;
2980 # Provide some information about the compiler.
2981 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2982 ac_compiler=`set X $ac_compile; echo $2`
2983 { (ac_try="$ac_compiler --version >&5"
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_compiler --version >&5") 2>&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }
2993 { (ac_try="$ac_compiler -v >&5"
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_compiler -v >&5") 2>&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }
3003 { (ac_try="$ac_compiler -V >&5"
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_compiler -V >&5") 2>&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }
3014 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3015 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3016 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 cat >conftest.$ac_ext <<_ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3037 rm -f conftest.$ac_objext
3038 if { (ac_try="$ac_compile"
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compile") 2>conftest.er1
3046 grep -v '^ *+' conftest.er1 >conftest.err
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } && {
3051 test -z "$ac_cxx_werror_flag" ||
3052 test ! -s conftest.err
3053 } && test -s conftest.$ac_objext; then
3056 echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3063 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3066 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3067 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3068 GXX=`test $ac_compiler_gnu = yes && echo yes`
3069 ac_test_CXXFLAGS=${CXXFLAGS+set}
3070 ac_save_CXXFLAGS=$CXXFLAGS
3071 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3072 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3073 if test "${ac_cv_prog_cxx_g+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3077 ac_cxx_werror_flag=yes
3080 cat >conftest.$ac_ext <<_ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3095 rm -f conftest.$ac_objext
3096 if { (ac_try="$ac_compile"
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_compile") 2>conftest.er1
3104 grep -v '^ *+' conftest.er1 >conftest.err
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } && {
3109 test -z "$ac_cxx_werror_flag" ||
3110 test ! -s conftest.err
3111 } && test -s conftest.$ac_objext; then
3112 ac_cv_prog_cxx_g=yes
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3118 cat >conftest.$ac_ext <<_ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3133 rm -f conftest.$ac_objext
3134 if { (ac_try="$ac_compile"
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_compile") 2>conftest.er1
3142 grep -v '^ *+' conftest.er1 >conftest.err
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } && {
3147 test -z "$ac_cxx_werror_flag" ||
3148 test ! -s conftest.err
3149 } && test -s conftest.$ac_objext; then
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3155 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3157 cat >conftest.$ac_ext <<_ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h. */
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_compile") 2>conftest.er1
3181 grep -v '^ *+' conftest.er1 >conftest.err
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } && {
3186 test -z "$ac_cxx_werror_flag" ||
3187 test ! -s conftest.err
3188 } && test -s conftest.$ac_objext; then
3189 ac_cv_prog_cxx_g=yes
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3206 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3207 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3208 if test "$ac_test_CXXFLAGS" = set; then
3209 CXXFLAGS=$ac_save_CXXFLAGS
3210 elif test $ac_cv_prog_cxx_g = yes; then
3211 if test "$GXX" = yes; then
3217 if test "$GXX" = yes; then
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232 ac_cpp='$CPP $CPPFLAGS'
3233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3237 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3238 # On Suns, sometimes $CPP names a directory.
3239 if test -n "$CPP" && test -d "$CPP"; then
3242 if test -z "$CPP"; then
3243 if test "${ac_cv_prog_CPP+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 # Double quotes because CPP needs to be expanded
3247 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3250 for ac_c_preproc_warn_flag in '' yes
3252 # Use a header file that comes with gcc, so configuring glibc
3253 # with a fresh cross-compiler works.
3254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3255 # <limits.h> exists even on freestanding compilers.
3256 # On the NeXT, cc -E runs the code through the compiler's parser,
3257 # not just through cpp. "Syntax error" is here to catch this case.
3258 cat >conftest.$ac_ext <<_ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3265 # include <limits.h>
3267 # include <assert.h>
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3279 grep -v '^ *+' conftest.er1 >conftest.err
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } >/dev/null && {
3284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3285 test ! -s conftest.err
3289 echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3292 # Broken: fails on valid input.
3296 rm -f conftest.err conftest.$ac_ext
3298 # OK, works on sane cases. Now check whether nonexistent headers
3299 # can be detected and how.
3300 cat >conftest.$ac_ext <<_ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3306 #include <ac_nonexistent.h>
3308 if { (ac_try="$ac_cpp conftest.$ac_ext"
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3316 grep -v '^ *+' conftest.er1 >conftest.err
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } >/dev/null && {
3321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3322 test ! -s conftest.err
3324 # Broken: success on invalid input.
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3330 # Passes both tests.
3335 rm -f conftest.err conftest.$ac_ext
3338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3339 rm -f conftest.err conftest.$ac_ext
3340 if $ac_preproc_ok; then
3352 { echo "$as_me:$LINENO: result: $CPP" >&5
3353 echo "${ECHO_T}$CPP" >&6; }
3355 for ac_c_preproc_warn_flag in '' yes
3357 # Use a header file that comes with gcc, so configuring glibc
3358 # with a fresh cross-compiler works.
3359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3360 # <limits.h> exists even on freestanding compilers.
3361 # On the NeXT, cc -E runs the code through the compiler's parser,
3362 # not just through cpp. "Syntax error" is here to catch this case.
3363 cat >conftest.$ac_ext <<_ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3370 # include <limits.h>
3372 # include <assert.h>
3376 if { (ac_try="$ac_cpp conftest.$ac_ext"
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3384 grep -v '^ *+' conftest.er1 >conftest.err
3386 cat conftest.err >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } >/dev/null && {
3389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3390 test ! -s conftest.err
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3397 # Broken: fails on valid input.
3401 rm -f conftest.err conftest.$ac_ext
3403 # OK, works on sane cases. Now check whether nonexistent headers
3404 # can be detected and how.
3405 cat >conftest.$ac_ext <<_ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3411 #include <ac_nonexistent.h>
3413 if { (ac_try="$ac_cpp conftest.$ac_ext"
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3421 grep -v '^ *+' conftest.er1 >conftest.err
3423 cat conftest.err >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } >/dev/null && {
3426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3427 test ! -s conftest.err
3429 # Broken: success on invalid input.
3432 echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3435 # Passes both tests.
3440 rm -f conftest.err conftest.$ac_ext
3443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3444 rm -f conftest.err conftest.$ac_ext
3445 if $ac_preproc_ok; then
3448 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3449 See \`config.log' for more details." >&5
3450 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3451 See \`config.log' for more details." >&2;}
3452 { (exit 1); exit 1; }; }
3456 ac_cpp='$CPP $CPPFLAGS'
3457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3463 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3464 if test "${ac_cv_path_GREP+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 # Extract the first word of "grep ggrep" to use in msg output
3468 if test -z "$GREP"; then
3469 set dummy grep ggrep; ac_prog_name=$2
3470 if test "${ac_cv_path_GREP+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 ac_path_GREP_found=false
3474 # Loop through the user's path and test for each of PROGNAME-LIST
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3479 test -z "$as_dir" && as_dir=.
3480 for ac_prog in grep ggrep; do
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3483 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3484 # Check for GNU ac_path_GREP and select it if it is found.
3485 # Check for GNU $ac_path_GREP
3486 case `"$ac_path_GREP" --version 2>&1` in
3488 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3491 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3494 cat "conftest.in" "conftest.in" >"conftest.tmp"
3495 mv "conftest.tmp" "conftest.in"
3496 cp "conftest.in" "conftest.nl"
3497 echo 'GREP' >> "conftest.nl"
3498 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3500 ac_count=`expr $ac_count + 1`
3501 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3502 # Best one so far, save it but keep looking for a better one
3503 ac_cv_path_GREP="$ac_path_GREP"
3504 ac_path_GREP_max=$ac_count
3506 # 10*(2^10) chars as input seems more than enough
3507 test $ac_count -gt 10 && break
3509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3513 $ac_path_GREP_found && break 3
3523 GREP="$ac_cv_path_GREP"
3524 if test -z "$GREP"; then
3525 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3526 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3527 { (exit 1); exit 1; }; }
3531 ac_cv_path_GREP=$GREP
3536 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3537 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3538 GREP="$ac_cv_path_GREP"
3541 { echo "$as_me:$LINENO: checking for egrep" >&5
3542 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3543 if test "${ac_cv_path_EGREP+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3547 then ac_cv_path_EGREP="$GREP -E"
3549 # Extract the first word of "egrep" to use in msg output
3550 if test -z "$EGREP"; then
3551 set dummy egrep; ac_prog_name=$2
3552 if test "${ac_cv_path_EGREP+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 ac_path_EGREP_found=false
3556 # Loop through the user's path and test for each of PROGNAME-LIST
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3561 test -z "$as_dir" && as_dir=.
3562 for ac_prog in egrep; do
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3565 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3566 # Check for GNU ac_path_EGREP and select it if it is found.
3567 # Check for GNU $ac_path_EGREP
3568 case `"$ac_path_EGREP" --version 2>&1` in
3570 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3573 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3576 cat "conftest.in" "conftest.in" >"conftest.tmp"
3577 mv "conftest.tmp" "conftest.in"
3578 cp "conftest.in" "conftest.nl"
3579 echo 'EGREP' >> "conftest.nl"
3580 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3582 ac_count=`expr $ac_count + 1`
3583 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3584 # Best one so far, save it but keep looking for a better one
3585 ac_cv_path_EGREP="$ac_path_EGREP"
3586 ac_path_EGREP_max=$ac_count
3588 # 10*(2^10) chars as input seems more than enough
3589 test $ac_count -gt 10 && break
3591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3595 $ac_path_EGREP_found && break 3
3605 EGREP="$ac_cv_path_EGREP"
3606 if test -z "$EGREP"; then
3607 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3608 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3609 { (exit 1); exit 1; }; }
3613 ac_cv_path_EGREP=$EGREP
3619 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3620 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3621 EGREP="$ac_cv_path_EGREP"
3625 { echo "$as_me:$LINENO: checking for AIX" >&5
3626 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3627 cat >conftest.$ac_ext <<_ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h. */
3638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3639 $EGREP "yes" >/dev/null 2>&1; then
3640 { echo "$as_me:$LINENO: result: yes" >&5
3641 echo "${ECHO_T}yes" >&6; }
3642 cat >>confdefs.h <<\_ACEOF
3643 #define _ALL_SOURCE 1
3647 { echo "$as_me:$LINENO: result: no" >&5
3648 echo "${ECHO_T}no" >&6; }
3654 if test $ac_cv_c_compiler_gnu = yes; then
3655 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3656 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3657 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 ac_pattern="Autoconf.*'x'"
3661 cat >conftest.$ac_ext <<_ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3671 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3672 ac_cv_prog_gcc_traditional=yes
3674 ac_cv_prog_gcc_traditional=no
3679 if test $ac_cv_prog_gcc_traditional = no; then
3680 cat >conftest.$ac_ext <<_ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3690 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3691 ac_cv_prog_gcc_traditional=yes
3697 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3698 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3699 if test $ac_cv_prog_gcc_traditional = yes; then
3700 CC="$CC -traditional"
3704 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3705 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3706 if test "${ac_cv_prog_suncc+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 cat > conftest.c <<EOF
3714 if { ac_try='${CC-cc} -E conftest.c'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3720 ac_cv_prog_suncc=yes
3725 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3726 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3727 if test -n "$ac_tool_prefix"; then
3728 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3729 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3732 if test "${ac_cv_prog_RANLIB+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 if test -n "$RANLIB"; then
3736 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 test -z "$as_dir" && as_dir=.
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3745 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 RANLIB=$ac_cv_prog_RANLIB
3756 if test -n "$RANLIB"; then
3757 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3758 echo "${ECHO_T}$RANLIB" >&6; }
3760 { echo "$as_me:$LINENO: result: no" >&5
3761 echo "${ECHO_T}no" >&6; }
3766 if test -z "$ac_cv_prog_RANLIB"; then
3767 ac_ct_RANLIB=$RANLIB
3768 # Extract the first word of "ranlib", so it can be a program name with args.
3769 set dummy ranlib; ac_word=$2
3770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3772 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 if test -n "$ac_ct_RANLIB"; then
3776 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 test -z "$as_dir" && as_dir=.
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3785 ac_cv_prog_ac_ct_RANLIB="ranlib"
3786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3796 if test -n "$ac_ct_RANLIB"; then
3797 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3798 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3800 { echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6; }
3804 if test "x$ac_ct_RANLIB" = x; then
3807 case $cross_compiling:$ac_tool_warned in
3809 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3810 whose name does not start with the host triplet. If you think this
3811 configuration is useful to you, please write to autoconf@gnu.org." >&5
3812 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3813 whose name does not start with the host triplet. If you think this
3814 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3815 ac_tool_warned=yes ;;
3817 RANLIB=$ac_ct_RANLIB
3820 RANLIB="$ac_cv_prog_RANLIB"
3824 # Check whether --enable-largefile was given.
3825 if test "${enable_largefile+set}" = set; then
3826 enableval=$enable_largefile;
3829 if test "$enable_largefile" != no; then
3831 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3832 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3833 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 ac_cv_sys_largefile_CC=no
3837 if test "$GCC" != yes; then
3840 # IRIX 6.2 and later do not support large files by default,
3841 # so use the C compiler's -n32 option if that helps.
3842 cat >conftest.$ac_ext <<_ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3848 #include <sys/types.h>
3849 /* Check that off_t can represent 2**63 - 1 correctly.
3850 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3851 since some C++ compilers masquerading as C compilers
3852 incorrectly reject 9223372036854775807. */
3853 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3854 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3855 && LARGE_OFF_T % 2147483647 == 1)
3865 rm -f conftest.$ac_objext
3866 if { (ac_try="$ac_compile"
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872 (eval "$ac_compile") 2>conftest.er1
3874 grep -v '^ *+' conftest.er1 >conftest.err
3876 cat conftest.err >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } && {
3879 test -z "$ac_c_werror_flag" ||
3880 test ! -s conftest.err
3881 } && test -s conftest.$ac_objext; then
3884 echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3890 rm -f core conftest.err conftest.$ac_objext
3892 rm -f conftest.$ac_objext
3893 if { (ac_try="$ac_compile"
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3899 (eval "$ac_compile") 2>conftest.er1
3901 grep -v '^ *+' conftest.er1 >conftest.err
3903 cat conftest.err >&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); } && {
3906 test -z "$ac_c_werror_flag" ||
3907 test ! -s conftest.err
3908 } && test -s conftest.$ac_objext; then
3909 ac_cv_sys_largefile_CC=' -n32'; break
3911 echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3917 rm -f core conftest.err conftest.$ac_objext
3921 rm -f conftest.$ac_ext
3924 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3925 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3926 if test "$ac_cv_sys_largefile_CC" != no; then
3927 CC=$CC$ac_cv_sys_largefile_CC
3930 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3931 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3932 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 cat >conftest.$ac_ext <<_ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3942 #include <sys/types.h>
3943 /* Check that off_t can represent 2**63 - 1 correctly.
3944 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3945 since some C++ compilers masquerading as C compilers
3946 incorrectly reject 9223372036854775807. */
3947 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3948 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3949 && LARGE_OFF_T % 2147483647 == 1)
3959 rm -f conftest.$ac_objext
3960 if { (ac_try="$ac_compile"
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 (eval "$ac_compile") 2>conftest.er1
3968 grep -v '^ *+' conftest.er1 >conftest.err
3970 cat conftest.err >&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } && {
3973 test -z "$ac_c_werror_flag" ||
3974 test ! -s conftest.err
3975 } && test -s conftest.$ac_objext; then
3976 ac_cv_sys_file_offset_bits=no; break
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 cat >conftest.$ac_ext <<_ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
3991 #define _FILE_OFFSET_BITS 64
3992 #include <sys/types.h>
3993 /* Check that off_t can represent 2**63 - 1 correctly.
3994 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3995 since some C++ compilers masquerading as C compilers
3996 incorrectly reject 9223372036854775807. */
3997 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3998 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3999 && LARGE_OFF_T % 2147483647 == 1)
4009 rm -f conftest.$ac_objext
4010 if { (ac_try="$ac_compile"
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016 (eval "$ac_compile") 2>conftest.er1
4018 grep -v '^ *+' conftest.er1 >conftest.err
4020 cat conftest.err >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); } && {
4023 test -z "$ac_c_werror_flag" ||
4024 test ! -s conftest.err
4025 } && test -s conftest.$ac_objext; then
4026 ac_cv_sys_file_offset_bits=64; break
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035 ac_cv_sys_file_offset_bits=unknown
4039 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4040 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4041 case $ac_cv_sys_file_offset_bits in #(
4044 cat >>confdefs.h <<_ACEOF
4045 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4050 if test $ac_cv_sys_file_offset_bits = unknown; then
4051 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4052 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4053 if test "${ac_cv_sys_large_files+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 cat >conftest.$ac_ext <<_ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4063 #include <sys/types.h>
4064 /* Check that off_t can represent 2**63 - 1 correctly.
4065 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4066 since some C++ compilers masquerading as C compilers
4067 incorrectly reject 9223372036854775807. */
4068 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4069 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4070 && LARGE_OFF_T % 2147483647 == 1)
4080 rm -f conftest.$ac_objext
4081 if { (ac_try="$ac_compile"
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_compile") 2>conftest.er1
4089 grep -v '^ *+' conftest.er1 >conftest.err
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } && {
4094 test -z "$ac_c_werror_flag" ||
4095 test ! -s conftest.err
4096 } && test -s conftest.$ac_objext; then
4097 ac_cv_sys_large_files=no; break
4099 echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 cat >conftest.$ac_ext <<_ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h. */
4112 #define _LARGE_FILES 1
4113 #include <sys/types.h>
4114 /* Check that off_t can represent 2**63 - 1 correctly.
4115 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4116 since some C++ compilers masquerading as C compilers
4117 incorrectly reject 9223372036854775807. */
4118 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4119 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4120 && LARGE_OFF_T % 2147483647 == 1)
4130 rm -f conftest.$ac_objext
4131 if { (ac_try="$ac_compile"
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_compile") 2>conftest.er1
4139 grep -v '^ *+' conftest.er1 >conftest.err
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } && {
4144 test -z "$ac_c_werror_flag" ||
4145 test ! -s conftest.err
4146 } && test -s conftest.$ac_objext; then
4147 ac_cv_sys_large_files=1; break
4149 echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 ac_cv_sys_large_files=unknown
4160 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4161 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4162 case $ac_cv_sys_large_files in #(
4165 cat >>confdefs.h <<_ACEOF
4166 #define _LARGE_FILES $ac_cv_sys_large_files
4175 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4176 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4177 if test "${ac_cv_header_stdc+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4199 rm -f conftest.$ac_objext
4200 if { (ac_try="$ac_compile"
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4206 (eval "$ac_compile") 2>conftest.er1
4208 grep -v '^ *+' conftest.er1 >conftest.err
4210 cat conftest.err >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } && {
4213 test -z "$ac_c_werror_flag" ||
4214 test ! -s conftest.err
4215 } && test -s conftest.$ac_objext; then
4216 ac_cv_header_stdc=yes
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4221 ac_cv_header_stdc=no
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 if test $ac_cv_header_stdc = yes; then
4227 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4228 cat >conftest.$ac_ext <<_ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4238 $EGREP "memchr" >/dev/null 2>&1; then
4241 ac_cv_header_stdc=no
4247 if test $ac_cv_header_stdc = yes; then
4248 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4249 cat >conftest.$ac_ext <<_ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4259 $EGREP "free" >/dev/null 2>&1; then
4262 ac_cv_header_stdc=no
4268 if test $ac_cv_header_stdc = yes; then
4269 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4270 if test "$cross_compiling" = yes; then
4273 cat >conftest.$ac_ext <<_ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h. */
4281 #if ((' ' & 0x0FF) == 0x020)
4282 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4283 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4285 # define ISLOWER(c) \
4286 (('a' <= (c) && (c) <= 'i') \
4287 || ('j' <= (c) && (c) <= 'r') \
4288 || ('s' <= (c) && (c) <= 'z'))
4289 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4292 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4297 for (i = 0; i < 256; i++)
4298 if (XOR (islower (i), ISLOWER (i))
4299 || toupper (i) != TOUPPER (i))
4304 rm -f conftest$ac_exeext
4305 if { (ac_try="$ac_link"
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_link") 2>&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4315 { (case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_try") 2>&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4326 echo "$as_me: program exited with status $ac_status" >&5
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4331 ac_cv_header_stdc=no
4333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4339 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4340 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4341 if test $ac_cv_header_stdc = yes; then
4343 cat >>confdefs.h <<\_ACEOF
4344 #define STDC_HEADERS 1
4349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4359 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4360 inttypes.h stdint.h unistd.h
4362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 cat >conftest.$ac_ext <<_ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4374 $ac_includes_default
4376 #include <$ac_header>
4378 rm -f conftest.$ac_objext
4379 if { (ac_try="$ac_compile"
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4385 (eval "$ac_compile") 2>conftest.er1
4387 grep -v '^ *+' conftest.er1 >conftest.err
4389 cat conftest.err >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } && {
4392 test -z "$ac_c_werror_flag" ||
4393 test ! -s conftest.err
4394 } && test -s conftest.$ac_objext; then
4395 eval "$as_ac_Header=yes"
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4400 eval "$as_ac_Header=no"
4403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405 ac_res=`eval echo '${'$as_ac_Header'}'`
4406 { echo "$as_me:$LINENO: result: $ac_res" >&5
4407 echo "${ECHO_T}$ac_res" >&6; }
4408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4409 cat >>confdefs.h <<_ACEOF
4410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4418 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4419 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4420 if test "${ac_cv_c_bigendian+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 # See if sys/param.h defines the BYTE_ORDER macro.
4424 cat >conftest.$ac_ext <<_ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4430 #include <sys/types.h>
4431 #include <sys/param.h>
4436 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4437 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4445 rm -f conftest.$ac_objext
4446 if { (ac_try="$ac_compile"
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452 (eval "$ac_compile") 2>conftest.er1
4454 grep -v '^ *+' conftest.er1 >conftest.err
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } && {
4459 test -z "$ac_c_werror_flag" ||
4460 test ! -s conftest.err
4461 } && test -s conftest.$ac_objext; then
4462 # It does; now see whether it defined to BIG_ENDIAN or not.
4463 cat >conftest.$ac_ext <<_ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4469 #include <sys/types.h>
4470 #include <sys/param.h>
4475 #if BYTE_ORDER != BIG_ENDIAN
4483 rm -f conftest.$ac_objext
4484 if { (ac_try="$ac_compile"
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490 (eval "$ac_compile") 2>conftest.er1
4492 grep -v '^ *+' conftest.er1 >conftest.err
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } && {
4497 test -z "$ac_c_werror_flag" ||
4498 test ! -s conftest.err
4499 } && test -s conftest.$ac_objext; then
4500 ac_cv_c_bigendian=yes
4502 echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.$ac_ext >&5
4505 ac_cv_c_bigendian=no
4508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4513 # It does not; compile a test program.
4514 if test "$cross_compiling" = yes; then
4515 # try to guess the endianness by grepping values into an object file
4516 ac_cv_c_bigendian=unknown
4517 cat >conftest.$ac_ext <<_ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h. */
4523 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4524 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4525 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4526 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4527 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4528 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4532 _ascii (); _ebcdic ();
4537 rm -f conftest.$ac_objext
4538 if { (ac_try="$ac_compile"
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544 (eval "$ac_compile") 2>conftest.er1
4546 grep -v '^ *+' conftest.er1 >conftest.err
4548 cat conftest.err >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } && {
4551 test -z "$ac_c_werror_flag" ||
4552 test ! -s conftest.err
4553 } && test -s conftest.$ac_objext; then
4554 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4555 ac_cv_c_bigendian=yes
4557 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4558 if test "$ac_cv_c_bigendian" = unknown; then
4559 ac_cv_c_bigendian=no
4561 # finding both strings is unlikely to happen, but who knows?
4562 ac_cv_c_bigendian=unknown
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 cat >conftest.$ac_ext <<_ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4580 $ac_includes_default
4585 /* Are we little or big endian? From Harbison&Steele. */
4589 char c[sizeof (long int)];
4592 return u.c[sizeof (long int) - 1] == 1;
4598 rm -f conftest$ac_exeext
4599 if { (ac_try="$ac_link"
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_link") 2>&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4609 { (case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614 (eval "$ac_try") 2>&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4618 ac_cv_c_bigendian=no
4620 echo "$as_me: program exited with status $ac_status" >&5
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4625 ac_cv_c_bigendian=yes
4627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4636 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4637 case $ac_cv_c_bigendian in
4640 cat >>confdefs.h <<\_ACEOF
4641 #define WORDS_BIGENDIAN 1
4647 { { echo "$as_me:$LINENO: error: unknown endianness
4648 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4649 echo "$as_me: error: unknown endianness
4650 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4651 { (exit 1); exit 1; }; } ;;
4655 # Extract the first word of "gmake", so it can be a program name with args.
4656 set dummy gmake; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_prog_GMAKE+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 if test -n "$GMAKE"; then
4663 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_prog_GMAKE="yes"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4683 GMAKE=$ac_cv_prog_GMAKE
4684 if test -n "$GMAKE"; then
4685 { echo "$as_me:$LINENO: result: $GMAKE" >&5
4686 echo "${ECHO_T}$GMAKE" >&6; }
4688 { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4693 if test $GMAKE = no; then
4694 # Extract the first word of "make", so it can be a program name with args.
4695 set dummy make; ac_word=$2
4696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698 if test "${ac_cv_path_MAKE+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4713 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4725 MAKE=$ac_cv_path_MAKE
4726 if test -n "$MAKE"; then
4727 { echo "$as_me:$LINENO: result: $MAKE" >&5
4728 echo "${ECHO_T}$MAKE" >&6; }
4730 { echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6; }
4736 # Extract the first word of "gmake", so it can be a program name with args.
4737 set dummy gmake; ac_word=$2
4738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4740 if test "${ac_cv_path_MAKE+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4755 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4767 MAKE=$ac_cv_path_MAKE
4768 if test -n "$MAKE"; then
4769 { echo "$as_me:$LINENO: result: $MAKE" >&5
4770 echo "${ECHO_T}$MAKE" >&6; }
4772 { echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6; }
4778 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4779 if test -z "$makever"; then
4780 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
4781 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4782 echo "$as_me: error: GNU Make is not installed. Please download and install it
4783 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4784 { (exit 1); exit 1; }; }
4787 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4788 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4789 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 ac_check_lib_save_LIBS=$LIBS
4794 cat >conftest.$ac_ext <<_ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4801 /* Override any GCC internal prototype to avoid an error.
4802 Use char because int might match the return type of a GCC
4803 builtin and then its argument prototype would still apply. */
4811 return lt_dlinit ();
4816 rm -f conftest.$ac_objext conftest$ac_exeext
4817 if { (ac_try="$ac_link"
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823 (eval "$ac_link") 2>conftest.er1
4825 grep -v '^ *+' conftest.er1 >conftest.err
4827 cat conftest.err >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } && {
4830 test -z "$ac_c_werror_flag" ||
4831 test ! -s conftest.err
4832 } && test -s conftest$ac_exeext &&
4833 $as_test_x conftest$ac_exeext; then
4834 ac_cv_lib_ltdl_lt_dlinit=yes
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4839 ac_cv_lib_ltdl_lt_dlinit=no
4842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4843 conftest$ac_exeext conftest.$ac_ext
4844 LIBS=$ac_check_lib_save_LIBS
4846 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4847 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4848 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4849 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4851 if test x"$enable_ltdl_install" = xno; then
4852 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4853 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4855 enable_ltdl_install=yes
4860 if test x"$enable_ltdl_install" = x"yes"; then
4861 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4862 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4863 LTDLINCL='-I${top_srcdir}/''libltdl'
4865 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4869 # For backwards non-gettext consistent compatibility...
4873 if test x"$enable_ltdl_install" = x"yes"; then
4874 LTDL_SUBDIRS=libltdl
4878 # Check whether --enable-shared was given.
4879 if test "${enable_shared+set}" = set; then
4880 enableval=$enable_shared; p=${PACKAGE-default}
4882 yes) enable_shared=yes ;;
4883 no) enable_shared=no ;;
4886 # Look at the argument we got. We use all the common list separators.
4887 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4888 for pkg in $enableval; do
4890 if test "X$pkg" = "X$p"; then
4902 # Check whether --enable-static was given.
4903 if test "${enable_static+set}" = set; then
4904 enableval=$enable_static; p=${PACKAGE-default}
4906 yes) enable_static=yes ;;
4907 no) enable_static=no ;;
4910 # Look at the argument we got. We use all the common list separators.
4911 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4912 for pkg in $enableval; do
4914 if test "X$pkg" = "X$p"; then
4926 # Check whether --enable-fast-install was given.
4927 if test "${enable_fast_install+set}" = set; then
4928 enableval=$enable_fast_install; p=${PACKAGE-default}
4930 yes) enable_fast_install=yes ;;
4931 no) enable_fast_install=no ;;
4933 enable_fast_install=no
4934 # Look at the argument we got. We use all the common list separators.
4935 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4936 for pkg in $enableval; do
4938 if test "X$pkg" = "X$p"; then
4939 enable_fast_install=yes
4946 enable_fast_install=yes
4951 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4952 if test -f "$ac_dir/install-sh"; then
4954 ac_install_sh="$ac_aux_dir/install-sh -c"
4956 elif test -f "$ac_dir/install.sh"; then
4958 ac_install_sh="$ac_aux_dir/install.sh -c"
4960 elif test -f "$ac_dir/shtool"; then
4962 ac_install_sh="$ac_aux_dir/shtool install -c"
4966 if test -z "$ac_aux_dir"; then
4967 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4968 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4969 { (exit 1); exit 1; }; }
4972 # These three variables are undocumented and unsupported,
4973 # and are intended to be withdrawn in a future Autoconf release.
4974 # They can cause serious problems if a builder's source tree is in a directory
4975 # whose full name contains unusual characters.
4976 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4977 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4978 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4981 # Make sure we can run config.sub.
4982 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4983 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4984 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4985 { (exit 1); exit 1; }; }
4987 { echo "$as_me:$LINENO: checking build system type" >&5
4988 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4989 if test "${ac_cv_build+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 ac_build_alias=$build_alias
4993 test "x$ac_build_alias" = x &&
4994 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4995 test "x$ac_build_alias" = x &&
4996 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4997 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4998 { (exit 1); exit 1; }; }
4999 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5000 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5001 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5002 { (exit 1); exit 1; }; }
5005 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5006 echo "${ECHO_T}$ac_cv_build" >&6; }
5007 case $ac_cv_build in
5009 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5010 echo "$as_me: error: invalid value of canonical build" >&2;}
5011 { (exit 1); exit 1; }; };;
5014 ac_save_IFS=$IFS; IFS='-'
5020 # Remember, the first character of IFS is used to create $*,
5021 # except with old shells:
5024 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5027 { echo "$as_me:$LINENO: checking host system type" >&5
5028 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5029 if test "${ac_cv_host+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 if test "x$host_alias" = x; then
5033 ac_cv_host=$ac_cv_build
5035 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5036 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5037 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5038 { (exit 1); exit 1; }; }
5042 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5043 echo "${ECHO_T}$ac_cv_host" >&6; }
5046 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5047 echo "$as_me: error: invalid value of canonical host" >&2;}
5048 { (exit 1); exit 1; }; };;
5051 ac_save_IFS=$IFS; IFS='-'
5057 # Remember, the first character of IFS is used to create $*,
5058 # except with old shells:
5061 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5064 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5065 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5066 if test "${lt_cv_path_SED+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 # Loop through the user's path and test for sed and gsed.
5070 # Then use that list of sed's as ones to test for truncation.
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 test -z "$as_dir" && as_dir=.
5076 for lt_ac_prog in sed gsed; do
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5079 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5086 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5087 # along with /bin/sed that truncates output.
5088 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5089 test ! -f $lt_ac_sed && continue
5090 cat /dev/null > conftest.in
5092 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5093 # Check for GNU sed and select it if it is found.
5094 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5095 lt_cv_path_SED=$lt_ac_sed
5099 cat conftest.in conftest.in >conftest.tmp
5100 mv conftest.tmp conftest.in
5101 cp conftest.in conftest.nl
5103 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5104 cmp -s conftest.out conftest.nl || break
5105 # 10000 chars as input seems more than enough
5106 test $lt_ac_count -gt 10 && break
5107 lt_ac_count=`expr $lt_ac_count + 1`
5108 if test $lt_ac_count -gt $lt_ac_max; then
5109 lt_ac_max=$lt_ac_count
5110 lt_cv_path_SED=$lt_ac_sed
5118 { echo "$as_me:$LINENO: result: $SED" >&5
5119 echo "${ECHO_T}$SED" >&6; }
5122 # Check whether --with-gnu-ld was given.
5123 if test "${with_gnu_ld+set}" = set; then
5124 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5130 if test "$GCC" = yes; then
5131 # Check if gcc -print-prog-name=ld gives a path.
5132 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5133 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5136 # gcc leaves a trailing carriage return which upsets mingw
5137 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5139 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5142 # Accept absolute paths.
5144 re_direlt='/[^/][^/]*/\.\./'
5145 # Canonicalize the pathname of ld
5146 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5147 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5148 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5150 test -z "$LD" && LD="$ac_prog"
5153 # If it fails, then pretend we aren't using GCC.
5157 # If it is relative, then search for the first ld in PATH.
5161 elif test "$with_gnu_ld" = yes; then
5162 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5163 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5165 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5166 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5168 if test "${lt_cv_path_LD+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 if test -z "$LD"; then
5172 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5173 for ac_dir in $PATH; do
5175 test -z "$ac_dir" && ac_dir=.
5176 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5177 lt_cv_path_LD="$ac_dir/$ac_prog"
5178 # Check to see if the program is GNU ld. I'd rather use --version,
5179 # but apparently some variants of GNU ld only accept -v.
5180 # Break only if it was the GNU/non-GNU ld that we prefer.
5181 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5182 *GNU* | *'with BFD'*)
5183 test "$with_gnu_ld" != no && break
5186 test "$with_gnu_ld" != yes && break
5193 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5198 if test -n "$LD"; then
5199 { echo "$as_me:$LINENO: result: $LD" >&5
5200 echo "${ECHO_T}$LD" >&6; }
5202 { echo "$as_me:$LINENO: result: no" >&5
5203 echo "${ECHO_T}no" >&6; }
5205 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5206 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5207 { (exit 1); exit 1; }; }
5208 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5209 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5210 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5214 case `$LD -v 2>&1 </dev/null` in
5215 *GNU* | *'with BFD'*)
5216 lt_cv_prog_gnu_ld=yes
5219 lt_cv_prog_gnu_ld=no
5223 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5224 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5225 with_gnu_ld=$lt_cv_prog_gnu_ld
5228 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5229 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5230 if test "${lt_cv_ld_reload_flag+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 lt_cv_ld_reload_flag='-r'
5235 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5236 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5237 reload_flag=$lt_cv_ld_reload_flag
5238 case $reload_flag in
5240 *) reload_flag=" $reload_flag" ;;
5242 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5245 if test "$GCC" = yes; then
5246 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5248 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5253 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5254 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5255 if test "${lt_cv_path_NM+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 if test -n "$NM"; then
5259 # Let the user override the test.
5262 lt_nm_to_check="${ac_tool_prefix}nm"
5263 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5264 lt_nm_to_check="$lt_nm_to_check nm"
5266 for lt_tmp_nm in $lt_nm_to_check; do
5267 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5268 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5270 test -z "$ac_dir" && ac_dir=.
5271 tmp_nm="$ac_dir/$lt_tmp_nm"
5272 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5273 # Check to see if the nm accepts a BSD-compat flag.
5274 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5275 # nm: unknown option "B" ignored
5276 # Tru64's nm complains that /dev/null is an invalid object file
5277 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5278 */dev/null* | *'Invalid file or object type'*)
5279 lt_cv_path_NM="$tmp_nm -B"
5283 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5285 lt_cv_path_NM="$tmp_nm -p"
5289 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5290 continue # so that we can try to find one that supports BSD flags
5299 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5302 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5303 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5306 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5307 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5309 if test "$LN_S" = "ln -s"; then
5310 { echo "$as_me:$LINENO: result: yes" >&5
5311 echo "${ECHO_T}yes" >&6; }
5313 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5314 echo "${ECHO_T}no, using $LN_S" >&6; }
5317 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5318 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5319 if test "${lt_cv_deplibs_check_method+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 lt_cv_file_magic_cmd='$MAGIC_CMD'
5323 lt_cv_file_magic_test_file=
5324 lt_cv_deplibs_check_method='unknown'
5325 # Need to set the preceding variable on all platforms that support
5326 # interlibrary dependencies.
5327 # 'none' -- dependencies not supported.
5328 # `unknown' -- same as none, but documents that we really don't know.
5329 # 'pass_all' -- all dependencies passed with no checks.
5330 # 'test_compile' -- check by making test program.
5331 # 'file_magic [[regex]]' -- check by looking for files in library path
5332 # which responds to the $file_magic_cmd with a given extended regex.
5333 # If you have `file' or equivalent on your system and you're not sure
5334 # whether `pass_all' will *always* work, you probably want this one.
5338 lt_cv_deplibs_check_method=pass_all
5342 lt_cv_deplibs_check_method=pass_all
5346 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5347 lt_cv_file_magic_cmd='/usr/bin/file -L'
5348 lt_cv_file_magic_test_file=/shlib/libc.so
5352 # func_win32_libid is a shell function defined in ltmain.sh
5353 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5354 lt_cv_file_magic_cmd='func_win32_libid'
5358 # Base MSYS/MinGW do not provide the 'file' command needed by
5359 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5360 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5361 lt_cv_file_magic_cmd='$OBJDUMP -f'
5364 darwin* | rhapsody*)
5365 lt_cv_deplibs_check_method=pass_all
5368 freebsd* | kfreebsd*-gnu | dragonfly*)
5369 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5372 # Not sure whether the presence of OpenBSD here was a mistake.
5373 # Let's accept both of them until this is cleared up.
5374 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5375 lt_cv_file_magic_cmd=/usr/bin/file
5376 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5380 lt_cv_deplibs_check_method=pass_all
5385 lt_cv_deplibs_check_method=pass_all
5388 hpux10.20* | hpux11*)
5389 lt_cv_file_magic_cmd=/usr/bin/file
5392 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5393 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5396 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]'
5397 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5400 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5401 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5407 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5411 irix5* | irix6* | nonstopux*)
5413 *-32|*"-32 ") libmagic=32-bit;;
5414 *-n32|*"-n32 ") libmagic=N32;;
5415 *-64|*"-64 ") libmagic=64-bit;;
5416 *) libmagic=never-match;;
5418 lt_cv_deplibs_check_method=pass_all
5421 # This must be Linux ELF.
5423 lt_cv_deplibs_check_method=pass_all
5427 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5430 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5435 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5436 lt_cv_file_magic_cmd=/usr/bin/file
5437 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5441 lt_cv_deplibs_check_method=unknown
5445 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5446 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5448 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5452 osf3* | osf4* | osf5*)
5453 lt_cv_deplibs_check_method=pass_all
5457 lt_cv_deplibs_check_method=pass_all
5461 case $host_vendor in
5463 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]'
5464 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5467 lt_cv_deplibs_check_method=pass_all
5470 lt_cv_file_magic_cmd='/bin/file'
5471 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5474 lt_cv_file_magic_cmd='/bin/file'
5475 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5476 lt_cv_file_magic_test_file=/lib/libc.so
5479 lt_cv_deplibs_check_method=pass_all
5482 lt_cv_deplibs_check_method=pass_all
5487 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5488 lt_cv_deplibs_check_method=pass_all
5493 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5494 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5495 file_magic_cmd=$lt_cv_file_magic_cmd
5496 deplibs_check_method=$lt_cv_deplibs_check_method
5497 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5502 # If no C compiler was specified, use CC.
5505 # If no C compiler flags were specified, use CFLAGS.
5506 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5508 # Allow CC to be a program name with arguments.
5511 # Check whether --enable-libtool-lock was given.
5512 if test "${enable_libtool_lock+set}" = set; then
5513 enableval=$enable_libtool_lock;
5516 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5518 # Some flags need to be propagated to the compiler or linker for good
5522 # Find out which ABI we are using.
5523 echo 'int i;' > conftest.$ac_ext
5524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5525 (eval $ac_compile) 2>&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; then
5529 case `/usr/bin/file conftest.$ac_objext` in
5541 # Find out which ABI we are using.
5542 echo '#line 5542 "configure"' > conftest.$ac_ext
5543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5544 (eval $ac_compile) 2>&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; then
5548 if test "$lt_cv_prog_gnu_ld" = yes; then
5549 case `/usr/bin/file conftest.$ac_objext` in
5551 LD="${LD-ld} -melf32bsmip"
5554 LD="${LD-ld} -melf32bmipn32"
5557 LD="${LD-ld} -melf64bmip"
5561 case `/usr/bin/file conftest.$ac_objext` in
5577 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5578 # Find out which ABI we are using.
5579 echo 'int i;' > conftest.$ac_ext
5580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5581 (eval $ac_compile) 2>&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; then
5585 case `/usr/bin/file conftest.o` in
5589 LD="${LD-ld} -m elf_i386"
5591 ppc64-*linux*|powerpc64-*linux*)
5592 LD="${LD-ld} -m elf32ppclinux"
5595 LD="${LD-ld} -m elf_s390"
5598 LD="${LD-ld} -m elf32_sparc"
5605 LD="${LD-ld} -m elf_x86_64"
5607 ppc*-*linux*|powerpc*-*linux*)
5608 LD="${LD-ld} -m elf64ppc"
5611 LD="${LD-ld} -m elf64_s390"
5614 LD="${LD-ld} -m elf64_sparc"
5624 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5625 SAVE_CFLAGS="$CFLAGS"
5626 CFLAGS="$CFLAGS -belf"
5627 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5628 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5629 if test "${lt_cv_cc_needs_belf+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 ac_cpp='$CPP $CPPFLAGS'
5634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5638 cat >conftest.$ac_ext <<_ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5653 rm -f conftest.$ac_objext conftest$ac_exeext
5654 if { (ac_try="$ac_link"
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660 (eval "$ac_link") 2>conftest.er1
5662 grep -v '^ *+' conftest.er1 >conftest.err
5664 cat conftest.err >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } && {
5667 test -z "$ac_c_werror_flag" ||
5668 test ! -s conftest.err
5669 } && test -s conftest$ac_exeext &&
5670 $as_test_x conftest$ac_exeext; then
5671 lt_cv_cc_needs_belf=yes
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5676 lt_cv_cc_needs_belf=no
5679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5680 conftest$ac_exeext conftest.$ac_ext
5682 ac_cpp='$CPP $CPPFLAGS'
5683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5688 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5689 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5690 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5691 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5692 CFLAGS="$SAVE_CFLAGS"
5696 # Find out which ABI we are using.
5697 echo 'int i;' > conftest.$ac_ext
5698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5699 (eval $ac_compile) 2>&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; then
5703 case `/usr/bin/file conftest.o` in
5705 case $lt_cv_prog_gnu_ld in
5706 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5707 *) LD="${LD-ld} -64" ;;
5718 need_locks="$enable_libtool_lock"
5722 for ac_header in dlfcn.h
5724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 ac_res=`eval echo '${'$as_ac_Header'}'`
5732 { echo "$as_me:$LINENO: result: $ac_res" >&5
5733 echo "${ECHO_T}$ac_res" >&6; }
5735 # Is the header compilable?
5736 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5738 cat >conftest.$ac_ext <<_ACEOF
5741 cat confdefs.h >>conftest.$ac_ext
5742 cat >>conftest.$ac_ext <<_ACEOF
5743 /* end confdefs.h. */
5744 $ac_includes_default
5745 #include <$ac_header>
5747 rm -f conftest.$ac_objext
5748 if { (ac_try="$ac_compile"
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_compile") 2>conftest.er1
5756 grep -v '^ *+' conftest.er1 >conftest.err
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } && {
5761 test -z "$ac_c_werror_flag" ||
5762 test ! -s conftest.err
5763 } && test -s conftest.$ac_objext; then
5764 ac_header_compiler=yes
5766 echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5769 ac_header_compiler=no
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5774 echo "${ECHO_T}$ac_header_compiler" >&6; }
5776 # Is the header present?
5777 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5779 cat >conftest.$ac_ext <<_ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5785 #include <$ac_header>
5787 if { (ac_try="$ac_cpp conftest.$ac_ext"
5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790 *) ac_try_echo=$ac_try;;
5792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5795 grep -v '^ *+' conftest.er1 >conftest.err
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } >/dev/null && {
5800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5801 test ! -s conftest.err
5803 ac_header_preproc=yes
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5808 ac_header_preproc=no
5811 rm -f conftest.err conftest.$ac_ext
5812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5813 echo "${ECHO_T}$ac_header_preproc" >&6; }
5815 # So? What about this header?
5816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5822 ac_header_preproc=yes
5825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 eval "$as_ac_Header=\$ac_header_preproc"
5847 ac_res=`eval echo '${'$as_ac_Header'}'`
5848 { echo "$as_me:$LINENO: result: $ac_res" >&5
5849 echo "${ECHO_T}$ac_res" >&6; }
5852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5853 cat >>confdefs.h <<_ACEOF
5854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5863 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5864 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5865 (test "X$CXX" != "Xg++"))) ; then
5867 ac_cpp='$CXXCPP $CPPFLAGS'
5868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5871 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5872 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5873 if test -z "$CXXCPP"; then
5874 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 # Double quotes because CXXCPP needs to be expanded
5878 for CXXCPP in "$CXX -E" "/lib/cpp"
5881 for ac_cxx_preproc_warn_flag in '' yes
5883 # Use a header file that comes with gcc, so configuring glibc
5884 # with a fresh cross-compiler works.
5885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5886 # <limits.h> exists even on freestanding compilers.
5887 # On the NeXT, cc -E runs the code through the compiler's parser,
5888 # not just through cpp. "Syntax error" is here to catch this case.
5889 cat >conftest.$ac_ext <<_ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5896 # include <limits.h>
5898 # include <assert.h>
5902 if { (ac_try="$ac_cpp conftest.$ac_ext"
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5910 grep -v '^ *+' conftest.er1 >conftest.err
5912 cat conftest.err >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } >/dev/null && {
5915 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5916 test ! -s conftest.err
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5923 # Broken: fails on valid input.
5927 rm -f conftest.err conftest.$ac_ext
5929 # OK, works on sane cases. Now check whether nonexistent headers
5930 # can be detected and how.
5931 cat >conftest.$ac_ext <<_ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5937 #include <ac_nonexistent.h>
5939 if { (ac_try="$ac_cpp conftest.$ac_ext"
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5947 grep -v '^ *+' conftest.er1 >conftest.err
5949 cat conftest.err >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } >/dev/null && {
5952 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5953 test ! -s conftest.err
5955 # Broken: success on invalid input.
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5961 # Passes both tests.
5966 rm -f conftest.err conftest.$ac_ext
5969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5970 rm -f conftest.err conftest.$ac_ext
5971 if $ac_preproc_ok; then
5976 ac_cv_prog_CXXCPP=$CXXCPP
5979 CXXCPP=$ac_cv_prog_CXXCPP
5981 ac_cv_prog_CXXCPP=$CXXCPP
5983 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5984 echo "${ECHO_T}$CXXCPP" >&6; }
5986 for ac_cxx_preproc_warn_flag in '' yes
5988 # Use a header file that comes with gcc, so configuring glibc
5989 # with a fresh cross-compiler works.
5990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5991 # <limits.h> exists even on freestanding compilers.
5992 # On the NeXT, cc -E runs the code through the compiler's parser,
5993 # not just through cpp. "Syntax error" is here to catch this case.
5994 cat >conftest.$ac_ext <<_ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6001 # include <limits.h>
6003 # include <assert.h>
6007 if { (ac_try="$ac_cpp conftest.$ac_ext"
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6015 grep -v '^ *+' conftest.er1 >conftest.err
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } >/dev/null && {
6020 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6021 test ! -s conftest.err
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6028 # Broken: fails on valid input.
6032 rm -f conftest.err conftest.$ac_ext
6034 # OK, works on sane cases. Now check whether nonexistent headers
6035 # can be detected and how.
6036 cat >conftest.$ac_ext <<_ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 #include <ac_nonexistent.h>
6044 if { (ac_try="$ac_cpp conftest.$ac_ext"
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6052 grep -v '^ *+' conftest.er1 >conftest.err
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } >/dev/null && {
6057 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6058 test ! -s conftest.err
6060 # Broken: success on invalid input.
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6066 # Passes both tests.
6071 rm -f conftest.err conftest.$ac_ext
6074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6075 rm -f conftest.err conftest.$ac_ext
6076 if $ac_preproc_ok; then
6079 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6080 See \`config.log' for more details." >&5
6081 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6082 See \`config.log' for more details." >&2;}
6083 { (exit 1); exit 1; }; }
6087 ac_cpp='$CXXCPP $CPPFLAGS'
6088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6096 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6097 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6099 if test -n "$ac_tool_prefix"; then
6100 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
6102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6106 if test "${ac_cv_prog_F77+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 if test -n "$F77"; then
6110 ac_cv_prog_F77="$F77" # Let the user override the test.
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 test -z "$as_dir" && as_dir=.
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6119 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 if test -n "$F77"; then
6131 { echo "$as_me:$LINENO: result: $F77" >&5
6132 echo "${ECHO_T}$F77" >&6; }
6134 { echo "$as_me:$LINENO: result: no" >&5
6135 echo "${ECHO_T}no" >&6; }
6139 test -n "$F77" && break
6142 if test -z "$F77"; then
6144 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
6146 # Extract the first word of "$ac_prog", so it can be a program name with args.
6147 set dummy $ac_prog; ac_word=$2
6148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 if test -n "$ac_ct_F77"; then
6154 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 test -z "$as_dir" && as_dir=.
6161 for ac_exec_ext in '' $ac_executable_extensions; do
6162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6163 ac_cv_prog_ac_ct_F77="$ac_prog"
6164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6174 if test -n "$ac_ct_F77"; then
6175 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6176 echo "${ECHO_T}$ac_ct_F77" >&6; }
6178 { echo "$as_me:$LINENO: result: no" >&5
6179 echo "${ECHO_T}no" >&6; }
6183 test -n "$ac_ct_F77" && break
6186 if test "x$ac_ct_F77" = x; then
6189 case $cross_compiling:$ac_tool_warned in
6191 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6192 whose name does not start with the host triplet. If you think this
6193 configuration is useful to you, please write to autoconf@gnu.org." >&5
6194 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6195 whose name does not start with the host triplet. If you think this
6196 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6197 ac_tool_warned=yes ;;
6204 # Provide some information about the compiler.
6205 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6206 ac_compiler=`set X $ac_compile; echo $2`
6207 { (ac_try="$ac_compiler --version >&5"
6209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210 *) ac_try_echo=$ac_try;;
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213 (eval "$ac_compiler --version >&5") 2>&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }
6217 { (ac_try="$ac_compiler -v >&5"
6219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220 *) ac_try_echo=$ac_try;;
6222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6223 (eval "$ac_compiler -v >&5") 2>&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }
6227 { (ac_try="$ac_compiler -V >&5"
6229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6230 *) ac_try_echo=$ac_try;;
6232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6233 (eval "$ac_compiler -V >&5") 2>&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }
6239 # If we don't use `.F' as extension, the preprocessor is not run on the
6240 # input file. (Note that this only needs to work for GNU compilers.)
6243 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6244 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6245 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 cat >conftest.$ac_ext <<_ACEOF
6256 rm -f conftest.$ac_objext
6257 if { (ac_try="$ac_compile"
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_compile") 2>conftest.er1
6265 grep -v '^ *+' conftest.er1 >conftest.err
6267 cat conftest.err >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } && {
6270 test -z "$ac_f77_werror_flag" ||
6271 test ! -s conftest.err
6272 } && test -s conftest.$ac_objext; then
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6285 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6286 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6288 ac_test_FFLAGS=${FFLAGS+set}
6289 ac_save_FFLAGS=$FFLAGS
6291 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6292 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6293 if test "${ac_cv_prog_f77_g+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 cat >conftest.$ac_ext <<_ACEOF
6302 rm -f conftest.$ac_objext
6303 if { (ac_try="$ac_compile"
6305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306 *) ac_try_echo=$ac_try;;
6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309 (eval "$ac_compile") 2>conftest.er1
6311 grep -v '^ *+' conftest.er1 >conftest.err
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } && {
6316 test -z "$ac_f77_werror_flag" ||
6317 test ! -s conftest.err
6318 } && test -s conftest.$ac_objext; then
6319 ac_cv_prog_f77_g=yes
6321 echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6331 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6332 if test "$ac_test_FFLAGS" = set; then
6333 FFLAGS=$ac_save_FFLAGS
6334 elif test $ac_cv_prog_f77_g = yes; then
6335 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6341 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6348 G77=`test $ac_compiler_gnu = yes && echo yes`
6350 ac_cpp='$CPP $CPPFLAGS'
6351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6357 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6359 # find the maximum length of command line arguments
6360 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6361 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6362 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 # On DJGPP, this test can blow up pretty badly due to problems in libc
6371 # (any single argument exceeding 2000 bytes causes a buffer overrun
6372 # during glob expansion). Even if it were fixed, the result of this
6373 # check would be larger than it should be.
6374 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6378 # Under GNU Hurd, this test is not required because there is
6379 # no limit to the length of command line arguments.
6380 # Libtool will interpret -1 as no limit whatsoever
6381 lt_cv_sys_max_cmd_len=-1;
6385 # On Win9x/ME, this test blows up -- it succeeds, but takes
6386 # about 5 minutes as the teststring grows exponentially.
6387 # Worse, since 9x/ME are not pre-emptively multitasking,
6388 # you end up with a "frozen" computer, even though with patience
6389 # the test eventually succeeds (with a max line length of 256k).
6390 # Instead, let's just punt: use the minimum linelength reported by
6391 # all of the supported platforms: 8192 (on NT/2K/XP).
6392 lt_cv_sys_max_cmd_len=8192;
6396 # On AmigaOS with pdksh, this test takes hours, literally.
6397 # So we just punt and use a minimum line length of 8192.
6398 lt_cv_sys_max_cmd_len=8192;
6401 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6402 # This has been around since 386BSD, at least. Likely further.
6403 if test -x /sbin/sysctl; then
6404 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6405 elif test -x /usr/sbin/sysctl; then
6406 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6408 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6410 # And add a safety zone
6411 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6412 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6416 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6417 lt_cv_sys_max_cmd_len=196608
6421 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6422 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6423 # nice to cause kernel panics so lets avoid the loop below.
6424 # First set a reasonable default.
6425 lt_cv_sys_max_cmd_len=16384
6427 if test -x /sbin/sysconfig; then
6428 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6429 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6434 lt_cv_sys_max_cmd_len=102400
6436 sysv5* | sco5v6* | sysv4.2uw2*)
6437 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6438 if test -n "$kargmax"; then
6439 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6441 lt_cv_sys_max_cmd_len=32768
6445 # If test is not a shell built-in, we'll probably end up computing a
6446 # maximum length that is only half of the actual maximum length, but
6448 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6449 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6450 = "XX$teststring") >/dev/null 2>&1 &&
6451 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6452 lt_cv_sys_max_cmd_len=$new_result &&
6453 test $i != 17 # 1/2 MB should be enough
6456 teststring=$teststring$teststring
6459 # Add a significant safety factor because C++ compilers can tack on massive
6460 # amounts of additional arguments before passing them to the linker.
6461 # It appears as though 1/2 is a usable value.
6462 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6468 if test -n $lt_cv_sys_max_cmd_len ; then
6469 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6470 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6472 { echo "$as_me:$LINENO: result: none" >&5
6473 echo "${ECHO_T}none" >&6; }
6479 # Check for command to grab the raw symbol name followed by C symbol from nm.
6480 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6481 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6482 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 # These are sane defaults that work on at least a few old systems.
6487 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6489 # Character class describing NM global symbol codes.
6490 symcode='[BCDEGRST]'
6492 # Regexp to match symbols that can be accessed directly from C.
6493 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6495 # Transform an extracted symbol line into a proper C declaration
6496 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6498 # Transform an extracted symbol line into symbol name and symbol address
6499 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'"
6501 # Define system-specific variables.
6506 cygwin* | mingw* | pw32*)
6507 symcode='[ABCDGISTW]'
6509 hpux*) # Its linker distinguishes data from code symbols
6510 if test "$host_cpu" = ia64; then
6511 symcode='[ABCDEGRST]'
6513 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6514 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'"
6517 if test "$host_cpu" = ia64; then
6518 symcode='[ABCDGIRSTW]'
6519 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6520 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'"
6524 symcode='[BCDEGRST]'
6527 symcode='[BCDEGQRST]'
6538 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6546 # Handle CRLF in mingw tool chain
6550 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6554 # If we're using GNU nm, then use its standard symbol codes.
6555 case `$NM -V 2>&1` in
6556 *GNU* | *'with BFD'*)
6557 symcode='[ABCDGIRSTW]' ;;
6560 # Try without a prefix undercore, then with it.
6561 for ac_symprfx in "" "_"; do
6563 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6564 symxfrm="\\1 $ac_symprfx\\2 \\2"
6566 # Write the raw and C identifiers.
6567 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6569 # Check to see that the pipe works correctly.
6573 cat > conftest.$ac_ext <<EOF
6578 void nm_test_func(){}
6582 int main(){nm_test_var='a';nm_test_func();return(0);}
6585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6586 (eval $ac_compile) 2>&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; then
6590 # Now try to grab the symbols.
6592 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6593 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } && test -s "$nlist"; then
6597 # Try sorting and uniquifying the output.
6598 if sort "$nlist" | uniq > "$nlist"T; then
6599 mv -f "$nlist"T "$nlist"
6604 # Make sure that we snagged all the symbols we need.
6605 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6606 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6607 cat <<EOF > conftest.$ac_ext
6613 # Now generate the symbol file.
6614 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6616 cat <<EOF >> conftest.$ac_ext
6617 #if defined (__STDC__) && __STDC__
6618 # define lt_ptr_t void *
6620 # define lt_ptr_t char *
6624 /* The mapping between symbol names and symbols. */
6629 lt_preloaded_symbols[] =
6632 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6633 cat <<\EOF >> conftest.$ac_ext
6641 # Now try linking the two files.
6642 mv conftest.$ac_objext conftstm.$ac_objext
6643 lt_save_LIBS="$LIBS"
6644 lt_save_CFLAGS="$CFLAGS"
6645 LIBS="conftstm.$ac_objext"
6646 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6648 (eval $ac_link) 2>&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6654 LIBS="$lt_save_LIBS"
6655 CFLAGS="$lt_save_CFLAGS"
6657 echo "cannot find nm_test_func in $nlist" >&5
6660 echo "cannot find nm_test_var in $nlist" >&5
6663 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6666 echo "$progname: failed program was:" >&5
6667 cat conftest.$ac_ext >&5
6669 rm -f conftest* conftst*
6671 # Do not use the global_symbol_pipe unless it works.
6672 if test "$pipe_works" = yes; then
6675 lt_cv_sys_global_symbol_pipe=
6681 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6682 lt_cv_sys_global_symbol_to_cdecl=
6684 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6685 { echo "$as_me:$LINENO: result: failed" >&5
6686 echo "${ECHO_T}failed" >&6; }
6688 { echo "$as_me:$LINENO: result: ok" >&5
6689 echo "${ECHO_T}ok" >&6; }
6692 { echo "$as_me:$LINENO: checking for objdir" >&5
6693 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6694 if test "${lt_cv_objdir+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6697 rm -f .libs 2>/dev/null
6698 mkdir .libs 2>/dev/null
6699 if test -d .libs; then
6702 # MS-DOS does not allow filenames that begin with a dot.
6705 rmdir .libs 2>/dev/null
6707 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6708 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6709 objdir=$lt_cv_objdir
6717 # AIX sometimes has problems with the GCC collect2 program. For some
6718 # reason, if we set the COLLECT_NAMES environment variable, the problems
6719 # vanish in a puff of smoke.
6720 if test "X${COLLECT_NAMES+set}" != Xset; then
6722 export COLLECT_NAMES
6727 # Sed substitution that helps us do robust quoting. It backslashifies
6728 # metacharacters that are still active within double-quoted strings.
6729 Xsed='sed -e 1s/^X//'
6730 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6732 # Same as above, but do not quote variable references.
6733 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6735 # Sed substitution to delay expansion of an escaped shell variable in a
6736 # double_quote_subst'ed string.
6737 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6739 # Sed substitution to avoid accidental globbing in evaled expressions
6740 no_glob_subst='s/\*/\\\*/g'
6746 default_ofile=libtool
6747 can_build_shared=yes
6749 # All known linkers require a `.a' archive for static linking (except MSVC,
6750 # which needs '.lib').
6752 ltmain="$ac_aux_dir/ltmain.sh"
6753 ofile="$default_ofile"
6754 with_gnu_ld="$lt_cv_prog_gnu_ld"
6756 if test -n "$ac_tool_prefix"; then
6757 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6758 set dummy ${ac_tool_prefix}ar; ac_word=$2
6759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761 if test "${ac_cv_prog_AR+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 if test -n "$AR"; then
6765 ac_cv_prog_AR="$AR" # Let the user override the test.
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_prog_AR="${ac_tool_prefix}ar"
6775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 if test -n "$AR"; then
6786 { echo "$as_me:$LINENO: result: $AR" >&5
6787 echo "${ECHO_T}$AR" >&6; }
6789 { echo "$as_me:$LINENO: result: no" >&5
6790 echo "${ECHO_T}no" >&6; }
6795 if test -z "$ac_cv_prog_AR"; then
6797 # Extract the first word of "ar", so it can be a program name with args.
6798 set dummy ar; ac_word=$2
6799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6801 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 if test -n "$ac_ct_AR"; then
6805 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_prog_ac_ct_AR="ar"
6815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6825 if test -n "$ac_ct_AR"; then
6826 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6827 echo "${ECHO_T}$ac_ct_AR" >&6; }
6829 { echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6; }
6833 if test "x$ac_ct_AR" = x; then
6836 case $cross_compiling:$ac_tool_warned in
6838 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6839 whose name does not start with the host triplet. If you think this
6840 configuration is useful to you, please write to autoconf@gnu.org." >&5
6841 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6842 whose name does not start with the host triplet. If you think this
6843 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6844 ac_tool_warned=yes ;;
6852 if test -n "$ac_tool_prefix"; then
6853 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6854 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6857 if test "${ac_cv_prog_RANLIB+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 if test -n "$RANLIB"; then
6861 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6870 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 RANLIB=$ac_cv_prog_RANLIB
6881 if test -n "$RANLIB"; then
6882 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6883 echo "${ECHO_T}$RANLIB" >&6; }
6885 { echo "$as_me:$LINENO: result: no" >&5
6886 echo "${ECHO_T}no" >&6; }
6891 if test -z "$ac_cv_prog_RANLIB"; then
6892 ac_ct_RANLIB=$RANLIB
6893 # Extract the first word of "ranlib", so it can be a program name with args.
6894 set dummy ranlib; ac_word=$2
6895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6897 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 if test -n "$ac_ct_RANLIB"; then
6901 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6910 ac_cv_prog_ac_ct_RANLIB="ranlib"
6911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6921 if test -n "$ac_ct_RANLIB"; then
6922 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6923 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6925 { echo "$as_me:$LINENO: result: no" >&5
6926 echo "${ECHO_T}no" >&6; }
6929 if test "x$ac_ct_RANLIB" = x; then
6932 case $cross_compiling:$ac_tool_warned in
6934 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6935 whose name does not start with the host triplet. If you think this
6936 configuration is useful to you, please write to autoconf@gnu.org." >&5
6937 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6938 whose name does not start with the host triplet. If you think this
6939 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6940 ac_tool_warned=yes ;;
6942 RANLIB=$ac_ct_RANLIB
6945 RANLIB="$ac_cv_prog_RANLIB"
6948 if test -n "$ac_tool_prefix"; then
6949 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6950 set dummy ${ac_tool_prefix}strip; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_prog_STRIP+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 if test -n "$STRIP"; then
6957 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6966 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 STRIP=$ac_cv_prog_STRIP
6977 if test -n "$STRIP"; then
6978 { echo "$as_me:$LINENO: result: $STRIP" >&5
6979 echo "${ECHO_T}$STRIP" >&6; }
6981 { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6987 if test -z "$ac_cv_prog_STRIP"; then
6989 # Extract the first word of "strip", so it can be a program name with args.
6990 set dummy strip; ac_word=$2
6991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 if test -n "$ac_ct_STRIP"; then
6997 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7006 ac_cv_prog_ac_ct_STRIP="strip"
7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7016 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7017 if test -n "$ac_ct_STRIP"; then
7018 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7019 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7021 { echo "$as_me:$LINENO: result: no" >&5
7022 echo "${ECHO_T}no" >&6; }
7025 if test "x$ac_ct_STRIP" = x; then
7028 case $cross_compiling:$ac_tool_warned in
7030 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7031 whose name does not start with the host triplet. If you think this
7032 configuration is useful to you, please write to autoconf@gnu.org." >&5
7033 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7034 whose name does not start with the host triplet. If you think this
7035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7036 ac_tool_warned=yes ;;
7041 STRIP="$ac_cv_prog_STRIP"
7046 old_CFLAGS="$CFLAGS"
7048 # Set sane defaults for various variables
7049 test -z "$AR" && AR=ar
7050 test -z "$AR_FLAGS" && AR_FLAGS=cru
7051 test -z "$AS" && AS=as
7052 test -z "$CC" && CC=cc
7053 test -z "$LTCC" && LTCC=$CC
7054 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7055 test -z "$DLLTOOL" && DLLTOOL=dlltool
7056 test -z "$LD" && LD=ld
7057 test -z "$LN_S" && LN_S="ln -s"
7058 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7059 test -z "$NM" && NM=nm
7060 test -z "$SED" && SED=sed
7061 test -z "$OBJDUMP" && OBJDUMP=objdump
7062 test -z "$RANLIB" && RANLIB=:
7063 test -z "$STRIP" && STRIP=:
7064 test -z "$ac_objext" && ac_objext=o
7066 # Determine commands to create old-style static archives.
7067 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7068 old_postinstall_cmds='chmod 644 $oldlib'
7069 old_postuninstall_cmds=
7071 if test -n "$RANLIB"; then
7074 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7077 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7080 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7083 for cc_temp in $compiler""; do
7085 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7086 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7091 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7094 # Only perform the check for file, if the check method requires it
7095 case $deplibs_check_method in
7097 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7098 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7099 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7100 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7108 lt_save_MAGIC_CMD="$MAGIC_CMD"
7109 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7110 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7111 for ac_dir in $ac_dummy; do
7113 test -z "$ac_dir" && ac_dir=.
7114 if test -f $ac_dir/${ac_tool_prefix}file; then
7115 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7116 if test -n "$file_magic_test_file"; then
7117 case $deplibs_check_method in
7119 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7120 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7121 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7122 $EGREP "$file_magic_regex" > /dev/null; then
7127 *** Warning: the command libtool uses to detect shared libraries,
7128 *** $file_magic_cmd, produces output that libtool cannot recognize.
7129 *** The result is that libtool may fail to recognize shared libraries
7130 *** as such. This will affect the creation of libtool libraries that
7131 *** depend on shared libraries, but programs linked with such libtool
7132 *** libraries will work regardless of this problem. Nevertheless, you
7133 *** may want to report the problem to your system manager and/or to
7134 *** bug-libtool@gnu.org
7144 MAGIC_CMD="$lt_save_MAGIC_CMD"
7149 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7150 if test -n "$MAGIC_CMD"; then
7151 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7152 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7154 { echo "$as_me:$LINENO: result: no" >&5
7155 echo "${ECHO_T}no" >&6; }
7158 if test -z "$lt_cv_path_MAGIC_CMD"; then
7159 if test -n "$ac_tool_prefix"; then
7160 { echo "$as_me:$LINENO: checking for file" >&5
7161 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7162 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7170 lt_save_MAGIC_CMD="$MAGIC_CMD"
7171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7172 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7173 for ac_dir in $ac_dummy; do
7175 test -z "$ac_dir" && ac_dir=.
7176 if test -f $ac_dir/file; then
7177 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7178 if test -n "$file_magic_test_file"; then
7179 case $deplibs_check_method in
7181 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7183 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7184 $EGREP "$file_magic_regex" > /dev/null; then
7189 *** Warning: the command libtool uses to detect shared libraries,
7190 *** $file_magic_cmd, produces output that libtool cannot recognize.
7191 *** The result is that libtool may fail to recognize shared libraries
7192 *** as such. This will affect the creation of libtool libraries that
7193 *** depend on shared libraries, but programs linked with such libtool
7194 *** libraries will work regardless of this problem. Nevertheless, you
7195 *** may want to report the problem to your system manager and/or to
7196 *** bug-libtool@gnu.org
7206 MAGIC_CMD="$lt_save_MAGIC_CMD"
7211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7212 if test -n "$MAGIC_CMD"; then
7213 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7214 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7216 { echo "$as_me:$LINENO: result: no" >&5
7217 echo "${ECHO_T}no" >&6; }
7232 # Check whether --enable-libtool-lock was given.
7233 if test "${enable_libtool_lock+set}" = set; then
7234 enableval=$enable_libtool_lock;
7237 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7240 # Check whether --with-pic was given.
7241 if test "${with_pic+set}" = set; then
7242 withval=$with_pic; pic_mode="$withval"
7247 test -z "$pic_mode" && pic_mode=default
7249 # Use C for the default configuration in the libtool script
7253 ac_cpp='$CPP $CPPFLAGS'
7254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7259 # Source file extension for C test sources.
7262 # Object file extension for compiled C test sources.
7266 # Code to be used in simple compile tests
7267 lt_simple_compile_test_code="int some_variable = 0;\n"
7269 # Code to be used in simple link tests
7270 lt_simple_link_test_code='int main(){return(0);}\n'
7273 # If no C compiler was specified, use CC.
7276 # If no C compiler flags were specified, use CFLAGS.
7277 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7279 # Allow CC to be a program name with arguments.
7283 # save warnings/boilerplate of simple test code
7284 ac_outfile=conftest.$ac_objext
7285 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7286 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7287 _lt_compiler_boilerplate=`cat conftest.err`
7290 ac_outfile=conftest.$ac_objext
7291 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7292 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7293 _lt_linker_boilerplate=`cat conftest.err`
7298 ## There is no encapsulation within the following macros, do not change
7299 ## the running order or otherwise move them around unless you know exactly
7300 ## what you are doing...
7302 lt_prog_compiler_no_builtin_flag=
7304 if test "$GCC" = yes; then
7305 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7308 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7309 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7310 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 lt_cv_prog_compiler_rtti_exceptions=no
7314 ac_outfile=conftest.$ac_objext
7315 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7316 lt_compiler_flag="-fno-rtti -fno-exceptions"
7317 # Insert the option either (1) after the last *FLAGS variable, or
7318 # (2) before a word containing "conftest.", or (3) at the end.
7319 # Note that $ac_compile itself does not contain backslashes and begins
7320 # with a dollar sign (not a hyphen), so the echo should work correctly.
7321 # The option is referenced via a variable to avoid confusing sed.
7322 lt_compile=`echo "$ac_compile" | $SED \
7323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7325 -e 's:$: $lt_compiler_flag:'`
7326 (eval echo "\"\$as_me:7326: $lt_compile\"" >&5)
7327 (eval "$lt_compile" 2>conftest.err)
7329 cat conftest.err >&5
7330 echo "$as_me:7330: \$? = $ac_status" >&5
7331 if (exit $ac_status) && test -s "$ac_outfile"; then
7332 # The compiler can only warn and ignore the option if not recognized
7333 # So say no if there are warnings other than the usual output.
7334 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7335 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7336 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7337 lt_cv_prog_compiler_rtti_exceptions=yes
7343 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7344 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7346 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7347 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7354 lt_prog_compiler_wl=
7355 lt_prog_compiler_pic=
7356 lt_prog_compiler_static=
7358 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7359 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7361 if test "$GCC" = yes; then
7362 lt_prog_compiler_wl='-Wl,'
7363 lt_prog_compiler_static='-static'
7367 # All AIX code is PIC.
7368 if test "$host_cpu" = ia64; then
7369 # AIX 5 now supports IA64 processor
7370 lt_prog_compiler_static='-Bstatic'
7375 # FIXME: we need at least 68020 code to build shared libraries, but
7376 # adding the `-m68020' flag to GCC prevents building anything better,
7378 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7381 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7382 # PIC is the default for these OSes.
7385 mingw* | pw32* | os2*)
7386 # This hack is so that the source file can tell whether it is being
7387 # built for inclusion in a dll (and should export symbols for example).
7388 lt_prog_compiler_pic='-DDLL_EXPORT'
7391 darwin* | rhapsody*)
7392 # PIC is the default on this platform
7393 # Common symbols not allowed in MH_DYLIB files
7394 lt_prog_compiler_pic='-fno-common'
7398 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7399 # Instead, we relocate shared libraries at runtime.
7403 # Just because we use GCC doesn't mean we suddenly get shared libraries
7404 # on systems that don't support them.
7405 lt_prog_compiler_can_build_shared=no
7410 if test -d /usr/nec; then
7411 lt_prog_compiler_pic=-Kconform_pic
7416 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7423 lt_prog_compiler_pic='-fPIC'
7429 lt_prog_compiler_pic='-fPIC'
7433 # PORTME Check for flag to pass linker flags through the system compiler.
7436 lt_prog_compiler_wl='-Wl,'
7437 if test "$host_cpu" = ia64; then
7438 # AIX 5 now supports IA64 processor
7439 lt_prog_compiler_static='-Bstatic'
7441 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7445 # PIC is the default on this platform
7446 # Common symbols not allowed in MH_DYLIB files
7447 case $cc_basename in
7449 lt_prog_compiler_pic='-qnocommon'
7450 lt_prog_compiler_wl='-Wl,'
7455 mingw* | pw32* | os2*)
7456 # This hack is so that the source file can tell whether it is being
7457 # built for inclusion in a dll (and should export symbols for example).
7458 lt_prog_compiler_pic='-DDLL_EXPORT'
7461 hpux9* | hpux10* | hpux11*)
7462 lt_prog_compiler_wl='-Wl,'
7463 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7470 lt_prog_compiler_pic='+Z'
7473 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7474 lt_prog_compiler_static='${wl}-a ${wl}archive'
7477 irix5* | irix6* | nonstopux*)
7478 lt_prog_compiler_wl='-Wl,'
7479 # PIC (with -KPIC) is the default.
7480 lt_prog_compiler_static='-non_shared'
7484 lt_prog_compiler_pic='-KPIC'
7485 lt_prog_compiler_static='-Bstatic'
7489 case $cc_basename in
7491 lt_prog_compiler_wl='-Wl,'
7492 lt_prog_compiler_pic='-KPIC'
7493 lt_prog_compiler_static='-static'
7495 pgcc* | pgf77* | pgf90* | pgf95*)
7496 # Portland Group compilers (*not* the Pentium gcc compiler,
7497 # which looks to be a dead project)
7498 lt_prog_compiler_wl='-Wl,'
7499 lt_prog_compiler_pic='-fpic'
7500 lt_prog_compiler_static='-Bstatic'
7503 lt_prog_compiler_wl='-Wl,'
7504 # All Alpha code is PIC.
7505 lt_prog_compiler_static='-non_shared'
7510 osf3* | osf4* | osf5*)
7511 lt_prog_compiler_wl='-Wl,'
7512 # All OSF/1 code is PIC.
7513 lt_prog_compiler_static='-non_shared'
7517 lt_prog_compiler_pic='-KPIC'
7518 lt_prog_compiler_static='-Bstatic'
7519 case $cc_basename in
7521 lt_prog_compiler_wl='-Qoption ld ';;
7523 lt_prog_compiler_wl='-Wl,';;
7528 lt_prog_compiler_wl='-Qoption ld '
7529 lt_prog_compiler_pic='-PIC'
7530 lt_prog_compiler_static='-Bstatic'
7533 sysv4 | sysv4.2uw2* | sysv4.3*)
7534 lt_prog_compiler_wl='-Wl,'
7535 lt_prog_compiler_pic='-KPIC'
7536 lt_prog_compiler_static='-Bstatic'
7540 if test -d /usr/nec ;then
7541 lt_prog_compiler_pic='-Kconform_pic'
7542 lt_prog_compiler_static='-Bstatic'
7546 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7547 lt_prog_compiler_wl='-Wl,'
7548 lt_prog_compiler_pic='-KPIC'
7549 lt_prog_compiler_static='-Bstatic'
7553 lt_prog_compiler_wl='-Wl,'
7554 lt_prog_compiler_can_build_shared=no
7558 lt_prog_compiler_pic='-pic'
7559 lt_prog_compiler_static='-Bstatic'
7563 lt_prog_compiler_can_build_shared=no
7568 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7569 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7572 # Check to make sure the PIC flag actually works.
7574 if test -n "$lt_prog_compiler_pic"; then
7576 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7577 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7578 if test "${lt_prog_compiler_pic_works+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 lt_prog_compiler_pic_works=no
7582 ac_outfile=conftest.$ac_objext
7583 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7584 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7585 # Insert the option either (1) after the last *FLAGS variable, or
7586 # (2) before a word containing "conftest.", or (3) at the end.
7587 # Note that $ac_compile itself does not contain backslashes and begins
7588 # with a dollar sign (not a hyphen), so the echo should work correctly.
7589 # The option is referenced via a variable to avoid confusing sed.
7590 lt_compile=`echo "$ac_compile" | $SED \
7591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7593 -e 's:$: $lt_compiler_flag:'`
7594 (eval echo "\"\$as_me:7594: $lt_compile\"" >&5)
7595 (eval "$lt_compile" 2>conftest.err)
7597 cat conftest.err >&5
7598 echo "$as_me:7598: \$? = $ac_status" >&5
7599 if (exit $ac_status) && test -s "$ac_outfile"; then
7600 # The compiler can only warn and ignore the option if not recognized
7601 # So say no if there are warnings other than the usual output.
7602 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7604 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7605 lt_prog_compiler_pic_works=yes
7611 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7612 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7614 if test x"$lt_prog_compiler_pic_works" = xyes; then
7615 case $lt_prog_compiler_pic in
7617 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7620 lt_prog_compiler_pic=
7621 lt_prog_compiler_can_build_shared=no
7626 # For platforms which do not support PIC, -DPIC is meaningless:
7628 lt_prog_compiler_pic=
7631 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7636 # Check to make sure the static flag actually works.
7638 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7639 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7640 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7641 if test "${lt_prog_compiler_static_works+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 lt_prog_compiler_static_works=no
7645 save_LDFLAGS="$LDFLAGS"
7646 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7647 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7648 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7649 # The linker can only warn and ignore the option if not recognized
7650 # So say no if there are warnings
7651 if test -s conftest.err; then
7652 # Append any errors to the config.log.
7653 cat conftest.err 1>&5
7654 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7655 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7656 if diff conftest.exp conftest.er2 >/dev/null; then
7657 lt_prog_compiler_static_works=yes
7660 lt_prog_compiler_static_works=yes
7664 LDFLAGS="$save_LDFLAGS"
7667 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7668 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7670 if test x"$lt_prog_compiler_static_works" = xyes; then
7673 lt_prog_compiler_static=
7677 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7678 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7679 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 lt_cv_prog_compiler_c_o=no
7683 $rm -r conftest 2>/dev/null
7687 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7689 lt_compiler_flag="-o out/conftest2.$ac_objext"
7690 # Insert the option either (1) after the last *FLAGS variable, or
7691 # (2) before a word containing "conftest.", or (3) at the end.
7692 # Note that $ac_compile itself does not contain backslashes and begins
7693 # with a dollar sign (not a hyphen), so the echo should work correctly.
7694 lt_compile=`echo "$ac_compile" | $SED \
7695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7697 -e 's:$: $lt_compiler_flag:'`
7698 (eval echo "\"\$as_me:7698: $lt_compile\"" >&5)
7699 (eval "$lt_compile" 2>out/conftest.err)
7701 cat out/conftest.err >&5
7702 echo "$as_me:7702: \$? = $ac_status" >&5
7703 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7705 # The compiler can only warn and ignore the option if not recognized
7706 # So say no if there are warnings
7707 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7708 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7709 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7710 lt_cv_prog_compiler_c_o=yes
7715 # SGI C++ compiler will create directory out/ii_files/ for
7716 # template instantiation
7717 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7718 $rm out/* && rmdir out
7724 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7725 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7728 hard_links="nottested"
7729 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7730 # do not overwrite the value of need_locks provided by the user
7731 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7732 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7735 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7737 ln conftest.a conftest.b 2>&5 || hard_links=no
7738 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7739 { echo "$as_me:$LINENO: result: $hard_links" >&5
7740 echo "${ECHO_T}$hard_links" >&6; }
7741 if test "$hard_links" = no; then
7742 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7743 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7750 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7751 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7754 allow_undefined_flag=
7755 enable_shared_with_static_runtimes=no
7757 archive_expsym_cmds=
7758 old_archive_From_new_cmds=
7759 old_archive_from_expsyms_cmds=
7760 export_dynamic_flag_spec=
7761 whole_archive_flag_spec=
7762 thread_safe_flag_spec=
7763 hardcode_libdir_flag_spec=
7764 hardcode_libdir_flag_spec_ld=
7765 hardcode_libdir_separator=
7768 hardcode_shlibpath_var=unsupported
7769 link_all_deplibs=unknown
7770 hardcode_automatic=no
7773 always_export_symbols=no
7774 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7775 # include_expsyms should be a list of space-separated symbols to be *always*
7776 # included in the symbol list
7778 # exclude_expsyms can be an extended regexp of symbols to exclude
7779 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7780 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7781 # as well as any symbol that contains `d'.
7782 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7783 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7784 # platforms (ab)use it in PIC code, but their linkers get confused if
7785 # the symbol is explicitly referenced. Since portable code cannot
7786 # rely on this symbol name, it's probably fine to never include it in
7787 # preloaded symbol tables.
7788 extract_expsyms_cmds=
7789 # Just being paranoid about ensuring that cc_basename is set.
7790 for cc_temp in $compiler""; do
7792 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7793 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7798 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7801 cygwin* | mingw* | pw32*)
7802 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7803 # When not using gcc, we currently assume that we are using
7804 # Microsoft Visual C++.
7805 if test "$GCC" != yes; then
7810 # we just hope/assume this is gcc and not c89 (= MSVC++)
7819 if test "$with_gnu_ld" = yes; then
7820 # If archive_cmds runs LD, not CC, wlarc should be empty
7823 # Set some defaults for GNU ld with shared library support. These
7824 # are reset later if shared libraries are not supported. Putting them
7825 # here allows them to be overridden if necessary.
7826 runpath_var=LD_RUN_PATH
7827 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7828 export_dynamic_flag_spec='${wl}--export-dynamic'
7829 # ancient GNU ld didn't support --whole-archive et. al.
7830 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7831 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7833 whole_archive_flag_spec=
7835 supports_anon_versioning=no
7836 case `$LD -v 2>/dev/null` in
7837 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7838 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7839 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7840 *\ 2.11.*) ;; # other 2.11 versions
7841 *) supports_anon_versioning=yes ;;
7844 # See if GNU ld supports shared libraries.
7846 aix3* | aix4* | aix5*)
7847 # On AIX/PPC, the GNU linker is very broken
7848 if test "$host_cpu" != ia64; then
7852 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7853 *** to be unable to reliably create shared libraries on AIX.
7854 *** Therefore, libtool is disabling shared libraries support. If you
7855 *** really care for shared libraries, you may want to modify your PATH
7856 *** so that a non-GNU linker is found, and then restart.
7863 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)'
7864 hardcode_libdir_flag_spec='-L$libdir'
7865 hardcode_minus_L=yes
7867 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7868 # that the semantics of dynamic libraries on AmigaOS, at least up
7869 # to version 4, is to share data among multiple programs linked
7870 # with the same dynamic library. Since this doesn't match the
7871 # behavior of shared libraries on other platforms, we can't use
7877 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7878 allow_undefined_flag=unsupported
7879 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7880 # support --undefined. This deserves some investigation. FIXME
7881 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7887 cygwin* | mingw* | pw32*)
7888 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7889 # as there is no search path for DLLs.
7890 hardcode_libdir_flag_spec='-L$libdir'
7891 allow_undefined_flag=unsupported
7892 always_export_symbols=no
7893 enable_shared_with_static_runtimes=yes
7894 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7896 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7898 # If the export-symbols file already is a .def file (1st line
7899 # is EXPORTS), use it as is; otherwise, prepend...
7900 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7901 cp $export_symbols $output_objdir/$soname.def;
7903 echo EXPORTS > $output_objdir/$soname.def;
7904 cat $export_symbols >> $output_objdir/$soname.def;
7906 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7914 hardcode_shlibpath_var=no
7915 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7916 export_dynamic_flag_spec='${wl}-E'
7917 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7918 # Instead, shared libraries are loaded at an image base (0x10000000 by
7919 # default) and relocated if they conflict, which is a slow very memory
7920 # consuming and fragmenting process. To avoid this, we pick a random,
7921 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7922 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7923 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7924 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'
7928 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7930 case $cc_basename,$host_cpu in
7931 pgcc*) # Portland Group C compiler
7932 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'
7933 tmp_addflag=' $pic_flag'
7935 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7936 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'
7937 tmp_addflag=' $pic_flag -Mnomain' ;;
7938 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7939 tmp_addflag=' -i_dynamic' ;;
7940 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7941 tmp_addflag=' -i_dynamic -nofor_main' ;;
7942 ifc* | ifort*) # Intel Fortran compiler
7943 tmp_addflag=' -nofor_main' ;;
7945 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7947 if test $supports_anon_versioning = yes; then
7948 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7949 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7950 $echo "local: *; };" >> $output_objdir/$libname.ver~
7951 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7959 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7960 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7964 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7969 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7973 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7974 *** create shared libraries on Solaris systems. Therefore, libtool
7975 *** is disabling shared libraries support. We urge you to upgrade GNU
7976 *** binutils to release 2.9.1 or newer. Another option is to modify
7977 *** your PATH or compiler configuration so that the native linker is
7978 *** used, and then restart.
7981 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7982 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7983 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7989 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7990 case `$LD -v 2>&1` in
7991 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7995 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7996 *** reliably create shared libraries on SCO systems. Therefore, libtool
7997 *** is disabling shared libraries support. We urge you to upgrade GNU
7998 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7999 *** your PATH or compiler configuration so that the native linker is
8000 *** used, and then restart.
8005 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8006 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8008 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8017 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8020 hardcode_shlibpath_var=no
8024 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8026 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8033 if test "$ld_shlibs" = no; then
8035 hardcode_libdir_flag_spec=
8036 export_dynamic_flag_spec=
8037 whole_archive_flag_spec=
8040 # PORTME fill in a description of your system's linker (not GNU ld)
8043 allow_undefined_flag=unsupported
8044 always_export_symbols=yes
8045 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'
8046 # Note: this linker hardcodes the directories in LIBPATH if there
8047 # are no directories specified by -L.
8048 hardcode_minus_L=yes
8049 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8050 # Neither direct hardcoding nor static linking is supported with a
8052 hardcode_direct=unsupported
8057 if test "$host_cpu" = ia64; then
8058 # On IA64, the linker does run time linking by default, so we don't
8059 # have to do anything special.
8060 aix_use_runtimelinking=no
8061 exp_sym_flag='-Bexport'
8064 # If we're using GNU nm, then we don't want the "-C" option.
8065 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8066 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8067 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'
8069 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'
8071 aix_use_runtimelinking=no
8073 # Test if we are trying to use run time linking or normal
8074 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8075 # need to do runtime linking.
8076 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8077 for ld_flag in $LDFLAGS; do
8078 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8079 aix_use_runtimelinking=yes
8086 exp_sym_flag='-bexport'
8087 no_entry_flag='-bnoentry'
8090 # When large executables or shared objects are built, AIX ld can
8091 # have problems creating the table of contents. If linking a library
8092 # or program results in "error TOC overflow" add -mminimal-toc to
8093 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8094 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8098 hardcode_libdir_separator=':'
8099 link_all_deplibs=yes
8101 if test "$GCC" = yes; then
8102 case $host_os in aix4.[012]|aix4.[012].*)
8103 # We only want to do this on AIX 4.2 and lower, the check
8104 # below for broken collect2 doesn't work under 4.3+
8105 collect2name=`${CC} -print-prog-name=collect2`
8106 if test -f "$collect2name" && \
8107 strings "$collect2name" | grep resolve_lib_name >/dev/null
8109 # We have reworked collect2
8112 # We have old collect2
8113 hardcode_direct=unsupported
8114 # It fails to find uninstalled libraries when the uninstalled
8115 # path is not listed in the libpath. Setting hardcode_minus_L
8116 # to unsupported forces relinking
8117 hardcode_minus_L=yes
8118 hardcode_libdir_flag_spec='-L$libdir'
8119 hardcode_libdir_separator=
8123 shared_flag='-shared'
8124 if test "$aix_use_runtimelinking" = yes; then
8125 shared_flag="$shared_flag "'${wl}-G'
8129 if test "$host_cpu" = ia64; then
8130 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8131 # chokes on -Wl,-G. The following line is correct:
8134 if test "$aix_use_runtimelinking" = yes; then
8135 shared_flag='${wl}-G'
8137 shared_flag='${wl}-bM:SRE'
8142 # It seems that -bexpall does not export symbols beginning with
8143 # underscore (_), so it is better to generate a list of symbols to export.
8144 always_export_symbols=yes
8145 if test "$aix_use_runtimelinking" = yes; then
8146 # Warning - without using the other runtime loading flags (-brtl),
8147 # -berok will link without error, but may produce a broken library.
8148 allow_undefined_flag='-berok'
8149 # Determine the default libpath from the value encoded in an empty executable.
8150 cat >conftest.$ac_ext <<_ACEOF
8153 cat confdefs.h >>conftest.$ac_ext
8154 cat >>conftest.$ac_ext <<_ACEOF
8155 /* end confdefs.h. */
8165 rm -f conftest.$ac_objext conftest$ac_exeext
8166 if { (ac_try="$ac_link"
8168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172 (eval "$ac_link") 2>conftest.er1
8174 grep -v '^ *+' conftest.er1 >conftest.err
8176 cat conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && {
8179 test -z "$ac_c_werror_flag" ||
8180 test ! -s conftest.err
8181 } && test -s conftest$ac_exeext &&
8182 $as_test_x conftest$ac_exeext; then
8184 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8186 # Check for a 64-bit object if we didn't find anything.
8187 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; }
8190 echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8197 conftest$ac_exeext conftest.$ac_ext
8198 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8200 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8201 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"
8203 if test "$host_cpu" = ia64; then
8204 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8205 allow_undefined_flag="-z nodefs"
8206 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"
8208 # Determine the default libpath from the value encoded in an empty executable.
8209 cat >conftest.$ac_ext <<_ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8224 rm -f conftest.$ac_objext conftest$ac_exeext
8225 if { (ac_try="$ac_link"
8227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8228 *) ac_try_echo=$ac_try;;
8230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8231 (eval "$ac_link") 2>conftest.er1
8233 grep -v '^ *+' conftest.er1 >conftest.err
8235 cat conftest.err >&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); } && {
8238 test -z "$ac_c_werror_flag" ||
8239 test ! -s conftest.err
8240 } && test -s conftest$ac_exeext &&
8241 $as_test_x conftest$ac_exeext; then
8243 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8245 # Check for a 64-bit object if we didn't find anything.
8246 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; }
8249 echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.$ac_ext >&5
8255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8256 conftest$ac_exeext conftest.$ac_ext
8257 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8259 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8260 # Warning - without using the other run time loading flags,
8261 # -berok will link without error, but may produce a broken library.
8262 no_undefined_flag=' ${wl}-bernotok'
8263 allow_undefined_flag=' ${wl}-berok'
8264 # Exported symbols can be pulled into shared objects from archives
8265 whole_archive_flag_spec='$convenience'
8266 archive_cmds_need_lc=yes
8267 # This is similar to how AIX traditionally builds its shared libraries.
8268 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'
8274 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)'
8275 hardcode_libdir_flag_spec='-L$libdir'
8276 hardcode_minus_L=yes
8277 # see comment about different semantics on the GNU ld section
8282 export_dynamic_flag_spec=-rdynamic
8285 cygwin* | mingw* | pw32*)
8286 # When not using gcc, we currently assume that we are using
8287 # Microsoft Visual C++.
8288 # hardcode_libdir_flag_spec is actually meaningless, as there is
8289 # no search path for DLLs.
8290 hardcode_libdir_flag_spec=' '
8291 allow_undefined_flag=unsupported
8292 # Tell ltmain to make .lib files, not .a files.
8294 # Tell ltmain to make .dll files, not .so files.
8296 # FIXME: Setting linknames here is a bad hack.
8297 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8298 # The linker will automatically build a .lib file if we build a DLL.
8299 old_archive_From_new_cmds='true'
8300 # FIXME: Should let the user specify the lib program.
8301 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8302 fix_srcfile_path='`cygpath -w "$srcfile"`'
8303 enable_shared_with_static_runtimes=yes
8306 darwin* | rhapsody*)
8308 rhapsody* | darwin1.[012])
8309 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8312 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8313 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8315 case ${MACOSX_DEPLOYMENT_TARGET} in
8317 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8320 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8326 archive_cmds_need_lc=no
8328 hardcode_automatic=yes
8329 hardcode_shlibpath_var=unsupported
8330 whole_archive_flag_spec=''
8331 link_all_deplibs=yes
8332 if test "$GCC" = yes ; then
8333 output_verbose_link_cmd='echo'
8334 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8335 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8336 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8337 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}'
8338 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}'
8340 case $cc_basename in
8342 output_verbose_link_cmd='echo'
8343 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8344 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8345 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8346 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}'
8347 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}'
8357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8358 hardcode_libdir_flag_spec='-L$libdir'
8359 hardcode_shlibpath_var=no
8366 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8367 # support. Future versions do this automatically, but an explicit c++rt0.o
8368 # does not break anything, and helps significantly (at the cost of a little
8371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8372 hardcode_libdir_flag_spec='-R$libdir'
8374 hardcode_shlibpath_var=no
8377 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8381 hardcode_minus_L=yes
8382 hardcode_shlibpath_var=no
8385 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8386 freebsd* | kfreebsd*-gnu | dragonfly*)
8387 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8388 hardcode_libdir_flag_spec='-R$libdir'
8390 hardcode_shlibpath_var=no
8394 if test "$GCC" = yes; then
8395 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'
8397 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'
8399 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8400 hardcode_libdir_separator=:
8403 # hardcode_minus_L: Not really in the search PATH,
8404 # but as the default location of the library.
8405 hardcode_minus_L=yes
8406 export_dynamic_flag_spec='${wl}-E'
8410 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8411 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8413 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8415 if test "$with_gnu_ld" = no; then
8416 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8417 hardcode_libdir_separator=:
8420 export_dynamic_flag_spec='${wl}-E'
8422 # hardcode_minus_L: Not really in the search PATH,
8423 # but as the default location of the library.
8424 hardcode_minus_L=yes
8429 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8432 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8435 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8438 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8444 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8447 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8450 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8454 if test "$with_gnu_ld" = no; then
8455 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8456 hardcode_libdir_separator=:
8460 hardcode_libdir_flag_spec_ld='+b $libdir'
8462 hardcode_shlibpath_var=no
8466 export_dynamic_flag_spec='${wl}-E'
8468 # hardcode_minus_L: Not really in the search PATH,
8469 # but as the default location of the library.
8470 hardcode_minus_L=yes
8476 irix5* | irix6* | nonstopux*)
8477 if test "$GCC" = yes; then
8478 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'
8480 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'
8481 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8483 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8484 hardcode_libdir_separator=:
8485 link_all_deplibs=yes
8489 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8490 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8492 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8494 hardcode_libdir_flag_spec='-R$libdir'
8496 hardcode_shlibpath_var=no
8500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8502 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8503 hardcode_libdir_separator=:
8504 hardcode_shlibpath_var=no
8509 hardcode_shlibpath_var=no
8510 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8511 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8512 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8513 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8514 export_dynamic_flag_spec='${wl}-E'
8517 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8519 hardcode_libdir_flag_spec='-R$libdir'
8522 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8523 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8530 hardcode_libdir_flag_spec='-L$libdir'
8531 hardcode_minus_L=yes
8532 allow_undefined_flag=unsupported
8533 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'
8534 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8538 if test "$GCC" = yes; then
8539 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8540 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'
8542 allow_undefined_flag=' -expect_unresolved \*'
8543 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'
8545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8546 hardcode_libdir_separator=:
8549 osf4* | osf5*) # as osf3* with the addition of -msym flag
8550 if test "$GCC" = yes; then
8551 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8552 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'
8553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8555 allow_undefined_flag=' -expect_unresolved \*'
8556 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'
8557 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8558 $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'
8560 # Both c and cxx compiler support -rpath directly
8561 hardcode_libdir_flag_spec='-rpath $libdir'
8563 hardcode_libdir_separator=:
8567 no_undefined_flag=' -z text'
8568 if test "$GCC" = yes; then
8570 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8571 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8572 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8575 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8576 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8577 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8579 hardcode_libdir_flag_spec='-R$libdir'
8580 hardcode_shlibpath_var=no
8582 solaris2.[0-5] | solaris2.[0-5].*) ;;
8584 # The compiler driver will combine linker options so we
8585 # cannot just pass the convience library names through
8586 # without $wl, iff we do not link with $LD.
8587 # Luckily, gcc supports the same syntax we need for Sun Studio.
8588 # Supported since Solaris 2.6 (maybe 2.5.1?)
8591 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8593 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' ;;
8596 link_all_deplibs=yes
8600 if test "x$host_vendor" = xsequent; then
8601 # Use $CC to link under sequent, because it throws in some extra .o
8602 # files that make .init and .fini sections work.
8603 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8605 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8607 hardcode_libdir_flag_spec='-L$libdir'
8609 hardcode_minus_L=yes
8610 hardcode_shlibpath_var=no
8614 case $host_vendor in
8616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8617 hardcode_direct=yes # is this really true???
8620 ## LD is ld it makes a PLAMLIB
8621 ## CC just makes a GrossModule.
8622 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8623 reload_cmds='$CC -r -o $output$reload_objs'
8627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8628 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8631 runpath_var='LD_RUN_PATH'
8632 hardcode_shlibpath_var=no
8636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8637 hardcode_shlibpath_var=no
8638 export_dynamic_flag_spec='-Bexport'
8642 if test -d /usr/nec; then
8643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8644 hardcode_shlibpath_var=no
8645 runpath_var=LD_RUN_PATH
8646 hardcode_runpath_var=yes
8651 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8652 no_undefined_flag='${wl}-z,text'
8653 archive_cmds_need_lc=no
8654 hardcode_shlibpath_var=no
8655 runpath_var='LD_RUN_PATH'
8657 if test "$GCC" = yes; then
8658 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8659 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8661 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8662 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8666 sysv5* | sco3.2v5* | sco5v6*)
8667 # Note: We can NOT use -z defs as we might desire, because we do not
8668 # link with -lc, and that would cause any symbols used from libc to
8669 # always be unresolved, which means just about no library would
8670 # ever link correctly. If we're not using GNU ld we use -z text
8671 # though, which does catch some bad symbols but isn't as heavy-handed
8673 no_undefined_flag='${wl}-z,text'
8674 allow_undefined_flag='${wl}-z,nodefs'
8675 archive_cmds_need_lc=no
8676 hardcode_shlibpath_var=no
8677 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8678 hardcode_libdir_separator=':'
8679 link_all_deplibs=yes
8680 export_dynamic_flag_spec='${wl}-Bexport'
8681 runpath_var='LD_RUN_PATH'
8683 if test "$GCC" = yes; then
8684 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8685 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8687 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8688 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8694 hardcode_libdir_flag_spec='-L$libdir'
8695 hardcode_shlibpath_var=no
8704 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8705 echo "${ECHO_T}$ld_shlibs" >&6; }
8706 test "$ld_shlibs" = no && can_build_shared=no
8709 # Do we need to explicitly link libc?
8711 case "x$archive_cmds_need_lc" in
8713 # Assume -lc should be added
8714 archive_cmds_need_lc=yes
8716 if test "$enable_shared" = yes && test "$GCC" = yes; then
8717 case $archive_cmds in
8719 # FIXME: we may have to deal with multi-command sequences.
8722 # Test whether the compiler implicitly links with -lc since on some
8723 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8724 # to ld, don't add -lc before -lgcc.
8725 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8726 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8728 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8731 (eval $ac_compile) 2>&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } 2>conftest.err; then
8737 libobjs=conftest.$ac_objext
8739 wl=$lt_prog_compiler_wl
8740 pic_flag=$lt_prog_compiler_pic
8746 lt_save_allow_undefined_flag=$allow_undefined_flag
8747 allow_undefined_flag=
8748 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8749 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); }
8754 archive_cmds_need_lc=no
8756 archive_cmds_need_lc=yes
8758 allow_undefined_flag=$lt_save_allow_undefined_flag
8760 cat conftest.err 1>&5
8763 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8764 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8771 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8772 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8774 libname_spec='lib$name'
8782 shlibpath_overrides_runpath=unknown
8784 dynamic_linker="$host_os ld.so"
8785 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8786 if test "$GCC" = yes; then
8787 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8788 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8789 # if the path contains ";" then we assume it to be the separator
8790 # otherwise default to the standard path separator (i.e. ":") - it is
8791 # assumed that no part of a normal pathname contains ";" but that should
8792 # okay in the real world where ";" in dirpaths is itself problematic.
8793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8798 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8800 need_lib_prefix=unknown
8801 hardcode_into_libs=no
8803 # when you set need_version to no, make sure it does not cause -set_version
8804 # flags to be left without arguments
8805 need_version=unknown
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8811 shlibpath_var=LIBPATH
8813 # AIX 3 has no versioning support, so we append a major version to the name.
8814 soname_spec='${libname}${release}${shared_ext}$major'
8821 hardcode_into_libs=yes
8822 if test "$host_cpu" = ia64; then
8823 # AIX 5 supports IA64
8824 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8825 shlibpath_var=LD_LIBRARY_PATH
8827 # With GCC up to 2.95.x, collect2 would create an import file
8828 # for dependence libraries. The import file would start with
8829 # the line `#! .'. This would cause the generated library to
8830 # depend on `.', always an invalid library. This was fixed in
8831 # development snapshots of GCC prior to 3.0.
8833 aix4 | aix4.[01] | aix4.[01].*)
8834 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8836 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8843 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8844 # soname into executable. Probably we can add versioning support to
8845 # collect2, so additional links can be useful in future.
8846 if test "$aix_use_runtimelinking" = yes; then
8847 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8848 # instead of lib<name>.a to let people know that these are not
8849 # typical AIX shared libraries.
8850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8852 # We preserve .a as extension for shared libraries through AIX4.2
8853 # and later when we are not doing run time linking.
8854 library_names_spec='${libname}${release}.a $libname.a'
8855 soname_spec='${libname}${release}${shared_ext}$major'
8857 shlibpath_var=LIBPATH
8862 library_names_spec='$libname.ixlibrary $libname.a'
8863 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8864 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'
8868 library_names_spec='${libname}${shared_ext}'
8869 dynamic_linker="$host_os ld.so"
8870 shlibpath_var=LIBRARY_PATH
8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8877 soname_spec='${libname}${release}${shared_ext}$major'
8878 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8879 shlibpath_var=LD_LIBRARY_PATH
8880 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8881 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8882 # the default ld.so.conf also contains /usr/contrib/lib and
8883 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8884 # libtool to hard-code these into programs
8887 cygwin* | mingw* | pw32*)
8888 version_type=windows
8893 case $GCC,$host_os in
8894 yes,cygwin* | yes,mingw* | yes,pw32*)
8895 library_names_spec='$libname.dll.a'
8896 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8897 postinstall_cmds='base_file=`basename \${file}`~
8898 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8899 dldir=$destdir/`dirname \$dlpath`~
8900 test -d \$dldir || mkdir -p \$dldir~
8901 $install_prog $dir/$dlname \$dldir/$dlname~
8902 chmod a+x \$dldir/$dlname'
8903 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8904 dlpath=$dir/\$dldll~
8906 shlibpath_overrides_runpath=yes
8910 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8911 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8912 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8915 # MinGW DLLs use traditional 'lib' prefix
8916 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8917 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8918 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8919 # It is most probably a Windows format PATH printed by
8920 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8921 # path with ; separators, and with drive letters. We can handle the
8922 # drive letters (cygwin fileutils understands them), so leave them,
8923 # especially as we might pass files found there to a mingw objdump,
8924 # which wouldn't understand a cygwinified path. Ahh.
8925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8931 # pw32 DLLs use 'pw' prefix rather than 'lib'
8932 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8938 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8941 dynamic_linker='Win32 ld.exe'
8942 # FIXME: first we should search . and the directory the executable is in
8946 darwin* | rhapsody*)
8947 dynamic_linker="$host_os dyld"
8951 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8952 soname_spec='${libname}${release}${major}$shared_ext'
8953 shlibpath_overrides_runpath=yes
8954 shlibpath_var=DYLD_LIBRARY_PATH
8955 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8956 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8957 if test "$GCC" = yes; then
8958 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"`
8960 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8962 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8970 soname_spec='${libname}${release}${shared_ext}$major'
8971 shlibpath_var=LD_LIBRARY_PATH
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8983 soname_spec='${libname}${release}${shared_ext}$major'
8984 shlibpath_var=LD_LIBRARY_PATH
8985 shlibpath_overrides_runpath=no
8986 hardcode_into_libs=yes
8987 dynamic_linker='GNU ld.so'
8990 freebsd* | dragonfly*)
8991 # DragonFly does not have aout. When/if they implement a new
8992 # versioning mechanism, adjust this.
8993 if test -x /usr/bin/objformat; then
8994 objformat=`/usr/bin/objformat`
8997 freebsd[123]*) objformat=aout ;;
9001 version_type=freebsd-$objformat
9002 case $version_type in
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9013 shlibpath_var=LD_LIBRARY_PATH
9016 shlibpath_overrides_runpath=yes
9018 freebsd3.[01]* | freebsdelf3.[01]*)
9019 shlibpath_overrides_runpath=yes
9020 hardcode_into_libs=yes
9022 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9023 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9024 shlibpath_overrides_runpath=no
9025 hardcode_into_libs=yes
9027 freebsd*) # from 4.6 on
9028 shlibpath_overrides_runpath=yes
9029 hardcode_into_libs=yes
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 hardcode_into_libs=yes
9044 hpux9* | hpux10* | hpux11*)
9045 # Give a soname corresponding to the major version so that dld.sl refuses to
9046 # link against other versions.
9053 hardcode_into_libs=yes
9054 dynamic_linker="$host_os dld.so"
9055 shlibpath_var=LD_LIBRARY_PATH
9056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 if test "X$HPUX_IA64_MODE" = X32; then
9060 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9062 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9068 hardcode_into_libs=yes
9069 dynamic_linker="$host_os dld.sl"
9070 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9071 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9079 dynamic_linker="$host_os dld.sl"
9080 shlibpath_var=SHLIB_PATH
9081 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9086 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9087 postinstall_cmds='chmod 555 $lib'
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 shlibpath_overrides_runpath=no
9099 hardcode_into_libs=yes
9102 irix5* | irix6* | nonstopux*)
9104 nonstopux*) version_type=nonstopux ;;
9106 if test "$lt_cv_prog_gnu_ld" = yes; then
9114 soname_spec='${libname}${release}${shared_ext}$major'
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9117 irix5* | nonstopux*)
9121 case $LD in # libtool.m4 will add one of these switches to LD
9122 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9123 libsuff= shlibsuff= libmagic=32-bit;;
9124 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9125 libsuff=32 shlibsuff=N32 libmagic=N32;;
9126 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9127 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9128 *) libsuff= shlibsuff= libmagic=never-match;;
9132 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9133 shlibpath_overrides_runpath=no
9134 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9135 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9136 hardcode_into_libs=yes
9139 # No shared lib support for Linux oldld, aout, or coff.
9140 linux*oldld* | linux*aout* | linux*coff*)
9144 # This must be Linux ELF.
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150 soname_spec='${libname}${release}${shared_ext}$major'
9151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9152 shlibpath_var=LD_LIBRARY_PATH
9153 shlibpath_overrides_runpath=no
9154 # This implies no fast_install, which is unacceptable.
9155 # Some rework will be needed to allow for fast_install
9156 # before this can be enabled.
9157 hardcode_into_libs=yes
9159 # Append ld.so.conf contents to the search path
9160 if test -f /etc/ld.so.conf; then
9161 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' ' '`
9162 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9165 # We used to test for /lib/ld.so.1 and disable shared libraries on
9166 # powerpc, because MkLinux only supported shared libraries with the
9167 # GNU dynamic linker. Since this was broken with cross compilers,
9168 # most powerpc-linux boxes support dynamic linking these days and
9169 # people can always --disable-shared, the test was removed, and we
9170 # assume the GNU/Linux dynamic linker is in use.
9171 dynamic_linker='GNU/Linux ld.so'
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 shlibpath_overrides_runpath=no
9182 hardcode_into_libs=yes
9183 dynamic_linker='GNU ld.so'
9190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9193 dynamic_linker='NetBSD (a.out) ld.so'
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 dynamic_linker='NetBSD ld.elf_so'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=yes
9201 hardcode_into_libs=yes
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 shlibpath_overrides_runpath=yes
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 shlibpath_overrides_runpath=yes
9223 sys_lib_dlsearch_path_spec="/usr/lib"
9225 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9227 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9228 *) need_version=no ;;
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9232 shlibpath_var=LD_LIBRARY_PATH
9233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9235 openbsd2.[89] | openbsd2.[89].*)
9236 shlibpath_overrides_runpath=no
9239 shlibpath_overrides_runpath=yes
9243 shlibpath_overrides_runpath=yes
9248 libname_spec='$name'
9251 library_names_spec='$libname${shared_ext} $libname.a'
9252 dynamic_linker='OS/2 ld.exe'
9253 shlibpath_var=LIBPATH
9256 osf3* | osf4* | osf5*)
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9262 shlibpath_var=LD_LIBRARY_PATH
9263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272 soname_spec='${libname}${release}${shared_ext}$major'
9273 shlibpath_var=LD_LIBRARY_PATH
9274 shlibpath_overrides_runpath=yes
9275 hardcode_into_libs=yes
9276 # ldd complains unless libraries are executable
9277 postinstall_cmds='chmod +x $lib'
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9283 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 shlibpath_overrides_runpath=yes
9286 if test "$with_gnu_ld" = yes; then
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295 soname_spec='${libname}${release}${shared_ext}$major'
9296 shlibpath_var=LD_LIBRARY_PATH
9297 case $host_vendor in
9299 shlibpath_overrides_runpath=no
9301 export_dynamic_flag_spec='${wl}-Blargedynsym'
9302 runpath_var=LD_RUN_PATH
9310 shlibpath_overrides_runpath=no
9311 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9317 if test -d /usr/nec ;then
9319 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9320 soname_spec='$libname${shared_ext}.$major'
9321 shlibpath_var=LD_LIBRARY_PATH
9325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9326 version_type=freebsd-elf
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9330 soname_spec='${libname}${release}${shared_ext}$major'
9331 shlibpath_var=LD_LIBRARY_PATH
9332 hardcode_into_libs=yes
9333 if test "$with_gnu_ld" = yes; then
9334 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9335 shlibpath_overrides_runpath=no
9337 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9338 shlibpath_overrides_runpath=yes
9341 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9345 sys_lib_dlsearch_path_spec='/usr/lib'
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351 soname_spec='${libname}${release}${shared_ext}$major'
9352 shlibpath_var=LD_LIBRARY_PATH
9359 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9360 echo "${ECHO_T}$dynamic_linker" >&6; }
9361 test "$dynamic_linker" = no && can_build_shared=no
9363 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9364 if test "$GCC" = yes; then
9365 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9368 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9369 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9371 if test -n "$hardcode_libdir_flag_spec" || \
9372 test -n "$runpath_var" || \
9373 test "X$hardcode_automatic" = "Xyes" ; then
9375 # We can hardcode non-existant directories.
9376 if test "$hardcode_direct" != no &&
9377 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9378 # have to relink, otherwise we might link with an installed library
9379 # when we should be linking with a yet-to-be-installed one
9380 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9381 test "$hardcode_minus_L" != no; then
9382 # Linking always hardcodes the temporary library directory.
9383 hardcode_action=relink
9385 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9386 hardcode_action=immediate
9389 # We cannot hardcode anything, or else we can only hardcode existing
9391 hardcode_action=unsupported
9393 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9394 echo "${ECHO_T}$hardcode_action" >&6; }
9396 if test "$hardcode_action" = relink; then
9397 # Fast installation is not supported
9398 enable_fast_install=no
9399 elif test "$shlibpath_overrides_runpath" = yes ||
9400 test "$enable_shared" = no; then
9401 # Fast installation is not necessary
9402 enable_fast_install=needless
9407 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9408 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9409 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9410 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9411 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9412 { echo "$as_me:$LINENO: result: yes" >&5
9413 echo "${ECHO_T}yes" >&6; }
9415 # FIXME - insert some real tests, host_os isn't really good enough
9418 if test -n "$STRIP" ; then
9419 striplib="$STRIP -x"
9420 { echo "$as_me:$LINENO: result: yes" >&5
9421 echo "${ECHO_T}yes" >&6; }
9423 { echo "$as_me:$LINENO: result: no" >&5
9424 echo "${ECHO_T}no" >&6; }
9428 { echo "$as_me:$LINENO: result: no" >&5
9429 echo "${ECHO_T}no" >&6; }
9434 if test "x$enable_dlopen" != xyes; then
9435 enable_dlopen=unknown
9436 enable_dlopen_self=unknown
9437 enable_dlopen_self_static=unknown
9444 lt_cv_dlopen="load_add_on"
9446 lt_cv_dlopen_self=yes
9450 lt_cv_dlopen="LoadLibrary"
9455 lt_cv_dlopen="dlopen"
9460 # if libdl is installed we need to link against it
9461 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9462 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9463 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9464 echo $ECHO_N "(cached) $ECHO_C" >&6
9466 ac_check_lib_save_LIBS=$LIBS
9468 cat >conftest.$ac_ext <<_ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9475 /* Override any GCC internal prototype to avoid an error.
9476 Use char because int might match the return type of a GCC
9477 builtin and then its argument prototype would still apply. */
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (ac_try="$ac_link"
9493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494 *) ac_try_echo=$ac_try;;
9496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9497 (eval "$ac_link") 2>conftest.er1
9499 grep -v '^ *+' conftest.er1 >conftest.err
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } && {
9504 test -z "$ac_c_werror_flag" ||
9505 test ! -s conftest.err
9506 } && test -s conftest$ac_exeext &&
9507 $as_test_x conftest$ac_exeext; then
9508 ac_cv_lib_dl_dlopen=yes
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9513 ac_cv_lib_dl_dlopen=no
9516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9517 conftest$ac_exeext conftest.$ac_ext
9518 LIBS=$ac_check_lib_save_LIBS
9520 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9521 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9522 if test $ac_cv_lib_dl_dlopen = yes; then
9523 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9528 lt_cv_dlopen_self=yes
9535 { echo "$as_me:$LINENO: checking for shl_load" >&5
9536 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9537 if test "${ac_cv_func_shl_load+set}" = set; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9540 cat >conftest.$ac_ext <<_ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h. */
9546 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9548 #define shl_load innocuous_shl_load
9550 /* System header to define __stub macros and hopefully few prototypes,
9551 which can conflict with char shl_load (); below.
9552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9553 <limits.h> exists even on freestanding compilers. */
9556 # include <limits.h>
9558 # include <assert.h>
9563 /* Override any GCC internal prototype to avoid an error.
9564 Use char because int might match the return type of a GCC
9565 builtin and then its argument prototype would still apply. */
9570 /* The GNU C library defines this for functions which it implements
9571 to always fail with ENOSYS. Some functions are actually named
9572 something starting with __ and the normal name is an alias. */
9573 #if defined __stub_shl_load || defined __stub___shl_load
9585 rm -f conftest.$ac_objext conftest$ac_exeext
9586 if { (ac_try="$ac_link"
9588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589 *) ac_try_echo=$ac_try;;
9591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592 (eval "$ac_link") 2>conftest.er1
9594 grep -v '^ *+' conftest.er1 >conftest.err
9596 cat conftest.err >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); } && {
9599 test -z "$ac_c_werror_flag" ||
9600 test ! -s conftest.err
9601 } && test -s conftest$ac_exeext &&
9602 $as_test_x conftest$ac_exeext; then
9603 ac_cv_func_shl_load=yes
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9608 ac_cv_func_shl_load=no
9611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9612 conftest$ac_exeext conftest.$ac_ext
9614 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9615 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9616 if test $ac_cv_func_shl_load = yes; then
9617 lt_cv_dlopen="shl_load"
9619 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9620 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9621 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9624 ac_check_lib_save_LIBS=$LIBS
9626 cat >conftest.$ac_ext <<_ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9633 /* Override any GCC internal prototype to avoid an error.
9634 Use char because int might match the return type of a GCC
9635 builtin and then its argument prototype would still apply. */
9648 rm -f conftest.$ac_objext conftest$ac_exeext
9649 if { (ac_try="$ac_link"
9651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9652 *) ac_try_echo=$ac_try;;
9654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9655 (eval "$ac_link") 2>conftest.er1
9657 grep -v '^ *+' conftest.er1 >conftest.err
9659 cat conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } && {
9662 test -z "$ac_c_werror_flag" ||
9663 test ! -s conftest.err
9664 } && test -s conftest$ac_exeext &&
9665 $as_test_x conftest$ac_exeext; then
9666 ac_cv_lib_dld_shl_load=yes
9668 echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9671 ac_cv_lib_dld_shl_load=no
9674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9675 conftest$ac_exeext conftest.$ac_ext
9676 LIBS=$ac_check_lib_save_LIBS
9678 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9679 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9680 if test $ac_cv_lib_dld_shl_load = yes; then
9681 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9683 { echo "$as_me:$LINENO: checking for dlopen" >&5
9684 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9685 if test "${ac_cv_func_dlopen+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 cat >conftest.$ac_ext <<_ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9694 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9696 #define dlopen innocuous_dlopen
9698 /* System header to define __stub macros and hopefully few prototypes,
9699 which can conflict with char dlopen (); below.
9700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9701 <limits.h> exists even on freestanding compilers. */
9704 # include <limits.h>
9706 # include <assert.h>
9711 /* Override any GCC internal prototype to avoid an error.
9712 Use char because int might match the return type of a GCC
9713 builtin and then its argument prototype would still apply. */
9718 /* The GNU C library defines this for functions which it implements
9719 to always fail with ENOSYS. Some functions are actually named
9720 something starting with __ and the normal name is an alias. */
9721 #if defined __stub_dlopen || defined __stub___dlopen
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (ac_try="$ac_link"
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_link") 2>conftest.er1
9742 grep -v '^ *+' conftest.er1 >conftest.err
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } && {
9747 test -z "$ac_c_werror_flag" ||
9748 test ! -s conftest.err
9749 } && test -s conftest$ac_exeext &&
9750 $as_test_x conftest$ac_exeext; then
9751 ac_cv_func_dlopen=yes
9753 echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9756 ac_cv_func_dlopen=no
9759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9760 conftest$ac_exeext conftest.$ac_ext
9762 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9763 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9764 if test $ac_cv_func_dlopen = yes; then
9765 lt_cv_dlopen="dlopen"
9767 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9768 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9769 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9772 ac_check_lib_save_LIBS=$LIBS
9774 cat >conftest.$ac_ext <<_ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h. */
9781 /* Override any GCC internal prototype to avoid an error.
9782 Use char because int might match the return type of a GCC
9783 builtin and then its argument prototype would still apply. */
9796 rm -f conftest.$ac_objext conftest$ac_exeext
9797 if { (ac_try="$ac_link"
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_link") 2>conftest.er1
9805 grep -v '^ *+' conftest.er1 >conftest.err
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } && {
9810 test -z "$ac_c_werror_flag" ||
9811 test ! -s conftest.err
9812 } && test -s conftest$ac_exeext &&
9813 $as_test_x conftest$ac_exeext; then
9814 ac_cv_lib_dl_dlopen=yes
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 ac_cv_lib_dl_dlopen=no
9822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9823 conftest$ac_exeext conftest.$ac_ext
9824 LIBS=$ac_check_lib_save_LIBS
9826 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9827 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9828 if test $ac_cv_lib_dl_dlopen = yes; then
9829 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9831 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9832 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9833 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9836 ac_check_lib_save_LIBS=$LIBS
9838 cat >conftest.$ac_ext <<_ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h. */
9845 /* Override any GCC internal prototype to avoid an error.
9846 Use char because int might match the return type of a GCC
9847 builtin and then its argument prototype would still apply. */
9860 rm -f conftest.$ac_objext conftest$ac_exeext
9861 if { (ac_try="$ac_link"
9863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864 *) ac_try_echo=$ac_try;;
9866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867 (eval "$ac_link") 2>conftest.er1
9869 grep -v '^ *+' conftest.er1 >conftest.err
9871 cat conftest.err >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } && {
9874 test -z "$ac_c_werror_flag" ||
9875 test ! -s conftest.err
9876 } && test -s conftest$ac_exeext &&
9877 $as_test_x conftest$ac_exeext; then
9878 ac_cv_lib_svld_dlopen=yes
9880 echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9883 ac_cv_lib_svld_dlopen=no
9886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9887 conftest$ac_exeext conftest.$ac_ext
9888 LIBS=$ac_check_lib_save_LIBS
9890 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9891 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9892 if test $ac_cv_lib_svld_dlopen = yes; then
9893 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9895 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9896 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9897 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9900 ac_check_lib_save_LIBS=$LIBS
9902 cat >conftest.$ac_ext <<_ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h. */
9909 /* Override any GCC internal prototype to avoid an error.
9910 Use char because int might match the return type of a GCC
9911 builtin and then its argument prototype would still apply. */
9924 rm -f conftest.$ac_objext conftest$ac_exeext
9925 if { (ac_try="$ac_link"
9927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9928 *) ac_try_echo=$ac_try;;
9930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9931 (eval "$ac_link") 2>conftest.er1
9933 grep -v '^ *+' conftest.er1 >conftest.err
9935 cat conftest.err >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } && {
9938 test -z "$ac_c_werror_flag" ||
9939 test ! -s conftest.err
9940 } && test -s conftest$ac_exeext &&
9941 $as_test_x conftest$ac_exeext; then
9942 ac_cv_lib_dld_dld_link=yes
9944 echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.$ac_ext >&5
9947 ac_cv_lib_dld_dld_link=no
9950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9951 conftest$ac_exeext conftest.$ac_ext
9952 LIBS=$ac_check_lib_save_LIBS
9954 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9955 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9956 if test $ac_cv_lib_dld_dld_link = yes; then
9957 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9978 if test "x$lt_cv_dlopen" != xno; then
9984 case $lt_cv_dlopen in
9986 save_CPPFLAGS="$CPPFLAGS"
9987 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9989 save_LDFLAGS="$LDFLAGS"
9990 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9993 LIBS="$lt_cv_dlopen_libs $LIBS"
9995 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9996 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9997 if test "${lt_cv_dlopen_self+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 if test "$cross_compiling" = yes; then :
10001 lt_cv_dlopen_self=cross
10003 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10004 lt_status=$lt_dlunknown
10005 cat > conftest.$ac_ext <<EOF
10006 #line 10006 "configure"
10007 #include "confdefs.h"
10016 # define LT_DLGLOBAL RTLD_GLOBAL
10019 # define LT_DLGLOBAL DL_GLOBAL
10021 # define LT_DLGLOBAL 0
10025 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10026 find out it does not work in some platform. */
10027 #ifndef LT_DLLAZY_OR_NOW
10029 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10032 # define LT_DLLAZY_OR_NOW DL_LAZY
10035 # define LT_DLLAZY_OR_NOW RTLD_NOW
10038 # define LT_DLLAZY_OR_NOW DL_NOW
10040 # define LT_DLLAZY_OR_NOW 0
10048 extern "C" void exit (int);
10051 void fnord() { int i=42;}
10054 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10055 int status = $lt_dlunknown;
10059 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10060 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10061 /* dlclose (self); */
10069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10070 (eval $ac_link) 2>&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10074 (./conftest; exit; ) >&5 2>/dev/null
10076 case x$lt_status in
10077 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10078 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10079 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10082 # compilation failed
10083 lt_cv_dlopen_self=no
10090 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10091 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10093 if test "x$lt_cv_dlopen_self" = xyes; then
10094 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10095 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10096 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10097 if test "${lt_cv_dlopen_self_static+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
10100 if test "$cross_compiling" = yes; then :
10101 lt_cv_dlopen_self_static=cross
10103 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10104 lt_status=$lt_dlunknown
10105 cat > conftest.$ac_ext <<EOF
10106 #line 10106 "configure"
10107 #include "confdefs.h"
10116 # define LT_DLGLOBAL RTLD_GLOBAL
10119 # define LT_DLGLOBAL DL_GLOBAL
10121 # define LT_DLGLOBAL 0
10125 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10126 find out it does not work in some platform. */
10127 #ifndef LT_DLLAZY_OR_NOW
10129 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10132 # define LT_DLLAZY_OR_NOW DL_LAZY
10135 # define LT_DLLAZY_OR_NOW RTLD_NOW
10138 # define LT_DLLAZY_OR_NOW DL_NOW
10140 # define LT_DLLAZY_OR_NOW 0
10148 extern "C" void exit (int);
10151 void fnord() { int i=42;}
10154 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10155 int status = $lt_dlunknown;
10159 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10160 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10161 /* dlclose (self); */
10169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10170 (eval $ac_link) 2>&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10174 (./conftest; exit; ) >&5 2>/dev/null
10176 case x$lt_status in
10177 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10178 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10179 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10182 # compilation failed
10183 lt_cv_dlopen_self_static=no
10190 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10191 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10194 CPPFLAGS="$save_CPPFLAGS"
10195 LDFLAGS="$save_LDFLAGS"
10200 case $lt_cv_dlopen_self in
10201 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10202 *) enable_dlopen_self=unknown ;;
10205 case $lt_cv_dlopen_self_static in
10206 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10207 *) enable_dlopen_self_static=unknown ;;
10212 # Report which library types will actually be built
10213 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10214 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10215 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10216 echo "${ECHO_T}$can_build_shared" >&6; }
10218 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10219 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10220 test "$can_build_shared" = "no" && enable_shared=no
10222 # On AIX, shared libraries and static libraries use the same namespace, and
10223 # are all built from PIC.
10226 test "$enable_shared" = yes && enable_static=no
10227 if test -n "$RANLIB"; then
10228 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10229 postinstall_cmds='$RANLIB $lib'
10234 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10235 test "$enable_shared" = yes && enable_static=no
10239 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10240 echo "${ECHO_T}$enable_shared" >&6; }
10242 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10243 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10244 # Make sure either enable_shared or enable_static is yes.
10245 test "$enable_shared" = yes || enable_static=yes
10246 { echo "$as_me:$LINENO: result: $enable_static" >&5
10247 echo "${ECHO_T}$enable_static" >&6; }
10249 # The else clause should only fire when bootstrapping the
10250 # libtool distribution, otherwise you forgot to ship ltmain.sh
10251 # with your package, and you will get complaints that there are
10252 # no rules to generate ltmain.sh.
10253 if test -f "$ltmain"; then
10254 # See if we are running on zsh, and set the options which allow our commands through
10255 # without removal of \ escapes.
10256 if test -n "${ZSH_VERSION+set}" ; then
10257 setopt NO_GLOB_SUBST
10259 # Now quote all the things that may contain metacharacters while being
10260 # careful not to overquote the AC_SUBSTed values. We take copies of the
10261 # variables and quote the copies for generation of the libtool script.
10262 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10264 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10265 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10266 deplibs_check_method reload_flag reload_cmds need_locks \
10267 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10268 lt_cv_sys_global_symbol_to_c_name_address \
10269 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10270 old_postinstall_cmds old_postuninstall_cmds \
10274 lt_prog_compiler_wl \
10275 lt_prog_compiler_pic \
10276 lt_prog_compiler_static \
10277 lt_prog_compiler_no_builtin_flag \
10278 export_dynamic_flag_spec \
10279 thread_safe_flag_spec \
10280 whole_archive_flag_spec \
10281 enable_shared_with_static_runtimes \
10283 old_archive_from_new_cmds \
10288 compiler_lib_search_path \
10290 archive_expsym_cmds \
10292 postuninstall_cmds \
10293 old_archive_from_expsyms_cmds \
10294 allow_undefined_flag \
10295 no_undefined_flag \
10296 export_symbols_cmds \
10297 hardcode_libdir_flag_spec \
10298 hardcode_libdir_flag_spec_ld \
10299 hardcode_libdir_separator \
10300 hardcode_automatic \
10302 module_expsym_cmds \
10303 lt_cv_prog_compiler_c_o \
10305 include_expsyms; do
10308 old_archive_cmds | \
10309 old_archive_from_new_cmds | \
10311 archive_expsym_cmds | \
10313 module_expsym_cmds | \
10314 old_archive_from_expsyms_cmds | \
10315 export_symbols_cmds | \
10316 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10317 postinstall_cmds | postuninstall_cmds | \
10318 old_postinstall_cmds | old_postuninstall_cmds | \
10319 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10320 # Double-quote double-evaled strings.
10321 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10324 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10330 *'\$0 --fallback-echo"')
10331 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10335 cfgfile="${ofile}T"
10336 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10338 { echo "$as_me:$LINENO: creating $ofile" >&5
10339 echo "$as_me: creating $ofile" >&6;}
10341 cat <<__EOF__ >> "$cfgfile"
10344 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10345 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10346 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10348 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10349 # Free Software Foundation, Inc.
10351 # This file is part of GNU Libtool:
10352 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10354 # This program is free software; you can redistribute it and/or modify
10355 # it under the terms of the GNU General Public License as published by
10356 # the Free Software Foundation; either version 2 of the License, or
10357 # (at your option) any later version.
10359 # This program is distributed in the hope that it will be useful, but
10360 # WITHOUT ANY WARRANTY; without even the implied warranty of
10361 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10362 # General Public License for more details.
10364 # You should have received a copy of the GNU General Public License
10365 # along with this program; if not, write to the Free Software
10366 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10368 # As a special exception to the GNU General Public License, if you
10369 # distribute this file as part of a program that contains a
10370 # configuration script generated by Autoconf, you may include it under
10371 # the same distribution terms that you use for the rest of that program.
10373 # A sed program that does not truncate output.
10376 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10377 Xsed="$SED -e 1s/^X//"
10379 # The HP-UX ksh and POSIX shell print the target directory to stdout
10380 # if CDPATH is set.
10381 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10383 # The names of the tagged configurations supported by this script.
10386 # ### BEGIN LIBTOOL CONFIG
10388 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10390 # Shell to use when invoking shell scripts.
10393 # Whether or not to build shared libraries.
10394 build_libtool_libs=$enable_shared
10396 # Whether or not to build static libraries.
10397 build_old_libs=$enable_static
10399 # Whether or not to add -lc for building shared libraries.
10400 build_libtool_need_lc=$archive_cmds_need_lc
10402 # Whether or not to disallow shared libs when runtime libs are static
10403 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10405 # Whether or not to optimize for fast installation.
10406 fast_install=$enable_fast_install
10409 host_alias=$host_alias
10413 # The build system.
10414 build_alias=$build_alias
10418 # An echo program that does not interpret backslashes.
10423 AR_FLAGS=$lt_AR_FLAGS
10428 # LTCC compiler flags.
10429 LTCFLAGS=$lt_LTCFLAGS
10431 # A language-specific compiler.
10434 # Is the compiler the GNU C compiler?
10440 # The linker used to build libraries.
10443 # Whether we need hard or soft links.
10446 # A BSD-compatible nm program.
10449 # A symbol stripping program
10452 # Used to examine libraries when file_magic_cmd begins "file"
10453 MAGIC_CMD=$MAGIC_CMD
10455 # Used on cygwin: DLL creation program.
10458 # Used on cygwin: object dumper.
10461 # Used on cygwin: assembler.
10464 # The name of the directory that contains temporary libtool files.
10467 # How to create reloadable object files.
10468 reload_flag=$lt_reload_flag
10469 reload_cmds=$lt_reload_cmds
10471 # How to pass a linker flag through the compiler.
10472 wl=$lt_lt_prog_compiler_wl
10474 # Object file suffix (normally "o").
10475 objext="$ac_objext"
10477 # Old archive suffix (normally "a").
10480 # Shared library suffix (normally ".so").
10481 shrext_cmds='$shrext_cmds'
10483 # Executable file suffix (normally "").
10486 # Additional compiler flags for building library objects.
10487 pic_flag=$lt_lt_prog_compiler_pic
10490 # What is the maximum length of a command?
10491 max_cmd_len=$lt_cv_sys_max_cmd_len
10493 # Does compiler simultaneously support -c and -o options?
10494 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10496 # Must we lock files when doing compilation?
10497 need_locks=$lt_need_locks
10499 # Do we need the lib prefix for modules?
10500 need_lib_prefix=$need_lib_prefix
10502 # Do we need a version for libraries?
10503 need_version=$need_version
10505 # Whether dlopen is supported.
10506 dlopen_support=$enable_dlopen
10508 # Whether dlopen of programs is supported.
10509 dlopen_self=$enable_dlopen_self
10511 # Whether dlopen of statically linked programs is supported.
10512 dlopen_self_static=$enable_dlopen_self_static
10514 # Compiler flag to prevent dynamic linking.
10515 link_static_flag=$lt_lt_prog_compiler_static
10517 # Compiler flag to turn off builtin functions.
10518 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10520 # Compiler flag to allow reflexive dlopens.
10521 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10523 # Compiler flag to generate shared objects directly from archives.
10524 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10526 # Compiler flag to generate thread-safe objects.
10527 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10529 # Library versioning type.
10530 version_type=$version_type
10532 # Format of library name prefix.
10533 libname_spec=$lt_libname_spec
10535 # List of archive names. First name is the real one, the rest are links.
10536 # The last name is the one that the linker finds with -lNAME.
10537 library_names_spec=$lt_library_names_spec
10539 # The coded name of the library, if different from the real name.
10540 soname_spec=$lt_soname_spec
10542 # Commands used to build and install an old-style archive.
10544 old_archive_cmds=$lt_old_archive_cmds
10545 old_postinstall_cmds=$lt_old_postinstall_cmds
10546 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10548 # Create an old-style archive from a shared archive.
10549 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10551 # Create a temporary old-style archive to link instead of a shared archive.
10552 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10554 # Commands used to build and install a shared archive.
10555 archive_cmds=$lt_archive_cmds
10556 archive_expsym_cmds=$lt_archive_expsym_cmds
10557 postinstall_cmds=$lt_postinstall_cmds
10558 postuninstall_cmds=$lt_postuninstall_cmds
10560 # Commands used to build a loadable module (assumed same as above if empty)
10561 module_cmds=$lt_module_cmds
10562 module_expsym_cmds=$lt_module_expsym_cmds
10564 # Commands to strip libraries.
10565 old_striplib=$lt_old_striplib
10566 striplib=$lt_striplib
10568 # Dependencies to place before the objects being linked to create a
10570 predep_objects=$lt_predep_objects
10572 # Dependencies to place after the objects being linked to create a
10574 postdep_objects=$lt_postdep_objects
10576 # Dependencies to place before the objects being linked to create a
10578 predeps=$lt_predeps
10580 # Dependencies to place after the objects being linked to create a
10582 postdeps=$lt_postdeps
10584 # The library search path used internally by the compiler when linking
10585 # a shared library.
10586 compiler_lib_search_path=$lt_compiler_lib_search_path
10588 # Method to check whether dependent libraries are shared objects.
10589 deplibs_check_method=$lt_deplibs_check_method
10591 # Command to use when deplibs_check_method == file_magic.
10592 file_magic_cmd=$lt_file_magic_cmd
10594 # Flag that allows shared libraries with undefined symbols to be built.
10595 allow_undefined_flag=$lt_allow_undefined_flag
10597 # Flag that forces no undefined symbols.
10598 no_undefined_flag=$lt_no_undefined_flag
10600 # Commands used to finish a libtool library installation in a directory.
10601 finish_cmds=$lt_finish_cmds
10603 # Same as above, but a single script fragment to be evaled but not shown.
10604 finish_eval=$lt_finish_eval
10606 # Take the output of nm and produce a listing of raw symbols and C names.
10607 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10609 # Transform the output of nm in a proper C declaration
10610 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10612 # Transform the output of nm in a C name address pair
10613 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10615 # This is the shared library runtime path variable.
10616 runpath_var=$runpath_var
10618 # This is the shared library path variable.
10619 shlibpath_var=$shlibpath_var
10621 # Is shlibpath searched before the hard-coded library search path?
10622 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10624 # How to hardcode a shared library path into an executable.
10625 hardcode_action=$hardcode_action
10627 # Whether we should hardcode library paths into libraries.
10628 hardcode_into_libs=$hardcode_into_libs
10630 # Flag to hardcode \$libdir into a binary during linking.
10631 # This must work even if \$libdir does not exist.
10632 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10634 # If ld is used when linking, flag to hardcode \$libdir into
10635 # a binary during linking. This must work even if \$libdir does
10637 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10639 # Whether we need a single -rpath flag with a separated argument.
10640 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10642 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10643 # resulting binary.
10644 hardcode_direct=$hardcode_direct
10646 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10647 # resulting binary.
10648 hardcode_minus_L=$hardcode_minus_L
10650 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10651 # the resulting binary.
10652 hardcode_shlibpath_var=$hardcode_shlibpath_var
10654 # Set to yes if building a shared library automatically hardcodes DIR into the library
10655 # and all subsequent libraries and executables linked against it.
10656 hardcode_automatic=$hardcode_automatic
10658 # Variables whose values should be saved in libtool wrapper scripts and
10659 # restored at relink time.
10660 variables_saved_for_relink="$variables_saved_for_relink"
10662 # Whether libtool must link a program against all its dependency libraries.
10663 link_all_deplibs=$link_all_deplibs
10665 # Compile-time system search path for libraries
10666 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10668 # Run-time system search path for libraries
10669 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10671 # Fix the shell variable \$srcfile for the compiler.
10672 fix_srcfile_path="$fix_srcfile_path"
10674 # Set to yes if exported symbols are required.
10675 always_export_symbols=$always_export_symbols
10677 # The commands to list exported symbols.
10678 export_symbols_cmds=$lt_export_symbols_cmds
10680 # The commands to extract the exported symbol list from a shared archive.
10681 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10683 # Symbols that should not be listed in the preloaded symbols.
10684 exclude_expsyms=$lt_exclude_expsyms
10686 # Symbols that must always be exported.
10687 include_expsyms=$lt_include_expsyms
10689 # ### END LIBTOOL CONFIG
10696 cat <<\EOF >> "$cfgfile"
10698 # AIX sometimes has problems with the GCC collect2 program. For some
10699 # reason, if we set the COLLECT_NAMES environment variable, the problems
10700 # vanish in a puff of smoke.
10701 if test "X${COLLECT_NAMES+set}" != Xset; then
10703 export COLLECT_NAMES
10709 # We use sed instead of cat because bash on DJGPP gets confused if
10710 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10711 # text mode, it properly converts lines to CR/LF. This bash problem
10712 # is reportedly fixed, but why not run on old versions too?
10713 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10715 mv -f "$cfgfile" "$ofile" || \
10716 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10720 # If there is no Makefile yet, we rely on a make rule to execute
10721 # `config.status --recheck' to rerun these tests and create the
10722 # libtool script then.
10723 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10724 if test -f "$ltmain_in"; then
10725 test -f Makefile && make "$ltmain"
10731 ac_cpp='$CPP $CPPFLAGS'
10732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10739 # Check whether --with-tags was given.
10740 if test "${with_tags+set}" = set; then
10741 withval=$with_tags; tagnames="$withval"
10745 if test -f "$ltmain" && test -n "$tagnames"; then
10746 if test ! -f "${ofile}"; then
10747 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10748 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10751 if test -z "$LTCC"; then
10752 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10753 if test -z "$LTCC"; then
10754 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10755 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10757 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10758 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10761 if test -z "$LTCFLAGS"; then
10762 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10765 # Extract list of available tagged configurations in $ofile.
10766 # Note that this assumes the entire list is on one line.
10767 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10769 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10770 for tagname in $tagnames; do
10772 # Check whether tagname contains only valid characters
10773 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10775 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10776 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10777 { (exit 1); exit 1; }; }
10781 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10783 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10784 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10785 { (exit 1); exit 1; }; }
10788 # Update the list of available tags.
10789 if test -n "$tagname"; then
10790 echo appending configuration tag \"$tagname\" to $ofile
10794 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10795 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10796 (test "X$CXX" != "Xg++"))) ; then
10798 ac_cpp='$CXXCPP $CPPFLAGS'
10799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10806 archive_cmds_need_lc_CXX=no
10807 allow_undefined_flag_CXX=
10808 always_export_symbols_CXX=no
10809 archive_expsym_cmds_CXX=
10810 export_dynamic_flag_spec_CXX=
10811 hardcode_direct_CXX=no
10812 hardcode_libdir_flag_spec_CXX=
10813 hardcode_libdir_flag_spec_ld_CXX=
10814 hardcode_libdir_separator_CXX=
10815 hardcode_minus_L_CXX=no
10816 hardcode_shlibpath_var_CXX=unsupported
10817 hardcode_automatic_CXX=no
10819 module_expsym_cmds_CXX=
10820 link_all_deplibs_CXX=unknown
10821 old_archive_cmds_CXX=$old_archive_cmds
10822 no_undefined_flag_CXX=
10823 whole_archive_flag_spec_CXX=
10824 enable_shared_with_static_runtimes_CXX=no
10826 # Dependencies to place before and after the object being linked:
10827 predep_objects_CXX=
10828 postdep_objects_CXX=
10831 compiler_lib_search_path_CXX=
10833 # Source file extension for C++ test sources.
10836 # Object file extension for compiled C++ test sources.
10840 # Code to be used in simple compile tests
10841 lt_simple_compile_test_code="int some_variable = 0;\n"
10843 # Code to be used in simple link tests
10844 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10846 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10848 # If no C compiler was specified, use CC.
10851 # If no C compiler flags were specified, use CFLAGS.
10852 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10854 # Allow CC to be a program name with arguments.
10858 # save warnings/boilerplate of simple test code
10859 ac_outfile=conftest.$ac_objext
10860 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10861 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10862 _lt_compiler_boilerplate=`cat conftest.err`
10865 ac_outfile=conftest.$ac_objext
10866 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10867 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10868 _lt_linker_boilerplate=`cat conftest.err`
10872 # Allow CC to be a program name with arguments.
10877 lt_save_with_gnu_ld=$with_gnu_ld
10878 lt_save_path_LD=$lt_cv_path_LD
10879 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10880 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10882 $as_unset lt_cv_prog_gnu_ld
10884 if test -n "${lt_cv_path_LDCXX+set}"; then
10885 lt_cv_path_LD=$lt_cv_path_LDCXX
10887 $as_unset lt_cv_path_LD
10889 test -z "${LDCXX+set}" || LD=$LDCXX
10893 for cc_temp in $compiler""; do
10895 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10896 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10901 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10904 # We don't want -fno-exception wen compiling C++ code, so set the
10905 # no_builtin_flag separately
10906 if test "$GXX" = yes; then
10907 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10909 lt_prog_compiler_no_builtin_flag_CXX=
10912 if test "$GXX" = yes; then
10913 # Set up default GNU C++ configuration
10916 # Check whether --with-gnu-ld was given.
10917 if test "${with_gnu_ld+set}" = set; then
10918 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10924 if test "$GCC" = yes; then
10925 # Check if gcc -print-prog-name=ld gives a path.
10926 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10927 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10930 # gcc leaves a trailing carriage return which upsets mingw
10931 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10933 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10936 # Accept absolute paths.
10938 re_direlt='/[^/][^/]*/\.\./'
10939 # Canonicalize the pathname of ld
10940 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10941 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10942 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10944 test -z "$LD" && LD="$ac_prog"
10947 # If it fails, then pretend we aren't using GCC.
10951 # If it is relative, then search for the first ld in PATH.
10952 with_gnu_ld=unknown
10955 elif test "$with_gnu_ld" = yes; then
10956 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10957 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10959 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10960 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10962 if test "${lt_cv_path_LD+set}" = set; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10965 if test -z "$LD"; then
10966 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10967 for ac_dir in $PATH; do
10969 test -z "$ac_dir" && ac_dir=.
10970 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10971 lt_cv_path_LD="$ac_dir/$ac_prog"
10972 # Check to see if the program is GNU ld. I'd rather use --version,
10973 # but apparently some variants of GNU ld only accept -v.
10974 # Break only if it was the GNU/non-GNU ld that we prefer.
10975 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10976 *GNU* | *'with BFD'*)
10977 test "$with_gnu_ld" != no && break
10980 test "$with_gnu_ld" != yes && break
10987 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10991 LD="$lt_cv_path_LD"
10992 if test -n "$LD"; then
10993 { echo "$as_me:$LINENO: result: $LD" >&5
10994 echo "${ECHO_T}$LD" >&6; }
10996 { echo "$as_me:$LINENO: result: no" >&5
10997 echo "${ECHO_T}no" >&6; }
10999 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11000 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11001 { (exit 1); exit 1; }; }
11002 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11003 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11004 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11007 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11008 case `$LD -v 2>&1 </dev/null` in
11009 *GNU* | *'with BFD'*)
11010 lt_cv_prog_gnu_ld=yes
11013 lt_cv_prog_gnu_ld=no
11017 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11018 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11019 with_gnu_ld=$lt_cv_prog_gnu_ld
11023 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11024 # archiving commands below assume that GNU ld is being used.
11025 if test "$with_gnu_ld" = yes; then
11026 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11027 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'
11029 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11030 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11032 # If archive_cmds runs LD, not CC, wlarc should be empty
11033 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11034 # investigate it a little bit more. (MM)
11037 # ancient GNU ld didn't support --whole-archive et. al.
11038 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11039 grep 'no-whole-archive' > /dev/null; then
11040 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11042 whole_archive_flag_spec_CXX=
11048 # A generic and very simple default shared library creation
11049 # command for GNU C++ for the case where it uses the native
11050 # linker, instead of GNU ld. If possible, this setting should
11051 # overridden to take advantage of the native linker features on
11052 # the platform it is being used on.
11053 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11056 # Commands to make compiler produce verbose output that lists
11057 # what "hidden" libraries, object files and flags are used when
11058 # linking a shared library.
11059 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11067 # PORTME: fill in a description of your system's C++ link characteristics
11068 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11069 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11073 # FIXME: insert proper C++ library support
11077 if test "$host_cpu" = ia64; then
11078 # On IA64, the linker does run time linking by default, so we don't
11079 # have to do anything special.
11080 aix_use_runtimelinking=no
11081 exp_sym_flag='-Bexport'
11084 aix_use_runtimelinking=no
11086 # Test if we are trying to use run time linking or normal
11087 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11088 # need to do runtime linking.
11089 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11090 for ld_flag in $LDFLAGS; do
11093 aix_use_runtimelinking=yes
11101 exp_sym_flag='-bexport'
11102 no_entry_flag='-bnoentry'
11105 # When large executables or shared objects are built, AIX ld can
11106 # have problems creating the table of contents. If linking a library
11107 # or program results in "error TOC overflow" add -mminimal-toc to
11108 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11109 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11111 archive_cmds_CXX=''
11112 hardcode_direct_CXX=yes
11113 hardcode_libdir_separator_CXX=':'
11114 link_all_deplibs_CXX=yes
11116 if test "$GXX" = yes; then
11117 case $host_os in aix4.[012]|aix4.[012].*)
11118 # We only want to do this on AIX 4.2 and lower, the check
11119 # below for broken collect2 doesn't work under 4.3+
11120 collect2name=`${CC} -print-prog-name=collect2`
11121 if test -f "$collect2name" && \
11122 strings "$collect2name" | grep resolve_lib_name >/dev/null
11124 # We have reworked collect2
11125 hardcode_direct_CXX=yes
11127 # We have old collect2
11128 hardcode_direct_CXX=unsupported
11129 # It fails to find uninstalled libraries when the uninstalled
11130 # path is not listed in the libpath. Setting hardcode_minus_L
11131 # to unsupported forces relinking
11132 hardcode_minus_L_CXX=yes
11133 hardcode_libdir_flag_spec_CXX='-L$libdir'
11134 hardcode_libdir_separator_CXX=
11138 shared_flag='-shared'
11139 if test "$aix_use_runtimelinking" = yes; then
11140 shared_flag="$shared_flag "'${wl}-G'
11144 if test "$host_cpu" = ia64; then
11145 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11146 # chokes on -Wl,-G. The following line is correct:
11149 if test "$aix_use_runtimelinking" = yes; then
11150 shared_flag='${wl}-G'
11152 shared_flag='${wl}-bM:SRE'
11157 # It seems that -bexpall does not export symbols beginning with
11158 # underscore (_), so it is better to generate a list of symbols to export.
11159 always_export_symbols_CXX=yes
11160 if test "$aix_use_runtimelinking" = yes; then
11161 # Warning - without using the other runtime loading flags (-brtl),
11162 # -berok will link without error, but may produce a broken library.
11163 allow_undefined_flag_CXX='-berok'
11164 # Determine the default libpath from the value encoded in an empty executable.
11165 cat >conftest.$ac_ext <<_ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h. */
11180 rm -f conftest.$ac_objext conftest$ac_exeext
11181 if { (ac_try="$ac_link"
11182 case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 (eval "$ac_link") 2>conftest.er1
11189 grep -v '^ *+' conftest.er1 >conftest.err
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } && {
11194 test -z "$ac_cxx_werror_flag" ||
11195 test ! -s conftest.err
11196 } && test -s conftest$ac_exeext &&
11197 $as_test_x conftest$ac_exeext; then
11199 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11201 # Check for a 64-bit object if we didn't find anything.
11202 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; }
11205 echo "$as_me: failed program was:" >&5
11206 sed 's/^/| /' conftest.$ac_ext >&5
11211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11212 conftest$ac_exeext conftest.$ac_ext
11213 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11215 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11217 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"
11219 if test "$host_cpu" = ia64; then
11220 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11221 allow_undefined_flag_CXX="-z nodefs"
11222 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"
11224 # Determine the default libpath from the value encoded in an empty executable.
11225 cat >conftest.$ac_ext <<_ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h. */
11240 rm -f conftest.$ac_objext conftest$ac_exeext
11241 if { (ac_try="$ac_link"
11242 case "(($ac_try" in
11243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11244 *) ac_try_echo=$ac_try;;
11246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11247 (eval "$ac_link") 2>conftest.er1
11249 grep -v '^ *+' conftest.er1 >conftest.err
11251 cat conftest.err >&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } && {
11254 test -z "$ac_cxx_werror_flag" ||
11255 test ! -s conftest.err
11256 } && test -s conftest$ac_exeext &&
11257 $as_test_x conftest$ac_exeext; then
11259 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11261 # Check for a 64-bit object if we didn't find anything.
11262 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; }
11265 echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11272 conftest$ac_exeext conftest.$ac_ext
11273 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11275 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11276 # Warning - without using the other run time loading flags,
11277 # -berok will link without error, but may produce a broken library.
11278 no_undefined_flag_CXX=' ${wl}-bernotok'
11279 allow_undefined_flag_CXX=' ${wl}-berok'
11280 # Exported symbols can be pulled into shared objects from archives
11281 whole_archive_flag_spec_CXX='$convenience'
11282 archive_cmds_need_lc_CXX=yes
11283 # This is similar to how AIX traditionally builds its shared libraries.
11284 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'
11290 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11291 allow_undefined_flag_CXX=unsupported
11292 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11293 # support --undefined. This deserves some investigation. FIXME
11294 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11301 case $cc_basename in
11303 # FIXME: insert proper C++ library support
11309 cygwin* | mingw* | pw32*)
11310 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11311 # as there is no search path for DLLs.
11312 hardcode_libdir_flag_spec_CXX='-L$libdir'
11313 allow_undefined_flag_CXX=unsupported
11314 always_export_symbols_CXX=no
11315 enable_shared_with_static_runtimes_CXX=yes
11317 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11318 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'
11319 # If the export-symbols file already is a .def file (1st line
11320 # is EXPORTS), use it as is; otherwise, prepend...
11321 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11322 cp $export_symbols $output_objdir/$soname.def;
11324 echo EXPORTS > $output_objdir/$soname.def;
11325 cat $export_symbols >> $output_objdir/$soname.def;
11327 $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'
11332 darwin* | rhapsody*)
11334 rhapsody* | darwin1.[012])
11335 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11338 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11339 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11341 case ${MACOSX_DEPLOYMENT_TARGET} in
11343 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11346 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11352 archive_cmds_need_lc_CXX=no
11353 hardcode_direct_CXX=no
11354 hardcode_automatic_CXX=yes
11355 hardcode_shlibpath_var_CXX=unsupported
11356 whole_archive_flag_spec_CXX=''
11357 link_all_deplibs_CXX=yes
11359 if test "$GXX" = yes ; then
11360 lt_int_apple_cc_single_mod=no
11361 output_verbose_link_cmd='echo'
11362 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11363 lt_int_apple_cc_single_mod=yes
11365 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11366 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11368 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'
11370 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11371 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11372 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11373 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}'
11375 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}'
11377 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}'
11379 case $cc_basename in
11381 output_verbose_link_cmd='echo'
11382 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'
11383 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11384 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11385 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}'
11386 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}'
11396 case $cc_basename in
11398 # FIXME: insert proper C++ library support
11402 # Green Hills C++ Compiler
11403 # FIXME: insert proper C++ library support
11407 # FIXME: insert proper C++ library support
11413 # C++ shared libraries reported to be fairly broken before switch to ELF
11417 archive_cmds_need_lc_CXX=no
11419 freebsd* | kfreebsd*-gnu | dragonfly*)
11420 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11427 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11428 hardcode_libdir_separator_CXX=:
11429 export_dynamic_flag_spec_CXX='${wl}-E'
11430 hardcode_direct_CXX=yes
11431 hardcode_minus_L_CXX=yes # Not in the search PATH,
11432 # but as the default
11433 # location of the library.
11435 case $cc_basename in
11437 # FIXME: insert proper C++ library support
11441 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'
11442 # Commands to make compiler produce verbose output that lists
11443 # what "hidden" libraries, object files and flags are used when
11444 # linking a shared library.
11446 # There doesn't appear to be a way to prevent this compiler from
11447 # explicitly linking system object files so we need to strip them
11448 # from the output so that they don't get included in the library
11450 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'
11453 if test "$GXX" = yes; then
11454 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'
11456 # FIXME: insert proper C++ library support
11463 if test $with_gnu_ld = no; then
11464 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11465 hardcode_libdir_separator_CXX=:
11469 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11472 export_dynamic_flag_spec_CXX='${wl}-E'
11478 hardcode_direct_CXX=no
11479 hardcode_shlibpath_var_CXX=no
11482 hardcode_direct_CXX=yes
11483 hardcode_minus_L_CXX=yes # Not in the search PATH,
11484 # but as the default
11485 # location of the library.
11489 case $cc_basename in
11491 # FIXME: insert proper C++ library support
11497 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11500 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11503 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11506 # Commands to make compiler produce verbose output that lists
11507 # what "hidden" libraries, object files and flags are used when
11508 # linking a shared library.
11510 # There doesn't appear to be a way to prevent this compiler from
11511 # explicitly linking system object files so we need to strip them
11512 # from the output so that they don't get included in the library
11514 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'
11517 if test "$GXX" = yes; then
11518 if test $with_gnu_ld = no; then
11521 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11524 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11527 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'
11532 # FIXME: insert proper C++ library support
11539 hardcode_direct_CXX=no
11540 hardcode_shlibpath_var_CXX=no
11541 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11542 export_dynamic_flag_spec_CXX='${wl}-E'
11543 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11544 # Instead, shared libraries are loaded at an image base (0x10000000 by
11545 # default) and relocated if they conflict, which is a slow very memory
11546 # consuming and fragmenting process. To avoid this, we pick a random,
11547 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11548 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11549 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'
11550 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'
11553 case $cc_basename in
11556 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'
11558 # Archives containing C++ object files must be created using
11559 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11560 # necessary to make sure instantiated templates are included
11562 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11565 if test "$GXX" = yes; then
11566 if test "$with_gnu_ld" = no; then
11567 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'
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` -o $lib'
11572 link_all_deplibs_CXX=yes
11575 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11576 hardcode_libdir_separator_CXX=:
11579 case $cc_basename in
11581 # Kuck and Associates, Inc. (KAI) C++ Compiler
11583 # KCC will only create a shared library if the output file
11584 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11585 # to its proper name (with version) after linking.
11586 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'
11587 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'
11588 # Commands to make compiler produce verbose output that lists
11589 # what "hidden" libraries, object files and flags are used when
11590 # linking a shared library.
11592 # There doesn't appear to be a way to prevent this compiler from
11593 # explicitly linking system object files so we need to strip them
11594 # from the output so that they don't get included in the library
11596 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'
11598 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11599 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11601 # Archives containing C++ object files must be created using
11602 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11603 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11608 # version 8.0 and above of icpc choke on multiply defined symbols
11609 # if we add $predep_objects and $postdep_objects, however 7.1 and
11610 # earlier do not add the objects themselves.
11611 case `$CC -V 2>&1` in
11613 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11614 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'
11616 *) # Version 8.0 or newer
11619 ia64*) tmp_idyn=' -i_dynamic';;
11621 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11622 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'
11625 archive_cmds_need_lc_CXX=no
11626 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11627 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11628 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11631 # Portland Group C++ compiler
11632 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11633 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'
11635 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11636 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11637 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'
11641 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11642 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'
11644 runpath_var=LD_RUN_PATH
11645 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11646 hardcode_libdir_separator_CXX=:
11648 # Commands to make compiler produce verbose output that lists
11649 # what "hidden" libraries, object files and flags are used when
11650 # linking a shared library.
11652 # There doesn't appear to be a way to prevent this compiler from
11653 # explicitly linking system object files so we need to strip them
11654 # from the output so that they don't get included in the library
11656 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'
11661 # FIXME: insert proper C++ library support
11665 # FIXME: insert proper C++ library support
11669 case $cc_basename in
11671 # FIXME: insert proper C++ library support
11675 # FIXME: insert proper C++ library support
11681 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11682 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11684 hardcode_libdir_flag_spec_CXX='-R$libdir'
11685 hardcode_direct_CXX=yes
11686 hardcode_shlibpath_var_CXX=no
11688 # Workaround some broken pre-1.5 toolchains
11689 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11692 # C++ shared libraries are fairly broken
11696 hardcode_direct_CXX=yes
11697 hardcode_shlibpath_var_CXX=no
11698 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11699 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11700 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11701 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11702 export_dynamic_flag_spec_CXX='${wl}-E'
11703 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11705 output_verbose_link_cmd='echo'
11708 case $cc_basename in
11710 # Kuck and Associates, Inc. (KAI) C++ Compiler
11712 # KCC will only create a shared library if the output file
11713 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11714 # to its proper name (with version) after linking.
11715 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'
11717 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11718 hardcode_libdir_separator_CXX=:
11720 # Archives containing C++ object files must be created using
11721 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11722 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11726 # Rational C++ 2.4.1
11727 # FIXME: insert proper C++ library support
11731 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11732 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'
11734 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11735 hardcode_libdir_separator_CXX=:
11737 # Commands to make compiler produce verbose output that lists
11738 # what "hidden" libraries, object files and flags are used when
11739 # linking a shared library.
11741 # There doesn't appear to be a way to prevent this compiler from
11742 # explicitly linking system object files so we need to strip them
11743 # from the output so that they don't get included in the library
11745 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'
11748 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11749 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11750 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'
11752 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11753 hardcode_libdir_separator_CXX=:
11755 # Commands to make compiler produce verbose output that lists
11756 # what "hidden" libraries, object files and flags are used when
11757 # linking a shared library.
11758 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11761 # FIXME: insert proper C++ library support
11768 case $cc_basename in
11770 # Kuck and Associates, Inc. (KAI) C++ Compiler
11772 # KCC will only create a shared library if the output file
11773 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11774 # to its proper name (with version) after linking.
11775 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'
11777 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11778 hardcode_libdir_separator_CXX=:
11780 # Archives containing C++ object files must be created using
11781 # the KAI C++ compiler.
11782 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11785 # Rational C++ 2.4.1
11786 # FIXME: insert proper C++ library support
11790 allow_undefined_flag_CXX=' -expect_unresolved \*'
11791 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'
11792 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11793 echo "-hidden">> $lib.exp~
11794 $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~
11797 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11798 hardcode_libdir_separator_CXX=:
11800 # Commands to make compiler produce verbose output that lists
11801 # what "hidden" libraries, object files and flags are used when
11802 # linking a shared library.
11804 # There doesn't appear to be a way to prevent this compiler from
11805 # explicitly linking system object files so we need to strip them
11806 # from the output so that they don't get included in the library
11808 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'
11811 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11812 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11813 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'
11815 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11816 hardcode_libdir_separator_CXX=:
11818 # Commands to make compiler produce verbose output that lists
11819 # what "hidden" libraries, object files and flags are used when
11820 # linking a shared library.
11821 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11824 # FIXME: insert proper C++ library support
11831 # FIXME: insert proper C++ library support
11835 case $cc_basename in
11838 # FIXME: insert proper C++ library support
11843 # FIXME: insert proper C++ library support
11847 # FIXME: insert proper C++ library support
11853 case $cc_basename in
11855 # Sun C++ 4.2, 5.x and Centerline C++
11856 archive_cmds_need_lc_CXX=yes
11857 no_undefined_flag_CXX=' -zdefs'
11858 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11859 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11860 $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'
11862 hardcode_libdir_flag_spec_CXX='-R$libdir'
11863 hardcode_shlibpath_var_CXX=no
11865 solaris2.[0-5] | solaris2.[0-5].*) ;;
11867 # The C++ compiler is used as linker so we must use $wl
11868 # flag to pass the commands to the underlying system
11869 # linker. We must also pass each convience library through
11870 # to the system linker between allextract/defaultextract.
11871 # The C++ compiler will combine linker options so we
11872 # cannot just pass the convience library names through
11874 # Supported since Solaris 2.6 (maybe 2.5.1?)
11875 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'
11878 link_all_deplibs_CXX=yes
11880 output_verbose_link_cmd='echo'
11882 # Archives containing C++ object files must be created using
11883 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11884 # necessary to make sure instantiated templates are included
11886 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11889 # Green Hills C++ Compiler
11890 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11892 # The C++ compiler must be used to create the archive.
11893 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11896 # GNU C++ compiler with Solaris linker
11897 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11898 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11899 if $CC --version | grep -v '^2\.7' > /dev/null; then
11900 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11901 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11902 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11904 # Commands to make compiler produce verbose output that lists
11905 # what "hidden" libraries, object files and flags are used when
11906 # linking a shared library.
11907 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11909 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11911 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11912 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11913 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11915 # Commands to make compiler produce verbose output that lists
11916 # what "hidden" libraries, object files and flags are used when
11917 # linking a shared library.
11918 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11921 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11926 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11927 no_undefined_flag_CXX='${wl}-z,text'
11928 archive_cmds_need_lc_CXX=no
11929 hardcode_shlibpath_var_CXX=no
11930 runpath_var='LD_RUN_PATH'
11932 case $cc_basename in
11934 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11935 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11938 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11939 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11943 sysv5* | sco3.2v5* | sco5v6*)
11944 # Note: We can NOT use -z defs as we might desire, because we do not
11945 # link with -lc, and that would cause any symbols used from libc to
11946 # always be unresolved, which means just about no library would
11947 # ever link correctly. If we're not using GNU ld we use -z text
11948 # though, which does catch some bad symbols but isn't as heavy-handed
11950 # For security reasons, it is highly recommended that you always
11951 # use absolute paths for naming shared libraries, and exclude the
11952 # DT_RUNPATH tag from executables and libraries. But doing so
11953 # requires that you compile everything twice, which is a pain.
11954 # So that behaviour is only enabled if SCOABSPATH is set to a
11955 # non-empty value in the environment. Most likely only useful for
11956 # creating official distributions of packages.
11957 # This is a hack until libtool officially supports absolute path
11958 # names for shared libraries.
11959 no_undefined_flag_CXX='${wl}-z,text'
11960 allow_undefined_flag_CXX='${wl}-z,nodefs'
11961 archive_cmds_need_lc_CXX=no
11962 hardcode_shlibpath_var_CXX=no
11963 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11964 hardcode_libdir_separator_CXX=':'
11965 link_all_deplibs_CXX=yes
11966 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11967 runpath_var='LD_RUN_PATH'
11969 case $cc_basename in
11971 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11972 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11975 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11976 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11981 case $cc_basename in
11983 # NonStop-UX NCC 3.20
11984 # FIXME: insert proper C++ library support
11988 # FIXME: insert proper C++ library support
11994 # FIXME: insert proper C++ library support
11998 # FIXME: insert proper C++ library support
12002 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12003 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12004 test "$ld_shlibs_CXX" = no && can_build_shared=no
12010 ## There is no encapsulation within the following macros, do not change
12011 ## the running order or otherwise move them around unless you know exactly
12012 ## what you are doing...
12014 cat > conftest.$ac_ext <<EOF
12018 Foo (void) { a = 0; }
12024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12025 (eval $ac_compile) 2>&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; then
12029 # Parse the compiler output and extract the necessary
12030 # objects, libraries and library flags.
12032 # Sentinel used to keep track of whether or not we are before
12033 # the conftest object file.
12034 pre_test_object_deps_done=no
12036 # The `*' in the case matches for architectures that use `case' in
12037 # $output_verbose_cmd can trigger glob expansion during the loop
12038 # eval without this substitution.
12039 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12041 for p in `eval $output_verbose_link_cmd`; do
12045 # Some compilers place space between "-{L,R}" and the path.
12046 # Remove the space.
12047 if test $p = "-L" \
12048 || test $p = "-R"; then
12055 if test "$pre_test_object_deps_done" = no; then
12058 # Internal compiler library paths should come after those
12059 # provided the user. The postdeps already come after the
12060 # user supplied libs so there is no need to process them.
12061 if test -z "$compiler_lib_search_path_CXX"; then
12062 compiler_lib_search_path_CXX="${prev}${p}"
12064 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12067 # The "-l" case would never come before the object being
12068 # linked, so don't bother handling this case.
12071 if test -z "$postdeps_CXX"; then
12072 postdeps_CXX="${prev}${p}"
12074 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12080 # This assumes that the test object file only shows up
12081 # once in the compiler output.
12082 if test "$p" = "conftest.$objext"; then
12083 pre_test_object_deps_done=yes
12087 if test "$pre_test_object_deps_done" = no; then
12088 if test -z "$predep_objects_CXX"; then
12089 predep_objects_CXX="$p"
12091 predep_objects_CXX="$predep_objects_CXX $p"
12094 if test -z "$postdep_objects_CXX"; then
12095 postdep_objects_CXX="$p"
12097 postdep_objects_CXX="$postdep_objects_CXX $p"
12102 *) ;; # Ignore the rest.
12110 echo "libtool.m4: error: problem compiling CXX test program"
12113 $rm -f confest.$objext
12115 # PORTME: override above test on systems where it is broken
12118 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12119 # hack all around it, let's just trust "g++" to DTRT.
12120 predep_objects_CXX=
12121 postdep_objects_CXX=
12126 case $cc_basename in
12128 # Adding this requires a known-good setup of shared libraries for
12129 # Sun compiler versions before 5.6, else PIC objects from an old
12130 # archive will be linked into the output, leading to subtle bugs.
12131 postdeps_CXX='-lCstd -lCrun'
12138 case " $postdeps_CXX " in
12139 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12142 lt_prog_compiler_wl_CXX=
12143 lt_prog_compiler_pic_CXX=
12144 lt_prog_compiler_static_CXX=
12146 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12147 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12149 # C++ specific cases for pic, static, wl, etc.
12150 if test "$GXX" = yes; then
12151 lt_prog_compiler_wl_CXX='-Wl,'
12152 lt_prog_compiler_static_CXX='-static'
12156 # All AIX code is PIC.
12157 if test "$host_cpu" = ia64; then
12158 # AIX 5 now supports IA64 processor
12159 lt_prog_compiler_static_CXX='-Bstatic'
12163 # FIXME: we need at least 68020 code to build shared libraries, but
12164 # adding the `-m68020' flag to GCC prevents building anything better,
12166 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12168 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12169 # PIC is the default for these OSes.
12171 mingw* | os2* | pw32*)
12172 # This hack is so that the source file can tell whether it is being
12173 # built for inclusion in a dll (and should export symbols for example).
12174 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12176 darwin* | rhapsody*)
12177 # PIC is the default on this platform
12178 # Common symbols not allowed in MH_DYLIB files
12179 lt_prog_compiler_pic_CXX='-fno-common'
12182 # DJGPP does not support shared libraries at all
12183 lt_prog_compiler_pic_CXX=
12186 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12187 # Instead, we relocate shared libraries at runtime.
12190 if test -d /usr/nec; then
12191 lt_prog_compiler_pic_CXX=-Kconform_pic
12195 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12196 # not for PA HP-UX.
12201 lt_prog_compiler_pic_CXX='-fPIC'
12206 lt_prog_compiler_pic_CXX='-fPIC'
12212 # All AIX code is PIC.
12213 if test "$host_cpu" = ia64; then
12214 # AIX 5 now supports IA64 processor
12215 lt_prog_compiler_static_CXX='-Bstatic'
12217 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12221 case $cc_basename in
12223 # Green Hills C++ Compiler
12224 # _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"
12229 # PIC is the default on this platform
12230 # Common symbols not allowed in MH_DYLIB files
12231 case $cc_basename in
12233 lt_prog_compiler_pic_CXX='-qnocommon'
12234 lt_prog_compiler_wl_CXX='-Wl,'
12239 case $cc_basename in
12241 lt_prog_compiler_pic_CXX='-KPIC'
12244 # Green Hills C++ Compiler
12245 lt_prog_compiler_pic_CXX='-pic'
12251 freebsd* | kfreebsd*-gnu | dragonfly*)
12252 # FreeBSD uses GNU C++
12254 hpux9* | hpux10* | hpux11*)
12255 case $cc_basename in
12257 lt_prog_compiler_wl_CXX='-Wl,'
12258 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12259 if test "$host_cpu" != ia64; then
12260 lt_prog_compiler_pic_CXX='+Z'
12264 lt_prog_compiler_wl_CXX='-Wl,'
12265 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12271 lt_prog_compiler_pic_CXX='+Z'
12280 # This is c89, which is MS Visual C++ (no shared libs)
12281 # Anyone wants to do a port?
12283 irix5* | irix6* | nonstopux*)
12284 case $cc_basename in
12286 lt_prog_compiler_wl_CXX='-Wl,'
12287 lt_prog_compiler_static_CXX='-non_shared'
12288 # CC pic flag -KPIC is the default.
12295 case $cc_basename in
12298 lt_prog_compiler_wl_CXX='--backend -Wl,'
12299 lt_prog_compiler_pic_CXX='-fPIC'
12303 lt_prog_compiler_wl_CXX='-Wl,'
12304 lt_prog_compiler_pic_CXX='-KPIC'
12305 lt_prog_compiler_static_CXX='-static'
12308 # Portland Group C++ compiler.
12309 lt_prog_compiler_wl_CXX='-Wl,'
12310 lt_prog_compiler_pic_CXX='-fpic'
12311 lt_prog_compiler_static_CXX='-Bstatic'
12315 # Make sure the PIC flag is empty. It appears that all Alpha
12316 # Linux and Compaq Tru64 Unix objects are PIC.
12317 lt_prog_compiler_pic_CXX=
12318 lt_prog_compiler_static_CXX='-non_shared'
12329 case $cc_basename in
12331 lt_prog_compiler_pic_CXX='-W c,exportall'
12339 osf3* | osf4* | osf5*)
12340 case $cc_basename in
12342 lt_prog_compiler_wl_CXX='--backend -Wl,'
12345 # Rational C++ 2.4.1
12346 lt_prog_compiler_pic_CXX='-pic'
12349 # Digital/Compaq C++
12350 lt_prog_compiler_wl_CXX='-Wl,'
12351 # Make sure the PIC flag is empty. It appears that all Alpha
12352 # Linux and Compaq Tru64 Unix objects are PIC.
12353 lt_prog_compiler_pic_CXX=
12354 lt_prog_compiler_static_CXX='-non_shared'
12363 case $cc_basename in
12365 # Sun C++ 4.2, 5.x and Centerline C++
12366 lt_prog_compiler_pic_CXX='-KPIC'
12367 lt_prog_compiler_static_CXX='-Bstatic'
12368 lt_prog_compiler_wl_CXX='-Qoption ld '
12371 # Green Hills C++ Compiler
12372 lt_prog_compiler_pic_CXX='-PIC'
12379 case $cc_basename in
12382 lt_prog_compiler_pic_CXX='-pic'
12383 lt_prog_compiler_static_CXX='-Bstatic'
12387 lt_prog_compiler_pic_CXX='-pic'
12394 case $cc_basename in
12396 # NonStop-UX NCC 3.20
12397 lt_prog_compiler_pic_CXX='-KPIC'
12403 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12404 case $cc_basename in
12406 lt_prog_compiler_wl_CXX='-Wl,'
12407 lt_prog_compiler_pic_CXX='-KPIC'
12408 lt_prog_compiler_static_CXX='-Bstatic'
12415 lt_prog_compiler_can_build_shared_CXX=no
12420 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12421 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12424 # Check to make sure the PIC flag actually works.
12426 if test -n "$lt_prog_compiler_pic_CXX"; then
12428 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12429 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12430 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12433 lt_prog_compiler_pic_works_CXX=no
12434 ac_outfile=conftest.$ac_objext
12435 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12436 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12437 # Insert the option either (1) after the last *FLAGS variable, or
12438 # (2) before a word containing "conftest.", or (3) at the end.
12439 # Note that $ac_compile itself does not contain backslashes and begins
12440 # with a dollar sign (not a hyphen), so the echo should work correctly.
12441 # The option is referenced via a variable to avoid confusing sed.
12442 lt_compile=`echo "$ac_compile" | $SED \
12443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12445 -e 's:$: $lt_compiler_flag:'`
12446 (eval echo "\"\$as_me:12446: $lt_compile\"" >&5)
12447 (eval "$lt_compile" 2>conftest.err)
12449 cat conftest.err >&5
12450 echo "$as_me:12450: \$? = $ac_status" >&5
12451 if (exit $ac_status) && test -s "$ac_outfile"; then
12452 # The compiler can only warn and ignore the option if not recognized
12453 # So say no if there are warnings other than the usual output.
12454 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12456 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12457 lt_prog_compiler_pic_works_CXX=yes
12463 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12464 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12466 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12467 case $lt_prog_compiler_pic_CXX in
12469 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12472 lt_prog_compiler_pic_CXX=
12473 lt_prog_compiler_can_build_shared_CXX=no
12478 # For platforms which do not support PIC, -DPIC is meaningless:
12480 lt_prog_compiler_pic_CXX=
12483 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12488 # Check to make sure the static flag actually works.
12490 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12491 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12492 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12493 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12496 lt_prog_compiler_static_works_CXX=no
12497 save_LDFLAGS="$LDFLAGS"
12498 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12499 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12500 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12501 # The linker can only warn and ignore the option if not recognized
12502 # So say no if there are warnings
12503 if test -s conftest.err; then
12504 # Append any errors to the config.log.
12505 cat conftest.err 1>&5
12506 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12508 if diff conftest.exp conftest.er2 >/dev/null; then
12509 lt_prog_compiler_static_works_CXX=yes
12512 lt_prog_compiler_static_works_CXX=yes
12516 LDFLAGS="$save_LDFLAGS"
12519 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12520 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12522 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12525 lt_prog_compiler_static_CXX=
12529 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12530 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12531 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12534 lt_cv_prog_compiler_c_o_CXX=no
12535 $rm -r conftest 2>/dev/null
12539 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12541 lt_compiler_flag="-o out/conftest2.$ac_objext"
12542 # Insert the option either (1) after the last *FLAGS variable, or
12543 # (2) before a word containing "conftest.", or (3) at the end.
12544 # Note that $ac_compile itself does not contain backslashes and begins
12545 # with a dollar sign (not a hyphen), so the echo should work correctly.
12546 lt_compile=`echo "$ac_compile" | $SED \
12547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12549 -e 's:$: $lt_compiler_flag:'`
12550 (eval echo "\"\$as_me:12550: $lt_compile\"" >&5)
12551 (eval "$lt_compile" 2>out/conftest.err)
12553 cat out/conftest.err >&5
12554 echo "$as_me:12554: \$? = $ac_status" >&5
12555 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12557 # The compiler can only warn and ignore the option if not recognized
12558 # So say no if there are warnings
12559 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12560 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12561 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12562 lt_cv_prog_compiler_c_o_CXX=yes
12567 # SGI C++ compiler will create directory out/ii_files/ for
12568 # template instantiation
12569 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12570 $rm out/* && rmdir out
12576 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12577 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12580 hard_links="nottested"
12581 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12582 # do not overwrite the value of need_locks provided by the user
12583 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12584 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12587 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12589 ln conftest.a conftest.b 2>&5 || hard_links=no
12590 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12591 { echo "$as_me:$LINENO: result: $hard_links" >&5
12592 echo "${ECHO_T}$hard_links" >&6; }
12593 if test "$hard_links" = no; then
12594 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12595 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12602 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12603 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12605 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12608 # If we're using GNU nm, then we don't want the "-C" option.
12609 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12610 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12611 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'
12613 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'
12617 export_symbols_cmds_CXX="$ltdll_cmds"
12620 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'
12623 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12627 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12628 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12629 test "$ld_shlibs_CXX" = no && can_build_shared=no
12632 # Do we need to explicitly link libc?
12634 case "x$archive_cmds_need_lc_CXX" in
12636 # Assume -lc should be added
12637 archive_cmds_need_lc_CXX=yes
12639 if test "$enable_shared" = yes && test "$GCC" = yes; then
12640 case $archive_cmds_CXX in
12642 # FIXME: we may have to deal with multi-command sequences.
12645 # Test whether the compiler implicitly links with -lc since on some
12646 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12647 # to ld, don't add -lc before -lgcc.
12648 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12649 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12651 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12654 (eval $ac_compile) 2>&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } 2>conftest.err; then
12660 libobjs=conftest.$ac_objext
12662 wl=$lt_prog_compiler_wl_CXX
12663 pic_flag=$lt_prog_compiler_pic_CXX
12669 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12670 allow_undefined_flag_CXX=
12671 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12672 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }
12677 archive_cmds_need_lc_CXX=no
12679 archive_cmds_need_lc_CXX=yes
12681 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12683 cat conftest.err 1>&5
12686 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12687 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12694 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12695 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12696 library_names_spec=
12697 libname_spec='lib$name'
12701 postuninstall_cmds=
12705 shlibpath_overrides_runpath=unknown
12707 dynamic_linker="$host_os ld.so"
12708 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12709 if test "$GCC" = yes; then
12710 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12711 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12712 # if the path contains ";" then we assume it to be the separator
12713 # otherwise default to the standard path separator (i.e. ":") - it is
12714 # assumed that no part of a normal pathname contains ";" but that should
12715 # okay in the real world where ";" in dirpaths is itself problematic.
12716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12721 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12723 need_lib_prefix=unknown
12724 hardcode_into_libs=no
12726 # when you set need_version to no, make sure it does not cause -set_version
12727 # flags to be left without arguments
12728 need_version=unknown
12733 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12734 shlibpath_var=LIBPATH
12736 # AIX 3 has no versioning support, so we append a major version to the name.
12737 soname_spec='${libname}${release}${shared_ext}$major'
12744 hardcode_into_libs=yes
12745 if test "$host_cpu" = ia64; then
12746 # AIX 5 supports IA64
12747 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12748 shlibpath_var=LD_LIBRARY_PATH
12750 # With GCC up to 2.95.x, collect2 would create an import file
12751 # for dependence libraries. The import file would start with
12752 # the line `#! .'. This would cause the generated library to
12753 # depend on `.', always an invalid library. This was fixed in
12754 # development snapshots of GCC prior to 3.0.
12756 aix4 | aix4.[01] | aix4.[01].*)
12757 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12759 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12762 can_build_shared=no
12766 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12767 # soname into executable. Probably we can add versioning support to
12768 # collect2, so additional links can be useful in future.
12769 if test "$aix_use_runtimelinking" = yes; then
12770 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12771 # instead of lib<name>.a to let people know that these are not
12772 # typical AIX shared libraries.
12773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12775 # We preserve .a as extension for shared libraries through AIX4.2
12776 # and later when we are not doing run time linking.
12777 library_names_spec='${libname}${release}.a $libname.a'
12778 soname_spec='${libname}${release}${shared_ext}$major'
12780 shlibpath_var=LIBPATH
12785 library_names_spec='$libname.ixlibrary $libname.a'
12786 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12787 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'
12791 library_names_spec='${libname}${shared_ext}'
12792 dynamic_linker="$host_os ld.so"
12793 shlibpath_var=LIBRARY_PATH
12799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12800 soname_spec='${libname}${release}${shared_ext}$major'
12801 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12802 shlibpath_var=LD_LIBRARY_PATH
12803 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12804 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12805 # the default ld.so.conf also contains /usr/contrib/lib and
12806 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12807 # libtool to hard-code these into programs
12810 cygwin* | mingw* | pw32*)
12811 version_type=windows
12816 case $GCC,$host_os in
12817 yes,cygwin* | yes,mingw* | yes,pw32*)
12818 library_names_spec='$libname.dll.a'
12819 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12820 postinstall_cmds='base_file=`basename \${file}`~
12821 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12822 dldir=$destdir/`dirname \$dlpath`~
12823 test -d \$dldir || mkdir -p \$dldir~
12824 $install_prog $dir/$dlname \$dldir/$dlname~
12825 chmod a+x \$dldir/$dlname'
12826 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12827 dlpath=$dir/\$dldll~
12829 shlibpath_overrides_runpath=yes
12833 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12834 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12835 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12838 # MinGW DLLs use traditional 'lib' prefix
12839 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12840 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12841 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12842 # It is most probably a Windows format PATH printed by
12843 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12844 # path with ; separators, and with drive letters. We can handle the
12845 # drive letters (cygwin fileutils understands them), so leave them,
12846 # especially as we might pass files found there to a mingw objdump,
12847 # which wouldn't understand a cygwinified path. Ahh.
12848 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12850 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12854 # pw32 DLLs use 'pw' prefix rather than 'lib'
12855 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12861 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12864 dynamic_linker='Win32 ld.exe'
12865 # FIXME: first we should search . and the directory the executable is in
12869 darwin* | rhapsody*)
12870 dynamic_linker="$host_os dyld"
12871 version_type=darwin
12874 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12875 soname_spec='${libname}${release}${major}$shared_ext'
12876 shlibpath_overrides_runpath=yes
12877 shlibpath_var=DYLD_LIBRARY_PATH
12878 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12879 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12880 if test "$GCC" = yes; then
12881 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"`
12883 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12885 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12893 soname_spec='${libname}${release}${shared_ext}$major'
12894 shlibpath_var=LD_LIBRARY_PATH
12905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12906 soname_spec='${libname}${release}${shared_ext}$major'
12907 shlibpath_var=LD_LIBRARY_PATH
12908 shlibpath_overrides_runpath=no
12909 hardcode_into_libs=yes
12910 dynamic_linker='GNU ld.so'
12913 freebsd* | dragonfly*)
12914 # DragonFly does not have aout. When/if they implement a new
12915 # versioning mechanism, adjust this.
12916 if test -x /usr/bin/objformat; then
12917 objformat=`/usr/bin/objformat`
12920 freebsd[123]*) objformat=aout ;;
12921 *) objformat=elf ;;
12924 version_type=freebsd-$objformat
12925 case $version_type in
12927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12932 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12936 shlibpath_var=LD_LIBRARY_PATH
12939 shlibpath_overrides_runpath=yes
12941 freebsd3.[01]* | freebsdelf3.[01]*)
12942 shlibpath_overrides_runpath=yes
12943 hardcode_into_libs=yes
12945 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12946 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12947 shlibpath_overrides_runpath=no
12948 hardcode_into_libs=yes
12950 freebsd*) # from 4.6 on
12951 shlibpath_overrides_runpath=yes
12952 hardcode_into_libs=yes
12961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12962 soname_spec='${libname}${release}${shared_ext}$major'
12963 shlibpath_var=LD_LIBRARY_PATH
12964 hardcode_into_libs=yes
12967 hpux9* | hpux10* | hpux11*)
12968 # Give a soname corresponding to the major version so that dld.sl refuses to
12969 # link against other versions.
12976 hardcode_into_libs=yes
12977 dynamic_linker="$host_os dld.so"
12978 shlibpath_var=LD_LIBRARY_PATH
12979 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12981 soname_spec='${libname}${release}${shared_ext}$major'
12982 if test "X$HPUX_IA64_MODE" = X32; then
12983 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12985 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12987 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12991 hardcode_into_libs=yes
12992 dynamic_linker="$host_os dld.sl"
12993 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12996 soname_spec='${libname}${release}${shared_ext}$major'
12997 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12998 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13002 dynamic_linker="$host_os dld.sl"
13003 shlibpath_var=SHLIB_PATH
13004 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13006 soname_spec='${libname}${release}${shared_ext}$major'
13009 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13010 postinstall_cmds='chmod 555 $lib'
13017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13018 soname_spec='${libname}${release}${shared_ext}$major'
13019 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13020 shlibpath_var=LD_LIBRARY_PATH
13021 shlibpath_overrides_runpath=no
13022 hardcode_into_libs=yes
13025 irix5* | irix6* | nonstopux*)
13027 nonstopux*) version_type=nonstopux ;;
13029 if test "$lt_cv_prog_gnu_ld" = yes; then
13037 soname_spec='${libname}${release}${shared_ext}$major'
13038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13040 irix5* | nonstopux*)
13041 libsuff= shlibsuff=
13044 case $LD in # libtool.m4 will add one of these switches to LD
13045 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13046 libsuff= shlibsuff= libmagic=32-bit;;
13047 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13048 libsuff=32 shlibsuff=N32 libmagic=N32;;
13049 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13050 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13051 *) libsuff= shlibsuff= libmagic=never-match;;
13055 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13056 shlibpath_overrides_runpath=no
13057 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13058 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13059 hardcode_into_libs=yes
13062 # No shared lib support for Linux oldld, aout, or coff.
13063 linux*oldld* | linux*aout* | linux*coff*)
13067 # This must be Linux ELF.
13072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13073 soname_spec='${libname}${release}${shared_ext}$major'
13074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13075 shlibpath_var=LD_LIBRARY_PATH
13076 shlibpath_overrides_runpath=no
13077 # This implies no fast_install, which is unacceptable.
13078 # Some rework will be needed to allow for fast_install
13079 # before this can be enabled.
13080 hardcode_into_libs=yes
13082 # Append ld.so.conf contents to the search path
13083 if test -f /etc/ld.so.conf; then
13084 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' ' '`
13085 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13088 # We used to test for /lib/ld.so.1 and disable shared libraries on
13089 # powerpc, because MkLinux only supported shared libraries with the
13090 # GNU dynamic linker. Since this was broken with cross compilers,
13091 # most powerpc-linux boxes support dynamic linking these days and
13092 # people can always --disable-shared, the test was removed, and we
13093 # assume the GNU/Linux dynamic linker is in use.
13094 dynamic_linker='GNU/Linux ld.so'
13101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13102 soname_spec='${libname}${release}${shared_ext}$major'
13103 shlibpath_var=LD_LIBRARY_PATH
13104 shlibpath_overrides_runpath=no
13105 hardcode_into_libs=yes
13106 dynamic_linker='GNU ld.so'
13113 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13116 dynamic_linker='NetBSD (a.out) ld.so'
13118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13119 soname_spec='${libname}${release}${shared_ext}$major'
13120 dynamic_linker='NetBSD ld.elf_so'
13122 shlibpath_var=LD_LIBRARY_PATH
13123 shlibpath_overrides_runpath=yes
13124 hardcode_into_libs=yes
13129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13130 shlibpath_var=LD_LIBRARY_PATH
13131 shlibpath_overrides_runpath=yes
13138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13139 soname_spec='${libname}${release}${shared_ext}$major'
13140 shlibpath_var=LD_LIBRARY_PATH
13141 shlibpath_overrides_runpath=yes
13146 sys_lib_dlsearch_path_spec="/usr/lib"
13148 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13150 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13151 *) need_version=no ;;
13153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13155 shlibpath_var=LD_LIBRARY_PATH
13156 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13158 openbsd2.[89] | openbsd2.[89].*)
13159 shlibpath_overrides_runpath=no
13162 shlibpath_overrides_runpath=yes
13166 shlibpath_overrides_runpath=yes
13171 libname_spec='$name'
13174 library_names_spec='$libname${shared_ext} $libname.a'
13175 dynamic_linker='OS/2 ld.exe'
13176 shlibpath_var=LIBPATH
13179 osf3* | osf4* | osf5*)
13183 soname_spec='${libname}${release}${shared_ext}$major'
13184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13185 shlibpath_var=LD_LIBRARY_PATH
13186 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13187 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13195 soname_spec='${libname}${release}${shared_ext}$major'
13196 shlibpath_var=LD_LIBRARY_PATH
13197 shlibpath_overrides_runpath=yes
13198 hardcode_into_libs=yes
13199 # ldd complains unless libraries are executable
13200 postinstall_cmds='chmod +x $lib'
13205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13206 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13207 shlibpath_var=LD_LIBRARY_PATH
13208 shlibpath_overrides_runpath=yes
13209 if test "$with_gnu_ld" = yes; then
13217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13218 soname_spec='${libname}${release}${shared_ext}$major'
13219 shlibpath_var=LD_LIBRARY_PATH
13220 case $host_vendor in
13222 shlibpath_overrides_runpath=no
13224 export_dynamic_flag_spec='${wl}-Blargedynsym'
13225 runpath_var=LD_RUN_PATH
13233 shlibpath_overrides_runpath=no
13234 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13240 if test -d /usr/nec ;then
13242 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13243 soname_spec='$libname${shared_ext}.$major'
13244 shlibpath_var=LD_LIBRARY_PATH
13248 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13249 version_type=freebsd-elf
13252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13253 soname_spec='${libname}${release}${shared_ext}$major'
13254 shlibpath_var=LD_LIBRARY_PATH
13255 hardcode_into_libs=yes
13256 if test "$with_gnu_ld" = yes; then
13257 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13258 shlibpath_overrides_runpath=no
13260 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13261 shlibpath_overrides_runpath=yes
13264 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13268 sys_lib_dlsearch_path_spec='/usr/lib'
13273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13274 soname_spec='${libname}${release}${shared_ext}$major'
13275 shlibpath_var=LD_LIBRARY_PATH
13282 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13283 echo "${ECHO_T}$dynamic_linker" >&6; }
13284 test "$dynamic_linker" = no && can_build_shared=no
13286 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13287 if test "$GCC" = yes; then
13288 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13291 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13292 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13293 hardcode_action_CXX=
13294 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13295 test -n "$runpath_var_CXX" || \
13296 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13298 # We can hardcode non-existant directories.
13299 if test "$hardcode_direct_CXX" != no &&
13300 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13301 # have to relink, otherwise we might link with an installed library
13302 # when we should be linking with a yet-to-be-installed one
13303 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13304 test "$hardcode_minus_L_CXX" != no; then
13305 # Linking always hardcodes the temporary library directory.
13306 hardcode_action_CXX=relink
13308 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13309 hardcode_action_CXX=immediate
13312 # We cannot hardcode anything, or else we can only hardcode existing
13314 hardcode_action_CXX=unsupported
13316 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13317 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13319 if test "$hardcode_action_CXX" = relink; then
13320 # Fast installation is not supported
13321 enable_fast_install=no
13322 elif test "$shlibpath_overrides_runpath" = yes ||
13323 test "$enable_shared" = no; then
13324 # Fast installation is not necessary
13325 enable_fast_install=needless
13329 # The else clause should only fire when bootstrapping the
13330 # libtool distribution, otherwise you forgot to ship ltmain.sh
13331 # with your package, and you will get complaints that there are
13332 # no rules to generate ltmain.sh.
13333 if test -f "$ltmain"; then
13334 # See if we are running on zsh, and set the options which allow our commands through
13335 # without removal of \ escapes.
13336 if test -n "${ZSH_VERSION+set}" ; then
13337 setopt NO_GLOB_SUBST
13339 # Now quote all the things that may contain metacharacters while being
13340 # careful not to overquote the AC_SUBSTed values. We take copies of the
13341 # variables and quote the copies for generation of the libtool script.
13342 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13344 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13345 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13346 deplibs_check_method reload_flag reload_cmds need_locks \
13347 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13348 lt_cv_sys_global_symbol_to_c_name_address \
13349 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13350 old_postinstall_cmds old_postuninstall_cmds \
13354 lt_prog_compiler_wl_CXX \
13355 lt_prog_compiler_pic_CXX \
13356 lt_prog_compiler_static_CXX \
13357 lt_prog_compiler_no_builtin_flag_CXX \
13358 export_dynamic_flag_spec_CXX \
13359 thread_safe_flag_spec_CXX \
13360 whole_archive_flag_spec_CXX \
13361 enable_shared_with_static_runtimes_CXX \
13362 old_archive_cmds_CXX \
13363 old_archive_from_new_cmds_CXX \
13364 predep_objects_CXX \
13365 postdep_objects_CXX \
13368 compiler_lib_search_path_CXX \
13370 archive_expsym_cmds_CXX \
13371 postinstall_cmds_CXX \
13372 postuninstall_cmds_CXX \
13373 old_archive_from_expsyms_cmds_CXX \
13374 allow_undefined_flag_CXX \
13375 no_undefined_flag_CXX \
13376 export_symbols_cmds_CXX \
13377 hardcode_libdir_flag_spec_CXX \
13378 hardcode_libdir_flag_spec_ld_CXX \
13379 hardcode_libdir_separator_CXX \
13380 hardcode_automatic_CXX \
13382 module_expsym_cmds_CXX \
13383 lt_cv_prog_compiler_c_o_CXX \
13384 exclude_expsyms_CXX \
13385 include_expsyms_CXX; do
13388 old_archive_cmds_CXX | \
13389 old_archive_from_new_cmds_CXX | \
13390 archive_cmds_CXX | \
13391 archive_expsym_cmds_CXX | \
13392 module_cmds_CXX | \
13393 module_expsym_cmds_CXX | \
13394 old_archive_from_expsyms_cmds_CXX | \
13395 export_symbols_cmds_CXX | \
13396 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13397 postinstall_cmds | postuninstall_cmds | \
13398 old_postinstall_cmds | old_postuninstall_cmds | \
13399 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13400 # Double-quote double-evaled strings.
13401 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13404 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13410 *'\$0 --fallback-echo"')
13411 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13417 cat <<__EOF__ >> "$cfgfile"
13418 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13420 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13422 # Shell to use when invoking shell scripts.
13425 # Whether or not to build shared libraries.
13426 build_libtool_libs=$enable_shared
13428 # Whether or not to build static libraries.
13429 build_old_libs=$enable_static
13431 # Whether or not to add -lc for building shared libraries.
13432 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13434 # Whether or not to disallow shared libs when runtime libs are static
13435 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13437 # Whether or not to optimize for fast installation.
13438 fast_install=$enable_fast_install
13441 host_alias=$host_alias
13445 # The build system.
13446 build_alias=$build_alias
13450 # An echo program that does not interpret backslashes.
13455 AR_FLAGS=$lt_AR_FLAGS
13460 # LTCC compiler flags.
13461 LTCFLAGS=$lt_LTCFLAGS
13463 # A language-specific compiler.
13464 CC=$lt_compiler_CXX
13466 # Is the compiler the GNU C compiler?
13472 # The linker used to build libraries.
13475 # Whether we need hard or soft links.
13478 # A BSD-compatible nm program.
13481 # A symbol stripping program
13484 # Used to examine libraries when file_magic_cmd begins "file"
13485 MAGIC_CMD=$MAGIC_CMD
13487 # Used on cygwin: DLL creation program.
13490 # Used on cygwin: object dumper.
13493 # Used on cygwin: assembler.
13496 # The name of the directory that contains temporary libtool files.
13499 # How to create reloadable object files.
13500 reload_flag=$lt_reload_flag
13501 reload_cmds=$lt_reload_cmds
13503 # How to pass a linker flag through the compiler.
13504 wl=$lt_lt_prog_compiler_wl_CXX
13506 # Object file suffix (normally "o").
13507 objext="$ac_objext"
13509 # Old archive suffix (normally "a").
13512 # Shared library suffix (normally ".so").
13513 shrext_cmds='$shrext_cmds'
13515 # Executable file suffix (normally "").
13518 # Additional compiler flags for building library objects.
13519 pic_flag=$lt_lt_prog_compiler_pic_CXX
13522 # What is the maximum length of a command?
13523 max_cmd_len=$lt_cv_sys_max_cmd_len
13525 # Does compiler simultaneously support -c and -o options?
13526 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13528 # Must we lock files when doing compilation?
13529 need_locks=$lt_need_locks
13531 # Do we need the lib prefix for modules?
13532 need_lib_prefix=$need_lib_prefix
13534 # Do we need a version for libraries?
13535 need_version=$need_version
13537 # Whether dlopen is supported.
13538 dlopen_support=$enable_dlopen
13540 # Whether dlopen of programs is supported.
13541 dlopen_self=$enable_dlopen_self
13543 # Whether dlopen of statically linked programs is supported.
13544 dlopen_self_static=$enable_dlopen_self_static
13546 # Compiler flag to prevent dynamic linking.
13547 link_static_flag=$lt_lt_prog_compiler_static_CXX
13549 # Compiler flag to turn off builtin functions.
13550 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13552 # Compiler flag to allow reflexive dlopens.
13553 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13555 # Compiler flag to generate shared objects directly from archives.
13556 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13558 # Compiler flag to generate thread-safe objects.
13559 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13561 # Library versioning type.
13562 version_type=$version_type
13564 # Format of library name prefix.
13565 libname_spec=$lt_libname_spec
13567 # List of archive names. First name is the real one, the rest are links.
13568 # The last name is the one that the linker finds with -lNAME.
13569 library_names_spec=$lt_library_names_spec
13571 # The coded name of the library, if different from the real name.
13572 soname_spec=$lt_soname_spec
13574 # Commands used to build and install an old-style archive.
13576 old_archive_cmds=$lt_old_archive_cmds_CXX
13577 old_postinstall_cmds=$lt_old_postinstall_cmds
13578 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13580 # Create an old-style archive from a shared archive.
13581 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13583 # Create a temporary old-style archive to link instead of a shared archive.
13584 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13586 # Commands used to build and install a shared archive.
13587 archive_cmds=$lt_archive_cmds_CXX
13588 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13589 postinstall_cmds=$lt_postinstall_cmds
13590 postuninstall_cmds=$lt_postuninstall_cmds
13592 # Commands used to build a loadable module (assumed same as above if empty)
13593 module_cmds=$lt_module_cmds_CXX
13594 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13596 # Commands to strip libraries.
13597 old_striplib=$lt_old_striplib
13598 striplib=$lt_striplib
13600 # Dependencies to place before the objects being linked to create a
13602 predep_objects=$lt_predep_objects_CXX
13604 # Dependencies to place after the objects being linked to create a
13606 postdep_objects=$lt_postdep_objects_CXX
13608 # Dependencies to place before the objects being linked to create a
13610 predeps=$lt_predeps_CXX
13612 # Dependencies to place after the objects being linked to create a
13614 postdeps=$lt_postdeps_CXX
13616 # The library search path used internally by the compiler when linking
13617 # a shared library.
13618 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13620 # Method to check whether dependent libraries are shared objects.
13621 deplibs_check_method=$lt_deplibs_check_method
13623 # Command to use when deplibs_check_method == file_magic.
13624 file_magic_cmd=$lt_file_magic_cmd
13626 # Flag that allows shared libraries with undefined symbols to be built.
13627 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13629 # Flag that forces no undefined symbols.
13630 no_undefined_flag=$lt_no_undefined_flag_CXX
13632 # Commands used to finish a libtool library installation in a directory.
13633 finish_cmds=$lt_finish_cmds
13635 # Same as above, but a single script fragment to be evaled but not shown.
13636 finish_eval=$lt_finish_eval
13638 # Take the output of nm and produce a listing of raw symbols and C names.
13639 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13641 # Transform the output of nm in a proper C declaration
13642 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13644 # Transform the output of nm in a C name address pair
13645 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13647 # This is the shared library runtime path variable.
13648 runpath_var=$runpath_var
13650 # This is the shared library path variable.
13651 shlibpath_var=$shlibpath_var
13653 # Is shlibpath searched before the hard-coded library search path?
13654 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13656 # How to hardcode a shared library path into an executable.
13657 hardcode_action=$hardcode_action_CXX
13659 # Whether we should hardcode library paths into libraries.
13660 hardcode_into_libs=$hardcode_into_libs
13662 # Flag to hardcode \$libdir into a binary during linking.
13663 # This must work even if \$libdir does not exist.
13664 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13666 # If ld is used when linking, flag to hardcode \$libdir into
13667 # a binary during linking. This must work even if \$libdir does
13669 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13671 # Whether we need a single -rpath flag with a separated argument.
13672 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13674 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13675 # resulting binary.
13676 hardcode_direct=$hardcode_direct_CXX
13678 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13679 # resulting binary.
13680 hardcode_minus_L=$hardcode_minus_L_CXX
13682 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13683 # the resulting binary.
13684 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13686 # Set to yes if building a shared library automatically hardcodes DIR into the library
13687 # and all subsequent libraries and executables linked against it.
13688 hardcode_automatic=$hardcode_automatic_CXX
13690 # Variables whose values should be saved in libtool wrapper scripts and
13691 # restored at relink time.
13692 variables_saved_for_relink="$variables_saved_for_relink"
13694 # Whether libtool must link a program against all its dependency libraries.
13695 link_all_deplibs=$link_all_deplibs_CXX
13697 # Compile-time system search path for libraries
13698 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13700 # Run-time system search path for libraries
13701 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13703 # Fix the shell variable \$srcfile for the compiler.
13704 fix_srcfile_path="$fix_srcfile_path_CXX"
13706 # Set to yes if exported symbols are required.
13707 always_export_symbols=$always_export_symbols_CXX
13709 # The commands to list exported symbols.
13710 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13712 # The commands to extract the exported symbol list from a shared archive.
13713 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13715 # Symbols that should not be listed in the preloaded symbols.
13716 exclude_expsyms=$lt_exclude_expsyms_CXX
13718 # Symbols that must always be exported.
13719 include_expsyms=$lt_include_expsyms_CXX
13721 # ### END LIBTOOL TAG CONFIG: $tagname
13727 # If there is no Makefile yet, we rely on a make rule to execute
13728 # `config.status --recheck' to rerun these tests and create the
13729 # libtool script then.
13730 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13731 if test -f "$ltmain_in"; then
13732 test -f Makefile && make "$ltmain"
13738 ac_cpp='$CPP $CPPFLAGS'
13739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13747 with_gnu_ldcxx=$with_gnu_ld
13748 with_gnu_ld=$lt_save_with_gnu_ld
13749 lt_cv_path_LDCXX=$lt_cv_path_LD
13750 lt_cv_path_LD=$lt_save_path_LD
13751 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13752 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13760 if test -n "$F77" && test "X$F77" != "Xno"; then
13763 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13764 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13765 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13768 archive_cmds_need_lc_F77=no
13769 allow_undefined_flag_F77=
13770 always_export_symbols_F77=no
13771 archive_expsym_cmds_F77=
13772 export_dynamic_flag_spec_F77=
13773 hardcode_direct_F77=no
13774 hardcode_libdir_flag_spec_F77=
13775 hardcode_libdir_flag_spec_ld_F77=
13776 hardcode_libdir_separator_F77=
13777 hardcode_minus_L_F77=no
13778 hardcode_automatic_F77=no
13780 module_expsym_cmds_F77=
13781 link_all_deplibs_F77=unknown
13782 old_archive_cmds_F77=$old_archive_cmds
13783 no_undefined_flag_F77=
13784 whole_archive_flag_spec_F77=
13785 enable_shared_with_static_runtimes_F77=no
13787 # Source file extension for f77 test sources.
13790 # Object file extension for compiled f77 test sources.
13794 # Code to be used in simple compile tests
13795 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13797 # Code to be used in simple link tests
13798 lt_simple_link_test_code=" program t\n end\n"
13800 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13802 # If no C compiler was specified, use CC.
13805 # If no C compiler flags were specified, use CFLAGS.
13806 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13808 # Allow CC to be a program name with arguments.
13812 # save warnings/boilerplate of simple test code
13813 ac_outfile=conftest.$ac_objext
13814 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13815 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13816 _lt_compiler_boilerplate=`cat conftest.err`
13819 ac_outfile=conftest.$ac_objext
13820 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13821 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13822 _lt_linker_boilerplate=`cat conftest.err`
13826 # Allow CC to be a program name with arguments.
13831 for cc_temp in $compiler""; do
13833 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13834 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13839 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13842 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13843 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13844 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13845 echo "${ECHO_T}$can_build_shared" >&6; }
13847 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13848 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13849 test "$can_build_shared" = "no" && enable_shared=no
13851 # On AIX, shared libraries and static libraries use the same namespace, and
13852 # are all built from PIC.
13855 test "$enable_shared" = yes && enable_static=no
13856 if test -n "$RANLIB"; then
13857 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13858 postinstall_cmds='$RANLIB $lib'
13862 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13863 test "$enable_shared" = yes && enable_static=no
13867 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13868 echo "${ECHO_T}$enable_shared" >&6; }
13870 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13871 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13872 # Make sure either enable_shared or enable_static is yes.
13873 test "$enable_shared" = yes || enable_static=yes
13874 { echo "$as_me:$LINENO: result: $enable_static" >&5
13875 echo "${ECHO_T}$enable_static" >&6; }
13880 lt_prog_compiler_wl_F77=
13881 lt_prog_compiler_pic_F77=
13882 lt_prog_compiler_static_F77=
13884 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13885 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13887 if test "$GCC" = yes; then
13888 lt_prog_compiler_wl_F77='-Wl,'
13889 lt_prog_compiler_static_F77='-static'
13893 # All AIX code is PIC.
13894 if test "$host_cpu" = ia64; then
13895 # AIX 5 now supports IA64 processor
13896 lt_prog_compiler_static_F77='-Bstatic'
13901 # FIXME: we need at least 68020 code to build shared libraries, but
13902 # adding the `-m68020' flag to GCC prevents building anything better,
13904 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13907 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13908 # PIC is the default for these OSes.
13911 mingw* | pw32* | os2*)
13912 # This hack is so that the source file can tell whether it is being
13913 # built for inclusion in a dll (and should export symbols for example).
13914 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13917 darwin* | rhapsody*)
13918 # PIC is the default on this platform
13919 # Common symbols not allowed in MH_DYLIB files
13920 lt_prog_compiler_pic_F77='-fno-common'
13924 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13925 # Instead, we relocate shared libraries at runtime.
13929 # Just because we use GCC doesn't mean we suddenly get shared libraries
13930 # on systems that don't support them.
13931 lt_prog_compiler_can_build_shared_F77=no
13936 if test -d /usr/nec; then
13937 lt_prog_compiler_pic_F77=-Kconform_pic
13942 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13943 # not for PA HP-UX.
13949 lt_prog_compiler_pic_F77='-fPIC'
13955 lt_prog_compiler_pic_F77='-fPIC'
13959 # PORTME Check for flag to pass linker flags through the system compiler.
13962 lt_prog_compiler_wl_F77='-Wl,'
13963 if test "$host_cpu" = ia64; then
13964 # AIX 5 now supports IA64 processor
13965 lt_prog_compiler_static_F77='-Bstatic'
13967 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13971 # PIC is the default on this platform
13972 # Common symbols not allowed in MH_DYLIB files
13973 case $cc_basename in
13975 lt_prog_compiler_pic_F77='-qnocommon'
13976 lt_prog_compiler_wl_F77='-Wl,'
13981 mingw* | pw32* | os2*)
13982 # This hack is so that the source file can tell whether it is being
13983 # built for inclusion in a dll (and should export symbols for example).
13984 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13987 hpux9* | hpux10* | hpux11*)
13988 lt_prog_compiler_wl_F77='-Wl,'
13989 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13990 # not for PA HP-UX.
13996 lt_prog_compiler_pic_F77='+Z'
13999 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14000 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14003 irix5* | irix6* | nonstopux*)
14004 lt_prog_compiler_wl_F77='-Wl,'
14005 # PIC (with -KPIC) is the default.
14006 lt_prog_compiler_static_F77='-non_shared'
14010 lt_prog_compiler_pic_F77='-KPIC'
14011 lt_prog_compiler_static_F77='-Bstatic'
14015 case $cc_basename in
14017 lt_prog_compiler_wl_F77='-Wl,'
14018 lt_prog_compiler_pic_F77='-KPIC'
14019 lt_prog_compiler_static_F77='-static'
14021 pgcc* | pgf77* | pgf90* | pgf95*)
14022 # Portland Group compilers (*not* the Pentium gcc compiler,
14023 # which looks to be a dead project)
14024 lt_prog_compiler_wl_F77='-Wl,'
14025 lt_prog_compiler_pic_F77='-fpic'
14026 lt_prog_compiler_static_F77='-Bstatic'
14029 lt_prog_compiler_wl_F77='-Wl,'
14030 # All Alpha code is PIC.
14031 lt_prog_compiler_static_F77='-non_shared'
14036 osf3* | osf4* | osf5*)
14037 lt_prog_compiler_wl_F77='-Wl,'
14038 # All OSF/1 code is PIC.
14039 lt_prog_compiler_static_F77='-non_shared'
14043 lt_prog_compiler_pic_F77='-KPIC'
14044 lt_prog_compiler_static_F77='-Bstatic'
14045 case $cc_basename in
14046 f77* | f90* | f95*)
14047 lt_prog_compiler_wl_F77='-Qoption ld ';;
14049 lt_prog_compiler_wl_F77='-Wl,';;
14054 lt_prog_compiler_wl_F77='-Qoption ld '
14055 lt_prog_compiler_pic_F77='-PIC'
14056 lt_prog_compiler_static_F77='-Bstatic'
14059 sysv4 | sysv4.2uw2* | sysv4.3*)
14060 lt_prog_compiler_wl_F77='-Wl,'
14061 lt_prog_compiler_pic_F77='-KPIC'
14062 lt_prog_compiler_static_F77='-Bstatic'
14066 if test -d /usr/nec ;then
14067 lt_prog_compiler_pic_F77='-Kconform_pic'
14068 lt_prog_compiler_static_F77='-Bstatic'
14072 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14073 lt_prog_compiler_wl_F77='-Wl,'
14074 lt_prog_compiler_pic_F77='-KPIC'
14075 lt_prog_compiler_static_F77='-Bstatic'
14079 lt_prog_compiler_wl_F77='-Wl,'
14080 lt_prog_compiler_can_build_shared_F77=no
14084 lt_prog_compiler_pic_F77='-pic'
14085 lt_prog_compiler_static_F77='-Bstatic'
14089 lt_prog_compiler_can_build_shared_F77=no
14094 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14095 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14098 # Check to make sure the PIC flag actually works.
14100 if test -n "$lt_prog_compiler_pic_F77"; then
14102 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14103 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14104 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14105 echo $ECHO_N "(cached) $ECHO_C" >&6
14107 lt_prog_compiler_pic_works_F77=no
14108 ac_outfile=conftest.$ac_objext
14109 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14110 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14111 # Insert the option either (1) after the last *FLAGS variable, or
14112 # (2) before a word containing "conftest.", or (3) at the end.
14113 # Note that $ac_compile itself does not contain backslashes and begins
14114 # with a dollar sign (not a hyphen), so the echo should work correctly.
14115 # The option is referenced via a variable to avoid confusing sed.
14116 lt_compile=`echo "$ac_compile" | $SED \
14117 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14118 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14119 -e 's:$: $lt_compiler_flag:'`
14120 (eval echo "\"\$as_me:14120: $lt_compile\"" >&5)
14121 (eval "$lt_compile" 2>conftest.err)
14123 cat conftest.err >&5
14124 echo "$as_me:14124: \$? = $ac_status" >&5
14125 if (exit $ac_status) && test -s "$ac_outfile"; then
14126 # The compiler can only warn and ignore the option if not recognized
14127 # So say no if there are warnings other than the usual output.
14128 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14129 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14130 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14131 lt_prog_compiler_pic_works_F77=yes
14137 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14138 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14140 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14141 case $lt_prog_compiler_pic_F77 in
14143 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14146 lt_prog_compiler_pic_F77=
14147 lt_prog_compiler_can_build_shared_F77=no
14152 # For platforms which do not support PIC, -DPIC is meaningless:
14154 lt_prog_compiler_pic_F77=
14157 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14162 # Check to make sure the static flag actually works.
14164 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14165 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14166 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14167 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14168 echo $ECHO_N "(cached) $ECHO_C" >&6
14170 lt_prog_compiler_static_works_F77=no
14171 save_LDFLAGS="$LDFLAGS"
14172 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14173 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14174 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14175 # The linker can only warn and ignore the option if not recognized
14176 # So say no if there are warnings
14177 if test -s conftest.err; then
14178 # Append any errors to the config.log.
14179 cat conftest.err 1>&5
14180 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14182 if diff conftest.exp conftest.er2 >/dev/null; then
14183 lt_prog_compiler_static_works_F77=yes
14186 lt_prog_compiler_static_works_F77=yes
14190 LDFLAGS="$save_LDFLAGS"
14193 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14194 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14196 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14199 lt_prog_compiler_static_F77=
14203 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14204 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14205 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14206 echo $ECHO_N "(cached) $ECHO_C" >&6
14208 lt_cv_prog_compiler_c_o_F77=no
14209 $rm -r conftest 2>/dev/null
14213 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14215 lt_compiler_flag="-o out/conftest2.$ac_objext"
14216 # Insert the option either (1) after the last *FLAGS variable, or
14217 # (2) before a word containing "conftest.", or (3) at the end.
14218 # Note that $ac_compile itself does not contain backslashes and begins
14219 # with a dollar sign (not a hyphen), so the echo should work correctly.
14220 lt_compile=`echo "$ac_compile" | $SED \
14221 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14223 -e 's:$: $lt_compiler_flag:'`
14224 (eval echo "\"\$as_me:14224: $lt_compile\"" >&5)
14225 (eval "$lt_compile" 2>out/conftest.err)
14227 cat out/conftest.err >&5
14228 echo "$as_me:14228: \$? = $ac_status" >&5
14229 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14231 # The compiler can only warn and ignore the option if not recognized
14232 # So say no if there are warnings
14233 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14234 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14235 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14236 lt_cv_prog_compiler_c_o_F77=yes
14241 # SGI C++ compiler will create directory out/ii_files/ for
14242 # template instantiation
14243 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14244 $rm out/* && rmdir out
14250 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14251 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14254 hard_links="nottested"
14255 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14256 # do not overwrite the value of need_locks provided by the user
14257 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14258 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14261 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14263 ln conftest.a conftest.b 2>&5 || hard_links=no
14264 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14265 { echo "$as_me:$LINENO: result: $hard_links" >&5
14266 echo "${ECHO_T}$hard_links" >&6; }
14267 if test "$hard_links" = no; then
14268 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14269 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14276 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14277 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14280 allow_undefined_flag_F77=
14281 enable_shared_with_static_runtimes_F77=no
14283 archive_expsym_cmds_F77=
14284 old_archive_From_new_cmds_F77=
14285 old_archive_from_expsyms_cmds_F77=
14286 export_dynamic_flag_spec_F77=
14287 whole_archive_flag_spec_F77=
14288 thread_safe_flag_spec_F77=
14289 hardcode_libdir_flag_spec_F77=
14290 hardcode_libdir_flag_spec_ld_F77=
14291 hardcode_libdir_separator_F77=
14292 hardcode_direct_F77=no
14293 hardcode_minus_L_F77=no
14294 hardcode_shlibpath_var_F77=unsupported
14295 link_all_deplibs_F77=unknown
14296 hardcode_automatic_F77=no
14298 module_expsym_cmds_F77=
14299 always_export_symbols_F77=no
14300 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14301 # include_expsyms should be a list of space-separated symbols to be *always*
14302 # included in the symbol list
14303 include_expsyms_F77=
14304 # exclude_expsyms can be an extended regexp of symbols to exclude
14305 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14306 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14307 # as well as any symbol that contains `d'.
14308 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14309 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14310 # platforms (ab)use it in PIC code, but their linkers get confused if
14311 # the symbol is explicitly referenced. Since portable code cannot
14312 # rely on this symbol name, it's probably fine to never include it in
14313 # preloaded symbol tables.
14314 extract_expsyms_cmds=
14315 # Just being paranoid about ensuring that cc_basename is set.
14316 for cc_temp in $compiler""; do
14318 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14319 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14324 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14327 cygwin* | mingw* | pw32*)
14328 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14329 # When not using gcc, we currently assume that we are using
14330 # Microsoft Visual C++.
14331 if test "$GCC" != yes; then
14336 # we just hope/assume this is gcc and not c89 (= MSVC++)
14345 if test "$with_gnu_ld" = yes; then
14346 # If archive_cmds runs LD, not CC, wlarc should be empty
14349 # Set some defaults for GNU ld with shared library support. These
14350 # are reset later if shared libraries are not supported. Putting them
14351 # here allows them to be overridden if necessary.
14352 runpath_var=LD_RUN_PATH
14353 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14354 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14355 # ancient GNU ld didn't support --whole-archive et. al.
14356 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14357 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14359 whole_archive_flag_spec_F77=
14361 supports_anon_versioning=no
14362 case `$LD -v 2>/dev/null` in
14363 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14364 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14365 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14366 *\ 2.11.*) ;; # other 2.11 versions
14367 *) supports_anon_versioning=yes ;;
14370 # See if GNU ld supports shared libraries.
14372 aix3* | aix4* | aix5*)
14373 # On AIX/PPC, the GNU linker is very broken
14374 if test "$host_cpu" != ia64; then
14378 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14379 *** to be unable to reliably create shared libraries on AIX.
14380 *** Therefore, libtool is disabling shared libraries support. If you
14381 *** really care for shared libraries, you may want to modify your PATH
14382 *** so that a non-GNU linker is found, and then restart.
14389 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)'
14390 hardcode_libdir_flag_spec_F77='-L$libdir'
14391 hardcode_minus_L_F77=yes
14393 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14394 # that the semantics of dynamic libraries on AmigaOS, at least up
14395 # to version 4, is to share data among multiple programs linked
14396 # with the same dynamic library. Since this doesn't match the
14397 # behavior of shared libraries on other platforms, we can't use
14403 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14404 allow_undefined_flag_F77=unsupported
14405 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14406 # support --undefined. This deserves some investigation. FIXME
14407 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14413 cygwin* | mingw* | pw32*)
14414 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14415 # as there is no search path for DLLs.
14416 hardcode_libdir_flag_spec_F77='-L$libdir'
14417 allow_undefined_flag_F77=unsupported
14418 always_export_symbols_F77=no
14419 enable_shared_with_static_runtimes_F77=yes
14420 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14422 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14423 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14424 # If the export-symbols file already is a .def file (1st line
14425 # is EXPORTS), use it as is; otherwise, prepend...
14426 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14427 cp $export_symbols $output_objdir/$soname.def;
14429 echo EXPORTS > $output_objdir/$soname.def;
14430 cat $export_symbols >> $output_objdir/$soname.def;
14432 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14439 hardcode_direct_F77=no
14440 hardcode_shlibpath_var_F77=no
14441 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14442 export_dynamic_flag_spec_F77='${wl}-E'
14443 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14444 # Instead, shared libraries are loaded at an image base (0x10000000 by
14445 # default) and relocated if they conflict, which is a slow very memory
14446 # consuming and fragmenting process. To avoid this, we pick a random,
14447 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14448 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14449 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'
14450 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'
14454 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14456 case $cc_basename,$host_cpu in
14457 pgcc*) # Portland Group C compiler
14458 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'
14459 tmp_addflag=' $pic_flag'
14461 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14462 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'
14463 tmp_addflag=' $pic_flag -Mnomain' ;;
14464 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14465 tmp_addflag=' -i_dynamic' ;;
14466 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14467 tmp_addflag=' -i_dynamic -nofor_main' ;;
14468 ifc* | ifort*) # Intel Fortran compiler
14469 tmp_addflag=' -nofor_main' ;;
14471 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14473 if test $supports_anon_versioning = yes; then
14474 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14475 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14476 $echo "local: *; };" >> $output_objdir/$libname.ver~
14477 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14485 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14486 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14489 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14490 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14495 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14499 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14500 *** create shared libraries on Solaris systems. Therefore, libtool
14501 *** is disabling shared libraries support. We urge you to upgrade GNU
14502 *** binutils to release 2.9.1 or newer. Another option is to modify
14503 *** your PATH or compiler configuration so that the native linker is
14504 *** used, and then restart.
14507 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14508 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14509 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14515 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14516 case `$LD -v 2>&1` in
14517 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14521 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14522 *** reliably create shared libraries on SCO systems. Therefore, libtool
14523 *** is disabling shared libraries support. We urge you to upgrade GNU
14524 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14525 *** your PATH or compiler configuration so that the native linker is
14526 *** used, and then restart.
14531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14532 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14533 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14534 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14543 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14545 hardcode_direct_F77=yes
14546 hardcode_shlibpath_var_F77=no
14550 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14551 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14552 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14559 if test "$ld_shlibs_F77" = no; then
14561 hardcode_libdir_flag_spec_F77=
14562 export_dynamic_flag_spec_F77=
14563 whole_archive_flag_spec_F77=
14566 # PORTME fill in a description of your system's linker (not GNU ld)
14569 allow_undefined_flag_F77=unsupported
14570 always_export_symbols_F77=yes
14571 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'
14572 # Note: this linker hardcodes the directories in LIBPATH if there
14573 # are no directories specified by -L.
14574 hardcode_minus_L_F77=yes
14575 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14576 # Neither direct hardcoding nor static linking is supported with a
14578 hardcode_direct_F77=unsupported
14583 if test "$host_cpu" = ia64; then
14584 # On IA64, the linker does run time linking by default, so we don't
14585 # have to do anything special.
14586 aix_use_runtimelinking=no
14587 exp_sym_flag='-Bexport'
14590 # If we're using GNU nm, then we don't want the "-C" option.
14591 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14592 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14593 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'
14595 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'
14597 aix_use_runtimelinking=no
14599 # Test if we are trying to use run time linking or normal
14600 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14601 # need to do runtime linking.
14602 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14603 for ld_flag in $LDFLAGS; do
14604 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14605 aix_use_runtimelinking=yes
14612 exp_sym_flag='-bexport'
14613 no_entry_flag='-bnoentry'
14616 # When large executables or shared objects are built, AIX ld can
14617 # have problems creating the table of contents. If linking a library
14618 # or program results in "error TOC overflow" add -mminimal-toc to
14619 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14620 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14622 archive_cmds_F77=''
14623 hardcode_direct_F77=yes
14624 hardcode_libdir_separator_F77=':'
14625 link_all_deplibs_F77=yes
14627 if test "$GCC" = yes; then
14628 case $host_os in aix4.[012]|aix4.[012].*)
14629 # We only want to do this on AIX 4.2 and lower, the check
14630 # below for broken collect2 doesn't work under 4.3+
14631 collect2name=`${CC} -print-prog-name=collect2`
14632 if test -f "$collect2name" && \
14633 strings "$collect2name" | grep resolve_lib_name >/dev/null
14635 # We have reworked collect2
14636 hardcode_direct_F77=yes
14638 # We have old collect2
14639 hardcode_direct_F77=unsupported
14640 # It fails to find uninstalled libraries when the uninstalled
14641 # path is not listed in the libpath. Setting hardcode_minus_L
14642 # to unsupported forces relinking
14643 hardcode_minus_L_F77=yes
14644 hardcode_libdir_flag_spec_F77='-L$libdir'
14645 hardcode_libdir_separator_F77=
14649 shared_flag='-shared'
14650 if test "$aix_use_runtimelinking" = yes; then
14651 shared_flag="$shared_flag "'${wl}-G'
14655 if test "$host_cpu" = ia64; then
14656 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14657 # chokes on -Wl,-G. The following line is correct:
14660 if test "$aix_use_runtimelinking" = yes; then
14661 shared_flag='${wl}-G'
14663 shared_flag='${wl}-bM:SRE'
14668 # It seems that -bexpall does not export symbols beginning with
14669 # underscore (_), so it is better to generate a list of symbols to export.
14670 always_export_symbols_F77=yes
14671 if test "$aix_use_runtimelinking" = yes; then
14672 # Warning - without using the other runtime loading flags (-brtl),
14673 # -berok will link without error, but may produce a broken library.
14674 allow_undefined_flag_F77='-berok'
14675 # Determine the default libpath from the value encoded in an empty executable.
14676 cat >conftest.$ac_ext <<_ACEOF
14681 rm -f conftest.$ac_objext conftest$ac_exeext
14682 if { (ac_try="$ac_link"
14683 case "(($ac_try" in
14684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685 *) ac_try_echo=$ac_try;;
14687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688 (eval "$ac_link") 2>conftest.er1
14690 grep -v '^ *+' conftest.er1 >conftest.err
14692 cat conftest.err >&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } && {
14695 test -z "$ac_f77_werror_flag" ||
14696 test ! -s conftest.err
14697 } && test -s conftest$ac_exeext &&
14698 $as_test_x conftest$ac_exeext; then
14700 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14702 # Check for a 64-bit object if we didn't find anything.
14703 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; }
14706 echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14713 conftest$ac_exeext conftest.$ac_ext
14714 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14716 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14717 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"
14719 if test "$host_cpu" = ia64; then
14720 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14721 allow_undefined_flag_F77="-z nodefs"
14722 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"
14724 # Determine the default libpath from the value encoded in an empty executable.
14725 cat >conftest.$ac_ext <<_ACEOF
14730 rm -f conftest.$ac_objext conftest$ac_exeext
14731 if { (ac_try="$ac_link"
14732 case "(($ac_try" in
14733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14734 *) ac_try_echo=$ac_try;;
14736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14737 (eval "$ac_link") 2>conftest.er1
14739 grep -v '^ *+' conftest.er1 >conftest.err
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } && {
14744 test -z "$ac_f77_werror_flag" ||
14745 test ! -s conftest.err
14746 } && test -s conftest$ac_exeext &&
14747 $as_test_x conftest$ac_exeext; then
14749 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14751 # Check for a 64-bit object if we didn't find anything.
14752 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; }
14755 echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14762 conftest$ac_exeext conftest.$ac_ext
14763 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14765 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14766 # Warning - without using the other run time loading flags,
14767 # -berok will link without error, but may produce a broken library.
14768 no_undefined_flag_F77=' ${wl}-bernotok'
14769 allow_undefined_flag_F77=' ${wl}-berok'
14770 # Exported symbols can be pulled into shared objects from archives
14771 whole_archive_flag_spec_F77='$convenience'
14772 archive_cmds_need_lc_F77=yes
14773 # This is similar to how AIX traditionally builds its shared libraries.
14774 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'
14780 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)'
14781 hardcode_libdir_flag_spec_F77='-L$libdir'
14782 hardcode_minus_L_F77=yes
14783 # see comment about different semantics on the GNU ld section
14788 export_dynamic_flag_spec_F77=-rdynamic
14791 cygwin* | mingw* | pw32*)
14792 # When not using gcc, we currently assume that we are using
14793 # Microsoft Visual C++.
14794 # hardcode_libdir_flag_spec is actually meaningless, as there is
14795 # no search path for DLLs.
14796 hardcode_libdir_flag_spec_F77=' '
14797 allow_undefined_flag_F77=unsupported
14798 # Tell ltmain to make .lib files, not .a files.
14800 # Tell ltmain to make .dll files, not .so files.
14802 # FIXME: Setting linknames here is a bad hack.
14803 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14804 # The linker will automatically build a .lib file if we build a DLL.
14805 old_archive_From_new_cmds_F77='true'
14806 # FIXME: Should let the user specify the lib program.
14807 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14808 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14809 enable_shared_with_static_runtimes_F77=yes
14812 darwin* | rhapsody*)
14814 rhapsody* | darwin1.[012])
14815 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14818 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14819 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14821 case ${MACOSX_DEPLOYMENT_TARGET} in
14823 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14826 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14832 archive_cmds_need_lc_F77=no
14833 hardcode_direct_F77=no
14834 hardcode_automatic_F77=yes
14835 hardcode_shlibpath_var_F77=unsupported
14836 whole_archive_flag_spec_F77=''
14837 link_all_deplibs_F77=yes
14838 if test "$GCC" = yes ; then
14839 output_verbose_link_cmd='echo'
14840 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14841 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14842 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14843 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}'
14844 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}'
14846 case $cc_basename in
14848 output_verbose_link_cmd='echo'
14849 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14850 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14851 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14852 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}'
14853 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}'
14863 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14864 hardcode_libdir_flag_spec_F77='-L$libdir'
14865 hardcode_shlibpath_var_F77=no
14872 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14873 # support. Future versions do this automatically, but an explicit c++rt0.o
14874 # does not break anything, and helps significantly (at the cost of a little
14877 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14878 hardcode_libdir_flag_spec_F77='-R$libdir'
14879 hardcode_direct_F77=yes
14880 hardcode_shlibpath_var_F77=no
14883 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14885 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14886 hardcode_direct_F77=yes
14887 hardcode_minus_L_F77=yes
14888 hardcode_shlibpath_var_F77=no
14891 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14892 freebsd* | kfreebsd*-gnu | dragonfly*)
14893 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14894 hardcode_libdir_flag_spec_F77='-R$libdir'
14895 hardcode_direct_F77=yes
14896 hardcode_shlibpath_var_F77=no
14900 if test "$GCC" = yes; then
14901 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'
14903 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'
14905 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14906 hardcode_libdir_separator_F77=:
14907 hardcode_direct_F77=yes
14909 # hardcode_minus_L: Not really in the search PATH,
14910 # but as the default location of the library.
14911 hardcode_minus_L_F77=yes
14912 export_dynamic_flag_spec_F77='${wl}-E'
14916 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14917 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14919 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14921 if test "$with_gnu_ld" = no; then
14922 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14923 hardcode_libdir_separator_F77=:
14925 hardcode_direct_F77=yes
14926 export_dynamic_flag_spec_F77='${wl}-E'
14928 # hardcode_minus_L: Not really in the search PATH,
14929 # but as the default location of the library.
14930 hardcode_minus_L_F77=yes
14935 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14938 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14941 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14944 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14950 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14953 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14956 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14960 if test "$with_gnu_ld" = no; then
14961 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14962 hardcode_libdir_separator_F77=:
14966 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14967 hardcode_direct_F77=no
14968 hardcode_shlibpath_var_F77=no
14971 hardcode_direct_F77=yes
14972 export_dynamic_flag_spec_F77='${wl}-E'
14974 # hardcode_minus_L: Not really in the search PATH,
14975 # but as the default location of the library.
14976 hardcode_minus_L_F77=yes
14982 irix5* | irix6* | nonstopux*)
14983 if test "$GCC" = yes; then
14984 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'
14986 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'
14987 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14989 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14990 hardcode_libdir_separator_F77=:
14991 link_all_deplibs_F77=yes
14995 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14996 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14998 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15000 hardcode_libdir_flag_spec_F77='-R$libdir'
15001 hardcode_direct_F77=yes
15002 hardcode_shlibpath_var_F77=no
15006 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15007 hardcode_direct_F77=yes
15008 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15009 hardcode_libdir_separator_F77=:
15010 hardcode_shlibpath_var_F77=no
15014 hardcode_direct_F77=yes
15015 hardcode_shlibpath_var_F77=no
15016 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15017 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15018 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15019 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15020 export_dynamic_flag_spec_F77='${wl}-E'
15023 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15024 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15025 hardcode_libdir_flag_spec_F77='-R$libdir'
15028 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15029 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15036 hardcode_libdir_flag_spec_F77='-L$libdir'
15037 hardcode_minus_L_F77=yes
15038 allow_undefined_flag_F77=unsupported
15039 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'
15040 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15044 if test "$GCC" = yes; then
15045 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15046 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'
15048 allow_undefined_flag_F77=' -expect_unresolved \*'
15049 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'
15051 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15052 hardcode_libdir_separator_F77=:
15055 osf4* | osf5*) # as osf3* with the addition of -msym flag
15056 if test "$GCC" = yes; then
15057 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15058 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'
15059 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15061 allow_undefined_flag_F77=' -expect_unresolved \*'
15062 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'
15063 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~
15064 $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'
15066 # Both c and cxx compiler support -rpath directly
15067 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15069 hardcode_libdir_separator_F77=:
15073 no_undefined_flag_F77=' -z text'
15074 if test "$GCC" = yes; then
15076 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15077 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15078 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15081 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15082 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15083 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15085 hardcode_libdir_flag_spec_F77='-R$libdir'
15086 hardcode_shlibpath_var_F77=no
15088 solaris2.[0-5] | solaris2.[0-5].*) ;;
15090 # The compiler driver will combine linker options so we
15091 # cannot just pass the convience library names through
15092 # without $wl, iff we do not link with $LD.
15093 # Luckily, gcc supports the same syntax we need for Sun Studio.
15094 # Supported since Solaris 2.6 (maybe 2.5.1?)
15097 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15099 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' ;;
15102 link_all_deplibs_F77=yes
15106 if test "x$host_vendor" = xsequent; then
15107 # Use $CC to link under sequent, because it throws in some extra .o
15108 # files that make .init and .fini sections work.
15109 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15111 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15113 hardcode_libdir_flag_spec_F77='-L$libdir'
15114 hardcode_direct_F77=yes
15115 hardcode_minus_L_F77=yes
15116 hardcode_shlibpath_var_F77=no
15120 case $host_vendor in
15122 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15123 hardcode_direct_F77=yes # is this really true???
15126 ## LD is ld it makes a PLAMLIB
15127 ## CC just makes a GrossModule.
15128 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15129 reload_cmds_F77='$CC -r -o $output$reload_objs'
15130 hardcode_direct_F77=no
15133 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15134 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15137 runpath_var='LD_RUN_PATH'
15138 hardcode_shlibpath_var_F77=no
15142 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15143 hardcode_shlibpath_var_F77=no
15144 export_dynamic_flag_spec_F77='-Bexport'
15148 if test -d /usr/nec; then
15149 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15150 hardcode_shlibpath_var_F77=no
15151 runpath_var=LD_RUN_PATH
15152 hardcode_runpath_var=yes
15157 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15158 no_undefined_flag_F77='${wl}-z,text'
15159 archive_cmds_need_lc_F77=no
15160 hardcode_shlibpath_var_F77=no
15161 runpath_var='LD_RUN_PATH'
15163 if test "$GCC" = yes; then
15164 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15165 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15167 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15168 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15172 sysv5* | sco3.2v5* | sco5v6*)
15173 # Note: We can NOT use -z defs as we might desire, because we do not
15174 # link with -lc, and that would cause any symbols used from libc to
15175 # always be unresolved, which means just about no library would
15176 # ever link correctly. If we're not using GNU ld we use -z text
15177 # though, which does catch some bad symbols but isn't as heavy-handed
15179 no_undefined_flag_F77='${wl}-z,text'
15180 allow_undefined_flag_F77='${wl}-z,nodefs'
15181 archive_cmds_need_lc_F77=no
15182 hardcode_shlibpath_var_F77=no
15183 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15184 hardcode_libdir_separator_F77=':'
15185 link_all_deplibs_F77=yes
15186 export_dynamic_flag_spec_F77='${wl}-Bexport'
15187 runpath_var='LD_RUN_PATH'
15189 if test "$GCC" = yes; then
15190 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15191 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15193 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15194 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15199 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15200 hardcode_libdir_flag_spec_F77='-L$libdir'
15201 hardcode_shlibpath_var_F77=no
15210 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15211 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15212 test "$ld_shlibs_F77" = no && can_build_shared=no
15215 # Do we need to explicitly link libc?
15217 case "x$archive_cmds_need_lc_F77" in
15219 # Assume -lc should be added
15220 archive_cmds_need_lc_F77=yes
15222 if test "$enable_shared" = yes && test "$GCC" = yes; then
15223 case $archive_cmds_F77 in
15225 # FIXME: we may have to deal with multi-command sequences.
15228 # Test whether the compiler implicitly links with -lc since on some
15229 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15230 # to ld, don't add -lc before -lgcc.
15231 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15232 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15234 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15237 (eval $ac_compile) 2>&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } 2>conftest.err; then
15243 libobjs=conftest.$ac_objext
15245 wl=$lt_prog_compiler_wl_F77
15246 pic_flag=$lt_prog_compiler_pic_F77
15252 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15253 allow_undefined_flag_F77=
15254 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15255 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }
15260 archive_cmds_need_lc_F77=no
15262 archive_cmds_need_lc_F77=yes
15264 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15266 cat conftest.err 1>&5
15269 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15270 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15277 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15278 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15279 library_names_spec=
15280 libname_spec='lib$name'
15284 postuninstall_cmds=
15288 shlibpath_overrides_runpath=unknown
15290 dynamic_linker="$host_os ld.so"
15291 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15292 if test "$GCC" = yes; then
15293 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15294 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15295 # if the path contains ";" then we assume it to be the separator
15296 # otherwise default to the standard path separator (i.e. ":") - it is
15297 # assumed that no part of a normal pathname contains ";" but that should
15298 # okay in the real world where ";" in dirpaths is itself problematic.
15299 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15304 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15306 need_lib_prefix=unknown
15307 hardcode_into_libs=no
15309 # when you set need_version to no, make sure it does not cause -set_version
15310 # flags to be left without arguments
15311 need_version=unknown
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15317 shlibpath_var=LIBPATH
15319 # AIX 3 has no versioning support, so we append a major version to the name.
15320 soname_spec='${libname}${release}${shared_ext}$major'
15327 hardcode_into_libs=yes
15328 if test "$host_cpu" = ia64; then
15329 # AIX 5 supports IA64
15330 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15331 shlibpath_var=LD_LIBRARY_PATH
15333 # With GCC up to 2.95.x, collect2 would create an import file
15334 # for dependence libraries. The import file would start with
15335 # the line `#! .'. This would cause the generated library to
15336 # depend on `.', always an invalid library. This was fixed in
15337 # development snapshots of GCC prior to 3.0.
15339 aix4 | aix4.[01] | aix4.[01].*)
15340 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15342 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15345 can_build_shared=no
15349 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15350 # soname into executable. Probably we can add versioning support to
15351 # collect2, so additional links can be useful in future.
15352 if test "$aix_use_runtimelinking" = yes; then
15353 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15354 # instead of lib<name>.a to let people know that these are not
15355 # typical AIX shared libraries.
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15358 # We preserve .a as extension for shared libraries through AIX4.2
15359 # and later when we are not doing run time linking.
15360 library_names_spec='${libname}${release}.a $libname.a'
15361 soname_spec='${libname}${release}${shared_ext}$major'
15363 shlibpath_var=LIBPATH
15368 library_names_spec='$libname.ixlibrary $libname.a'
15369 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15370 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'
15374 library_names_spec='${libname}${shared_ext}'
15375 dynamic_linker="$host_os ld.so"
15376 shlibpath_var=LIBRARY_PATH
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383 soname_spec='${libname}${release}${shared_ext}$major'
15384 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15385 shlibpath_var=LD_LIBRARY_PATH
15386 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15387 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15388 # the default ld.so.conf also contains /usr/contrib/lib and
15389 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15390 # libtool to hard-code these into programs
15393 cygwin* | mingw* | pw32*)
15394 version_type=windows
15399 case $GCC,$host_os in
15400 yes,cygwin* | yes,mingw* | yes,pw32*)
15401 library_names_spec='$libname.dll.a'
15402 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15403 postinstall_cmds='base_file=`basename \${file}`~
15404 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15405 dldir=$destdir/`dirname \$dlpath`~
15406 test -d \$dldir || mkdir -p \$dldir~
15407 $install_prog $dir/$dlname \$dldir/$dlname~
15408 chmod a+x \$dldir/$dlname'
15409 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15410 dlpath=$dir/\$dldll~
15412 shlibpath_overrides_runpath=yes
15416 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15417 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15418 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15421 # MinGW DLLs use traditional 'lib' prefix
15422 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15423 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15424 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15425 # It is most probably a Windows format PATH printed by
15426 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15427 # path with ; separators, and with drive letters. We can handle the
15428 # drive letters (cygwin fileutils understands them), so leave them,
15429 # especially as we might pass files found there to a mingw objdump,
15430 # which wouldn't understand a cygwinified path. Ahh.
15431 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15433 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15437 # pw32 DLLs use 'pw' prefix rather than 'lib'
15438 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15444 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15447 dynamic_linker='Win32 ld.exe'
15448 # FIXME: first we should search . and the directory the executable is in
15452 darwin* | rhapsody*)
15453 dynamic_linker="$host_os dyld"
15454 version_type=darwin
15457 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15458 soname_spec='${libname}${release}${major}$shared_ext'
15459 shlibpath_overrides_runpath=yes
15460 shlibpath_var=DYLD_LIBRARY_PATH
15461 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15462 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15463 if test "$GCC" = yes; then
15464 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"`
15466 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15468 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15476 soname_spec='${libname}${release}${shared_ext}$major'
15477 shlibpath_var=LD_LIBRARY_PATH
15488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15489 soname_spec='${libname}${release}${shared_ext}$major'
15490 shlibpath_var=LD_LIBRARY_PATH
15491 shlibpath_overrides_runpath=no
15492 hardcode_into_libs=yes
15493 dynamic_linker='GNU ld.so'
15496 freebsd* | dragonfly*)
15497 # DragonFly does not have aout. When/if they implement a new
15498 # versioning mechanism, adjust this.
15499 if test -x /usr/bin/objformat; then
15500 objformat=`/usr/bin/objformat`
15503 freebsd[123]*) objformat=aout ;;
15504 *) objformat=elf ;;
15507 version_type=freebsd-$objformat
15508 case $version_type in
15510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15515 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15519 shlibpath_var=LD_LIBRARY_PATH
15522 shlibpath_overrides_runpath=yes
15524 freebsd3.[01]* | freebsdelf3.[01]*)
15525 shlibpath_overrides_runpath=yes
15526 hardcode_into_libs=yes
15528 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15529 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15530 shlibpath_overrides_runpath=no
15531 hardcode_into_libs=yes
15533 freebsd*) # from 4.6 on
15534 shlibpath_overrides_runpath=yes
15535 hardcode_into_libs=yes
15544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15545 soname_spec='${libname}${release}${shared_ext}$major'
15546 shlibpath_var=LD_LIBRARY_PATH
15547 hardcode_into_libs=yes
15550 hpux9* | hpux10* | hpux11*)
15551 # Give a soname corresponding to the major version so that dld.sl refuses to
15552 # link against other versions.
15559 hardcode_into_libs=yes
15560 dynamic_linker="$host_os dld.so"
15561 shlibpath_var=LD_LIBRARY_PATH
15562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15564 soname_spec='${libname}${release}${shared_ext}$major'
15565 if test "X$HPUX_IA64_MODE" = X32; then
15566 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15568 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15574 hardcode_into_libs=yes
15575 dynamic_linker="$host_os dld.sl"
15576 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15577 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15579 soname_spec='${libname}${release}${shared_ext}$major'
15580 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15585 dynamic_linker="$host_os dld.sl"
15586 shlibpath_var=SHLIB_PATH
15587 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15589 soname_spec='${libname}${release}${shared_ext}$major'
15592 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15593 postinstall_cmds='chmod 555 $lib'
15600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15601 soname_spec='${libname}${release}${shared_ext}$major'
15602 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15603 shlibpath_var=LD_LIBRARY_PATH
15604 shlibpath_overrides_runpath=no
15605 hardcode_into_libs=yes
15608 irix5* | irix6* | nonstopux*)
15610 nonstopux*) version_type=nonstopux ;;
15612 if test "$lt_cv_prog_gnu_ld" = yes; then
15620 soname_spec='${libname}${release}${shared_ext}$major'
15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15623 irix5* | nonstopux*)
15624 libsuff= shlibsuff=
15627 case $LD in # libtool.m4 will add one of these switches to LD
15628 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15629 libsuff= shlibsuff= libmagic=32-bit;;
15630 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15631 libsuff=32 shlibsuff=N32 libmagic=N32;;
15632 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15633 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15634 *) libsuff= shlibsuff= libmagic=never-match;;
15638 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15639 shlibpath_overrides_runpath=no
15640 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15641 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15642 hardcode_into_libs=yes
15645 # No shared lib support for Linux oldld, aout, or coff.
15646 linux*oldld* | linux*aout* | linux*coff*)
15650 # This must be Linux ELF.
15655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15656 soname_spec='${libname}${release}${shared_ext}$major'
15657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15658 shlibpath_var=LD_LIBRARY_PATH
15659 shlibpath_overrides_runpath=no
15660 # This implies no fast_install, which is unacceptable.
15661 # Some rework will be needed to allow for fast_install
15662 # before this can be enabled.
15663 hardcode_into_libs=yes
15665 # Append ld.so.conf contents to the search path
15666 if test -f /etc/ld.so.conf; then
15667 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' ' '`
15668 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15671 # We used to test for /lib/ld.so.1 and disable shared libraries on
15672 # powerpc, because MkLinux only supported shared libraries with the
15673 # GNU dynamic linker. Since this was broken with cross compilers,
15674 # most powerpc-linux boxes support dynamic linking these days and
15675 # people can always --disable-shared, the test was removed, and we
15676 # assume the GNU/Linux dynamic linker is in use.
15677 dynamic_linker='GNU/Linux ld.so'
15684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15685 soname_spec='${libname}${release}${shared_ext}$major'
15686 shlibpath_var=LD_LIBRARY_PATH
15687 shlibpath_overrides_runpath=no
15688 hardcode_into_libs=yes
15689 dynamic_linker='GNU ld.so'
15696 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15699 dynamic_linker='NetBSD (a.out) ld.so'
15701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15702 soname_spec='${libname}${release}${shared_ext}$major'
15703 dynamic_linker='NetBSD ld.elf_so'
15705 shlibpath_var=LD_LIBRARY_PATH
15706 shlibpath_overrides_runpath=yes
15707 hardcode_into_libs=yes
15712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15713 shlibpath_var=LD_LIBRARY_PATH
15714 shlibpath_overrides_runpath=yes
15721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15722 soname_spec='${libname}${release}${shared_ext}$major'
15723 shlibpath_var=LD_LIBRARY_PATH
15724 shlibpath_overrides_runpath=yes
15729 sys_lib_dlsearch_path_spec="/usr/lib"
15731 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15733 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15734 *) need_version=no ;;
15736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15738 shlibpath_var=LD_LIBRARY_PATH
15739 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15741 openbsd2.[89] | openbsd2.[89].*)
15742 shlibpath_overrides_runpath=no
15745 shlibpath_overrides_runpath=yes
15749 shlibpath_overrides_runpath=yes
15754 libname_spec='$name'
15757 library_names_spec='$libname${shared_ext} $libname.a'
15758 dynamic_linker='OS/2 ld.exe'
15759 shlibpath_var=LIBPATH
15762 osf3* | osf4* | osf5*)
15766 soname_spec='${libname}${release}${shared_ext}$major'
15767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15768 shlibpath_var=LD_LIBRARY_PATH
15769 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15770 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15778 soname_spec='${libname}${release}${shared_ext}$major'
15779 shlibpath_var=LD_LIBRARY_PATH
15780 shlibpath_overrides_runpath=yes
15781 hardcode_into_libs=yes
15782 # ldd complains unless libraries are executable
15783 postinstall_cmds='chmod +x $lib'
15788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15789 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15790 shlibpath_var=LD_LIBRARY_PATH
15791 shlibpath_overrides_runpath=yes
15792 if test "$with_gnu_ld" = yes; then
15800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15801 soname_spec='${libname}${release}${shared_ext}$major'
15802 shlibpath_var=LD_LIBRARY_PATH
15803 case $host_vendor in
15805 shlibpath_overrides_runpath=no
15807 export_dynamic_flag_spec='${wl}-Blargedynsym'
15808 runpath_var=LD_RUN_PATH
15816 shlibpath_overrides_runpath=no
15817 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15823 if test -d /usr/nec ;then
15825 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15826 soname_spec='$libname${shared_ext}.$major'
15827 shlibpath_var=LD_LIBRARY_PATH
15831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15832 version_type=freebsd-elf
15835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15836 soname_spec='${libname}${release}${shared_ext}$major'
15837 shlibpath_var=LD_LIBRARY_PATH
15838 hardcode_into_libs=yes
15839 if test "$with_gnu_ld" = yes; then
15840 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15841 shlibpath_overrides_runpath=no
15843 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15844 shlibpath_overrides_runpath=yes
15847 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15851 sys_lib_dlsearch_path_spec='/usr/lib'
15856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15857 soname_spec='${libname}${release}${shared_ext}$major'
15858 shlibpath_var=LD_LIBRARY_PATH
15865 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15866 echo "${ECHO_T}$dynamic_linker" >&6; }
15867 test "$dynamic_linker" = no && can_build_shared=no
15869 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15870 if test "$GCC" = yes; then
15871 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15874 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15875 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15876 hardcode_action_F77=
15877 if test -n "$hardcode_libdir_flag_spec_F77" || \
15878 test -n "$runpath_var_F77" || \
15879 test "X$hardcode_automatic_F77" = "Xyes" ; then
15881 # We can hardcode non-existant directories.
15882 if test "$hardcode_direct_F77" != no &&
15883 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15884 # have to relink, otherwise we might link with an installed library
15885 # when we should be linking with a yet-to-be-installed one
15886 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15887 test "$hardcode_minus_L_F77" != no; then
15888 # Linking always hardcodes the temporary library directory.
15889 hardcode_action_F77=relink
15891 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15892 hardcode_action_F77=immediate
15895 # We cannot hardcode anything, or else we can only hardcode existing
15897 hardcode_action_F77=unsupported
15899 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15900 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15902 if test "$hardcode_action_F77" = relink; then
15903 # Fast installation is not supported
15904 enable_fast_install=no
15905 elif test "$shlibpath_overrides_runpath" = yes ||
15906 test "$enable_shared" = no; then
15907 # Fast installation is not necessary
15908 enable_fast_install=needless
15912 # The else clause should only fire when bootstrapping the
15913 # libtool distribution, otherwise you forgot to ship ltmain.sh
15914 # with your package, and you will get complaints that there are
15915 # no rules to generate ltmain.sh.
15916 if test -f "$ltmain"; then
15917 # See if we are running on zsh, and set the options which allow our commands through
15918 # without removal of \ escapes.
15919 if test -n "${ZSH_VERSION+set}" ; then
15920 setopt NO_GLOB_SUBST
15922 # Now quote all the things that may contain metacharacters while being
15923 # careful not to overquote the AC_SUBSTed values. We take copies of the
15924 # variables and quote the copies for generation of the libtool script.
15925 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15927 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15928 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15929 deplibs_check_method reload_flag reload_cmds need_locks \
15930 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15931 lt_cv_sys_global_symbol_to_c_name_address \
15932 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15933 old_postinstall_cmds old_postuninstall_cmds \
15937 lt_prog_compiler_wl_F77 \
15938 lt_prog_compiler_pic_F77 \
15939 lt_prog_compiler_static_F77 \
15940 lt_prog_compiler_no_builtin_flag_F77 \
15941 export_dynamic_flag_spec_F77 \
15942 thread_safe_flag_spec_F77 \
15943 whole_archive_flag_spec_F77 \
15944 enable_shared_with_static_runtimes_F77 \
15945 old_archive_cmds_F77 \
15946 old_archive_from_new_cmds_F77 \
15947 predep_objects_F77 \
15948 postdep_objects_F77 \
15951 compiler_lib_search_path_F77 \
15953 archive_expsym_cmds_F77 \
15954 postinstall_cmds_F77 \
15955 postuninstall_cmds_F77 \
15956 old_archive_from_expsyms_cmds_F77 \
15957 allow_undefined_flag_F77 \
15958 no_undefined_flag_F77 \
15959 export_symbols_cmds_F77 \
15960 hardcode_libdir_flag_spec_F77 \
15961 hardcode_libdir_flag_spec_ld_F77 \
15962 hardcode_libdir_separator_F77 \
15963 hardcode_automatic_F77 \
15965 module_expsym_cmds_F77 \
15966 lt_cv_prog_compiler_c_o_F77 \
15967 exclude_expsyms_F77 \
15968 include_expsyms_F77; do
15971 old_archive_cmds_F77 | \
15972 old_archive_from_new_cmds_F77 | \
15973 archive_cmds_F77 | \
15974 archive_expsym_cmds_F77 | \
15975 module_cmds_F77 | \
15976 module_expsym_cmds_F77 | \
15977 old_archive_from_expsyms_cmds_F77 | \
15978 export_symbols_cmds_F77 | \
15979 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15980 postinstall_cmds | postuninstall_cmds | \
15981 old_postinstall_cmds | old_postuninstall_cmds | \
15982 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15983 # Double-quote double-evaled strings.
15984 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15987 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15993 *'\$0 --fallback-echo"')
15994 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16000 cat <<__EOF__ >> "$cfgfile"
16001 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16003 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16005 # Shell to use when invoking shell scripts.
16008 # Whether or not to build shared libraries.
16009 build_libtool_libs=$enable_shared
16011 # Whether or not to build static libraries.
16012 build_old_libs=$enable_static
16014 # Whether or not to add -lc for building shared libraries.
16015 build_libtool_need_lc=$archive_cmds_need_lc_F77
16017 # Whether or not to disallow shared libs when runtime libs are static
16018 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16020 # Whether or not to optimize for fast installation.
16021 fast_install=$enable_fast_install
16024 host_alias=$host_alias
16028 # The build system.
16029 build_alias=$build_alias
16033 # An echo program that does not interpret backslashes.
16038 AR_FLAGS=$lt_AR_FLAGS
16043 # LTCC compiler flags.
16044 LTCFLAGS=$lt_LTCFLAGS
16046 # A language-specific compiler.
16047 CC=$lt_compiler_F77
16049 # Is the compiler the GNU C compiler?
16055 # The linker used to build libraries.
16058 # Whether we need hard or soft links.
16061 # A BSD-compatible nm program.
16064 # A symbol stripping program
16067 # Used to examine libraries when file_magic_cmd begins "file"
16068 MAGIC_CMD=$MAGIC_CMD
16070 # Used on cygwin: DLL creation program.
16073 # Used on cygwin: object dumper.
16076 # Used on cygwin: assembler.
16079 # The name of the directory that contains temporary libtool files.
16082 # How to create reloadable object files.
16083 reload_flag=$lt_reload_flag
16084 reload_cmds=$lt_reload_cmds
16086 # How to pass a linker flag through the compiler.
16087 wl=$lt_lt_prog_compiler_wl_F77
16089 # Object file suffix (normally "o").
16090 objext="$ac_objext"
16092 # Old archive suffix (normally "a").
16095 # Shared library suffix (normally ".so").
16096 shrext_cmds='$shrext_cmds'
16098 # Executable file suffix (normally "").
16101 # Additional compiler flags for building library objects.
16102 pic_flag=$lt_lt_prog_compiler_pic_F77
16105 # What is the maximum length of a command?
16106 max_cmd_len=$lt_cv_sys_max_cmd_len
16108 # Does compiler simultaneously support -c and -o options?
16109 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16111 # Must we lock files when doing compilation?
16112 need_locks=$lt_need_locks
16114 # Do we need the lib prefix for modules?
16115 need_lib_prefix=$need_lib_prefix
16117 # Do we need a version for libraries?
16118 need_version=$need_version
16120 # Whether dlopen is supported.
16121 dlopen_support=$enable_dlopen
16123 # Whether dlopen of programs is supported.
16124 dlopen_self=$enable_dlopen_self
16126 # Whether dlopen of statically linked programs is supported.
16127 dlopen_self_static=$enable_dlopen_self_static
16129 # Compiler flag to prevent dynamic linking.
16130 link_static_flag=$lt_lt_prog_compiler_static_F77
16132 # Compiler flag to turn off builtin functions.
16133 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16135 # Compiler flag to allow reflexive dlopens.
16136 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16138 # Compiler flag to generate shared objects directly from archives.
16139 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16141 # Compiler flag to generate thread-safe objects.
16142 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16144 # Library versioning type.
16145 version_type=$version_type
16147 # Format of library name prefix.
16148 libname_spec=$lt_libname_spec
16150 # List of archive names. First name is the real one, the rest are links.
16151 # The last name is the one that the linker finds with -lNAME.
16152 library_names_spec=$lt_library_names_spec
16154 # The coded name of the library, if different from the real name.
16155 soname_spec=$lt_soname_spec
16157 # Commands used to build and install an old-style archive.
16159 old_archive_cmds=$lt_old_archive_cmds_F77
16160 old_postinstall_cmds=$lt_old_postinstall_cmds
16161 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16163 # Create an old-style archive from a shared archive.
16164 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16166 # Create a temporary old-style archive to link instead of a shared archive.
16167 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16169 # Commands used to build and install a shared archive.
16170 archive_cmds=$lt_archive_cmds_F77
16171 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16172 postinstall_cmds=$lt_postinstall_cmds
16173 postuninstall_cmds=$lt_postuninstall_cmds
16175 # Commands used to build a loadable module (assumed same as above if empty)
16176 module_cmds=$lt_module_cmds_F77
16177 module_expsym_cmds=$lt_module_expsym_cmds_F77
16179 # Commands to strip libraries.
16180 old_striplib=$lt_old_striplib
16181 striplib=$lt_striplib
16183 # Dependencies to place before the objects being linked to create a
16185 predep_objects=$lt_predep_objects_F77
16187 # Dependencies to place after the objects being linked to create a
16189 postdep_objects=$lt_postdep_objects_F77
16191 # Dependencies to place before the objects being linked to create a
16193 predeps=$lt_predeps_F77
16195 # Dependencies to place after the objects being linked to create a
16197 postdeps=$lt_postdeps_F77
16199 # The library search path used internally by the compiler when linking
16200 # a shared library.
16201 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16203 # Method to check whether dependent libraries are shared objects.
16204 deplibs_check_method=$lt_deplibs_check_method
16206 # Command to use when deplibs_check_method == file_magic.
16207 file_magic_cmd=$lt_file_magic_cmd
16209 # Flag that allows shared libraries with undefined symbols to be built.
16210 allow_undefined_flag=$lt_allow_undefined_flag_F77
16212 # Flag that forces no undefined symbols.
16213 no_undefined_flag=$lt_no_undefined_flag_F77
16215 # Commands used to finish a libtool library installation in a directory.
16216 finish_cmds=$lt_finish_cmds
16218 # Same as above, but a single script fragment to be evaled but not shown.
16219 finish_eval=$lt_finish_eval
16221 # Take the output of nm and produce a listing of raw symbols and C names.
16222 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16224 # Transform the output of nm in a proper C declaration
16225 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16227 # Transform the output of nm in a C name address pair
16228 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16230 # This is the shared library runtime path variable.
16231 runpath_var=$runpath_var
16233 # This is the shared library path variable.
16234 shlibpath_var=$shlibpath_var
16236 # Is shlibpath searched before the hard-coded library search path?
16237 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16239 # How to hardcode a shared library path into an executable.
16240 hardcode_action=$hardcode_action_F77
16242 # Whether we should hardcode library paths into libraries.
16243 hardcode_into_libs=$hardcode_into_libs
16245 # Flag to hardcode \$libdir into a binary during linking.
16246 # This must work even if \$libdir does not exist.
16247 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16249 # If ld is used when linking, flag to hardcode \$libdir into
16250 # a binary during linking. This must work even if \$libdir does
16252 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16254 # Whether we need a single -rpath flag with a separated argument.
16255 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16257 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16258 # resulting binary.
16259 hardcode_direct=$hardcode_direct_F77
16261 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16262 # resulting binary.
16263 hardcode_minus_L=$hardcode_minus_L_F77
16265 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16266 # the resulting binary.
16267 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16269 # Set to yes if building a shared library automatically hardcodes DIR into the library
16270 # and all subsequent libraries and executables linked against it.
16271 hardcode_automatic=$hardcode_automatic_F77
16273 # Variables whose values should be saved in libtool wrapper scripts and
16274 # restored at relink time.
16275 variables_saved_for_relink="$variables_saved_for_relink"
16277 # Whether libtool must link a program against all its dependency libraries.
16278 link_all_deplibs=$link_all_deplibs_F77
16280 # Compile-time system search path for libraries
16281 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16283 # Run-time system search path for libraries
16284 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16286 # Fix the shell variable \$srcfile for the compiler.
16287 fix_srcfile_path="$fix_srcfile_path_F77"
16289 # Set to yes if exported symbols are required.
16290 always_export_symbols=$always_export_symbols_F77
16292 # The commands to list exported symbols.
16293 export_symbols_cmds=$lt_export_symbols_cmds_F77
16295 # The commands to extract the exported symbol list from a shared archive.
16296 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16298 # Symbols that should not be listed in the preloaded symbols.
16299 exclude_expsyms=$lt_exclude_expsyms_F77
16301 # Symbols that must always be exported.
16302 include_expsyms=$lt_include_expsyms_F77
16304 # ### END LIBTOOL TAG CONFIG: $tagname
16310 # If there is no Makefile yet, we rely on a make rule to execute
16311 # `config.status --recheck' to rerun these tests and create the
16312 # libtool script then.
16313 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16314 if test -f "$ltmain_in"; then
16315 test -f Makefile && make "$ltmain"
16321 ac_cpp='$CPP $CPPFLAGS'
16322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16334 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16337 # Source file extension for Java test sources.
16340 # Object file extension for compiled Java test sources.
16344 # Code to be used in simple compile tests
16345 lt_simple_compile_test_code="class foo {}\n"
16347 # Code to be used in simple link tests
16348 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16350 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16352 # If no C compiler was specified, use CC.
16355 # If no C compiler flags were specified, use CFLAGS.
16356 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16358 # Allow CC to be a program name with arguments.
16362 # save warnings/boilerplate of simple test code
16363 ac_outfile=conftest.$ac_objext
16364 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16365 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16366 _lt_compiler_boilerplate=`cat conftest.err`
16369 ac_outfile=conftest.$ac_objext
16370 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16371 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16372 _lt_linker_boilerplate=`cat conftest.err`
16376 # Allow CC to be a program name with arguments.
16381 for cc_temp in $compiler""; do
16383 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16384 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16389 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16392 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16393 archive_cmds_need_lc_GCJ=no
16395 old_archive_cmds_GCJ=$old_archive_cmds
16398 ## There is no encapsulation within the following macros, do not change
16399 ## the running order or otherwise move them around unless you know exactly
16400 ## what you are doing...
16402 lt_prog_compiler_no_builtin_flag_GCJ=
16404 if test "$GCC" = yes; then
16405 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16408 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16409 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16410 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16411 echo $ECHO_N "(cached) $ECHO_C" >&6
16413 lt_cv_prog_compiler_rtti_exceptions=no
16414 ac_outfile=conftest.$ac_objext
16415 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16416 lt_compiler_flag="-fno-rtti -fno-exceptions"
16417 # Insert the option either (1) after the last *FLAGS variable, or
16418 # (2) before a word containing "conftest.", or (3) at the end.
16419 # Note that $ac_compile itself does not contain backslashes and begins
16420 # with a dollar sign (not a hyphen), so the echo should work correctly.
16421 # The option is referenced via a variable to avoid confusing sed.
16422 lt_compile=`echo "$ac_compile" | $SED \
16423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16425 -e 's:$: $lt_compiler_flag:'`
16426 (eval echo "\"\$as_me:16426: $lt_compile\"" >&5)
16427 (eval "$lt_compile" 2>conftest.err)
16429 cat conftest.err >&5
16430 echo "$as_me:16430: \$? = $ac_status" >&5
16431 if (exit $ac_status) && test -s "$ac_outfile"; then
16432 # The compiler can only warn and ignore the option if not recognized
16433 # So say no if there are warnings other than the usual output.
16434 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16436 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16437 lt_cv_prog_compiler_rtti_exceptions=yes
16443 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16444 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16446 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16447 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16454 lt_prog_compiler_wl_GCJ=
16455 lt_prog_compiler_pic_GCJ=
16456 lt_prog_compiler_static_GCJ=
16458 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16459 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16461 if test "$GCC" = yes; then
16462 lt_prog_compiler_wl_GCJ='-Wl,'
16463 lt_prog_compiler_static_GCJ='-static'
16467 # All AIX code is PIC.
16468 if test "$host_cpu" = ia64; then
16469 # AIX 5 now supports IA64 processor
16470 lt_prog_compiler_static_GCJ='-Bstatic'
16475 # FIXME: we need at least 68020 code to build shared libraries, but
16476 # adding the `-m68020' flag to GCC prevents building anything better,
16478 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16481 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16482 # PIC is the default for these OSes.
16485 mingw* | pw32* | os2*)
16486 # This hack is so that the source file can tell whether it is being
16487 # built for inclusion in a dll (and should export symbols for example).
16488 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16491 darwin* | rhapsody*)
16492 # PIC is the default on this platform
16493 # Common symbols not allowed in MH_DYLIB files
16494 lt_prog_compiler_pic_GCJ='-fno-common'
16498 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16499 # Instead, we relocate shared libraries at runtime.
16503 # Just because we use GCC doesn't mean we suddenly get shared libraries
16504 # on systems that don't support them.
16505 lt_prog_compiler_can_build_shared_GCJ=no
16510 if test -d /usr/nec; then
16511 lt_prog_compiler_pic_GCJ=-Kconform_pic
16516 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16517 # not for PA HP-UX.
16523 lt_prog_compiler_pic_GCJ='-fPIC'
16529 lt_prog_compiler_pic_GCJ='-fPIC'
16533 # PORTME Check for flag to pass linker flags through the system compiler.
16536 lt_prog_compiler_wl_GCJ='-Wl,'
16537 if test "$host_cpu" = ia64; then
16538 # AIX 5 now supports IA64 processor
16539 lt_prog_compiler_static_GCJ='-Bstatic'
16541 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16545 # PIC is the default on this platform
16546 # Common symbols not allowed in MH_DYLIB files
16547 case $cc_basename in
16549 lt_prog_compiler_pic_GCJ='-qnocommon'
16550 lt_prog_compiler_wl_GCJ='-Wl,'
16555 mingw* | pw32* | os2*)
16556 # This hack is so that the source file can tell whether it is being
16557 # built for inclusion in a dll (and should export symbols for example).
16558 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16561 hpux9* | hpux10* | hpux11*)
16562 lt_prog_compiler_wl_GCJ='-Wl,'
16563 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16564 # not for PA HP-UX.
16570 lt_prog_compiler_pic_GCJ='+Z'
16573 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16574 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16577 irix5* | irix6* | nonstopux*)
16578 lt_prog_compiler_wl_GCJ='-Wl,'
16579 # PIC (with -KPIC) is the default.
16580 lt_prog_compiler_static_GCJ='-non_shared'
16584 lt_prog_compiler_pic_GCJ='-KPIC'
16585 lt_prog_compiler_static_GCJ='-Bstatic'
16589 case $cc_basename in
16591 lt_prog_compiler_wl_GCJ='-Wl,'
16592 lt_prog_compiler_pic_GCJ='-KPIC'
16593 lt_prog_compiler_static_GCJ='-static'
16595 pgcc* | pgf77* | pgf90* | pgf95*)
16596 # Portland Group compilers (*not* the Pentium gcc compiler,
16597 # which looks to be a dead project)
16598 lt_prog_compiler_wl_GCJ='-Wl,'
16599 lt_prog_compiler_pic_GCJ='-fpic'
16600 lt_prog_compiler_static_GCJ='-Bstatic'
16603 lt_prog_compiler_wl_GCJ='-Wl,'
16604 # All Alpha code is PIC.
16605 lt_prog_compiler_static_GCJ='-non_shared'
16610 osf3* | osf4* | osf5*)
16611 lt_prog_compiler_wl_GCJ='-Wl,'
16612 # All OSF/1 code is PIC.
16613 lt_prog_compiler_static_GCJ='-non_shared'
16617 lt_prog_compiler_pic_GCJ='-KPIC'
16618 lt_prog_compiler_static_GCJ='-Bstatic'
16619 case $cc_basename in
16620 f77* | f90* | f95*)
16621 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16623 lt_prog_compiler_wl_GCJ='-Wl,';;
16628 lt_prog_compiler_wl_GCJ='-Qoption ld '
16629 lt_prog_compiler_pic_GCJ='-PIC'
16630 lt_prog_compiler_static_GCJ='-Bstatic'
16633 sysv4 | sysv4.2uw2* | sysv4.3*)
16634 lt_prog_compiler_wl_GCJ='-Wl,'
16635 lt_prog_compiler_pic_GCJ='-KPIC'
16636 lt_prog_compiler_static_GCJ='-Bstatic'
16640 if test -d /usr/nec ;then
16641 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16642 lt_prog_compiler_static_GCJ='-Bstatic'
16646 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16647 lt_prog_compiler_wl_GCJ='-Wl,'
16648 lt_prog_compiler_pic_GCJ='-KPIC'
16649 lt_prog_compiler_static_GCJ='-Bstatic'
16653 lt_prog_compiler_wl_GCJ='-Wl,'
16654 lt_prog_compiler_can_build_shared_GCJ=no
16658 lt_prog_compiler_pic_GCJ='-pic'
16659 lt_prog_compiler_static_GCJ='-Bstatic'
16663 lt_prog_compiler_can_build_shared_GCJ=no
16668 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16669 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16672 # Check to make sure the PIC flag actually works.
16674 if test -n "$lt_prog_compiler_pic_GCJ"; then
16676 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16677 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16678 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16679 echo $ECHO_N "(cached) $ECHO_C" >&6
16681 lt_prog_compiler_pic_works_GCJ=no
16682 ac_outfile=conftest.$ac_objext
16683 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16684 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16685 # Insert the option either (1) after the last *FLAGS variable, or
16686 # (2) before a word containing "conftest.", or (3) at the end.
16687 # Note that $ac_compile itself does not contain backslashes and begins
16688 # with a dollar sign (not a hyphen), so the echo should work correctly.
16689 # The option is referenced via a variable to avoid confusing sed.
16690 lt_compile=`echo "$ac_compile" | $SED \
16691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16693 -e 's:$: $lt_compiler_flag:'`
16694 (eval echo "\"\$as_me:16694: $lt_compile\"" >&5)
16695 (eval "$lt_compile" 2>conftest.err)
16697 cat conftest.err >&5
16698 echo "$as_me:16698: \$? = $ac_status" >&5
16699 if (exit $ac_status) && test -s "$ac_outfile"; then
16700 # The compiler can only warn and ignore the option if not recognized
16701 # So say no if there are warnings other than the usual output.
16702 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16704 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16705 lt_prog_compiler_pic_works_GCJ=yes
16711 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16712 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16714 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16715 case $lt_prog_compiler_pic_GCJ in
16717 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16720 lt_prog_compiler_pic_GCJ=
16721 lt_prog_compiler_can_build_shared_GCJ=no
16726 # For platforms which do not support PIC, -DPIC is meaningless:
16728 lt_prog_compiler_pic_GCJ=
16731 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16736 # Check to make sure the static flag actually works.
16738 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16739 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16740 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16741 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16742 echo $ECHO_N "(cached) $ECHO_C" >&6
16744 lt_prog_compiler_static_works_GCJ=no
16745 save_LDFLAGS="$LDFLAGS"
16746 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16747 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16748 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16749 # The linker can only warn and ignore the option if not recognized
16750 # So say no if there are warnings
16751 if test -s conftest.err; then
16752 # Append any errors to the config.log.
16753 cat conftest.err 1>&5
16754 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16756 if diff conftest.exp conftest.er2 >/dev/null; then
16757 lt_prog_compiler_static_works_GCJ=yes
16760 lt_prog_compiler_static_works_GCJ=yes
16764 LDFLAGS="$save_LDFLAGS"
16767 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16768 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16770 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16773 lt_prog_compiler_static_GCJ=
16777 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16778 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16779 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16782 lt_cv_prog_compiler_c_o_GCJ=no
16783 $rm -r conftest 2>/dev/null
16787 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16789 lt_compiler_flag="-o out/conftest2.$ac_objext"
16790 # Insert the option either (1) after the last *FLAGS variable, or
16791 # (2) before a word containing "conftest.", or (3) at the end.
16792 # Note that $ac_compile itself does not contain backslashes and begins
16793 # with a dollar sign (not a hyphen), so the echo should work correctly.
16794 lt_compile=`echo "$ac_compile" | $SED \
16795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16797 -e 's:$: $lt_compiler_flag:'`
16798 (eval echo "\"\$as_me:16798: $lt_compile\"" >&5)
16799 (eval "$lt_compile" 2>out/conftest.err)
16801 cat out/conftest.err >&5
16802 echo "$as_me:16802: \$? = $ac_status" >&5
16803 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16805 # The compiler can only warn and ignore the option if not recognized
16806 # So say no if there are warnings
16807 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16808 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16809 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16810 lt_cv_prog_compiler_c_o_GCJ=yes
16815 # SGI C++ compiler will create directory out/ii_files/ for
16816 # template instantiation
16817 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16818 $rm out/* && rmdir out
16824 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16825 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16828 hard_links="nottested"
16829 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16830 # do not overwrite the value of need_locks provided by the user
16831 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16832 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16835 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16837 ln conftest.a conftest.b 2>&5 || hard_links=no
16838 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16839 { echo "$as_me:$LINENO: result: $hard_links" >&5
16840 echo "${ECHO_T}$hard_links" >&6; }
16841 if test "$hard_links" = no; then
16842 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16843 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16850 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16851 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16854 allow_undefined_flag_GCJ=
16855 enable_shared_with_static_runtimes_GCJ=no
16857 archive_expsym_cmds_GCJ=
16858 old_archive_From_new_cmds_GCJ=
16859 old_archive_from_expsyms_cmds_GCJ=
16860 export_dynamic_flag_spec_GCJ=
16861 whole_archive_flag_spec_GCJ=
16862 thread_safe_flag_spec_GCJ=
16863 hardcode_libdir_flag_spec_GCJ=
16864 hardcode_libdir_flag_spec_ld_GCJ=
16865 hardcode_libdir_separator_GCJ=
16866 hardcode_direct_GCJ=no
16867 hardcode_minus_L_GCJ=no
16868 hardcode_shlibpath_var_GCJ=unsupported
16869 link_all_deplibs_GCJ=unknown
16870 hardcode_automatic_GCJ=no
16872 module_expsym_cmds_GCJ=
16873 always_export_symbols_GCJ=no
16874 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16875 # include_expsyms should be a list of space-separated symbols to be *always*
16876 # included in the symbol list
16877 include_expsyms_GCJ=
16878 # exclude_expsyms can be an extended regexp of symbols to exclude
16879 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16880 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16881 # as well as any symbol that contains `d'.
16882 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16883 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16884 # platforms (ab)use it in PIC code, but their linkers get confused if
16885 # the symbol is explicitly referenced. Since portable code cannot
16886 # rely on this symbol name, it's probably fine to never include it in
16887 # preloaded symbol tables.
16888 extract_expsyms_cmds=
16889 # Just being paranoid about ensuring that cc_basename is set.
16890 for cc_temp in $compiler""; do
16892 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16893 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16898 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16901 cygwin* | mingw* | pw32*)
16902 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16903 # When not using gcc, we currently assume that we are using
16904 # Microsoft Visual C++.
16905 if test "$GCC" != yes; then
16910 # we just hope/assume this is gcc and not c89 (= MSVC++)
16919 if test "$with_gnu_ld" = yes; then
16920 # If archive_cmds runs LD, not CC, wlarc should be empty
16923 # Set some defaults for GNU ld with shared library support. These
16924 # are reset later if shared libraries are not supported. Putting them
16925 # here allows them to be overridden if necessary.
16926 runpath_var=LD_RUN_PATH
16927 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16928 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16929 # ancient GNU ld didn't support --whole-archive et. al.
16930 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16931 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16933 whole_archive_flag_spec_GCJ=
16935 supports_anon_versioning=no
16936 case `$LD -v 2>/dev/null` in
16937 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16938 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16939 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16940 *\ 2.11.*) ;; # other 2.11 versions
16941 *) supports_anon_versioning=yes ;;
16944 # See if GNU ld supports shared libraries.
16946 aix3* | aix4* | aix5*)
16947 # On AIX/PPC, the GNU linker is very broken
16948 if test "$host_cpu" != ia64; then
16952 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16953 *** to be unable to reliably create shared libraries on AIX.
16954 *** Therefore, libtool is disabling shared libraries support. If you
16955 *** really care for shared libraries, you may want to modify your PATH
16956 *** so that a non-GNU linker is found, and then restart.
16963 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)'
16964 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16965 hardcode_minus_L_GCJ=yes
16967 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16968 # that the semantics of dynamic libraries on AmigaOS, at least up
16969 # to version 4, is to share data among multiple programs linked
16970 # with the same dynamic library. Since this doesn't match the
16971 # behavior of shared libraries on other platforms, we can't use
16977 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16978 allow_undefined_flag_GCJ=unsupported
16979 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16980 # support --undefined. This deserves some investigation. FIXME
16981 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16987 cygwin* | mingw* | pw32*)
16988 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16989 # as there is no search path for DLLs.
16990 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16991 allow_undefined_flag_GCJ=unsupported
16992 always_export_symbols_GCJ=no
16993 enable_shared_with_static_runtimes_GCJ=yes
16994 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16996 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16997 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16998 # If the export-symbols file already is a .def file (1st line
16999 # is EXPORTS), use it as is; otherwise, prepend...
17000 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17001 cp $export_symbols $output_objdir/$soname.def;
17003 echo EXPORTS > $output_objdir/$soname.def;
17004 cat $export_symbols >> $output_objdir/$soname.def;
17006 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17013 hardcode_direct_GCJ=no
17014 hardcode_shlibpath_var_GCJ=no
17015 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17016 export_dynamic_flag_spec_GCJ='${wl}-E'
17017 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17018 # Instead, shared libraries are loaded at an image base (0x10000000 by
17019 # default) and relocated if they conflict, which is a slow very memory
17020 # consuming and fragmenting process. To avoid this, we pick a random,
17021 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17022 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17023 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'
17024 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'
17028 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17030 case $cc_basename,$host_cpu in
17031 pgcc*) # Portland Group C compiler
17032 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'
17033 tmp_addflag=' $pic_flag'
17035 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17036 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'
17037 tmp_addflag=' $pic_flag -Mnomain' ;;
17038 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17039 tmp_addflag=' -i_dynamic' ;;
17040 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17041 tmp_addflag=' -i_dynamic -nofor_main' ;;
17042 ifc* | ifort*) # Intel Fortran compiler
17043 tmp_addflag=' -nofor_main' ;;
17045 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17047 if test $supports_anon_versioning = yes; then
17048 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17049 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17050 $echo "local: *; };" >> $output_objdir/$libname.ver~
17051 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17059 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17060 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17063 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17064 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17069 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17073 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17074 *** create shared libraries on Solaris systems. Therefore, libtool
17075 *** is disabling shared libraries support. We urge you to upgrade GNU
17076 *** binutils to release 2.9.1 or newer. Another option is to modify
17077 *** your PATH or compiler configuration so that the native linker is
17078 *** used, and then restart.
17081 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17082 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17083 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17090 case `$LD -v 2>&1` in
17091 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17095 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17096 *** reliably create shared libraries on SCO systems. Therefore, libtool
17097 *** is disabling shared libraries support. We urge you to upgrade GNU
17098 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17099 *** your PATH or compiler configuration so that the native linker is
17100 *** used, and then restart.
17105 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17106 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17107 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17108 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17117 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17119 hardcode_direct_GCJ=yes
17120 hardcode_shlibpath_var_GCJ=no
17124 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17125 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17126 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17133 if test "$ld_shlibs_GCJ" = no; then
17135 hardcode_libdir_flag_spec_GCJ=
17136 export_dynamic_flag_spec_GCJ=
17137 whole_archive_flag_spec_GCJ=
17140 # PORTME fill in a description of your system's linker (not GNU ld)
17143 allow_undefined_flag_GCJ=unsupported
17144 always_export_symbols_GCJ=yes
17145 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'
17146 # Note: this linker hardcodes the directories in LIBPATH if there
17147 # are no directories specified by -L.
17148 hardcode_minus_L_GCJ=yes
17149 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17150 # Neither direct hardcoding nor static linking is supported with a
17152 hardcode_direct_GCJ=unsupported
17157 if test "$host_cpu" = ia64; then
17158 # On IA64, the linker does run time linking by default, so we don't
17159 # have to do anything special.
17160 aix_use_runtimelinking=no
17161 exp_sym_flag='-Bexport'
17164 # If we're using GNU nm, then we don't want the "-C" option.
17165 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17166 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17167 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'
17169 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'
17171 aix_use_runtimelinking=no
17173 # Test if we are trying to use run time linking or normal
17174 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17175 # need to do runtime linking.
17176 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17177 for ld_flag in $LDFLAGS; do
17178 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17179 aix_use_runtimelinking=yes
17186 exp_sym_flag='-bexport'
17187 no_entry_flag='-bnoentry'
17190 # When large executables or shared objects are built, AIX ld can
17191 # have problems creating the table of contents. If linking a library
17192 # or program results in "error TOC overflow" add -mminimal-toc to
17193 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17194 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17196 archive_cmds_GCJ=''
17197 hardcode_direct_GCJ=yes
17198 hardcode_libdir_separator_GCJ=':'
17199 link_all_deplibs_GCJ=yes
17201 if test "$GCC" = yes; then
17202 case $host_os in aix4.[012]|aix4.[012].*)
17203 # We only want to do this on AIX 4.2 and lower, the check
17204 # below for broken collect2 doesn't work under 4.3+
17205 collect2name=`${CC} -print-prog-name=collect2`
17206 if test -f "$collect2name" && \
17207 strings "$collect2name" | grep resolve_lib_name >/dev/null
17209 # We have reworked collect2
17210 hardcode_direct_GCJ=yes
17212 # We have old collect2
17213 hardcode_direct_GCJ=unsupported
17214 # It fails to find uninstalled libraries when the uninstalled
17215 # path is not listed in the libpath. Setting hardcode_minus_L
17216 # to unsupported forces relinking
17217 hardcode_minus_L_GCJ=yes
17218 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17219 hardcode_libdir_separator_GCJ=
17223 shared_flag='-shared'
17224 if test "$aix_use_runtimelinking" = yes; then
17225 shared_flag="$shared_flag "'${wl}-G'
17229 if test "$host_cpu" = ia64; then
17230 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17231 # chokes on -Wl,-G. The following line is correct:
17234 if test "$aix_use_runtimelinking" = yes; then
17235 shared_flag='${wl}-G'
17237 shared_flag='${wl}-bM:SRE'
17242 # It seems that -bexpall does not export symbols beginning with
17243 # underscore (_), so it is better to generate a list of symbols to export.
17244 always_export_symbols_GCJ=yes
17245 if test "$aix_use_runtimelinking" = yes; then
17246 # Warning - without using the other runtime loading flags (-brtl),
17247 # -berok will link without error, but may produce a broken library.
17248 allow_undefined_flag_GCJ='-berok'
17249 # Determine the default libpath from the value encoded in an empty executable.
17250 cat >conftest.$ac_ext <<_ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h. */
17265 rm -f conftest.$ac_objext conftest$ac_exeext
17266 if { (ac_try="$ac_link"
17267 case "(($ac_try" in
17268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272 (eval "$ac_link") 2>conftest.er1
17274 grep -v '^ *+' conftest.er1 >conftest.err
17276 cat conftest.err >&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); } && {
17279 test -z "$ac_c_werror_flag" ||
17280 test ! -s conftest.err
17281 } && test -s conftest$ac_exeext &&
17282 $as_test_x conftest$ac_exeext; then
17284 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17286 # Check for a 64-bit object if we didn't find anything.
17287 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; }
17290 echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17297 conftest$ac_exeext conftest.$ac_ext
17298 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17300 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17301 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"
17303 if test "$host_cpu" = ia64; then
17304 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17305 allow_undefined_flag_GCJ="-z nodefs"
17306 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"
17308 # Determine the default libpath from the value encoded in an empty executable.
17309 cat >conftest.$ac_ext <<_ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h. */
17324 rm -f conftest.$ac_objext conftest$ac_exeext
17325 if { (ac_try="$ac_link"
17326 case "(($ac_try" in
17327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17328 *) ac_try_echo=$ac_try;;
17330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17331 (eval "$ac_link") 2>conftest.er1
17333 grep -v '^ *+' conftest.er1 >conftest.err
17335 cat conftest.err >&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); } && {
17338 test -z "$ac_c_werror_flag" ||
17339 test ! -s conftest.err
17340 } && test -s conftest$ac_exeext &&
17341 $as_test_x conftest$ac_exeext; then
17343 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17345 # Check for a 64-bit object if we didn't find anything.
17346 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; }
17349 echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.$ac_ext >&5
17355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17356 conftest$ac_exeext conftest.$ac_ext
17357 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17359 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17360 # Warning - without using the other run time loading flags,
17361 # -berok will link without error, but may produce a broken library.
17362 no_undefined_flag_GCJ=' ${wl}-bernotok'
17363 allow_undefined_flag_GCJ=' ${wl}-berok'
17364 # Exported symbols can be pulled into shared objects from archives
17365 whole_archive_flag_spec_GCJ='$convenience'
17366 archive_cmds_need_lc_GCJ=yes
17367 # This is similar to how AIX traditionally builds its shared libraries.
17368 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'
17374 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)'
17375 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17376 hardcode_minus_L_GCJ=yes
17377 # see comment about different semantics on the GNU ld section
17382 export_dynamic_flag_spec_GCJ=-rdynamic
17385 cygwin* | mingw* | pw32*)
17386 # When not using gcc, we currently assume that we are using
17387 # Microsoft Visual C++.
17388 # hardcode_libdir_flag_spec is actually meaningless, as there is
17389 # no search path for DLLs.
17390 hardcode_libdir_flag_spec_GCJ=' '
17391 allow_undefined_flag_GCJ=unsupported
17392 # Tell ltmain to make .lib files, not .a files.
17394 # Tell ltmain to make .dll files, not .so files.
17396 # FIXME: Setting linknames here is a bad hack.
17397 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17398 # The linker will automatically build a .lib file if we build a DLL.
17399 old_archive_From_new_cmds_GCJ='true'
17400 # FIXME: Should let the user specify the lib program.
17401 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17402 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17403 enable_shared_with_static_runtimes_GCJ=yes
17406 darwin* | rhapsody*)
17408 rhapsody* | darwin1.[012])
17409 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17412 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17413 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17415 case ${MACOSX_DEPLOYMENT_TARGET} in
17417 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17420 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17426 archive_cmds_need_lc_GCJ=no
17427 hardcode_direct_GCJ=no
17428 hardcode_automatic_GCJ=yes
17429 hardcode_shlibpath_var_GCJ=unsupported
17430 whole_archive_flag_spec_GCJ=''
17431 link_all_deplibs_GCJ=yes
17432 if test "$GCC" = yes ; then
17433 output_verbose_link_cmd='echo'
17434 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17435 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17436 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17437 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}'
17438 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}'
17440 case $cc_basename in
17442 output_verbose_link_cmd='echo'
17443 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17444 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17445 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17446 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}'
17447 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}'
17457 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17458 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17459 hardcode_shlibpath_var_GCJ=no
17466 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17467 # support. Future versions do this automatically, but an explicit c++rt0.o
17468 # does not break anything, and helps significantly (at the cost of a little
17471 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17472 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17473 hardcode_direct_GCJ=yes
17474 hardcode_shlibpath_var_GCJ=no
17477 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17479 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17480 hardcode_direct_GCJ=yes
17481 hardcode_minus_L_GCJ=yes
17482 hardcode_shlibpath_var_GCJ=no
17485 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17486 freebsd* | kfreebsd*-gnu | dragonfly*)
17487 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17488 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17489 hardcode_direct_GCJ=yes
17490 hardcode_shlibpath_var_GCJ=no
17494 if test "$GCC" = yes; then
17495 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'
17497 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'
17499 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17500 hardcode_libdir_separator_GCJ=:
17501 hardcode_direct_GCJ=yes
17503 # hardcode_minus_L: Not really in the search PATH,
17504 # but as the default location of the library.
17505 hardcode_minus_L_GCJ=yes
17506 export_dynamic_flag_spec_GCJ='${wl}-E'
17510 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17511 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17513 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17515 if test "$with_gnu_ld" = no; then
17516 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17517 hardcode_libdir_separator_GCJ=:
17519 hardcode_direct_GCJ=yes
17520 export_dynamic_flag_spec_GCJ='${wl}-E'
17522 # hardcode_minus_L: Not really in the search PATH,
17523 # but as the default location of the library.
17524 hardcode_minus_L_GCJ=yes
17529 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17532 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17535 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17538 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17544 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17547 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17550 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17554 if test "$with_gnu_ld" = no; then
17555 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17556 hardcode_libdir_separator_GCJ=:
17560 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17561 hardcode_direct_GCJ=no
17562 hardcode_shlibpath_var_GCJ=no
17565 hardcode_direct_GCJ=yes
17566 export_dynamic_flag_spec_GCJ='${wl}-E'
17568 # hardcode_minus_L: Not really in the search PATH,
17569 # but as the default location of the library.
17570 hardcode_minus_L_GCJ=yes
17576 irix5* | irix6* | nonstopux*)
17577 if test "$GCC" = yes; then
17578 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'
17580 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'
17581 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17583 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17584 hardcode_libdir_separator_GCJ=:
17585 link_all_deplibs_GCJ=yes
17589 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17590 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17592 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17594 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17595 hardcode_direct_GCJ=yes
17596 hardcode_shlibpath_var_GCJ=no
17600 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17601 hardcode_direct_GCJ=yes
17602 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17603 hardcode_libdir_separator_GCJ=:
17604 hardcode_shlibpath_var_GCJ=no
17608 hardcode_direct_GCJ=yes
17609 hardcode_shlibpath_var_GCJ=no
17610 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17611 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17612 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17613 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17614 export_dynamic_flag_spec_GCJ='${wl}-E'
17617 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17618 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17619 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17622 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17623 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17630 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17631 hardcode_minus_L_GCJ=yes
17632 allow_undefined_flag_GCJ=unsupported
17633 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'
17634 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17638 if test "$GCC" = yes; then
17639 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17640 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'
17642 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17643 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'
17645 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17646 hardcode_libdir_separator_GCJ=:
17649 osf4* | osf5*) # as osf3* with the addition of -msym flag
17650 if test "$GCC" = yes; then
17651 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17652 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'
17653 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17655 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17656 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'
17657 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~
17658 $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'
17660 # Both c and cxx compiler support -rpath directly
17661 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17663 hardcode_libdir_separator_GCJ=:
17667 no_undefined_flag_GCJ=' -z text'
17668 if test "$GCC" = yes; then
17670 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17671 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17672 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17675 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17676 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17677 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17679 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17680 hardcode_shlibpath_var_GCJ=no
17682 solaris2.[0-5] | solaris2.[0-5].*) ;;
17684 # The compiler driver will combine linker options so we
17685 # cannot just pass the convience library names through
17686 # without $wl, iff we do not link with $LD.
17687 # Luckily, gcc supports the same syntax we need for Sun Studio.
17688 # Supported since Solaris 2.6 (maybe 2.5.1?)
17691 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17693 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' ;;
17696 link_all_deplibs_GCJ=yes
17700 if test "x$host_vendor" = xsequent; then
17701 # Use $CC to link under sequent, because it throws in some extra .o
17702 # files that make .init and .fini sections work.
17703 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17705 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17707 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17708 hardcode_direct_GCJ=yes
17709 hardcode_minus_L_GCJ=yes
17710 hardcode_shlibpath_var_GCJ=no
17714 case $host_vendor in
17716 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17717 hardcode_direct_GCJ=yes # is this really true???
17720 ## LD is ld it makes a PLAMLIB
17721 ## CC just makes a GrossModule.
17722 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17723 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17724 hardcode_direct_GCJ=no
17727 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17728 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17731 runpath_var='LD_RUN_PATH'
17732 hardcode_shlibpath_var_GCJ=no
17736 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17737 hardcode_shlibpath_var_GCJ=no
17738 export_dynamic_flag_spec_GCJ='-Bexport'
17742 if test -d /usr/nec; then
17743 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17744 hardcode_shlibpath_var_GCJ=no
17745 runpath_var=LD_RUN_PATH
17746 hardcode_runpath_var=yes
17751 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17752 no_undefined_flag_GCJ='${wl}-z,text'
17753 archive_cmds_need_lc_GCJ=no
17754 hardcode_shlibpath_var_GCJ=no
17755 runpath_var='LD_RUN_PATH'
17757 if test "$GCC" = yes; then
17758 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17759 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17761 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17762 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17766 sysv5* | sco3.2v5* | sco5v6*)
17767 # Note: We can NOT use -z defs as we might desire, because we do not
17768 # link with -lc, and that would cause any symbols used from libc to
17769 # always be unresolved, which means just about no library would
17770 # ever link correctly. If we're not using GNU ld we use -z text
17771 # though, which does catch some bad symbols but isn't as heavy-handed
17773 no_undefined_flag_GCJ='${wl}-z,text'
17774 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17775 archive_cmds_need_lc_GCJ=no
17776 hardcode_shlibpath_var_GCJ=no
17777 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17778 hardcode_libdir_separator_GCJ=':'
17779 link_all_deplibs_GCJ=yes
17780 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17781 runpath_var='LD_RUN_PATH'
17783 if test "$GCC" = yes; then
17784 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17785 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17787 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17788 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17793 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17794 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17795 hardcode_shlibpath_var_GCJ=no
17804 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17805 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17806 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17809 # Do we need to explicitly link libc?
17811 case "x$archive_cmds_need_lc_GCJ" in
17813 # Assume -lc should be added
17814 archive_cmds_need_lc_GCJ=yes
17816 if test "$enable_shared" = yes && test "$GCC" = yes; then
17817 case $archive_cmds_GCJ in
17819 # FIXME: we may have to deal with multi-command sequences.
17822 # Test whether the compiler implicitly links with -lc since on some
17823 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17824 # to ld, don't add -lc before -lgcc.
17825 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17826 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17828 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17831 (eval $ac_compile) 2>&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); } 2>conftest.err; then
17837 libobjs=conftest.$ac_objext
17839 wl=$lt_prog_compiler_wl_GCJ
17840 pic_flag=$lt_prog_compiler_pic_GCJ
17846 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17847 allow_undefined_flag_GCJ=
17848 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17849 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }
17854 archive_cmds_need_lc_GCJ=no
17856 archive_cmds_need_lc_GCJ=yes
17858 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17860 cat conftest.err 1>&5
17863 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17864 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17871 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17872 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17873 library_names_spec=
17874 libname_spec='lib$name'
17878 postuninstall_cmds=
17882 shlibpath_overrides_runpath=unknown
17884 dynamic_linker="$host_os ld.so"
17885 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17886 if test "$GCC" = yes; then
17887 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17888 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17889 # if the path contains ";" then we assume it to be the separator
17890 # otherwise default to the standard path separator (i.e. ":") - it is
17891 # assumed that no part of a normal pathname contains ";" but that should
17892 # okay in the real world where ";" in dirpaths is itself problematic.
17893 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17895 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17898 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17900 need_lib_prefix=unknown
17901 hardcode_into_libs=no
17903 # when you set need_version to no, make sure it does not cause -set_version
17904 # flags to be left without arguments
17905 need_version=unknown
17910 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17911 shlibpath_var=LIBPATH
17913 # AIX 3 has no versioning support, so we append a major version to the name.
17914 soname_spec='${libname}${release}${shared_ext}$major'
17921 hardcode_into_libs=yes
17922 if test "$host_cpu" = ia64; then
17923 # AIX 5 supports IA64
17924 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17925 shlibpath_var=LD_LIBRARY_PATH
17927 # With GCC up to 2.95.x, collect2 would create an import file
17928 # for dependence libraries. The import file would start with
17929 # the line `#! .'. This would cause the generated library to
17930 # depend on `.', always an invalid library. This was fixed in
17931 # development snapshots of GCC prior to 3.0.
17933 aix4 | aix4.[01] | aix4.[01].*)
17934 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17936 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17939 can_build_shared=no
17943 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17944 # soname into executable. Probably we can add versioning support to
17945 # collect2, so additional links can be useful in future.
17946 if test "$aix_use_runtimelinking" = yes; then
17947 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17948 # instead of lib<name>.a to let people know that these are not
17949 # typical AIX shared libraries.
17950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17952 # We preserve .a as extension for shared libraries through AIX4.2
17953 # and later when we are not doing run time linking.
17954 library_names_spec='${libname}${release}.a $libname.a'
17955 soname_spec='${libname}${release}${shared_ext}$major'
17957 shlibpath_var=LIBPATH
17962 library_names_spec='$libname.ixlibrary $libname.a'
17963 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17964 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'
17968 library_names_spec='${libname}${shared_ext}'
17969 dynamic_linker="$host_os ld.so"
17970 shlibpath_var=LIBRARY_PATH
17976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17977 soname_spec='${libname}${release}${shared_ext}$major'
17978 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17979 shlibpath_var=LD_LIBRARY_PATH
17980 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17981 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17982 # the default ld.so.conf also contains /usr/contrib/lib and
17983 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17984 # libtool to hard-code these into programs
17987 cygwin* | mingw* | pw32*)
17988 version_type=windows
17993 case $GCC,$host_os in
17994 yes,cygwin* | yes,mingw* | yes,pw32*)
17995 library_names_spec='$libname.dll.a'
17996 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17997 postinstall_cmds='base_file=`basename \${file}`~
17998 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17999 dldir=$destdir/`dirname \$dlpath`~
18000 test -d \$dldir || mkdir -p \$dldir~
18001 $install_prog $dir/$dlname \$dldir/$dlname~
18002 chmod a+x \$dldir/$dlname'
18003 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18004 dlpath=$dir/\$dldll~
18006 shlibpath_overrides_runpath=yes
18010 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18011 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18012 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18015 # MinGW DLLs use traditional 'lib' prefix
18016 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18017 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18018 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18019 # It is most probably a Windows format PATH printed by
18020 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18021 # path with ; separators, and with drive letters. We can handle the
18022 # drive letters (cygwin fileutils understands them), so leave them,
18023 # especially as we might pass files found there to a mingw objdump,
18024 # which wouldn't understand a cygwinified path. Ahh.
18025 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18027 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18031 # pw32 DLLs use 'pw' prefix rather than 'lib'
18032 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18038 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18041 dynamic_linker='Win32 ld.exe'
18042 # FIXME: first we should search . and the directory the executable is in
18046 darwin* | rhapsody*)
18047 dynamic_linker="$host_os dyld"
18048 version_type=darwin
18051 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18052 soname_spec='${libname}${release}${major}$shared_ext'
18053 shlibpath_overrides_runpath=yes
18054 shlibpath_var=DYLD_LIBRARY_PATH
18055 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18056 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18057 if test "$GCC" = yes; then
18058 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"`
18060 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18062 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18070 soname_spec='${libname}${release}${shared_ext}$major'
18071 shlibpath_var=LD_LIBRARY_PATH
18082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18083 soname_spec='${libname}${release}${shared_ext}$major'
18084 shlibpath_var=LD_LIBRARY_PATH
18085 shlibpath_overrides_runpath=no
18086 hardcode_into_libs=yes
18087 dynamic_linker='GNU ld.so'
18090 freebsd* | dragonfly*)
18091 # DragonFly does not have aout. When/if they implement a new
18092 # versioning mechanism, adjust this.
18093 if test -x /usr/bin/objformat; then
18094 objformat=`/usr/bin/objformat`
18097 freebsd[123]*) objformat=aout ;;
18098 *) objformat=elf ;;
18101 version_type=freebsd-$objformat
18102 case $version_type in
18104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18109 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18113 shlibpath_var=LD_LIBRARY_PATH
18116 shlibpath_overrides_runpath=yes
18118 freebsd3.[01]* | freebsdelf3.[01]*)
18119 shlibpath_overrides_runpath=yes
18120 hardcode_into_libs=yes
18122 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18123 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18124 shlibpath_overrides_runpath=no
18125 hardcode_into_libs=yes
18127 freebsd*) # from 4.6 on
18128 shlibpath_overrides_runpath=yes
18129 hardcode_into_libs=yes
18138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18139 soname_spec='${libname}${release}${shared_ext}$major'
18140 shlibpath_var=LD_LIBRARY_PATH
18141 hardcode_into_libs=yes
18144 hpux9* | hpux10* | hpux11*)
18145 # Give a soname corresponding to the major version so that dld.sl refuses to
18146 # link against other versions.
18153 hardcode_into_libs=yes
18154 dynamic_linker="$host_os dld.so"
18155 shlibpath_var=LD_LIBRARY_PATH
18156 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18158 soname_spec='${libname}${release}${shared_ext}$major'
18159 if test "X$HPUX_IA64_MODE" = X32; then
18160 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18162 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18164 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18168 hardcode_into_libs=yes
18169 dynamic_linker="$host_os dld.sl"
18170 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18173 soname_spec='${libname}${release}${shared_ext}$major'
18174 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18175 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18179 dynamic_linker="$host_os dld.sl"
18180 shlibpath_var=SHLIB_PATH
18181 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18183 soname_spec='${libname}${release}${shared_ext}$major'
18186 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18187 postinstall_cmds='chmod 555 $lib'
18194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18195 soname_spec='${libname}${release}${shared_ext}$major'
18196 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18197 shlibpath_var=LD_LIBRARY_PATH
18198 shlibpath_overrides_runpath=no
18199 hardcode_into_libs=yes
18202 irix5* | irix6* | nonstopux*)
18204 nonstopux*) version_type=nonstopux ;;
18206 if test "$lt_cv_prog_gnu_ld" = yes; then
18214 soname_spec='${libname}${release}${shared_ext}$major'
18215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18217 irix5* | nonstopux*)
18218 libsuff= shlibsuff=
18221 case $LD in # libtool.m4 will add one of these switches to LD
18222 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18223 libsuff= shlibsuff= libmagic=32-bit;;
18224 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18225 libsuff=32 shlibsuff=N32 libmagic=N32;;
18226 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18227 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18228 *) libsuff= shlibsuff= libmagic=never-match;;
18232 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18233 shlibpath_overrides_runpath=no
18234 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18235 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18236 hardcode_into_libs=yes
18239 # No shared lib support for Linux oldld, aout, or coff.
18240 linux*oldld* | linux*aout* | linux*coff*)
18244 # This must be Linux ELF.
18249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18250 soname_spec='${libname}${release}${shared_ext}$major'
18251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18252 shlibpath_var=LD_LIBRARY_PATH
18253 shlibpath_overrides_runpath=no
18254 # This implies no fast_install, which is unacceptable.
18255 # Some rework will be needed to allow for fast_install
18256 # before this can be enabled.
18257 hardcode_into_libs=yes
18259 # Append ld.so.conf contents to the search path
18260 if test -f /etc/ld.so.conf; then
18261 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' ' '`
18262 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18265 # We used to test for /lib/ld.so.1 and disable shared libraries on
18266 # powerpc, because MkLinux only supported shared libraries with the
18267 # GNU dynamic linker. Since this was broken with cross compilers,
18268 # most powerpc-linux boxes support dynamic linking these days and
18269 # people can always --disable-shared, the test was removed, and we
18270 # assume the GNU/Linux dynamic linker is in use.
18271 dynamic_linker='GNU/Linux ld.so'
18278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18279 soname_spec='${libname}${release}${shared_ext}$major'
18280 shlibpath_var=LD_LIBRARY_PATH
18281 shlibpath_overrides_runpath=no
18282 hardcode_into_libs=yes
18283 dynamic_linker='GNU ld.so'
18290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18293 dynamic_linker='NetBSD (a.out) ld.so'
18295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18296 soname_spec='${libname}${release}${shared_ext}$major'
18297 dynamic_linker='NetBSD ld.elf_so'
18299 shlibpath_var=LD_LIBRARY_PATH
18300 shlibpath_overrides_runpath=yes
18301 hardcode_into_libs=yes
18306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18307 shlibpath_var=LD_LIBRARY_PATH
18308 shlibpath_overrides_runpath=yes
18315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18316 soname_spec='${libname}${release}${shared_ext}$major'
18317 shlibpath_var=LD_LIBRARY_PATH
18318 shlibpath_overrides_runpath=yes
18323 sys_lib_dlsearch_path_spec="/usr/lib"
18325 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18327 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18328 *) need_version=no ;;
18330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18331 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18332 shlibpath_var=LD_LIBRARY_PATH
18333 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18335 openbsd2.[89] | openbsd2.[89].*)
18336 shlibpath_overrides_runpath=no
18339 shlibpath_overrides_runpath=yes
18343 shlibpath_overrides_runpath=yes
18348 libname_spec='$name'
18351 library_names_spec='$libname${shared_ext} $libname.a'
18352 dynamic_linker='OS/2 ld.exe'
18353 shlibpath_var=LIBPATH
18356 osf3* | osf4* | osf5*)
18360 soname_spec='${libname}${release}${shared_ext}$major'
18361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18362 shlibpath_var=LD_LIBRARY_PATH
18363 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18364 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18372 soname_spec='${libname}${release}${shared_ext}$major'
18373 shlibpath_var=LD_LIBRARY_PATH
18374 shlibpath_overrides_runpath=yes
18375 hardcode_into_libs=yes
18376 # ldd complains unless libraries are executable
18377 postinstall_cmds='chmod +x $lib'
18382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18383 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18384 shlibpath_var=LD_LIBRARY_PATH
18385 shlibpath_overrides_runpath=yes
18386 if test "$with_gnu_ld" = yes; then
18394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18395 soname_spec='${libname}${release}${shared_ext}$major'
18396 shlibpath_var=LD_LIBRARY_PATH
18397 case $host_vendor in
18399 shlibpath_overrides_runpath=no
18401 export_dynamic_flag_spec='${wl}-Blargedynsym'
18402 runpath_var=LD_RUN_PATH
18410 shlibpath_overrides_runpath=no
18411 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18417 if test -d /usr/nec ;then
18419 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18420 soname_spec='$libname${shared_ext}.$major'
18421 shlibpath_var=LD_LIBRARY_PATH
18425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18426 version_type=freebsd-elf
18429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18430 soname_spec='${libname}${release}${shared_ext}$major'
18431 shlibpath_var=LD_LIBRARY_PATH
18432 hardcode_into_libs=yes
18433 if test "$with_gnu_ld" = yes; then
18434 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18435 shlibpath_overrides_runpath=no
18437 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18438 shlibpath_overrides_runpath=yes
18441 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18445 sys_lib_dlsearch_path_spec='/usr/lib'
18450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18451 soname_spec='${libname}${release}${shared_ext}$major'
18452 shlibpath_var=LD_LIBRARY_PATH
18459 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18460 echo "${ECHO_T}$dynamic_linker" >&6; }
18461 test "$dynamic_linker" = no && can_build_shared=no
18463 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18464 if test "$GCC" = yes; then
18465 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18468 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18469 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18470 hardcode_action_GCJ=
18471 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18472 test -n "$runpath_var_GCJ" || \
18473 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18475 # We can hardcode non-existant directories.
18476 if test "$hardcode_direct_GCJ" != no &&
18477 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18478 # have to relink, otherwise we might link with an installed library
18479 # when we should be linking with a yet-to-be-installed one
18480 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18481 test "$hardcode_minus_L_GCJ" != no; then
18482 # Linking always hardcodes the temporary library directory.
18483 hardcode_action_GCJ=relink
18485 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18486 hardcode_action_GCJ=immediate
18489 # We cannot hardcode anything, or else we can only hardcode existing
18491 hardcode_action_GCJ=unsupported
18493 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18494 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18496 if test "$hardcode_action_GCJ" = relink; then
18497 # Fast installation is not supported
18498 enable_fast_install=no
18499 elif test "$shlibpath_overrides_runpath" = yes ||
18500 test "$enable_shared" = no; then
18501 # Fast installation is not necessary
18502 enable_fast_install=needless
18506 # The else clause should only fire when bootstrapping the
18507 # libtool distribution, otherwise you forgot to ship ltmain.sh
18508 # with your package, and you will get complaints that there are
18509 # no rules to generate ltmain.sh.
18510 if test -f "$ltmain"; then
18511 # See if we are running on zsh, and set the options which allow our commands through
18512 # without removal of \ escapes.
18513 if test -n "${ZSH_VERSION+set}" ; then
18514 setopt NO_GLOB_SUBST
18516 # Now quote all the things that may contain metacharacters while being
18517 # careful not to overquote the AC_SUBSTed values. We take copies of the
18518 # variables and quote the copies for generation of the libtool script.
18519 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18521 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18522 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18523 deplibs_check_method reload_flag reload_cmds need_locks \
18524 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18525 lt_cv_sys_global_symbol_to_c_name_address \
18526 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18527 old_postinstall_cmds old_postuninstall_cmds \
18531 lt_prog_compiler_wl_GCJ \
18532 lt_prog_compiler_pic_GCJ \
18533 lt_prog_compiler_static_GCJ \
18534 lt_prog_compiler_no_builtin_flag_GCJ \
18535 export_dynamic_flag_spec_GCJ \
18536 thread_safe_flag_spec_GCJ \
18537 whole_archive_flag_spec_GCJ \
18538 enable_shared_with_static_runtimes_GCJ \
18539 old_archive_cmds_GCJ \
18540 old_archive_from_new_cmds_GCJ \
18541 predep_objects_GCJ \
18542 postdep_objects_GCJ \
18545 compiler_lib_search_path_GCJ \
18547 archive_expsym_cmds_GCJ \
18548 postinstall_cmds_GCJ \
18549 postuninstall_cmds_GCJ \
18550 old_archive_from_expsyms_cmds_GCJ \
18551 allow_undefined_flag_GCJ \
18552 no_undefined_flag_GCJ \
18553 export_symbols_cmds_GCJ \
18554 hardcode_libdir_flag_spec_GCJ \
18555 hardcode_libdir_flag_spec_ld_GCJ \
18556 hardcode_libdir_separator_GCJ \
18557 hardcode_automatic_GCJ \
18559 module_expsym_cmds_GCJ \
18560 lt_cv_prog_compiler_c_o_GCJ \
18561 exclude_expsyms_GCJ \
18562 include_expsyms_GCJ; do
18565 old_archive_cmds_GCJ | \
18566 old_archive_from_new_cmds_GCJ | \
18567 archive_cmds_GCJ | \
18568 archive_expsym_cmds_GCJ | \
18569 module_cmds_GCJ | \
18570 module_expsym_cmds_GCJ | \
18571 old_archive_from_expsyms_cmds_GCJ | \
18572 export_symbols_cmds_GCJ | \
18573 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18574 postinstall_cmds | postuninstall_cmds | \
18575 old_postinstall_cmds | old_postuninstall_cmds | \
18576 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18577 # Double-quote double-evaled strings.
18578 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18581 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18587 *'\$0 --fallback-echo"')
18588 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18594 cat <<__EOF__ >> "$cfgfile"
18595 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18597 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18599 # Shell to use when invoking shell scripts.
18602 # Whether or not to build shared libraries.
18603 build_libtool_libs=$enable_shared
18605 # Whether or not to build static libraries.
18606 build_old_libs=$enable_static
18608 # Whether or not to add -lc for building shared libraries.
18609 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18611 # Whether or not to disallow shared libs when runtime libs are static
18612 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18614 # Whether or not to optimize for fast installation.
18615 fast_install=$enable_fast_install
18618 host_alias=$host_alias
18622 # The build system.
18623 build_alias=$build_alias
18627 # An echo program that does not interpret backslashes.
18632 AR_FLAGS=$lt_AR_FLAGS
18637 # LTCC compiler flags.
18638 LTCFLAGS=$lt_LTCFLAGS
18640 # A language-specific compiler.
18641 CC=$lt_compiler_GCJ
18643 # Is the compiler the GNU C compiler?
18649 # The linker used to build libraries.
18652 # Whether we need hard or soft links.
18655 # A BSD-compatible nm program.
18658 # A symbol stripping program
18661 # Used to examine libraries when file_magic_cmd begins "file"
18662 MAGIC_CMD=$MAGIC_CMD
18664 # Used on cygwin: DLL creation program.
18667 # Used on cygwin: object dumper.
18670 # Used on cygwin: assembler.
18673 # The name of the directory that contains temporary libtool files.
18676 # How to create reloadable object files.
18677 reload_flag=$lt_reload_flag
18678 reload_cmds=$lt_reload_cmds
18680 # How to pass a linker flag through the compiler.
18681 wl=$lt_lt_prog_compiler_wl_GCJ
18683 # Object file suffix (normally "o").
18684 objext="$ac_objext"
18686 # Old archive suffix (normally "a").
18689 # Shared library suffix (normally ".so").
18690 shrext_cmds='$shrext_cmds'
18692 # Executable file suffix (normally "").
18695 # Additional compiler flags for building library objects.
18696 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18699 # What is the maximum length of a command?
18700 max_cmd_len=$lt_cv_sys_max_cmd_len
18702 # Does compiler simultaneously support -c and -o options?
18703 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18705 # Must we lock files when doing compilation?
18706 need_locks=$lt_need_locks
18708 # Do we need the lib prefix for modules?
18709 need_lib_prefix=$need_lib_prefix
18711 # Do we need a version for libraries?
18712 need_version=$need_version
18714 # Whether dlopen is supported.
18715 dlopen_support=$enable_dlopen
18717 # Whether dlopen of programs is supported.
18718 dlopen_self=$enable_dlopen_self
18720 # Whether dlopen of statically linked programs is supported.
18721 dlopen_self_static=$enable_dlopen_self_static
18723 # Compiler flag to prevent dynamic linking.
18724 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18726 # Compiler flag to turn off builtin functions.
18727 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18729 # Compiler flag to allow reflexive dlopens.
18730 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18732 # Compiler flag to generate shared objects directly from archives.
18733 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18735 # Compiler flag to generate thread-safe objects.
18736 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18738 # Library versioning type.
18739 version_type=$version_type
18741 # Format of library name prefix.
18742 libname_spec=$lt_libname_spec
18744 # List of archive names. First name is the real one, the rest are links.
18745 # The last name is the one that the linker finds with -lNAME.
18746 library_names_spec=$lt_library_names_spec
18748 # The coded name of the library, if different from the real name.
18749 soname_spec=$lt_soname_spec
18751 # Commands used to build and install an old-style archive.
18753 old_archive_cmds=$lt_old_archive_cmds_GCJ
18754 old_postinstall_cmds=$lt_old_postinstall_cmds
18755 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18757 # Create an old-style archive from a shared archive.
18758 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18760 # Create a temporary old-style archive to link instead of a shared archive.
18761 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18763 # Commands used to build and install a shared archive.
18764 archive_cmds=$lt_archive_cmds_GCJ
18765 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18766 postinstall_cmds=$lt_postinstall_cmds
18767 postuninstall_cmds=$lt_postuninstall_cmds
18769 # Commands used to build a loadable module (assumed same as above if empty)
18770 module_cmds=$lt_module_cmds_GCJ
18771 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18773 # Commands to strip libraries.
18774 old_striplib=$lt_old_striplib
18775 striplib=$lt_striplib
18777 # Dependencies to place before the objects being linked to create a
18779 predep_objects=$lt_predep_objects_GCJ
18781 # Dependencies to place after the objects being linked to create a
18783 postdep_objects=$lt_postdep_objects_GCJ
18785 # Dependencies to place before the objects being linked to create a
18787 predeps=$lt_predeps_GCJ
18789 # Dependencies to place after the objects being linked to create a
18791 postdeps=$lt_postdeps_GCJ
18793 # The library search path used internally by the compiler when linking
18794 # a shared library.
18795 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18797 # Method to check whether dependent libraries are shared objects.
18798 deplibs_check_method=$lt_deplibs_check_method
18800 # Command to use when deplibs_check_method == file_magic.
18801 file_magic_cmd=$lt_file_magic_cmd
18803 # Flag that allows shared libraries with undefined symbols to be built.
18804 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18806 # Flag that forces no undefined symbols.
18807 no_undefined_flag=$lt_no_undefined_flag_GCJ
18809 # Commands used to finish a libtool library installation in a directory.
18810 finish_cmds=$lt_finish_cmds
18812 # Same as above, but a single script fragment to be evaled but not shown.
18813 finish_eval=$lt_finish_eval
18815 # Take the output of nm and produce a listing of raw symbols and C names.
18816 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18818 # Transform the output of nm in a proper C declaration
18819 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18821 # Transform the output of nm in a C name address pair
18822 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18824 # This is the shared library runtime path variable.
18825 runpath_var=$runpath_var
18827 # This is the shared library path variable.
18828 shlibpath_var=$shlibpath_var
18830 # Is shlibpath searched before the hard-coded library search path?
18831 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18833 # How to hardcode a shared library path into an executable.
18834 hardcode_action=$hardcode_action_GCJ
18836 # Whether we should hardcode library paths into libraries.
18837 hardcode_into_libs=$hardcode_into_libs
18839 # Flag to hardcode \$libdir into a binary during linking.
18840 # This must work even if \$libdir does not exist.
18841 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18843 # If ld is used when linking, flag to hardcode \$libdir into
18844 # a binary during linking. This must work even if \$libdir does
18846 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18848 # Whether we need a single -rpath flag with a separated argument.
18849 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18851 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18852 # resulting binary.
18853 hardcode_direct=$hardcode_direct_GCJ
18855 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18856 # resulting binary.
18857 hardcode_minus_L=$hardcode_minus_L_GCJ
18859 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18860 # the resulting binary.
18861 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18863 # Set to yes if building a shared library automatically hardcodes DIR into the library
18864 # and all subsequent libraries and executables linked against it.
18865 hardcode_automatic=$hardcode_automatic_GCJ
18867 # Variables whose values should be saved in libtool wrapper scripts and
18868 # restored at relink time.
18869 variables_saved_for_relink="$variables_saved_for_relink"
18871 # Whether libtool must link a program against all its dependency libraries.
18872 link_all_deplibs=$link_all_deplibs_GCJ
18874 # Compile-time system search path for libraries
18875 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18877 # Run-time system search path for libraries
18878 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18880 # Fix the shell variable \$srcfile for the compiler.
18881 fix_srcfile_path="$fix_srcfile_path_GCJ"
18883 # Set to yes if exported symbols are required.
18884 always_export_symbols=$always_export_symbols_GCJ
18886 # The commands to list exported symbols.
18887 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18889 # The commands to extract the exported symbol list from a shared archive.
18890 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18892 # Symbols that should not be listed in the preloaded symbols.
18893 exclude_expsyms=$lt_exclude_expsyms_GCJ
18895 # Symbols that must always be exported.
18896 include_expsyms=$lt_include_expsyms_GCJ
18898 # ### END LIBTOOL TAG CONFIG: $tagname
18904 # If there is no Makefile yet, we rely on a make rule to execute
18905 # `config.status --recheck' to rerun these tests and create the
18906 # libtool script then.
18907 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18908 if test -f "$ltmain_in"; then
18909 test -f Makefile && make "$ltmain"
18915 ac_cpp='$CPP $CPPFLAGS'
18916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18930 # Source file extension for RC test sources.
18933 # Object file extension for compiled RC test sources.
18937 # Code to be used in simple compile tests
18938 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18940 # Code to be used in simple link tests
18941 lt_simple_link_test_code="$lt_simple_compile_test_code"
18943 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18945 # If no C compiler was specified, use CC.
18948 # If no C compiler flags were specified, use CFLAGS.
18949 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18951 # Allow CC to be a program name with arguments.
18955 # save warnings/boilerplate of simple test code
18956 ac_outfile=conftest.$ac_objext
18957 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18958 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18959 _lt_compiler_boilerplate=`cat conftest.err`
18962 ac_outfile=conftest.$ac_objext
18963 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18964 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18965 _lt_linker_boilerplate=`cat conftest.err`
18969 # Allow CC to be a program name with arguments.
18974 for cc_temp in $compiler""; do
18976 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18977 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18982 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18984 lt_cv_prog_compiler_c_o_RC=yes
18986 # The else clause should only fire when bootstrapping the
18987 # libtool distribution, otherwise you forgot to ship ltmain.sh
18988 # with your package, and you will get complaints that there are
18989 # no rules to generate ltmain.sh.
18990 if test -f "$ltmain"; then
18991 # See if we are running on zsh, and set the options which allow our commands through
18992 # without removal of \ escapes.
18993 if test -n "${ZSH_VERSION+set}" ; then
18994 setopt NO_GLOB_SUBST
18996 # Now quote all the things that may contain metacharacters while being
18997 # careful not to overquote the AC_SUBSTed values. We take copies of the
18998 # variables and quote the copies for generation of the libtool script.
18999 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19001 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19002 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19003 deplibs_check_method reload_flag reload_cmds need_locks \
19004 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19005 lt_cv_sys_global_symbol_to_c_name_address \
19006 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19007 old_postinstall_cmds old_postuninstall_cmds \
19011 lt_prog_compiler_wl_RC \
19012 lt_prog_compiler_pic_RC \
19013 lt_prog_compiler_static_RC \
19014 lt_prog_compiler_no_builtin_flag_RC \
19015 export_dynamic_flag_spec_RC \
19016 thread_safe_flag_spec_RC \
19017 whole_archive_flag_spec_RC \
19018 enable_shared_with_static_runtimes_RC \
19019 old_archive_cmds_RC \
19020 old_archive_from_new_cmds_RC \
19021 predep_objects_RC \
19022 postdep_objects_RC \
19025 compiler_lib_search_path_RC \
19027 archive_expsym_cmds_RC \
19028 postinstall_cmds_RC \
19029 postuninstall_cmds_RC \
19030 old_archive_from_expsyms_cmds_RC \
19031 allow_undefined_flag_RC \
19032 no_undefined_flag_RC \
19033 export_symbols_cmds_RC \
19034 hardcode_libdir_flag_spec_RC \
19035 hardcode_libdir_flag_spec_ld_RC \
19036 hardcode_libdir_separator_RC \
19037 hardcode_automatic_RC \
19039 module_expsym_cmds_RC \
19040 lt_cv_prog_compiler_c_o_RC \
19041 exclude_expsyms_RC \
19042 include_expsyms_RC; do
19045 old_archive_cmds_RC | \
19046 old_archive_from_new_cmds_RC | \
19047 archive_cmds_RC | \
19048 archive_expsym_cmds_RC | \
19050 module_expsym_cmds_RC | \
19051 old_archive_from_expsyms_cmds_RC | \
19052 export_symbols_cmds_RC | \
19053 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19054 postinstall_cmds | postuninstall_cmds | \
19055 old_postinstall_cmds | old_postuninstall_cmds | \
19056 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19057 # Double-quote double-evaled strings.
19058 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19061 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19067 *'\$0 --fallback-echo"')
19068 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19074 cat <<__EOF__ >> "$cfgfile"
19075 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19077 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19079 # Shell to use when invoking shell scripts.
19082 # Whether or not to build shared libraries.
19083 build_libtool_libs=$enable_shared
19085 # Whether or not to build static libraries.
19086 build_old_libs=$enable_static
19088 # Whether or not to add -lc for building shared libraries.
19089 build_libtool_need_lc=$archive_cmds_need_lc_RC
19091 # Whether or not to disallow shared libs when runtime libs are static
19092 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19094 # Whether or not to optimize for fast installation.
19095 fast_install=$enable_fast_install
19098 host_alias=$host_alias
19102 # The build system.
19103 build_alias=$build_alias
19107 # An echo program that does not interpret backslashes.
19112 AR_FLAGS=$lt_AR_FLAGS
19117 # LTCC compiler flags.
19118 LTCFLAGS=$lt_LTCFLAGS
19120 # A language-specific compiler.
19123 # Is the compiler the GNU C compiler?
19129 # The linker used to build libraries.
19132 # Whether we need hard or soft links.
19135 # A BSD-compatible nm program.
19138 # A symbol stripping program
19141 # Used to examine libraries when file_magic_cmd begins "file"
19142 MAGIC_CMD=$MAGIC_CMD
19144 # Used on cygwin: DLL creation program.
19147 # Used on cygwin: object dumper.
19150 # Used on cygwin: assembler.
19153 # The name of the directory that contains temporary libtool files.
19156 # How to create reloadable object files.
19157 reload_flag=$lt_reload_flag
19158 reload_cmds=$lt_reload_cmds
19160 # How to pass a linker flag through the compiler.
19161 wl=$lt_lt_prog_compiler_wl_RC
19163 # Object file suffix (normally "o").
19164 objext="$ac_objext"
19166 # Old archive suffix (normally "a").
19169 # Shared library suffix (normally ".so").
19170 shrext_cmds='$shrext_cmds'
19172 # Executable file suffix (normally "").
19175 # Additional compiler flags for building library objects.
19176 pic_flag=$lt_lt_prog_compiler_pic_RC
19179 # What is the maximum length of a command?
19180 max_cmd_len=$lt_cv_sys_max_cmd_len
19182 # Does compiler simultaneously support -c and -o options?
19183 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19185 # Must we lock files when doing compilation?
19186 need_locks=$lt_need_locks
19188 # Do we need the lib prefix for modules?
19189 need_lib_prefix=$need_lib_prefix
19191 # Do we need a version for libraries?
19192 need_version=$need_version
19194 # Whether dlopen is supported.
19195 dlopen_support=$enable_dlopen
19197 # Whether dlopen of programs is supported.
19198 dlopen_self=$enable_dlopen_self
19200 # Whether dlopen of statically linked programs is supported.
19201 dlopen_self_static=$enable_dlopen_self_static
19203 # Compiler flag to prevent dynamic linking.
19204 link_static_flag=$lt_lt_prog_compiler_static_RC
19206 # Compiler flag to turn off builtin functions.
19207 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19209 # Compiler flag to allow reflexive dlopens.
19210 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19212 # Compiler flag to generate shared objects directly from archives.
19213 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19215 # Compiler flag to generate thread-safe objects.
19216 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19218 # Library versioning type.
19219 version_type=$version_type
19221 # Format of library name prefix.
19222 libname_spec=$lt_libname_spec
19224 # List of archive names. First name is the real one, the rest are links.
19225 # The last name is the one that the linker finds with -lNAME.
19226 library_names_spec=$lt_library_names_spec
19228 # The coded name of the library, if different from the real name.
19229 soname_spec=$lt_soname_spec
19231 # Commands used to build and install an old-style archive.
19233 old_archive_cmds=$lt_old_archive_cmds_RC
19234 old_postinstall_cmds=$lt_old_postinstall_cmds
19235 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19237 # Create an old-style archive from a shared archive.
19238 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19240 # Create a temporary old-style archive to link instead of a shared archive.
19241 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19243 # Commands used to build and install a shared archive.
19244 archive_cmds=$lt_archive_cmds_RC
19245 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19246 postinstall_cmds=$lt_postinstall_cmds
19247 postuninstall_cmds=$lt_postuninstall_cmds
19249 # Commands used to build a loadable module (assumed same as above if empty)
19250 module_cmds=$lt_module_cmds_RC
19251 module_expsym_cmds=$lt_module_expsym_cmds_RC
19253 # Commands to strip libraries.
19254 old_striplib=$lt_old_striplib
19255 striplib=$lt_striplib
19257 # Dependencies to place before the objects being linked to create a
19259 predep_objects=$lt_predep_objects_RC
19261 # Dependencies to place after the objects being linked to create a
19263 postdep_objects=$lt_postdep_objects_RC
19265 # Dependencies to place before the objects being linked to create a
19267 predeps=$lt_predeps_RC
19269 # Dependencies to place after the objects being linked to create a
19271 postdeps=$lt_postdeps_RC
19273 # The library search path used internally by the compiler when linking
19274 # a shared library.
19275 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19277 # Method to check whether dependent libraries are shared objects.
19278 deplibs_check_method=$lt_deplibs_check_method
19280 # Command to use when deplibs_check_method == file_magic.
19281 file_magic_cmd=$lt_file_magic_cmd
19283 # Flag that allows shared libraries with undefined symbols to be built.
19284 allow_undefined_flag=$lt_allow_undefined_flag_RC
19286 # Flag that forces no undefined symbols.
19287 no_undefined_flag=$lt_no_undefined_flag_RC
19289 # Commands used to finish a libtool library installation in a directory.
19290 finish_cmds=$lt_finish_cmds
19292 # Same as above, but a single script fragment to be evaled but not shown.
19293 finish_eval=$lt_finish_eval
19295 # Take the output of nm and produce a listing of raw symbols and C names.
19296 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19298 # Transform the output of nm in a proper C declaration
19299 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19301 # Transform the output of nm in a C name address pair
19302 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19304 # This is the shared library runtime path variable.
19305 runpath_var=$runpath_var
19307 # This is the shared library path variable.
19308 shlibpath_var=$shlibpath_var
19310 # Is shlibpath searched before the hard-coded library search path?
19311 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19313 # How to hardcode a shared library path into an executable.
19314 hardcode_action=$hardcode_action_RC
19316 # Whether we should hardcode library paths into libraries.
19317 hardcode_into_libs=$hardcode_into_libs
19319 # Flag to hardcode \$libdir into a binary during linking.
19320 # This must work even if \$libdir does not exist.
19321 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19323 # If ld is used when linking, flag to hardcode \$libdir into
19324 # a binary during linking. This must work even if \$libdir does
19326 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19328 # Whether we need a single -rpath flag with a separated argument.
19329 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19331 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19332 # resulting binary.
19333 hardcode_direct=$hardcode_direct_RC
19335 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19336 # resulting binary.
19337 hardcode_minus_L=$hardcode_minus_L_RC
19339 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19340 # the resulting binary.
19341 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19343 # Set to yes if building a shared library automatically hardcodes DIR into the library
19344 # and all subsequent libraries and executables linked against it.
19345 hardcode_automatic=$hardcode_automatic_RC
19347 # Variables whose values should be saved in libtool wrapper scripts and
19348 # restored at relink time.
19349 variables_saved_for_relink="$variables_saved_for_relink"
19351 # Whether libtool must link a program against all its dependency libraries.
19352 link_all_deplibs=$link_all_deplibs_RC
19354 # Compile-time system search path for libraries
19355 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19357 # Run-time system search path for libraries
19358 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19360 # Fix the shell variable \$srcfile for the compiler.
19361 fix_srcfile_path="$fix_srcfile_path_RC"
19363 # Set to yes if exported symbols are required.
19364 always_export_symbols=$always_export_symbols_RC
19366 # The commands to list exported symbols.
19367 export_symbols_cmds=$lt_export_symbols_cmds_RC
19369 # The commands to extract the exported symbol list from a shared archive.
19370 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19372 # Symbols that should not be listed in the preloaded symbols.
19373 exclude_expsyms=$lt_exclude_expsyms_RC
19375 # Symbols that must always be exported.
19376 include_expsyms=$lt_include_expsyms_RC
19378 # ### END LIBTOOL TAG CONFIG: $tagname
19384 # If there is no Makefile yet, we rely on a make rule to execute
19385 # `config.status --recheck' to rerun these tests and create the
19386 # libtool script then.
19387 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19388 if test -f "$ltmain_in"; then
19389 test -f Makefile && make "$ltmain"
19395 ac_cpp='$CPP $CPPFLAGS'
19396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19405 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19406 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19407 { (exit 1); exit 1; }; }
19411 # Append the new tag name to the list of available tags.
19412 if test -n "$tagname" ; then
19413 available_tags="$available_tags $tagname"
19419 # Now substitute the updated list of available tags.
19420 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19421 mv "${ofile}T" "$ofile"
19425 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19426 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19427 { (exit 1); exit 1; }; }
19433 # This can be used to rebuild libtool when needed
19434 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19436 # Always use our own libtool.
19437 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19439 # Prevent multiple expansion
19452 # Check whether --with-system-libtool was given.
19453 if test "${with_system_libtool+set}" = set; then
19454 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
19455 set dummy libtool; ac_word=$2
19456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19458 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19459 echo $ECHO_N "(cached) $ECHO_C" >&6
19463 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19467 as_dummy="$PATH:/usr/local/bin"
19468 for as_dir in $as_dummy
19471 test -z "$as_dir" && as_dir=.
19472 for ac_exec_ext in '' $ac_executable_extensions; do
19473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19474 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19485 LIBTOOL=$ac_cv_path_LIBTOOL
19486 if test -n "$LIBTOOL"; then
19487 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19488 echo "${ECHO_T}$LIBTOOL" >&6; }
19490 { echo "$as_me:$LINENO: result: no" >&5
19491 echo "${ECHO_T}no" >&6; }
19497 LIBTOOL="`pwd`/libtool"
19517 # Check whether --enable-strict-dependencies was given.
19518 if test "${enable_strict_dependencies+set}" = set; then
19519 enableval=$enable_strict_dependencies;
19523 docdir='${datadir}/doc/freeradius'
19524 { echo "$as_me:$LINENO: checking docdir" >&5
19525 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
19527 # Check whether --with-docdir was given.
19528 if test "${with_docdir+set}" = set; then
19529 withval=$with_docdir; case "$withval" in
19535 [\\/$]* | ?:[\\/]* )
19539 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19540 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19541 { (exit 1); exit 1; }; }
19548 { echo "$as_me:$LINENO: result: $docdir" >&5
19549 echo "${ECHO_T}$docdir" >&6; }
19550 if test "x$docdir" = xno; then
19551 { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
19552 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19555 logdir='${localstatedir}/log/radius'
19556 { echo "$as_me:$LINENO: checking logdir" >&5
19557 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
19559 # Check whether --with-logdir was given.
19560 if test "${with_logdir+set}" = set; then
19561 withval=$with_logdir; case "$withval" in
19563 { { echo "$as_me:$LINENO: error: Need logdir" >&5
19564 echo "$as_me: error: Need logdir" >&2;}
19565 { (exit 1); exit 1; }; }
19569 [\\/$]* | ?:[\\/]* )
19573 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19574 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19575 { (exit 1); exit 1; }; }
19582 { echo "$as_me:$LINENO: result: $logdir" >&5
19583 echo "${ECHO_T}$logdir" >&6; }
19585 radacctdir='${logdir}/radacct'
19586 { echo "$as_me:$LINENO: checking radacctdir" >&5
19587 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
19589 # Check whether --with-radacctdir was given.
19590 if test "${with_radacctdir+set}" = set; then
19591 withval=$with_radacctdir; case "$withval" in
19593 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19594 echo "$as_me: error: Need radacctdir" >&2;}
19595 { (exit 1); exit 1; }; }
19599 [\\/$]* | ?:[\\/]* )
19600 radacctdir="$withval"
19603 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19604 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19605 { (exit 1); exit 1; }; }
19612 { echo "$as_me:$LINENO: result: $radacctdir" >&5
19613 echo "${ECHO_T}$radacctdir" >&6; }
19615 raddbdir='${sysconfdir}/raddb'
19616 { echo "$as_me:$LINENO: checking raddbdir" >&5
19617 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
19619 # Check whether --with-raddbdir was given.
19620 if test "${with_raddbdir+set}" = set; then
19621 withval=$with_raddbdir; case "$withval" in
19623 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19624 echo "$as_me: error: Need raddbdir" >&2;}
19625 { (exit 1); exit 1; }; }
19629 [\\/$]* | ?:[\\/]* )
19630 raddbdir="$withval"
19633 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19634 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19635 { (exit 1); exit 1; }; }
19642 { echo "$as_me:$LINENO: result: $raddbdir" >&5
19643 echo "${ECHO_T}$raddbdir" >&6; }
19647 # Check whether --with-ascend-binary was given.
19648 if test "${with_ascend_binary+set}" = set; then
19649 withval=$with_ascend_binary; case "$withval" in
19658 if test "X$ASCEND_BINARY" = "Xyes"; then
19660 cat >>confdefs.h <<\_ACEOF
19661 #define ASCEND_BINARY
19668 # Check whether --with-threads was given.
19669 if test "${with_threads+set}" = set; then
19670 withval=$with_threads; case "$withval" in
19682 # Check whether --with-snmp was given.
19683 if test "${with_snmp+set}" = set; then
19684 withval=$with_snmp; case "$withval" in
19695 # Check whether --with-snmp-include-dir was given.
19696 if test "${with_snmp_include_dir+set}" = set; then
19697 withval=$with_snmp_include_dir; case "$withval" in
19707 # Check whether --with-vmps was given.
19708 if test "${with_vmps+set}" = set; then
19709 withval=$with_vmps; case "$withval" in
19718 if test "x$WITH_VMPS" = "xyes"; then
19720 cat >>confdefs.h <<\_ACEOF
19729 # Check whether --with-static_modules was given.
19730 if test "${with_static_modules+set}" = set; then
19731 withval=$with_static_modules;
19732 for i in $withval; do
19733 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19741 # Check whether --with-modules was given.
19742 if test "${with_modules+set}" = set; then
19743 withval=$with_modules;
19744 for i in $withval; do
19745 MODULES="$MODULES $i"
19751 # Check whether --enable-developer was given.
19752 if test "${enable_developer+set}" = set; then
19753 enableval=$enable_developer; case "$enableval" in
19764 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19770 # Check whether --with-experimental-modules was given.
19771 if test "${with_experimental_modules+set}" = set; then
19772 withval=$with_experimental_modules; case "$withval" in
19782 OPENSSL_INCLUDE_DIR=
19784 # Check whether --with-openssl-includes was given.
19785 if test "${with_openssl_includes+set}" = set; then
19786 withval=$with_openssl_includes; case "$withval" in
19787 *) OPENSSL_INCLUDE_DIR="$withval"
19796 # Check whether --with-openssl-libraries was given.
19797 if test "${with_openssl_libraries+set}" = set; then
19798 withval=$with_openssl_libraries; case "$withval" in
19799 *) OPENSSL_LIB_DIR="$withval"
19808 # Check whether --with-rlm-FOO-lib-dir was given.
19809 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19810 withval=$with_rlm_FOO_lib_dir; case "$withval" in
19819 # Check whether --with-rlm-FOO-include-dir was given.
19820 if test "${with_rlm_FOO_include_dir+set}" = set; then
19821 withval=$with_rlm_FOO_include_dir; case "$withval" in
19832 # Check whether --with-udpfromto was given.
19833 if test "${with_udpfromto+set}" = set; then
19834 withval=$with_udpfromto; case "$withval" in
19845 if test "x$WITH_UDPFROMTO" = "xyes"; then
19847 cat >>confdefs.h <<\_ACEOF
19848 #define WITH_UDPFROMTO
19854 CHECKRAD=checkrad.pl
19855 # Extract the first word of "perl", so it can be a program name with args.
19856 set dummy perl; ac_word=$2
19857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19859 if test "${ac_cv_path_PERL+set}" = set; then
19860 echo $ECHO_N "(cached) $ECHO_C" >&6
19864 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19868 for as_dir in $PATH
19871 test -z "$as_dir" && as_dir=.
19872 for ac_exec_ext in '' $ac_executable_extensions; do
19873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19874 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19882 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19886 PERL=$ac_cv_path_PERL
19887 if test -n "$PERL"; then
19888 { echo "$as_me:$LINENO: result: $PERL" >&5
19889 echo "${ECHO_T}$PERL" >&6; }
19891 { echo "$as_me:$LINENO: result: no" >&5
19892 echo "${ECHO_T}no" >&6; }
19896 if test "x$ac_cv_path_PERL" = "x"; then
19897 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19898 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19900 # Extract the first word of "snmpget", so it can be a program name with args.
19901 set dummy snmpget; ac_word=$2
19902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19904 if test "${ac_cv_path_SNMPGET+set}" = set; then
19905 echo $ECHO_N "(cached) $ECHO_C" >&6
19909 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19913 for as_dir in $PATH
19916 test -z "$as_dir" && as_dir=.
19917 for ac_exec_ext in '' $ac_executable_extensions; do
19918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19919 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19930 SNMPGET=$ac_cv_path_SNMPGET
19931 if test -n "$SNMPGET"; then
19932 { echo "$as_me:$LINENO: result: $SNMPGET" >&5
19933 echo "${ECHO_T}$SNMPGET" >&6; }
19935 { echo "$as_me:$LINENO: result: no" >&5
19936 echo "${ECHO_T}no" >&6; }
19940 if test "x$ac_cv_path_SNMPGET" = "x"; then
19941 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19942 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19945 # Extract the first word of "snmpwalk", so it can be a program name with args.
19946 set dummy snmpwalk; ac_word=$2
19947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19949 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19954 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19958 for as_dir in $PATH
19961 test -z "$as_dir" && as_dir=.
19962 for ac_exec_ext in '' $ac_executable_extensions; do
19963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19964 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19975 SNMPWALK=$ac_cv_path_SNMPWALK
19976 if test -n "$SNMPWALK"; then
19977 { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19978 echo "${ECHO_T}$SNMPWALK" >&6; }
19980 { echo "$as_me:$LINENO: result: no" >&5
19981 echo "${ECHO_T}no" >&6; }
19985 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19986 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19987 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19990 # Extract the first word of "rusers", so it can be a program name with args.
19991 set dummy rusers; ac_word=$2
19992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19994 if test "${ac_cv_path_RUSERS+set}" = set; then
19995 echo $ECHO_N "(cached) $ECHO_C" >&6
19999 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20003 for as_dir in $PATH
20006 test -z "$as_dir" && as_dir=.
20007 for ac_exec_ext in '' $ac_executable_extensions; do
20008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20009 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20017 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20021 RUSERS=$ac_cv_path_RUSERS
20022 if test -n "$RUSERS"; then
20023 { echo "$as_me:$LINENO: result: $RUSERS" >&5
20024 echo "${ECHO_T}$RUSERS" >&6; }
20026 { echo "$as_me:$LINENO: result: no" >&5
20027 echo "${ECHO_T}no" >&6; }
20032 missing_dir=`cd $ac_aux_dir && pwd`
20033 # expand $ac_aux_dir to an absolute path
20034 am_aux_dir=`cd $ac_aux_dir && pwd`
20036 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20037 # Use eval to expand $SHELL
20038 if eval "$MISSING --run true"; then
20039 am_missing_run="$MISSING --run "
20042 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20043 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20047 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20050 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20053 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20056 # Extract the first word of "locate", so it can be a program name with args.
20057 set dummy locate; ac_word=$2
20058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20060 if test "${ac_cv_path_LOCATE+set}" = set; then
20061 echo $ECHO_N "(cached) $ECHO_C" >&6
20065 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20069 for as_dir in $PATH
20072 test -z "$as_dir" && as_dir=.
20073 for ac_exec_ext in '' $ac_executable_extensions; do
20074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20075 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20086 LOCATE=$ac_cv_path_LOCATE
20087 if test -n "$LOCATE"; then
20088 { echo "$as_me:$LINENO: result: $LOCATE" >&5
20089 echo "${ECHO_T}$LOCATE" >&6; }
20091 { echo "$as_me:$LINENO: result: no" >&5
20092 echo "${ECHO_T}no" >&6; }
20096 # Extract the first word of "dirname", so it can be a program name with args.
20097 set dummy dirname; ac_word=$2
20098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20100 if test "${ac_cv_path_DIRNAME+set}" = set; then
20101 echo $ECHO_N "(cached) $ECHO_C" >&6
20105 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20109 for as_dir in $PATH
20112 test -z "$as_dir" && as_dir=.
20113 for ac_exec_ext in '' $ac_executable_extensions; do
20114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20115 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20126 DIRNAME=$ac_cv_path_DIRNAME
20127 if test -n "$DIRNAME"; then
20128 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20129 echo "${ECHO_T}$DIRNAME" >&6; }
20131 { echo "$as_me:$LINENO: result: no" >&5
20132 echo "${ECHO_T}no" >&6; }
20136 # Extract the first word of "grep", so it can be a program name with args.
20137 set dummy grep; ac_word=$2
20138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20140 if test "${ac_cv_path_GREP+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20145 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20149 for as_dir in $PATH
20152 test -z "$as_dir" && as_dir=.
20153 for ac_exec_ext in '' $ac_executable_extensions; do
20154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20155 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20166 GREP=$ac_cv_path_GREP
20167 if test -n "$GREP"; then
20168 { echo "$as_me:$LINENO: result: $GREP" >&5
20169 echo "${ECHO_T}$GREP" >&6; }
20171 { echo "$as_me:$LINENO: result: no" >&5
20172 echo "${ECHO_T}no" >&6; }
20179 if test "x$WITH_THREADS" = "xyes"; then
20180 if test $ac_cv_prog_suncc = "yes"; then
20181 CFLAGS="$CFLAGS -mt"
20185 for ac_header in pthread.h
20187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20192 echo $ECHO_N "(cached) $ECHO_C" >&6
20194 ac_res=`eval echo '${'$as_ac_Header'}'`
20195 { echo "$as_me:$LINENO: result: $ac_res" >&5
20196 echo "${ECHO_T}$ac_res" >&6; }
20198 # Is the header compilable?
20199 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20201 cat >conftest.$ac_ext <<_ACEOF
20204 cat confdefs.h >>conftest.$ac_ext
20205 cat >>conftest.$ac_ext <<_ACEOF
20206 /* end confdefs.h. */
20207 $ac_includes_default
20208 #include <$ac_header>
20210 rm -f conftest.$ac_objext
20211 if { (ac_try="$ac_compile"
20212 case "(($ac_try" in
20213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214 *) ac_try_echo=$ac_try;;
20216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217 (eval "$ac_compile") 2>conftest.er1
20219 grep -v '^ *+' conftest.er1 >conftest.err
20221 cat conftest.err >&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); } && {
20224 test -z "$ac_c_werror_flag" ||
20225 test ! -s conftest.err
20226 } && test -s conftest.$ac_objext; then
20227 ac_header_compiler=yes
20229 echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20232 ac_header_compiler=no
20235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20237 echo "${ECHO_T}$ac_header_compiler" >&6; }
20239 # Is the header present?
20240 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20242 cat >conftest.$ac_ext <<_ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h. */
20248 #include <$ac_header>
20250 if { (ac_try="$ac_cpp conftest.$ac_ext"
20251 case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20258 grep -v '^ *+' conftest.er1 >conftest.err
20260 cat conftest.err >&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } >/dev/null && {
20263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20264 test ! -s conftest.err
20266 ac_header_preproc=yes
20268 echo "$as_me: failed program was:" >&5
20269 sed 's/^/| /' conftest.$ac_ext >&5
20271 ac_header_preproc=no
20274 rm -f conftest.err conftest.$ac_ext
20275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20276 echo "${ECHO_T}$ac_header_preproc" >&6; }
20278 # So? What about this header?
20279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20285 ac_header_preproc=yes
20288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20295 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20306 echo $ECHO_N "(cached) $ECHO_C" >&6
20308 eval "$as_ac_Header=\$ac_header_preproc"
20310 ac_res=`eval echo '${'$as_ac_Header'}'`
20311 { echo "$as_me:$LINENO: result: $ac_res" >&5
20312 echo "${ECHO_T}$ac_res" >&6; }
20315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20316 cat >>confdefs.h <<_ACEOF
20317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20327 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20328 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20329 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20330 echo $ECHO_N "(cached) $ECHO_C" >&6
20332 ac_check_lib_save_LIBS=$LIBS
20333 LIBS="-lpthread $LIBS"
20334 cat >conftest.$ac_ext <<_ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h. */
20341 /* Override any GCC internal prototype to avoid an error.
20342 Use char because int might match the return type of a GCC
20343 builtin and then its argument prototype would still apply. */
20347 char pthread_create ();
20351 return pthread_create ();
20356 rm -f conftest.$ac_objext conftest$ac_exeext
20357 if { (ac_try="$ac_link"
20358 case "(($ac_try" in
20359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20360 *) ac_try_echo=$ac_try;;
20362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20363 (eval "$ac_link") 2>conftest.er1
20365 grep -v '^ *+' conftest.er1 >conftest.err
20367 cat conftest.err >&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); } && {
20370 test -z "$ac_c_werror_flag" ||
20371 test ! -s conftest.err
20372 } && test -s conftest$ac_exeext &&
20373 $as_test_x conftest$ac_exeext; then
20374 ac_cv_lib_pthread_pthread_create=yes
20376 echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20379 ac_cv_lib_pthread_pthread_create=no
20382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20383 conftest$ac_exeext conftest.$ac_ext
20384 LIBS=$ac_check_lib_save_LIBS
20386 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20387 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20388 if test $ac_cv_lib_pthread_pthread_create = yes; then
20389 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20390 LIBS="$LIBS -lpthread"
20392 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20393 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20394 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20395 echo $ECHO_N "(cached) $ECHO_C" >&6
20397 ac_check_lib_save_LIBS=$LIBS
20399 cat >conftest.$ac_ext <<_ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20406 /* Override any GCC internal prototype to avoid an error.
20407 Use char because int might match the return type of a GCC
20408 builtin and then its argument prototype would still apply. */
20412 char pthread_create ();
20416 return pthread_create ();
20421 rm -f conftest.$ac_objext conftest$ac_exeext
20422 if { (ac_try="$ac_link"
20423 case "(($ac_try" in
20424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425 *) ac_try_echo=$ac_try;;
20427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428 (eval "$ac_link") 2>conftest.er1
20430 grep -v '^ *+' conftest.er1 >conftest.err
20432 cat conftest.err >&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); } && {
20435 test -z "$ac_c_werror_flag" ||
20436 test ! -s conftest.err
20437 } && test -s conftest$ac_exeext &&
20438 $as_test_x conftest$ac_exeext; then
20439 ac_cv_lib_c_r_pthread_create=yes
20441 echo "$as_me: failed program was:" >&5
20442 sed 's/^/| /' conftest.$ac_ext >&5
20444 ac_cv_lib_c_r_pthread_create=no
20447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20448 conftest$ac_exeext conftest.$ac_ext
20449 LIBS=$ac_check_lib_save_LIBS
20451 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20452 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20453 if test $ac_cv_lib_c_r_pthread_create = yes; then
20454 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20465 if test "x$WITH_THREADS" != "xyes"; then
20467 ac_cv_header_pthread_h="no"
20471 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20472 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20473 if test "${ac_cv_search_sem_init+set}" = set; then
20474 echo $ECHO_N "(cached) $ECHO_C" >&6
20476 ac_func_search_save_LIBS=$LIBS
20477 cat >conftest.$ac_ext <<_ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20484 /* Override any GCC internal prototype to avoid an error.
20485 Use char because int might match the return type of a GCC
20486 builtin and then its argument prototype would still apply. */
20494 return sem_init ();
20499 for ac_lib in '' pthread sem posix4 rt semaphore; do
20500 if test -z "$ac_lib"; then
20501 ac_res="none required"
20504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20506 rm -f conftest.$ac_objext conftest$ac_exeext
20507 if { (ac_try="$ac_link"
20508 case "(($ac_try" in
20509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20510 *) ac_try_echo=$ac_try;;
20512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20513 (eval "$ac_link") 2>conftest.er1
20515 grep -v '^ *+' conftest.er1 >conftest.err
20517 cat conftest.err >&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } && {
20520 test -z "$ac_c_werror_flag" ||
20521 test ! -s conftest.err
20522 } && test -s conftest$ac_exeext &&
20523 $as_test_x conftest$ac_exeext; then
20524 ac_cv_search_sem_init=$ac_res
20526 echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20534 if test "${ac_cv_search_sem_init+set}" = set; then
20538 if test "${ac_cv_search_sem_init+set}" = set; then
20541 ac_cv_search_sem_init=no
20543 rm conftest.$ac_ext
20544 LIBS=$ac_func_search_save_LIBS
20546 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20547 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20548 ac_res=$ac_cv_search_sem_init
20549 if test "$ac_res" != no; then
20550 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20553 { { 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
20554 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;}
20555 { (exit 1); exit 1; }; }
20562 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20563 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20564 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20565 echo $ECHO_N "(cached) $ECHO_C" >&6
20567 ac_check_lib_save_LIBS=$LIBS
20568 LIBS="-lsocket $LIBS"
20569 cat >conftest.$ac_ext <<_ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h. */
20576 /* Override any GCC internal prototype to avoid an error.
20577 Use char because int might match the return type of a GCC
20578 builtin and then its argument prototype would still apply. */
20582 char getsockname ();
20586 return getsockname ();
20591 rm -f conftest.$ac_objext conftest$ac_exeext
20592 if { (ac_try="$ac_link"
20593 case "(($ac_try" in
20594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595 *) ac_try_echo=$ac_try;;
20597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598 (eval "$ac_link") 2>conftest.er1
20600 grep -v '^ *+' conftest.er1 >conftest.err
20602 cat conftest.err >&5
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } && {
20605 test -z "$ac_c_werror_flag" ||
20606 test ! -s conftest.err
20607 } && test -s conftest$ac_exeext &&
20608 $as_test_x conftest$ac_exeext; then
20609 ac_cv_lib_socket_getsockname=yes
20611 echo "$as_me: failed program was:" >&5
20612 sed 's/^/| /' conftest.$ac_ext >&5
20614 ac_cv_lib_socket_getsockname=no
20617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20618 conftest$ac_exeext conftest.$ac_ext
20619 LIBS=$ac_check_lib_save_LIBS
20621 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20622 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20623 if test $ac_cv_lib_socket_getsockname = yes; then
20624 cat >>confdefs.h <<_ACEOF
20625 #define HAVE_LIBSOCKET 1
20628 LIBS="-lsocket $LIBS"
20634 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20635 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20636 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20639 ac_check_lib_save_LIBS=$LIBS
20640 LIBS="-lresolv $LIBS"
20641 cat >conftest.$ac_ext <<_ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h. */
20648 /* Override any GCC internal prototype to avoid an error.
20649 Use char because int might match the return type of a GCC
20650 builtin and then its argument prototype would still apply. */
20658 return inet_aton ();
20663 rm -f conftest.$ac_objext conftest$ac_exeext
20664 if { (ac_try="$ac_link"
20665 case "(($ac_try" in
20666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667 *) ac_try_echo=$ac_try;;
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670 (eval "$ac_link") 2>conftest.er1
20672 grep -v '^ *+' conftest.er1 >conftest.err
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } && {
20677 test -z "$ac_c_werror_flag" ||
20678 test ! -s conftest.err
20679 } && test -s conftest$ac_exeext &&
20680 $as_test_x conftest$ac_exeext; then
20681 ac_cv_lib_resolv_inet_aton=yes
20683 echo "$as_me: failed program was:" >&5
20684 sed 's/^/| /' conftest.$ac_ext >&5
20686 ac_cv_lib_resolv_inet_aton=no
20689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20690 conftest$ac_exeext conftest.$ac_ext
20691 LIBS=$ac_check_lib_save_LIBS
20693 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20694 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20695 if test $ac_cv_lib_resolv_inet_aton = yes; then
20696 cat >>confdefs.h <<_ACEOF
20697 #define HAVE_LIBRESOLV 1
20700 LIBS="-lresolv $LIBS"
20706 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20707 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
20708 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20709 echo $ECHO_N "(cached) $ECHO_C" >&6
20711 ac_check_lib_save_LIBS=$LIBS
20713 cat >conftest.$ac_ext <<_ACEOF
20716 cat confdefs.h >>conftest.$ac_ext
20717 cat >>conftest.$ac_ext <<_ACEOF
20718 /* end confdefs.h. */
20720 /* Override any GCC internal prototype to avoid an error.
20721 Use char because int might match the return type of a GCC
20722 builtin and then its argument prototype would still apply. */
20730 return inet_ntoa ();
20735 rm -f conftest.$ac_objext conftest$ac_exeext
20736 if { (ac_try="$ac_link"
20737 case "(($ac_try" in
20738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739 *) ac_try_echo=$ac_try;;
20741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20742 (eval "$ac_link") 2>conftest.er1
20744 grep -v '^ *+' conftest.er1 >conftest.err
20746 cat conftest.err >&5
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } && {
20749 test -z "$ac_c_werror_flag" ||
20750 test ! -s conftest.err
20751 } && test -s conftest$ac_exeext &&
20752 $as_test_x conftest$ac_exeext; then
20753 ac_cv_lib_nsl_inet_ntoa=yes
20755 echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20758 ac_cv_lib_nsl_inet_ntoa=no
20761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20762 conftest$ac_exeext conftest.$ac_ext
20763 LIBS=$ac_check_lib_save_LIBS
20765 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20766 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
20767 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20768 cat >>confdefs.h <<_ACEOF
20769 #define HAVE_LIBNSL 1
20779 if test "x$OPENSSL_LIB_DIR" != "x"; then
20780 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20782 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20783 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
20784 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20785 echo $ECHO_N "(cached) $ECHO_C" >&6
20787 ac_check_lib_save_LIBS=$LIBS
20788 LIBS="-lcrypto $LIBS"
20789 cat >conftest.$ac_ext <<_ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h. */
20796 /* Override any GCC internal prototype to avoid an error.
20797 Use char because int might match the return type of a GCC
20798 builtin and then its argument prototype would still apply. */
20811 rm -f conftest.$ac_objext conftest$ac_exeext
20812 if { (ac_try="$ac_link"
20813 case "(($ac_try" in
20814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815 *) ac_try_echo=$ac_try;;
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818 (eval "$ac_link") 2>conftest.er1
20820 grep -v '^ *+' conftest.er1 >conftest.err
20822 cat conftest.err >&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); } && {
20825 test -z "$ac_c_werror_flag" ||
20826 test ! -s conftest.err
20827 } && test -s conftest$ac_exeext &&
20828 $as_test_x conftest$ac_exeext; then
20829 ac_cv_lib_crypto_DH_new=yes
20831 echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20834 ac_cv_lib_crypto_DH_new=no
20837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20838 conftest$ac_exeext conftest.$ac_ext
20839 LIBS=$ac_check_lib_save_LIBS
20841 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20842 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
20843 if test $ac_cv_lib_crypto_DH_new = yes; then
20846 cat >>confdefs.h <<\_ACEOF
20847 #define HAVE_LIBCRYPTO 1
20850 { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20851 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
20852 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20853 echo $ECHO_N "(cached) $ECHO_C" >&6
20855 ac_check_lib_save_LIBS=$LIBS
20857 cat >conftest.$ac_ext <<_ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h. */
20864 /* Override any GCC internal prototype to avoid an error.
20865 Use char because int might match the return type of a GCC
20866 builtin and then its argument prototype would still apply. */
20879 rm -f conftest.$ac_objext conftest$ac_exeext
20880 if { (ac_try="$ac_link"
20881 case "(($ac_try" in
20882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20883 *) ac_try_echo=$ac_try;;
20885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20886 (eval "$ac_link") 2>conftest.er1
20888 grep -v '^ *+' conftest.er1 >conftest.err
20890 cat conftest.err >&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); } && {
20893 test -z "$ac_c_werror_flag" ||
20894 test ! -s conftest.err
20895 } && test -s conftest$ac_exeext &&
20896 $as_test_x conftest$ac_exeext; then
20897 ac_cv_lib_ssl_SSL_new=yes
20899 echo "$as_me: failed program was:" >&5
20900 sed 's/^/| /' conftest.$ac_ext >&5
20902 ac_cv_lib_ssl_SSL_new=no
20905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20906 conftest$ac_exeext conftest.$ac_ext
20907 LIBS=$ac_check_lib_save_LIBS
20909 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20910 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
20911 if test $ac_cv_lib_ssl_SSL_new = yes; then
20914 cat >>confdefs.h <<\_ACEOF
20915 #define HAVE_LIBSSL 1
20918 if test "x$OPENSSL_LIB_DIR" != "x"; then
20919 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20921 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20931 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
20932 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
20933 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
20934 echo $ECHO_N "(cached) $ECHO_C" >&6
20936 ac_check_lib_save_LIBS=$LIBS
20937 LIBS="-lws2_32 $LIBS"
20938 cat >conftest.$ac_ext <<_ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h. */
20945 /* Override any GCC internal prototype to avoid an error.
20946 Use char because int might match the return type of a GCC
20947 builtin and then its argument prototype would still apply. */
20960 rm -f conftest.$ac_objext conftest$ac_exeext
20961 if { (ac_try="$ac_link"
20962 case "(($ac_try" in
20963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964 *) ac_try_echo=$ac_try;;
20966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20967 (eval "$ac_link") 2>conftest.er1
20969 grep -v '^ *+' conftest.er1 >conftest.err
20971 cat conftest.err >&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } && {
20974 test -z "$ac_c_werror_flag" ||
20975 test ! -s conftest.err
20976 } && test -s conftest$ac_exeext &&
20977 $as_test_x conftest$ac_exeext; then
20978 ac_cv_lib_ws2_32_htonl=yes
20980 echo "$as_me: failed program was:" >&5
20981 sed 's/^/| /' conftest.$ac_ext >&5
20983 ac_cv_lib_ws2_32_htonl=no
20986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20987 conftest$ac_exeext conftest.$ac_ext
20988 LIBS=$ac_check_lib_save_LIBS
20990 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
20991 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
20992 if test $ac_cv_lib_ws2_32_htonl = yes; then
20993 cat >>confdefs.h <<_ACEOF
20994 #define HAVE_LIBWS2_32 1
20997 LIBS="-lws2_32 $LIBS"
21003 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21004 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21005 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21006 echo $ECHO_N "(cached) $ECHO_C" >&6
21008 ac_check_lib_save_LIBS=$LIBS
21009 LIBS="-lpcap $LIBS"
21010 cat >conftest.$ac_ext <<_ACEOF
21013 cat confdefs.h >>conftest.$ac_ext
21014 cat >>conftest.$ac_ext <<_ACEOF
21015 /* end confdefs.h. */
21017 /* Override any GCC internal prototype to avoid an error.
21018 Use char because int might match the return type of a GCC
21019 builtin and then its argument prototype would still apply. */
21023 char pcap_open_live ();
21027 return pcap_open_live ();
21032 rm -f conftest.$ac_objext conftest$ac_exeext
21033 if { (ac_try="$ac_link"
21034 case "(($ac_try" in
21035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036 *) ac_try_echo=$ac_try;;
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039 (eval "$ac_link") 2>conftest.er1
21041 grep -v '^ *+' conftest.er1 >conftest.err
21043 cat conftest.err >&5
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); } && {
21046 test -z "$ac_c_werror_flag" ||
21047 test ! -s conftest.err
21048 } && test -s conftest$ac_exeext &&
21049 $as_test_x conftest$ac_exeext; then
21050 ac_cv_lib_pcap_pcap_open_live=yes
21052 echo "$as_me: failed program was:" >&5
21053 sed 's/^/| /' conftest.$ac_ext >&5
21055 ac_cv_lib_pcap_pcap_open_live=no
21058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21059 conftest$ac_exeext conftest.$ac_ext
21060 LIBS=$ac_check_lib_save_LIBS
21062 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21063 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21064 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21067 cat >>confdefs.h <<\_ACEOF
21068 #define HAVE_LIBPCAP 1
21073 { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21074 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21081 CFLAGS="$CFLAGS -D_ALL_SOURCE"
21084 CFLAGS="$CFLAGS -DDARWIN"
21093 ac_header_dirent=no
21094 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21095 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21096 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21097 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21099 echo $ECHO_N "(cached) $ECHO_C" >&6
21101 cat >conftest.$ac_ext <<_ACEOF
21104 cat confdefs.h >>conftest.$ac_ext
21105 cat >>conftest.$ac_ext <<_ACEOF
21106 /* end confdefs.h. */
21107 #include <sys/types.h>
21119 rm -f conftest.$ac_objext
21120 if { (ac_try="$ac_compile"
21121 case "(($ac_try" in
21122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123 *) ac_try_echo=$ac_try;;
21125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21126 (eval "$ac_compile") 2>conftest.er1
21128 grep -v '^ *+' conftest.er1 >conftest.err
21130 cat conftest.err >&5
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); } && {
21133 test -z "$ac_c_werror_flag" ||
21134 test ! -s conftest.err
21135 } && test -s conftest.$ac_objext; then
21136 eval "$as_ac_Header=yes"
21138 echo "$as_me: failed program was:" >&5
21139 sed 's/^/| /' conftest.$ac_ext >&5
21141 eval "$as_ac_Header=no"
21144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21146 ac_res=`eval echo '${'$as_ac_Header'}'`
21147 { echo "$as_me:$LINENO: result: $ac_res" >&5
21148 echo "${ECHO_T}$ac_res" >&6; }
21149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21150 cat >>confdefs.h <<_ACEOF
21151 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21154 ac_header_dirent=$ac_hdr; break
21158 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21159 if test $ac_header_dirent = dirent.h; then
21160 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21161 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21162 if test "${ac_cv_search_opendir+set}" = set; then
21163 echo $ECHO_N "(cached) $ECHO_C" >&6
21165 ac_func_search_save_LIBS=$LIBS
21166 cat >conftest.$ac_ext <<_ACEOF
21169 cat confdefs.h >>conftest.$ac_ext
21170 cat >>conftest.$ac_ext <<_ACEOF
21171 /* end confdefs.h. */
21173 /* Override any GCC internal prototype to avoid an error.
21174 Use char because int might match the return type of a GCC
21175 builtin and then its argument prototype would still apply. */
21188 for ac_lib in '' dir; do
21189 if test -z "$ac_lib"; then
21190 ac_res="none required"
21193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21195 rm -f conftest.$ac_objext conftest$ac_exeext
21196 if { (ac_try="$ac_link"
21197 case "(($ac_try" in
21198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199 *) ac_try_echo=$ac_try;;
21201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202 (eval "$ac_link") 2>conftest.er1
21204 grep -v '^ *+' conftest.er1 >conftest.err
21206 cat conftest.err >&5
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); } && {
21209 test -z "$ac_c_werror_flag" ||
21210 test ! -s conftest.err
21211 } && test -s conftest$ac_exeext &&
21212 $as_test_x conftest$ac_exeext; then
21213 ac_cv_search_opendir=$ac_res
21215 echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21223 if test "${ac_cv_search_opendir+set}" = set; then
21227 if test "${ac_cv_search_opendir+set}" = set; then
21230 ac_cv_search_opendir=no
21232 rm conftest.$ac_ext
21233 LIBS=$ac_func_search_save_LIBS
21235 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21236 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21237 ac_res=$ac_cv_search_opendir
21238 if test "$ac_res" != no; then
21239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21244 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21245 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21246 if test "${ac_cv_search_opendir+set}" = set; then
21247 echo $ECHO_N "(cached) $ECHO_C" >&6
21249 ac_func_search_save_LIBS=$LIBS
21250 cat >conftest.$ac_ext <<_ACEOF
21253 cat confdefs.h >>conftest.$ac_ext
21254 cat >>conftest.$ac_ext <<_ACEOF
21255 /* end confdefs.h. */
21257 /* Override any GCC internal prototype to avoid an error.
21258 Use char because int might match the return type of a GCC
21259 builtin and then its argument prototype would still apply. */
21272 for ac_lib in '' x; do
21273 if test -z "$ac_lib"; then
21274 ac_res="none required"
21277 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21279 rm -f conftest.$ac_objext conftest$ac_exeext
21280 if { (ac_try="$ac_link"
21281 case "(($ac_try" in
21282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283 *) ac_try_echo=$ac_try;;
21285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21286 (eval "$ac_link") 2>conftest.er1
21288 grep -v '^ *+' conftest.er1 >conftest.err
21290 cat conftest.err >&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } && {
21293 test -z "$ac_c_werror_flag" ||
21294 test ! -s conftest.err
21295 } && test -s conftest$ac_exeext &&
21296 $as_test_x conftest$ac_exeext; then
21297 ac_cv_search_opendir=$ac_res
21299 echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21307 if test "${ac_cv_search_opendir+set}" = set; then
21311 if test "${ac_cv_search_opendir+set}" = set; then
21314 ac_cv_search_opendir=no
21316 rm conftest.$ac_ext
21317 LIBS=$ac_func_search_save_LIBS
21319 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21320 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21321 ac_res=$ac_cv_search_opendir
21322 if test "$ac_res" != no; then
21323 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21329 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21330 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21331 if test "${ac_cv_header_stdc+set}" = set; then
21332 echo $ECHO_N "(cached) $ECHO_C" >&6
21334 cat >conftest.$ac_ext <<_ACEOF
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h. */
21340 #include <stdlib.h>
21341 #include <stdarg.h>
21342 #include <string.h>
21353 rm -f conftest.$ac_objext
21354 if { (ac_try="$ac_compile"
21355 case "(($ac_try" in
21356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357 *) ac_try_echo=$ac_try;;
21359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21360 (eval "$ac_compile") 2>conftest.er1
21362 grep -v '^ *+' conftest.er1 >conftest.err
21364 cat conftest.err >&5
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); } && {
21367 test -z "$ac_c_werror_flag" ||
21368 test ! -s conftest.err
21369 } && test -s conftest.$ac_objext; then
21370 ac_cv_header_stdc=yes
21372 echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21375 ac_cv_header_stdc=no
21378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21380 if test $ac_cv_header_stdc = yes; then
21381 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21382 cat >conftest.$ac_ext <<_ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21388 #include <string.h>
21391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21392 $EGREP "memchr" >/dev/null 2>&1; then
21395 ac_cv_header_stdc=no
21401 if test $ac_cv_header_stdc = yes; then
21402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21403 cat >conftest.$ac_ext <<_ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h. */
21409 #include <stdlib.h>
21412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21413 $EGREP "free" >/dev/null 2>&1; then
21416 ac_cv_header_stdc=no
21422 if test $ac_cv_header_stdc = yes; then
21423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21424 if test "$cross_compiling" = yes; then
21427 cat >conftest.$ac_ext <<_ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h. */
21434 #include <stdlib.h>
21435 #if ((' ' & 0x0FF) == 0x020)
21436 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21437 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21439 # define ISLOWER(c) \
21440 (('a' <= (c) && (c) <= 'i') \
21441 || ('j' <= (c) && (c) <= 'r') \
21442 || ('s' <= (c) && (c) <= 'z'))
21443 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21446 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21451 for (i = 0; i < 256; i++)
21452 if (XOR (islower (i), ISLOWER (i))
21453 || toupper (i) != TOUPPER (i))
21458 rm -f conftest$ac_exeext
21459 if { (ac_try="$ac_link"
21460 case "(($ac_try" in
21461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462 *) ac_try_echo=$ac_try;;
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465 (eval "$ac_link") 2>&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21469 { (case "(($ac_try" in
21470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21471 *) ac_try_echo=$ac_try;;
21473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21474 (eval "$ac_try") 2>&5
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); }; }; then
21480 echo "$as_me: program exited with status $ac_status" >&5
21481 echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.$ac_ext >&5
21484 ( exit $ac_status )
21485 ac_cv_header_stdc=no
21487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21493 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21494 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21495 if test $ac_cv_header_stdc = yes; then
21497 cat >>confdefs.h <<\_ACEOF
21498 #define STDC_HEADERS 1
21503 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21504 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21505 if test "${ac_cv_header_time+set}" = set; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21508 cat >conftest.$ac_ext <<_ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h. */
21514 #include <sys/types.h>
21515 #include <sys/time.h>
21521 if ((struct tm *) 0)
21527 rm -f conftest.$ac_objext
21528 if { (ac_try="$ac_compile"
21529 case "(($ac_try" in
21530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531 *) ac_try_echo=$ac_try;;
21533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21534 (eval "$ac_compile") 2>conftest.er1
21536 grep -v '^ *+' conftest.er1 >conftest.err
21538 cat conftest.err >&5
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); } && {
21541 test -z "$ac_c_werror_flag" ||
21542 test ! -s conftest.err
21543 } && test -s conftest.$ac_objext; then
21544 ac_cv_header_time=yes
21546 echo "$as_me: failed program was:" >&5
21547 sed 's/^/| /' conftest.$ac_ext >&5
21549 ac_cv_header_time=no
21552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21554 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21555 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21556 if test $ac_cv_header_time = yes; then
21558 cat >>confdefs.h <<\_ACEOF
21559 #define TIME_WITH_SYS_TIME 1
21564 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21565 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21566 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21567 echo $ECHO_N "(cached) $ECHO_C" >&6
21569 cat >conftest.$ac_ext <<_ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h. */
21575 #include <sys/types.h>
21576 #include <sys/wait.h>
21577 #ifndef WEXITSTATUS
21578 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21581 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21589 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21594 rm -f conftest.$ac_objext
21595 if { (ac_try="$ac_compile"
21596 case "(($ac_try" in
21597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21598 *) ac_try_echo=$ac_try;;
21600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21601 (eval "$ac_compile") 2>conftest.er1
21603 grep -v '^ *+' conftest.er1 >conftest.err
21605 cat conftest.err >&5
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); } && {
21608 test -z "$ac_c_werror_flag" ||
21609 test ! -s conftest.err
21610 } && test -s conftest.$ac_objext; then
21611 ac_cv_header_sys_wait_h=yes
21613 echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21616 ac_cv_header_sys_wait_h=no
21619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21621 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21622 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21623 if test $ac_cv_header_sys_wait_h = yes; then
21625 cat >>confdefs.h <<\_ACEOF
21626 #define HAVE_SYS_WAIT_H 1
21699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21704 echo $ECHO_N "(cached) $ECHO_C" >&6
21706 ac_res=`eval echo '${'$as_ac_Header'}'`
21707 { echo "$as_me:$LINENO: result: $ac_res" >&5
21708 echo "${ECHO_T}$ac_res" >&6; }
21710 # Is the header compilable?
21711 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21713 cat >conftest.$ac_ext <<_ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h. */
21719 $ac_includes_default
21720 #include <$ac_header>
21722 rm -f conftest.$ac_objext
21723 if { (ac_try="$ac_compile"
21724 case "(($ac_try" in
21725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726 *) ac_try_echo=$ac_try;;
21728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21729 (eval "$ac_compile") 2>conftest.er1
21731 grep -v '^ *+' conftest.er1 >conftest.err
21733 cat conftest.err >&5
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); } && {
21736 test -z "$ac_c_werror_flag" ||
21737 test ! -s conftest.err
21738 } && test -s conftest.$ac_objext; then
21739 ac_header_compiler=yes
21741 echo "$as_me: failed program was:" >&5
21742 sed 's/^/| /' conftest.$ac_ext >&5
21744 ac_header_compiler=no
21747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21748 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21749 echo "${ECHO_T}$ac_header_compiler" >&6; }
21751 # Is the header present?
21752 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21753 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
21762 if { (ac_try="$ac_cpp conftest.$ac_ext"
21763 case "(($ac_try" in
21764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21765 *) ac_try_echo=$ac_try;;
21767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21770 grep -v '^ *+' conftest.er1 >conftest.err
21772 cat conftest.err >&5
21773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 (exit $ac_status); } >/dev/null && {
21775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21776 test ! -s conftest.err
21778 ac_header_preproc=yes
21780 echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21783 ac_header_preproc=no
21786 rm -f conftest.err conftest.$ac_ext
21787 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21788 echo "${ECHO_T}$ac_header_preproc" >&6; }
21790 # So? What about this header?
21791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21797 ac_header_preproc=yes
21800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21803 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21807 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21818 echo $ECHO_N "(cached) $ECHO_C" >&6
21820 eval "$as_ac_Header=\$ac_header_preproc"
21822 ac_res=`eval echo '${'$as_ac_Header'}'`
21823 { echo "$as_me:$LINENO: result: $ac_res" >&5
21824 echo "${ECHO_T}$ac_res" >&6; }
21827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21828 cat >>confdefs.h <<_ACEOF
21829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21838 for ac_header in net/if.h
21840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21844 echo $ECHO_N "(cached) $ECHO_C" >&6
21846 cat >conftest.$ac_ext <<_ACEOF
21849 cat confdefs.h >>conftest.$ac_ext
21850 cat >>conftest.$ac_ext <<_ACEOF
21851 /* end confdefs.h. */
21852 #ifdef HAVE_SYS_SOCKET_H
21853 # include <sys/socket.h>
21857 #include <$ac_header>
21859 rm -f conftest.$ac_objext
21860 if { (ac_try="$ac_compile"
21861 case "(($ac_try" in
21862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863 *) ac_try_echo=$ac_try;;
21865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21866 (eval "$ac_compile") 2>conftest.er1
21868 grep -v '^ *+' conftest.er1 >conftest.err
21870 cat conftest.err >&5
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); } && {
21873 test -z "$ac_c_werror_flag" ||
21874 test ! -s conftest.err
21875 } && test -s conftest.$ac_objext; then
21876 eval "$as_ac_Header=yes"
21878 echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21881 eval "$as_ac_Header=no"
21884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21886 ac_res=`eval echo '${'$as_ac_Header'}'`
21887 { echo "$as_me:$LINENO: result: $ac_res" >&5
21888 echo "${ECHO_T}$ac_res" >&6; }
21889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21890 cat >>confdefs.h <<_ACEOF
21891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21900 if test "${ac_cv_header_regex_h+set}" = set; then
21901 { echo "$as_me:$LINENO: checking for regex.h" >&5
21902 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21903 if test "${ac_cv_header_regex_h+set}" = set; then
21904 echo $ECHO_N "(cached) $ECHO_C" >&6
21906 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21907 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21909 # Is the header compilable?
21910 { echo "$as_me:$LINENO: checking regex.h usability" >&5
21911 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
21912 cat >conftest.$ac_ext <<_ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h. */
21918 $ac_includes_default
21921 rm -f conftest.$ac_objext
21922 if { (ac_try="$ac_compile"
21923 case "(($ac_try" in
21924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21925 *) ac_try_echo=$ac_try;;
21927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21928 (eval "$ac_compile") 2>conftest.er1
21930 grep -v '^ *+' conftest.er1 >conftest.err
21932 cat conftest.err >&5
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } && {
21935 test -z "$ac_c_werror_flag" ||
21936 test ! -s conftest.err
21937 } && test -s conftest.$ac_objext; then
21938 ac_header_compiler=yes
21940 echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21943 ac_header_compiler=no
21946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21948 echo "${ECHO_T}$ac_header_compiler" >&6; }
21950 # Is the header present?
21951 { echo "$as_me:$LINENO: checking regex.h presence" >&5
21952 echo $ECHO_N "checking regex.h presence... $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. */
21961 if { (ac_try="$ac_cpp conftest.$ac_ext"
21962 case "(($ac_try" in
21963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964 *) ac_try_echo=$ac_try;;
21966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21969 grep -v '^ *+' conftest.er1 >conftest.err
21971 cat conftest.err >&5
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); } >/dev/null && {
21974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21975 test ! -s conftest.err
21977 ac_header_preproc=yes
21979 echo "$as_me: failed program was:" >&5
21980 sed 's/^/| /' conftest.$ac_ext >&5
21982 ac_header_preproc=no
21985 rm -f conftest.err conftest.$ac_ext
21986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21987 echo "${ECHO_T}$ac_header_preproc" >&6; }
21989 # So? What about this header?
21990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21992 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21993 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21994 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21995 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21996 ac_header_preproc=yes
21999 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22000 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
22001 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22002 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22003 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22004 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22005 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22006 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
22007 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22008 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
22009 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22010 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
22014 { echo "$as_me:$LINENO: checking for regex.h" >&5
22015 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22016 if test "${ac_cv_header_regex_h+set}" = set; then
22017 echo $ECHO_N "(cached) $ECHO_C" >&6
22019 ac_cv_header_regex_h=$ac_header_preproc
22021 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22022 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22025 if test $ac_cv_header_regex_h = yes; then
22027 cat >>confdefs.h <<\_ACEOF
22028 #define HAVE_REGEX_H
22034 if test "x$ac_cv_header_regex_h" = "xyes"; then
22037 cat >conftest.$ac_ext <<_ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h. */
22044 #ifdef REG_EXTENDED
22049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22050 $EGREP "yes" >/dev/null 2>&1; then
22052 cat >>confdefs.h <<\_ACEOF
22053 #define HAVE_REG_EXTENDED
22063 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
22066 cat >>confdefs.h <<\_ACEOF
22072 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
22075 cat >>confdefs.h <<\_ACEOF
22081 OPENSSL_INCLUDE="-DNO_OPENSSL"
22082 if test "x$OPENSSL_LIBS" = "x"; then
22083 { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
22084 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
22086 old_CPPFLAGS=$CPPFLAGS
22087 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22088 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
22090 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
22101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22106 echo $ECHO_N "(cached) $ECHO_C" >&6
22108 ac_res=`eval echo '${'$as_ac_Header'}'`
22109 { echo "$as_me:$LINENO: result: $ac_res" >&5
22110 echo "${ECHO_T}$ac_res" >&6; }
22112 # Is the header compilable?
22113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22115 cat >conftest.$ac_ext <<_ACEOF
22118 cat confdefs.h >>conftest.$ac_ext
22119 cat >>conftest.$ac_ext <<_ACEOF
22120 /* end confdefs.h. */
22121 $ac_includes_default
22122 #include <$ac_header>
22124 rm -f conftest.$ac_objext
22125 if { (ac_try="$ac_compile"
22126 case "(($ac_try" in
22127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22128 *) ac_try_echo=$ac_try;;
22130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22131 (eval "$ac_compile") 2>conftest.er1
22133 grep -v '^ *+' conftest.er1 >conftest.err
22135 cat conftest.err >&5
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); } && {
22138 test -z "$ac_c_werror_flag" ||
22139 test ! -s conftest.err
22140 } && test -s conftest.$ac_objext; then
22141 ac_header_compiler=yes
22143 echo "$as_me: failed program was:" >&5
22144 sed 's/^/| /' conftest.$ac_ext >&5
22146 ac_header_compiler=no
22149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22151 echo "${ECHO_T}$ac_header_compiler" >&6; }
22153 # Is the header present?
22154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22156 cat >conftest.$ac_ext <<_ACEOF
22159 cat confdefs.h >>conftest.$ac_ext
22160 cat >>conftest.$ac_ext <<_ACEOF
22161 /* end confdefs.h. */
22162 #include <$ac_header>
22164 if { (ac_try="$ac_cpp conftest.$ac_ext"
22165 case "(($ac_try" in
22166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22167 *) ac_try_echo=$ac_try;;
22169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22172 grep -v '^ *+' conftest.er1 >conftest.err
22174 cat conftest.err >&5
22175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); } >/dev/null && {
22177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22178 test ! -s conftest.err
22180 ac_header_preproc=yes
22182 echo "$as_me: failed program was:" >&5
22183 sed 's/^/| /' conftest.$ac_ext >&5
22185 ac_header_preproc=no
22188 rm -f conftest.err conftest.$ac_ext
22189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22190 echo "${ECHO_T}$ac_header_preproc" >&6; }
22192 # So? What about this header?
22193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22199 ac_header_preproc=yes
22202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22220 echo $ECHO_N "(cached) $ECHO_C" >&6
22222 eval "$as_ac_Header=\$ac_header_preproc"
22224 ac_res=`eval echo '${'$as_ac_Header'}'`
22225 { echo "$as_me:$LINENO: result: $ac_res" >&5
22226 echo "${ECHO_T}$ac_res" >&6; }
22229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22230 cat >>confdefs.h <<_ACEOF
22231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22241 if test "x$OPENSSL_LIBS" != "x"; then
22242 { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22243 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
22244 cat >conftest.$ac_ext <<_ACEOF
22247 cat confdefs.h >>conftest.$ac_ext
22248 cat >>conftest.$ac_ext <<_ACEOF
22249 /* end confdefs.h. */
22250 #include <openssl/crypto.h>
22251 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22257 $EGREP "yes" >/dev/null 2>&1; then
22262 if test "x$goodssl" != "xyes"; then
22263 { echo "$as_me:$LINENO: result: no" >&5
22264 echo "${ECHO_T}no" >&6; }
22267 { echo "$as_me:$LINENO: result: yes" >&5
22268 echo "${ECHO_T}yes" >&6; }
22269 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22270 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
22272 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
22276 CPPFLAGS=$old_CPPFLAGS
22280 export OPENSSL_LIBS
22282 if test "x$PCAP_LIBS" = x; then
22283 { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
22284 echo "$as_me: skipping test for pcap.h." >&6;}
22286 if test "${ac_cv_header_pcap_h+set}" = set; then
22287 { echo "$as_me:$LINENO: checking for pcap.h" >&5
22288 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
22289 if test "${ac_cv_header_pcap_h+set}" = set; then
22290 echo $ECHO_N "(cached) $ECHO_C" >&6
22292 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22293 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
22295 # Is the header compilable?
22296 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
22297 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
22298 cat >conftest.$ac_ext <<_ACEOF
22301 cat confdefs.h >>conftest.$ac_ext
22302 cat >>conftest.$ac_ext <<_ACEOF
22303 /* end confdefs.h. */
22304 $ac_includes_default
22307 rm -f conftest.$ac_objext
22308 if { (ac_try="$ac_compile"
22309 case "(($ac_try" in
22310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311 *) ac_try_echo=$ac_try;;
22313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314 (eval "$ac_compile") 2>conftest.er1
22316 grep -v '^ *+' conftest.er1 >conftest.err
22318 cat conftest.err >&5
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); } && {
22321 test -z "$ac_c_werror_flag" ||
22322 test ! -s conftest.err
22323 } && test -s conftest.$ac_objext; then
22324 ac_header_compiler=yes
22326 echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22329 ac_header_compiler=no
22332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22334 echo "${ECHO_T}$ac_header_compiler" >&6; }
22336 # Is the header present?
22337 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
22338 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
22339 cat >conftest.$ac_ext <<_ACEOF
22342 cat confdefs.h >>conftest.$ac_ext
22343 cat >>conftest.$ac_ext <<_ACEOF
22344 /* end confdefs.h. */
22347 if { (ac_try="$ac_cpp conftest.$ac_ext"
22348 case "(($ac_try" in
22349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22350 *) ac_try_echo=$ac_try;;
22352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22355 grep -v '^ *+' conftest.er1 >conftest.err
22357 cat conftest.err >&5
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); } >/dev/null && {
22360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22361 test ! -s conftest.err
22363 ac_header_preproc=yes
22365 echo "$as_me: failed program was:" >&5
22366 sed 's/^/| /' conftest.$ac_ext >&5
22368 ac_header_preproc=no
22371 rm -f conftest.err conftest.$ac_ext
22372 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22373 echo "${ECHO_T}$ac_header_preproc" >&6; }
22375 # So? What about this header?
22376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22378 { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
22379 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22380 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
22381 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
22382 ac_header_preproc=yes
22385 { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
22386 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
22387 { echo "$as_me:$LINENO: WARNING: pcap.h: check for missing prerequisite headers?" >&5
22388 echo "$as_me: WARNING: pcap.h: check for missing prerequisite headers?" >&2;}
22389 { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
22390 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
22391 { echo "$as_me:$LINENO: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&5
22392 echo "$as_me: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
22393 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
22394 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
22395 { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
22396 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
22400 { echo "$as_me:$LINENO: checking for pcap.h" >&5
22401 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
22402 if test "${ac_cv_header_pcap_h+set}" = set; then
22403 echo $ECHO_N "(cached) $ECHO_C" >&6
22405 ac_cv_header_pcap_h=$ac_header_preproc
22407 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22408 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
22411 if test $ac_cv_header_pcap_h = yes; then
22413 cat >>confdefs.h <<\_ACEOF
22414 #define HAVE_PCAP_H 1
22419 { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
22420 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
22429 { echo "$as_me:$LINENO: checking for off_t" >&5
22430 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22431 if test "${ac_cv_type_off_t+set}" = set; then
22432 echo $ECHO_N "(cached) $ECHO_C" >&6
22434 cat >conftest.$ac_ext <<_ACEOF
22437 cat confdefs.h >>conftest.$ac_ext
22438 cat >>conftest.$ac_ext <<_ACEOF
22439 /* end confdefs.h. */
22440 $ac_includes_default
22441 typedef off_t ac__type_new_;
22445 if ((ac__type_new_ *) 0)
22447 if (sizeof (ac__type_new_))
22453 rm -f conftest.$ac_objext
22454 if { (ac_try="$ac_compile"
22455 case "(($ac_try" in
22456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22457 *) ac_try_echo=$ac_try;;
22459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22460 (eval "$ac_compile") 2>conftest.er1
22462 grep -v '^ *+' conftest.er1 >conftest.err
22464 cat conftest.err >&5
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); } && {
22467 test -z "$ac_c_werror_flag" ||
22468 test ! -s conftest.err
22469 } && test -s conftest.$ac_objext; then
22470 ac_cv_type_off_t=yes
22472 echo "$as_me: failed program was:" >&5
22473 sed 's/^/| /' conftest.$ac_ext >&5
22475 ac_cv_type_off_t=no
22478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22480 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22481 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22482 if test $ac_cv_type_off_t = yes; then
22486 cat >>confdefs.h <<_ACEOF
22487 #define off_t long int
22492 { echo "$as_me:$LINENO: checking for pid_t" >&5
22493 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22494 if test "${ac_cv_type_pid_t+set}" = set; then
22495 echo $ECHO_N "(cached) $ECHO_C" >&6
22497 cat >conftest.$ac_ext <<_ACEOF
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h. */
22503 $ac_includes_default
22504 typedef pid_t ac__type_new_;
22508 if ((ac__type_new_ *) 0)
22510 if (sizeof (ac__type_new_))
22516 rm -f conftest.$ac_objext
22517 if { (ac_try="$ac_compile"
22518 case "(($ac_try" in
22519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22520 *) ac_try_echo=$ac_try;;
22522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22523 (eval "$ac_compile") 2>conftest.er1
22525 grep -v '^ *+' conftest.er1 >conftest.err
22527 cat conftest.err >&5
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); } && {
22530 test -z "$ac_c_werror_flag" ||
22531 test ! -s conftest.err
22532 } && test -s conftest.$ac_objext; then
22533 ac_cv_type_pid_t=yes
22535 echo "$as_me: failed program was:" >&5
22536 sed 's/^/| /' conftest.$ac_ext >&5
22538 ac_cv_type_pid_t=no
22541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22543 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22544 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22545 if test $ac_cv_type_pid_t = yes; then
22549 cat >>confdefs.h <<_ACEOF
22555 { echo "$as_me:$LINENO: checking for size_t" >&5
22556 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22557 if test "${ac_cv_type_size_t+set}" = set; then
22558 echo $ECHO_N "(cached) $ECHO_C" >&6
22560 cat >conftest.$ac_ext <<_ACEOF
22563 cat confdefs.h >>conftest.$ac_ext
22564 cat >>conftest.$ac_ext <<_ACEOF
22565 /* end confdefs.h. */
22566 $ac_includes_default
22567 typedef size_t ac__type_new_;
22571 if ((ac__type_new_ *) 0)
22573 if (sizeof (ac__type_new_))
22579 rm -f conftest.$ac_objext
22580 if { (ac_try="$ac_compile"
22581 case "(($ac_try" in
22582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22583 *) ac_try_echo=$ac_try;;
22585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22586 (eval "$ac_compile") 2>conftest.er1
22588 grep -v '^ *+' conftest.er1 >conftest.err
22590 cat conftest.err >&5
22591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592 (exit $ac_status); } && {
22593 test -z "$ac_c_werror_flag" ||
22594 test ! -s conftest.err
22595 } && test -s conftest.$ac_objext; then
22596 ac_cv_type_size_t=yes
22598 echo "$as_me: failed program was:" >&5
22599 sed 's/^/| /' conftest.$ac_ext >&5
22601 ac_cv_type_size_t=no
22604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22606 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22607 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22608 if test $ac_cv_type_size_t = yes; then
22612 cat >>confdefs.h <<_ACEOF
22613 #define size_t unsigned int
22618 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22619 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22620 if test "${ac_cv_type_uid_t+set}" = set; then
22621 echo $ECHO_N "(cached) $ECHO_C" >&6
22623 cat >conftest.$ac_ext <<_ACEOF
22626 cat confdefs.h >>conftest.$ac_ext
22627 cat >>conftest.$ac_ext <<_ACEOF
22628 /* end confdefs.h. */
22629 #include <sys/types.h>
22632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22633 $EGREP "uid_t" >/dev/null 2>&1; then
22634 ac_cv_type_uid_t=yes
22636 ac_cv_type_uid_t=no
22641 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22642 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22643 if test $ac_cv_type_uid_t = no; then
22645 cat >>confdefs.h <<\_ACEOF
22650 cat >>confdefs.h <<\_ACEOF
22658 { echo "$as_me:$LINENO: checking for socklen_t" >&5
22659 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22660 if test "${ac_cv_type_socklen_t+set}" = set; then
22661 echo $ECHO_N "(cached) $ECHO_C" >&6
22663 ac_cv_type_socklen_t=no
22664 cat >conftest.$ac_ext <<_ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h. */
22670 #ifdef HAVE_SYS_TYPES_H
22671 #include <sys/types.h>
22673 #ifdef HAVE_SYS_SOCKET_H
22674 #include <sys/socket.h>
22685 rm -f conftest.$ac_objext
22686 if { (ac_try="$ac_compile"
22687 case "(($ac_try" in
22688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22689 *) ac_try_echo=$ac_try;;
22691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22692 (eval "$ac_compile") 2>conftest.er1
22694 grep -v '^ *+' conftest.er1 >conftest.err
22696 cat conftest.err >&5
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); } && {
22699 test -z "$ac_c_werror_flag" ||
22700 test ! -s conftest.err
22701 } && test -s conftest.$ac_objext; then
22702 ac_cv_type_socklen_t=yes
22704 echo "$as_me: failed program was:" >&5
22705 sed 's/^/| /' conftest.$ac_ext >&5
22710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22714 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22715 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22717 if test "$ac_cv_type_socklen_t" != "yes"; then
22719 cat >>confdefs.h <<\_ACEOF
22720 #define socklen_t int
22727 { echo "$as_me:$LINENO: checking for uint8_t" >&5
22728 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
22729 if test "${ac_cv_type_uint8_t+set}" = set; then
22730 echo $ECHO_N "(cached) $ECHO_C" >&6
22732 ac_cv_type_uint8_t=no
22733 cat >conftest.$ac_ext <<_ACEOF
22736 cat confdefs.h >>conftest.$ac_ext
22737 cat >>conftest.$ac_ext <<_ACEOF
22738 /* end confdefs.h. */
22739 #ifdef HAVE_INTTYPES_H
22740 #include <inttypes.h>
22742 #ifdef HAVE_STDINT_H
22743 #include <stdint.h>
22754 rm -f conftest.$ac_objext
22755 if { (ac_try="$ac_compile"
22756 case "(($ac_try" in
22757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22758 *) ac_try_echo=$ac_try;;
22760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22761 (eval "$ac_compile") 2>conftest.er1
22763 grep -v '^ *+' conftest.er1 >conftest.err
22765 cat conftest.err >&5
22766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767 (exit $ac_status); } && {
22768 test -z "$ac_c_werror_flag" ||
22769 test ! -s conftest.err
22770 } && test -s conftest.$ac_objext; then
22771 ac_cv_type_uint8_t=yes
22773 echo "$as_me: failed program was:" >&5
22774 sed 's/^/| /' conftest.$ac_ext >&5
22779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22783 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22784 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
22786 if test "$ac_cv_type_uint8_t" != "yes"; then
22788 cat >>confdefs.h <<\_ACEOF
22789 #define uint8_t unsigned char
22796 { echo "$as_me:$LINENO: checking for uint16_t" >&5
22797 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22798 if test "${ac_cv_type_uint16_t+set}" = set; then
22799 echo $ECHO_N "(cached) $ECHO_C" >&6
22801 ac_cv_type_uint16_t=no
22802 cat >conftest.$ac_ext <<_ACEOF
22805 cat confdefs.h >>conftest.$ac_ext
22806 cat >>conftest.$ac_ext <<_ACEOF
22807 /* end confdefs.h. */
22808 #ifdef HAVE_INTTYPES_H
22809 #include <inttypes.h>
22811 #ifdef HAVE_STDINT_H
22812 #include <stdint.h>
22823 rm -f conftest.$ac_objext
22824 if { (ac_try="$ac_compile"
22825 case "(($ac_try" in
22826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22827 *) ac_try_echo=$ac_try;;
22829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22830 (eval "$ac_compile") 2>conftest.er1
22832 grep -v '^ *+' conftest.er1 >conftest.err
22834 cat conftest.err >&5
22835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22836 (exit $ac_status); } && {
22837 test -z "$ac_c_werror_flag" ||
22838 test ! -s conftest.err
22839 } && test -s conftest.$ac_objext; then
22840 ac_cv_type_uint16_t=yes
22842 echo "$as_me: failed program was:" >&5
22843 sed 's/^/| /' conftest.$ac_ext >&5
22848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22852 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22853 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22855 if test "$ac_cv_type_uint16_t" != "yes"; then
22857 cat >>confdefs.h <<\_ACEOF
22858 #define uint16_t unsigned short
22865 { echo "$as_me:$LINENO: checking for uint32_t" >&5
22866 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
22867 if test "${ac_cv_type_uint32_t+set}" = set; then
22868 echo $ECHO_N "(cached) $ECHO_C" >&6
22870 ac_cv_type_uint32_t=no
22871 cat >conftest.$ac_ext <<_ACEOF
22874 cat confdefs.h >>conftest.$ac_ext
22875 cat >>conftest.$ac_ext <<_ACEOF
22876 /* end confdefs.h. */
22877 #ifdef HAVE_INTTYPES_H
22878 #include <inttypes.h>
22880 #ifdef HAVE_STDINT_H
22881 #include <stdint.h>
22892 rm -f conftest.$ac_objext
22893 if { (ac_try="$ac_compile"
22894 case "(($ac_try" in
22895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22896 *) ac_try_echo=$ac_try;;
22898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22899 (eval "$ac_compile") 2>conftest.er1
22901 grep -v '^ *+' conftest.er1 >conftest.err
22903 cat conftest.err >&5
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); } && {
22906 test -z "$ac_c_werror_flag" ||
22907 test ! -s conftest.err
22908 } && test -s conftest.$ac_objext; then
22909 ac_cv_type_uint32_t=yes
22911 echo "$as_me: failed program was:" >&5
22912 sed 's/^/| /' conftest.$ac_ext >&5
22917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22921 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22922 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
22924 if test "$ac_cv_type_uint32_t" != "yes"; then
22926 cat >>confdefs.h <<\_ACEOF
22927 #define uint32_t unsigned int
22933 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
22934 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
22935 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
22936 echo $ECHO_N "(cached) $ECHO_C" >&6
22938 cat >conftest.$ac_ext <<_ACEOF
22941 cat confdefs.h >>conftest.$ac_ext
22942 cat >>conftest.$ac_ext <<_ACEOF
22943 /* end confdefs.h. */
22945 #ifdef HAVE_NETINET_IN_H
22946 #include <netinet/in.h>
22950 typedef struct in6_addr ac__type_new_;
22954 if ((ac__type_new_ *) 0)
22956 if (sizeof (ac__type_new_))
22962 rm -f conftest.$ac_objext
22963 if { (ac_try="$ac_compile"
22964 case "(($ac_try" in
22965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22966 *) ac_try_echo=$ac_try;;
22968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22969 (eval "$ac_compile") 2>conftest.er1
22971 grep -v '^ *+' conftest.er1 >conftest.err
22973 cat conftest.err >&5
22974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); } && {
22976 test -z "$ac_c_werror_flag" ||
22977 test ! -s conftest.err
22978 } && test -s conftest.$ac_objext; then
22979 ac_cv_type_struct_in6_addr=yes
22981 echo "$as_me: failed program was:" >&5
22982 sed 's/^/| /' conftest.$ac_ext >&5
22984 ac_cv_type_struct_in6_addr=no
22987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22989 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
22990 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
22991 if test $ac_cv_type_struct_in6_addr = yes; then
22993 cat >>confdefs.h <<\_ACEOF
22994 #define HAVE_STRUCT_IN6_ADDR 1
23000 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23001 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
23002 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
23003 echo $ECHO_N "(cached) $ECHO_C" >&6
23005 cat >conftest.$ac_ext <<_ACEOF
23008 cat confdefs.h >>conftest.$ac_ext
23009 cat >>conftest.$ac_ext <<_ACEOF
23010 /* end confdefs.h. */
23012 #ifdef HAVE_NETINET_IN_H
23013 #include <netinet/in.h>
23015 #ifdef HAVE_SYS_SOCKET_H
23016 #include <sys/socket.h>
23020 typedef struct sockaddr_storage ac__type_new_;
23024 if ((ac__type_new_ *) 0)
23026 if (sizeof (ac__type_new_))
23032 rm -f conftest.$ac_objext
23033 if { (ac_try="$ac_compile"
23034 case "(($ac_try" in
23035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23036 *) ac_try_echo=$ac_try;;
23038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23039 (eval "$ac_compile") 2>conftest.er1
23041 grep -v '^ *+' conftest.er1 >conftest.err
23043 cat conftest.err >&5
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); } && {
23046 test -z "$ac_c_werror_flag" ||
23047 test ! -s conftest.err
23048 } && test -s conftest.$ac_objext; then
23049 ac_cv_type_struct_sockaddr_storage=yes
23051 echo "$as_me: failed program was:" >&5
23052 sed 's/^/| /' conftest.$ac_ext >&5
23054 ac_cv_type_struct_sockaddr_storage=no
23057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23059 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
23060 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
23061 if test $ac_cv_type_struct_sockaddr_storage = yes; then
23063 cat >>confdefs.h <<\_ACEOF
23064 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
23070 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23071 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
23072 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
23073 echo $ECHO_N "(cached) $ECHO_C" >&6
23075 cat >conftest.$ac_ext <<_ACEOF
23078 cat confdefs.h >>conftest.$ac_ext
23079 cat >>conftest.$ac_ext <<_ACEOF
23080 /* end confdefs.h. */
23082 #ifdef HAVE_NETINET_IN_H
23083 #include <netinet/in.h>
23087 typedef struct sockaddr_in6 ac__type_new_;
23091 if ((ac__type_new_ *) 0)
23093 if (sizeof (ac__type_new_))
23099 rm -f conftest.$ac_objext
23100 if { (ac_try="$ac_compile"
23101 case "(($ac_try" in
23102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23103 *) ac_try_echo=$ac_try;;
23105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23106 (eval "$ac_compile") 2>conftest.er1
23108 grep -v '^ *+' conftest.er1 >conftest.err
23110 cat conftest.err >&5
23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); } && {
23113 test -z "$ac_c_werror_flag" ||
23114 test ! -s conftest.err
23115 } && test -s conftest.$ac_objext; then
23116 ac_cv_type_struct_sockaddr_in6=yes
23118 echo "$as_me: failed program was:" >&5
23119 sed 's/^/| /' conftest.$ac_ext >&5
23121 ac_cv_type_struct_sockaddr_in6=no
23124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23126 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
23127 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
23128 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
23130 cat >>confdefs.h <<\_ACEOF
23131 #define HAVE_STRUCT_SOCKADDR_IN6 1
23137 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
23138 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
23139 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
23140 echo $ECHO_N "(cached) $ECHO_C" >&6
23142 cat >conftest.$ac_ext <<_ACEOF
23145 cat confdefs.h >>conftest.$ac_ext
23146 cat >>conftest.$ac_ext <<_ACEOF
23147 /* end confdefs.h. */
23149 #ifdef HAVE_SYS_TYPES_H
23150 #include <sys/types.h>
23152 #ifdef HAVE_SYS_SOCKET_H
23153 #include <sys/socket.h>
23155 #ifdef HAVE_NETDB_H
23160 typedef struct addrinfo ac__type_new_;
23164 if ((ac__type_new_ *) 0)
23166 if (sizeof (ac__type_new_))
23172 rm -f conftest.$ac_objext
23173 if { (ac_try="$ac_compile"
23174 case "(($ac_try" in
23175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23176 *) ac_try_echo=$ac_try;;
23178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23179 (eval "$ac_compile") 2>conftest.er1
23181 grep -v '^ *+' conftest.er1 >conftest.err
23183 cat conftest.err >&5
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); } && {
23186 test -z "$ac_c_werror_flag" ||
23187 test ! -s conftest.err
23188 } && test -s conftest.$ac_objext; then
23189 ac_cv_type_struct_addrinfo=yes
23191 echo "$as_me: failed program was:" >&5
23192 sed 's/^/| /' conftest.$ac_ext >&5
23194 ac_cv_type_struct_addrinfo=no
23197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23199 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
23200 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
23201 if test $ac_cv_type_struct_addrinfo = yes; then
23203 cat >>confdefs.h <<\_ACEOF
23204 #define HAVE_STRUCT_ADDRINFO 1
23269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23273 echo $ECHO_N "(cached) $ECHO_C" >&6
23275 cat >conftest.$ac_ext <<_ACEOF
23278 cat confdefs.h >>conftest.$ac_ext
23279 cat >>conftest.$ac_ext <<_ACEOF
23280 /* end confdefs.h. */
23281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23283 #define $ac_func innocuous_$ac_func
23285 /* System header to define __stub macros and hopefully few prototypes,
23286 which can conflict with char $ac_func (); below.
23287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23288 <limits.h> exists even on freestanding compilers. */
23291 # include <limits.h>
23293 # include <assert.h>
23298 /* Override any GCC internal prototype to avoid an error.
23299 Use char because int might match the return type of a GCC
23300 builtin and then its argument prototype would still apply. */
23305 /* The GNU C library defines this for functions which it implements
23306 to always fail with ENOSYS. Some functions are actually named
23307 something starting with __ and the normal name is an alias. */
23308 #if defined __stub_$ac_func || defined __stub___$ac_func
23315 return $ac_func ();
23320 rm -f conftest.$ac_objext conftest$ac_exeext
23321 if { (ac_try="$ac_link"
23322 case "(($ac_try" in
23323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23324 *) ac_try_echo=$ac_try;;
23326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23327 (eval "$ac_link") 2>conftest.er1
23329 grep -v '^ *+' conftest.er1 >conftest.err
23331 cat conftest.err >&5
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } && {
23334 test -z "$ac_c_werror_flag" ||
23335 test ! -s conftest.err
23336 } && test -s conftest$ac_exeext &&
23337 $as_test_x conftest$ac_exeext; then
23338 eval "$as_ac_var=yes"
23340 echo "$as_me: failed program was:" >&5
23341 sed 's/^/| /' conftest.$ac_ext >&5
23343 eval "$as_ac_var=no"
23346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23347 conftest$ac_exeext conftest.$ac_ext
23349 ac_res=`eval echo '${'$as_ac_var'}'`
23350 { echo "$as_me:$LINENO: result: $ac_res" >&5
23351 echo "${ECHO_T}$ac_res" >&6; }
23352 if test `eval echo '${'$as_ac_var'}'` = yes; then
23353 cat >>confdefs.h <<_ACEOF
23354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23370 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23371 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
23372 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
23373 echo $ECHO_N "(cached) $ECHO_C" >&6
23375 cat >conftest.$ac_ext <<_ACEOF
23378 cat confdefs.h >>conftest.$ac_ext
23379 cat >>conftest.$ac_ext <<_ACEOF
23380 /* end confdefs.h. */
23383 #include <string.h>
23384 #ifdef HAVE_UNISTD_H
23385 #include <unistd.h>
23387 #ifdef HAVE_CRYPT_H
23390 #ifdef HAVE_ERRNO_H
23393 #ifdef HAVE_RESOURCE_H
23394 #include <resource.h>
23396 #ifdef HAVE_GETOPT_H
23397 #include <getopt.h>
23399 #ifdef HAVE_MALLOC_H
23400 #include <malloc.h>
23405 #ifdef HAVE_UTMPX_H
23408 #ifdef HAVE_SYS_SELECT_H
23409 #include <sys/select.h>
23411 #ifdef HAVE_DLFCN_H
23414 #ifdef HAVE_REGEX_H
23417 #ifdef HAVE_SYSLOG_H
23418 #include <syslog.h>
23420 #ifdef HAVE_INTTYPES_H
23421 #include <inttypes.h>
23423 #ifdef HAVE_STDINT_H
23424 #include <stdint.h>
23426 #ifdef HAVE_ARPA_INET_H
23427 #include <arpa/inet.h>
23433 char *(*pfn) = (char *(*)) $ac_func
23438 rm -f conftest.$ac_objext
23439 if { (ac_try="$ac_compile"
23440 case "(($ac_try" in
23441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23442 *) ac_try_echo=$ac_try;;
23444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23445 (eval "$ac_compile") 2>conftest.er1
23447 grep -v '^ *+' conftest.er1 >conftest.err
23449 cat conftest.err >&5
23450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451 (exit $ac_status); } && {
23452 test -z "$ac_c_werror_flag" ||
23453 test ! -s conftest.err
23454 } && test -s conftest.$ac_objext; then
23455 eval "radius_cv_decl_needed_$ac_func=no"
23457 echo "$as_me: failed program was:" >&5
23458 sed 's/^/| /' conftest.$ac_ext >&5
23460 eval "radius_cv_decl_needed_$ac_func=yes"
23463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23466 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23467 { echo "$as_me:$LINENO: result: yes" >&5
23468 echo "${ECHO_T}yes" >&6; }
23469 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23470 cat >>confdefs.h <<_ACEOF
23471 #define $radius_tr_decl 1
23475 { echo "$as_me:$LINENO: result: no" >&5
23476 echo "${ECHO_T}no" >&6; }
23482 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23483 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
23484 if test "${ac_cv_type_signal+set}" = set; then
23485 echo $ECHO_N "(cached) $ECHO_C" >&6
23487 cat >conftest.$ac_ext <<_ACEOF
23490 cat confdefs.h >>conftest.$ac_ext
23491 cat >>conftest.$ac_ext <<_ACEOF
23492 /* end confdefs.h. */
23493 #include <sys/types.h>
23494 #include <signal.h>
23499 return *(signal (0, 0)) (0) == 1;
23504 rm -f conftest.$ac_objext
23505 if { (ac_try="$ac_compile"
23506 case "(($ac_try" in
23507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23508 *) ac_try_echo=$ac_try;;
23510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23511 (eval "$ac_compile") 2>conftest.er1
23513 grep -v '^ *+' conftest.er1 >conftest.err
23515 cat conftest.err >&5
23516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517 (exit $ac_status); } && {
23518 test -z "$ac_c_werror_flag" ||
23519 test ! -s conftest.err
23520 } && test -s conftest.$ac_objext; then
23521 ac_cv_type_signal=int
23523 echo "$as_me: failed program was:" >&5
23524 sed 's/^/| /' conftest.$ac_ext >&5
23526 ac_cv_type_signal=void
23529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23531 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23532 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
23534 cat >>confdefs.h <<_ACEOF
23535 #define RETSIGTYPE $ac_cv_type_signal
23540 if test "x$ac_cv_header_utmpx_h" = "xyes"
23543 { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23544 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
23547 cat >conftest.$ac_ext <<_ACEOF
23550 cat confdefs.h >>conftest.$ac_ext
23551 cat >>conftest.$ac_ext <<_ACEOF
23552 /* end confdefs.h. */
23556 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23562 int foo = offsetof(struct utmpx, ut_xtime)
23567 rm -f conftest.$ac_objext
23568 if { (ac_try="$ac_compile"
23569 case "(($ac_try" in
23570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23571 *) ac_try_echo=$ac_try;;
23573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23574 (eval "$ac_compile") 2>conftest.er1
23576 grep -v '^ *+' conftest.er1 >conftest.err
23578 cat conftest.err >&5
23579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580 (exit $ac_status); } && {
23581 test -z "$ac_c_werror_flag" ||
23582 test ! -s conftest.err
23583 } && test -s conftest.$ac_objext; then
23586 echo "$as_me: failed program was:" >&5
23587 sed 's/^/| /' conftest.$ac_ext >&5
23592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23594 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23595 if test "x$has_element" != "x"; then
23596 { echo "$as_me:$LINENO: result: yes" >&5
23597 echo "${ECHO_T}yes" >&6; }
23598 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23600 { echo "$as_me:$LINENO: result: no" >&5
23601 echo "${ECHO_T}no" >&6; }
23602 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23605 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23608 cat >>confdefs.h <<\_ACEOF
23609 #define ut_xtime ut_tv.tv_sec
23616 { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23617 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
23620 cat >conftest.$ac_ext <<_ACEOF
23623 cat confdefs.h >>conftest.$ac_ext
23624 cat >>conftest.$ac_ext <<_ACEOF
23625 /* end confdefs.h. */
23627 #include <netinet/in.h>
23629 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23635 int foo = offsetof(struct in_pktinfo, ipi_addr)
23640 rm -f conftest.$ac_objext
23641 if { (ac_try="$ac_compile"
23642 case "(($ac_try" in
23643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23644 *) ac_try_echo=$ac_try;;
23646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23647 (eval "$ac_compile") 2>conftest.er1
23649 grep -v '^ *+' conftest.er1 >conftest.err
23651 cat conftest.err >&5
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); } && {
23654 test -z "$ac_c_werror_flag" ||
23655 test ! -s conftest.err
23656 } && test -s conftest.$ac_objext; then
23659 echo "$as_me: failed program was:" >&5
23660 sed 's/^/| /' conftest.$ac_ext >&5
23665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23667 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23668 if test "x$has_element" != "x"; then
23669 { echo "$as_me:$LINENO: result: yes" >&5
23670 echo "${ECHO_T}yes" >&6; }
23671 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23673 { echo "$as_me:$LINENO: result: no" >&5
23674 echo "${ECHO_T}no" >&6; }
23675 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23678 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23681 cat >>confdefs.h <<\_ACEOF
23682 #define HAVE_IP_PKTINFO
23688 { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
23689 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
23692 cat >conftest.$ac_ext <<_ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h. */
23699 #include <netinet/in.h>
23701 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23707 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
23712 rm -f conftest.$ac_objext
23713 if { (ac_try="$ac_compile"
23714 case "(($ac_try" in
23715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23716 *) ac_try_echo=$ac_try;;
23718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23719 (eval "$ac_compile") 2>conftest.er1
23721 grep -v '^ *+' conftest.er1 >conftest.err
23723 cat conftest.err >&5
23724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725 (exit $ac_status); } && {
23726 test -z "$ac_c_werror_flag" ||
23727 test ! -s conftest.err
23728 } && test -s conftest.$ac_objext; then
23731 echo "$as_me: failed program was:" >&5
23732 sed 's/^/| /' conftest.$ac_ext >&5
23737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23739 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
23740 if test "x$has_element" != "x"; then
23741 { echo "$as_me:$LINENO: result: yes" >&5
23742 echo "${ECHO_T}yes" >&6; }
23743 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
23745 { echo "$as_me:$LINENO: result: no" >&5
23746 echo "${ECHO_T}no" >&6; }
23747 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
23750 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
23753 cat >>confdefs.h <<\_ACEOF
23754 #define HAVE_IN6_PKTINFO
23760 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23761 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23762 if test "${ac_cv_c_const+set}" = set; then
23763 echo $ECHO_N "(cached) $ECHO_C" >&6
23765 cat >conftest.$ac_ext <<_ACEOF
23768 cat confdefs.h >>conftest.$ac_ext
23769 cat >>conftest.$ac_ext <<_ACEOF
23770 /* end confdefs.h. */
23775 /* FIXME: Include the comments suggested by Paul. */
23776 #ifndef __cplusplus
23777 /* Ultrix mips cc rejects this. */
23778 typedef int charset[2];
23780 /* SunOS 4.1.1 cc rejects this. */
23781 char const *const *pcpcc;
23783 /* NEC SVR4.0.2 mips cc rejects this. */
23784 struct point {int x, y;};
23785 static struct point const zero = {0,0};
23786 /* AIX XL C 1.02.0.0 rejects this.
23787 It does not let you subtract one const X* pointer from another in
23788 an arm of an if-expression whose if-part is not a constant
23790 const char *g = "string";
23791 pcpcc = &g + (g ? g-g : 0);
23792 /* HPUX 7.0 cc rejects these. */
23794 ppc = (char**) pcpcc;
23795 pcpcc = (char const *const *) ppc;
23796 { /* SCO 3.2v4 cc rejects this. */
23798 char const *s = 0 ? (char *) 0 : (char const *) 0;
23803 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23804 int x[] = {25, 17};
23805 const int *foo = &x[0];
23808 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23809 typedef const int *iptr;
23813 { /* AIX XL C 1.02.0.0 rejects this saying
23814 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23815 struct s { int j; const int *ap[3]; };
23816 struct s *b; b->j = 5;
23818 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23819 const int foo = 10;
23820 if (!foo) return 0;
23822 return !cs[0] && !zero.x;
23829 rm -f conftest.$ac_objext
23830 if { (ac_try="$ac_compile"
23831 case "(($ac_try" in
23832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833 *) ac_try_echo=$ac_try;;
23835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23836 (eval "$ac_compile") 2>conftest.er1
23838 grep -v '^ *+' conftest.er1 >conftest.err
23840 cat conftest.err >&5
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); } && {
23843 test -z "$ac_c_werror_flag" ||
23844 test ! -s conftest.err
23845 } && test -s conftest.$ac_objext; then
23848 echo "$as_me: failed program was:" >&5
23849 sed 's/^/| /' conftest.$ac_ext >&5
23854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23856 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23857 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23858 if test $ac_cv_c_const = no; then
23860 cat >>confdefs.h <<\_ACEOF
23867 { echo "$as_me:$LINENO: checking type of OS" >&5
23868 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
23870 { echo "$as_me:$LINENO: result: $OS" >&5
23871 echo "${ECHO_T}$OS" >&6; }
23872 if test "$OS" = "OS/2"; then
23879 if test "x$GCC" = "xyes"; then
23880 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
23883 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
23884 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
23885 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
23886 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
23887 CFLAGS="$CFLAGS $devflags"
23889 { echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
23890 echo "${ECHO_T}yes. Using $devflags" >&6; }
23893 CFLAGS="$CFLAGS -DNDEBUG"
23895 { echo "$as_me:$LINENO: result: no." >&5
23896 echo "${ECHO_T}no." >&6; }
23900 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23901 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
23902 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23903 echo $ECHO_N "(cached) $ECHO_C" >&6
23905 ac_check_lib_save_LIBS=$LIBS
23906 LIBS="-lcrypt $LIBS"
23907 cat >conftest.$ac_ext <<_ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h. */
23914 /* Override any GCC internal prototype to avoid an error.
23915 Use char because int might match the return type of a GCC
23916 builtin and then its argument prototype would still apply. */
23929 rm -f conftest.$ac_objext conftest$ac_exeext
23930 if { (ac_try="$ac_link"
23931 case "(($ac_try" in
23932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23933 *) ac_try_echo=$ac_try;;
23935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23936 (eval "$ac_link") 2>conftest.er1
23938 grep -v '^ *+' conftest.er1 >conftest.err
23940 cat conftest.err >&5
23941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); } && {
23943 test -z "$ac_c_werror_flag" ||
23944 test ! -s conftest.err
23945 } && test -s conftest$ac_exeext &&
23946 $as_test_x conftest$ac_exeext; then
23947 ac_cv_lib_crypt_crypt=yes
23949 echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.$ac_ext >&5
23952 ac_cv_lib_crypt_crypt=no
23955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23956 conftest$ac_exeext conftest.$ac_ext
23957 LIBS=$ac_check_lib_save_LIBS
23959 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23960 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
23961 if test $ac_cv_lib_crypt_crypt = yes; then
23966 if test "$CRYPTLIB" != ""; then
23968 cat >>confdefs.h <<\_ACEOF
23973 { echo "$as_me:$LINENO: checking for crypt" >&5
23974 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
23975 if test "${ac_cv_func_crypt+set}" = set; then
23976 echo $ECHO_N "(cached) $ECHO_C" >&6
23978 cat >conftest.$ac_ext <<_ACEOF
23981 cat confdefs.h >>conftest.$ac_ext
23982 cat >>conftest.$ac_ext <<_ACEOF
23983 /* end confdefs.h. */
23984 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
23985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23986 #define crypt innocuous_crypt
23988 /* System header to define __stub macros and hopefully few prototypes,
23989 which can conflict with char crypt (); below.
23990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23991 <limits.h> exists even on freestanding compilers. */
23994 # include <limits.h>
23996 # include <assert.h>
24001 /* Override any GCC internal prototype to avoid an error.
24002 Use char because int might match the return type of a GCC
24003 builtin and then its argument prototype would still apply. */
24008 /* The GNU C library defines this for functions which it implements
24009 to always fail with ENOSYS. Some functions are actually named
24010 something starting with __ and the normal name is an alias. */
24011 #if defined __stub_crypt || defined __stub___crypt
24023 rm -f conftest.$ac_objext conftest$ac_exeext
24024 if { (ac_try="$ac_link"
24025 case "(($ac_try" in
24026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24027 *) ac_try_echo=$ac_try;;
24029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24030 (eval "$ac_link") 2>conftest.er1
24032 grep -v '^ *+' conftest.er1 >conftest.err
24034 cat conftest.err >&5
24035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036 (exit $ac_status); } && {
24037 test -z "$ac_c_werror_flag" ||
24038 test ! -s conftest.err
24039 } && test -s conftest$ac_exeext &&
24040 $as_test_x conftest$ac_exeext; then
24041 ac_cv_func_crypt=yes
24043 echo "$as_me: failed program was:" >&5
24044 sed 's/^/| /' conftest.$ac_ext >&5
24046 ac_cv_func_crypt=no
24049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24050 conftest$ac_exeext conftest.$ac_ext
24052 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
24053 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
24054 if test $ac_cv_func_crypt = yes; then
24056 cat >>confdefs.h <<\_ACEOF
24064 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
24065 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
24066 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
24067 echo $ECHO_N "(cached) $ECHO_C" >&6
24069 ac_check_lib_save_LIBS=$LIBS
24070 LIBS="-lcipher $LIBS"
24071 cat >conftest.$ac_ext <<_ACEOF
24074 cat confdefs.h >>conftest.$ac_ext
24075 cat >>conftest.$ac_ext <<_ACEOF
24076 /* end confdefs.h. */
24078 /* Override any GCC internal prototype to avoid an error.
24079 Use char because int might match the return type of a GCC
24080 builtin and then its argument prototype would still apply. */
24093 rm -f conftest.$ac_objext conftest$ac_exeext
24094 if { (ac_try="$ac_link"
24095 case "(($ac_try" in
24096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24097 *) ac_try_echo=$ac_try;;
24099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24100 (eval "$ac_link") 2>conftest.er1
24102 grep -v '^ *+' conftest.er1 >conftest.err
24104 cat conftest.err >&5
24105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106 (exit $ac_status); } && {
24107 test -z "$ac_c_werror_flag" ||
24108 test ! -s conftest.err
24109 } && test -s conftest$ac_exeext &&
24110 $as_test_x conftest$ac_exeext; then
24111 ac_cv_lib_cipher_setkey=yes
24113 echo "$as_me: failed program was:" >&5
24114 sed 's/^/| /' conftest.$ac_ext >&5
24116 ac_cv_lib_cipher_setkey=no
24119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24120 conftest$ac_exeext conftest.$ac_ext
24121 LIBS=$ac_check_lib_save_LIBS
24123 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
24124 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
24125 if test $ac_cv_lib_cipher_setkey = yes; then
24126 CRYPTLIB="${CRYPTLIB} -lcipher"
24132 if test "x$WITH_SNMP" = "xyes"; then
24137 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
24138 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
24140 cat >conftest.$ac_ext <<_ACEOF
24143 cat confdefs.h >>conftest.$ac_ext
24144 cat >>conftest.$ac_ext <<_ACEOF
24145 /* end confdefs.h. */
24147 #ifdef HAVE_SYS_TYPES_H
24148 #include <sys/types.h>
24150 #ifdef HAVE_STDINT_H
24151 #include <stdint.h>
24153 #ifdef HAVE_STDIO_H
24156 #ifdef HAVE_NETDB_H
24159 #ifdef HAVE_UNISTD_H
24160 #include <unistd.h>
24162 #include <ucd-snmp/ucd-snmp-config.h>
24163 #include <ucd-snmp/asn1.h>
24164 #include <ucd-snmp/snmp.h>
24165 #include <ucd-snmp/snmp_impl.h>
24174 rm -f conftest.$ac_objext
24175 if { (ac_try="$ac_compile"
24176 case "(($ac_try" in
24177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24178 *) ac_try_echo=$ac_try;;
24180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24181 (eval "$ac_compile") 2>conftest.er1
24183 grep -v '^ *+' conftest.er1 >conftest.err
24185 cat conftest.err >&5
24186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187 (exit $ac_status); } && {
24188 test -z "$ac_c_werror_flag" ||
24189 test ! -s conftest.err
24190 } && test -s conftest.$ac_objext; then
24191 SNMP_INCLUDE="";ucdsnmp=yes
24193 echo "$as_me: failed program was:" >&5
24194 sed 's/^/| /' conftest.$ac_ext >&5
24199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24201 if test "x$ucdsnmp" = "x"; then
24202 old_CFLAGS="$CFLAGS"
24203 for try in /usr/include /usr/local/include $snmp_include_dir; do
24204 CFLAGS="$old_CFLAGS -I$try"
24205 cat >conftest.$ac_ext <<_ACEOF
24208 cat confdefs.h >>conftest.$ac_ext
24209 cat >>conftest.$ac_ext <<_ACEOF
24210 /* end confdefs.h. */
24212 #ifdef HAVE_SYS_TYPES_H
24213 #include <sys/types.h>
24215 #ifdef HAVE_STDINT_H
24216 #include <stdint.h>
24218 #ifdef HAVE_STDIO_H
24221 #ifdef HAVE_NETDB_H
24224 #ifdef HAVE_UNISTD_H
24225 #include <unistd.h>
24227 #include <ucd-snmp/ucd-snmp-config.h>
24228 #include <ucd-snmp/asn1.h>
24229 #include <ucd-snmp/snmp.h>
24230 #include <ucd-snmp/snmp_impl.h>
24239 rm -f conftest.$ac_objext
24240 if { (ac_try="$ac_compile"
24241 case "(($ac_try" in
24242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24243 *) ac_try_echo=$ac_try;;
24245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24246 (eval "$ac_compile") 2>conftest.er1
24248 grep -v '^ *+' conftest.er1 >conftest.err
24250 cat conftest.err >&5
24251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); } && {
24253 test -z "$ac_c_werror_flag" ||
24254 test ! -s conftest.err
24255 } && test -s conftest.$ac_objext; then
24256 SNMP_INCLUDE="-I$try";ucdsnmp=yes
24258 echo "$as_me: failed program was:" >&5
24259 sed 's/^/| /' conftest.$ac_ext >&5
24264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24265 if test "x$ucdsnmp" != "x"; then
24269 CFLAGS="$old_CFLAGS"
24272 if test "x$ucdsnmp" = "x"; then
24273 old_CFLAGS="$CFLAGS"
24274 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24275 CFLAGS="$old_CFLAGS -I$try"
24276 cat >conftest.$ac_ext <<_ACEOF
24279 cat confdefs.h >>conftest.$ac_ext
24280 cat >>conftest.$ac_ext <<_ACEOF
24281 /* end confdefs.h. */
24283 #ifdef HAVE_SYS_TYPES_H
24284 #include <sys/types.h>
24286 #ifdef HAVE_STDINT_H
24287 #include <stdint.h>
24289 #ifdef HAVE_STDIO_H
24292 #ifdef HAVE_NETDB_H
24295 #ifdef HAVE_UNISTD_H
24296 #include <unistd.h>
24300 #include <snmp_impl.h>
24309 rm -f conftest.$ac_objext
24310 if { (ac_try="$ac_compile"
24311 case "(($ac_try" in
24312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24313 *) ac_try_echo=$ac_try;;
24315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24316 (eval "$ac_compile") 2>conftest.er1
24318 grep -v '^ *+' conftest.er1 >conftest.err
24320 cat conftest.err >&5
24321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 (exit $ac_status); } && {
24323 test -z "$ac_c_werror_flag" ||
24324 test ! -s conftest.err
24325 } && test -s conftest.$ac_objext; then
24326 SNMP_INCLUDE="";ucdsnmp=no
24328 echo "$as_me: failed program was:" >&5
24329 sed 's/^/| /' conftest.$ac_ext >&5
24334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24335 if test "x$ucdsnmp" != "x"; then
24339 CFLAGS="$old_CFLAGS"
24342 if test "x$ucdsnmp" = "x"; then
24343 old_CFLAGS="$CFLAGS"
24344 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24345 CFLAGS="$old_CFLAGS -I$try"
24346 cat >conftest.$ac_ext <<_ACEOF
24349 cat confdefs.h >>conftest.$ac_ext
24350 cat >>conftest.$ac_ext <<_ACEOF
24351 /* end confdefs.h. */
24353 #ifdef HAVE_SYS_TYPES_H
24354 #include <sys/types.h>
24356 #ifdef HAVE_STDINT_H
24357 #include <stdint.h>
24359 #ifdef HAVE_STDIO_H
24362 #ifdef HAVE_NETDB_H
24365 #ifdef HAVE_UNISTD_H
24366 #include <unistd.h>
24370 #include <snmp_impl.h>
24379 rm -f conftest.$ac_objext
24380 if { (ac_try="$ac_compile"
24381 case "(($ac_try" in
24382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24383 *) ac_try_echo=$ac_try;;
24385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24386 (eval "$ac_compile") 2>conftest.er1
24388 grep -v '^ *+' conftest.er1 >conftest.err
24390 cat conftest.err >&5
24391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392 (exit $ac_status); } && {
24393 test -z "$ac_c_werror_flag" ||
24394 test ! -s conftest.err
24395 } && test -s conftest.$ac_objext; then
24396 SNMP_INCLUDE="-I$try";ucdsnmp=no
24398 echo "$as_me: failed program was:" >&5
24399 sed 's/^/| /' conftest.$ac_ext >&5
24404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24405 if test "x$ucdsnmp" != "x"; then
24409 CFLAGS="$old_CFLAGS"
24412 if test "x$ucdsnmp" = "x"; then
24413 { echo "$as_me:$LINENO: result: no" >&5
24414 echo "${ECHO_T}no" >&6; }
24416 if test "x$ucdsnmp" = "xyes"; then
24417 { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
24418 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
24420 cat >>confdefs.h <<\_ACEOF
24421 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
24425 { echo "$as_me:$LINENO: result: yes" >&5
24426 echo "${ECHO_T}yes" >&6; }
24428 cat >>confdefs.h <<\_ACEOF
24429 #define HAVE_ASN1_SNMP_SNMPIMPL_H
24433 { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
24434 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
24437 LIBS="$old_LIBS -lsnmp"
24438 cat >conftest.$ac_ext <<_ACEOF
24441 cat confdefs.h >>conftest.$ac_ext
24442 cat >>conftest.$ac_ext <<_ACEOF
24443 /* end confdefs.h. */
24444 extern char snmp_build_var_op();
24448 snmp_build_var_op()
24453 rm -f conftest.$ac_objext conftest$ac_exeext
24454 if { (ac_try="$ac_link"
24455 case "(($ac_try" in
24456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24457 *) ac_try_echo=$ac_try;;
24459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24460 (eval "$ac_link") 2>conftest.er1
24462 grep -v '^ *+' conftest.er1 >conftest.err
24464 cat conftest.err >&5
24465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); } && {
24467 test -z "$ac_c_werror_flag" ||
24468 test ! -s conftest.err
24469 } && test -s conftest$ac_exeext &&
24470 $as_test_x conftest$ac_exeext; then
24473 echo "$as_me: failed program was:" >&5
24474 sed 's/^/| /' conftest.$ac_ext >&5
24479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24480 conftest$ac_exeext conftest.$ac_ext
24482 if test "x$SNMP_LIBS" = "x"; then
24483 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
24484 LIBS="$old_LIBS -L$try -lsnmp"
24485 cat >conftest.$ac_ext <<_ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h. */
24491 extern char snmp_build_var_op();
24495 snmp_build_var_op()
24500 rm -f conftest.$ac_objext conftest$ac_exeext
24501 if { (ac_try="$ac_link"
24502 case "(($ac_try" in
24503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24504 *) ac_try_echo=$ac_try;;
24506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24507 (eval "$ac_link") 2>conftest.er1
24509 grep -v '^ *+' conftest.er1 >conftest.err
24511 cat conftest.err >&5
24512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513 (exit $ac_status); } && {
24514 test -z "$ac_c_werror_flag" ||
24515 test ! -s conftest.err
24516 } && test -s conftest$ac_exeext &&
24517 $as_test_x conftest$ac_exeext; then
24518 SNMP_LIBS="-L$try -lsnmp"
24520 echo "$as_me: failed program was:" >&5
24521 sed 's/^/| /' conftest.$ac_ext >&5
24526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24527 conftest$ac_exeext conftest.$ac_ext
24528 if test "x$SNMP_LIBS" != "x"; then
24531 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24532 cat >conftest.$ac_ext <<_ACEOF
24535 cat confdefs.h >>conftest.$ac_ext
24536 cat >>conftest.$ac_ext <<_ACEOF
24537 /* end confdefs.h. */
24538 extern char snmp_build_var_op();
24542 snmp_build_var_op()
24547 rm -f conftest.$ac_objext conftest$ac_exeext
24548 if { (ac_try="$ac_link"
24549 case "(($ac_try" in
24550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24551 *) ac_try_echo=$ac_try;;
24553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24554 (eval "$ac_link") 2>conftest.er1
24556 grep -v '^ *+' conftest.er1 >conftest.err
24558 cat conftest.err >&5
24559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560 (exit $ac_status); } && {
24561 test -z "$ac_c_werror_flag" ||
24562 test ! -s conftest.err
24563 } && test -s conftest$ac_exeext &&
24564 $as_test_x conftest$ac_exeext; then
24565 SNMP_LIBS="-L$try -lsnmp -lcrypto"
24567 echo "$as_me: failed program was:" >&5
24568 sed 's/^/| /' conftest.$ac_ext >&5
24573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24574 conftest$ac_exeext conftest.$ac_ext
24575 if test "x$SNMP_LIBS" != "x"; then
24578 LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
24579 cat >conftest.$ac_ext <<_ACEOF
24582 cat confdefs.h >>conftest.$ac_ext
24583 cat >>conftest.$ac_ext <<_ACEOF
24584 /* end confdefs.h. */
24585 extern char snmp_build_var_op();
24589 snmp_build_var_op()
24594 rm -f conftest.$ac_objext conftest$ac_exeext
24595 if { (ac_try="$ac_link"
24596 case "(($ac_try" in
24597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24598 *) ac_try_echo=$ac_try;;
24600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24601 (eval "$ac_link") 2>conftest.er1
24603 grep -v '^ *+' conftest.er1 >conftest.err
24605 cat conftest.err >&5
24606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607 (exit $ac_status); } && {
24608 test -z "$ac_c_werror_flag" ||
24609 test ! -s conftest.err
24610 } && test -s conftest$ac_exeext &&
24611 $as_test_x conftest$ac_exeext; then
24612 SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
24614 echo "$as_me: failed program was:" >&5
24615 sed 's/^/| /' conftest.$ac_ext >&5
24620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24621 conftest$ac_exeext conftest.$ac_ext
24622 if test "x$SNMP_LIBS" != "x"; then
24629 CFLAGS="$old_CFLAGS"
24630 if test "x$SNMP_LIBS" = "x"; then
24631 { echo "$as_me:$LINENO: result: no" >&5
24632 echo "${ECHO_T}no" >&6; }
24635 { echo "$as_me:$LINENO: result: yes" >&5
24636 echo "${ECHO_T}yes" >&6; }
24638 cat >>confdefs.h <<\_ACEOF
24643 cat >>confdefs.h <<\_ACEOF
24644 #define HAVE_LIBSNMP
24653 cat >>confdefs.h <<\_ACEOF
24658 cat >>confdefs.h <<\_ACEOF
24659 #define SYSVSTYLE 2
24663 cat >>confdefs.h <<\_ACEOF
24667 gethostbyaddrrstyle=""
24668 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24669 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
24672 { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
24673 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
24674 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
24675 echo $ECHO_N "(cached) $ECHO_C" >&6
24677 cat >conftest.$ac_ext <<_ACEOF
24680 cat confdefs.h >>conftest.$ac_ext
24681 cat >>conftest.$ac_ext <<_ACEOF
24682 /* end confdefs.h. */
24684 #ifdef HAVE_NETDB_H
24692 #ifndef gethostbyaddr_r
24693 (void) gethostbyaddr_r;
24700 rm -f conftest.$ac_objext
24701 if { (ac_try="$ac_compile"
24702 case "(($ac_try" in
24703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24704 *) ac_try_echo=$ac_try;;
24706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24707 (eval "$ac_compile") 2>conftest.er1
24709 grep -v '^ *+' conftest.er1 >conftest.err
24711 cat conftest.err >&5
24712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713 (exit $ac_status); } && {
24714 test -z "$ac_c_werror_flag" ||
24715 test ! -s conftest.err
24716 } && test -s conftest.$ac_objext; then
24717 ac_cv_have_decl_gethostbyaddr_r=yes
24719 echo "$as_me: failed program was:" >&5
24720 sed 's/^/| /' conftest.$ac_ext >&5
24722 ac_cv_have_decl_gethostbyaddr_r=no
24725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24727 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
24728 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
24729 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
24731 cat >>confdefs.h <<_ACEOF
24732 #define HAVE_DECL_GETHOSTBYADDR_R 1
24737 cat >>confdefs.h <<_ACEOF
24738 #define HAVE_DECL_GETHOSTBYADDR_R 0
24743 cat >>confdefs.h <<\_ACEOF
24744 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24747 gethostbyaddrrstyle=BSD
24748 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24749 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24756 if test "x$gethostbyaddrrstyle" = "x"; then
24757 cat >conftest.$ac_ext <<_ACEOF
24760 cat confdefs.h >>conftest.$ac_ext
24761 cat >>conftest.$ac_ext <<_ACEOF
24762 /* end confdefs.h. */
24770 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24775 rm -f conftest.$ac_objext conftest$ac_exeext
24776 if { (ac_try="$ac_link"
24777 case "(($ac_try" in
24778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24779 *) ac_try_echo=$ac_try;;
24781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24782 (eval "$ac_link") 2>conftest.er1
24784 grep -v '^ *+' conftest.er1 >conftest.err
24786 cat conftest.err >&5
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); } && {
24789 test -z "$ac_c_werror_flag" ||
24790 test ! -s conftest.err
24791 } && test -s conftest$ac_exeext &&
24792 $as_test_x conftest$ac_exeext; then
24795 cat >>confdefs.h <<\_ACEOF
24796 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24799 gethostbyaddrrstyle=GNU
24802 echo "$as_me: failed program was:" >&5
24803 sed 's/^/| /' conftest.$ac_ext >&5
24808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24809 conftest$ac_exeext conftest.$ac_ext
24811 if test "x$gethostbyaddrrstyle" = "x"; then
24812 cat >conftest.$ac_ext <<_ACEOF
24815 cat confdefs.h >>conftest.$ac_ext
24816 cat >>conftest.$ac_ext <<_ACEOF
24817 /* end confdefs.h. */
24825 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
24830 rm -f conftest.$ac_objext conftest$ac_exeext
24831 if { (ac_try="$ac_link"
24832 case "(($ac_try" in
24833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24834 *) ac_try_echo=$ac_try;;
24836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24837 (eval "$ac_link") 2>conftest.er1
24839 grep -v '^ *+' conftest.er1 >conftest.err
24841 cat conftest.err >&5
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); } && {
24844 test -z "$ac_c_werror_flag" ||
24845 test ! -s conftest.err
24846 } && test -s conftest$ac_exeext &&
24847 $as_test_x conftest$ac_exeext; then
24850 cat >>confdefs.h <<\_ACEOF
24851 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
24854 gethostbyaddrrstyle=SYSV
24857 echo "$as_me: failed program was:" >&5
24858 sed 's/^/| /' conftest.$ac_ext >&5
24863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24864 conftest$ac_exeext conftest.$ac_ext
24866 if test "x$gethostbyaddrrstyle" = "x"; then
24867 cat >conftest.$ac_ext <<_ACEOF
24870 cat confdefs.h >>conftest.$ac_ext
24871 cat >>conftest.$ac_ext <<_ACEOF
24872 /* end confdefs.h. */
24880 gethostbyaddr(NULL, 0, 0)
24885 rm -f conftest.$ac_objext conftest$ac_exeext
24886 if { (ac_try="$ac_link"
24887 case "(($ac_try" in
24888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24889 *) ac_try_echo=$ac_try;;
24891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24892 (eval "$ac_link") 2>conftest.er1
24894 grep -v '^ *+' conftest.er1 >conftest.err
24896 cat conftest.err >&5
24897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898 (exit $ac_status); } && {
24899 test -z "$ac_c_werror_flag" ||
24900 test ! -s conftest.err
24901 } && test -s conftest$ac_exeext &&
24902 $as_test_x conftest$ac_exeext; then
24905 cat >>confdefs.h <<\_ACEOF
24906 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24909 gethostbyaddrrstyle=BSD
24912 echo "$as_me: failed program was:" >&5
24913 sed 's/^/| /' conftest.$ac_ext >&5
24918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24919 conftest$ac_exeext conftest.$ac_ext
24922 if test "x$gethostbyaddrrstyle" = "x"; then
24923 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24924 echo "${ECHO_T}none! It must not exist, here." >&6; }
24926 { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
24927 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
24930 if test "x$gethostbyaddrrstyle" = "xBSD"; then
24931 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
24932 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
24935 gethostbynamerstyle=""
24936 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
24937 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
24938 cat >conftest.$ac_ext <<_ACEOF
24941 cat confdefs.h >>conftest.$ac_ext
24942 cat >>conftest.$ac_ext <<_ACEOF
24943 /* end confdefs.h. */
24951 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
24956 rm -f conftest.$ac_objext conftest$ac_exeext
24957 if { (ac_try="$ac_link"
24958 case "(($ac_try" in
24959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24960 *) ac_try_echo=$ac_try;;
24962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24963 (eval "$ac_link") 2>conftest.er1
24965 grep -v '^ *+' conftest.er1 >conftest.err
24967 cat conftest.err >&5
24968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969 (exit $ac_status); } && {
24970 test -z "$ac_c_werror_flag" ||
24971 test ! -s conftest.err
24972 } && test -s conftest$ac_exeext &&
24973 $as_test_x conftest$ac_exeext; then
24976 cat >>confdefs.h <<\_ACEOF
24977 #define GETHOSTBYNAMERSTYLE GNUSTYLE
24980 gethostbynamerstyle=GNU
24983 echo "$as_me: failed program was:" >&5
24984 sed 's/^/| /' conftest.$ac_ext >&5
24989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24990 conftest$ac_exeext conftest.$ac_ext
24991 if test "x$gethostbynamerstyle" = "x"; then
24992 cat >conftest.$ac_ext <<_ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h. */
25005 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25010 rm -f conftest.$ac_objext conftest$ac_exeext
25011 if { (ac_try="$ac_link"
25012 case "(($ac_try" in
25013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25014 *) ac_try_echo=$ac_try;;
25016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25017 (eval "$ac_link") 2>conftest.er1
25019 grep -v '^ *+' conftest.er1 >conftest.err
25021 cat conftest.err >&5
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); } && {
25024 test -z "$ac_c_werror_flag" ||
25025 test ! -s conftest.err
25026 } && test -s conftest$ac_exeext &&
25027 $as_test_x conftest$ac_exeext; then
25030 cat >>confdefs.h <<\_ACEOF
25031 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25034 gethostbynamerstyle=SYSV
25037 echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25044 conftest$ac_exeext conftest.$ac_ext
25046 if test "x$gethostbynamerstyle" = "x"; then
25047 cat >conftest.$ac_ext <<_ACEOF
25050 cat confdefs.h >>conftest.$ac_ext
25051 cat >>conftest.$ac_ext <<_ACEOF
25052 /* end confdefs.h. */
25060 gethostbyname(NULL)
25065 rm -f conftest.$ac_objext conftest$ac_exeext
25066 if { (ac_try="$ac_link"
25067 case "(($ac_try" in
25068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25069 *) ac_try_echo=$ac_try;;
25071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25072 (eval "$ac_link") 2>conftest.er1
25074 grep -v '^ *+' conftest.er1 >conftest.err
25076 cat conftest.err >&5
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); } && {
25079 test -z "$ac_c_werror_flag" ||
25080 test ! -s conftest.err
25081 } && test -s conftest$ac_exeext &&
25082 $as_test_x conftest$ac_exeext; then
25085 cat >>confdefs.h <<\_ACEOF
25086 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25089 gethostbynamerstyle=BSD
25092 echo "$as_me: failed program was:" >&5
25093 sed 's/^/| /' conftest.$ac_ext >&5
25098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25099 conftest$ac_exeext conftest.$ac_ext
25102 if test "x$gethostbynamerstyle" = "x"; then
25103 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25104 echo "${ECHO_T}none! It must not exist, here." >&6; }
25106 { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25107 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25110 if test "x$gethostbynamerstyle" = "xBSD"; then
25111 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25112 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25116 cat >>confdefs.h <<\_ACEOF
25117 #define POSIXSTYLE 1
25121 cat >>confdefs.h <<\_ACEOF
25122 #define SOLARISSTYLE 2
25126 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25127 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
25128 cat >conftest.$ac_ext <<_ACEOF
25131 cat confdefs.h >>conftest.$ac_ext
25132 cat >>conftest.$ac_ext <<_ACEOF
25133 /* end confdefs.h. */
25140 ctime_r(NULL, NULL, 0)
25145 rm -f conftest.$ac_objext conftest$ac_exeext
25146 if { (ac_try="$ac_link"
25147 case "(($ac_try" in
25148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25149 *) ac_try_echo=$ac_try;;
25151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25152 (eval "$ac_link") 2>conftest.er1
25154 grep -v '^ *+' conftest.er1 >conftest.err
25156 cat conftest.err >&5
25157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25158 (exit $ac_status); } && {
25159 test -z "$ac_c_werror_flag" ||
25160 test ! -s conftest.err
25161 } && test -s conftest$ac_exeext &&
25162 $as_test_x conftest$ac_exeext; then
25165 cat >>confdefs.h <<\_ACEOF
25166 #define CTIMERSTYLE SOLARISSTYLE
25169 ctimerstyle="SOLARIS"
25172 echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.$ac_ext >&5
25178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25179 conftest$ac_exeext conftest.$ac_ext
25180 if test "x$ctimerstyle" = "x"; then
25181 cat >conftest.$ac_ext <<_ACEOF
25184 cat confdefs.h >>conftest.$ac_ext
25185 cat >>conftest.$ac_ext <<_ACEOF
25186 /* end confdefs.h. */
25193 ctime_r(NULL, NULL)
25198 rm -f conftest.$ac_objext conftest$ac_exeext
25199 if { (ac_try="$ac_link"
25200 case "(($ac_try" in
25201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25202 *) ac_try_echo=$ac_try;;
25204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25205 (eval "$ac_link") 2>conftest.er1
25207 grep -v '^ *+' conftest.er1 >conftest.err
25209 cat conftest.err >&5
25210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211 (exit $ac_status); } && {
25212 test -z "$ac_c_werror_flag" ||
25213 test ! -s conftest.err
25214 } && test -s conftest$ac_exeext &&
25215 $as_test_x conftest$ac_exeext; then
25218 cat >>confdefs.h <<\_ACEOF
25219 #define CTIMERSTYLE POSIXSTYLE
25222 ctimerstyle="POSIX"
25225 echo "$as_me: failed program was:" >&5
25226 sed 's/^/| /' conftest.$ac_ext >&5
25231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25232 conftest$ac_exeext conftest.$ac_ext
25235 if test "x$ctimerstyle" = "x"; then
25236 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25237 echo "${ECHO_T}none! It must not exist, here." >&6; }
25239 { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25240 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
25248 export top_builddir
25249 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25250 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
25256 mysubdirs="$LIBLTDLPATH"
25257 if test "x$EXPERIMENTAL" = "xyes"; then
25258 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
25259 mysubdirs=`echo $mysubdirs $bar`
25261 for bar in `cat "${srcdir}"/src/modules/stable`; do
25262 if test -f "${srcdir}"/src/modules/$bar/configure; then
25263 mysubdirs="$mysubdirs src/modules/$bar"
25268 if test "x$EXPERIMENTAL" = "xyes"; then
25269 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
25270 MODULES="$MODULES $foo"
25273 for foo in `cat "${srcdir}"/src/modules/stable`; do
25274 MODULES="$MODULES $foo"
25278 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
25283 ac_config_commands="$ac_config_commands stamp-h"
25285 ac_config_commands="$ac_config_commands build-radpaths-h"
25287 ac_config_commands="$ac_config_commands main-chmod"
25289 ac_config_commands="$ac_config_commands scripts-chmod"
25295 USE_SHARED_LIBS=$enable_shared
25297 USE_STATIC_LIBS=$enable_static
25304 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/check-radiusd-config ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radiusd.conf ./raddb/vmpsd.conf ./raddb/radrelay.conf"
25306 cat >confcache <<\_ACEOF
25307 # This file is a shell script that caches the results of configure
25308 # tests run on this system so they can be shared between configure
25309 # scripts and configure runs, see configure's option --config-cache.
25310 # It is not useful on other systems. If it contains results you don't
25311 # want to keep, you may remove or edit it.
25313 # config.status only pays attention to the cache file if you give it
25314 # the --recheck option to rerun configure.
25316 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25317 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25318 # following values.
25322 # The following way of writing the cache mishandles newlines in values,
25323 # but we know of no workaround that is simple, portable, and efficient.
25324 # So, we kill variables containing newlines.
25325 # Ultrix sh set writes to stderr and can't be redirected directly,
25326 # and sets the high bit in the cache file unless we assign to the vars.
25328 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25329 eval ac_val=\$$ac_var
25333 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25334 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25337 _ | IFS | as_nl) ;; #(
25338 *) $as_unset $ac_var ;;
25344 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25345 *${as_nl}ac_space=\ *)
25346 # `set' does not quote correctly, so add quotes (double-quote
25347 # substitution turns \\\\ into \\, and sed turns \\ into \).
25350 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25353 # `set' quotes correctly as required by POSIX, so do not add quotes.
25354 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25363 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25365 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25367 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25368 if test -w "$cache_file"; then
25369 test "x$cache_file" != "x/dev/null" &&
25370 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25371 echo "$as_me: updating cache $cache_file" >&6;}
25372 cat confcache >$cache_file
25374 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25375 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25380 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25381 # Let make expand exec_prefix.
25382 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25384 DEFS=-DHAVE_CONFIG_H
25388 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25389 # 1. Remove the extension, and $U if already installed.
25390 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25391 ac_i=`echo "$ac_i" | sed "$ac_script"`
25392 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25393 # will be set to the directory where LIBOBJS objects are built.
25394 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25395 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25397 LIBOBJS=$ac_libobjs
25399 LTLIBOBJS=$ac_ltlibobjs
25403 : ${CONFIG_STATUS=./config.status}
25404 ac_clean_files_save=$ac_clean_files
25405 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25406 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25407 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25408 cat >$CONFIG_STATUS <<_ACEOF
25410 # Generated by $as_me.
25411 # Run this file to recreate the current configuration.
25412 # Compiler output produced by configure, useful for debugging
25413 # configure, is in config.log if it exists.
25416 ac_cs_recheck=false
25418 SHELL=\${CONFIG_SHELL-$SHELL}
25421 cat >>$CONFIG_STATUS <<\_ACEOF
25422 ## --------------------- ##
25423 ## M4sh Initialization. ##
25424 ## --------------------- ##
25426 # Be more Bourne compatible
25427 DUALCASE=1; export DUALCASE # for MKS sh
25428 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25431 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25432 # is contrary to our usage. Disable this feature.
25433 alias -g '${1+"$@"}'='"$@"'
25434 setopt NO_GLOB_SUBST
25436 case `(set -o) 2>/dev/null` in
25437 *posix*) set -o posix ;;
25446 # Avoid depending upon Character Ranges.
25447 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25448 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25449 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25450 as_cr_digits='0123456789'
25451 as_cr_alnum=$as_cr_Letters$as_cr_digits
25453 # The user is always right.
25454 if test "${PATH_SEPARATOR+set}" != set; then
25455 echo "#! /bin/sh" >conf$$.sh
25456 echo "exit 0" >>conf$$.sh
25458 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25466 # Support unset when possible.
25467 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25475 # We need space, tab and new line, in precisely that order. Quoting is
25476 # there to prevent editors from complaining about space-tab.
25477 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25478 # splitting by setting IFS to empty value.)
25483 # Find who we are. Look in the path if we contain no directory separator.
25485 *[\\/]* ) as_myself=$0 ;;
25486 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25487 for as_dir in $PATH
25490 test -z "$as_dir" && as_dir=.
25491 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25497 # We did not find ourselves, most probably we were run as `sh COMMAND'
25498 # in which case we are not to be found in the path.
25499 if test "x$as_myself" = x; then
25502 if test ! -f "$as_myself"; then
25503 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25504 { (exit 1); exit 1; }
25507 # Work around bugs in pre-3.0 UWIN ksh.
25508 for as_var in ENV MAIL MAILPATH
25509 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25517 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25518 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25519 LC_TELEPHONE LC_TIME
25521 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25522 eval $as_var=C; export $as_var
25524 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25528 # Required to use basename.
25529 if expr a : '\(a\)' >/dev/null 2>&1 &&
25530 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25536 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25537 as_basename=basename
25543 # Name of the executable.
25544 as_me=`$as_basename -- "$0" ||
25545 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25546 X"$0" : 'X\(//\)$' \| \
25547 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25549 sed '/^.*\/\([^/][^/]*\)\/*$/{
25568 as_lineno_1=$LINENO
25569 as_lineno_2=$LINENO
25570 test "x$as_lineno_1" != "x$as_lineno_2" &&
25571 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25573 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25574 # uniformly replaced by the line number. The first 'sed' inserts a
25575 # line-number line after each line using $LINENO; the second 'sed'
25576 # does the real work. The second script uses 'N' to pair each
25577 # line-number line with the line containing $LINENO, and appends
25578 # trailing '-' during substitution so that $LINENO is not a special
25579 # case at line end.
25580 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25581 # scripts with optimization help from Paolo Bonzini. Blame Lee
25582 # E. McMahon (1931-1989) for sed's syntax. :-)
25594 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25597 ' >$as_me.lineno &&
25598 chmod +x "$as_me.lineno" ||
25599 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25600 { (exit 1); exit 1; }; }
25602 # Don't try to exec as it changes $[0], causing all sort of problems
25603 # (the dirname of $[0] is not the place where we might find the
25604 # original and so on. Autoconf is especially sensitive to this).
25605 . "./$as_me.lineno"
25606 # Exit status is that of the last command.
25611 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25617 ECHO_C= ECHO_N= ECHO_T=
25618 case `echo -n x` in
25620 case `echo 'x\c'` in
25621 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25628 if expr a : '\(a\)' >/dev/null 2>&1 &&
25629 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25635 rm -f conf$$ conf$$.exe conf$$.file
25636 if test -d conf$$.dir; then
25637 rm -f conf$$.dir/conf$$.file
25643 if ln -s conf$$.file conf$$ 2>/dev/null; then
25645 # ... but there are two gotchas:
25646 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25647 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25648 # In both cases, we have to default to `cp -p'.
25649 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25651 elif ln conf$$.file conf$$ 2>/dev/null; then
25656 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25657 rmdir conf$$.dir 2>/dev/null
25659 if mkdir -p . 2>/dev/null; then
25662 test -d ./-p && rmdir ./-p
25666 if test -x / >/dev/null 2>&1; then
25667 as_test_x='test -x'
25669 if ls -dL / >/dev/null 2>&1; then
25676 if test -d "$1"; then
25682 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25683 ???[sx]*):;;*)false;;esac;fi
25687 as_executable_p=$as_test_x
25689 # Sed expression to map a string onto a valid CPP name.
25690 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25692 # Sed expression to map a string onto a valid variable name.
25693 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25698 # Save the log message, to keep $[0] and so on meaningful, and to
25699 # report actual input values of CONFIG_FILES etc. instead of their
25700 # values after options handling.
25702 This file was extended by $as_me, which was
25703 generated by GNU Autoconf 2.61. Invocation command line was
25705 CONFIG_FILES = $CONFIG_FILES
25706 CONFIG_HEADERS = $CONFIG_HEADERS
25707 CONFIG_LINKS = $CONFIG_LINKS
25708 CONFIG_COMMANDS = $CONFIG_COMMANDS
25711 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25716 cat >>$CONFIG_STATUS <<_ACEOF
25717 # Files that config.status was made for.
25718 config_files="$ac_config_files"
25719 config_headers="$ac_config_headers"
25720 config_commands="$ac_config_commands"
25724 cat >>$CONFIG_STATUS <<\_ACEOF
25726 \`$as_me' instantiates files from templates according to the
25727 current configuration.
25729 Usage: $0 [OPTIONS] [FILE]...
25731 -h, --help print this help, then exit
25732 -V, --version print version number and configuration settings, then exit
25733 -q, --quiet do not print progress messages
25734 -d, --debug don't remove temporary files
25735 --recheck update $as_me by reconfiguring in the same conditions
25736 --file=FILE[:TEMPLATE]
25737 instantiate the configuration file FILE
25738 --header=FILE[:TEMPLATE]
25739 instantiate the configuration header FILE
25741 Configuration files:
25744 Configuration headers:
25747 Configuration commands:
25750 Report bugs to <bug-autoconf@gnu.org>."
25753 cat >>$CONFIG_STATUS <<_ACEOF
25756 configured by $0, generated by GNU Autoconf 2.61,
25757 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25759 Copyright (C) 2006 Free Software Foundation, Inc.
25760 This config.status script is free software; the Free Software Foundation
25761 gives unlimited permission to copy, distribute and modify it."
25767 cat >>$CONFIG_STATUS <<\_ACEOF
25768 # If no file are specified by the user, then we need to provide default
25769 # value. By we need to know if files were specified by the user.
25775 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25776 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25787 # Handling of the options.
25788 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25790 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25791 echo "$ac_cs_version"; exit ;;
25792 --debug | --debu | --deb | --de | --d | -d )
25794 --file | --fil | --fi | --f )
25796 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25797 ac_need_defaults=false;;
25798 --header | --heade | --head | --hea )
25800 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25801 ac_need_defaults=false;;
25803 # Conflict between --help and --header
25804 { echo "$as_me: error: ambiguous option: $1
25805 Try \`$0 --help' for more information." >&2
25806 { (exit 1); exit 1; }; };;
25807 --help | --hel | -h )
25808 echo "$ac_cs_usage"; exit ;;
25809 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25810 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25813 # This is an error.
25814 -*) { echo "$as_me: error: unrecognized option: $1
25815 Try \`$0 --help' for more information." >&2
25816 { (exit 1); exit 1; }; } ;;
25818 *) ac_config_targets="$ac_config_targets $1"
25819 ac_need_defaults=false ;;
25825 ac_configure_extra_args=
25827 if $ac_cs_silent; then
25829 ac_configure_extra_args="$ac_configure_extra_args --silent"
25833 cat >>$CONFIG_STATUS <<_ACEOF
25834 if \$ac_cs_recheck; then
25835 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25836 CONFIG_SHELL=$SHELL
25837 export CONFIG_SHELL
25838 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25842 cat >>$CONFIG_STATUS <<\_ACEOF
25846 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25847 ## Running $as_me. ##
25853 cat >>$CONFIG_STATUS <<_ACEOF
25856 cat >>$CONFIG_STATUS <<\_ACEOF
25858 # Handling of arguments.
25859 for ac_config_target in $ac_config_targets
25861 case $ac_config_target in
25862 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
25863 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
25864 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
25865 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
25866 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
25867 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
25868 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
25869 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
25870 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
25871 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
25872 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
25873 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
25874 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
25875 "./scripts/check-radiusd-config") CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
25876 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
25877 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
25878 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
25879 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
25880 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
25881 "./raddb/vmpsd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/vmpsd.conf" ;;
25882 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
25884 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25885 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25886 { (exit 1); exit 1; }; };;
25891 # If the user did not use the arguments to specify the items to instantiate,
25892 # then the envvar interface is used. Set only those that are not.
25893 # We use the long form for the default assignment because of an extremely
25894 # bizarre bug on SunOS 4.1.3.
25895 if $ac_need_defaults; then
25896 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25897 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25898 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25901 # Have a temporary directory for convenience. Make it in the build tree
25902 # simply because there is no reason against having it here, and in addition,
25903 # creating and moving files from /tmp can sometimes cause problems.
25904 # Hook for its removal unless debugging.
25905 # Note that there is a small window in which the directory will not be cleaned:
25906 # after its creation but before its name has been assigned to `$tmp'.
25910 trap 'exit_status=$?
25911 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25913 trap '{ (exit 1); exit 1; }' 1 2 13 15
25915 # Create a (secure) tmp directory for tmp files.
25918 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25919 test -n "$tmp" && test -d "$tmp"
25922 tmp=./conf$$-$RANDOM
25923 (umask 077 && mkdir "$tmp")
25926 echo "$me: cannot create a temporary directory in ." >&2
25927 { (exit 1); exit 1; }
25931 # Set up the sed scripts for CONFIG_FILES section.
25934 # No need to generate the scripts if there are no CONFIG_FILES.
25935 # This happens for instance when ./config.status config.h
25936 if test -n "$CONFIG_FILES"; then
25943 for ac_last_try in false false false false false :; do
25944 cat >conf$$subs.sed <<_ACEOF
25945 SHELL!$SHELL$ac_delim
25946 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25947 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25948 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25949 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25950 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25951 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25952 exec_prefix!$exec_prefix$ac_delim
25953 prefix!$prefix$ac_delim
25954 program_transform_name!$program_transform_name$ac_delim
25955 bindir!$bindir$ac_delim
25956 sbindir!$sbindir$ac_delim
25957 libexecdir!$libexecdir$ac_delim
25958 datarootdir!$datarootdir$ac_delim
25959 datadir!$datadir$ac_delim
25960 sysconfdir!$sysconfdir$ac_delim
25961 sharedstatedir!$sharedstatedir$ac_delim
25962 localstatedir!$localstatedir$ac_delim
25963 includedir!$includedir$ac_delim
25964 oldincludedir!$oldincludedir$ac_delim
25965 docdir!$docdir$ac_delim
25966 infodir!$infodir$ac_delim
25967 htmldir!$htmldir$ac_delim
25968 dvidir!$dvidir$ac_delim
25969 pdfdir!$pdfdir$ac_delim
25970 psdir!$psdir$ac_delim
25971 libdir!$libdir$ac_delim
25972 localedir!$localedir$ac_delim
25973 mandir!$mandir$ac_delim
25974 DEFS!$DEFS$ac_delim
25975 ECHO_C!$ECHO_C$ac_delim
25976 ECHO_N!$ECHO_N$ac_delim
25977 ECHO_T!$ECHO_T$ac_delim
25978 LIBS!$LIBS$ac_delim
25979 build_alias!$build_alias$ac_delim
25980 host_alias!$host_alias$ac_delim
25981 target_alias!$target_alias$ac_delim
25983 CFLAGS!$CFLAGS$ac_delim
25984 LDFLAGS!$LDFLAGS$ac_delim
25985 CPPFLAGS!$CPPFLAGS$ac_delim
25986 ac_ct_CC!$ac_ct_CC$ac_delim
25987 EXEEXT!$EXEEXT$ac_delim
25988 OBJEXT!$OBJEXT$ac_delim
25990 CXXFLAGS!$CXXFLAGS$ac_delim
25991 ac_ct_CXX!$ac_ct_CXX$ac_delim
25993 GREP!$GREP$ac_delim
25994 EGREP!$EGREP$ac_delim
25995 RANLIB!$RANLIB$ac_delim
25996 GMAKE!$GMAKE$ac_delim
25997 MAKE!$MAKE$ac_delim
25998 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
25999 LIBTOOL!$LIBTOOL$ac_delim
26000 build!$build$ac_delim
26001 build_cpu!$build_cpu$ac_delim
26002 build_vendor!$build_vendor$ac_delim
26003 build_os!$build_os$ac_delim
26004 host!$host$ac_delim
26005 host_cpu!$host_cpu$ac_delim
26006 host_vendor!$host_vendor$ac_delim
26007 host_os!$host_os$ac_delim
26008 LN_S!$LN_S$ac_delim
26009 ECHO!$ECHO$ac_delim
26011 STRIP!$STRIP$ac_delim
26012 CXXCPP!$CXXCPP$ac_delim
26014 FFLAGS!$FFLAGS$ac_delim
26015 ac_ct_F77!$ac_ct_F77$ac_delim
26016 logdir!$logdir$ac_delim
26017 radacctdir!$radacctdir$ac_delim
26018 raddbdir!$raddbdir$ac_delim
26019 PERL!$PERL$ac_delim
26020 SNMPGET!$SNMPGET$ac_delim
26021 SNMPWALK!$SNMPWALK$ac_delim
26022 RUSERS!$RUSERS$ac_delim
26023 ACLOCAL!$ACLOCAL$ac_delim
26024 AUTOCONF!$AUTOCONF$ac_delim
26025 AUTOHEADER!$AUTOHEADER$ac_delim
26026 LOCATE!$LOCATE$ac_delim
26027 DIRNAME!$DIRNAME$ac_delim
26028 REGEX!$REGEX$ac_delim
26029 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26030 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26031 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26032 PCAP_LIBS!$PCAP_LIBS$ac_delim
26033 LIBPREFIX!$LIBPREFIX$ac_delim
26034 CRYPTLIB!$CRYPTLIB$ac_delim
26035 SNMP_LIBS!$SNMP_LIBS$ac_delim
26036 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
26037 HOSTINFO!$HOSTINFO$ac_delim
26038 LIBLTDL!$LIBLTDL$ac_delim
26039 INCLTDL!$INCLTDL$ac_delim
26040 subdirs!$subdirs$ac_delim
26041 MODULES!$MODULES$ac_delim
26044 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26046 elif $ac_last_try; then
26047 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26048 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26049 { (exit 1); exit 1; }; }
26051 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26055 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26056 if test -n "$ac_eof"; then
26057 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26058 ac_eof=`expr $ac_eof + 1`
26061 cat >>$CONFIG_STATUS <<_ACEOF
26062 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26063 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26066 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26067 s/^/s,@/; s/!/@,|#_!!_#|/
26070 s/'"$ac_delim"'$/,g/; t
26072 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26073 ' >>$CONFIG_STATUS <conf$$subs.sed
26074 rm -f conf$$subs.sed
26075 cat >>$CONFIG_STATUS <<_ACEOF
26081 for ac_last_try in false false false false false :; do
26082 cat >conf$$subs.sed <<_ACEOF
26083 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26084 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26085 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26086 STATIC_MODULES!$STATIC_MODULES$ac_delim
26087 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26088 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26089 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26090 LIBOBJS!$LIBOBJS$ac_delim
26091 LTLIBOBJS!$LTLIBOBJS$ac_delim
26094 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
26096 elif $ac_last_try; then
26097 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26098 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26099 { (exit 1); exit 1; }; }
26101 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26105 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26106 if test -n "$ac_eof"; then
26107 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26108 ac_eof=`expr $ac_eof + 1`
26111 cat >>$CONFIG_STATUS <<_ACEOF
26112 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26113 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26116 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26117 s/^/s,@/; s/!/@,|#_!!_#|/
26120 s/'"$ac_delim"'$/,g/; t
26122 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26123 ' >>$CONFIG_STATUS <conf$$subs.sed
26124 rm -f conf$$subs.sed
26125 cat >>$CONFIG_STATUS <<_ACEOF
26132 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26133 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26134 # trailing colons and then remove the whole line if VPATH becomes empty
26135 # (actually we leave an empty line to preserve line numbers).
26136 if test "x$srcdir" = x.; then
26137 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26138 s/:*\$(srcdir):*/:/
26139 s/:*\${srcdir}:*/:/
26141 s/^\([^=]*=[ ]*\):*/\1/
26147 cat >>$CONFIG_STATUS <<\_ACEOF
26148 fi # test -n "$CONFIG_FILES"
26151 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26154 :[FHLC]) ac_mode=$ac_tag; continue;;
26156 case $ac_mode$ac_tag in
26158 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26159 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26160 { (exit 1); exit 1; }; };;
26161 :[FH]-) ac_tag=-:-;;
26162 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26179 -) ac_f="$tmp/stdin";;
26180 *) # Look for the file first in the build tree, then in the source tree
26181 # (if the path is not absolute). The absolute path cannot be DOS-style,
26182 # because $ac_f cannot contain `:'.
26186 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26188 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26189 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26190 { (exit 1); exit 1; }; };;
26192 ac_file_inputs="$ac_file_inputs $ac_f"
26195 # Let's still pretend it is `configure' which instantiates (i.e., don't
26196 # use $as_me), people would be surprised to read:
26197 # /* config.h. Generated by config.status. */
26198 configure_input="Generated from "`IFS=:
26199 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26200 if test x"$ac_file" != x-; then
26201 configure_input="$ac_file. $configure_input"
26202 { echo "$as_me:$LINENO: creating $ac_file" >&5
26203 echo "$as_me: creating $ac_file" >&6;}
26207 *:-:* | *:-) cat >"$tmp/stdin";;
26212 ac_dir=`$as_dirname -- "$ac_file" ||
26213 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26214 X"$ac_file" : 'X\(//\)[^/]' \| \
26215 X"$ac_file" : 'X\(//\)$' \| \
26216 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26222 /^X\(\/\/\)[^/].*/{
26237 -*) as_dir=./$as_dir;;
26239 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26243 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26244 *) as_qdir=$as_dir;;
26246 as_dirs="'$as_qdir' $as_dirs"
26247 as_dir=`$as_dirname -- "$as_dir" ||
26248 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26249 X"$as_dir" : 'X\(//\)[^/]' \| \
26250 X"$as_dir" : 'X\(//\)$' \| \
26251 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26257 /^X\(\/\/\)[^/].*/{
26270 test -d "$as_dir" && break
26272 test -z "$as_dirs" || eval "mkdir $as_dirs"
26273 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26274 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26275 { (exit 1); exit 1; }; }; }
26279 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26281 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26282 # A ".." for each directory in $ac_dir_suffix.
26283 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26284 case $ac_top_builddir_sub in
26285 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26286 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26289 ac_abs_top_builddir=$ac_pwd
26290 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26291 # for backward compatibility:
26292 ac_top_builddir=$ac_top_build_prefix
26295 .) # We are building in place.
26297 ac_top_srcdir=$ac_top_builddir_sub
26298 ac_abs_top_srcdir=$ac_pwd ;;
26299 [\\/]* | ?:[\\/]* ) # Absolute name.
26300 ac_srcdir=$srcdir$ac_dir_suffix;
26301 ac_top_srcdir=$srcdir
26302 ac_abs_top_srcdir=$srcdir ;;
26303 *) # Relative name.
26304 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26305 ac_top_srcdir=$ac_top_build_prefix$srcdir
26306 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26308 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26319 cat >>$CONFIG_STATUS <<\_ACEOF
26320 # If the template does not know about datarootdir, expand it.
26321 # FIXME: This hack should be removed a few years after 2.60.
26322 ac_datarootdir_hack=; ac_datarootdir_seen=
26324 case `sed -n '/datarootdir/ {
26333 ' $ac_file_inputs` in
26334 *datarootdir*) ac_datarootdir_seen=yes;;
26335 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26336 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26337 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26339 cat >>$CONFIG_STATUS <<_ACEOF
26340 ac_datarootdir_hack='
26341 s&@datadir@&$datadir&g
26342 s&@docdir@&$docdir&g
26343 s&@infodir@&$infodir&g
26344 s&@localedir@&$localedir&g
26345 s&@mandir@&$mandir&g
26346 s&\\\${datarootdir}&$datarootdir&g' ;;
26350 # Neutralize VPATH when `$srcdir' = `.'.
26351 # Shell code in configure.ac might set extrasub.
26352 # FIXME: do we really want to maintain this feature?
26353 cat >>$CONFIG_STATUS <<_ACEOF
26357 cat >>$CONFIG_STATUS <<\_ACEOF
26359 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26360 s&@configure_input@&$configure_input&;t t
26361 s&@top_builddir@&$ac_top_builddir_sub&;t t
26362 s&@srcdir@&$ac_srcdir&;t t
26363 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26364 s&@top_srcdir@&$ac_top_srcdir&;t t
26365 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26366 s&@builddir@&$ac_builddir&;t t
26367 s&@abs_builddir@&$ac_abs_builddir&;t t
26368 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26369 $ac_datarootdir_hack
26370 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26372 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26373 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26374 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26375 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26376 which seems to be undefined. Please make sure it is defined." >&5
26377 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26378 which seems to be undefined. Please make sure it is defined." >&2;}
26382 -) cat "$tmp/out"; rm -f "$tmp/out";;
26383 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26392 # Transform confdefs.h into a sed script `conftest.defines', that
26393 # substitutes the proper values into config.h.in to produce config.h.
26394 rm -f conftest.defines conftest.tail
26395 # First, append a space to every undef/define line, to ease matching.
26396 echo 's/$/ /' >conftest.defines
26397 # Then, protect against being on the right side of a sed subst, or in
26398 # an unquoted here document, in config.status. If some macros were
26399 # called several times there might be several #defines for the same
26400 # symbol, which is useless. But do not sort them, since the last
26401 # AC_DEFINE must be honored.
26402 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26403 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26404 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26405 # PARAMS is the parameter list in the macro definition--in most cases, it's
26406 # just an empty string.
26407 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26408 ac_dB='\\)[ (].*,\\1define\\2'
26416 s/^[ ]*#[ ]*define[ ][ ]*//
26421 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26422 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26423 ' >>conftest.defines
26425 # Remove the space that was appended to ease matching.
26426 # Then replace #undef with comments. This is necessary, for
26427 # example, in the case of _POSIX_SOURCE, which is predefined and required
26428 # on some systems where configure will not decide to define it.
26429 # (The regexp can be short, since the line contains either #define or #undef.)
26431 s,^[ #]*u.*,/* & */,' >>conftest.defines
26433 # Break up conftest.defines:
26434 ac_max_sed_lines=50
26436 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26437 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26438 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26440 ac_in='$ac_file_inputs'
26441 ac_out='"$tmp/out1"'
26442 ac_nxt='"$tmp/out2"'
26446 # Write a here document:
26447 cat >>$CONFIG_STATUS <<_ACEOF
26448 # First, check the format of the line:
26449 cat >"\$tmp/defines.sed" <<\\CEOF
26450 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26451 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26455 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26457 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26458 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26459 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26460 grep . conftest.tail >/dev/null || break
26461 rm -f conftest.defines
26462 mv conftest.tail conftest.defines
26464 rm -f conftest.defines conftest.tail
26466 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26467 cat >>$CONFIG_STATUS <<\_ACEOF
26468 if test x"$ac_file" != x-; then
26469 echo "/* $configure_input */" >"$tmp/config.h"
26470 cat "$ac_result" >>"$tmp/config.h"
26471 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26472 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26473 echo "$as_me: $ac_file is unchanged" >&6;}
26476 mv "$tmp/config.h" $ac_file
26479 echo "/* $configure_input */"
26485 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26486 echo "$as_me: executing $ac_file commands" >&6;}
26491 case $ac_file$ac_mode in
26492 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
26493 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26494 "main-chmod":C) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
26495 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26501 { (exit 0); exit 0; }
26503 chmod +x $CONFIG_STATUS
26504 ac_clean_files=$ac_clean_files_save
26507 # configure is writing to config.log, and then calls config.status.
26508 # config.status does its own redirection, appending to config.log.
26509 # Unfortunately, on DOS this fails, as config.log is still kept open
26510 # by configure, so config.status won't be able to write to it; its
26511 # output is simply discarded. So we exec the FD to /dev/null,
26512 # effectively closing config.log, so it can be properly (re)opened and
26513 # appended to by config.status. When coming back to configure, we
26514 # need to make the FD available again.
26515 if test "$no_create" != yes; then
26517 ac_config_status_args=
26518 test "$silent" = yes &&
26519 ac_config_status_args="$ac_config_status_args --quiet"
26521 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26523 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26524 # would make configure fail if this is the last instruction.
26525 $ac_cs_success || { (exit 1); exit 1; }
26529 # CONFIG_SUBDIRS section.
26531 if test "$no_recursion" != yes; then
26533 # Remove --cache-file and --srcdir arguments so they do not pile up.
26534 ac_sub_configure_args=
26536 eval "set x $ac_configure_args"
26540 if test -n "$ac_prev"; then
26545 -cache-file | --cache-file | --cache-fil | --cache-fi \
26546 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26547 ac_prev=cache_file ;;
26548 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26549 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26552 --config-cache | -C)
26554 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26556 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26558 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26560 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26564 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26566 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
26570 # Always prepend --prefix to ensure using the same prefix
26571 # in subdir configurations.
26572 ac_arg="--prefix=$prefix"
26574 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26576 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
26579 if test "$silent" = yes; then
26580 ac_sub_configure_args="--silent $ac_sub_configure_args"
26584 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26586 # Do not complain, so a configure script can configure whichever
26587 # parts of a large source tree are present.
26588 test -d "$srcdir/$ac_dir" || continue
26590 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26591 echo "$as_me:$LINENO: $ac_msg" >&5
26595 -*) as_dir=./$as_dir;;
26597 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26601 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26602 *) as_qdir=$as_dir;;
26604 as_dirs="'$as_qdir' $as_dirs"
26605 as_dir=`$as_dirname -- "$as_dir" ||
26606 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26607 X"$as_dir" : 'X\(//\)[^/]' \| \
26608 X"$as_dir" : 'X\(//\)$' \| \
26609 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26615 /^X\(\/\/\)[^/].*/{
26628 test -d "$as_dir" && break
26630 test -z "$as_dirs" || eval "mkdir $as_dirs"
26631 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26632 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26633 { (exit 1); exit 1; }; }; }
26637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26639 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26640 # A ".." for each directory in $ac_dir_suffix.
26641 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26642 case $ac_top_builddir_sub in
26643 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26644 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26647 ac_abs_top_builddir=$ac_pwd
26648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26649 # for backward compatibility:
26650 ac_top_builddir=$ac_top_build_prefix
26653 .) # We are building in place.
26655 ac_top_srcdir=$ac_top_builddir_sub
26656 ac_abs_top_srcdir=$ac_pwd ;;
26657 [\\/]* | ?:[\\/]* ) # Absolute name.
26658 ac_srcdir=$srcdir$ac_dir_suffix;
26659 ac_top_srcdir=$srcdir
26660 ac_abs_top_srcdir=$srcdir ;;
26661 *) # Relative name.
26662 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26663 ac_top_srcdir=$ac_top_build_prefix$srcdir
26664 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26671 # Check for guested configure; otherwise get Cygnus style configure.
26672 if test -f "$ac_srcdir/configure.gnu"; then
26673 ac_sub_configure=$ac_srcdir/configure.gnu
26674 elif test -f "$ac_srcdir/configure"; then
26675 ac_sub_configure=$ac_srcdir/configure
26676 elif test -f "$ac_srcdir/configure.in"; then
26677 # This should be Cygnus configure.
26678 ac_sub_configure=$ac_aux_dir/configure
26680 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26681 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26685 # The recursion is here.
26686 if test -n "$ac_sub_configure"; then
26687 # Make the cache file name correct relative to the subdirectory.
26688 case $cache_file in
26689 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26690 *) # Relative name.
26691 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
26694 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26695 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26696 # The eval makes quoting arguments work.
26697 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
26698 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
26699 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26700 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26701 { (exit 1); exit 1; }; }