2 # From configure.in Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
71 # Find who we are. Look in the path if we contain no directory separator.
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
162 if test $as_have_required = yes && (eval ":
172 as_func_ret_success () {
175 as_func_ret_failure () {
180 if as_func_success; then
184 echo as_func_success failed.
187 if as_func_failure; then
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 test -z "$as_dir" && as_dir=.
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
259 CONFIG_SHELL=$as_shell
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
287 as_func_ret_success () {
290 as_func_ret_failure () {
295 if as_func_success; then
299 echo as_func_success failed.
302 if as_func_failure; then
304 echo as_func_failure succeeded.
307 if as_func_ret_success; then
311 echo as_func_ret_success failed.
314 if as_func_ret_failure; then
316 echo as_func_ret_failure succeeded.
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 echo positional parameters were not saved.
326 test $exitcode = 0) || { (exit 1); exit 1; }
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
343 if test "x$CONFIG_SHELL" != x; then
344 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 if test $as_have_required = no; then
353 echo This script requires a shell more modern than all the
354 echo shells that I found on your system. Please install a
355 echo modern shell, or manually run the script under such a
356 echo shell if you do have one.
357 { (exit 1); exit 1; }
367 (eval "as_func_return () {
376 as_func_ret_success () {
379 as_func_ret_failure () {
384 if as_func_success; then
388 echo as_func_success failed.
391 if as_func_failure; then
393 echo as_func_failure succeeded.
396 if as_func_ret_success; then
400 echo as_func_ret_success failed.
403 if as_func_ret_failure; then
405 echo as_func_ret_failure succeeded.
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 echo positional parameters were not saved.
415 test \$exitcode = 0") || {
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system,
418 echo including any error possibly output before this
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
473 ECHO_C= ECHO_N= ECHO_T=
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493 rm -f conf$$.dir/conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 elif ln conf$$.file conf$$ 2>/dev/null; then
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
515 if mkdir -p . 2>/dev/null; then
518 test -d ./-p && rmdir ./-p
522 if test -x / >/dev/null 2>&1; then
525 if ls -dL / >/dev/null 2>&1; then
532 if test -d "$1"; then
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
543 as_executable_p=$as_test_x
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
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
871 RADIUSD_MAJOR_VERSION
872 RADIUSD_MINOR_VERSION
877 ac_precious_vars='build_alias
892 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
894 # Initialize some variables set by options.
896 ac_init_version=false
897 # The variables have the same names as the options, with
898 # dashes changed to underlines.
906 program_transform_name=s,x,x,
914 # Installation directory options.
915 # These are left unexpanded so users can "make install exec_prefix=/foo"
916 # and all the variables that are supposed to be based on exec_prefix
917 # by default will actually change.
918 # Use braces instead of parens because sh, perl, etc. also accept them.
919 # (The list follows the same order as the GNU Coding Standards.)
920 bindir='${exec_prefix}/bin'
921 sbindir='${exec_prefix}/sbin'
922 libexecdir='${exec_prefix}/libexec'
923 datarootdir='${prefix}/share'
924 datadir='${datarootdir}'
925 sysconfdir='${prefix}/etc'
926 sharedstatedir='${prefix}/com'
927 localstatedir='${prefix}/var'
928 includedir='${prefix}/include'
929 oldincludedir='/usr/include'
930 docdir='${datarootdir}/doc/${PACKAGE}'
931 infodir='${datarootdir}/info'
936 libdir='${exec_prefix}/lib'
937 localedir='${datarootdir}/locale'
938 mandir='${datarootdir}/man'
944 # If the previous option needs an argument, assign it.
945 if test -n "$ac_prev"; then
946 eval $ac_prev=\$ac_option
952 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956 # Accept the important Cygnus configure options, so we can diagnose typos.
958 case $ac_dashdash$ac_option in
962 -bindir | --bindir | --bindi | --bind | --bin | --bi)
964 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
967 -build | --build | --buil | --bui | --bu)
968 ac_prev=build_alias ;;
969 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970 build_alias=$ac_optarg ;;
972 -cache-file | --cache-file | --cache-fil | --cache-fi \
973 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974 ac_prev=cache_file ;;
975 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977 cache_file=$ac_optarg ;;
980 cache_file=config.cache ;;
982 -datadir | --datadir | --datadi | --datad)
984 -datadir=* | --datadir=* | --datadi=* | --datad=*)
985 datadir=$ac_optarg ;;
987 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988 | --dataroo | --dataro | --datar)
989 ac_prev=datarootdir ;;
990 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992 datarootdir=$ac_optarg ;;
994 -disable-* | --disable-*)
995 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
998 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
999 { (exit 1); exit 1; }; }
1000 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1001 eval enable_$ac_feature=no ;;
1003 -docdir | --docdir | --docdi | --doc | --do)
1005 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006 docdir=$ac_optarg ;;
1008 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011 dvidir=$ac_optarg ;;
1013 -enable-* | --enable-*)
1014 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1018 { (exit 1); exit 1; }; }
1019 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1020 eval enable_$ac_feature=\$ac_optarg ;;
1022 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024 | --exec | --exe | --ex)
1025 ac_prev=exec_prefix ;;
1026 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028 | --exec=* | --exe=* | --ex=*)
1029 exec_prefix=$ac_optarg ;;
1031 -gas | --gas | --ga | --g)
1032 # Obsolete; use --with-gas.
1035 -help | --help | --hel | --he | -h)
1036 ac_init_help=long ;;
1037 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038 ac_init_help=recursive ;;
1039 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040 ac_init_help=short ;;
1042 -host | --host | --hos | --ho)
1043 ac_prev=host_alias ;;
1044 -host=* | --host=* | --hos=* | --ho=*)
1045 host_alias=$ac_optarg ;;
1047 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051 htmldir=$ac_optarg ;;
1053 -includedir | --includedir | --includedi | --included | --include \
1054 | --includ | --inclu | --incl | --inc)
1055 ac_prev=includedir ;;
1056 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057 | --includ=* | --inclu=* | --incl=* | --inc=*)
1058 includedir=$ac_optarg ;;
1060 -infodir | --infodir | --infodi | --infod | --info | --inf)
1062 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063 infodir=$ac_optarg ;;
1065 -libdir | --libdir | --libdi | --libd)
1067 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068 libdir=$ac_optarg ;;
1070 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071 | --libexe | --libex | --libe)
1072 ac_prev=libexecdir ;;
1073 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074 | --libexe=* | --libex=* | --libe=*)
1075 libexecdir=$ac_optarg ;;
1077 -localedir | --localedir | --localedi | --localed | --locale)
1078 ac_prev=localedir ;;
1079 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080 localedir=$ac_optarg ;;
1082 -localstatedir | --localstatedir | --localstatedi | --localstated \
1083 | --localstate | --localstat | --localsta | --localst | --locals)
1084 ac_prev=localstatedir ;;
1085 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087 localstatedir=$ac_optarg ;;
1089 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092 mandir=$ac_optarg ;;
1094 -nfp | --nfp | --nf)
1095 # Obsolete; use --without-fp.
1098 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099 | --no-cr | --no-c | -n)
1102 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108 | --oldin | --oldi | --old | --ol | --o)
1109 ac_prev=oldincludedir ;;
1110 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113 oldincludedir=$ac_optarg ;;
1115 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118 prefix=$ac_optarg ;;
1120 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121 | --program-pre | --program-pr | --program-p)
1122 ac_prev=program_prefix ;;
1123 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125 program_prefix=$ac_optarg ;;
1127 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128 | --program-suf | --program-su | --program-s)
1129 ac_prev=program_suffix ;;
1130 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132 program_suffix=$ac_optarg ;;
1134 -program-transform-name | --program-transform-name \
1135 | --program-transform-nam | --program-transform-na \
1136 | --program-transform-n | --program-transform- \
1137 | --program-transform | --program-transfor \
1138 | --program-transfo | --program-transf \
1139 | --program-trans | --program-tran \
1140 | --progr-tra | --program-tr | --program-t)
1141 ac_prev=program_transform_name ;;
1142 -program-transform-name=* | --program-transform-name=* \
1143 | --program-transform-nam=* | --program-transform-na=* \
1144 | --program-transform-n=* | --program-transform-=* \
1145 | --program-transform=* | --program-transfor=* \
1146 | --program-transfo=* | --program-transf=* \
1147 | --program-trans=* | --program-tran=* \
1148 | --progr-tra=* | --program-tr=* | --program-t=*)
1149 program_transform_name=$ac_optarg ;;
1151 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154 pdfdir=$ac_optarg ;;
1156 -psdir | --psdir | --psdi | --psd | --ps)
1158 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162 | -silent | --silent | --silen | --sile | --sil)
1165 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169 sbindir=$ac_optarg ;;
1171 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173 | --sharedst | --shareds | --shared | --share | --shar \
1175 ac_prev=sharedstatedir ;;
1176 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180 sharedstatedir=$ac_optarg ;;
1182 -site | --site | --sit)
1184 -site=* | --site=* | --sit=*)
1187 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190 srcdir=$ac_optarg ;;
1192 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193 | --syscon | --sysco | --sysc | --sys | --sy)
1194 ac_prev=sysconfdir ;;
1195 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197 sysconfdir=$ac_optarg ;;
1199 -target | --target | --targe | --targ | --tar | --ta | --t)
1200 ac_prev=target_alias ;;
1201 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202 target_alias=$ac_optarg ;;
1204 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 -version | --version | --versio | --versi | --vers | -V)
1208 ac_init_version=: ;;
1211 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214 { echo "$as_me: error: invalid package name: $ac_package" >&2
1215 { (exit 1); exit 1; }; }
1216 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1217 eval with_$ac_package=\$ac_optarg ;;
1219 -without-* | --without-*)
1220 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 { echo "$as_me: error: invalid package name: $ac_package" >&2
1224 { (exit 1); exit 1; }; }
1225 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1226 eval with_$ac_package=no ;;
1229 # Obsolete; use --with-x.
1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233 | --x-incl | --x-inc | --x-in | --x-i)
1234 ac_prev=x_includes ;;
1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237 x_includes=$ac_optarg ;;
1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241 ac_prev=x_libraries ;;
1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244 x_libraries=$ac_optarg ;;
1246 -*) { echo "$as_me: error: unrecognized option: $ac_option
1247 Try \`$0 --help' for more information." >&2
1248 { (exit 1); exit 1; }; }
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1255 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1256 { (exit 1); exit 1; }; }
1257 eval $ac_envvar=\$ac_optarg
1258 export $ac_envvar ;;
1261 # FIXME: should be removed in autoconf 3.0.
1262 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1271 if test -n "$ac_prev"; then
1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273 { echo "$as_me: error: missing argument to $ac_option" >&2
1274 { (exit 1); exit 1; }; }
1277 # Be sure to have absolute directory names.
1278 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279 datadir sysconfdir sharedstatedir localstatedir includedir \
1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281 libdir localedir mandir
1283 eval ac_val=\$$ac_var
1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1289 { (exit 1); exit 1; }; }
1292 # There might be people who depend on the old broken behavior: `$host'
1293 # used to hold the argument of --host etc.
1294 # FIXME: To remove some day.
1297 target=$target_alias
1299 # FIXME: To remove some day.
1300 if test "x$host_alias" != x; then
1301 if test "x$build_alias" = x; then
1302 cross_compiling=maybe
1303 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1304 If a cross compiler is detected then cross compile mode will be used." >&2
1305 elif test "x$build_alias" != "x$host_alias"; then
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313 test "$silent" = yes && exec 6>/dev/null
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319 { echo "$as_me: error: Working directory cannot be determined" >&2
1320 { (exit 1); exit 1; }; }
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322 { echo "$as_me: error: pwd does not report name of working directory" >&2
1323 { (exit 1); exit 1; }; }
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$0" ||
1331 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$0" : 'X\(//\)[^/]' \| \
1333 X"$0" : 'X\(//\)$' \| \
1334 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1358 ac_srcdir_defaulted=no
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1363 { (exit 1); exit 1; }; }
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1368 { (exit 1); exit 1; }; }
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 # Report the --help message.
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1394 \`configure' configures this package to adapt to many kinds of systems.
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1401 Defaults for the options are specified in brackets.
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1425 For better control, use the options below.
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1452 --build=BUILD configure for building on BUILD [guessed]
1453 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457 if test -n "$ac_init_help"; then
1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1464 --disable-largefile omit support for large files
1465 --enable-shared[=PKGS] build shared libraries [default=yes]
1466 --enable-static[=PKGS] build static libraries [default=yes]
1467 --enable-fast-install[=PKGS]
1468 optimize for fast installation [default=yes]
1469 --disable-libtool-lock avoid locking (might break parallel builds)
1470 --enable-strict-dependencies Fail configure on lack of module dependancy.
1471 --enable-developer Enables features of interest to developers.
1474 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1475 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1476 --with-system-libtool try to use libtool installed in your system default=use our own
1477 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1478 --with-pic try to use only PIC/non-PIC objects [default=use
1480 --with-tags[=TAGS] include additional configurations [automatic]
1481 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1482 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1483 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1484 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1485 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1486 --with-threads Use threads, if available. (default=yes)
1487 --with-vmps Compile in VMPS support. (default=yes)
1488 --with-dhcp Compile in DHCP support. (default=no)
1489 --with-static-modules=QUOTED-MODULE-LIST
1490 --with-modules=QUOTED-MODULE-LIST
1491 --with-experimental-modules Use experimental and unstable modules. (default=no)
1492 --with-openssl Use OpenSSL. (default=yes)
1493 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1494 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1495 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1496 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1497 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1499 Some influential environment variables:
1500 CC C compiler command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir>
1504 LIBS libraries to pass to the linker, e.g. -l<library>
1505 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1506 you have headers in a nonstandard directory <include dir>
1507 CXX C++ compiler command
1508 CXXFLAGS C++ compiler flags
1510 CXXCPP C++ preprocessor
1511 F77 Fortran 77 compiler command
1512 FFLAGS Fortran 77 compiler flags
1514 Use these variables to override the choices made by `configure' or to help
1515 it to find libraries and programs with nonstandard names/locations.
1521 if test "$ac_init_help" = "recursive"; then
1522 # If there are subdirs, report their specific --help.
1523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1524 test -d "$ac_dir" || continue
1528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1531 # A ".." for each directory in $ac_dir_suffix.
1532 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1533 case $ac_top_builddir_sub in
1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 ac_abs_top_builddir=$ac_pwd
1539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540 # for backward compatibility:
1541 ac_top_builddir=$ac_top_build_prefix
1544 .) # We are building in place.
1546 ac_top_srcdir=$ac_top_builddir_sub
1547 ac_abs_top_srcdir=$ac_pwd ;;
1548 [\\/]* | ?:[\\/]* ) # Absolute name.
1549 ac_srcdir=$srcdir$ac_dir_suffix;
1550 ac_top_srcdir=$srcdir
1551 ac_abs_top_srcdir=$srcdir ;;
1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554 ac_top_srcdir=$ac_top_build_prefix$srcdir
1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559 cd "$ac_dir" || { ac_status=$?; continue; }
1560 # Check for guested configure.
1561 if test -f "$ac_srcdir/configure.gnu"; then
1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1564 elif test -f "$ac_srcdir/configure"; then
1566 $SHELL "$ac_srcdir/configure" --help=recursive
1568 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570 cd "$ac_pwd" || { ac_status=$?; break; }
1574 test -n "$ac_init_help" && exit $ac_status
1575 if $ac_init_version; then
1578 generated by GNU Autoconf 2.61
1580 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1581 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1582 This configure script is free software; the Free Software Foundation
1583 gives unlimited permission to copy, distribute and modify it.
1587 cat >config.log <<_ACEOF
1588 This file contains any messages produced by compilers while
1589 running configure, to aid debugging if configure makes a mistake.
1591 It was created by $as_me, which was
1592 generated by GNU Autoconf 2.61. Invocation command line was
1604 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1605 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1606 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1607 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1608 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1610 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1611 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1613 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1614 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1615 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1616 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1617 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1618 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1619 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 test -z "$as_dir" && as_dir=.
1628 echo "PATH: $as_dir"
1644 # Keep a trace of the command line.
1645 # Strip out --no-create and --no-recursion so they do not pile up.
1646 # Strip out --silent because we don't want to record it for future runs.
1647 # Also quote any args containing shell meta-characters.
1648 # Make two passes to allow for proper duplicate-argument suppression.
1652 ac_must_keep_next=false
1658 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1660 | -silent | --silent | --silen | --sile | --sil)
1663 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1666 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1668 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1669 if test $ac_must_keep_next = true; then
1670 ac_must_keep_next=false # Got value, back to normal.
1673 *=* | --config-cache | -C | -disable-* | --disable-* \
1674 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1675 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1676 | -with-* | --with-* | -without-* | --without-* | --x)
1677 case "$ac_configure_args0 " in
1678 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1681 -* ) ac_must_keep_next=true ;;
1684 ac_configure_args="$ac_configure_args '$ac_arg'"
1689 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1690 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1692 # When interrupted or exit'd, cleanup temporary files, and complete
1693 # config.log. We remove comments because anyway the quotes in there
1694 # would cause problems or look ugly.
1695 # WARNING: Use '\'' to represent an apostrophe within the trap.
1696 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1697 trap 'exit_status=$?
1698 # Save into config.log some information that might help in debugging.
1703 ## ---------------- ##
1704 ## Cache variables. ##
1705 ## ---------------- ##
1708 # The following way of writing the cache mishandles newlines in values,
1710 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1711 eval ac_val=\$$ac_var
1715 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1716 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1719 _ | IFS | as_nl) ;; #(
1720 *) $as_unset $ac_var ;;
1725 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1726 *${as_nl}ac_space=\ *)
1728 "s/'\''/'\''\\\\'\'''\''/g;
1729 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1732 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1740 ## ----------------- ##
1741 ## Output variables. ##
1742 ## ----------------- ##
1745 for ac_var in $ac_subst_vars
1747 eval ac_val=\$$ac_var
1749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751 echo "$ac_var='\''$ac_val'\''"
1755 if test -n "$ac_subst_files"; then
1757 ## ------------------- ##
1758 ## File substitutions. ##
1759 ## ------------------- ##
1762 for ac_var in $ac_subst_files
1764 eval ac_val=\$$ac_var
1766 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1768 echo "$ac_var='\''$ac_val'\''"
1773 if test -s confdefs.h; then
1783 test "$ac_signal" != 0 &&
1784 echo "$as_me: caught signal $ac_signal"
1785 echo "$as_me: exit $exit_status"
1787 rm -f core *.core core.conftest.* &&
1788 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1791 for ac_signal in 1 2 13 15; do
1792 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1796 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1797 rm -f -r conftest* confdefs.h
1799 # Predefined preprocessor variables.
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_NAME "$PACKAGE_NAME"
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_STRING "$PACKAGE_STRING"
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1826 # Let the site file select an alternate cache file if it wants to.
1827 # Prefer explicitly selected file to automatically selected ones.
1828 if test -n "$CONFIG_SITE"; then
1829 set x "$CONFIG_SITE"
1830 elif test "x$prefix" != xNONE; then
1831 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1833 set x "$ac_default_prefix/share/config.site" \
1834 "$ac_default_prefix/etc/config.site"
1839 if test -r "$ac_site_file"; then
1840 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1841 echo "$as_me: loading site script $ac_site_file" >&6;}
1842 sed 's/^/| /' "$ac_site_file" >&5
1847 if test -r "$cache_file"; then
1848 # Some versions of bash will fail to source /dev/null (special
1849 # files actually), so we avoid doing that.
1850 if test -f "$cache_file"; then
1851 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1852 echo "$as_me: loading cache $cache_file" >&6;}
1854 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1855 *) . "./$cache_file";;
1859 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1860 echo "$as_me: creating cache $cache_file" >&6;}
1864 # Check that the precious variables saved in the cache have kept the same
1866 ac_cache_corrupted=false
1867 for ac_var in $ac_precious_vars; do
1868 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1869 eval ac_new_set=\$ac_env_${ac_var}_set
1870 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1871 eval ac_new_val=\$ac_env_${ac_var}_value
1872 case $ac_old_set,$ac_new_set in
1874 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1875 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1876 ac_cache_corrupted=: ;;
1878 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1879 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1880 ac_cache_corrupted=: ;;
1883 if test "x$ac_old_val" != "x$ac_new_val"; then
1884 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1885 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1886 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1887 echo "$as_me: former value: $ac_old_val" >&2;}
1888 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1889 echo "$as_me: current value: $ac_new_val" >&2;}
1890 ac_cache_corrupted=:
1893 # Pass precious variables to config.status.
1894 if test "$ac_new_set" = set; then
1896 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1897 *) ac_arg=$ac_var=$ac_new_val ;;
1899 case " $ac_configure_args " in
1900 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1901 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1905 if $ac_cache_corrupted; then
1906 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1907 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1908 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1909 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1910 { (exit 1); exit 1; }; }
1930 ac_cpp='$CPP $CPPFLAGS'
1931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1936 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1939 RADIUSD_VERSION=`cat VERSION`
1940 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
1941 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^2\.//'`
1946 ac_cpp='$CPP $CPPFLAGS'
1947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1950 if test -n "$ac_tool_prefix"; then
1951 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1952 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1955 if test "${ac_cv_prog_CC+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 if test -n "$CC"; then
1959 ac_cv_prog_CC="$CC" # Let the user override the test.
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 test -z "$as_dir" && as_dir=.
1966 for ac_exec_ext in '' $ac_executable_extensions; do
1967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1968 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 if test -n "$CC"; then
1980 { echo "$as_me:$LINENO: result: $CC" >&5
1981 echo "${ECHO_T}$CC" >&6; }
1983 { echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6; }
1989 if test -z "$ac_cv_prog_CC"; then
1991 # Extract the first word of "gcc", so it can be a program name with args.
1992 set dummy gcc; ac_word=$2
1993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1995 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 if test -n "$ac_ct_CC"; then
1999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 test -z "$as_dir" && as_dir=.
2006 for ac_exec_ext in '' $ac_executable_extensions; do
2007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2008 ac_cv_prog_ac_ct_CC="gcc"
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2019 if test -n "$ac_ct_CC"; then
2020 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2021 echo "${ECHO_T}$ac_ct_CC" >&6; }
2023 { echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6; }
2027 if test "x$ac_ct_CC" = x; then
2030 case $cross_compiling:$ac_tool_warned in
2032 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2033 whose name does not start with the host triplet. If you think this
2034 configuration is useful to you, please write to autoconf@gnu.org." >&5
2035 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2036 whose name does not start with the host triplet. If you think this
2037 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2038 ac_tool_warned=yes ;;
2046 if test -z "$CC"; then
2047 if test -n "$ac_tool_prefix"; then
2048 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2049 set dummy ${ac_tool_prefix}cc; ac_word=$2
2050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2052 if test "${ac_cv_prog_CC+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2055 if test -n "$CC"; then
2056 ac_cv_prog_CC="$CC" # Let the user override the test.
2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 test -z "$as_dir" && as_dir=.
2063 for ac_exec_ext in '' $ac_executable_extensions; do
2064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2065 ac_cv_prog_CC="${ac_tool_prefix}cc"
2066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076 if test -n "$CC"; then
2077 { echo "$as_me:$LINENO: result: $CC" >&5
2078 echo "${ECHO_T}$CC" >&6; }
2080 { echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6; }
2087 if test -z "$CC"; then
2088 # Extract the first word of "cc", so it can be a program name with args.
2089 set dummy cc; ac_word=$2
2090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2092 if test "${ac_cv_prog_CC+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 if test -n "$CC"; then
2096 ac_cv_prog_CC="$CC" # Let the user override the test.
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2106 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2107 ac_prog_rejected=yes
2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118 if test $ac_prog_rejected = yes; then
2119 # We found a bogon in the path, so make sure we never use it.
2120 set dummy $ac_cv_prog_CC
2122 if test $# != 0; then
2123 # We chose a different compiler from the bogus one.
2124 # However, it has the same basename, so the bogon will be chosen
2125 # first if we set CC to just the basename; use the full file name.
2127 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2133 if test -n "$CC"; then
2134 { echo "$as_me:$LINENO: result: $CC" >&5
2135 echo "${ECHO_T}$CC" >&6; }
2137 { echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6; }
2143 if test -z "$CC"; then
2144 if test -n "$ac_tool_prefix"; then
2145 for ac_prog in cl.exe
2147 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2148 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2151 if test "${ac_cv_prog_CC+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 if test -n "$CC"; then
2155 ac_cv_prog_CC="$CC" # Let the user override the test.
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 test -z "$as_dir" && as_dir=.
2162 for ac_exec_ext in '' $ac_executable_extensions; do
2163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2164 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175 if test -n "$CC"; then
2176 { echo "$as_me:$LINENO: result: $CC" >&5
2177 echo "${ECHO_T}$CC" >&6; }
2179 { echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6; }
2184 test -n "$CC" && break
2187 if test -z "$CC"; then
2189 for ac_prog in cl.exe
2191 # Extract the first word of "$ac_prog", so it can be a program name with args.
2192 set dummy $ac_prog; ac_word=$2
2193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2195 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2196 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 if test -n "$ac_ct_CC"; then
2199 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 test -z "$as_dir" && as_dir=.
2206 for ac_exec_ext in '' $ac_executable_extensions; do
2207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2208 ac_cv_prog_ac_ct_CC="$ac_prog"
2209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2219 if test -n "$ac_ct_CC"; then
2220 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2221 echo "${ECHO_T}$ac_ct_CC" >&6; }
2223 { echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6; }
2228 test -n "$ac_ct_CC" && break
2231 if test "x$ac_ct_CC" = x; then
2234 case $cross_compiling:$ac_tool_warned in
2236 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2237 whose name does not start with the host triplet. If you think this
2238 configuration is useful to you, please write to autoconf@gnu.org." >&5
2239 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2240 whose name does not start with the host triplet. If you think this
2241 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2242 ac_tool_warned=yes ;;
2251 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2252 See \`config.log' for more details." >&5
2253 echo "$as_me: error: no acceptable C compiler found in \$PATH
2254 See \`config.log' for more details." >&2;}
2255 { (exit 1); exit 1; }; }
2257 # Provide some information about the compiler.
2258 echo "$as_me:$LINENO: checking for C compiler version" >&5
2259 ac_compiler=`set X $ac_compile; echo $2`
2260 { (ac_try="$ac_compiler --version >&5"
2262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2263 *) ac_try_echo=$ac_try;;
2265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2266 (eval "$ac_compiler --version >&5") 2>&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }
2270 { (ac_try="$ac_compiler -v >&5"
2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273 *) ac_try_echo=$ac_try;;
2275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2276 (eval "$ac_compiler -v >&5") 2>&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }
2280 { (ac_try="$ac_compiler -V >&5"
2282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283 *) ac_try_echo=$ac_try;;
2285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2286 (eval "$ac_compiler -V >&5") 2>&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }
2291 cat >conftest.$ac_ext <<_ACEOF
2294 cat confdefs.h >>conftest.$ac_ext
2295 cat >>conftest.$ac_ext <<_ACEOF
2296 /* end confdefs.h. */
2306 ac_clean_files_save=$ac_clean_files
2307 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2308 # Try to create an executable without -o first, disregard a.out.
2309 # It will help us diagnose broken compilers, and finding out an intuition
2311 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2312 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2313 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2315 # List of possible output files, starting from the most likely.
2316 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2317 # only as a last resort. b.out is created by i960 compilers.
2318 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2320 # The IRIX 6 linker writes into existing files which may not be
2321 # executable, retaining their permissions. Remove them first so a
2322 # subsequent execution test works.
2324 for ac_file in $ac_files
2327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2328 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2333 if { (ac_try="$ac_link_default"
2335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2336 *) ac_try_echo=$ac_try;;
2338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2339 (eval "$ac_link_default") 2>&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; then
2343 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2344 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2345 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2346 # so that the user can short-circuit this test for compilers unknown to
2348 for ac_file in $ac_files ''
2350 test -f "$ac_file" || continue
2352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2355 # We found the default executable, but exeext='' is most
2359 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2361 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2363 # We set ac_cv_exeext here because the later test for it is not
2364 # safe: cross compilers may not add the suffix if given an `-o'
2365 # argument, so we may need to know it at that point already.
2366 # Even if this section looks crufty: it has the advantage of
2373 test "$ac_cv_exeext" = no && ac_cv_exeext=
2379 { echo "$as_me:$LINENO: result: $ac_file" >&5
2380 echo "${ECHO_T}$ac_file" >&6; }
2381 if test -z "$ac_file"; then
2382 echo "$as_me: failed program was:" >&5
2383 sed 's/^/| /' conftest.$ac_ext >&5
2385 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2386 See \`config.log' for more details." >&5
2387 echo "$as_me: error: C compiler cannot create executables
2388 See \`config.log' for more details." >&2;}
2389 { (exit 77); exit 77; }; }
2392 ac_exeext=$ac_cv_exeext
2394 # Check that the compiler produces executables we can run. If not, either
2395 # the compiler is broken, or we cross compile.
2396 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2397 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2398 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2399 # If not cross compiling, check that we can run a simple program.
2400 if test "$cross_compiling" != yes; then
2401 if { ac_try='./$ac_file'
2402 { (case "(($ac_try" in
2403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404 *) ac_try_echo=$ac_try;;
2406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2407 (eval "$ac_try") 2>&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2413 if test "$cross_compiling" = maybe; then
2416 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2417 If you meant to cross compile, use \`--host'.
2418 See \`config.log' for more details." >&5
2419 echo "$as_me: error: cannot run C compiled programs.
2420 If you meant to cross compile, use \`--host'.
2421 See \`config.log' for more details." >&2;}
2422 { (exit 1); exit 1; }; }
2426 { echo "$as_me:$LINENO: result: yes" >&5
2427 echo "${ECHO_T}yes" >&6; }
2429 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2430 ac_clean_files=$ac_clean_files_save
2431 # Check that the compiler produces executables we can run. If not, either
2432 # the compiler is broken, or we cross compile.
2433 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2434 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2435 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2436 echo "${ECHO_T}$cross_compiling" >&6; }
2438 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2439 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2440 if { (ac_try="$ac_link"
2442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443 *) ac_try_echo=$ac_try;;
2445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2446 (eval "$ac_link") 2>&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; then
2450 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2451 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2452 # work properly (i.e., refer to `conftest.exe'), while it won't with
2454 for ac_file in conftest.exe conftest conftest.*; do
2455 test -f "$ac_file" || continue
2457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2458 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2464 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2467 See \`config.log' for more details." >&2;}
2468 { (exit 1); exit 1; }; }
2471 rm -f conftest$ac_cv_exeext
2472 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2473 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2475 rm -f conftest.$ac_ext
2476 EXEEXT=$ac_cv_exeext
2478 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2479 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2480 if test "${ac_cv_objext+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 cat >conftest.$ac_ext <<_ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2498 rm -f conftest.o conftest.obj
2499 if { (ac_try="$ac_compile"
2501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2502 *) ac_try_echo=$ac_try;;
2504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2505 (eval "$ac_compile") 2>&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; then
2509 for ac_file in conftest.o conftest.obj conftest.*; do
2510 test -f "$ac_file" || continue;
2512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2513 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2518 echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2521 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2522 See \`config.log' for more details." >&5
2523 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2524 See \`config.log' for more details." >&2;}
2525 { (exit 1); exit 1; }; }
2528 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2530 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2531 echo "${ECHO_T}$ac_cv_objext" >&6; }
2532 OBJEXT=$ac_cv_objext
2534 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2535 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2536 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 cat >conftest.$ac_ext <<_ACEOF
2542 cat confdefs.h >>conftest.$ac_ext
2543 cat >>conftest.$ac_ext <<_ACEOF
2544 /* end confdefs.h. */
2557 rm -f conftest.$ac_objext
2558 if { (ac_try="$ac_compile"
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564 (eval "$ac_compile") 2>conftest.er1
2566 grep -v '^ *+' conftest.er1 >conftest.err
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } && {
2571 test -z "$ac_c_werror_flag" ||
2572 test ! -s conftest.err
2573 } && test -s conftest.$ac_objext; then
2576 echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2586 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2587 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2588 GCC=`test $ac_compiler_gnu = yes && echo yes`
2589 ac_test_CFLAGS=${CFLAGS+set}
2590 ac_save_CFLAGS=$CFLAGS
2591 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2592 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2593 if test "${ac_cv_prog_cc_g+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 ac_save_c_werror_flag=$ac_c_werror_flag
2597 ac_c_werror_flag=yes
2600 cat >conftest.$ac_ext <<_ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2615 rm -f conftest.$ac_objext
2616 if { (ac_try="$ac_compile"
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_compile") 2>conftest.er1
2624 grep -v '^ *+' conftest.er1 >conftest.err
2626 cat conftest.err >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } && {
2629 test -z "$ac_c_werror_flag" ||
2630 test ! -s conftest.err
2631 } && test -s conftest.$ac_objext; then
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2638 cat >conftest.$ac_ext <<_ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h. */
2653 rm -f conftest.$ac_objext
2654 if { (ac_try="$ac_compile"
2656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657 *) ac_try_echo=$ac_try;;
2659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2660 (eval "$ac_compile") 2>conftest.er1
2662 grep -v '^ *+' conftest.er1 >conftest.err
2664 cat conftest.err >&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); } && {
2667 test -z "$ac_c_werror_flag" ||
2668 test ! -s conftest.err
2669 } && test -s conftest.$ac_objext; then
2672 echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2675 ac_c_werror_flag=$ac_save_c_werror_flag
2677 cat >conftest.$ac_ext <<_ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2692 rm -f conftest.$ac_objext
2693 if { (ac_try="$ac_compile"
2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696 *) ac_try_echo=$ac_try;;
2698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2699 (eval "$ac_compile") 2>conftest.er1
2701 grep -v '^ *+' conftest.er1 >conftest.err
2703 cat conftest.err >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } && {
2706 test -z "$ac_c_werror_flag" ||
2707 test ! -s conftest.err
2708 } && test -s conftest.$ac_objext; then
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 ac_c_werror_flag=$ac_save_c_werror_flag
2726 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2727 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2728 if test "$ac_test_CFLAGS" = set; then
2729 CFLAGS=$ac_save_CFLAGS
2730 elif test $ac_cv_prog_cc_g = yes; then
2731 if test "$GCC" = yes; then
2737 if test "$GCC" = yes; then
2743 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2744 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2745 if test "${ac_cv_prog_cc_c89+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 ac_cv_prog_cc_c89=no
2750 cat >conftest.$ac_ext <<_ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2758 #include <sys/types.h>
2759 #include <sys/stat.h>
2760 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2761 struct buf { int x; };
2762 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2763 static char *e (p, i)
2769 static char *f (char * (*g) (char **, int), char **p, ...)
2774 s = g (p, va_arg (v,int));
2779 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2780 function prototypes and stuff, but not '\xHH' hex character constants.
2781 These don't provoke an error unfortunately, instead are silently treated
2782 as 'x'. The following induces an error, until -std is added to get
2783 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2784 array size at least. It's necessary to write '\x00'==0 to get something
2785 that's true only with -std. */
2786 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2788 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2789 inside strings and character constants. */
2791 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2793 int test (int i, double x);
2794 struct s1 {int (*f) (int a);};
2795 struct s2 {int (*f) (double a);};
2796 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2802 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2807 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2808 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2810 CC="$ac_save_CC $ac_arg"
2811 rm -f conftest.$ac_objext
2812 if { (ac_try="$ac_compile"
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_compile") 2>conftest.er1
2820 grep -v '^ *+' conftest.er1 >conftest.err
2822 cat conftest.err >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } && {
2825 test -z "$ac_c_werror_flag" ||
2826 test ! -s conftest.err
2827 } && test -s conftest.$ac_objext; then
2828 ac_cv_prog_cc_c89=$ac_arg
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2836 rm -f core conftest.err conftest.$ac_objext
2837 test "x$ac_cv_prog_cc_c89" != "xno" && break
2839 rm -f conftest.$ac_ext
2844 case "x$ac_cv_prog_cc_c89" in
2846 { echo "$as_me:$LINENO: result: none needed" >&5
2847 echo "${ECHO_T}none needed" >&6; } ;;
2849 { echo "$as_me:$LINENO: result: unsupported" >&5
2850 echo "${ECHO_T}unsupported" >&6; } ;;
2852 CC="$CC $ac_cv_prog_cc_c89"
2853 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2854 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2859 ac_cpp='$CPP $CPPFLAGS'
2860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2865 ac_cpp='$CXXCPP $CPPFLAGS'
2866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2869 if test -z "$CXX"; then
2870 if test -n "$CCC"; then
2873 if test -n "$ac_tool_prefix"; then
2874 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2880 if test "${ac_cv_prog_CXX+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 if test -n "$CXX"; then
2884 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 if test -n "$CXX"; then
2905 { echo "$as_me:$LINENO: result: $CXX" >&5
2906 echo "${ECHO_T}$CXX" >&6; }
2908 { echo "$as_me:$LINENO: result: no" >&5
2909 echo "${ECHO_T}no" >&6; }
2913 test -n "$CXX" && break
2916 if test -z "$CXX"; then
2918 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2920 # Extract the first word of "$ac_prog", so it can be a program name with args.
2921 set dummy $ac_prog; ac_word=$2
2922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2924 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 if test -n "$ac_ct_CXX"; then
2928 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_ac_ct_CXX="$ac_prog"
2938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2948 if test -n "$ac_ct_CXX"; then
2949 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2950 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2952 { echo "$as_me:$LINENO: result: no" >&5
2953 echo "${ECHO_T}no" >&6; }
2957 test -n "$ac_ct_CXX" && break
2960 if test "x$ac_ct_CXX" = x; then
2963 case $cross_compiling:$ac_tool_warned in
2965 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2966 whose name does not start with the host triplet. If you think this
2967 configuration is useful to you, please write to autoconf@gnu.org." >&5
2968 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2969 whose name does not start with the host triplet. If you think this
2970 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2971 ac_tool_warned=yes ;;
2979 # Provide some information about the compiler.
2980 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2981 ac_compiler=`set X $ac_compile; echo $2`
2982 { (ac_try="$ac_compiler --version >&5"
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_compiler --version >&5") 2>&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }
2992 { (ac_try="$ac_compiler -v >&5"
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_compiler -v >&5") 2>&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }
3002 { (ac_try="$ac_compiler -V >&5"
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_compiler -V >&5") 2>&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }
3013 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3014 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3015 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 cat >conftest.$ac_ext <<_ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3036 rm -f conftest.$ac_objext
3037 if { (ac_try="$ac_compile"
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_compile") 2>conftest.er1
3045 grep -v '^ *+' conftest.er1 >conftest.err
3047 cat conftest.err >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } && {
3050 test -z "$ac_cxx_werror_flag" ||
3051 test ! -s conftest.err
3052 } && test -s conftest.$ac_objext; then
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3062 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3065 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3066 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3067 GXX=`test $ac_compiler_gnu = yes && echo yes`
3068 ac_test_CXXFLAGS=${CXXFLAGS+set}
3069 ac_save_CXXFLAGS=$CXXFLAGS
3070 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3071 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3072 if test "${ac_cv_prog_cxx_g+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3076 ac_cxx_werror_flag=yes
3079 cat >conftest.$ac_ext <<_ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compile") 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } && {
3108 test -z "$ac_cxx_werror_flag" ||
3109 test ! -s conftest.err
3110 } && test -s conftest.$ac_objext; then
3111 ac_cv_prog_cxx_g=yes
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3117 cat >conftest.$ac_ext <<_ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3141 grep -v '^ *+' conftest.er1 >conftest.err
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } && {
3146 test -z "$ac_cxx_werror_flag" ||
3147 test ! -s conftest.err
3148 } && test -s conftest.$ac_objext; then
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3154 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3156 cat >conftest.$ac_ext <<_ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3171 rm -f conftest.$ac_objext
3172 if { (ac_try="$ac_compile"
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_compile") 2>conftest.er1
3180 grep -v '^ *+' conftest.er1 >conftest.err
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } && {
3185 test -z "$ac_cxx_werror_flag" ||
3186 test ! -s conftest.err
3187 } && test -s conftest.$ac_objext; then
3188 ac_cv_prog_cxx_g=yes
3190 echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3205 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3206 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3207 if test "$ac_test_CXXFLAGS" = set; then
3208 CXXFLAGS=$ac_save_CXXFLAGS
3209 elif test $ac_cv_prog_cxx_g = yes; then
3210 if test "$GXX" = yes; then
3216 if test "$GXX" = yes; then
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3236 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3237 # On Suns, sometimes $CPP names a directory.
3238 if test -n "$CPP" && test -d "$CPP"; then
3241 if test -z "$CPP"; then
3242 if test "${ac_cv_prog_CPP+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 # Double quotes because CPP needs to be expanded
3246 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3249 for ac_c_preproc_warn_flag in '' yes
3251 # Use a header file that comes with gcc, so configuring glibc
3252 # with a fresh cross-compiler works.
3253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3254 # <limits.h> exists even on freestanding compilers.
3255 # On the NeXT, cc -E runs the code through the compiler's parser,
3256 # not just through cpp. "Syntax error" is here to catch this case.
3257 cat >conftest.$ac_ext <<_ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3264 # include <limits.h>
3266 # include <assert.h>
3270 if { (ac_try="$ac_cpp conftest.$ac_ext"
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278 grep -v '^ *+' conftest.er1 >conftest.err
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } >/dev/null && {
3283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3284 test ! -s conftest.err
3288 echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3291 # Broken: fails on valid input.
3295 rm -f conftest.err conftest.$ac_ext
3297 # OK, works on sane cases. Now check whether nonexistent headers
3298 # can be detected and how.
3299 cat >conftest.$ac_ext <<_ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3305 #include <ac_nonexistent.h>
3307 if { (ac_try="$ac_cpp conftest.$ac_ext"
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3315 grep -v '^ *+' conftest.er1 >conftest.err
3317 cat conftest.err >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); } >/dev/null && {
3320 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3321 test ! -s conftest.err
3323 # Broken: success on invalid input.
3326 echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3329 # Passes both tests.
3334 rm -f conftest.err conftest.$ac_ext
3337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3338 rm -f conftest.err conftest.$ac_ext
3339 if $ac_preproc_ok; then
3351 { echo "$as_me:$LINENO: result: $CPP" >&5
3352 echo "${ECHO_T}$CPP" >&6; }
3354 for ac_c_preproc_warn_flag in '' yes
3356 # Use a header file that comes with gcc, so configuring glibc
3357 # with a fresh cross-compiler works.
3358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3359 # <limits.h> exists even on freestanding compilers.
3360 # On the NeXT, cc -E runs the code through the compiler's parser,
3361 # not just through cpp. "Syntax error" is here to catch this case.
3362 cat >conftest.$ac_ext <<_ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3369 # include <limits.h>
3371 # include <assert.h>
3375 if { (ac_try="$ac_cpp conftest.$ac_ext"
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3383 grep -v '^ *+' conftest.er1 >conftest.err
3385 cat conftest.err >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } >/dev/null && {
3388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3389 test ! -s conftest.err
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3396 # Broken: fails on valid input.
3400 rm -f conftest.err conftest.$ac_ext
3402 # OK, works on sane cases. Now check whether nonexistent headers
3403 # can be detected and how.
3404 cat >conftest.$ac_ext <<_ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3410 #include <ac_nonexistent.h>
3412 if { (ac_try="$ac_cpp conftest.$ac_ext"
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3420 grep -v '^ *+' conftest.er1 >conftest.err
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } >/dev/null && {
3425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3426 test ! -s conftest.err
3428 # Broken: success on invalid input.
3431 echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3434 # Passes both tests.
3439 rm -f conftest.err conftest.$ac_ext
3442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3443 rm -f conftest.err conftest.$ac_ext
3444 if $ac_preproc_ok; then
3447 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3448 See \`config.log' for more details." >&5
3449 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3450 See \`config.log' for more details." >&2;}
3451 { (exit 1); exit 1; }; }
3455 ac_cpp='$CPP $CPPFLAGS'
3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3462 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3463 if test "${ac_cv_path_GREP+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 # Extract the first word of "grep ggrep" to use in msg output
3467 if test -z "$GREP"; then
3468 set dummy grep ggrep; ac_prog_name=$2
3469 if test "${ac_cv_path_GREP+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 ac_path_GREP_found=false
3473 # Loop through the user's path and test for each of PROGNAME-LIST
3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3478 test -z "$as_dir" && as_dir=.
3479 for ac_prog in grep ggrep; do
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3482 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3483 # Check for GNU ac_path_GREP and select it if it is found.
3484 # Check for GNU $ac_path_GREP
3485 case `"$ac_path_GREP" --version 2>&1` in
3487 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3490 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3493 cat "conftest.in" "conftest.in" >"conftest.tmp"
3494 mv "conftest.tmp" "conftest.in"
3495 cp "conftest.in" "conftest.nl"
3496 echo 'GREP' >> "conftest.nl"
3497 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3498 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3499 ac_count=`expr $ac_count + 1`
3500 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3501 # Best one so far, save it but keep looking for a better one
3502 ac_cv_path_GREP="$ac_path_GREP"
3503 ac_path_GREP_max=$ac_count
3505 # 10*(2^10) chars as input seems more than enough
3506 test $ac_count -gt 10 && break
3508 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3512 $ac_path_GREP_found && break 3
3522 GREP="$ac_cv_path_GREP"
3523 if test -z "$GREP"; then
3524 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3525 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3526 { (exit 1); exit 1; }; }
3530 ac_cv_path_GREP=$GREP
3535 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3536 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3537 GREP="$ac_cv_path_GREP"
3540 { echo "$as_me:$LINENO: checking for egrep" >&5
3541 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3542 if test "${ac_cv_path_EGREP+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3546 then ac_cv_path_EGREP="$GREP -E"
3548 # Extract the first word of "egrep" to use in msg output
3549 if test -z "$EGREP"; then
3550 set dummy egrep; ac_prog_name=$2
3551 if test "${ac_cv_path_EGREP+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 ac_path_EGREP_found=false
3555 # Loop through the user's path and test for each of PROGNAME-LIST
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3560 test -z "$as_dir" && as_dir=.
3561 for ac_prog in egrep; do
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3564 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3565 # Check for GNU ac_path_EGREP and select it if it is found.
3566 # Check for GNU $ac_path_EGREP
3567 case `"$ac_path_EGREP" --version 2>&1` in
3569 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3572 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3575 cat "conftest.in" "conftest.in" >"conftest.tmp"
3576 mv "conftest.tmp" "conftest.in"
3577 cp "conftest.in" "conftest.nl"
3578 echo 'EGREP' >> "conftest.nl"
3579 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3581 ac_count=`expr $ac_count + 1`
3582 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3583 # Best one so far, save it but keep looking for a better one
3584 ac_cv_path_EGREP="$ac_path_EGREP"
3585 ac_path_EGREP_max=$ac_count
3587 # 10*(2^10) chars as input seems more than enough
3588 test $ac_count -gt 10 && break
3590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3594 $ac_path_EGREP_found && break 3
3604 EGREP="$ac_cv_path_EGREP"
3605 if test -z "$EGREP"; then
3606 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3607 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3608 { (exit 1); exit 1; }; }
3612 ac_cv_path_EGREP=$EGREP
3618 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3619 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3620 EGREP="$ac_cv_path_EGREP"
3624 { echo "$as_me:$LINENO: checking for AIX" >&5
3625 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3626 cat >conftest.$ac_ext <<_ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3638 $EGREP "yes" >/dev/null 2>&1; then
3639 { echo "$as_me:$LINENO: result: yes" >&5
3640 echo "${ECHO_T}yes" >&6; }
3641 cat >>confdefs.h <<\_ACEOF
3642 #define _ALL_SOURCE 1
3646 { echo "$as_me:$LINENO: result: no" >&5
3647 echo "${ECHO_T}no" >&6; }
3653 if test $ac_cv_c_compiler_gnu = yes; then
3654 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3655 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3656 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 ac_pattern="Autoconf.*'x'"
3660 cat >conftest.$ac_ext <<_ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3670 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3671 ac_cv_prog_gcc_traditional=yes
3673 ac_cv_prog_gcc_traditional=no
3678 if test $ac_cv_prog_gcc_traditional = no; then
3679 cat >conftest.$ac_ext <<_ACEOF
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h. */
3688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3689 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3690 ac_cv_prog_gcc_traditional=yes
3696 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3697 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3698 if test $ac_cv_prog_gcc_traditional = yes; then
3699 CC="$CC -traditional"
3703 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3704 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3705 if test "${ac_cv_prog_suncc+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 cat > conftest.c <<EOF
3713 if { ac_try='${CC-cc} -E conftest.c'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3719 ac_cv_prog_suncc=yes
3724 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3725 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3726 if test -n "$ac_tool_prefix"; then
3727 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3731 if test "${ac_cv_prog_RANLIB+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 if test -n "$RANLIB"; then
3735 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3744 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 RANLIB=$ac_cv_prog_RANLIB
3755 if test -n "$RANLIB"; then
3756 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3757 echo "${ECHO_T}$RANLIB" >&6; }
3759 { echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6; }
3765 if test -z "$ac_cv_prog_RANLIB"; then
3766 ac_ct_RANLIB=$RANLIB
3767 # Extract the first word of "ranlib", so it can be a program name with args.
3768 set dummy ranlib; ac_word=$2
3769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3771 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 if test -n "$ac_ct_RANLIB"; then
3775 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 test -z "$as_dir" && as_dir=.
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3784 ac_cv_prog_ac_ct_RANLIB="ranlib"
3785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3795 if test -n "$ac_ct_RANLIB"; then
3796 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3797 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3799 { echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6; }
3803 if test "x$ac_ct_RANLIB" = x; then
3806 case $cross_compiling:$ac_tool_warned in
3808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3809 whose name does not start with the host triplet. If you think this
3810 configuration is useful to you, please write to autoconf@gnu.org." >&5
3811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3812 whose name does not start with the host triplet. If you think this
3813 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3814 ac_tool_warned=yes ;;
3816 RANLIB=$ac_ct_RANLIB
3819 RANLIB="$ac_cv_prog_RANLIB"
3823 # Check whether --enable-largefile was given.
3824 if test "${enable_largefile+set}" = set; then
3825 enableval=$enable_largefile;
3828 if test "$enable_largefile" != no; then
3830 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3831 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3832 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 ac_cv_sys_largefile_CC=no
3836 if test "$GCC" != yes; then
3839 # IRIX 6.2 and later do not support large files by default,
3840 # so use the C compiler's -n32 option if that helps.
3841 cat >conftest.$ac_ext <<_ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847 #include <sys/types.h>
3848 /* Check that off_t can represent 2**63 - 1 correctly.
3849 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3850 since some C++ compilers masquerading as C compilers
3851 incorrectly reject 9223372036854775807. */
3852 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3853 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3854 && LARGE_OFF_T % 2147483647 == 1)
3864 rm -f conftest.$ac_objext
3865 if { (ac_try="$ac_compile"
3867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868 *) ac_try_echo=$ac_try;;
3870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3871 (eval "$ac_compile") 2>conftest.er1
3873 grep -v '^ *+' conftest.er1 >conftest.err
3875 cat conftest.err >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } && {
3878 test -z "$ac_c_werror_flag" ||
3879 test ! -s conftest.err
3880 } && test -s conftest.$ac_objext; then
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3889 rm -f core conftest.err conftest.$ac_objext
3891 rm -f conftest.$ac_objext
3892 if { (ac_try="$ac_compile"
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3898 (eval "$ac_compile") 2>conftest.er1
3900 grep -v '^ *+' conftest.er1 >conftest.err
3902 cat conftest.err >&5
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); } && {
3905 test -z "$ac_c_werror_flag" ||
3906 test ! -s conftest.err
3907 } && test -s conftest.$ac_objext; then
3908 ac_cv_sys_largefile_CC=' -n32'; break
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3916 rm -f core conftest.err conftest.$ac_objext
3920 rm -f conftest.$ac_ext
3923 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3924 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3925 if test "$ac_cv_sys_largefile_CC" != no; then
3926 CC=$CC$ac_cv_sys_largefile_CC
3929 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3930 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3931 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 cat >conftest.$ac_ext <<_ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3941 #include <sys/types.h>
3942 /* Check that off_t can represent 2**63 - 1 correctly.
3943 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3944 since some C++ compilers masquerading as C compilers
3945 incorrectly reject 9223372036854775807. */
3946 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3947 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3948 && LARGE_OFF_T % 2147483647 == 1)
3958 rm -f conftest.$ac_objext
3959 if { (ac_try="$ac_compile"
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965 (eval "$ac_compile") 2>conftest.er1
3967 grep -v '^ *+' conftest.er1 >conftest.err
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } && {
3972 test -z "$ac_c_werror_flag" ||
3973 test ! -s conftest.err
3974 } && test -s conftest.$ac_objext; then
3975 ac_cv_sys_file_offset_bits=no; break
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3984 cat >conftest.$ac_ext <<_ACEOF
3987 cat confdefs.h >>conftest.$ac_ext
3988 cat >>conftest.$ac_ext <<_ACEOF
3989 /* end confdefs.h. */
3990 #define _FILE_OFFSET_BITS 64
3991 #include <sys/types.h>
3992 /* Check that off_t can represent 2**63 - 1 correctly.
3993 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3994 since some C++ compilers masquerading as C compilers
3995 incorrectly reject 9223372036854775807. */
3996 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3997 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3998 && LARGE_OFF_T % 2147483647 == 1)
4008 rm -f conftest.$ac_objext
4009 if { (ac_try="$ac_compile"
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015 (eval "$ac_compile") 2>conftest.er1
4017 grep -v '^ *+' conftest.er1 >conftest.err
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } && {
4022 test -z "$ac_c_werror_flag" ||
4023 test ! -s conftest.err
4024 } && test -s conftest.$ac_objext; then
4025 ac_cv_sys_file_offset_bits=64; break
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034 ac_cv_sys_file_offset_bits=unknown
4038 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4039 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4040 case $ac_cv_sys_file_offset_bits in #(
4043 cat >>confdefs.h <<_ACEOF
4044 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4049 if test $ac_cv_sys_file_offset_bits = unknown; then
4050 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4051 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4052 if test "${ac_cv_sys_large_files+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 cat >conftest.$ac_ext <<_ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4062 #include <sys/types.h>
4063 /* Check that off_t can represent 2**63 - 1 correctly.
4064 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4065 since some C++ compilers masquerading as C compilers
4066 incorrectly reject 9223372036854775807. */
4067 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4068 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4069 && LARGE_OFF_T % 2147483647 == 1)
4079 rm -f conftest.$ac_objext
4080 if { (ac_try="$ac_compile"
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086 (eval "$ac_compile") 2>conftest.er1
4088 grep -v '^ *+' conftest.er1 >conftest.err
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } && {
4093 test -z "$ac_c_werror_flag" ||
4094 test ! -s conftest.err
4095 } && test -s conftest.$ac_objext; then
4096 ac_cv_sys_large_files=no; break
4098 echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105 cat >conftest.$ac_ext <<_ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h. */
4111 #define _LARGE_FILES 1
4112 #include <sys/types.h>
4113 /* Check that off_t can represent 2**63 - 1 correctly.
4114 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4115 since some C++ compilers masquerading as C compilers
4116 incorrectly reject 9223372036854775807. */
4117 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4118 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4119 && LARGE_OFF_T % 2147483647 == 1)
4129 rm -f conftest.$ac_objext
4130 if { (ac_try="$ac_compile"
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136 (eval "$ac_compile") 2>conftest.er1
4138 grep -v '^ *+' conftest.er1 >conftest.err
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } && {
4143 test -z "$ac_c_werror_flag" ||
4144 test ! -s conftest.err
4145 } && test -s conftest.$ac_objext; then
4146 ac_cv_sys_large_files=1; break
4148 echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155 ac_cv_sys_large_files=unknown
4159 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4160 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4161 case $ac_cv_sys_large_files in #(
4164 cat >>confdefs.h <<_ACEOF
4165 #define _LARGE_FILES $ac_cv_sys_large_files
4174 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4175 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4176 if test "${ac_cv_header_stdc+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 cat >conftest.$ac_ext <<_ACEOF
4182 cat confdefs.h >>conftest.$ac_ext
4183 cat >>conftest.$ac_ext <<_ACEOF
4184 /* end confdefs.h. */
4198 rm -f conftest.$ac_objext
4199 if { (ac_try="$ac_compile"
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4205 (eval "$ac_compile") 2>conftest.er1
4207 grep -v '^ *+' conftest.er1 >conftest.err
4209 cat conftest.err >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } && {
4212 test -z "$ac_c_werror_flag" ||
4213 test ! -s conftest.err
4214 } && test -s conftest.$ac_objext; then
4215 ac_cv_header_stdc=yes
4217 echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4220 ac_cv_header_stdc=no
4223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225 if test $ac_cv_header_stdc = yes; then
4226 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4227 cat >conftest.$ac_ext <<_ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4237 $EGREP "memchr" >/dev/null 2>&1; then
4240 ac_cv_header_stdc=no
4246 if test $ac_cv_header_stdc = yes; then
4247 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4248 cat >conftest.$ac_ext <<_ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4258 $EGREP "free" >/dev/null 2>&1; then
4261 ac_cv_header_stdc=no
4267 if test $ac_cv_header_stdc = yes; then
4268 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4269 if test "$cross_compiling" = yes; then
4272 cat >conftest.$ac_ext <<_ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4280 #if ((' ' & 0x0FF) == 0x020)
4281 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4282 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4284 # define ISLOWER(c) \
4285 (('a' <= (c) && (c) <= 'i') \
4286 || ('j' <= (c) && (c) <= 'r') \
4287 || ('s' <= (c) && (c) <= 'z'))
4288 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4291 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4296 for (i = 0; i < 256; i++)
4297 if (XOR (islower (i), ISLOWER (i))
4298 || toupper (i) != TOUPPER (i))
4303 rm -f conftest$ac_exeext
4304 if { (ac_try="$ac_link"
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_link") 2>&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4314 { (case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_try") 2>&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4325 echo "$as_me: program exited with status $ac_status" >&5
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4330 ac_cv_header_stdc=no
4332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4338 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4339 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4340 if test $ac_cv_header_stdc = yes; then
4342 cat >>confdefs.h <<\_ACEOF
4343 #define STDC_HEADERS 1
4348 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4358 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4359 inttypes.h stdint.h unistd.h
4361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 cat >conftest.$ac_ext <<_ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4373 $ac_includes_default
4375 #include <$ac_header>
4377 rm -f conftest.$ac_objext
4378 if { (ac_try="$ac_compile"
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_compile") 2>conftest.er1
4386 grep -v '^ *+' conftest.er1 >conftest.err
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } && {
4391 test -z "$ac_c_werror_flag" ||
4392 test ! -s conftest.err
4393 } && test -s conftest.$ac_objext; then
4394 eval "$as_ac_Header=yes"
4396 echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4399 eval "$as_ac_Header=no"
4402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404 ac_res=`eval echo '${'$as_ac_Header'}'`
4405 { echo "$as_me:$LINENO: result: $ac_res" >&5
4406 echo "${ECHO_T}$ac_res" >&6; }
4407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4408 cat >>confdefs.h <<_ACEOF
4409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4417 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4418 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4419 if test "${ac_cv_c_bigendian+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 # See if sys/param.h defines the BYTE_ORDER macro.
4423 cat >conftest.$ac_ext <<_ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4429 #include <sys/types.h>
4430 #include <sys/param.h>
4435 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4436 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4444 rm -f conftest.$ac_objext
4445 if { (ac_try="$ac_compile"
4447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448 *) ac_try_echo=$ac_try;;
4450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4451 (eval "$ac_compile") 2>conftest.er1
4453 grep -v '^ *+' conftest.er1 >conftest.err
4455 cat conftest.err >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } && {
4458 test -z "$ac_c_werror_flag" ||
4459 test ! -s conftest.err
4460 } && test -s conftest.$ac_objext; then
4461 # It does; now see whether it defined to BIG_ENDIAN or not.
4462 cat >conftest.$ac_ext <<_ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4468 #include <sys/types.h>
4469 #include <sys/param.h>
4474 #if BYTE_ORDER != BIG_ENDIAN
4482 rm -f conftest.$ac_objext
4483 if { (ac_try="$ac_compile"
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_compile") 2>conftest.er1
4491 grep -v '^ *+' conftest.er1 >conftest.err
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } && {
4496 test -z "$ac_c_werror_flag" ||
4497 test ! -s conftest.err
4498 } && test -s conftest.$ac_objext; then
4499 ac_cv_c_bigendian=yes
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4504 ac_cv_c_bigendian=no
4507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4509 echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4512 # It does not; compile a test program.
4513 if test "$cross_compiling" = yes; then
4514 # try to guess the endianness by grepping values into an object file
4515 ac_cv_c_bigendian=unknown
4516 cat >conftest.$ac_ext <<_ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4522 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4523 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4524 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4525 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4526 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4527 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4531 _ascii (); _ebcdic ();
4536 rm -f conftest.$ac_objext
4537 if { (ac_try="$ac_compile"
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543 (eval "$ac_compile") 2>conftest.er1
4545 grep -v '^ *+' conftest.er1 >conftest.err
4547 cat conftest.err >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } && {
4550 test -z "$ac_c_werror_flag" ||
4551 test ! -s conftest.err
4552 } && test -s conftest.$ac_objext; then
4553 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4554 ac_cv_c_bigendian=yes
4556 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4557 if test "$ac_cv_c_bigendian" = unknown; then
4558 ac_cv_c_bigendian=no
4560 # finding both strings is unlikely to happen, but who knows?
4561 ac_cv_c_bigendian=unknown
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 cat >conftest.$ac_ext <<_ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h. */
4579 $ac_includes_default
4584 /* Are we little or big endian? From Harbison&Steele. */
4588 char c[sizeof (long int)];
4591 return u.c[sizeof (long int) - 1] == 1;
4597 rm -f conftest$ac_exeext
4598 if { (ac_try="$ac_link"
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604 (eval "$ac_link") 2>&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4608 { (case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613 (eval "$ac_try") 2>&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_cv_c_bigendian=no
4619 echo "$as_me: program exited with status $ac_status" >&5
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4624 ac_cv_c_bigendian=yes
4626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4635 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4636 case $ac_cv_c_bigendian in
4639 cat >>confdefs.h <<\_ACEOF
4640 #define WORDS_BIGENDIAN 1
4646 { { echo "$as_me:$LINENO: error: unknown endianness
4647 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4648 echo "$as_me: error: unknown endianness
4649 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4650 { (exit 1); exit 1; }; } ;;
4654 # Extract the first word of "gmake", so it can be a program name with args.
4655 set dummy gmake; ac_word=$2
4656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4658 if test "${ac_cv_prog_GMAKE+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 if test -n "$GMAKE"; then
4662 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4671 ac_cv_prog_GMAKE="yes"
4672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4682 GMAKE=$ac_cv_prog_GMAKE
4683 if test -n "$GMAKE"; then
4684 { echo "$as_me:$LINENO: result: $GMAKE" >&5
4685 echo "${ECHO_T}$GMAKE" >&6; }
4687 { echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6; }
4692 if test $GMAKE = no; then
4693 # Extract the first word of "make", so it can be a program name with args.
4694 set dummy make; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_path_MAKE+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4724 MAKE=$ac_cv_path_MAKE
4725 if test -n "$MAKE"; then
4726 { echo "$as_me:$LINENO: result: $MAKE" >&5
4727 echo "${ECHO_T}$MAKE" >&6; }
4729 { echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6; }
4735 # Extract the first word of "gmake", so it can be a program name with args.
4736 set dummy gmake; ac_word=$2
4737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4739 if test "${ac_cv_path_MAKE+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4754 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4766 MAKE=$ac_cv_path_MAKE
4767 if test -n "$MAKE"; then
4768 { echo "$as_me:$LINENO: result: $MAKE" >&5
4769 echo "${ECHO_T}$MAKE" >&6; }
4771 { echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6; }
4777 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4778 if test -z "$makever"; then
4779 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
4780 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4781 echo "$as_me: error: GNU Make is not installed. Please download and install it
4782 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4783 { (exit 1); exit 1; }; }
4786 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4787 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4788 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 ac_check_lib_save_LIBS=$LIBS
4793 cat >conftest.$ac_ext <<_ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h. */
4800 /* Override any GCC internal prototype to avoid an error.
4801 Use char because int might match the return type of a GCC
4802 builtin and then its argument prototype would still apply. */
4810 return lt_dlinit ();
4815 rm -f conftest.$ac_objext conftest$ac_exeext
4816 if { (ac_try="$ac_link"
4818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819 *) ac_try_echo=$ac_try;;
4821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4822 (eval "$ac_link") 2>conftest.er1
4824 grep -v '^ *+' conftest.er1 >conftest.err
4826 cat conftest.err >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } && {
4829 test -z "$ac_c_werror_flag" ||
4830 test ! -s conftest.err
4831 } && test -s conftest$ac_exeext &&
4832 $as_test_x conftest$ac_exeext; then
4833 ac_cv_lib_ltdl_lt_dlinit=yes
4835 echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4838 ac_cv_lib_ltdl_lt_dlinit=no
4841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4842 conftest$ac_exeext conftest.$ac_ext
4843 LIBS=$ac_check_lib_save_LIBS
4845 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4846 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4847 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4848 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4850 if test x"$enable_ltdl_install" = xno; then
4851 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4852 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4854 enable_ltdl_install=yes
4859 if test x"$enable_ltdl_install" = x"yes"; then
4860 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4861 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4862 LTDLINCL='-I${top_srcdir}/''libltdl'
4864 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4868 # For backwards non-gettext consistent compatibility...
4872 if test x"$enable_ltdl_install" = x"yes"; then
4873 LTDL_SUBDIRS=libltdl
4877 # Check whether --enable-shared was given.
4878 if test "${enable_shared+set}" = set; then
4879 enableval=$enable_shared; p=${PACKAGE-default}
4881 yes) enable_shared=yes ;;
4882 no) enable_shared=no ;;
4885 # Look at the argument we got. We use all the common list separators.
4886 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4887 for pkg in $enableval; do
4889 if test "X$pkg" = "X$p"; then
4901 # Check whether --enable-static was given.
4902 if test "${enable_static+set}" = set; then
4903 enableval=$enable_static; p=${PACKAGE-default}
4905 yes) enable_static=yes ;;
4906 no) enable_static=no ;;
4909 # Look at the argument we got. We use all the common list separators.
4910 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4911 for pkg in $enableval; do
4913 if test "X$pkg" = "X$p"; then
4925 # Check whether --enable-fast-install was given.
4926 if test "${enable_fast_install+set}" = set; then
4927 enableval=$enable_fast_install; p=${PACKAGE-default}
4929 yes) enable_fast_install=yes ;;
4930 no) enable_fast_install=no ;;
4932 enable_fast_install=no
4933 # Look at the argument we got. We use all the common list separators.
4934 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4935 for pkg in $enableval; do
4937 if test "X$pkg" = "X$p"; then
4938 enable_fast_install=yes
4945 enable_fast_install=yes
4950 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4951 if test -f "$ac_dir/install-sh"; then
4953 ac_install_sh="$ac_aux_dir/install-sh -c"
4955 elif test -f "$ac_dir/install.sh"; then
4957 ac_install_sh="$ac_aux_dir/install.sh -c"
4959 elif test -f "$ac_dir/shtool"; then
4961 ac_install_sh="$ac_aux_dir/shtool install -c"
4965 if test -z "$ac_aux_dir"; then
4966 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4967 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4968 { (exit 1); exit 1; }; }
4971 # These three variables are undocumented and unsupported,
4972 # and are intended to be withdrawn in a future Autoconf release.
4973 # They can cause serious problems if a builder's source tree is in a directory
4974 # whose full name contains unusual characters.
4975 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4976 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4977 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4980 # Make sure we can run config.sub.
4981 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4982 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4983 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4984 { (exit 1); exit 1; }; }
4986 { echo "$as_me:$LINENO: checking build system type" >&5
4987 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4988 if test "${ac_cv_build+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 ac_build_alias=$build_alias
4992 test "x$ac_build_alias" = x &&
4993 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4994 test "x$ac_build_alias" = x &&
4995 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4996 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4997 { (exit 1); exit 1; }; }
4998 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4999 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5000 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5001 { (exit 1); exit 1; }; }
5004 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5005 echo "${ECHO_T}$ac_cv_build" >&6; }
5006 case $ac_cv_build in
5008 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5009 echo "$as_me: error: invalid value of canonical build" >&2;}
5010 { (exit 1); exit 1; }; };;
5013 ac_save_IFS=$IFS; IFS='-'
5019 # Remember, the first character of IFS is used to create $*,
5020 # except with old shells:
5023 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5026 { echo "$as_me:$LINENO: checking host system type" >&5
5027 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5028 if test "${ac_cv_host+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 if test "x$host_alias" = x; then
5032 ac_cv_host=$ac_cv_build
5034 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5035 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5036 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5037 { (exit 1); exit 1; }; }
5041 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5042 echo "${ECHO_T}$ac_cv_host" >&6; }
5045 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5046 echo "$as_me: error: invalid value of canonical host" >&2;}
5047 { (exit 1); exit 1; }; };;
5050 ac_save_IFS=$IFS; IFS='-'
5056 # Remember, the first character of IFS is used to create $*,
5057 # except with old shells:
5060 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5063 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5064 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5065 if test "${lt_cv_path_SED+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 # Loop through the user's path and test for sed and gsed.
5069 # Then use that list of sed's as ones to test for truncation.
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 test -z "$as_dir" && as_dir=.
5075 for lt_ac_prog in sed gsed; do
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5078 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5085 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5086 # along with /bin/sed that truncates output.
5087 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5088 test ! -f $lt_ac_sed && continue
5089 cat /dev/null > conftest.in
5091 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5092 # Check for GNU sed and select it if it is found.
5093 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5094 lt_cv_path_SED=$lt_ac_sed
5098 cat conftest.in conftest.in >conftest.tmp
5099 mv conftest.tmp conftest.in
5100 cp conftest.in conftest.nl
5102 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5103 cmp -s conftest.out conftest.nl || break
5104 # 10000 chars as input seems more than enough
5105 test $lt_ac_count -gt 10 && break
5106 lt_ac_count=`expr $lt_ac_count + 1`
5107 if test $lt_ac_count -gt $lt_ac_max; then
5108 lt_ac_max=$lt_ac_count
5109 lt_cv_path_SED=$lt_ac_sed
5117 { echo "$as_me:$LINENO: result: $SED" >&5
5118 echo "${ECHO_T}$SED" >&6; }
5121 # Check whether --with-gnu-ld was given.
5122 if test "${with_gnu_ld+set}" = set; then
5123 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5129 if test "$GCC" = yes; then
5130 # Check if gcc -print-prog-name=ld gives a path.
5131 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5132 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5135 # gcc leaves a trailing carriage return which upsets mingw
5136 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5138 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5141 # Accept absolute paths.
5143 re_direlt='/[^/][^/]*/\.\./'
5144 # Canonicalize the pathname of ld
5145 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5146 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5147 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5149 test -z "$LD" && LD="$ac_prog"
5152 # If it fails, then pretend we aren't using GCC.
5156 # If it is relative, then search for the first ld in PATH.
5160 elif test "$with_gnu_ld" = yes; then
5161 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5162 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5164 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5165 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5167 if test "${lt_cv_path_LD+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 if test -z "$LD"; then
5171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5172 for ac_dir in $PATH; do
5174 test -z "$ac_dir" && ac_dir=.
5175 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5176 lt_cv_path_LD="$ac_dir/$ac_prog"
5177 # Check to see if the program is GNU ld. I'd rather use --version,
5178 # but apparently some variants of GNU ld only accept -v.
5179 # Break only if it was the GNU/non-GNU ld that we prefer.
5180 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5181 *GNU* | *'with BFD'*)
5182 test "$with_gnu_ld" != no && break
5185 test "$with_gnu_ld" != yes && break
5192 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5197 if test -n "$LD"; then
5198 { echo "$as_me:$LINENO: result: $LD" >&5
5199 echo "${ECHO_T}$LD" >&6; }
5201 { echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6; }
5204 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5205 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5206 { (exit 1); exit 1; }; }
5207 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5208 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5209 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5213 case `$LD -v 2>&1 </dev/null` in
5214 *GNU* | *'with BFD'*)
5215 lt_cv_prog_gnu_ld=yes
5218 lt_cv_prog_gnu_ld=no
5222 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5223 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5224 with_gnu_ld=$lt_cv_prog_gnu_ld
5227 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5228 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5229 if test "${lt_cv_ld_reload_flag+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 lt_cv_ld_reload_flag='-r'
5234 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5235 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5236 reload_flag=$lt_cv_ld_reload_flag
5237 case $reload_flag in
5239 *) reload_flag=" $reload_flag" ;;
5241 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5244 if test "$GCC" = yes; then
5245 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5247 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5252 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5253 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5254 if test "${lt_cv_path_NM+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 if test -n "$NM"; then
5258 # Let the user override the test.
5261 lt_nm_to_check="${ac_tool_prefix}nm"
5262 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5263 lt_nm_to_check="$lt_nm_to_check nm"
5265 for lt_tmp_nm in $lt_nm_to_check; do
5266 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5267 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5269 test -z "$ac_dir" && ac_dir=.
5270 tmp_nm="$ac_dir/$lt_tmp_nm"
5271 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5272 # Check to see if the nm accepts a BSD-compat flag.
5273 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5274 # nm: unknown option "B" ignored
5275 # Tru64's nm complains that /dev/null is an invalid object file
5276 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5277 */dev/null* | *'Invalid file or object type'*)
5278 lt_cv_path_NM="$tmp_nm -B"
5282 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5284 lt_cv_path_NM="$tmp_nm -p"
5288 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5289 continue # so that we can try to find one that supports BSD flags
5298 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5301 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5302 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5305 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5306 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5308 if test "$LN_S" = "ln -s"; then
5309 { echo "$as_me:$LINENO: result: yes" >&5
5310 echo "${ECHO_T}yes" >&6; }
5312 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5313 echo "${ECHO_T}no, using $LN_S" >&6; }
5316 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5317 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5318 if test "${lt_cv_deplibs_check_method+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 lt_cv_file_magic_cmd='$MAGIC_CMD'
5322 lt_cv_file_magic_test_file=
5323 lt_cv_deplibs_check_method='unknown'
5324 # Need to set the preceding variable on all platforms that support
5325 # interlibrary dependencies.
5326 # 'none' -- dependencies not supported.
5327 # `unknown' -- same as none, but documents that we really don't know.
5328 # 'pass_all' -- all dependencies passed with no checks.
5329 # 'test_compile' -- check by making test program.
5330 # 'file_magic [[regex]]' -- check by looking for files in library path
5331 # which responds to the $file_magic_cmd with a given extended regex.
5332 # If you have `file' or equivalent on your system and you're not sure
5333 # whether `pass_all' will *always* work, you probably want this one.
5337 lt_cv_deplibs_check_method=pass_all
5341 lt_cv_deplibs_check_method=pass_all
5345 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5346 lt_cv_file_magic_cmd='/usr/bin/file -L'
5347 lt_cv_file_magic_test_file=/shlib/libc.so
5351 # func_win32_libid is a shell function defined in ltmain.sh
5352 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5353 lt_cv_file_magic_cmd='func_win32_libid'
5357 # Base MSYS/MinGW do not provide the 'file' command needed by
5358 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5359 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5360 lt_cv_file_magic_cmd='$OBJDUMP -f'
5363 darwin* | rhapsody*)
5364 lt_cv_deplibs_check_method=pass_all
5367 freebsd* | kfreebsd*-gnu | dragonfly*)
5368 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5371 # Not sure whether the presence of OpenBSD here was a mistake.
5372 # Let's accept both of them until this is cleared up.
5373 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5374 lt_cv_file_magic_cmd=/usr/bin/file
5375 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5379 lt_cv_deplibs_check_method=pass_all
5384 lt_cv_deplibs_check_method=pass_all
5387 hpux10.20* | hpux11*)
5388 lt_cv_file_magic_cmd=/usr/bin/file
5391 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5392 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5395 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]'
5396 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5399 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5400 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5406 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5407 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5410 irix5* | irix6* | nonstopux*)
5412 *-32|*"-32 ") libmagic=32-bit;;
5413 *-n32|*"-n32 ") libmagic=N32;;
5414 *-64|*"-64 ") libmagic=64-bit;;
5415 *) libmagic=never-match;;
5417 lt_cv_deplibs_check_method=pass_all
5420 # This must be Linux ELF.
5422 lt_cv_deplibs_check_method=pass_all
5426 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5427 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5429 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5434 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5435 lt_cv_file_magic_cmd=/usr/bin/file
5436 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5440 lt_cv_deplibs_check_method=unknown
5444 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5445 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5447 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5451 osf3* | osf4* | osf5*)
5452 lt_cv_deplibs_check_method=pass_all
5456 lt_cv_deplibs_check_method=pass_all
5460 case $host_vendor in
5462 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]'
5463 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5466 lt_cv_deplibs_check_method=pass_all
5469 lt_cv_file_magic_cmd='/bin/file'
5470 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5473 lt_cv_file_magic_cmd='/bin/file'
5474 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5475 lt_cv_file_magic_test_file=/lib/libc.so
5478 lt_cv_deplibs_check_method=pass_all
5481 lt_cv_deplibs_check_method=pass_all
5486 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5487 lt_cv_deplibs_check_method=pass_all
5492 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5493 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5494 file_magic_cmd=$lt_cv_file_magic_cmd
5495 deplibs_check_method=$lt_cv_deplibs_check_method
5496 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5501 # If no C compiler was specified, use CC.
5504 # If no C compiler flags were specified, use CFLAGS.
5505 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5507 # Allow CC to be a program name with arguments.
5510 # Check whether --enable-libtool-lock was given.
5511 if test "${enable_libtool_lock+set}" = set; then
5512 enableval=$enable_libtool_lock;
5515 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5517 # Some flags need to be propagated to the compiler or linker for good
5521 # Find out which ABI we are using.
5522 echo 'int i;' > conftest.$ac_ext
5523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5524 (eval $ac_compile) 2>&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; then
5528 case `/usr/bin/file conftest.$ac_objext` in
5540 # Find out which ABI we are using.
5541 echo '#line 5541 "configure"' > conftest.$ac_ext
5542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5543 (eval $ac_compile) 2>&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; then
5547 if test "$lt_cv_prog_gnu_ld" = yes; then
5548 case `/usr/bin/file conftest.$ac_objext` in
5550 LD="${LD-ld} -melf32bsmip"
5553 LD="${LD-ld} -melf32bmipn32"
5556 LD="${LD-ld} -melf64bmip"
5560 case `/usr/bin/file conftest.$ac_objext` in
5576 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5577 # Find out which ABI we are using.
5578 echo 'int i;' > conftest.$ac_ext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5580 (eval $ac_compile) 2>&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); }; then
5584 case `/usr/bin/file conftest.o` in
5588 LD="${LD-ld} -m elf_i386"
5590 ppc64-*linux*|powerpc64-*linux*)
5591 LD="${LD-ld} -m elf32ppclinux"
5594 LD="${LD-ld} -m elf_s390"
5597 LD="${LD-ld} -m elf32_sparc"
5604 LD="${LD-ld} -m elf_x86_64"
5606 ppc*-*linux*|powerpc*-*linux*)
5607 LD="${LD-ld} -m elf64ppc"
5610 LD="${LD-ld} -m elf64_s390"
5613 LD="${LD-ld} -m elf64_sparc"
5623 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5624 SAVE_CFLAGS="$CFLAGS"
5625 CFLAGS="$CFLAGS -belf"
5626 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5627 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5628 if test "${lt_cv_cc_needs_belf+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 ac_cpp='$CPP $CPPFLAGS'
5633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5637 cat >conftest.$ac_ext <<_ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5652 rm -f conftest.$ac_objext conftest$ac_exeext
5653 if { (ac_try="$ac_link"
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659 (eval "$ac_link") 2>conftest.er1
5661 grep -v '^ *+' conftest.er1 >conftest.err
5663 cat conftest.err >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } && {
5666 test -z "$ac_c_werror_flag" ||
5667 test ! -s conftest.err
5668 } && test -s conftest$ac_exeext &&
5669 $as_test_x conftest$ac_exeext; then
5670 lt_cv_cc_needs_belf=yes
5672 echo "$as_me: failed program was:" >&5
5673 sed 's/^/| /' conftest.$ac_ext >&5
5675 lt_cv_cc_needs_belf=no
5678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5679 conftest$ac_exeext conftest.$ac_ext
5681 ac_cpp='$CPP $CPPFLAGS'
5682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5687 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5688 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5689 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5690 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5691 CFLAGS="$SAVE_CFLAGS"
5695 # Find out which ABI we are using.
5696 echo 'int i;' > conftest.$ac_ext
5697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5698 (eval $ac_compile) 2>&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; then
5702 case `/usr/bin/file conftest.o` in
5704 case $lt_cv_prog_gnu_ld in
5705 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5706 *) LD="${LD-ld} -64" ;;
5717 need_locks="$enable_libtool_lock"
5721 for ac_header in dlfcn.h
5723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 ac_res=`eval echo '${'$as_ac_Header'}'`
5731 { echo "$as_me:$LINENO: result: $ac_res" >&5
5732 echo "${ECHO_T}$ac_res" >&6; }
5734 # Is the header compilable?
5735 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5737 cat >conftest.$ac_ext <<_ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743 $ac_includes_default
5744 #include <$ac_header>
5746 rm -f conftest.$ac_objext
5747 if { (ac_try="$ac_compile"
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_compile") 2>conftest.er1
5755 grep -v '^ *+' conftest.er1 >conftest.err
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } && {
5760 test -z "$ac_c_werror_flag" ||
5761 test ! -s conftest.err
5762 } && test -s conftest.$ac_objext; then
5763 ac_header_compiler=yes
5765 echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5768 ac_header_compiler=no
5771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5773 echo "${ECHO_T}$ac_header_compiler" >&6; }
5775 # Is the header present?
5776 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5778 cat >conftest.$ac_ext <<_ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5784 #include <$ac_header>
5786 if { (ac_try="$ac_cpp conftest.$ac_ext"
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5794 grep -v '^ *+' conftest.er1 >conftest.err
5796 cat conftest.err >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } >/dev/null && {
5799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5800 test ! -s conftest.err
5802 ac_header_preproc=yes
5804 echo "$as_me: failed program was:" >&5
5805 sed 's/^/| /' conftest.$ac_ext >&5
5807 ac_header_preproc=no
5810 rm -f conftest.err conftest.$ac_ext
5811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5812 echo "${ECHO_T}$ac_header_preproc" >&6; }
5814 # So? What about this header?
5815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5821 ac_header_preproc=yes
5824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5831 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 eval "$as_ac_Header=\$ac_header_preproc"
5846 ac_res=`eval echo '${'$as_ac_Header'}'`
5847 { echo "$as_me:$LINENO: result: $ac_res" >&5
5848 echo "${ECHO_T}$ac_res" >&6; }
5851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5852 cat >>confdefs.h <<_ACEOF
5853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5862 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5863 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5864 (test "X$CXX" != "Xg++"))) ; then
5866 ac_cpp='$CXXCPP $CPPFLAGS'
5867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5870 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5871 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5872 if test -z "$CXXCPP"; then
5873 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 # Double quotes because CXXCPP needs to be expanded
5877 for CXXCPP in "$CXX -E" "/lib/cpp"
5880 for ac_cxx_preproc_warn_flag in '' yes
5882 # Use a header file that comes with gcc, so configuring glibc
5883 # with a fresh cross-compiler works.
5884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5885 # <limits.h> exists even on freestanding compilers.
5886 # On the NeXT, cc -E runs the code through the compiler's parser,
5887 # not just through cpp. "Syntax error" is here to catch this case.
5888 cat >conftest.$ac_ext <<_ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h. */
5895 # include <limits.h>
5897 # include <assert.h>
5901 if { (ac_try="$ac_cpp conftest.$ac_ext"
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5909 grep -v '^ *+' conftest.er1 >conftest.err
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } >/dev/null && {
5914 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5915 test ! -s conftest.err
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5922 # Broken: fails on valid input.
5926 rm -f conftest.err conftest.$ac_ext
5928 # OK, works on sane cases. Now check whether nonexistent headers
5929 # can be detected and how.
5930 cat >conftest.$ac_ext <<_ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5936 #include <ac_nonexistent.h>
5938 if { (ac_try="$ac_cpp conftest.$ac_ext"
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5946 grep -v '^ *+' conftest.er1 >conftest.err
5948 cat conftest.err >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } >/dev/null && {
5951 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5952 test ! -s conftest.err
5954 # Broken: success on invalid input.
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5960 # Passes both tests.
5965 rm -f conftest.err conftest.$ac_ext
5968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5969 rm -f conftest.err conftest.$ac_ext
5970 if $ac_preproc_ok; then
5975 ac_cv_prog_CXXCPP=$CXXCPP
5978 CXXCPP=$ac_cv_prog_CXXCPP
5980 ac_cv_prog_CXXCPP=$CXXCPP
5982 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5983 echo "${ECHO_T}$CXXCPP" >&6; }
5985 for ac_cxx_preproc_warn_flag in '' yes
5987 # Use a header file that comes with gcc, so configuring glibc
5988 # with a fresh cross-compiler works.
5989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5990 # <limits.h> exists even on freestanding compilers.
5991 # On the NeXT, cc -E runs the code through the compiler's parser,
5992 # not just through cpp. "Syntax error" is here to catch this case.
5993 cat >conftest.$ac_ext <<_ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
6000 # include <limits.h>
6002 # include <assert.h>
6006 if { (ac_try="$ac_cpp conftest.$ac_ext"
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6014 grep -v '^ *+' conftest.er1 >conftest.err
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } >/dev/null && {
6019 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6020 test ! -s conftest.err
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6027 # Broken: fails on valid input.
6031 rm -f conftest.err conftest.$ac_ext
6033 # OK, works on sane cases. Now check whether nonexistent headers
6034 # can be detected and how.
6035 cat >conftest.$ac_ext <<_ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6041 #include <ac_nonexistent.h>
6043 if { (ac_try="$ac_cpp conftest.$ac_ext"
6045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046 *) ac_try_echo=$ac_try;;
6048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6051 grep -v '^ *+' conftest.er1 >conftest.err
6053 cat conftest.err >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } >/dev/null && {
6056 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6057 test ! -s conftest.err
6059 # Broken: success on invalid input.
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6065 # Passes both tests.
6070 rm -f conftest.err conftest.$ac_ext
6073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6074 rm -f conftest.err conftest.$ac_ext
6075 if $ac_preproc_ok; then
6078 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6079 See \`config.log' for more details." >&5
6080 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6081 See \`config.log' for more details." >&2;}
6082 { (exit 1); exit 1; }; }
6086 ac_cpp='$CXXCPP $CPPFLAGS'
6087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6095 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6096 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6097 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6098 if test -n "$ac_tool_prefix"; then
6099 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
6101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6105 if test "${ac_cv_prog_F77+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 if test -n "$F77"; then
6109 ac_cv_prog_F77="$F77" # Let the user override the test.
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6118 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6129 if test -n "$F77"; then
6130 { echo "$as_me:$LINENO: result: $F77" >&5
6131 echo "${ECHO_T}$F77" >&6; }
6133 { echo "$as_me:$LINENO: result: no" >&5
6134 echo "${ECHO_T}no" >&6; }
6138 test -n "$F77" && break
6141 if test -z "$F77"; then
6143 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
6145 # Extract the first word of "$ac_prog", so it can be a program name with args.
6146 set dummy $ac_prog; ac_word=$2
6147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 if test -n "$ac_ct_F77"; then
6153 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162 ac_cv_prog_ac_ct_F77="$ac_prog"
6163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6173 if test -n "$ac_ct_F77"; then
6174 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6175 echo "${ECHO_T}$ac_ct_F77" >&6; }
6177 { echo "$as_me:$LINENO: result: no" >&5
6178 echo "${ECHO_T}no" >&6; }
6182 test -n "$ac_ct_F77" && break
6185 if test "x$ac_ct_F77" = x; then
6188 case $cross_compiling:$ac_tool_warned in
6190 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6191 whose name does not start with the host triplet. If you think this
6192 configuration is useful to you, please write to autoconf@gnu.org." >&5
6193 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6194 whose name does not start with the host triplet. If you think this
6195 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6196 ac_tool_warned=yes ;;
6203 # Provide some information about the compiler.
6204 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6205 ac_compiler=`set X $ac_compile; echo $2`
6206 { (ac_try="$ac_compiler --version >&5"
6208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209 *) ac_try_echo=$ac_try;;
6211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6212 (eval "$ac_compiler --version >&5") 2>&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }
6216 { (ac_try="$ac_compiler -v >&5"
6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222 (eval "$ac_compiler -v >&5") 2>&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }
6226 { (ac_try="$ac_compiler -V >&5"
6228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229 *) ac_try_echo=$ac_try;;
6231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6232 (eval "$ac_compiler -V >&5") 2>&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); }
6238 # If we don't use `.F' as extension, the preprocessor is not run on the
6239 # input file. (Note that this only needs to work for GNU compilers.)
6242 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6243 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6244 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 cat >conftest.$ac_ext <<_ACEOF
6255 rm -f conftest.$ac_objext
6256 if { (ac_try="$ac_compile"
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_compile") 2>conftest.er1
6264 grep -v '^ *+' conftest.er1 >conftest.err
6266 cat conftest.err >&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } && {
6269 test -z "$ac_f77_werror_flag" ||
6270 test ! -s conftest.err
6271 } && test -s conftest.$ac_objext; then
6274 echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6284 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6285 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6287 ac_test_FFLAGS=${FFLAGS+set}
6288 ac_save_FFLAGS=$FFLAGS
6290 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6291 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6292 if test "${ac_cv_prog_f77_g+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 cat >conftest.$ac_ext <<_ACEOF
6301 rm -f conftest.$ac_objext
6302 if { (ac_try="$ac_compile"
6304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6305 *) ac_try_echo=$ac_try;;
6307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6308 (eval "$ac_compile") 2>conftest.er1
6310 grep -v '^ *+' conftest.er1 >conftest.err
6312 cat conftest.err >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } && {
6315 test -z "$ac_f77_werror_flag" ||
6316 test ! -s conftest.err
6317 } && test -s conftest.$ac_objext; then
6318 ac_cv_prog_f77_g=yes
6320 echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6330 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6331 if test "$ac_test_FFLAGS" = set; then
6332 FFLAGS=$ac_save_FFLAGS
6333 elif test $ac_cv_prog_f77_g = yes; then
6334 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6340 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6347 G77=`test $ac_compiler_gnu = yes && echo yes`
6349 ac_cpp='$CPP $CPPFLAGS'
6350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6356 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6358 # find the maximum length of command line arguments
6359 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6360 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6361 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 # On DJGPP, this test can blow up pretty badly due to problems in libc
6370 # (any single argument exceeding 2000 bytes causes a buffer overrun
6371 # during glob expansion). Even if it were fixed, the result of this
6372 # check would be larger than it should be.
6373 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6377 # Under GNU Hurd, this test is not required because there is
6378 # no limit to the length of command line arguments.
6379 # Libtool will interpret -1 as no limit whatsoever
6380 lt_cv_sys_max_cmd_len=-1;
6384 # On Win9x/ME, this test blows up -- it succeeds, but takes
6385 # about 5 minutes as the teststring grows exponentially.
6386 # Worse, since 9x/ME are not pre-emptively multitasking,
6387 # you end up with a "frozen" computer, even though with patience
6388 # the test eventually succeeds (with a max line length of 256k).
6389 # Instead, let's just punt: use the minimum linelength reported by
6390 # all of the supported platforms: 8192 (on NT/2K/XP).
6391 lt_cv_sys_max_cmd_len=8192;
6395 # On AmigaOS with pdksh, this test takes hours, literally.
6396 # So we just punt and use a minimum line length of 8192.
6397 lt_cv_sys_max_cmd_len=8192;
6400 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6401 # This has been around since 386BSD, at least. Likely further.
6402 if test -x /sbin/sysctl; then
6403 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6404 elif test -x /usr/sbin/sysctl; then
6405 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6407 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6409 # And add a safety zone
6410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6411 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6415 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6416 lt_cv_sys_max_cmd_len=196608
6420 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6421 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6422 # nice to cause kernel panics so lets avoid the loop below.
6423 # First set a reasonable default.
6424 lt_cv_sys_max_cmd_len=16384
6426 if test -x /sbin/sysconfig; then
6427 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6428 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6433 lt_cv_sys_max_cmd_len=102400
6435 sysv5* | sco5v6* | sysv4.2uw2*)
6436 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6437 if test -n "$kargmax"; then
6438 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6440 lt_cv_sys_max_cmd_len=32768
6444 # If test is not a shell built-in, we'll probably end up computing a
6445 # maximum length that is only half of the actual maximum length, but
6447 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6448 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6449 = "XX$teststring") >/dev/null 2>&1 &&
6450 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6451 lt_cv_sys_max_cmd_len=$new_result &&
6452 test $i != 17 # 1/2 MB should be enough
6455 teststring=$teststring$teststring
6458 # Add a significant safety factor because C++ compilers can tack on massive
6459 # amounts of additional arguments before passing them to the linker.
6460 # It appears as though 1/2 is a usable value.
6461 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6467 if test -n $lt_cv_sys_max_cmd_len ; then
6468 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6469 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6471 { echo "$as_me:$LINENO: result: none" >&5
6472 echo "${ECHO_T}none" >&6; }
6478 # Check for command to grab the raw symbol name followed by C symbol from nm.
6479 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6480 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6481 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 # These are sane defaults that work on at least a few old systems.
6486 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6488 # Character class describing NM global symbol codes.
6489 symcode='[BCDEGRST]'
6491 # Regexp to match symbols that can be accessed directly from C.
6492 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6494 # Transform an extracted symbol line into a proper C declaration
6495 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6497 # Transform an extracted symbol line into symbol name and symbol address
6498 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'"
6500 # Define system-specific variables.
6505 cygwin* | mingw* | pw32*)
6506 symcode='[ABCDGISTW]'
6508 hpux*) # Its linker distinguishes data from code symbols
6509 if test "$host_cpu" = ia64; then
6510 symcode='[ABCDEGRST]'
6512 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6513 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'"
6516 if test "$host_cpu" = ia64; then
6517 symcode='[ABCDGIRSTW]'
6518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6519 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'"
6523 symcode='[BCDEGRST]'
6526 symcode='[BCDEGQRST]'
6537 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6545 # Handle CRLF in mingw tool chain
6549 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6553 # If we're using GNU nm, then use its standard symbol codes.
6554 case `$NM -V 2>&1` in
6555 *GNU* | *'with BFD'*)
6556 symcode='[ABCDGIRSTW]' ;;
6559 # Try without a prefix undercore, then with it.
6560 for ac_symprfx in "" "_"; do
6562 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6563 symxfrm="\\1 $ac_symprfx\\2 \\2"
6565 # Write the raw and C identifiers.
6566 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6568 # Check to see that the pipe works correctly.
6572 cat > conftest.$ac_ext <<EOF
6577 void nm_test_func(){}
6581 int main(){nm_test_var='a';nm_test_func();return(0);}
6584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6585 (eval $ac_compile) 2>&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; then
6589 # Now try to grab the symbols.
6591 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6592 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } && test -s "$nlist"; then
6596 # Try sorting and uniquifying the output.
6597 if sort "$nlist" | uniq > "$nlist"T; then
6598 mv -f "$nlist"T "$nlist"
6603 # Make sure that we snagged all the symbols we need.
6604 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6605 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6606 cat <<EOF > conftest.$ac_ext
6612 # Now generate the symbol file.
6613 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6615 cat <<EOF >> conftest.$ac_ext
6616 #if defined (__STDC__) && __STDC__
6617 # define lt_ptr_t void *
6619 # define lt_ptr_t char *
6623 /* The mapping between symbol names and symbols. */
6628 lt_preloaded_symbols[] =
6631 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6632 cat <<\EOF >> conftest.$ac_ext
6640 # Now try linking the two files.
6641 mv conftest.$ac_objext conftstm.$ac_objext
6642 lt_save_LIBS="$LIBS"
6643 lt_save_CFLAGS="$CFLAGS"
6644 LIBS="conftstm.$ac_objext"
6645 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6647 (eval $ac_link) 2>&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6653 LIBS="$lt_save_LIBS"
6654 CFLAGS="$lt_save_CFLAGS"
6656 echo "cannot find nm_test_func in $nlist" >&5
6659 echo "cannot find nm_test_var in $nlist" >&5
6662 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6665 echo "$progname: failed program was:" >&5
6666 cat conftest.$ac_ext >&5
6668 rm -f conftest* conftst*
6670 # Do not use the global_symbol_pipe unless it works.
6671 if test "$pipe_works" = yes; then
6674 lt_cv_sys_global_symbol_pipe=
6680 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6681 lt_cv_sys_global_symbol_to_cdecl=
6683 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6684 { echo "$as_me:$LINENO: result: failed" >&5
6685 echo "${ECHO_T}failed" >&6; }
6687 { echo "$as_me:$LINENO: result: ok" >&5
6688 echo "${ECHO_T}ok" >&6; }
6691 { echo "$as_me:$LINENO: checking for objdir" >&5
6692 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6693 if test "${lt_cv_objdir+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 rm -f .libs 2>/dev/null
6697 mkdir .libs 2>/dev/null
6698 if test -d .libs; then
6701 # MS-DOS does not allow filenames that begin with a dot.
6704 rmdir .libs 2>/dev/null
6706 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6707 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6708 objdir=$lt_cv_objdir
6716 # AIX sometimes has problems with the GCC collect2 program. For some
6717 # reason, if we set the COLLECT_NAMES environment variable, the problems
6718 # vanish in a puff of smoke.
6719 if test "X${COLLECT_NAMES+set}" != Xset; then
6721 export COLLECT_NAMES
6726 # Sed substitution that helps us do robust quoting. It backslashifies
6727 # metacharacters that are still active within double-quoted strings.
6728 Xsed='sed -e 1s/^X//'
6729 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6731 # Same as above, but do not quote variable references.
6732 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6734 # Sed substitution to delay expansion of an escaped shell variable in a
6735 # double_quote_subst'ed string.
6736 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6738 # Sed substitution to avoid accidental globbing in evaled expressions
6739 no_glob_subst='s/\*/\\\*/g'
6745 default_ofile=libtool
6746 can_build_shared=yes
6748 # All known linkers require a `.a' archive for static linking (except MSVC,
6749 # which needs '.lib').
6751 ltmain="$ac_aux_dir/ltmain.sh"
6752 ofile="$default_ofile"
6753 with_gnu_ld="$lt_cv_prog_gnu_ld"
6755 if test -n "$ac_tool_prefix"; then
6756 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6757 set dummy ${ac_tool_prefix}ar; ac_word=$2
6758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6760 if test "${ac_cv_prog_AR+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 if test -n "$AR"; then
6764 ac_cv_prog_AR="$AR" # Let the user override the test.
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773 ac_cv_prog_AR="${ac_tool_prefix}ar"
6774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 if test -n "$AR"; then
6785 { echo "$as_me:$LINENO: result: $AR" >&5
6786 echo "${ECHO_T}$AR" >&6; }
6788 { echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6; }
6794 if test -z "$ac_cv_prog_AR"; then
6796 # Extract the first word of "ar", so it can be a program name with args.
6797 set dummy ar; ac_word=$2
6798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 if test -n "$ac_ct_AR"; then
6804 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6813 ac_cv_prog_ac_ct_AR="ar"
6814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6824 if test -n "$ac_ct_AR"; then
6825 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6826 echo "${ECHO_T}$ac_ct_AR" >&6; }
6828 { echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6; }
6832 if test "x$ac_ct_AR" = x; then
6835 case $cross_compiling:$ac_tool_warned in
6837 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6838 whose name does not start with the host triplet. If you think this
6839 configuration is useful to you, please write to autoconf@gnu.org." >&5
6840 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6841 whose name does not start with the host triplet. If you think this
6842 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6843 ac_tool_warned=yes ;;
6851 if test -n "$ac_tool_prefix"; then
6852 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6853 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6856 if test "${ac_cv_prog_RANLIB+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 if test -n "$RANLIB"; then
6860 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6869 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 RANLIB=$ac_cv_prog_RANLIB
6880 if test -n "$RANLIB"; then
6881 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6882 echo "${ECHO_T}$RANLIB" >&6; }
6884 { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6890 if test -z "$ac_cv_prog_RANLIB"; then
6891 ac_ct_RANLIB=$RANLIB
6892 # Extract the first word of "ranlib", so it can be a program name with args.
6893 set dummy ranlib; ac_word=$2
6894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6896 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 if test -n "$ac_ct_RANLIB"; then
6900 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6909 ac_cv_prog_ac_ct_RANLIB="ranlib"
6910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6920 if test -n "$ac_ct_RANLIB"; then
6921 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6922 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6924 { echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6; }
6928 if test "x$ac_ct_RANLIB" = x; then
6931 case $cross_compiling:$ac_tool_warned in
6933 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6934 whose name does not start with the host triplet. If you think this
6935 configuration is useful to you, please write to autoconf@gnu.org." >&5
6936 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6937 whose name does not start with the host triplet. If you think this
6938 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6939 ac_tool_warned=yes ;;
6941 RANLIB=$ac_ct_RANLIB
6944 RANLIB="$ac_cv_prog_RANLIB"
6947 if test -n "$ac_tool_prefix"; then
6948 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6949 set dummy ${ac_tool_prefix}strip; ac_word=$2
6950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6952 if test "${ac_cv_prog_STRIP+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 if test -n "$STRIP"; then
6956 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 STRIP=$ac_cv_prog_STRIP
6976 if test -n "$STRIP"; then
6977 { echo "$as_me:$LINENO: result: $STRIP" >&5
6978 echo "${ECHO_T}$STRIP" >&6; }
6980 { echo "$as_me:$LINENO: result: no" >&5
6981 echo "${ECHO_T}no" >&6; }
6986 if test -z "$ac_cv_prog_STRIP"; then
6988 # Extract the first word of "strip", so it can be a program name with args.
6989 set dummy strip; ac_word=$2
6990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6992 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 if test -n "$ac_ct_STRIP"; then
6996 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_prog_ac_ct_STRIP="strip"
7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7016 if test -n "$ac_ct_STRIP"; then
7017 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7018 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7020 { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7024 if test "x$ac_ct_STRIP" = x; then
7027 case $cross_compiling:$ac_tool_warned in
7029 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7030 whose name does not start with the host triplet. If you think this
7031 configuration is useful to you, please write to autoconf@gnu.org." >&5
7032 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7033 whose name does not start with the host triplet. If you think this
7034 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7035 ac_tool_warned=yes ;;
7040 STRIP="$ac_cv_prog_STRIP"
7045 old_CFLAGS="$CFLAGS"
7047 # Set sane defaults for various variables
7048 test -z "$AR" && AR=ar
7049 test -z "$AR_FLAGS" && AR_FLAGS=cru
7050 test -z "$AS" && AS=as
7051 test -z "$CC" && CC=cc
7052 test -z "$LTCC" && LTCC=$CC
7053 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7054 test -z "$DLLTOOL" && DLLTOOL=dlltool
7055 test -z "$LD" && LD=ld
7056 test -z "$LN_S" && LN_S="ln -s"
7057 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7058 test -z "$NM" && NM=nm
7059 test -z "$SED" && SED=sed
7060 test -z "$OBJDUMP" && OBJDUMP=objdump
7061 test -z "$RANLIB" && RANLIB=:
7062 test -z "$STRIP" && STRIP=:
7063 test -z "$ac_objext" && ac_objext=o
7065 # Determine commands to create old-style static archives.
7066 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7067 old_postinstall_cmds='chmod 644 $oldlib'
7068 old_postuninstall_cmds=
7070 if test -n "$RANLIB"; then
7073 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7076 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7079 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7082 for cc_temp in $compiler""; do
7084 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7085 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7090 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7093 # Only perform the check for file, if the check method requires it
7094 case $deplibs_check_method in
7096 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7097 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7098 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7099 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7107 lt_save_MAGIC_CMD="$MAGIC_CMD"
7108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7109 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7110 for ac_dir in $ac_dummy; do
7112 test -z "$ac_dir" && ac_dir=.
7113 if test -f $ac_dir/${ac_tool_prefix}file; then
7114 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7115 if test -n "$file_magic_test_file"; then
7116 case $deplibs_check_method in
7118 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7120 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7121 $EGREP "$file_magic_regex" > /dev/null; then
7126 *** Warning: the command libtool uses to detect shared libraries,
7127 *** $file_magic_cmd, produces output that libtool cannot recognize.
7128 *** The result is that libtool may fail to recognize shared libraries
7129 *** as such. This will affect the creation of libtool libraries that
7130 *** depend on shared libraries, but programs linked with such libtool
7131 *** libraries will work regardless of this problem. Nevertheless, you
7132 *** may want to report the problem to your system manager and/or to
7133 *** bug-libtool@gnu.org
7143 MAGIC_CMD="$lt_save_MAGIC_CMD"
7148 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7149 if test -n "$MAGIC_CMD"; then
7150 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7151 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7153 { echo "$as_me:$LINENO: result: no" >&5
7154 echo "${ECHO_T}no" >&6; }
7157 if test -z "$lt_cv_path_MAGIC_CMD"; then
7158 if test -n "$ac_tool_prefix"; then
7159 { echo "$as_me:$LINENO: checking for file" >&5
7160 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7161 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7169 lt_save_MAGIC_CMD="$MAGIC_CMD"
7170 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7171 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7172 for ac_dir in $ac_dummy; do
7174 test -z "$ac_dir" && ac_dir=.
7175 if test -f $ac_dir/file; then
7176 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7177 if test -n "$file_magic_test_file"; then
7178 case $deplibs_check_method in
7180 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7181 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7182 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7183 $EGREP "$file_magic_regex" > /dev/null; then
7188 *** Warning: the command libtool uses to detect shared libraries,
7189 *** $file_magic_cmd, produces output that libtool cannot recognize.
7190 *** The result is that libtool may fail to recognize shared libraries
7191 *** as such. This will affect the creation of libtool libraries that
7192 *** depend on shared libraries, but programs linked with such libtool
7193 *** libraries will work regardless of this problem. Nevertheless, you
7194 *** may want to report the problem to your system manager and/or to
7195 *** bug-libtool@gnu.org
7205 MAGIC_CMD="$lt_save_MAGIC_CMD"
7210 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7211 if test -n "$MAGIC_CMD"; then
7212 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7213 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7215 { echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6; }
7231 # Check whether --enable-libtool-lock was given.
7232 if test "${enable_libtool_lock+set}" = set; then
7233 enableval=$enable_libtool_lock;
7236 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7239 # Check whether --with-pic was given.
7240 if test "${with_pic+set}" = set; then
7241 withval=$with_pic; pic_mode="$withval"
7246 test -z "$pic_mode" && pic_mode=default
7248 # Use C for the default configuration in the libtool script
7252 ac_cpp='$CPP $CPPFLAGS'
7253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7258 # Source file extension for C test sources.
7261 # Object file extension for compiled C test sources.
7265 # Code to be used in simple compile tests
7266 lt_simple_compile_test_code="int some_variable = 0;\n"
7268 # Code to be used in simple link tests
7269 lt_simple_link_test_code='int main(){return(0);}\n'
7272 # If no C compiler was specified, use CC.
7275 # If no C compiler flags were specified, use CFLAGS.
7276 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7278 # Allow CC to be a program name with arguments.
7282 # save warnings/boilerplate of simple test code
7283 ac_outfile=conftest.$ac_objext
7284 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7285 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7286 _lt_compiler_boilerplate=`cat conftest.err`
7289 ac_outfile=conftest.$ac_objext
7290 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7291 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7292 _lt_linker_boilerplate=`cat conftest.err`
7297 ## There is no encapsulation within the following macros, do not change
7298 ## the running order or otherwise move them around unless you know exactly
7299 ## what you are doing...
7301 lt_prog_compiler_no_builtin_flag=
7303 if test "$GCC" = yes; then
7304 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7307 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7308 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7309 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 lt_cv_prog_compiler_rtti_exceptions=no
7313 ac_outfile=conftest.$ac_objext
7314 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7315 lt_compiler_flag="-fno-rtti -fno-exceptions"
7316 # Insert the option either (1) after the last *FLAGS variable, or
7317 # (2) before a word containing "conftest.", or (3) at the end.
7318 # Note that $ac_compile itself does not contain backslashes and begins
7319 # with a dollar sign (not a hyphen), so the echo should work correctly.
7320 # The option is referenced via a variable to avoid confusing sed.
7321 lt_compile=`echo "$ac_compile" | $SED \
7322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7324 -e 's:$: $lt_compiler_flag:'`
7325 (eval echo "\"\$as_me:7325: $lt_compile\"" >&5)
7326 (eval "$lt_compile" 2>conftest.err)
7328 cat conftest.err >&5
7329 echo "$as_me:7329: \$? = $ac_status" >&5
7330 if (exit $ac_status) && test -s "$ac_outfile"; then
7331 # The compiler can only warn and ignore the option if not recognized
7332 # So say no if there are warnings other than the usual output.
7333 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7335 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7336 lt_cv_prog_compiler_rtti_exceptions=yes
7342 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7343 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7345 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7346 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7353 lt_prog_compiler_wl=
7354 lt_prog_compiler_pic=
7355 lt_prog_compiler_static=
7357 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7358 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7360 if test "$GCC" = yes; then
7361 lt_prog_compiler_wl='-Wl,'
7362 lt_prog_compiler_static='-static'
7366 # All AIX code is PIC.
7367 if test "$host_cpu" = ia64; then
7368 # AIX 5 now supports IA64 processor
7369 lt_prog_compiler_static='-Bstatic'
7374 # FIXME: we need at least 68020 code to build shared libraries, but
7375 # adding the `-m68020' flag to GCC prevents building anything better,
7377 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7380 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7381 # PIC is the default for these OSes.
7384 mingw* | pw32* | os2*)
7385 # This hack is so that the source file can tell whether it is being
7386 # built for inclusion in a dll (and should export symbols for example).
7387 lt_prog_compiler_pic='-DDLL_EXPORT'
7390 darwin* | rhapsody*)
7391 # PIC is the default on this platform
7392 # Common symbols not allowed in MH_DYLIB files
7393 lt_prog_compiler_pic='-fno-common'
7397 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7398 # Instead, we relocate shared libraries at runtime.
7402 # Just because we use GCC doesn't mean we suddenly get shared libraries
7403 # on systems that don't support them.
7404 lt_prog_compiler_can_build_shared=no
7409 if test -d /usr/nec; then
7410 lt_prog_compiler_pic=-Kconform_pic
7415 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7422 lt_prog_compiler_pic='-fPIC'
7428 lt_prog_compiler_pic='-fPIC'
7432 # PORTME Check for flag to pass linker flags through the system compiler.
7435 lt_prog_compiler_wl='-Wl,'
7436 if test "$host_cpu" = ia64; then
7437 # AIX 5 now supports IA64 processor
7438 lt_prog_compiler_static='-Bstatic'
7440 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7444 # PIC is the default on this platform
7445 # Common symbols not allowed in MH_DYLIB files
7446 case $cc_basename in
7448 lt_prog_compiler_pic='-qnocommon'
7449 lt_prog_compiler_wl='-Wl,'
7454 mingw* | pw32* | os2*)
7455 # This hack is so that the source file can tell whether it is being
7456 # built for inclusion in a dll (and should export symbols for example).
7457 lt_prog_compiler_pic='-DDLL_EXPORT'
7460 hpux9* | hpux10* | hpux11*)
7461 lt_prog_compiler_wl='-Wl,'
7462 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7469 lt_prog_compiler_pic='+Z'
7472 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7473 lt_prog_compiler_static='${wl}-a ${wl}archive'
7476 irix5* | irix6* | nonstopux*)
7477 lt_prog_compiler_wl='-Wl,'
7478 # PIC (with -KPIC) is the default.
7479 lt_prog_compiler_static='-non_shared'
7483 lt_prog_compiler_pic='-KPIC'
7484 lt_prog_compiler_static='-Bstatic'
7488 case $cc_basename in
7490 lt_prog_compiler_wl='-Wl,'
7491 lt_prog_compiler_pic='-KPIC'
7492 lt_prog_compiler_static='-static'
7494 pgcc* | pgf77* | pgf90* | pgf95*)
7495 # Portland Group compilers (*not* the Pentium gcc compiler,
7496 # which looks to be a dead project)
7497 lt_prog_compiler_wl='-Wl,'
7498 lt_prog_compiler_pic='-fpic'
7499 lt_prog_compiler_static='-Bstatic'
7502 lt_prog_compiler_wl='-Wl,'
7503 # All Alpha code is PIC.
7504 lt_prog_compiler_static='-non_shared'
7509 osf3* | osf4* | osf5*)
7510 lt_prog_compiler_wl='-Wl,'
7511 # All OSF/1 code is PIC.
7512 lt_prog_compiler_static='-non_shared'
7516 lt_prog_compiler_pic='-KPIC'
7517 lt_prog_compiler_static='-Bstatic'
7518 case $cc_basename in
7520 lt_prog_compiler_wl='-Qoption ld ';;
7522 lt_prog_compiler_wl='-Wl,';;
7527 lt_prog_compiler_wl='-Qoption ld '
7528 lt_prog_compiler_pic='-PIC'
7529 lt_prog_compiler_static='-Bstatic'
7532 sysv4 | sysv4.2uw2* | sysv4.3*)
7533 lt_prog_compiler_wl='-Wl,'
7534 lt_prog_compiler_pic='-KPIC'
7535 lt_prog_compiler_static='-Bstatic'
7539 if test -d /usr/nec ;then
7540 lt_prog_compiler_pic='-Kconform_pic'
7541 lt_prog_compiler_static='-Bstatic'
7545 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7546 lt_prog_compiler_wl='-Wl,'
7547 lt_prog_compiler_pic='-KPIC'
7548 lt_prog_compiler_static='-Bstatic'
7552 lt_prog_compiler_wl='-Wl,'
7553 lt_prog_compiler_can_build_shared=no
7557 lt_prog_compiler_pic='-pic'
7558 lt_prog_compiler_static='-Bstatic'
7562 lt_prog_compiler_can_build_shared=no
7567 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7568 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7571 # Check to make sure the PIC flag actually works.
7573 if test -n "$lt_prog_compiler_pic"; then
7575 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7576 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7577 if test "${lt_prog_compiler_pic_works+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 lt_prog_compiler_pic_works=no
7581 ac_outfile=conftest.$ac_objext
7582 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7583 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7584 # Insert the option either (1) after the last *FLAGS variable, or
7585 # (2) before a word containing "conftest.", or (3) at the end.
7586 # Note that $ac_compile itself does not contain backslashes and begins
7587 # with a dollar sign (not a hyphen), so the echo should work correctly.
7588 # The option is referenced via a variable to avoid confusing sed.
7589 lt_compile=`echo "$ac_compile" | $SED \
7590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7592 -e 's:$: $lt_compiler_flag:'`
7593 (eval echo "\"\$as_me:7593: $lt_compile\"" >&5)
7594 (eval "$lt_compile" 2>conftest.err)
7596 cat conftest.err >&5
7597 echo "$as_me:7597: \$? = $ac_status" >&5
7598 if (exit $ac_status) && test -s "$ac_outfile"; then
7599 # The compiler can only warn and ignore the option if not recognized
7600 # So say no if there are warnings other than the usual output.
7601 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7602 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7603 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7604 lt_prog_compiler_pic_works=yes
7610 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7611 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7613 if test x"$lt_prog_compiler_pic_works" = xyes; then
7614 case $lt_prog_compiler_pic in
7616 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7619 lt_prog_compiler_pic=
7620 lt_prog_compiler_can_build_shared=no
7625 # For platforms which do not support PIC, -DPIC is meaningless:
7627 lt_prog_compiler_pic=
7630 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7635 # Check to make sure the static flag actually works.
7637 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7638 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7639 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7640 if test "${lt_prog_compiler_static_works+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7643 lt_prog_compiler_static_works=no
7644 save_LDFLAGS="$LDFLAGS"
7645 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7646 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7647 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7648 # The linker can only warn and ignore the option if not recognized
7649 # So say no if there are warnings
7650 if test -s conftest.err; then
7651 # Append any errors to the config.log.
7652 cat conftest.err 1>&5
7653 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7655 if diff conftest.exp conftest.er2 >/dev/null; then
7656 lt_prog_compiler_static_works=yes
7659 lt_prog_compiler_static_works=yes
7663 LDFLAGS="$save_LDFLAGS"
7666 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7667 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7669 if test x"$lt_prog_compiler_static_works" = xyes; then
7672 lt_prog_compiler_static=
7676 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7677 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7678 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 lt_cv_prog_compiler_c_o=no
7682 $rm -r conftest 2>/dev/null
7686 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7688 lt_compiler_flag="-o out/conftest2.$ac_objext"
7689 # Insert the option either (1) after the last *FLAGS variable, or
7690 # (2) before a word containing "conftest.", or (3) at the end.
7691 # Note that $ac_compile itself does not contain backslashes and begins
7692 # with a dollar sign (not a hyphen), so the echo should work correctly.
7693 lt_compile=`echo "$ac_compile" | $SED \
7694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7696 -e 's:$: $lt_compiler_flag:'`
7697 (eval echo "\"\$as_me:7697: $lt_compile\"" >&5)
7698 (eval "$lt_compile" 2>out/conftest.err)
7700 cat out/conftest.err >&5
7701 echo "$as_me:7701: \$? = $ac_status" >&5
7702 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7704 # The compiler can only warn and ignore the option if not recognized
7705 # So say no if there are warnings
7706 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7707 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7708 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7709 lt_cv_prog_compiler_c_o=yes
7714 # SGI C++ compiler will create directory out/ii_files/ for
7715 # template instantiation
7716 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7717 $rm out/* && rmdir out
7723 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7724 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7727 hard_links="nottested"
7728 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7729 # do not overwrite the value of need_locks provided by the user
7730 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7731 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7734 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7736 ln conftest.a conftest.b 2>&5 || hard_links=no
7737 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7738 { echo "$as_me:$LINENO: result: $hard_links" >&5
7739 echo "${ECHO_T}$hard_links" >&6; }
7740 if test "$hard_links" = no; then
7741 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7742 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7749 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7750 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7753 allow_undefined_flag=
7754 enable_shared_with_static_runtimes=no
7756 archive_expsym_cmds=
7757 old_archive_From_new_cmds=
7758 old_archive_from_expsyms_cmds=
7759 export_dynamic_flag_spec=
7760 whole_archive_flag_spec=
7761 thread_safe_flag_spec=
7762 hardcode_libdir_flag_spec=
7763 hardcode_libdir_flag_spec_ld=
7764 hardcode_libdir_separator=
7767 hardcode_shlibpath_var=unsupported
7768 link_all_deplibs=unknown
7769 hardcode_automatic=no
7772 always_export_symbols=no
7773 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7774 # include_expsyms should be a list of space-separated symbols to be *always*
7775 # included in the symbol list
7777 # exclude_expsyms can be an extended regexp of symbols to exclude
7778 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7779 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7780 # as well as any symbol that contains `d'.
7781 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7782 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7783 # platforms (ab)use it in PIC code, but their linkers get confused if
7784 # the symbol is explicitly referenced. Since portable code cannot
7785 # rely on this symbol name, it's probably fine to never include it in
7786 # preloaded symbol tables.
7787 extract_expsyms_cmds=
7788 # Just being paranoid about ensuring that cc_basename is set.
7789 for cc_temp in $compiler""; do
7791 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7792 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7797 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7800 cygwin* | mingw* | pw32*)
7801 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7802 # When not using gcc, we currently assume that we are using
7803 # Microsoft Visual C++.
7804 if test "$GCC" != yes; then
7809 # we just hope/assume this is gcc and not c89 (= MSVC++)
7818 if test "$with_gnu_ld" = yes; then
7819 # If archive_cmds runs LD, not CC, wlarc should be empty
7822 # Set some defaults for GNU ld with shared library support. These
7823 # are reset later if shared libraries are not supported. Putting them
7824 # here allows them to be overridden if necessary.
7825 runpath_var=LD_RUN_PATH
7826 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7827 export_dynamic_flag_spec='${wl}--export-dynamic'
7828 # ancient GNU ld didn't support --whole-archive et. al.
7829 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7830 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7832 whole_archive_flag_spec=
7834 supports_anon_versioning=no
7835 case `$LD -v 2>/dev/null` in
7836 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7837 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7838 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7839 *\ 2.11.*) ;; # other 2.11 versions
7840 *) supports_anon_versioning=yes ;;
7843 # See if GNU ld supports shared libraries.
7845 aix3* | aix4* | aix5*)
7846 # On AIX/PPC, the GNU linker is very broken
7847 if test "$host_cpu" != ia64; then
7851 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7852 *** to be unable to reliably create shared libraries on AIX.
7853 *** Therefore, libtool is disabling shared libraries support. If you
7854 *** really care for shared libraries, you may want to modify your PATH
7855 *** so that a non-GNU linker is found, and then restart.
7862 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)'
7863 hardcode_libdir_flag_spec='-L$libdir'
7864 hardcode_minus_L=yes
7866 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7867 # that the semantics of dynamic libraries on AmigaOS, at least up
7868 # to version 4, is to share data among multiple programs linked
7869 # with the same dynamic library. Since this doesn't match the
7870 # behavior of shared libraries on other platforms, we can't use
7876 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7877 allow_undefined_flag=unsupported
7878 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7879 # support --undefined. This deserves some investigation. FIXME
7880 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7886 cygwin* | mingw* | pw32*)
7887 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7888 # as there is no search path for DLLs.
7889 hardcode_libdir_flag_spec='-L$libdir'
7890 allow_undefined_flag=unsupported
7891 always_export_symbols=no
7892 enable_shared_with_static_runtimes=yes
7893 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7895 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7896 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7897 # If the export-symbols file already is a .def file (1st line
7898 # is EXPORTS), use it as is; otherwise, prepend...
7899 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7900 cp $export_symbols $output_objdir/$soname.def;
7902 echo EXPORTS > $output_objdir/$soname.def;
7903 cat $export_symbols >> $output_objdir/$soname.def;
7905 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7913 hardcode_shlibpath_var=no
7914 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7915 export_dynamic_flag_spec='${wl}-E'
7916 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7917 # Instead, shared libraries are loaded at an image base (0x10000000 by
7918 # default) and relocated if they conflict, which is a slow very memory
7919 # consuming and fragmenting process. To avoid this, we pick a random,
7920 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7921 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7922 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7923 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'
7927 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7929 case $cc_basename,$host_cpu in
7930 pgcc*) # Portland Group C compiler
7931 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'
7932 tmp_addflag=' $pic_flag'
7934 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7935 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'
7936 tmp_addflag=' $pic_flag -Mnomain' ;;
7937 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7938 tmp_addflag=' -i_dynamic' ;;
7939 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7940 tmp_addflag=' -i_dynamic -nofor_main' ;;
7941 ifc* | ifort*) # Intel Fortran compiler
7942 tmp_addflag=' -nofor_main' ;;
7944 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7946 if test $supports_anon_versioning = yes; then
7947 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7948 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7949 $echo "local: *; };" >> $output_objdir/$libname.ver~
7950 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7958 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7959 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7963 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7968 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7972 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7973 *** create shared libraries on Solaris systems. Therefore, libtool
7974 *** is disabling shared libraries support. We urge you to upgrade GNU
7975 *** binutils to release 2.9.1 or newer. Another option is to modify
7976 *** your PATH or compiler configuration so that the native linker is
7977 *** used, and then restart.
7980 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7982 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7988 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7989 case `$LD -v 2>&1` in
7990 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7994 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7995 *** reliably create shared libraries on SCO systems. Therefore, libtool
7996 *** is disabling shared libraries support. We urge you to upgrade GNU
7997 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7998 *** your PATH or compiler configuration so that the native linker is
7999 *** used, and then restart.
8004 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8005 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8006 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8007 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8016 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8019 hardcode_shlibpath_var=no
8023 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8025 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8032 if test "$ld_shlibs" = no; then
8034 hardcode_libdir_flag_spec=
8035 export_dynamic_flag_spec=
8036 whole_archive_flag_spec=
8039 # PORTME fill in a description of your system's linker (not GNU ld)
8042 allow_undefined_flag=unsupported
8043 always_export_symbols=yes
8044 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'
8045 # Note: this linker hardcodes the directories in LIBPATH if there
8046 # are no directories specified by -L.
8047 hardcode_minus_L=yes
8048 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8049 # Neither direct hardcoding nor static linking is supported with a
8051 hardcode_direct=unsupported
8056 if test "$host_cpu" = ia64; then
8057 # On IA64, the linker does run time linking by default, so we don't
8058 # have to do anything special.
8059 aix_use_runtimelinking=no
8060 exp_sym_flag='-Bexport'
8063 # If we're using GNU nm, then we don't want the "-C" option.
8064 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8065 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8066 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'
8068 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'
8070 aix_use_runtimelinking=no
8072 # Test if we are trying to use run time linking or normal
8073 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8074 # need to do runtime linking.
8075 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8076 for ld_flag in $LDFLAGS; do
8077 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8078 aix_use_runtimelinking=yes
8085 exp_sym_flag='-bexport'
8086 no_entry_flag='-bnoentry'
8089 # When large executables or shared objects are built, AIX ld can
8090 # have problems creating the table of contents. If linking a library
8091 # or program results in "error TOC overflow" add -mminimal-toc to
8092 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8093 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8097 hardcode_libdir_separator=':'
8098 link_all_deplibs=yes
8100 if test "$GCC" = yes; then
8101 case $host_os in aix4.[012]|aix4.[012].*)
8102 # We only want to do this on AIX 4.2 and lower, the check
8103 # below for broken collect2 doesn't work under 4.3+
8104 collect2name=`${CC} -print-prog-name=collect2`
8105 if test -f "$collect2name" && \
8106 strings "$collect2name" | grep resolve_lib_name >/dev/null
8108 # We have reworked collect2
8111 # We have old collect2
8112 hardcode_direct=unsupported
8113 # It fails to find uninstalled libraries when the uninstalled
8114 # path is not listed in the libpath. Setting hardcode_minus_L
8115 # to unsupported forces relinking
8116 hardcode_minus_L=yes
8117 hardcode_libdir_flag_spec='-L$libdir'
8118 hardcode_libdir_separator=
8122 shared_flag='-shared'
8123 if test "$aix_use_runtimelinking" = yes; then
8124 shared_flag="$shared_flag "'${wl}-G'
8128 if test "$host_cpu" = ia64; then
8129 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8130 # chokes on -Wl,-G. The following line is correct:
8133 if test "$aix_use_runtimelinking" = yes; then
8134 shared_flag='${wl}-G'
8136 shared_flag='${wl}-bM:SRE'
8141 # It seems that -bexpall does not export symbols beginning with
8142 # underscore (_), so it is better to generate a list of symbols to export.
8143 always_export_symbols=yes
8144 if test "$aix_use_runtimelinking" = yes; then
8145 # Warning - without using the other runtime loading flags (-brtl),
8146 # -berok will link without error, but may produce a broken library.
8147 allow_undefined_flag='-berok'
8148 # Determine the default libpath from the value encoded in an empty executable.
8149 cat >conftest.$ac_ext <<_ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h. */
8164 rm -f conftest.$ac_objext conftest$ac_exeext
8165 if { (ac_try="$ac_link"
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_link") 2>conftest.er1
8173 grep -v '^ *+' conftest.er1 >conftest.err
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } && {
8178 test -z "$ac_c_werror_flag" ||
8179 test ! -s conftest.err
8180 } && test -s conftest$ac_exeext &&
8181 $as_test_x conftest$ac_exeext; then
8183 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8185 # Check for a 64-bit object if we didn't find anything.
8186 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; }
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8196 conftest$ac_exeext conftest.$ac_ext
8197 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8199 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8200 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"
8202 if test "$host_cpu" = ia64; then
8203 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8204 allow_undefined_flag="-z nodefs"
8205 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"
8207 # Determine the default libpath from the value encoded in an empty executable.
8208 cat >conftest.$ac_ext <<_ACEOF
8211 cat confdefs.h >>conftest.$ac_ext
8212 cat >>conftest.$ac_ext <<_ACEOF
8213 /* end confdefs.h. */
8223 rm -f conftest.$ac_objext conftest$ac_exeext
8224 if { (ac_try="$ac_link"
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_link") 2>conftest.er1
8232 grep -v '^ *+' conftest.er1 >conftest.err
8234 cat conftest.err >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } && {
8237 test -z "$ac_c_werror_flag" ||
8238 test ! -s conftest.err
8239 } && test -s conftest$ac_exeext &&
8240 $as_test_x conftest$ac_exeext; then
8242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8244 # Check for a 64-bit object if we didn't find anything.
8245 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; }
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8255 conftest$ac_exeext conftest.$ac_ext
8256 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8258 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8259 # Warning - without using the other run time loading flags,
8260 # -berok will link without error, but may produce a broken library.
8261 no_undefined_flag=' ${wl}-bernotok'
8262 allow_undefined_flag=' ${wl}-berok'
8263 # Exported symbols can be pulled into shared objects from archives
8264 whole_archive_flag_spec='$convenience'
8265 archive_cmds_need_lc=yes
8266 # This is similar to how AIX traditionally builds its shared libraries.
8267 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'
8273 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)'
8274 hardcode_libdir_flag_spec='-L$libdir'
8275 hardcode_minus_L=yes
8276 # see comment about different semantics on the GNU ld section
8281 export_dynamic_flag_spec=-rdynamic
8284 cygwin* | mingw* | pw32*)
8285 # When not using gcc, we currently assume that we are using
8286 # Microsoft Visual C++.
8287 # hardcode_libdir_flag_spec is actually meaningless, as there is
8288 # no search path for DLLs.
8289 hardcode_libdir_flag_spec=' '
8290 allow_undefined_flag=unsupported
8291 # Tell ltmain to make .lib files, not .a files.
8293 # Tell ltmain to make .dll files, not .so files.
8295 # FIXME: Setting linknames here is a bad hack.
8296 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8297 # The linker will automatically build a .lib file if we build a DLL.
8298 old_archive_From_new_cmds='true'
8299 # FIXME: Should let the user specify the lib program.
8300 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8301 fix_srcfile_path='`cygpath -w "$srcfile"`'
8302 enable_shared_with_static_runtimes=yes
8305 darwin* | rhapsody*)
8307 rhapsody* | darwin1.[012])
8308 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8311 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8312 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8314 case ${MACOSX_DEPLOYMENT_TARGET} in
8316 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8319 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8325 archive_cmds_need_lc=no
8327 hardcode_automatic=yes
8328 hardcode_shlibpath_var=unsupported
8329 whole_archive_flag_spec=''
8330 link_all_deplibs=yes
8331 if test "$GCC" = yes ; then
8332 output_verbose_link_cmd='echo'
8333 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8334 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8335 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8336 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}'
8337 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}'
8339 case $cc_basename in
8341 output_verbose_link_cmd='echo'
8342 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8343 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8344 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8345 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}'
8346 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}'
8356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8357 hardcode_libdir_flag_spec='-L$libdir'
8358 hardcode_shlibpath_var=no
8365 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8366 # support. Future versions do this automatically, but an explicit c++rt0.o
8367 # does not break anything, and helps significantly (at the cost of a little
8370 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8371 hardcode_libdir_flag_spec='-R$libdir'
8373 hardcode_shlibpath_var=no
8376 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8378 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8380 hardcode_minus_L=yes
8381 hardcode_shlibpath_var=no
8384 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8385 freebsd* | kfreebsd*-gnu | dragonfly*)
8386 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8387 hardcode_libdir_flag_spec='-R$libdir'
8389 hardcode_shlibpath_var=no
8393 if test "$GCC" = yes; then
8394 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'
8396 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'
8398 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8399 hardcode_libdir_separator=:
8402 # hardcode_minus_L: Not really in the search PATH,
8403 # but as the default location of the library.
8404 hardcode_minus_L=yes
8405 export_dynamic_flag_spec='${wl}-E'
8409 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8410 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8412 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8414 if test "$with_gnu_ld" = no; then
8415 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8416 hardcode_libdir_separator=:
8419 export_dynamic_flag_spec='${wl}-E'
8421 # hardcode_minus_L: Not really in the search PATH,
8422 # but as the default location of the library.
8423 hardcode_minus_L=yes
8428 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8431 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8434 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8437 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8443 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8446 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8449 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8453 if test "$with_gnu_ld" = no; then
8454 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8455 hardcode_libdir_separator=:
8459 hardcode_libdir_flag_spec_ld='+b $libdir'
8461 hardcode_shlibpath_var=no
8465 export_dynamic_flag_spec='${wl}-E'
8467 # hardcode_minus_L: Not really in the search PATH,
8468 # but as the default location of the library.
8469 hardcode_minus_L=yes
8475 irix5* | irix6* | nonstopux*)
8476 if test "$GCC" = yes; then
8477 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'
8479 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'
8480 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8483 hardcode_libdir_separator=:
8484 link_all_deplibs=yes
8488 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8489 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8491 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8493 hardcode_libdir_flag_spec='-R$libdir'
8495 hardcode_shlibpath_var=no
8499 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8502 hardcode_libdir_separator=:
8503 hardcode_shlibpath_var=no
8508 hardcode_shlibpath_var=no
8509 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8510 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8511 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8512 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8513 export_dynamic_flag_spec='${wl}-E'
8516 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8517 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8518 hardcode_libdir_flag_spec='-R$libdir'
8521 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8522 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8529 hardcode_libdir_flag_spec='-L$libdir'
8530 hardcode_minus_L=yes
8531 allow_undefined_flag=unsupported
8532 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'
8533 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8537 if test "$GCC" = yes; then
8538 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8539 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'
8541 allow_undefined_flag=' -expect_unresolved \*'
8542 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'
8544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8545 hardcode_libdir_separator=:
8548 osf4* | osf5*) # as osf3* with the addition of -msym flag
8549 if test "$GCC" = yes; then
8550 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8551 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'
8552 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8554 allow_undefined_flag=' -expect_unresolved \*'
8555 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'
8556 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8557 $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'
8559 # Both c and cxx compiler support -rpath directly
8560 hardcode_libdir_flag_spec='-rpath $libdir'
8562 hardcode_libdir_separator=:
8566 no_undefined_flag=' -z text'
8567 if test "$GCC" = yes; then
8569 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8570 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8571 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8574 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8575 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8576 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8578 hardcode_libdir_flag_spec='-R$libdir'
8579 hardcode_shlibpath_var=no
8581 solaris2.[0-5] | solaris2.[0-5].*) ;;
8583 # The compiler driver will combine linker options so we
8584 # cannot just pass the convience library names through
8585 # without $wl, iff we do not link with $LD.
8586 # Luckily, gcc supports the same syntax we need for Sun Studio.
8587 # Supported since Solaris 2.6 (maybe 2.5.1?)
8590 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8592 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' ;;
8595 link_all_deplibs=yes
8599 if test "x$host_vendor" = xsequent; then
8600 # Use $CC to link under sequent, because it throws in some extra .o
8601 # files that make .init and .fini sections work.
8602 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8604 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8606 hardcode_libdir_flag_spec='-L$libdir'
8608 hardcode_minus_L=yes
8609 hardcode_shlibpath_var=no
8613 case $host_vendor in
8615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8616 hardcode_direct=yes # is this really true???
8619 ## LD is ld it makes a PLAMLIB
8620 ## CC just makes a GrossModule.
8621 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8622 reload_cmds='$CC -r -o $output$reload_objs'
8626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8627 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8630 runpath_var='LD_RUN_PATH'
8631 hardcode_shlibpath_var=no
8635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8636 hardcode_shlibpath_var=no
8637 export_dynamic_flag_spec='-Bexport'
8641 if test -d /usr/nec; then
8642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8643 hardcode_shlibpath_var=no
8644 runpath_var=LD_RUN_PATH
8645 hardcode_runpath_var=yes
8650 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8651 no_undefined_flag='${wl}-z,text'
8652 archive_cmds_need_lc=no
8653 hardcode_shlibpath_var=no
8654 runpath_var='LD_RUN_PATH'
8656 if test "$GCC" = yes; then
8657 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8658 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8660 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8661 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8665 sysv5* | sco3.2v5* | sco5v6*)
8666 # Note: We can NOT use -z defs as we might desire, because we do not
8667 # link with -lc, and that would cause any symbols used from libc to
8668 # always be unresolved, which means just about no library would
8669 # ever link correctly. If we're not using GNU ld we use -z text
8670 # though, which does catch some bad symbols but isn't as heavy-handed
8672 no_undefined_flag='${wl}-z,text'
8673 allow_undefined_flag='${wl}-z,nodefs'
8674 archive_cmds_need_lc=no
8675 hardcode_shlibpath_var=no
8676 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8677 hardcode_libdir_separator=':'
8678 link_all_deplibs=yes
8679 export_dynamic_flag_spec='${wl}-Bexport'
8680 runpath_var='LD_RUN_PATH'
8682 if test "$GCC" = yes; then
8683 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8684 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8686 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8687 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8693 hardcode_libdir_flag_spec='-L$libdir'
8694 hardcode_shlibpath_var=no
8703 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8704 echo "${ECHO_T}$ld_shlibs" >&6; }
8705 test "$ld_shlibs" = no && can_build_shared=no
8708 # Do we need to explicitly link libc?
8710 case "x$archive_cmds_need_lc" in
8712 # Assume -lc should be added
8713 archive_cmds_need_lc=yes
8715 if test "$enable_shared" = yes && test "$GCC" = yes; then
8716 case $archive_cmds in
8718 # FIXME: we may have to deal with multi-command sequences.
8721 # Test whether the compiler implicitly links with -lc since on some
8722 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8723 # to ld, don't add -lc before -lgcc.
8724 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8725 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8727 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8730 (eval $ac_compile) 2>&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } 2>conftest.err; then
8736 libobjs=conftest.$ac_objext
8738 wl=$lt_prog_compiler_wl
8739 pic_flag=$lt_prog_compiler_pic
8745 lt_save_allow_undefined_flag=$allow_undefined_flag
8746 allow_undefined_flag=
8747 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8748 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); }
8753 archive_cmds_need_lc=no
8755 archive_cmds_need_lc=yes
8757 allow_undefined_flag=$lt_save_allow_undefined_flag
8759 cat conftest.err 1>&5
8762 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8763 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8770 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8771 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8773 libname_spec='lib$name'
8781 shlibpath_overrides_runpath=unknown
8783 dynamic_linker="$host_os ld.so"
8784 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8785 if test "$GCC" = yes; then
8786 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8787 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8788 # if the path contains ";" then we assume it to be the separator
8789 # otherwise default to the standard path separator (i.e. ":") - it is
8790 # assumed that no part of a normal pathname contains ";" but that should
8791 # okay in the real world where ";" in dirpaths is itself problematic.
8792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8797 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8799 need_lib_prefix=unknown
8800 hardcode_into_libs=no
8802 # when you set need_version to no, make sure it does not cause -set_version
8803 # flags to be left without arguments
8804 need_version=unknown
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8810 shlibpath_var=LIBPATH
8812 # AIX 3 has no versioning support, so we append a major version to the name.
8813 soname_spec='${libname}${release}${shared_ext}$major'
8820 hardcode_into_libs=yes
8821 if test "$host_cpu" = ia64; then
8822 # AIX 5 supports IA64
8823 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8824 shlibpath_var=LD_LIBRARY_PATH
8826 # With GCC up to 2.95.x, collect2 would create an import file
8827 # for dependence libraries. The import file would start with
8828 # the line `#! .'. This would cause the generated library to
8829 # depend on `.', always an invalid library. This was fixed in
8830 # development snapshots of GCC prior to 3.0.
8832 aix4 | aix4.[01] | aix4.[01].*)
8833 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8835 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8842 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8843 # soname into executable. Probably we can add versioning support to
8844 # collect2, so additional links can be useful in future.
8845 if test "$aix_use_runtimelinking" = yes; then
8846 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8847 # instead of lib<name>.a to let people know that these are not
8848 # typical AIX shared libraries.
8849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8851 # We preserve .a as extension for shared libraries through AIX4.2
8852 # and later when we are not doing run time linking.
8853 library_names_spec='${libname}${release}.a $libname.a'
8854 soname_spec='${libname}${release}${shared_ext}$major'
8856 shlibpath_var=LIBPATH
8861 library_names_spec='$libname.ixlibrary $libname.a'
8862 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8863 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'
8867 library_names_spec='${libname}${shared_ext}'
8868 dynamic_linker="$host_os ld.so"
8869 shlibpath_var=LIBRARY_PATH
8875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8876 soname_spec='${libname}${release}${shared_ext}$major'
8877 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8878 shlibpath_var=LD_LIBRARY_PATH
8879 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8880 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8881 # the default ld.so.conf also contains /usr/contrib/lib and
8882 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8883 # libtool to hard-code these into programs
8886 cygwin* | mingw* | pw32*)
8887 version_type=windows
8892 case $GCC,$host_os in
8893 yes,cygwin* | yes,mingw* | yes,pw32*)
8894 library_names_spec='$libname.dll.a'
8895 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8896 postinstall_cmds='base_file=`basename \${file}`~
8897 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8898 dldir=$destdir/`dirname \$dlpath`~
8899 test -d \$dldir || mkdir -p \$dldir~
8900 $install_prog $dir/$dlname \$dldir/$dlname~
8901 chmod a+x \$dldir/$dlname'
8902 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8903 dlpath=$dir/\$dldll~
8905 shlibpath_overrides_runpath=yes
8909 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8910 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8911 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8914 # MinGW DLLs use traditional 'lib' prefix
8915 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8916 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8917 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8918 # It is most probably a Windows format PATH printed by
8919 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8920 # path with ; separators, and with drive letters. We can handle the
8921 # drive letters (cygwin fileutils understands them), so leave them,
8922 # especially as we might pass files found there to a mingw objdump,
8923 # which wouldn't understand a cygwinified path. Ahh.
8924 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8926 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8930 # pw32 DLLs use 'pw' prefix rather than 'lib'
8931 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8937 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8940 dynamic_linker='Win32 ld.exe'
8941 # FIXME: first we should search . and the directory the executable is in
8945 darwin* | rhapsody*)
8946 dynamic_linker="$host_os dyld"
8950 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8951 soname_spec='${libname}${release}${major}$shared_ext'
8952 shlibpath_overrides_runpath=yes
8953 shlibpath_var=DYLD_LIBRARY_PATH
8954 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8955 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8956 if test "$GCC" = yes; then
8957 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"`
8959 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8961 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8969 soname_spec='${libname}${release}${shared_ext}$major'
8970 shlibpath_var=LD_LIBRARY_PATH
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 shlibpath_var=LD_LIBRARY_PATH
8984 shlibpath_overrides_runpath=no
8985 hardcode_into_libs=yes
8986 dynamic_linker='GNU ld.so'
8989 freebsd* | dragonfly*)
8990 # DragonFly does not have aout. When/if they implement a new
8991 # versioning mechanism, adjust this.
8992 if test -x /usr/bin/objformat; then
8993 objformat=`/usr/bin/objformat`
8996 freebsd[123]*) objformat=aout ;;
9000 version_type=freebsd-$objformat
9001 case $version_type in
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9012 shlibpath_var=LD_LIBRARY_PATH
9015 shlibpath_overrides_runpath=yes
9017 freebsd3.[01]* | freebsdelf3.[01]*)
9018 shlibpath_overrides_runpath=yes
9019 hardcode_into_libs=yes
9021 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9022 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9023 shlibpath_overrides_runpath=no
9024 hardcode_into_libs=yes
9026 freebsd*) # from 4.6 on
9027 shlibpath_overrides_runpath=yes
9028 hardcode_into_libs=yes
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 shlibpath_var=LD_LIBRARY_PATH
9040 hardcode_into_libs=yes
9043 hpux9* | hpux10* | hpux11*)
9044 # Give a soname corresponding to the major version so that dld.sl refuses to
9045 # link against other versions.
9052 hardcode_into_libs=yes
9053 dynamic_linker="$host_os dld.so"
9054 shlibpath_var=LD_LIBRARY_PATH
9055 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057 soname_spec='${libname}${release}${shared_ext}$major'
9058 if test "X$HPUX_IA64_MODE" = X32; then
9059 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9061 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9063 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9067 hardcode_into_libs=yes
9068 dynamic_linker="$host_os dld.sl"
9069 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9070 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9072 soname_spec='${libname}${release}${shared_ext}$major'
9073 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9074 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9078 dynamic_linker="$host_os dld.sl"
9079 shlibpath_var=SHLIB_PATH
9080 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9085 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9086 postinstall_cmds='chmod 555 $lib'
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 shlibpath_overrides_runpath=no
9098 hardcode_into_libs=yes
9101 irix5* | irix6* | nonstopux*)
9103 nonstopux*) version_type=nonstopux ;;
9105 if test "$lt_cv_prog_gnu_ld" = yes; then
9113 soname_spec='${libname}${release}${shared_ext}$major'
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9116 irix5* | nonstopux*)
9120 case $LD in # libtool.m4 will add one of these switches to LD
9121 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9122 libsuff= shlibsuff= libmagic=32-bit;;
9123 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9124 libsuff=32 shlibsuff=N32 libmagic=N32;;
9125 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9126 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9127 *) libsuff= shlibsuff= libmagic=never-match;;
9131 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9132 shlibpath_overrides_runpath=no
9133 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9134 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9135 hardcode_into_libs=yes
9138 # No shared lib support for Linux oldld, aout, or coff.
9139 linux*oldld* | linux*aout* | linux*coff*)
9143 # This must be Linux ELF.
9148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9149 soname_spec='${libname}${release}${shared_ext}$major'
9150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9151 shlibpath_var=LD_LIBRARY_PATH
9152 shlibpath_overrides_runpath=no
9153 # This implies no fast_install, which is unacceptable.
9154 # Some rework will be needed to allow for fast_install
9155 # before this can be enabled.
9156 hardcode_into_libs=yes
9158 # Append ld.so.conf contents to the search path
9159 if test -f /etc/ld.so.conf; then
9160 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' ' '`
9161 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9164 # We used to test for /lib/ld.so.1 and disable shared libraries on
9165 # powerpc, because MkLinux only supported shared libraries with the
9166 # GNU dynamic linker. Since this was broken with cross compilers,
9167 # most powerpc-linux boxes support dynamic linking these days and
9168 # people can always --disable-shared, the test was removed, and we
9169 # assume the GNU/Linux dynamic linker is in use.
9170 dynamic_linker='GNU/Linux ld.so'
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 shlibpath_var=LD_LIBRARY_PATH
9180 shlibpath_overrides_runpath=no
9181 hardcode_into_libs=yes
9182 dynamic_linker='GNU ld.so'
9189 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9192 dynamic_linker='NetBSD (a.out) ld.so'
9194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9195 soname_spec='${libname}${release}${shared_ext}$major'
9196 dynamic_linker='NetBSD ld.elf_so'
9198 shlibpath_var=LD_LIBRARY_PATH
9199 shlibpath_overrides_runpath=yes
9200 hardcode_into_libs=yes
9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9206 shlibpath_var=LD_LIBRARY_PATH
9207 shlibpath_overrides_runpath=yes
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9215 soname_spec='${libname}${release}${shared_ext}$major'
9216 shlibpath_var=LD_LIBRARY_PATH
9217 shlibpath_overrides_runpath=yes
9222 sys_lib_dlsearch_path_spec="/usr/lib"
9224 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9226 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9227 *) need_version=no ;;
9229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9231 shlibpath_var=LD_LIBRARY_PATH
9232 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9234 openbsd2.[89] | openbsd2.[89].*)
9235 shlibpath_overrides_runpath=no
9238 shlibpath_overrides_runpath=yes
9242 shlibpath_overrides_runpath=yes
9247 libname_spec='$name'
9250 library_names_spec='$libname${shared_ext} $libname.a'
9251 dynamic_linker='OS/2 ld.exe'
9252 shlibpath_var=LIBPATH
9255 osf3* | osf4* | osf5*)
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9263 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9271 soname_spec='${libname}${release}${shared_ext}$major'
9272 shlibpath_var=LD_LIBRARY_PATH
9273 shlibpath_overrides_runpath=yes
9274 hardcode_into_libs=yes
9275 # ldd complains unless libraries are executable
9276 postinstall_cmds='chmod +x $lib'
9281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9282 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9283 shlibpath_var=LD_LIBRARY_PATH
9284 shlibpath_overrides_runpath=yes
9285 if test "$with_gnu_ld" = yes; then
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294 soname_spec='${libname}${release}${shared_ext}$major'
9295 shlibpath_var=LD_LIBRARY_PATH
9296 case $host_vendor in
9298 shlibpath_overrides_runpath=no
9300 export_dynamic_flag_spec='${wl}-Blargedynsym'
9301 runpath_var=LD_RUN_PATH
9309 shlibpath_overrides_runpath=no
9310 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9316 if test -d /usr/nec ;then
9318 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9319 soname_spec='$libname${shared_ext}.$major'
9320 shlibpath_var=LD_LIBRARY_PATH
9324 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9325 version_type=freebsd-elf
9328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9329 soname_spec='${libname}${release}${shared_ext}$major'
9330 shlibpath_var=LD_LIBRARY_PATH
9331 hardcode_into_libs=yes
9332 if test "$with_gnu_ld" = yes; then
9333 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9334 shlibpath_overrides_runpath=no
9336 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9337 shlibpath_overrides_runpath=yes
9340 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9344 sys_lib_dlsearch_path_spec='/usr/lib'
9349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350 soname_spec='${libname}${release}${shared_ext}$major'
9351 shlibpath_var=LD_LIBRARY_PATH
9358 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9359 echo "${ECHO_T}$dynamic_linker" >&6; }
9360 test "$dynamic_linker" = no && can_build_shared=no
9362 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9363 if test "$GCC" = yes; then
9364 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9367 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9368 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9370 if test -n "$hardcode_libdir_flag_spec" || \
9371 test -n "$runpath_var" || \
9372 test "X$hardcode_automatic" = "Xyes" ; then
9374 # We can hardcode non-existant directories.
9375 if test "$hardcode_direct" != no &&
9376 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9377 # have to relink, otherwise we might link with an installed library
9378 # when we should be linking with a yet-to-be-installed one
9379 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9380 test "$hardcode_minus_L" != no; then
9381 # Linking always hardcodes the temporary library directory.
9382 hardcode_action=relink
9384 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9385 hardcode_action=immediate
9388 # We cannot hardcode anything, or else we can only hardcode existing
9390 hardcode_action=unsupported
9392 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9393 echo "${ECHO_T}$hardcode_action" >&6; }
9395 if test "$hardcode_action" = relink; then
9396 # Fast installation is not supported
9397 enable_fast_install=no
9398 elif test "$shlibpath_overrides_runpath" = yes ||
9399 test "$enable_shared" = no; then
9400 # Fast installation is not necessary
9401 enable_fast_install=needless
9406 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9407 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9408 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9409 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9410 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9411 { echo "$as_me:$LINENO: result: yes" >&5
9412 echo "${ECHO_T}yes" >&6; }
9414 # FIXME - insert some real tests, host_os isn't really good enough
9417 if test -n "$STRIP" ; then
9418 striplib="$STRIP -x"
9419 { echo "$as_me:$LINENO: result: yes" >&5
9420 echo "${ECHO_T}yes" >&6; }
9422 { echo "$as_me:$LINENO: result: no" >&5
9423 echo "${ECHO_T}no" >&6; }
9427 { echo "$as_me:$LINENO: result: no" >&5
9428 echo "${ECHO_T}no" >&6; }
9433 if test "x$enable_dlopen" != xyes; then
9434 enable_dlopen=unknown
9435 enable_dlopen_self=unknown
9436 enable_dlopen_self_static=unknown
9443 lt_cv_dlopen="load_add_on"
9445 lt_cv_dlopen_self=yes
9449 lt_cv_dlopen="LoadLibrary"
9454 lt_cv_dlopen="dlopen"
9459 # if libdl is installed we need to link against it
9460 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9461 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9462 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9465 ac_check_lib_save_LIBS=$LIBS
9467 cat >conftest.$ac_ext <<_ACEOF
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9474 /* Override any GCC internal prototype to avoid an error.
9475 Use char because int might match the return type of a GCC
9476 builtin and then its argument prototype would still apply. */
9489 rm -f conftest.$ac_objext conftest$ac_exeext
9490 if { (ac_try="$ac_link"
9492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9493 *) ac_try_echo=$ac_try;;
9495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9496 (eval "$ac_link") 2>conftest.er1
9498 grep -v '^ *+' conftest.er1 >conftest.err
9500 cat conftest.err >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); } && {
9503 test -z "$ac_c_werror_flag" ||
9504 test ! -s conftest.err
9505 } && test -s conftest$ac_exeext &&
9506 $as_test_x conftest$ac_exeext; then
9507 ac_cv_lib_dl_dlopen=yes
9509 echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9512 ac_cv_lib_dl_dlopen=no
9515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9516 conftest$ac_exeext conftest.$ac_ext
9517 LIBS=$ac_check_lib_save_LIBS
9519 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9520 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9521 if test $ac_cv_lib_dl_dlopen = yes; then
9522 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9527 lt_cv_dlopen_self=yes
9534 { echo "$as_me:$LINENO: checking for shl_load" >&5
9535 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9536 if test "${ac_cv_func_shl_load+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 cat >conftest.$ac_ext <<_ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h. */
9545 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9547 #define shl_load innocuous_shl_load
9549 /* System header to define __stub macros and hopefully few prototypes,
9550 which can conflict with char shl_load (); below.
9551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9552 <limits.h> exists even on freestanding compilers. */
9555 # include <limits.h>
9557 # include <assert.h>
9562 /* Override any GCC internal prototype to avoid an error.
9563 Use char because int might match the return type of a GCC
9564 builtin and then its argument prototype would still apply. */
9569 /* The GNU C library defines this for functions which it implements
9570 to always fail with ENOSYS. Some functions are actually named
9571 something starting with __ and the normal name is an alias. */
9572 #if defined __stub_shl_load || defined __stub___shl_load
9584 rm -f conftest.$ac_objext conftest$ac_exeext
9585 if { (ac_try="$ac_link"
9587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588 *) ac_try_echo=$ac_try;;
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591 (eval "$ac_link") 2>conftest.er1
9593 grep -v '^ *+' conftest.er1 >conftest.err
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } && {
9598 test -z "$ac_c_werror_flag" ||
9599 test ! -s conftest.err
9600 } && test -s conftest$ac_exeext &&
9601 $as_test_x conftest$ac_exeext; then
9602 ac_cv_func_shl_load=yes
9604 echo "$as_me: failed program was:" >&5
9605 sed 's/^/| /' conftest.$ac_ext >&5
9607 ac_cv_func_shl_load=no
9610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9611 conftest$ac_exeext conftest.$ac_ext
9613 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9614 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9615 if test $ac_cv_func_shl_load = yes; then
9616 lt_cv_dlopen="shl_load"
9618 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9619 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9620 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9623 ac_check_lib_save_LIBS=$LIBS
9625 cat >conftest.$ac_ext <<_ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9632 /* Override any GCC internal prototype to avoid an error.
9633 Use char because int might match the return type of a GCC
9634 builtin and then its argument prototype would still apply. */
9647 rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (ac_try="$ac_link"
9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_link") 2>conftest.er1
9656 grep -v '^ *+' conftest.er1 >conftest.err
9658 cat conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } && {
9661 test -z "$ac_c_werror_flag" ||
9662 test ! -s conftest.err
9663 } && test -s conftest$ac_exeext &&
9664 $as_test_x conftest$ac_exeext; then
9665 ac_cv_lib_dld_shl_load=yes
9667 echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9670 ac_cv_lib_dld_shl_load=no
9673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9674 conftest$ac_exeext conftest.$ac_ext
9675 LIBS=$ac_check_lib_save_LIBS
9677 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9678 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9679 if test $ac_cv_lib_dld_shl_load = yes; then
9680 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9682 { echo "$as_me:$LINENO: checking for dlopen" >&5
9683 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9684 if test "${ac_cv_func_dlopen+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 cat >conftest.$ac_ext <<_ACEOF
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h. */
9693 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9695 #define dlopen innocuous_dlopen
9697 /* System header to define __stub macros and hopefully few prototypes,
9698 which can conflict with char dlopen (); below.
9699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9700 <limits.h> exists even on freestanding compilers. */
9703 # include <limits.h>
9705 # include <assert.h>
9710 /* Override any GCC internal prototype to avoid an error.
9711 Use char because int might match the return type of a GCC
9712 builtin and then its argument prototype would still apply. */
9717 /* The GNU C library defines this for functions which it implements
9718 to always fail with ENOSYS. Some functions are actually named
9719 something starting with __ and the normal name is an alias. */
9720 #if defined __stub_dlopen || defined __stub___dlopen
9732 rm -f conftest.$ac_objext conftest$ac_exeext
9733 if { (ac_try="$ac_link"
9735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736 *) ac_try_echo=$ac_try;;
9738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739 (eval "$ac_link") 2>conftest.er1
9741 grep -v '^ *+' conftest.er1 >conftest.err
9743 cat conftest.err >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } && {
9746 test -z "$ac_c_werror_flag" ||
9747 test ! -s conftest.err
9748 } && test -s conftest$ac_exeext &&
9749 $as_test_x conftest$ac_exeext; then
9750 ac_cv_func_dlopen=yes
9752 echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9755 ac_cv_func_dlopen=no
9758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9759 conftest$ac_exeext conftest.$ac_ext
9761 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9762 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9763 if test $ac_cv_func_dlopen = yes; then
9764 lt_cv_dlopen="dlopen"
9766 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9767 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9768 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
9771 ac_check_lib_save_LIBS=$LIBS
9773 cat >conftest.$ac_ext <<_ACEOF
9776 cat confdefs.h >>conftest.$ac_ext
9777 cat >>conftest.$ac_ext <<_ACEOF
9778 /* end confdefs.h. */
9780 /* Override any GCC internal prototype to avoid an error.
9781 Use char because int might match the return type of a GCC
9782 builtin and then its argument prototype would still apply. */
9795 rm -f conftest.$ac_objext conftest$ac_exeext
9796 if { (ac_try="$ac_link"
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_link") 2>conftest.er1
9804 grep -v '^ *+' conftest.er1 >conftest.err
9806 cat conftest.err >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); } && {
9809 test -z "$ac_c_werror_flag" ||
9810 test ! -s conftest.err
9811 } && test -s conftest$ac_exeext &&
9812 $as_test_x conftest$ac_exeext; then
9813 ac_cv_lib_dl_dlopen=yes
9815 echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.$ac_ext >&5
9818 ac_cv_lib_dl_dlopen=no
9821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9822 conftest$ac_exeext conftest.$ac_ext
9823 LIBS=$ac_check_lib_save_LIBS
9825 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9826 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9827 if test $ac_cv_lib_dl_dlopen = yes; then
9828 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9830 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9831 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9832 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 ac_check_lib_save_LIBS=$LIBS
9837 cat >conftest.$ac_ext <<_ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9844 /* Override any GCC internal prototype to avoid an error.
9845 Use char because int might match the return type of a GCC
9846 builtin and then its argument prototype would still apply. */
9859 rm -f conftest.$ac_objext conftest$ac_exeext
9860 if { (ac_try="$ac_link"
9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866 (eval "$ac_link") 2>conftest.er1
9868 grep -v '^ *+' conftest.er1 >conftest.err
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } && {
9873 test -z "$ac_c_werror_flag" ||
9874 test ! -s conftest.err
9875 } && test -s conftest$ac_exeext &&
9876 $as_test_x conftest$ac_exeext; then
9877 ac_cv_lib_svld_dlopen=yes
9879 echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9882 ac_cv_lib_svld_dlopen=no
9885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9886 conftest$ac_exeext conftest.$ac_ext
9887 LIBS=$ac_check_lib_save_LIBS
9889 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9890 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9891 if test $ac_cv_lib_svld_dlopen = yes; then
9892 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9894 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9895 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9896 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 ac_check_lib_save_LIBS=$LIBS
9901 cat >conftest.$ac_ext <<_ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9908 /* Override any GCC internal prototype to avoid an error.
9909 Use char because int might match the return type of a GCC
9910 builtin and then its argument prototype would still apply. */
9923 rm -f conftest.$ac_objext conftest$ac_exeext
9924 if { (ac_try="$ac_link"
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_link") 2>conftest.er1
9932 grep -v '^ *+' conftest.er1 >conftest.err
9934 cat conftest.err >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } && {
9937 test -z "$ac_c_werror_flag" ||
9938 test ! -s conftest.err
9939 } && test -s conftest$ac_exeext &&
9940 $as_test_x conftest$ac_exeext; then
9941 ac_cv_lib_dld_dld_link=yes
9943 echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.$ac_ext >&5
9946 ac_cv_lib_dld_dld_link=no
9949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9950 conftest$ac_exeext conftest.$ac_ext
9951 LIBS=$ac_check_lib_save_LIBS
9953 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9954 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9955 if test $ac_cv_lib_dld_dld_link = yes; then
9956 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9977 if test "x$lt_cv_dlopen" != xno; then
9983 case $lt_cv_dlopen in
9985 save_CPPFLAGS="$CPPFLAGS"
9986 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9988 save_LDFLAGS="$LDFLAGS"
9989 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9992 LIBS="$lt_cv_dlopen_libs $LIBS"
9994 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9995 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9996 if test "${lt_cv_dlopen_self+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 if test "$cross_compiling" = yes; then :
10000 lt_cv_dlopen_self=cross
10002 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10003 lt_status=$lt_dlunknown
10004 cat > conftest.$ac_ext <<EOF
10005 #line 10005 "configure"
10006 #include "confdefs.h"
10015 # define LT_DLGLOBAL RTLD_GLOBAL
10018 # define LT_DLGLOBAL DL_GLOBAL
10020 # define LT_DLGLOBAL 0
10024 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10025 find out it does not work in some platform. */
10026 #ifndef LT_DLLAZY_OR_NOW
10028 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10031 # define LT_DLLAZY_OR_NOW DL_LAZY
10034 # define LT_DLLAZY_OR_NOW RTLD_NOW
10037 # define LT_DLLAZY_OR_NOW DL_NOW
10039 # define LT_DLLAZY_OR_NOW 0
10047 extern "C" void exit (int);
10050 void fnord() { int i=42;}
10053 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10054 int status = $lt_dlunknown;
10058 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10059 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10060 /* dlclose (self); */
10068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10069 (eval $ac_link) 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10073 (./conftest; exit; ) >&5 2>/dev/null
10075 case x$lt_status in
10076 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10077 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10078 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10081 # compilation failed
10082 lt_cv_dlopen_self=no
10089 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10090 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10092 if test "x$lt_cv_dlopen_self" = xyes; then
10093 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10094 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10095 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10096 if test "${lt_cv_dlopen_self_static+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10099 if test "$cross_compiling" = yes; then :
10100 lt_cv_dlopen_self_static=cross
10102 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10103 lt_status=$lt_dlunknown
10104 cat > conftest.$ac_ext <<EOF
10105 #line 10105 "configure"
10106 #include "confdefs.h"
10115 # define LT_DLGLOBAL RTLD_GLOBAL
10118 # define LT_DLGLOBAL DL_GLOBAL
10120 # define LT_DLGLOBAL 0
10124 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10125 find out it does not work in some platform. */
10126 #ifndef LT_DLLAZY_OR_NOW
10128 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10131 # define LT_DLLAZY_OR_NOW DL_LAZY
10134 # define LT_DLLAZY_OR_NOW RTLD_NOW
10137 # define LT_DLLAZY_OR_NOW DL_NOW
10139 # define LT_DLLAZY_OR_NOW 0
10147 extern "C" void exit (int);
10150 void fnord() { int i=42;}
10153 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10154 int status = $lt_dlunknown;
10158 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10159 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10160 /* dlclose (self); */
10168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10169 (eval $ac_link) 2>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10173 (./conftest; exit; ) >&5 2>/dev/null
10175 case x$lt_status in
10176 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10177 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10178 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10181 # compilation failed
10182 lt_cv_dlopen_self_static=no
10189 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10190 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10193 CPPFLAGS="$save_CPPFLAGS"
10194 LDFLAGS="$save_LDFLAGS"
10199 case $lt_cv_dlopen_self in
10200 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10201 *) enable_dlopen_self=unknown ;;
10204 case $lt_cv_dlopen_self_static in
10205 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10206 *) enable_dlopen_self_static=unknown ;;
10211 # Report which library types will actually be built
10212 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10213 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10214 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10215 echo "${ECHO_T}$can_build_shared" >&6; }
10217 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10218 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10219 test "$can_build_shared" = "no" && enable_shared=no
10221 # On AIX, shared libraries and static libraries use the same namespace, and
10222 # are all built from PIC.
10225 test "$enable_shared" = yes && enable_static=no
10226 if test -n "$RANLIB"; then
10227 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10228 postinstall_cmds='$RANLIB $lib'
10233 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10234 test "$enable_shared" = yes && enable_static=no
10238 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10239 echo "${ECHO_T}$enable_shared" >&6; }
10241 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10242 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10243 # Make sure either enable_shared or enable_static is yes.
10244 test "$enable_shared" = yes || enable_static=yes
10245 { echo "$as_me:$LINENO: result: $enable_static" >&5
10246 echo "${ECHO_T}$enable_static" >&6; }
10248 # The else clause should only fire when bootstrapping the
10249 # libtool distribution, otherwise you forgot to ship ltmain.sh
10250 # with your package, and you will get complaints that there are
10251 # no rules to generate ltmain.sh.
10252 if test -f "$ltmain"; then
10253 # See if we are running on zsh, and set the options which allow our commands through
10254 # without removal of \ escapes.
10255 if test -n "${ZSH_VERSION+set}" ; then
10256 setopt NO_GLOB_SUBST
10258 # Now quote all the things that may contain metacharacters while being
10259 # careful not to overquote the AC_SUBSTed values. We take copies of the
10260 # variables and quote the copies for generation of the libtool script.
10261 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10263 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10264 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10265 deplibs_check_method reload_flag reload_cmds need_locks \
10266 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10267 lt_cv_sys_global_symbol_to_c_name_address \
10268 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10269 old_postinstall_cmds old_postuninstall_cmds \
10273 lt_prog_compiler_wl \
10274 lt_prog_compiler_pic \
10275 lt_prog_compiler_static \
10276 lt_prog_compiler_no_builtin_flag \
10277 export_dynamic_flag_spec \
10278 thread_safe_flag_spec \
10279 whole_archive_flag_spec \
10280 enable_shared_with_static_runtimes \
10282 old_archive_from_new_cmds \
10287 compiler_lib_search_path \
10289 archive_expsym_cmds \
10291 postuninstall_cmds \
10292 old_archive_from_expsyms_cmds \
10293 allow_undefined_flag \
10294 no_undefined_flag \
10295 export_symbols_cmds \
10296 hardcode_libdir_flag_spec \
10297 hardcode_libdir_flag_spec_ld \
10298 hardcode_libdir_separator \
10299 hardcode_automatic \
10301 module_expsym_cmds \
10302 lt_cv_prog_compiler_c_o \
10304 include_expsyms; do
10307 old_archive_cmds | \
10308 old_archive_from_new_cmds | \
10310 archive_expsym_cmds | \
10312 module_expsym_cmds | \
10313 old_archive_from_expsyms_cmds | \
10314 export_symbols_cmds | \
10315 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10316 postinstall_cmds | postuninstall_cmds | \
10317 old_postinstall_cmds | old_postuninstall_cmds | \
10318 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10319 # Double-quote double-evaled strings.
10320 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10323 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10329 *'\$0 --fallback-echo"')
10330 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10334 cfgfile="${ofile}T"
10335 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10337 { echo "$as_me:$LINENO: creating $ofile" >&5
10338 echo "$as_me: creating $ofile" >&6;}
10340 cat <<__EOF__ >> "$cfgfile"
10343 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10344 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10345 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10347 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10348 # Free Software Foundation, Inc.
10350 # This file is part of GNU Libtool:
10351 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10353 # This program is free software; you can redistribute it and/or modify
10354 # it under the terms of the GNU General Public License as published by
10355 # the Free Software Foundation; either version 2 of the License, or
10356 # (at your option) any later version.
10358 # This program is distributed in the hope that it will be useful, but
10359 # WITHOUT ANY WARRANTY; without even the implied warranty of
10360 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10361 # General Public License for more details.
10363 # You should have received a copy of the GNU General Public License
10364 # along with this program; if not, write to the Free Software
10365 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10367 # As a special exception to the GNU General Public License, if you
10368 # distribute this file as part of a program that contains a
10369 # configuration script generated by Autoconf, you may include it under
10370 # the same distribution terms that you use for the rest of that program.
10372 # A sed program that does not truncate output.
10375 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10376 Xsed="$SED -e 1s/^X//"
10378 # The HP-UX ksh and POSIX shell print the target directory to stdout
10379 # if CDPATH is set.
10380 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10382 # The names of the tagged configurations supported by this script.
10385 # ### BEGIN LIBTOOL CONFIG
10387 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10389 # Shell to use when invoking shell scripts.
10392 # Whether or not to build shared libraries.
10393 build_libtool_libs=$enable_shared
10395 # Whether or not to build static libraries.
10396 build_old_libs=$enable_static
10398 # Whether or not to add -lc for building shared libraries.
10399 build_libtool_need_lc=$archive_cmds_need_lc
10401 # Whether or not to disallow shared libs when runtime libs are static
10402 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10404 # Whether or not to optimize for fast installation.
10405 fast_install=$enable_fast_install
10408 host_alias=$host_alias
10412 # The build system.
10413 build_alias=$build_alias
10417 # An echo program that does not interpret backslashes.
10422 AR_FLAGS=$lt_AR_FLAGS
10427 # LTCC compiler flags.
10428 LTCFLAGS=$lt_LTCFLAGS
10430 # A language-specific compiler.
10433 # Is the compiler the GNU C compiler?
10439 # The linker used to build libraries.
10442 # Whether we need hard or soft links.
10445 # A BSD-compatible nm program.
10448 # A symbol stripping program
10451 # Used to examine libraries when file_magic_cmd begins "file"
10452 MAGIC_CMD=$MAGIC_CMD
10454 # Used on cygwin: DLL creation program.
10457 # Used on cygwin: object dumper.
10460 # Used on cygwin: assembler.
10463 # The name of the directory that contains temporary libtool files.
10466 # How to create reloadable object files.
10467 reload_flag=$lt_reload_flag
10468 reload_cmds=$lt_reload_cmds
10470 # How to pass a linker flag through the compiler.
10471 wl=$lt_lt_prog_compiler_wl
10473 # Object file suffix (normally "o").
10474 objext="$ac_objext"
10476 # Old archive suffix (normally "a").
10479 # Shared library suffix (normally ".so").
10480 shrext_cmds='$shrext_cmds'
10482 # Executable file suffix (normally "").
10485 # Additional compiler flags for building library objects.
10486 pic_flag=$lt_lt_prog_compiler_pic
10489 # What is the maximum length of a command?
10490 max_cmd_len=$lt_cv_sys_max_cmd_len
10492 # Does compiler simultaneously support -c and -o options?
10493 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10495 # Must we lock files when doing compilation?
10496 need_locks=$lt_need_locks
10498 # Do we need the lib prefix for modules?
10499 need_lib_prefix=$need_lib_prefix
10501 # Do we need a version for libraries?
10502 need_version=$need_version
10504 # Whether dlopen is supported.
10505 dlopen_support=$enable_dlopen
10507 # Whether dlopen of programs is supported.
10508 dlopen_self=$enable_dlopen_self
10510 # Whether dlopen of statically linked programs is supported.
10511 dlopen_self_static=$enable_dlopen_self_static
10513 # Compiler flag to prevent dynamic linking.
10514 link_static_flag=$lt_lt_prog_compiler_static
10516 # Compiler flag to turn off builtin functions.
10517 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10519 # Compiler flag to allow reflexive dlopens.
10520 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10522 # Compiler flag to generate shared objects directly from archives.
10523 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10525 # Compiler flag to generate thread-safe objects.
10526 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10528 # Library versioning type.
10529 version_type=$version_type
10531 # Format of library name prefix.
10532 libname_spec=$lt_libname_spec
10534 # List of archive names. First name is the real one, the rest are links.
10535 # The last name is the one that the linker finds with -lNAME.
10536 library_names_spec=$lt_library_names_spec
10538 # The coded name of the library, if different from the real name.
10539 soname_spec=$lt_soname_spec
10541 # Commands used to build and install an old-style archive.
10543 old_archive_cmds=$lt_old_archive_cmds
10544 old_postinstall_cmds=$lt_old_postinstall_cmds
10545 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10547 # Create an old-style archive from a shared archive.
10548 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10550 # Create a temporary old-style archive to link instead of a shared archive.
10551 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10553 # Commands used to build and install a shared archive.
10554 archive_cmds=$lt_archive_cmds
10555 archive_expsym_cmds=$lt_archive_expsym_cmds
10556 postinstall_cmds=$lt_postinstall_cmds
10557 postuninstall_cmds=$lt_postuninstall_cmds
10559 # Commands used to build a loadable module (assumed same as above if empty)
10560 module_cmds=$lt_module_cmds
10561 module_expsym_cmds=$lt_module_expsym_cmds
10563 # Commands to strip libraries.
10564 old_striplib=$lt_old_striplib
10565 striplib=$lt_striplib
10567 # Dependencies to place before the objects being linked to create a
10569 predep_objects=$lt_predep_objects
10571 # Dependencies to place after the objects being linked to create a
10573 postdep_objects=$lt_postdep_objects
10575 # Dependencies to place before the objects being linked to create a
10577 predeps=$lt_predeps
10579 # Dependencies to place after the objects being linked to create a
10581 postdeps=$lt_postdeps
10583 # The library search path used internally by the compiler when linking
10584 # a shared library.
10585 compiler_lib_search_path=$lt_compiler_lib_search_path
10587 # Method to check whether dependent libraries are shared objects.
10588 deplibs_check_method=$lt_deplibs_check_method
10590 # Command to use when deplibs_check_method == file_magic.
10591 file_magic_cmd=$lt_file_magic_cmd
10593 # Flag that allows shared libraries with undefined symbols to be built.
10594 allow_undefined_flag=$lt_allow_undefined_flag
10596 # Flag that forces no undefined symbols.
10597 no_undefined_flag=$lt_no_undefined_flag
10599 # Commands used to finish a libtool library installation in a directory.
10600 finish_cmds=$lt_finish_cmds
10602 # Same as above, but a single script fragment to be evaled but not shown.
10603 finish_eval=$lt_finish_eval
10605 # Take the output of nm and produce a listing of raw symbols and C names.
10606 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10608 # Transform the output of nm in a proper C declaration
10609 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10611 # Transform the output of nm in a C name address pair
10612 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10614 # This is the shared library runtime path variable.
10615 runpath_var=$runpath_var
10617 # This is the shared library path variable.
10618 shlibpath_var=$shlibpath_var
10620 # Is shlibpath searched before the hard-coded library search path?
10621 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10623 # How to hardcode a shared library path into an executable.
10624 hardcode_action=$hardcode_action
10626 # Whether we should hardcode library paths into libraries.
10627 hardcode_into_libs=$hardcode_into_libs
10629 # Flag to hardcode \$libdir into a binary during linking.
10630 # This must work even if \$libdir does not exist.
10631 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10633 # If ld is used when linking, flag to hardcode \$libdir into
10634 # a binary during linking. This must work even if \$libdir does
10636 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10638 # Whether we need a single -rpath flag with a separated argument.
10639 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10641 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10642 # resulting binary.
10643 hardcode_direct=$hardcode_direct
10645 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10646 # resulting binary.
10647 hardcode_minus_L=$hardcode_minus_L
10649 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10650 # the resulting binary.
10651 hardcode_shlibpath_var=$hardcode_shlibpath_var
10653 # Set to yes if building a shared library automatically hardcodes DIR into the library
10654 # and all subsequent libraries and executables linked against it.
10655 hardcode_automatic=$hardcode_automatic
10657 # Variables whose values should be saved in libtool wrapper scripts and
10658 # restored at relink time.
10659 variables_saved_for_relink="$variables_saved_for_relink"
10661 # Whether libtool must link a program against all its dependency libraries.
10662 link_all_deplibs=$link_all_deplibs
10664 # Compile-time system search path for libraries
10665 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10667 # Run-time system search path for libraries
10668 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10670 # Fix the shell variable \$srcfile for the compiler.
10671 fix_srcfile_path="$fix_srcfile_path"
10673 # Set to yes if exported symbols are required.
10674 always_export_symbols=$always_export_symbols
10676 # The commands to list exported symbols.
10677 export_symbols_cmds=$lt_export_symbols_cmds
10679 # The commands to extract the exported symbol list from a shared archive.
10680 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10682 # Symbols that should not be listed in the preloaded symbols.
10683 exclude_expsyms=$lt_exclude_expsyms
10685 # Symbols that must always be exported.
10686 include_expsyms=$lt_include_expsyms
10688 # ### END LIBTOOL CONFIG
10695 cat <<\EOF >> "$cfgfile"
10697 # AIX sometimes has problems with the GCC collect2 program. For some
10698 # reason, if we set the COLLECT_NAMES environment variable, the problems
10699 # vanish in a puff of smoke.
10700 if test "X${COLLECT_NAMES+set}" != Xset; then
10702 export COLLECT_NAMES
10708 # We use sed instead of cat because bash on DJGPP gets confused if
10709 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10710 # text mode, it properly converts lines to CR/LF. This bash problem
10711 # is reportedly fixed, but why not run on old versions too?
10712 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10714 mv -f "$cfgfile" "$ofile" || \
10715 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10719 # If there is no Makefile yet, we rely on a make rule to execute
10720 # `config.status --recheck' to rerun these tests and create the
10721 # libtool script then.
10722 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10723 if test -f "$ltmain_in"; then
10724 test -f Makefile && make "$ltmain"
10730 ac_cpp='$CPP $CPPFLAGS'
10731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10738 # Check whether --with-tags was given.
10739 if test "${with_tags+set}" = set; then
10740 withval=$with_tags; tagnames="$withval"
10744 if test -f "$ltmain" && test -n "$tagnames"; then
10745 if test ! -f "${ofile}"; then
10746 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10747 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10750 if test -z "$LTCC"; then
10751 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10752 if test -z "$LTCC"; then
10753 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10754 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10756 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10757 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10760 if test -z "$LTCFLAGS"; then
10761 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10764 # Extract list of available tagged configurations in $ofile.
10765 # Note that this assumes the entire list is on one line.
10766 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10768 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10769 for tagname in $tagnames; do
10771 # Check whether tagname contains only valid characters
10772 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10774 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10775 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10776 { (exit 1); exit 1; }; }
10780 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10782 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10783 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10784 { (exit 1); exit 1; }; }
10787 # Update the list of available tags.
10788 if test -n "$tagname"; then
10789 echo appending configuration tag \"$tagname\" to $ofile
10793 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10794 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10795 (test "X$CXX" != "Xg++"))) ; then
10797 ac_cpp='$CXXCPP $CPPFLAGS'
10798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10805 archive_cmds_need_lc_CXX=no
10806 allow_undefined_flag_CXX=
10807 always_export_symbols_CXX=no
10808 archive_expsym_cmds_CXX=
10809 export_dynamic_flag_spec_CXX=
10810 hardcode_direct_CXX=no
10811 hardcode_libdir_flag_spec_CXX=
10812 hardcode_libdir_flag_spec_ld_CXX=
10813 hardcode_libdir_separator_CXX=
10814 hardcode_minus_L_CXX=no
10815 hardcode_shlibpath_var_CXX=unsupported
10816 hardcode_automatic_CXX=no
10818 module_expsym_cmds_CXX=
10819 link_all_deplibs_CXX=unknown
10820 old_archive_cmds_CXX=$old_archive_cmds
10821 no_undefined_flag_CXX=
10822 whole_archive_flag_spec_CXX=
10823 enable_shared_with_static_runtimes_CXX=no
10825 # Dependencies to place before and after the object being linked:
10826 predep_objects_CXX=
10827 postdep_objects_CXX=
10830 compiler_lib_search_path_CXX=
10832 # Source file extension for C++ test sources.
10835 # Object file extension for compiled C++ test sources.
10839 # Code to be used in simple compile tests
10840 lt_simple_compile_test_code="int some_variable = 0;\n"
10842 # Code to be used in simple link tests
10843 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10845 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10847 # If no C compiler was specified, use CC.
10850 # If no C compiler flags were specified, use CFLAGS.
10851 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10853 # Allow CC to be a program name with arguments.
10857 # save warnings/boilerplate of simple test code
10858 ac_outfile=conftest.$ac_objext
10859 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10860 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10861 _lt_compiler_boilerplate=`cat conftest.err`
10864 ac_outfile=conftest.$ac_objext
10865 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10866 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10867 _lt_linker_boilerplate=`cat conftest.err`
10871 # Allow CC to be a program name with arguments.
10876 lt_save_with_gnu_ld=$with_gnu_ld
10877 lt_save_path_LD=$lt_cv_path_LD
10878 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10879 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10881 $as_unset lt_cv_prog_gnu_ld
10883 if test -n "${lt_cv_path_LDCXX+set}"; then
10884 lt_cv_path_LD=$lt_cv_path_LDCXX
10886 $as_unset lt_cv_path_LD
10888 test -z "${LDCXX+set}" || LD=$LDCXX
10892 for cc_temp in $compiler""; do
10894 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10895 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10900 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10903 # We don't want -fno-exception wen compiling C++ code, so set the
10904 # no_builtin_flag separately
10905 if test "$GXX" = yes; then
10906 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10908 lt_prog_compiler_no_builtin_flag_CXX=
10911 if test "$GXX" = yes; then
10912 # Set up default GNU C++ configuration
10915 # Check whether --with-gnu-ld was given.
10916 if test "${with_gnu_ld+set}" = set; then
10917 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10923 if test "$GCC" = yes; then
10924 # Check if gcc -print-prog-name=ld gives a path.
10925 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10926 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10929 # gcc leaves a trailing carriage return which upsets mingw
10930 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10932 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10935 # Accept absolute paths.
10937 re_direlt='/[^/][^/]*/\.\./'
10938 # Canonicalize the pathname of ld
10939 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10940 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10941 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10943 test -z "$LD" && LD="$ac_prog"
10946 # If it fails, then pretend we aren't using GCC.
10950 # If it is relative, then search for the first ld in PATH.
10951 with_gnu_ld=unknown
10954 elif test "$with_gnu_ld" = yes; then
10955 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10956 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10958 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10959 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10961 if test "${lt_cv_path_LD+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10964 if test -z "$LD"; then
10965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10966 for ac_dir in $PATH; do
10968 test -z "$ac_dir" && ac_dir=.
10969 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10970 lt_cv_path_LD="$ac_dir/$ac_prog"
10971 # Check to see if the program is GNU ld. I'd rather use --version,
10972 # but apparently some variants of GNU ld only accept -v.
10973 # Break only if it was the GNU/non-GNU ld that we prefer.
10974 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10975 *GNU* | *'with BFD'*)
10976 test "$with_gnu_ld" != no && break
10979 test "$with_gnu_ld" != yes && break
10986 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10990 LD="$lt_cv_path_LD"
10991 if test -n "$LD"; then
10992 { echo "$as_me:$LINENO: result: $LD" >&5
10993 echo "${ECHO_T}$LD" >&6; }
10995 { echo "$as_me:$LINENO: result: no" >&5
10996 echo "${ECHO_T}no" >&6; }
10998 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10999 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11000 { (exit 1); exit 1; }; }
11001 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11002 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11003 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11007 case `$LD -v 2>&1 </dev/null` in
11008 *GNU* | *'with BFD'*)
11009 lt_cv_prog_gnu_ld=yes
11012 lt_cv_prog_gnu_ld=no
11016 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11017 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11018 with_gnu_ld=$lt_cv_prog_gnu_ld
11022 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11023 # archiving commands below assume that GNU ld is being used.
11024 if test "$with_gnu_ld" = yes; then
11025 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11026 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'
11028 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11029 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11031 # If archive_cmds runs LD, not CC, wlarc should be empty
11032 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11033 # investigate it a little bit more. (MM)
11036 # ancient GNU ld didn't support --whole-archive et. al.
11037 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11038 grep 'no-whole-archive' > /dev/null; then
11039 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11041 whole_archive_flag_spec_CXX=
11047 # A generic and very simple default shared library creation
11048 # command for GNU C++ for the case where it uses the native
11049 # linker, instead of GNU ld. If possible, this setting should
11050 # overridden to take advantage of the native linker features on
11051 # the platform it is being used on.
11052 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11055 # Commands to make compiler produce verbose output that lists
11056 # what "hidden" libraries, object files and flags are used when
11057 # linking a shared library.
11058 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11066 # PORTME: fill in a description of your system's C++ link characteristics
11067 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11068 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11072 # FIXME: insert proper C++ library support
11076 if test "$host_cpu" = ia64; then
11077 # On IA64, the linker does run time linking by default, so we don't
11078 # have to do anything special.
11079 aix_use_runtimelinking=no
11080 exp_sym_flag='-Bexport'
11083 aix_use_runtimelinking=no
11085 # Test if we are trying to use run time linking or normal
11086 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11087 # need to do runtime linking.
11088 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11089 for ld_flag in $LDFLAGS; do
11092 aix_use_runtimelinking=yes
11100 exp_sym_flag='-bexport'
11101 no_entry_flag='-bnoentry'
11104 # When large executables or shared objects are built, AIX ld can
11105 # have problems creating the table of contents. If linking a library
11106 # or program results in "error TOC overflow" add -mminimal-toc to
11107 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11108 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11110 archive_cmds_CXX=''
11111 hardcode_direct_CXX=yes
11112 hardcode_libdir_separator_CXX=':'
11113 link_all_deplibs_CXX=yes
11115 if test "$GXX" = yes; then
11116 case $host_os in aix4.[012]|aix4.[012].*)
11117 # We only want to do this on AIX 4.2 and lower, the check
11118 # below for broken collect2 doesn't work under 4.3+
11119 collect2name=`${CC} -print-prog-name=collect2`
11120 if test -f "$collect2name" && \
11121 strings "$collect2name" | grep resolve_lib_name >/dev/null
11123 # We have reworked collect2
11124 hardcode_direct_CXX=yes
11126 # We have old collect2
11127 hardcode_direct_CXX=unsupported
11128 # It fails to find uninstalled libraries when the uninstalled
11129 # path is not listed in the libpath. Setting hardcode_minus_L
11130 # to unsupported forces relinking
11131 hardcode_minus_L_CXX=yes
11132 hardcode_libdir_flag_spec_CXX='-L$libdir'
11133 hardcode_libdir_separator_CXX=
11137 shared_flag='-shared'
11138 if test "$aix_use_runtimelinking" = yes; then
11139 shared_flag="$shared_flag "'${wl}-G'
11143 if test "$host_cpu" = ia64; then
11144 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11145 # chokes on -Wl,-G. The following line is correct:
11148 if test "$aix_use_runtimelinking" = yes; then
11149 shared_flag='${wl}-G'
11151 shared_flag='${wl}-bM:SRE'
11156 # It seems that -bexpall does not export symbols beginning with
11157 # underscore (_), so it is better to generate a list of symbols to export.
11158 always_export_symbols_CXX=yes
11159 if test "$aix_use_runtimelinking" = yes; then
11160 # Warning - without using the other runtime loading flags (-brtl),
11161 # -berok will link without error, but may produce a broken library.
11162 allow_undefined_flag_CXX='-berok'
11163 # Determine the default libpath from the value encoded in an empty executable.
11164 cat >conftest.$ac_ext <<_ACEOF
11167 cat confdefs.h >>conftest.$ac_ext
11168 cat >>conftest.$ac_ext <<_ACEOF
11169 /* end confdefs.h. */
11179 rm -f conftest.$ac_objext conftest$ac_exeext
11180 if { (ac_try="$ac_link"
11181 case "(($ac_try" in
11182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183 *) ac_try_echo=$ac_try;;
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186 (eval "$ac_link") 2>conftest.er1
11188 grep -v '^ *+' conftest.er1 >conftest.err
11190 cat conftest.err >&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); } && {
11193 test -z "$ac_cxx_werror_flag" ||
11194 test ! -s conftest.err
11195 } && test -s conftest$ac_exeext &&
11196 $as_test_x conftest$ac_exeext; then
11198 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11200 # Check for a 64-bit object if we didn't find anything.
11201 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; }
11204 echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11211 conftest$ac_exeext conftest.$ac_ext
11212 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11214 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11216 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"
11218 if test "$host_cpu" = ia64; then
11219 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11220 allow_undefined_flag_CXX="-z nodefs"
11221 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"
11223 # Determine the default libpath from the value encoded in an empty executable.
11224 cat >conftest.$ac_ext <<_ACEOF
11227 cat confdefs.h >>conftest.$ac_ext
11228 cat >>conftest.$ac_ext <<_ACEOF
11229 /* end confdefs.h. */
11239 rm -f conftest.$ac_objext conftest$ac_exeext
11240 if { (ac_try="$ac_link"
11241 case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11246 (eval "$ac_link") 2>conftest.er1
11248 grep -v '^ *+' conftest.er1 >conftest.err
11250 cat conftest.err >&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } && {
11253 test -z "$ac_cxx_werror_flag" ||
11254 test ! -s conftest.err
11255 } && test -s conftest$ac_exeext &&
11256 $as_test_x conftest$ac_exeext; then
11258 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11260 # Check for a 64-bit object if we didn't find anything.
11261 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; }
11264 echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.$ac_ext >&5
11270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11271 conftest$ac_exeext conftest.$ac_ext
11272 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11274 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11275 # Warning - without using the other run time loading flags,
11276 # -berok will link without error, but may produce a broken library.
11277 no_undefined_flag_CXX=' ${wl}-bernotok'
11278 allow_undefined_flag_CXX=' ${wl}-berok'
11279 # Exported symbols can be pulled into shared objects from archives
11280 whole_archive_flag_spec_CXX='$convenience'
11281 archive_cmds_need_lc_CXX=yes
11282 # This is similar to how AIX traditionally builds its shared libraries.
11283 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'
11289 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11290 allow_undefined_flag_CXX=unsupported
11291 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11292 # support --undefined. This deserves some investigation. FIXME
11293 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11300 case $cc_basename in
11302 # FIXME: insert proper C++ library support
11308 cygwin* | mingw* | pw32*)
11309 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11310 # as there is no search path for DLLs.
11311 hardcode_libdir_flag_spec_CXX='-L$libdir'
11312 allow_undefined_flag_CXX=unsupported
11313 always_export_symbols_CXX=no
11314 enable_shared_with_static_runtimes_CXX=yes
11316 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11317 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'
11318 # If the export-symbols file already is a .def file (1st line
11319 # is EXPORTS), use it as is; otherwise, prepend...
11320 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11321 cp $export_symbols $output_objdir/$soname.def;
11323 echo EXPORTS > $output_objdir/$soname.def;
11324 cat $export_symbols >> $output_objdir/$soname.def;
11326 $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'
11331 darwin* | rhapsody*)
11333 rhapsody* | darwin1.[012])
11334 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11337 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11338 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11340 case ${MACOSX_DEPLOYMENT_TARGET} in
11342 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11345 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11351 archive_cmds_need_lc_CXX=no
11352 hardcode_direct_CXX=no
11353 hardcode_automatic_CXX=yes
11354 hardcode_shlibpath_var_CXX=unsupported
11355 whole_archive_flag_spec_CXX=''
11356 link_all_deplibs_CXX=yes
11358 if test "$GXX" = yes ; then
11359 lt_int_apple_cc_single_mod=no
11360 output_verbose_link_cmd='echo'
11361 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11362 lt_int_apple_cc_single_mod=yes
11364 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11365 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11367 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'
11369 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11370 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11371 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11372 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}'
11374 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}'
11376 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}'
11378 case $cc_basename in
11380 output_verbose_link_cmd='echo'
11381 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'
11382 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11383 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11384 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}'
11385 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}'
11395 case $cc_basename in
11397 # FIXME: insert proper C++ library support
11401 # Green Hills C++ Compiler
11402 # FIXME: insert proper C++ library support
11406 # FIXME: insert proper C++ library support
11412 # C++ shared libraries reported to be fairly broken before switch to ELF
11416 archive_cmds_need_lc_CXX=no
11418 freebsd* | kfreebsd*-gnu | dragonfly*)
11419 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11426 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11427 hardcode_libdir_separator_CXX=:
11428 export_dynamic_flag_spec_CXX='${wl}-E'
11429 hardcode_direct_CXX=yes
11430 hardcode_minus_L_CXX=yes # Not in the search PATH,
11431 # but as the default
11432 # location of the library.
11434 case $cc_basename in
11436 # FIXME: insert proper C++ library support
11440 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'
11441 # Commands to make compiler produce verbose output that lists
11442 # what "hidden" libraries, object files and flags are used when
11443 # linking a shared library.
11445 # There doesn't appear to be a way to prevent this compiler from
11446 # explicitly linking system object files so we need to strip them
11447 # from the output so that they don't get included in the library
11449 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'
11452 if test "$GXX" = yes; then
11453 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'
11455 # FIXME: insert proper C++ library support
11462 if test $with_gnu_ld = no; then
11463 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11464 hardcode_libdir_separator_CXX=:
11468 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11471 export_dynamic_flag_spec_CXX='${wl}-E'
11477 hardcode_direct_CXX=no
11478 hardcode_shlibpath_var_CXX=no
11481 hardcode_direct_CXX=yes
11482 hardcode_minus_L_CXX=yes # Not in the search PATH,
11483 # but as the default
11484 # location of the library.
11488 case $cc_basename in
11490 # FIXME: insert proper C++ library support
11496 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11499 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11502 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11505 # Commands to make compiler produce verbose output that lists
11506 # what "hidden" libraries, object files and flags are used when
11507 # linking a shared library.
11509 # There doesn't appear to be a way to prevent this compiler from
11510 # explicitly linking system object files so we need to strip them
11511 # from the output so that they don't get included in the library
11513 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'
11516 if test "$GXX" = yes; then
11517 if test $with_gnu_ld = no; then
11520 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11523 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11526 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'
11531 # FIXME: insert proper C++ library support
11538 hardcode_direct_CXX=no
11539 hardcode_shlibpath_var_CXX=no
11540 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11541 export_dynamic_flag_spec_CXX='${wl}-E'
11542 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11543 # Instead, shared libraries are loaded at an image base (0x10000000 by
11544 # default) and relocated if they conflict, which is a slow very memory
11545 # consuming and fragmenting process. To avoid this, we pick a random,
11546 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11547 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11548 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'
11549 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'
11552 case $cc_basename in
11555 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'
11557 # Archives containing C++ object files must be created using
11558 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11559 # necessary to make sure instantiated templates are included
11561 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11564 if test "$GXX" = yes; then
11565 if test "$with_gnu_ld" = no; then
11566 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'
11568 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'
11571 link_all_deplibs_CXX=yes
11574 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11575 hardcode_libdir_separator_CXX=:
11578 case $cc_basename in
11580 # Kuck and Associates, Inc. (KAI) C++ Compiler
11582 # KCC will only create a shared library if the output file
11583 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11584 # to its proper name (with version) after linking.
11585 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'
11586 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'
11587 # Commands to make compiler produce verbose output that lists
11588 # what "hidden" libraries, object files and flags are used when
11589 # linking a shared library.
11591 # There doesn't appear to be a way to prevent this compiler from
11592 # explicitly linking system object files so we need to strip them
11593 # from the output so that they don't get included in the library
11595 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'
11597 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11598 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11600 # Archives containing C++ object files must be created using
11601 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11602 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11607 # version 8.0 and above of icpc choke on multiply defined symbols
11608 # if we add $predep_objects and $postdep_objects, however 7.1 and
11609 # earlier do not add the objects themselves.
11610 case `$CC -V 2>&1` in
11612 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11613 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'
11615 *) # Version 8.0 or newer
11618 ia64*) tmp_idyn=' -i_dynamic';;
11620 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11621 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'
11624 archive_cmds_need_lc_CXX=no
11625 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11626 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11627 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11630 # Portland Group C++ compiler
11631 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11632 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'
11634 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11635 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11636 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'
11640 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11641 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'
11643 runpath_var=LD_RUN_PATH
11644 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11645 hardcode_libdir_separator_CXX=:
11647 # Commands to make compiler produce verbose output that lists
11648 # what "hidden" libraries, object files and flags are used when
11649 # linking a shared library.
11651 # There doesn't appear to be a way to prevent this compiler from
11652 # explicitly linking system object files so we need to strip them
11653 # from the output so that they don't get included in the library
11655 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'
11660 # FIXME: insert proper C++ library support
11664 # FIXME: insert proper C++ library support
11668 case $cc_basename in
11670 # FIXME: insert proper C++ library support
11674 # FIXME: insert proper C++ library support
11680 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11681 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11683 hardcode_libdir_flag_spec_CXX='-R$libdir'
11684 hardcode_direct_CXX=yes
11685 hardcode_shlibpath_var_CXX=no
11687 # Workaround some broken pre-1.5 toolchains
11688 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11691 # C++ shared libraries are fairly broken
11695 hardcode_direct_CXX=yes
11696 hardcode_shlibpath_var_CXX=no
11697 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11698 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11699 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11700 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11701 export_dynamic_flag_spec_CXX='${wl}-E'
11702 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11704 output_verbose_link_cmd='echo'
11707 case $cc_basename in
11709 # Kuck and Associates, Inc. (KAI) C++ Compiler
11711 # KCC will only create a shared library if the output file
11712 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11713 # to its proper name (with version) after linking.
11714 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'
11716 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11717 hardcode_libdir_separator_CXX=:
11719 # Archives containing C++ object files must be created using
11720 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11721 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11725 # Rational C++ 2.4.1
11726 # FIXME: insert proper C++ library support
11730 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11731 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'
11733 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11734 hardcode_libdir_separator_CXX=:
11736 # Commands to make compiler produce verbose output that lists
11737 # what "hidden" libraries, object files and flags are used when
11738 # linking a shared library.
11740 # There doesn't appear to be a way to prevent this compiler from
11741 # explicitly linking system object files so we need to strip them
11742 # from the output so that they don't get included in the library
11744 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'
11747 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11748 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11749 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'
11751 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11752 hardcode_libdir_separator_CXX=:
11754 # Commands to make compiler produce verbose output that lists
11755 # what "hidden" libraries, object files and flags are used when
11756 # linking a shared library.
11757 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11760 # FIXME: insert proper C++ library support
11767 case $cc_basename in
11769 # Kuck and Associates, Inc. (KAI) C++ Compiler
11771 # KCC will only create a shared library if the output file
11772 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11773 # to its proper name (with version) after linking.
11774 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'
11776 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11777 hardcode_libdir_separator_CXX=:
11779 # Archives containing C++ object files must be created using
11780 # the KAI C++ compiler.
11781 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11784 # Rational C++ 2.4.1
11785 # FIXME: insert proper C++ library support
11789 allow_undefined_flag_CXX=' -expect_unresolved \*'
11790 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'
11791 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11792 echo "-hidden">> $lib.exp~
11793 $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~
11796 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11797 hardcode_libdir_separator_CXX=:
11799 # Commands to make compiler produce verbose output that lists
11800 # what "hidden" libraries, object files and flags are used when
11801 # linking a shared library.
11803 # There doesn't appear to be a way to prevent this compiler from
11804 # explicitly linking system object files so we need to strip them
11805 # from the output so that they don't get included in the library
11807 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'
11810 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11811 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11812 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'
11814 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11815 hardcode_libdir_separator_CXX=:
11817 # Commands to make compiler produce verbose output that lists
11818 # what "hidden" libraries, object files and flags are used when
11819 # linking a shared library.
11820 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11823 # FIXME: insert proper C++ library support
11830 # FIXME: insert proper C++ library support
11834 case $cc_basename in
11837 # FIXME: insert proper C++ library support
11842 # FIXME: insert proper C++ library support
11846 # FIXME: insert proper C++ library support
11852 case $cc_basename in
11854 # Sun C++ 4.2, 5.x and Centerline C++
11855 archive_cmds_need_lc_CXX=yes
11856 no_undefined_flag_CXX=' -zdefs'
11857 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11858 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11859 $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'
11861 hardcode_libdir_flag_spec_CXX='-R$libdir'
11862 hardcode_shlibpath_var_CXX=no
11864 solaris2.[0-5] | solaris2.[0-5].*) ;;
11866 # The C++ compiler is used as linker so we must use $wl
11867 # flag to pass the commands to the underlying system
11868 # linker. We must also pass each convience library through
11869 # to the system linker between allextract/defaultextract.
11870 # The C++ compiler will combine linker options so we
11871 # cannot just pass the convience library names through
11873 # Supported since Solaris 2.6 (maybe 2.5.1?)
11874 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'
11877 link_all_deplibs_CXX=yes
11879 output_verbose_link_cmd='echo'
11881 # Archives containing C++ object files must be created using
11882 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11883 # necessary to make sure instantiated templates are included
11885 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11888 # Green Hills C++ Compiler
11889 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11891 # The C++ compiler must be used to create the archive.
11892 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11895 # GNU C++ compiler with Solaris linker
11896 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11897 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11898 if $CC --version | grep -v '^2\.7' > /dev/null; then
11899 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11900 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11901 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11903 # Commands to make compiler produce verbose output that lists
11904 # what "hidden" libraries, object files and flags are used when
11905 # linking a shared library.
11906 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11908 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11910 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11911 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11912 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11914 # Commands to make compiler produce verbose output that lists
11915 # what "hidden" libraries, object files and flags are used when
11916 # linking a shared library.
11917 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11920 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11925 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11926 no_undefined_flag_CXX='${wl}-z,text'
11927 archive_cmds_need_lc_CXX=no
11928 hardcode_shlibpath_var_CXX=no
11929 runpath_var='LD_RUN_PATH'
11931 case $cc_basename in
11933 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11934 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11937 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11938 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11942 sysv5* | sco3.2v5* | sco5v6*)
11943 # Note: We can NOT use -z defs as we might desire, because we do not
11944 # link with -lc, and that would cause any symbols used from libc to
11945 # always be unresolved, which means just about no library would
11946 # ever link correctly. If we're not using GNU ld we use -z text
11947 # though, which does catch some bad symbols but isn't as heavy-handed
11949 # For security reasons, it is highly recommended that you always
11950 # use absolute paths for naming shared libraries, and exclude the
11951 # DT_RUNPATH tag from executables and libraries. But doing so
11952 # requires that you compile everything twice, which is a pain.
11953 # So that behaviour is only enabled if SCOABSPATH is set to a
11954 # non-empty value in the environment. Most likely only useful for
11955 # creating official distributions of packages.
11956 # This is a hack until libtool officially supports absolute path
11957 # names for shared libraries.
11958 no_undefined_flag_CXX='${wl}-z,text'
11959 allow_undefined_flag_CXX='${wl}-z,nodefs'
11960 archive_cmds_need_lc_CXX=no
11961 hardcode_shlibpath_var_CXX=no
11962 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11963 hardcode_libdir_separator_CXX=':'
11964 link_all_deplibs_CXX=yes
11965 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11966 runpath_var='LD_RUN_PATH'
11968 case $cc_basename in
11970 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11971 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11974 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11975 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11980 case $cc_basename in
11982 # NonStop-UX NCC 3.20
11983 # FIXME: insert proper C++ library support
11987 # FIXME: insert proper C++ library support
11993 # FIXME: insert proper C++ library support
11997 # FIXME: insert proper C++ library support
12001 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12002 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12003 test "$ld_shlibs_CXX" = no && can_build_shared=no
12009 ## There is no encapsulation within the following macros, do not change
12010 ## the running order or otherwise move them around unless you know exactly
12011 ## what you are doing...
12013 cat > conftest.$ac_ext <<EOF
12017 Foo (void) { a = 0; }
12023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12024 (eval $ac_compile) 2>&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; then
12028 # Parse the compiler output and extract the necessary
12029 # objects, libraries and library flags.
12031 # Sentinel used to keep track of whether or not we are before
12032 # the conftest object file.
12033 pre_test_object_deps_done=no
12035 # The `*' in the case matches for architectures that use `case' in
12036 # $output_verbose_cmd can trigger glob expansion during the loop
12037 # eval without this substitution.
12038 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12040 for p in `eval $output_verbose_link_cmd`; do
12044 # Some compilers place space between "-{L,R}" and the path.
12045 # Remove the space.
12046 if test $p = "-L" \
12047 || test $p = "-R"; then
12054 if test "$pre_test_object_deps_done" = no; then
12057 # Internal compiler library paths should come after those
12058 # provided the user. The postdeps already come after the
12059 # user supplied libs so there is no need to process them.
12060 if test -z "$compiler_lib_search_path_CXX"; then
12061 compiler_lib_search_path_CXX="${prev}${p}"
12063 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12066 # The "-l" case would never come before the object being
12067 # linked, so don't bother handling this case.
12070 if test -z "$postdeps_CXX"; then
12071 postdeps_CXX="${prev}${p}"
12073 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12079 # This assumes that the test object file only shows up
12080 # once in the compiler output.
12081 if test "$p" = "conftest.$objext"; then
12082 pre_test_object_deps_done=yes
12086 if test "$pre_test_object_deps_done" = no; then
12087 if test -z "$predep_objects_CXX"; then
12088 predep_objects_CXX="$p"
12090 predep_objects_CXX="$predep_objects_CXX $p"
12093 if test -z "$postdep_objects_CXX"; then
12094 postdep_objects_CXX="$p"
12096 postdep_objects_CXX="$postdep_objects_CXX $p"
12101 *) ;; # Ignore the rest.
12109 echo "libtool.m4: error: problem compiling CXX test program"
12112 $rm -f confest.$objext
12114 # PORTME: override above test on systems where it is broken
12117 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12118 # hack all around it, let's just trust "g++" to DTRT.
12119 predep_objects_CXX=
12120 postdep_objects_CXX=
12125 case $cc_basename in
12127 # Adding this requires a known-good setup of shared libraries for
12128 # Sun compiler versions before 5.6, else PIC objects from an old
12129 # archive will be linked into the output, leading to subtle bugs.
12130 postdeps_CXX='-lCstd -lCrun'
12137 case " $postdeps_CXX " in
12138 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12141 lt_prog_compiler_wl_CXX=
12142 lt_prog_compiler_pic_CXX=
12143 lt_prog_compiler_static_CXX=
12145 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12146 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12148 # C++ specific cases for pic, static, wl, etc.
12149 if test "$GXX" = yes; then
12150 lt_prog_compiler_wl_CXX='-Wl,'
12151 lt_prog_compiler_static_CXX='-static'
12155 # All AIX code is PIC.
12156 if test "$host_cpu" = ia64; then
12157 # AIX 5 now supports IA64 processor
12158 lt_prog_compiler_static_CXX='-Bstatic'
12162 # FIXME: we need at least 68020 code to build shared libraries, but
12163 # adding the `-m68020' flag to GCC prevents building anything better,
12165 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12167 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12168 # PIC is the default for these OSes.
12170 mingw* | os2* | pw32*)
12171 # This hack is so that the source file can tell whether it is being
12172 # built for inclusion in a dll (and should export symbols for example).
12173 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12175 darwin* | rhapsody*)
12176 # PIC is the default on this platform
12177 # Common symbols not allowed in MH_DYLIB files
12178 lt_prog_compiler_pic_CXX='-fno-common'
12181 # DJGPP does not support shared libraries at all
12182 lt_prog_compiler_pic_CXX=
12185 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12186 # Instead, we relocate shared libraries at runtime.
12189 if test -d /usr/nec; then
12190 lt_prog_compiler_pic_CXX=-Kconform_pic
12194 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12195 # not for PA HP-UX.
12200 lt_prog_compiler_pic_CXX='-fPIC'
12205 lt_prog_compiler_pic_CXX='-fPIC'
12211 # All AIX code is PIC.
12212 if test "$host_cpu" = ia64; then
12213 # AIX 5 now supports IA64 processor
12214 lt_prog_compiler_static_CXX='-Bstatic'
12216 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12220 case $cc_basename in
12222 # Green Hills C++ Compiler
12223 # _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"
12228 # PIC is the default on this platform
12229 # Common symbols not allowed in MH_DYLIB files
12230 case $cc_basename in
12232 lt_prog_compiler_pic_CXX='-qnocommon'
12233 lt_prog_compiler_wl_CXX='-Wl,'
12238 case $cc_basename in
12240 lt_prog_compiler_pic_CXX='-KPIC'
12243 # Green Hills C++ Compiler
12244 lt_prog_compiler_pic_CXX='-pic'
12250 freebsd* | kfreebsd*-gnu | dragonfly*)
12251 # FreeBSD uses GNU C++
12253 hpux9* | hpux10* | hpux11*)
12254 case $cc_basename in
12256 lt_prog_compiler_wl_CXX='-Wl,'
12257 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12258 if test "$host_cpu" != ia64; then
12259 lt_prog_compiler_pic_CXX='+Z'
12263 lt_prog_compiler_wl_CXX='-Wl,'
12264 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12270 lt_prog_compiler_pic_CXX='+Z'
12279 # This is c89, which is MS Visual C++ (no shared libs)
12280 # Anyone wants to do a port?
12282 irix5* | irix6* | nonstopux*)
12283 case $cc_basename in
12285 lt_prog_compiler_wl_CXX='-Wl,'
12286 lt_prog_compiler_static_CXX='-non_shared'
12287 # CC pic flag -KPIC is the default.
12294 case $cc_basename in
12297 lt_prog_compiler_wl_CXX='--backend -Wl,'
12298 lt_prog_compiler_pic_CXX='-fPIC'
12302 lt_prog_compiler_wl_CXX='-Wl,'
12303 lt_prog_compiler_pic_CXX='-KPIC'
12304 lt_prog_compiler_static_CXX='-static'
12307 # Portland Group C++ compiler.
12308 lt_prog_compiler_wl_CXX='-Wl,'
12309 lt_prog_compiler_pic_CXX='-fpic'
12310 lt_prog_compiler_static_CXX='-Bstatic'
12314 # Make sure the PIC flag is empty. It appears that all Alpha
12315 # Linux and Compaq Tru64 Unix objects are PIC.
12316 lt_prog_compiler_pic_CXX=
12317 lt_prog_compiler_static_CXX='-non_shared'
12328 case $cc_basename in
12330 lt_prog_compiler_pic_CXX='-W c,exportall'
12338 osf3* | osf4* | osf5*)
12339 case $cc_basename in
12341 lt_prog_compiler_wl_CXX='--backend -Wl,'
12344 # Rational C++ 2.4.1
12345 lt_prog_compiler_pic_CXX='-pic'
12348 # Digital/Compaq C++
12349 lt_prog_compiler_wl_CXX='-Wl,'
12350 # Make sure the PIC flag is empty. It appears that all Alpha
12351 # Linux and Compaq Tru64 Unix objects are PIC.
12352 lt_prog_compiler_pic_CXX=
12353 lt_prog_compiler_static_CXX='-non_shared'
12362 case $cc_basename in
12364 # Sun C++ 4.2, 5.x and Centerline C++
12365 lt_prog_compiler_pic_CXX='-KPIC'
12366 lt_prog_compiler_static_CXX='-Bstatic'
12367 lt_prog_compiler_wl_CXX='-Qoption ld '
12370 # Green Hills C++ Compiler
12371 lt_prog_compiler_pic_CXX='-PIC'
12378 case $cc_basename in
12381 lt_prog_compiler_pic_CXX='-pic'
12382 lt_prog_compiler_static_CXX='-Bstatic'
12386 lt_prog_compiler_pic_CXX='-pic'
12393 case $cc_basename in
12395 # NonStop-UX NCC 3.20
12396 lt_prog_compiler_pic_CXX='-KPIC'
12402 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12403 case $cc_basename in
12405 lt_prog_compiler_wl_CXX='-Wl,'
12406 lt_prog_compiler_pic_CXX='-KPIC'
12407 lt_prog_compiler_static_CXX='-Bstatic'
12414 lt_prog_compiler_can_build_shared_CXX=no
12419 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12420 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12423 # Check to make sure the PIC flag actually works.
12425 if test -n "$lt_prog_compiler_pic_CXX"; then
12427 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12428 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12429 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12430 echo $ECHO_N "(cached) $ECHO_C" >&6
12432 lt_prog_compiler_pic_works_CXX=no
12433 ac_outfile=conftest.$ac_objext
12434 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12435 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12436 # Insert the option either (1) after the last *FLAGS variable, or
12437 # (2) before a word containing "conftest.", or (3) at the end.
12438 # Note that $ac_compile itself does not contain backslashes and begins
12439 # with a dollar sign (not a hyphen), so the echo should work correctly.
12440 # The option is referenced via a variable to avoid confusing sed.
12441 lt_compile=`echo "$ac_compile" | $SED \
12442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12444 -e 's:$: $lt_compiler_flag:'`
12445 (eval echo "\"\$as_me:12445: $lt_compile\"" >&5)
12446 (eval "$lt_compile" 2>conftest.err)
12448 cat conftest.err >&5
12449 echo "$as_me:12449: \$? = $ac_status" >&5
12450 if (exit $ac_status) && test -s "$ac_outfile"; then
12451 # The compiler can only warn and ignore the option if not recognized
12452 # So say no if there are warnings other than the usual output.
12453 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12455 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12456 lt_prog_compiler_pic_works_CXX=yes
12462 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12463 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12465 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12466 case $lt_prog_compiler_pic_CXX in
12468 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12471 lt_prog_compiler_pic_CXX=
12472 lt_prog_compiler_can_build_shared_CXX=no
12477 # For platforms which do not support PIC, -DPIC is meaningless:
12479 lt_prog_compiler_pic_CXX=
12482 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12487 # Check to make sure the static flag actually works.
12489 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12490 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12491 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12492 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12495 lt_prog_compiler_static_works_CXX=no
12496 save_LDFLAGS="$LDFLAGS"
12497 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12498 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12499 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12500 # The linker can only warn and ignore the option if not recognized
12501 # So say no if there are warnings
12502 if test -s conftest.err; then
12503 # Append any errors to the config.log.
12504 cat conftest.err 1>&5
12505 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12507 if diff conftest.exp conftest.er2 >/dev/null; then
12508 lt_prog_compiler_static_works_CXX=yes
12511 lt_prog_compiler_static_works_CXX=yes
12515 LDFLAGS="$save_LDFLAGS"
12518 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12519 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12521 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12524 lt_prog_compiler_static_CXX=
12528 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12529 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12530 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12533 lt_cv_prog_compiler_c_o_CXX=no
12534 $rm -r conftest 2>/dev/null
12538 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12540 lt_compiler_flag="-o out/conftest2.$ac_objext"
12541 # Insert the option either (1) after the last *FLAGS variable, or
12542 # (2) before a word containing "conftest.", or (3) at the end.
12543 # Note that $ac_compile itself does not contain backslashes and begins
12544 # with a dollar sign (not a hyphen), so the echo should work correctly.
12545 lt_compile=`echo "$ac_compile" | $SED \
12546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12548 -e 's:$: $lt_compiler_flag:'`
12549 (eval echo "\"\$as_me:12549: $lt_compile\"" >&5)
12550 (eval "$lt_compile" 2>out/conftest.err)
12552 cat out/conftest.err >&5
12553 echo "$as_me:12553: \$? = $ac_status" >&5
12554 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12556 # The compiler can only warn and ignore the option if not recognized
12557 # So say no if there are warnings
12558 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12559 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12560 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12561 lt_cv_prog_compiler_c_o_CXX=yes
12566 # SGI C++ compiler will create directory out/ii_files/ for
12567 # template instantiation
12568 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12569 $rm out/* && rmdir out
12575 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12576 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12579 hard_links="nottested"
12580 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12581 # do not overwrite the value of need_locks provided by the user
12582 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12583 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12586 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12588 ln conftest.a conftest.b 2>&5 || hard_links=no
12589 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12590 { echo "$as_me:$LINENO: result: $hard_links" >&5
12591 echo "${ECHO_T}$hard_links" >&6; }
12592 if test "$hard_links" = no; then
12593 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12594 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12601 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12602 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12604 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12607 # If we're using GNU nm, then we don't want the "-C" option.
12608 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12609 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12610 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'
12612 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'
12616 export_symbols_cmds_CXX="$ltdll_cmds"
12619 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'
12622 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12626 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12627 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12628 test "$ld_shlibs_CXX" = no && can_build_shared=no
12631 # Do we need to explicitly link libc?
12633 case "x$archive_cmds_need_lc_CXX" in
12635 # Assume -lc should be added
12636 archive_cmds_need_lc_CXX=yes
12638 if test "$enable_shared" = yes && test "$GCC" = yes; then
12639 case $archive_cmds_CXX in
12641 # FIXME: we may have to deal with multi-command sequences.
12644 # Test whether the compiler implicitly links with -lc since on some
12645 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12646 # to ld, don't add -lc before -lgcc.
12647 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12648 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12650 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12653 (eval $ac_compile) 2>&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } 2>conftest.err; then
12659 libobjs=conftest.$ac_objext
12661 wl=$lt_prog_compiler_wl_CXX
12662 pic_flag=$lt_prog_compiler_pic_CXX
12668 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12669 allow_undefined_flag_CXX=
12670 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12671 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }
12676 archive_cmds_need_lc_CXX=no
12678 archive_cmds_need_lc_CXX=yes
12680 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12682 cat conftest.err 1>&5
12685 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12686 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12693 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12694 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12695 library_names_spec=
12696 libname_spec='lib$name'
12700 postuninstall_cmds=
12704 shlibpath_overrides_runpath=unknown
12706 dynamic_linker="$host_os ld.so"
12707 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12708 if test "$GCC" = yes; then
12709 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12710 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12711 # if the path contains ";" then we assume it to be the separator
12712 # otherwise default to the standard path separator (i.e. ":") - it is
12713 # assumed that no part of a normal pathname contains ";" but that should
12714 # okay in the real world where ";" in dirpaths is itself problematic.
12715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12720 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12722 need_lib_prefix=unknown
12723 hardcode_into_libs=no
12725 # when you set need_version to no, make sure it does not cause -set_version
12726 # flags to be left without arguments
12727 need_version=unknown
12732 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12733 shlibpath_var=LIBPATH
12735 # AIX 3 has no versioning support, so we append a major version to the name.
12736 soname_spec='${libname}${release}${shared_ext}$major'
12743 hardcode_into_libs=yes
12744 if test "$host_cpu" = ia64; then
12745 # AIX 5 supports IA64
12746 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12747 shlibpath_var=LD_LIBRARY_PATH
12749 # With GCC up to 2.95.x, collect2 would create an import file
12750 # for dependence libraries. The import file would start with
12751 # the line `#! .'. This would cause the generated library to
12752 # depend on `.', always an invalid library. This was fixed in
12753 # development snapshots of GCC prior to 3.0.
12755 aix4 | aix4.[01] | aix4.[01].*)
12756 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12758 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12761 can_build_shared=no
12765 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12766 # soname into executable. Probably we can add versioning support to
12767 # collect2, so additional links can be useful in future.
12768 if test "$aix_use_runtimelinking" = yes; then
12769 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12770 # instead of lib<name>.a to let people know that these are not
12771 # typical AIX shared libraries.
12772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12774 # We preserve .a as extension for shared libraries through AIX4.2
12775 # and later when we are not doing run time linking.
12776 library_names_spec='${libname}${release}.a $libname.a'
12777 soname_spec='${libname}${release}${shared_ext}$major'
12779 shlibpath_var=LIBPATH
12784 library_names_spec='$libname.ixlibrary $libname.a'
12785 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12786 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'
12790 library_names_spec='${libname}${shared_ext}'
12791 dynamic_linker="$host_os ld.so"
12792 shlibpath_var=LIBRARY_PATH
12798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12799 soname_spec='${libname}${release}${shared_ext}$major'
12800 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12801 shlibpath_var=LD_LIBRARY_PATH
12802 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12803 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12804 # the default ld.so.conf also contains /usr/contrib/lib and
12805 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12806 # libtool to hard-code these into programs
12809 cygwin* | mingw* | pw32*)
12810 version_type=windows
12815 case $GCC,$host_os in
12816 yes,cygwin* | yes,mingw* | yes,pw32*)
12817 library_names_spec='$libname.dll.a'
12818 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12819 postinstall_cmds='base_file=`basename \${file}`~
12820 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12821 dldir=$destdir/`dirname \$dlpath`~
12822 test -d \$dldir || mkdir -p \$dldir~
12823 $install_prog $dir/$dlname \$dldir/$dlname~
12824 chmod a+x \$dldir/$dlname'
12825 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12826 dlpath=$dir/\$dldll~
12828 shlibpath_overrides_runpath=yes
12832 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12833 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12834 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12837 # MinGW DLLs use traditional 'lib' prefix
12838 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12839 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12840 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12841 # It is most probably a Windows format PATH printed by
12842 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12843 # path with ; separators, and with drive letters. We can handle the
12844 # drive letters (cygwin fileutils understands them), so leave them,
12845 # especially as we might pass files found there to a mingw objdump,
12846 # which wouldn't understand a cygwinified path. Ahh.
12847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12849 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12853 # pw32 DLLs use 'pw' prefix rather than 'lib'
12854 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12860 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12863 dynamic_linker='Win32 ld.exe'
12864 # FIXME: first we should search . and the directory the executable is in
12868 darwin* | rhapsody*)
12869 dynamic_linker="$host_os dyld"
12870 version_type=darwin
12873 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12874 soname_spec='${libname}${release}${major}$shared_ext'
12875 shlibpath_overrides_runpath=yes
12876 shlibpath_var=DYLD_LIBRARY_PATH
12877 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12878 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12879 if test "$GCC" = yes; then
12880 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"`
12882 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12884 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12892 soname_spec='${libname}${release}${shared_ext}$major'
12893 shlibpath_var=LD_LIBRARY_PATH
12904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12905 soname_spec='${libname}${release}${shared_ext}$major'
12906 shlibpath_var=LD_LIBRARY_PATH
12907 shlibpath_overrides_runpath=no
12908 hardcode_into_libs=yes
12909 dynamic_linker='GNU ld.so'
12912 freebsd* | dragonfly*)
12913 # DragonFly does not have aout. When/if they implement a new
12914 # versioning mechanism, adjust this.
12915 if test -x /usr/bin/objformat; then
12916 objformat=`/usr/bin/objformat`
12919 freebsd[123]*) objformat=aout ;;
12920 *) objformat=elf ;;
12923 version_type=freebsd-$objformat
12924 case $version_type in
12926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12931 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12935 shlibpath_var=LD_LIBRARY_PATH
12938 shlibpath_overrides_runpath=yes
12940 freebsd3.[01]* | freebsdelf3.[01]*)
12941 shlibpath_overrides_runpath=yes
12942 hardcode_into_libs=yes
12944 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12945 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12946 shlibpath_overrides_runpath=no
12947 hardcode_into_libs=yes
12949 freebsd*) # from 4.6 on
12950 shlibpath_overrides_runpath=yes
12951 hardcode_into_libs=yes
12960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12961 soname_spec='${libname}${release}${shared_ext}$major'
12962 shlibpath_var=LD_LIBRARY_PATH
12963 hardcode_into_libs=yes
12966 hpux9* | hpux10* | hpux11*)
12967 # Give a soname corresponding to the major version so that dld.sl refuses to
12968 # link against other versions.
12975 hardcode_into_libs=yes
12976 dynamic_linker="$host_os dld.so"
12977 shlibpath_var=LD_LIBRARY_PATH
12978 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12980 soname_spec='${libname}${release}${shared_ext}$major'
12981 if test "X$HPUX_IA64_MODE" = X32; then
12982 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12984 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12990 hardcode_into_libs=yes
12991 dynamic_linker="$host_os dld.sl"
12992 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12993 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12995 soname_spec='${libname}${release}${shared_ext}$major'
12996 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13001 dynamic_linker="$host_os dld.sl"
13002 shlibpath_var=SHLIB_PATH
13003 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13005 soname_spec='${libname}${release}${shared_ext}$major'
13008 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13009 postinstall_cmds='chmod 555 $lib'
13016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13017 soname_spec='${libname}${release}${shared_ext}$major'
13018 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13019 shlibpath_var=LD_LIBRARY_PATH
13020 shlibpath_overrides_runpath=no
13021 hardcode_into_libs=yes
13024 irix5* | irix6* | nonstopux*)
13026 nonstopux*) version_type=nonstopux ;;
13028 if test "$lt_cv_prog_gnu_ld" = yes; then
13036 soname_spec='${libname}${release}${shared_ext}$major'
13037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13039 irix5* | nonstopux*)
13040 libsuff= shlibsuff=
13043 case $LD in # libtool.m4 will add one of these switches to LD
13044 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13045 libsuff= shlibsuff= libmagic=32-bit;;
13046 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13047 libsuff=32 shlibsuff=N32 libmagic=N32;;
13048 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13049 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13050 *) libsuff= shlibsuff= libmagic=never-match;;
13054 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13055 shlibpath_overrides_runpath=no
13056 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13057 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13058 hardcode_into_libs=yes
13061 # No shared lib support for Linux oldld, aout, or coff.
13062 linux*oldld* | linux*aout* | linux*coff*)
13066 # This must be Linux ELF.
13071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13072 soname_spec='${libname}${release}${shared_ext}$major'
13073 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13074 shlibpath_var=LD_LIBRARY_PATH
13075 shlibpath_overrides_runpath=no
13076 # This implies no fast_install, which is unacceptable.
13077 # Some rework will be needed to allow for fast_install
13078 # before this can be enabled.
13079 hardcode_into_libs=yes
13081 # Append ld.so.conf contents to the search path
13082 if test -f /etc/ld.so.conf; then
13083 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' ' '`
13084 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13087 # We used to test for /lib/ld.so.1 and disable shared libraries on
13088 # powerpc, because MkLinux only supported shared libraries with the
13089 # GNU dynamic linker. Since this was broken with cross compilers,
13090 # most powerpc-linux boxes support dynamic linking these days and
13091 # people can always --disable-shared, the test was removed, and we
13092 # assume the GNU/Linux dynamic linker is in use.
13093 dynamic_linker='GNU/Linux ld.so'
13100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13101 soname_spec='${libname}${release}${shared_ext}$major'
13102 shlibpath_var=LD_LIBRARY_PATH
13103 shlibpath_overrides_runpath=no
13104 hardcode_into_libs=yes
13105 dynamic_linker='GNU ld.so'
13112 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13115 dynamic_linker='NetBSD (a.out) ld.so'
13117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13118 soname_spec='${libname}${release}${shared_ext}$major'
13119 dynamic_linker='NetBSD ld.elf_so'
13121 shlibpath_var=LD_LIBRARY_PATH
13122 shlibpath_overrides_runpath=yes
13123 hardcode_into_libs=yes
13128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13129 shlibpath_var=LD_LIBRARY_PATH
13130 shlibpath_overrides_runpath=yes
13137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13138 soname_spec='${libname}${release}${shared_ext}$major'
13139 shlibpath_var=LD_LIBRARY_PATH
13140 shlibpath_overrides_runpath=yes
13145 sys_lib_dlsearch_path_spec="/usr/lib"
13147 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13149 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13150 *) need_version=no ;;
13152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13153 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13154 shlibpath_var=LD_LIBRARY_PATH
13155 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13157 openbsd2.[89] | openbsd2.[89].*)
13158 shlibpath_overrides_runpath=no
13161 shlibpath_overrides_runpath=yes
13165 shlibpath_overrides_runpath=yes
13170 libname_spec='$name'
13173 library_names_spec='$libname${shared_ext} $libname.a'
13174 dynamic_linker='OS/2 ld.exe'
13175 shlibpath_var=LIBPATH
13178 osf3* | osf4* | osf5*)
13182 soname_spec='${libname}${release}${shared_ext}$major'
13183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13184 shlibpath_var=LD_LIBRARY_PATH
13185 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13186 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13194 soname_spec='${libname}${release}${shared_ext}$major'
13195 shlibpath_var=LD_LIBRARY_PATH
13196 shlibpath_overrides_runpath=yes
13197 hardcode_into_libs=yes
13198 # ldd complains unless libraries are executable
13199 postinstall_cmds='chmod +x $lib'
13204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13205 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13206 shlibpath_var=LD_LIBRARY_PATH
13207 shlibpath_overrides_runpath=yes
13208 if test "$with_gnu_ld" = yes; then
13216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13217 soname_spec='${libname}${release}${shared_ext}$major'
13218 shlibpath_var=LD_LIBRARY_PATH
13219 case $host_vendor in
13221 shlibpath_overrides_runpath=no
13223 export_dynamic_flag_spec='${wl}-Blargedynsym'
13224 runpath_var=LD_RUN_PATH
13232 shlibpath_overrides_runpath=no
13233 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13239 if test -d /usr/nec ;then
13241 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13242 soname_spec='$libname${shared_ext}.$major'
13243 shlibpath_var=LD_LIBRARY_PATH
13247 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13248 version_type=freebsd-elf
13251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13252 soname_spec='${libname}${release}${shared_ext}$major'
13253 shlibpath_var=LD_LIBRARY_PATH
13254 hardcode_into_libs=yes
13255 if test "$with_gnu_ld" = yes; then
13256 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13257 shlibpath_overrides_runpath=no
13259 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13260 shlibpath_overrides_runpath=yes
13263 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13267 sys_lib_dlsearch_path_spec='/usr/lib'
13272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13273 soname_spec='${libname}${release}${shared_ext}$major'
13274 shlibpath_var=LD_LIBRARY_PATH
13281 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13282 echo "${ECHO_T}$dynamic_linker" >&6; }
13283 test "$dynamic_linker" = no && can_build_shared=no
13285 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13286 if test "$GCC" = yes; then
13287 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13290 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13291 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13292 hardcode_action_CXX=
13293 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13294 test -n "$runpath_var_CXX" || \
13295 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13297 # We can hardcode non-existant directories.
13298 if test "$hardcode_direct_CXX" != no &&
13299 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13300 # have to relink, otherwise we might link with an installed library
13301 # when we should be linking with a yet-to-be-installed one
13302 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13303 test "$hardcode_minus_L_CXX" != no; then
13304 # Linking always hardcodes the temporary library directory.
13305 hardcode_action_CXX=relink
13307 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13308 hardcode_action_CXX=immediate
13311 # We cannot hardcode anything, or else we can only hardcode existing
13313 hardcode_action_CXX=unsupported
13315 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13316 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13318 if test "$hardcode_action_CXX" = relink; then
13319 # Fast installation is not supported
13320 enable_fast_install=no
13321 elif test "$shlibpath_overrides_runpath" = yes ||
13322 test "$enable_shared" = no; then
13323 # Fast installation is not necessary
13324 enable_fast_install=needless
13328 # The else clause should only fire when bootstrapping the
13329 # libtool distribution, otherwise you forgot to ship ltmain.sh
13330 # with your package, and you will get complaints that there are
13331 # no rules to generate ltmain.sh.
13332 if test -f "$ltmain"; then
13333 # See if we are running on zsh, and set the options which allow our commands through
13334 # without removal of \ escapes.
13335 if test -n "${ZSH_VERSION+set}" ; then
13336 setopt NO_GLOB_SUBST
13338 # Now quote all the things that may contain metacharacters while being
13339 # careful not to overquote the AC_SUBSTed values. We take copies of the
13340 # variables and quote the copies for generation of the libtool script.
13341 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13343 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13344 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13345 deplibs_check_method reload_flag reload_cmds need_locks \
13346 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13347 lt_cv_sys_global_symbol_to_c_name_address \
13348 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13349 old_postinstall_cmds old_postuninstall_cmds \
13353 lt_prog_compiler_wl_CXX \
13354 lt_prog_compiler_pic_CXX \
13355 lt_prog_compiler_static_CXX \
13356 lt_prog_compiler_no_builtin_flag_CXX \
13357 export_dynamic_flag_spec_CXX \
13358 thread_safe_flag_spec_CXX \
13359 whole_archive_flag_spec_CXX \
13360 enable_shared_with_static_runtimes_CXX \
13361 old_archive_cmds_CXX \
13362 old_archive_from_new_cmds_CXX \
13363 predep_objects_CXX \
13364 postdep_objects_CXX \
13367 compiler_lib_search_path_CXX \
13369 archive_expsym_cmds_CXX \
13370 postinstall_cmds_CXX \
13371 postuninstall_cmds_CXX \
13372 old_archive_from_expsyms_cmds_CXX \
13373 allow_undefined_flag_CXX \
13374 no_undefined_flag_CXX \
13375 export_symbols_cmds_CXX \
13376 hardcode_libdir_flag_spec_CXX \
13377 hardcode_libdir_flag_spec_ld_CXX \
13378 hardcode_libdir_separator_CXX \
13379 hardcode_automatic_CXX \
13381 module_expsym_cmds_CXX \
13382 lt_cv_prog_compiler_c_o_CXX \
13383 exclude_expsyms_CXX \
13384 include_expsyms_CXX; do
13387 old_archive_cmds_CXX | \
13388 old_archive_from_new_cmds_CXX | \
13389 archive_cmds_CXX | \
13390 archive_expsym_cmds_CXX | \
13391 module_cmds_CXX | \
13392 module_expsym_cmds_CXX | \
13393 old_archive_from_expsyms_cmds_CXX | \
13394 export_symbols_cmds_CXX | \
13395 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13396 postinstall_cmds | postuninstall_cmds | \
13397 old_postinstall_cmds | old_postuninstall_cmds | \
13398 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13399 # Double-quote double-evaled strings.
13400 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13403 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13409 *'\$0 --fallback-echo"')
13410 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13416 cat <<__EOF__ >> "$cfgfile"
13417 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13419 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13421 # Shell to use when invoking shell scripts.
13424 # Whether or not to build shared libraries.
13425 build_libtool_libs=$enable_shared
13427 # Whether or not to build static libraries.
13428 build_old_libs=$enable_static
13430 # Whether or not to add -lc for building shared libraries.
13431 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13433 # Whether or not to disallow shared libs when runtime libs are static
13434 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13436 # Whether or not to optimize for fast installation.
13437 fast_install=$enable_fast_install
13440 host_alias=$host_alias
13444 # The build system.
13445 build_alias=$build_alias
13449 # An echo program that does not interpret backslashes.
13454 AR_FLAGS=$lt_AR_FLAGS
13459 # LTCC compiler flags.
13460 LTCFLAGS=$lt_LTCFLAGS
13462 # A language-specific compiler.
13463 CC=$lt_compiler_CXX
13465 # Is the compiler the GNU C compiler?
13471 # The linker used to build libraries.
13474 # Whether we need hard or soft links.
13477 # A BSD-compatible nm program.
13480 # A symbol stripping program
13483 # Used to examine libraries when file_magic_cmd begins "file"
13484 MAGIC_CMD=$MAGIC_CMD
13486 # Used on cygwin: DLL creation program.
13489 # Used on cygwin: object dumper.
13492 # Used on cygwin: assembler.
13495 # The name of the directory that contains temporary libtool files.
13498 # How to create reloadable object files.
13499 reload_flag=$lt_reload_flag
13500 reload_cmds=$lt_reload_cmds
13502 # How to pass a linker flag through the compiler.
13503 wl=$lt_lt_prog_compiler_wl_CXX
13505 # Object file suffix (normally "o").
13506 objext="$ac_objext"
13508 # Old archive suffix (normally "a").
13511 # Shared library suffix (normally ".so").
13512 shrext_cmds='$shrext_cmds'
13514 # Executable file suffix (normally "").
13517 # Additional compiler flags for building library objects.
13518 pic_flag=$lt_lt_prog_compiler_pic_CXX
13521 # What is the maximum length of a command?
13522 max_cmd_len=$lt_cv_sys_max_cmd_len
13524 # Does compiler simultaneously support -c and -o options?
13525 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13527 # Must we lock files when doing compilation?
13528 need_locks=$lt_need_locks
13530 # Do we need the lib prefix for modules?
13531 need_lib_prefix=$need_lib_prefix
13533 # Do we need a version for libraries?
13534 need_version=$need_version
13536 # Whether dlopen is supported.
13537 dlopen_support=$enable_dlopen
13539 # Whether dlopen of programs is supported.
13540 dlopen_self=$enable_dlopen_self
13542 # Whether dlopen of statically linked programs is supported.
13543 dlopen_self_static=$enable_dlopen_self_static
13545 # Compiler flag to prevent dynamic linking.
13546 link_static_flag=$lt_lt_prog_compiler_static_CXX
13548 # Compiler flag to turn off builtin functions.
13549 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13551 # Compiler flag to allow reflexive dlopens.
13552 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13554 # Compiler flag to generate shared objects directly from archives.
13555 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13557 # Compiler flag to generate thread-safe objects.
13558 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13560 # Library versioning type.
13561 version_type=$version_type
13563 # Format of library name prefix.
13564 libname_spec=$lt_libname_spec
13566 # List of archive names. First name is the real one, the rest are links.
13567 # The last name is the one that the linker finds with -lNAME.
13568 library_names_spec=$lt_library_names_spec
13570 # The coded name of the library, if different from the real name.
13571 soname_spec=$lt_soname_spec
13573 # Commands used to build and install an old-style archive.
13575 old_archive_cmds=$lt_old_archive_cmds_CXX
13576 old_postinstall_cmds=$lt_old_postinstall_cmds
13577 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13579 # Create an old-style archive from a shared archive.
13580 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13582 # Create a temporary old-style archive to link instead of a shared archive.
13583 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13585 # Commands used to build and install a shared archive.
13586 archive_cmds=$lt_archive_cmds_CXX
13587 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13588 postinstall_cmds=$lt_postinstall_cmds
13589 postuninstall_cmds=$lt_postuninstall_cmds
13591 # Commands used to build a loadable module (assumed same as above if empty)
13592 module_cmds=$lt_module_cmds_CXX
13593 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13595 # Commands to strip libraries.
13596 old_striplib=$lt_old_striplib
13597 striplib=$lt_striplib
13599 # Dependencies to place before the objects being linked to create a
13601 predep_objects=$lt_predep_objects_CXX
13603 # Dependencies to place after the objects being linked to create a
13605 postdep_objects=$lt_postdep_objects_CXX
13607 # Dependencies to place before the objects being linked to create a
13609 predeps=$lt_predeps_CXX
13611 # Dependencies to place after the objects being linked to create a
13613 postdeps=$lt_postdeps_CXX
13615 # The library search path used internally by the compiler when linking
13616 # a shared library.
13617 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13619 # Method to check whether dependent libraries are shared objects.
13620 deplibs_check_method=$lt_deplibs_check_method
13622 # Command to use when deplibs_check_method == file_magic.
13623 file_magic_cmd=$lt_file_magic_cmd
13625 # Flag that allows shared libraries with undefined symbols to be built.
13626 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13628 # Flag that forces no undefined symbols.
13629 no_undefined_flag=$lt_no_undefined_flag_CXX
13631 # Commands used to finish a libtool library installation in a directory.
13632 finish_cmds=$lt_finish_cmds
13634 # Same as above, but a single script fragment to be evaled but not shown.
13635 finish_eval=$lt_finish_eval
13637 # Take the output of nm and produce a listing of raw symbols and C names.
13638 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13640 # Transform the output of nm in a proper C declaration
13641 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13643 # Transform the output of nm in a C name address pair
13644 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13646 # This is the shared library runtime path variable.
13647 runpath_var=$runpath_var
13649 # This is the shared library path variable.
13650 shlibpath_var=$shlibpath_var
13652 # Is shlibpath searched before the hard-coded library search path?
13653 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13655 # How to hardcode a shared library path into an executable.
13656 hardcode_action=$hardcode_action_CXX
13658 # Whether we should hardcode library paths into libraries.
13659 hardcode_into_libs=$hardcode_into_libs
13661 # Flag to hardcode \$libdir into a binary during linking.
13662 # This must work even if \$libdir does not exist.
13663 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13665 # If ld is used when linking, flag to hardcode \$libdir into
13666 # a binary during linking. This must work even if \$libdir does
13668 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13670 # Whether we need a single -rpath flag with a separated argument.
13671 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13673 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13674 # resulting binary.
13675 hardcode_direct=$hardcode_direct_CXX
13677 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13678 # resulting binary.
13679 hardcode_minus_L=$hardcode_minus_L_CXX
13681 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13682 # the resulting binary.
13683 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13685 # Set to yes if building a shared library automatically hardcodes DIR into the library
13686 # and all subsequent libraries and executables linked against it.
13687 hardcode_automatic=$hardcode_automatic_CXX
13689 # Variables whose values should be saved in libtool wrapper scripts and
13690 # restored at relink time.
13691 variables_saved_for_relink="$variables_saved_for_relink"
13693 # Whether libtool must link a program against all its dependency libraries.
13694 link_all_deplibs=$link_all_deplibs_CXX
13696 # Compile-time system search path for libraries
13697 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13699 # Run-time system search path for libraries
13700 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13702 # Fix the shell variable \$srcfile for the compiler.
13703 fix_srcfile_path="$fix_srcfile_path_CXX"
13705 # Set to yes if exported symbols are required.
13706 always_export_symbols=$always_export_symbols_CXX
13708 # The commands to list exported symbols.
13709 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13711 # The commands to extract the exported symbol list from a shared archive.
13712 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13714 # Symbols that should not be listed in the preloaded symbols.
13715 exclude_expsyms=$lt_exclude_expsyms_CXX
13717 # Symbols that must always be exported.
13718 include_expsyms=$lt_include_expsyms_CXX
13720 # ### END LIBTOOL TAG CONFIG: $tagname
13726 # If there is no Makefile yet, we rely on a make rule to execute
13727 # `config.status --recheck' to rerun these tests and create the
13728 # libtool script then.
13729 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13730 if test -f "$ltmain_in"; then
13731 test -f Makefile && make "$ltmain"
13737 ac_cpp='$CPP $CPPFLAGS'
13738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13746 with_gnu_ldcxx=$with_gnu_ld
13747 with_gnu_ld=$lt_save_with_gnu_ld
13748 lt_cv_path_LDCXX=$lt_cv_path_LD
13749 lt_cv_path_LD=$lt_save_path_LD
13750 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13751 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13759 if test -n "$F77" && test "X$F77" != "Xno"; then
13762 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13763 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13764 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13767 archive_cmds_need_lc_F77=no
13768 allow_undefined_flag_F77=
13769 always_export_symbols_F77=no
13770 archive_expsym_cmds_F77=
13771 export_dynamic_flag_spec_F77=
13772 hardcode_direct_F77=no
13773 hardcode_libdir_flag_spec_F77=
13774 hardcode_libdir_flag_spec_ld_F77=
13775 hardcode_libdir_separator_F77=
13776 hardcode_minus_L_F77=no
13777 hardcode_automatic_F77=no
13779 module_expsym_cmds_F77=
13780 link_all_deplibs_F77=unknown
13781 old_archive_cmds_F77=$old_archive_cmds
13782 no_undefined_flag_F77=
13783 whole_archive_flag_spec_F77=
13784 enable_shared_with_static_runtimes_F77=no
13786 # Source file extension for f77 test sources.
13789 # Object file extension for compiled f77 test sources.
13793 # Code to be used in simple compile tests
13794 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13796 # Code to be used in simple link tests
13797 lt_simple_link_test_code=" program t\n end\n"
13799 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13801 # If no C compiler was specified, use CC.
13804 # If no C compiler flags were specified, use CFLAGS.
13805 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13807 # Allow CC to be a program name with arguments.
13811 # save warnings/boilerplate of simple test code
13812 ac_outfile=conftest.$ac_objext
13813 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13814 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13815 _lt_compiler_boilerplate=`cat conftest.err`
13818 ac_outfile=conftest.$ac_objext
13819 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13820 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13821 _lt_linker_boilerplate=`cat conftest.err`
13825 # Allow CC to be a program name with arguments.
13830 for cc_temp in $compiler""; do
13832 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13833 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13838 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13841 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13842 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13843 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13844 echo "${ECHO_T}$can_build_shared" >&6; }
13846 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13847 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13848 test "$can_build_shared" = "no" && enable_shared=no
13850 # On AIX, shared libraries and static libraries use the same namespace, and
13851 # are all built from PIC.
13854 test "$enable_shared" = yes && enable_static=no
13855 if test -n "$RANLIB"; then
13856 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13857 postinstall_cmds='$RANLIB $lib'
13861 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13862 test "$enable_shared" = yes && enable_static=no
13866 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13867 echo "${ECHO_T}$enable_shared" >&6; }
13869 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13870 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13871 # Make sure either enable_shared or enable_static is yes.
13872 test "$enable_shared" = yes || enable_static=yes
13873 { echo "$as_me:$LINENO: result: $enable_static" >&5
13874 echo "${ECHO_T}$enable_static" >&6; }
13879 lt_prog_compiler_wl_F77=
13880 lt_prog_compiler_pic_F77=
13881 lt_prog_compiler_static_F77=
13883 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13884 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13886 if test "$GCC" = yes; then
13887 lt_prog_compiler_wl_F77='-Wl,'
13888 lt_prog_compiler_static_F77='-static'
13892 # All AIX code is PIC.
13893 if test "$host_cpu" = ia64; then
13894 # AIX 5 now supports IA64 processor
13895 lt_prog_compiler_static_F77='-Bstatic'
13900 # FIXME: we need at least 68020 code to build shared libraries, but
13901 # adding the `-m68020' flag to GCC prevents building anything better,
13903 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13906 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13907 # PIC is the default for these OSes.
13910 mingw* | pw32* | os2*)
13911 # This hack is so that the source file can tell whether it is being
13912 # built for inclusion in a dll (and should export symbols for example).
13913 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13916 darwin* | rhapsody*)
13917 # PIC is the default on this platform
13918 # Common symbols not allowed in MH_DYLIB files
13919 lt_prog_compiler_pic_F77='-fno-common'
13923 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13924 # Instead, we relocate shared libraries at runtime.
13928 # Just because we use GCC doesn't mean we suddenly get shared libraries
13929 # on systems that don't support them.
13930 lt_prog_compiler_can_build_shared_F77=no
13935 if test -d /usr/nec; then
13936 lt_prog_compiler_pic_F77=-Kconform_pic
13941 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13942 # not for PA HP-UX.
13948 lt_prog_compiler_pic_F77='-fPIC'
13954 lt_prog_compiler_pic_F77='-fPIC'
13958 # PORTME Check for flag to pass linker flags through the system compiler.
13961 lt_prog_compiler_wl_F77='-Wl,'
13962 if test "$host_cpu" = ia64; then
13963 # AIX 5 now supports IA64 processor
13964 lt_prog_compiler_static_F77='-Bstatic'
13966 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13970 # PIC is the default on this platform
13971 # Common symbols not allowed in MH_DYLIB files
13972 case $cc_basename in
13974 lt_prog_compiler_pic_F77='-qnocommon'
13975 lt_prog_compiler_wl_F77='-Wl,'
13980 mingw* | pw32* | os2*)
13981 # This hack is so that the source file can tell whether it is being
13982 # built for inclusion in a dll (and should export symbols for example).
13983 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13986 hpux9* | hpux10* | hpux11*)
13987 lt_prog_compiler_wl_F77='-Wl,'
13988 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13989 # not for PA HP-UX.
13995 lt_prog_compiler_pic_F77='+Z'
13998 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13999 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14002 irix5* | irix6* | nonstopux*)
14003 lt_prog_compiler_wl_F77='-Wl,'
14004 # PIC (with -KPIC) is the default.
14005 lt_prog_compiler_static_F77='-non_shared'
14009 lt_prog_compiler_pic_F77='-KPIC'
14010 lt_prog_compiler_static_F77='-Bstatic'
14014 case $cc_basename in
14016 lt_prog_compiler_wl_F77='-Wl,'
14017 lt_prog_compiler_pic_F77='-KPIC'
14018 lt_prog_compiler_static_F77='-static'
14020 pgcc* | pgf77* | pgf90* | pgf95*)
14021 # Portland Group compilers (*not* the Pentium gcc compiler,
14022 # which looks to be a dead project)
14023 lt_prog_compiler_wl_F77='-Wl,'
14024 lt_prog_compiler_pic_F77='-fpic'
14025 lt_prog_compiler_static_F77='-Bstatic'
14028 lt_prog_compiler_wl_F77='-Wl,'
14029 # All Alpha code is PIC.
14030 lt_prog_compiler_static_F77='-non_shared'
14035 osf3* | osf4* | osf5*)
14036 lt_prog_compiler_wl_F77='-Wl,'
14037 # All OSF/1 code is PIC.
14038 lt_prog_compiler_static_F77='-non_shared'
14042 lt_prog_compiler_pic_F77='-KPIC'
14043 lt_prog_compiler_static_F77='-Bstatic'
14044 case $cc_basename in
14045 f77* | f90* | f95*)
14046 lt_prog_compiler_wl_F77='-Qoption ld ';;
14048 lt_prog_compiler_wl_F77='-Wl,';;
14053 lt_prog_compiler_wl_F77='-Qoption ld '
14054 lt_prog_compiler_pic_F77='-PIC'
14055 lt_prog_compiler_static_F77='-Bstatic'
14058 sysv4 | sysv4.2uw2* | sysv4.3*)
14059 lt_prog_compiler_wl_F77='-Wl,'
14060 lt_prog_compiler_pic_F77='-KPIC'
14061 lt_prog_compiler_static_F77='-Bstatic'
14065 if test -d /usr/nec ;then
14066 lt_prog_compiler_pic_F77='-Kconform_pic'
14067 lt_prog_compiler_static_F77='-Bstatic'
14071 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14072 lt_prog_compiler_wl_F77='-Wl,'
14073 lt_prog_compiler_pic_F77='-KPIC'
14074 lt_prog_compiler_static_F77='-Bstatic'
14078 lt_prog_compiler_wl_F77='-Wl,'
14079 lt_prog_compiler_can_build_shared_F77=no
14083 lt_prog_compiler_pic_F77='-pic'
14084 lt_prog_compiler_static_F77='-Bstatic'
14088 lt_prog_compiler_can_build_shared_F77=no
14093 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14094 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14097 # Check to make sure the PIC flag actually works.
14099 if test -n "$lt_prog_compiler_pic_F77"; then
14101 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14102 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14103 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14104 echo $ECHO_N "(cached) $ECHO_C" >&6
14106 lt_prog_compiler_pic_works_F77=no
14107 ac_outfile=conftest.$ac_objext
14108 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14109 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14110 # Insert the option either (1) after the last *FLAGS variable, or
14111 # (2) before a word containing "conftest.", or (3) at the end.
14112 # Note that $ac_compile itself does not contain backslashes and begins
14113 # with a dollar sign (not a hyphen), so the echo should work correctly.
14114 # The option is referenced via a variable to avoid confusing sed.
14115 lt_compile=`echo "$ac_compile" | $SED \
14116 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14117 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14118 -e 's:$: $lt_compiler_flag:'`
14119 (eval echo "\"\$as_me:14119: $lt_compile\"" >&5)
14120 (eval "$lt_compile" 2>conftest.err)
14122 cat conftest.err >&5
14123 echo "$as_me:14123: \$? = $ac_status" >&5
14124 if (exit $ac_status) && test -s "$ac_outfile"; then
14125 # The compiler can only warn and ignore the option if not recognized
14126 # So say no if there are warnings other than the usual output.
14127 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14128 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14129 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14130 lt_prog_compiler_pic_works_F77=yes
14136 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14137 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14139 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14140 case $lt_prog_compiler_pic_F77 in
14142 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14145 lt_prog_compiler_pic_F77=
14146 lt_prog_compiler_can_build_shared_F77=no
14151 # For platforms which do not support PIC, -DPIC is meaningless:
14153 lt_prog_compiler_pic_F77=
14156 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14161 # Check to make sure the static flag actually works.
14163 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14164 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14165 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14166 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14169 lt_prog_compiler_static_works_F77=no
14170 save_LDFLAGS="$LDFLAGS"
14171 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14172 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14173 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14174 # The linker can only warn and ignore the option if not recognized
14175 # So say no if there are warnings
14176 if test -s conftest.err; then
14177 # Append any errors to the config.log.
14178 cat conftest.err 1>&5
14179 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14181 if diff conftest.exp conftest.er2 >/dev/null; then
14182 lt_prog_compiler_static_works_F77=yes
14185 lt_prog_compiler_static_works_F77=yes
14189 LDFLAGS="$save_LDFLAGS"
14192 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14193 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14195 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14198 lt_prog_compiler_static_F77=
14202 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14203 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14204 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14205 echo $ECHO_N "(cached) $ECHO_C" >&6
14207 lt_cv_prog_compiler_c_o_F77=no
14208 $rm -r conftest 2>/dev/null
14212 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14214 lt_compiler_flag="-o out/conftest2.$ac_objext"
14215 # Insert the option either (1) after the last *FLAGS variable, or
14216 # (2) before a word containing "conftest.", or (3) at the end.
14217 # Note that $ac_compile itself does not contain backslashes and begins
14218 # with a dollar sign (not a hyphen), so the echo should work correctly.
14219 lt_compile=`echo "$ac_compile" | $SED \
14220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14222 -e 's:$: $lt_compiler_flag:'`
14223 (eval echo "\"\$as_me:14223: $lt_compile\"" >&5)
14224 (eval "$lt_compile" 2>out/conftest.err)
14226 cat out/conftest.err >&5
14227 echo "$as_me:14227: \$? = $ac_status" >&5
14228 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14230 # The compiler can only warn and ignore the option if not recognized
14231 # So say no if there are warnings
14232 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14233 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14234 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14235 lt_cv_prog_compiler_c_o_F77=yes
14240 # SGI C++ compiler will create directory out/ii_files/ for
14241 # template instantiation
14242 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14243 $rm out/* && rmdir out
14249 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14250 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14253 hard_links="nottested"
14254 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14255 # do not overwrite the value of need_locks provided by the user
14256 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14257 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14260 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14262 ln conftest.a conftest.b 2>&5 || hard_links=no
14263 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14264 { echo "$as_me:$LINENO: result: $hard_links" >&5
14265 echo "${ECHO_T}$hard_links" >&6; }
14266 if test "$hard_links" = no; then
14267 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14268 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14275 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14276 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14279 allow_undefined_flag_F77=
14280 enable_shared_with_static_runtimes_F77=no
14282 archive_expsym_cmds_F77=
14283 old_archive_From_new_cmds_F77=
14284 old_archive_from_expsyms_cmds_F77=
14285 export_dynamic_flag_spec_F77=
14286 whole_archive_flag_spec_F77=
14287 thread_safe_flag_spec_F77=
14288 hardcode_libdir_flag_spec_F77=
14289 hardcode_libdir_flag_spec_ld_F77=
14290 hardcode_libdir_separator_F77=
14291 hardcode_direct_F77=no
14292 hardcode_minus_L_F77=no
14293 hardcode_shlibpath_var_F77=unsupported
14294 link_all_deplibs_F77=unknown
14295 hardcode_automatic_F77=no
14297 module_expsym_cmds_F77=
14298 always_export_symbols_F77=no
14299 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14300 # include_expsyms should be a list of space-separated symbols to be *always*
14301 # included in the symbol list
14302 include_expsyms_F77=
14303 # exclude_expsyms can be an extended regexp of symbols to exclude
14304 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14305 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14306 # as well as any symbol that contains `d'.
14307 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14308 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14309 # platforms (ab)use it in PIC code, but their linkers get confused if
14310 # the symbol is explicitly referenced. Since portable code cannot
14311 # rely on this symbol name, it's probably fine to never include it in
14312 # preloaded symbol tables.
14313 extract_expsyms_cmds=
14314 # Just being paranoid about ensuring that cc_basename is set.
14315 for cc_temp in $compiler""; do
14317 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14318 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14323 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14326 cygwin* | mingw* | pw32*)
14327 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14328 # When not using gcc, we currently assume that we are using
14329 # Microsoft Visual C++.
14330 if test "$GCC" != yes; then
14335 # we just hope/assume this is gcc and not c89 (= MSVC++)
14344 if test "$with_gnu_ld" = yes; then
14345 # If archive_cmds runs LD, not CC, wlarc should be empty
14348 # Set some defaults for GNU ld with shared library support. These
14349 # are reset later if shared libraries are not supported. Putting them
14350 # here allows them to be overridden if necessary.
14351 runpath_var=LD_RUN_PATH
14352 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14353 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14354 # ancient GNU ld didn't support --whole-archive et. al.
14355 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14356 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14358 whole_archive_flag_spec_F77=
14360 supports_anon_versioning=no
14361 case `$LD -v 2>/dev/null` in
14362 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14363 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14364 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14365 *\ 2.11.*) ;; # other 2.11 versions
14366 *) supports_anon_versioning=yes ;;
14369 # See if GNU ld supports shared libraries.
14371 aix3* | aix4* | aix5*)
14372 # On AIX/PPC, the GNU linker is very broken
14373 if test "$host_cpu" != ia64; then
14377 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14378 *** to be unable to reliably create shared libraries on AIX.
14379 *** Therefore, libtool is disabling shared libraries support. If you
14380 *** really care for shared libraries, you may want to modify your PATH
14381 *** so that a non-GNU linker is found, and then restart.
14388 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)'
14389 hardcode_libdir_flag_spec_F77='-L$libdir'
14390 hardcode_minus_L_F77=yes
14392 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14393 # that the semantics of dynamic libraries on AmigaOS, at least up
14394 # to version 4, is to share data among multiple programs linked
14395 # with the same dynamic library. Since this doesn't match the
14396 # behavior of shared libraries on other platforms, we can't use
14402 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14403 allow_undefined_flag_F77=unsupported
14404 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14405 # support --undefined. This deserves some investigation. FIXME
14406 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14412 cygwin* | mingw* | pw32*)
14413 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14414 # as there is no search path for DLLs.
14415 hardcode_libdir_flag_spec_F77='-L$libdir'
14416 allow_undefined_flag_F77=unsupported
14417 always_export_symbols_F77=no
14418 enable_shared_with_static_runtimes_F77=yes
14419 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14421 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14422 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14423 # If the export-symbols file already is a .def file (1st line
14424 # is EXPORTS), use it as is; otherwise, prepend...
14425 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14426 cp $export_symbols $output_objdir/$soname.def;
14428 echo EXPORTS > $output_objdir/$soname.def;
14429 cat $export_symbols >> $output_objdir/$soname.def;
14431 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14438 hardcode_direct_F77=no
14439 hardcode_shlibpath_var_F77=no
14440 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14441 export_dynamic_flag_spec_F77='${wl}-E'
14442 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14443 # Instead, shared libraries are loaded at an image base (0x10000000 by
14444 # default) and relocated if they conflict, which is a slow very memory
14445 # consuming and fragmenting process. To avoid this, we pick a random,
14446 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14447 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14448 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'
14449 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'
14453 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14455 case $cc_basename,$host_cpu in
14456 pgcc*) # Portland Group C compiler
14457 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'
14458 tmp_addflag=' $pic_flag'
14460 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14461 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'
14462 tmp_addflag=' $pic_flag -Mnomain' ;;
14463 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14464 tmp_addflag=' -i_dynamic' ;;
14465 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14466 tmp_addflag=' -i_dynamic -nofor_main' ;;
14467 ifc* | ifort*) # Intel Fortran compiler
14468 tmp_addflag=' -nofor_main' ;;
14470 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14472 if test $supports_anon_versioning = yes; then
14473 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14474 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14475 $echo "local: *; };" >> $output_objdir/$libname.ver~
14476 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14484 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14485 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14488 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14489 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14494 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14498 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14499 *** create shared libraries on Solaris systems. Therefore, libtool
14500 *** is disabling shared libraries support. We urge you to upgrade GNU
14501 *** binutils to release 2.9.1 or newer. Another option is to modify
14502 *** your PATH or compiler configuration so that the native linker is
14503 *** used, and then restart.
14506 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14507 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14508 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14514 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14515 case `$LD -v 2>&1` in
14516 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14520 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14521 *** reliably create shared libraries on SCO systems. Therefore, libtool
14522 *** is disabling shared libraries support. We urge you to upgrade GNU
14523 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14524 *** your PATH or compiler configuration so that the native linker is
14525 *** used, and then restart.
14530 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14531 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14532 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14533 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14542 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14544 hardcode_direct_F77=yes
14545 hardcode_shlibpath_var_F77=no
14549 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14550 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14551 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14558 if test "$ld_shlibs_F77" = no; then
14560 hardcode_libdir_flag_spec_F77=
14561 export_dynamic_flag_spec_F77=
14562 whole_archive_flag_spec_F77=
14565 # PORTME fill in a description of your system's linker (not GNU ld)
14568 allow_undefined_flag_F77=unsupported
14569 always_export_symbols_F77=yes
14570 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'
14571 # Note: this linker hardcodes the directories in LIBPATH if there
14572 # are no directories specified by -L.
14573 hardcode_minus_L_F77=yes
14574 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14575 # Neither direct hardcoding nor static linking is supported with a
14577 hardcode_direct_F77=unsupported
14582 if test "$host_cpu" = ia64; then
14583 # On IA64, the linker does run time linking by default, so we don't
14584 # have to do anything special.
14585 aix_use_runtimelinking=no
14586 exp_sym_flag='-Bexport'
14589 # If we're using GNU nm, then we don't want the "-C" option.
14590 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14591 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14592 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'
14594 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'
14596 aix_use_runtimelinking=no
14598 # Test if we are trying to use run time linking or normal
14599 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14600 # need to do runtime linking.
14601 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14602 for ld_flag in $LDFLAGS; do
14603 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14604 aix_use_runtimelinking=yes
14611 exp_sym_flag='-bexport'
14612 no_entry_flag='-bnoentry'
14615 # When large executables or shared objects are built, AIX ld can
14616 # have problems creating the table of contents. If linking a library
14617 # or program results in "error TOC overflow" add -mminimal-toc to
14618 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14619 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14621 archive_cmds_F77=''
14622 hardcode_direct_F77=yes
14623 hardcode_libdir_separator_F77=':'
14624 link_all_deplibs_F77=yes
14626 if test "$GCC" = yes; then
14627 case $host_os in aix4.[012]|aix4.[012].*)
14628 # We only want to do this on AIX 4.2 and lower, the check
14629 # below for broken collect2 doesn't work under 4.3+
14630 collect2name=`${CC} -print-prog-name=collect2`
14631 if test -f "$collect2name" && \
14632 strings "$collect2name" | grep resolve_lib_name >/dev/null
14634 # We have reworked collect2
14635 hardcode_direct_F77=yes
14637 # We have old collect2
14638 hardcode_direct_F77=unsupported
14639 # It fails to find uninstalled libraries when the uninstalled
14640 # path is not listed in the libpath. Setting hardcode_minus_L
14641 # to unsupported forces relinking
14642 hardcode_minus_L_F77=yes
14643 hardcode_libdir_flag_spec_F77='-L$libdir'
14644 hardcode_libdir_separator_F77=
14648 shared_flag='-shared'
14649 if test "$aix_use_runtimelinking" = yes; then
14650 shared_flag="$shared_flag "'${wl}-G'
14654 if test "$host_cpu" = ia64; then
14655 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14656 # chokes on -Wl,-G. The following line is correct:
14659 if test "$aix_use_runtimelinking" = yes; then
14660 shared_flag='${wl}-G'
14662 shared_flag='${wl}-bM:SRE'
14667 # It seems that -bexpall does not export symbols beginning with
14668 # underscore (_), so it is better to generate a list of symbols to export.
14669 always_export_symbols_F77=yes
14670 if test "$aix_use_runtimelinking" = yes; then
14671 # Warning - without using the other runtime loading flags (-brtl),
14672 # -berok will link without error, but may produce a broken library.
14673 allow_undefined_flag_F77='-berok'
14674 # Determine the default libpath from the value encoded in an empty executable.
14675 cat >conftest.$ac_ext <<_ACEOF
14680 rm -f conftest.$ac_objext conftest$ac_exeext
14681 if { (ac_try="$ac_link"
14682 case "(($ac_try" in
14683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684 *) ac_try_echo=$ac_try;;
14686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687 (eval "$ac_link") 2>conftest.er1
14689 grep -v '^ *+' conftest.er1 >conftest.err
14691 cat conftest.err >&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); } && {
14694 test -z "$ac_f77_werror_flag" ||
14695 test ! -s conftest.err
14696 } && test -s conftest$ac_exeext &&
14697 $as_test_x conftest$ac_exeext; then
14699 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14701 # Check for a 64-bit object if we didn't find anything.
14702 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; }
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14712 conftest$ac_exeext conftest.$ac_ext
14713 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14715 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14716 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"
14718 if test "$host_cpu" = ia64; then
14719 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14720 allow_undefined_flag_F77="-z nodefs"
14721 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"
14723 # Determine the default libpath from the value encoded in an empty executable.
14724 cat >conftest.$ac_ext <<_ACEOF
14729 rm -f conftest.$ac_objext conftest$ac_exeext
14730 if { (ac_try="$ac_link"
14731 case "(($ac_try" in
14732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14733 *) ac_try_echo=$ac_try;;
14735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14736 (eval "$ac_link") 2>conftest.er1
14738 grep -v '^ *+' conftest.er1 >conftest.err
14740 cat conftest.err >&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); } && {
14743 test -z "$ac_f77_werror_flag" ||
14744 test ! -s conftest.err
14745 } && test -s conftest$ac_exeext &&
14746 $as_test_x conftest$ac_exeext; then
14748 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14750 # Check for a 64-bit object if we didn't find anything.
14751 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; }
14754 echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14761 conftest$ac_exeext conftest.$ac_ext
14762 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14764 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14765 # Warning - without using the other run time loading flags,
14766 # -berok will link without error, but may produce a broken library.
14767 no_undefined_flag_F77=' ${wl}-bernotok'
14768 allow_undefined_flag_F77=' ${wl}-berok'
14769 # Exported symbols can be pulled into shared objects from archives
14770 whole_archive_flag_spec_F77='$convenience'
14771 archive_cmds_need_lc_F77=yes
14772 # This is similar to how AIX traditionally builds its shared libraries.
14773 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'
14779 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)'
14780 hardcode_libdir_flag_spec_F77='-L$libdir'
14781 hardcode_minus_L_F77=yes
14782 # see comment about different semantics on the GNU ld section
14787 export_dynamic_flag_spec_F77=-rdynamic
14790 cygwin* | mingw* | pw32*)
14791 # When not using gcc, we currently assume that we are using
14792 # Microsoft Visual C++.
14793 # hardcode_libdir_flag_spec is actually meaningless, as there is
14794 # no search path for DLLs.
14795 hardcode_libdir_flag_spec_F77=' '
14796 allow_undefined_flag_F77=unsupported
14797 # Tell ltmain to make .lib files, not .a files.
14799 # Tell ltmain to make .dll files, not .so files.
14801 # FIXME: Setting linknames here is a bad hack.
14802 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14803 # The linker will automatically build a .lib file if we build a DLL.
14804 old_archive_From_new_cmds_F77='true'
14805 # FIXME: Should let the user specify the lib program.
14806 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14807 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14808 enable_shared_with_static_runtimes_F77=yes
14811 darwin* | rhapsody*)
14813 rhapsody* | darwin1.[012])
14814 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14817 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14818 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14820 case ${MACOSX_DEPLOYMENT_TARGET} in
14822 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14825 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14831 archive_cmds_need_lc_F77=no
14832 hardcode_direct_F77=no
14833 hardcode_automatic_F77=yes
14834 hardcode_shlibpath_var_F77=unsupported
14835 whole_archive_flag_spec_F77=''
14836 link_all_deplibs_F77=yes
14837 if test "$GCC" = yes ; then
14838 output_verbose_link_cmd='echo'
14839 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14840 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14841 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14842 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}'
14843 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}'
14845 case $cc_basename in
14847 output_verbose_link_cmd='echo'
14848 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14849 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14850 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14851 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}'
14852 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}'
14862 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14863 hardcode_libdir_flag_spec_F77='-L$libdir'
14864 hardcode_shlibpath_var_F77=no
14871 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14872 # support. Future versions do this automatically, but an explicit c++rt0.o
14873 # does not break anything, and helps significantly (at the cost of a little
14876 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14877 hardcode_libdir_flag_spec_F77='-R$libdir'
14878 hardcode_direct_F77=yes
14879 hardcode_shlibpath_var_F77=no
14882 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14884 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14885 hardcode_direct_F77=yes
14886 hardcode_minus_L_F77=yes
14887 hardcode_shlibpath_var_F77=no
14890 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14891 freebsd* | kfreebsd*-gnu | dragonfly*)
14892 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14893 hardcode_libdir_flag_spec_F77='-R$libdir'
14894 hardcode_direct_F77=yes
14895 hardcode_shlibpath_var_F77=no
14899 if test "$GCC" = yes; then
14900 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'
14902 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'
14904 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14905 hardcode_libdir_separator_F77=:
14906 hardcode_direct_F77=yes
14908 # hardcode_minus_L: Not really in the search PATH,
14909 # but as the default location of the library.
14910 hardcode_minus_L_F77=yes
14911 export_dynamic_flag_spec_F77='${wl}-E'
14915 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14916 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14918 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14920 if test "$with_gnu_ld" = no; then
14921 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14922 hardcode_libdir_separator_F77=:
14924 hardcode_direct_F77=yes
14925 export_dynamic_flag_spec_F77='${wl}-E'
14927 # hardcode_minus_L: Not really in the search PATH,
14928 # but as the default location of the library.
14929 hardcode_minus_L_F77=yes
14934 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14937 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14940 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14943 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14949 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14952 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14955 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14959 if test "$with_gnu_ld" = no; then
14960 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14961 hardcode_libdir_separator_F77=:
14965 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14966 hardcode_direct_F77=no
14967 hardcode_shlibpath_var_F77=no
14970 hardcode_direct_F77=yes
14971 export_dynamic_flag_spec_F77='${wl}-E'
14973 # hardcode_minus_L: Not really in the search PATH,
14974 # but as the default location of the library.
14975 hardcode_minus_L_F77=yes
14981 irix5* | irix6* | nonstopux*)
14982 if test "$GCC" = yes; then
14983 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'
14985 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'
14986 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14988 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14989 hardcode_libdir_separator_F77=:
14990 link_all_deplibs_F77=yes
14994 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14995 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14997 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14999 hardcode_libdir_flag_spec_F77='-R$libdir'
15000 hardcode_direct_F77=yes
15001 hardcode_shlibpath_var_F77=no
15005 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15006 hardcode_direct_F77=yes
15007 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15008 hardcode_libdir_separator_F77=:
15009 hardcode_shlibpath_var_F77=no
15013 hardcode_direct_F77=yes
15014 hardcode_shlibpath_var_F77=no
15015 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15016 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15017 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15018 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15019 export_dynamic_flag_spec_F77='${wl}-E'
15022 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15023 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15024 hardcode_libdir_flag_spec_F77='-R$libdir'
15027 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15028 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15035 hardcode_libdir_flag_spec_F77='-L$libdir'
15036 hardcode_minus_L_F77=yes
15037 allow_undefined_flag_F77=unsupported
15038 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'
15039 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15043 if test "$GCC" = yes; then
15044 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15045 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'
15047 allow_undefined_flag_F77=' -expect_unresolved \*'
15048 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'
15050 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15051 hardcode_libdir_separator_F77=:
15054 osf4* | osf5*) # as osf3* with the addition of -msym flag
15055 if test "$GCC" = yes; then
15056 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15057 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'
15058 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15060 allow_undefined_flag_F77=' -expect_unresolved \*'
15061 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'
15062 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~
15063 $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'
15065 # Both c and cxx compiler support -rpath directly
15066 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15068 hardcode_libdir_separator_F77=:
15072 no_undefined_flag_F77=' -z text'
15073 if test "$GCC" = yes; then
15075 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15076 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15077 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15080 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15081 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15082 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15084 hardcode_libdir_flag_spec_F77='-R$libdir'
15085 hardcode_shlibpath_var_F77=no
15087 solaris2.[0-5] | solaris2.[0-5].*) ;;
15089 # The compiler driver will combine linker options so we
15090 # cannot just pass the convience library names through
15091 # without $wl, iff we do not link with $LD.
15092 # Luckily, gcc supports the same syntax we need for Sun Studio.
15093 # Supported since Solaris 2.6 (maybe 2.5.1?)
15096 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15098 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' ;;
15101 link_all_deplibs_F77=yes
15105 if test "x$host_vendor" = xsequent; then
15106 # Use $CC to link under sequent, because it throws in some extra .o
15107 # files that make .init and .fini sections work.
15108 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15110 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15112 hardcode_libdir_flag_spec_F77='-L$libdir'
15113 hardcode_direct_F77=yes
15114 hardcode_minus_L_F77=yes
15115 hardcode_shlibpath_var_F77=no
15119 case $host_vendor in
15121 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15122 hardcode_direct_F77=yes # is this really true???
15125 ## LD is ld it makes a PLAMLIB
15126 ## CC just makes a GrossModule.
15127 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15128 reload_cmds_F77='$CC -r -o $output$reload_objs'
15129 hardcode_direct_F77=no
15132 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15133 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15136 runpath_var='LD_RUN_PATH'
15137 hardcode_shlibpath_var_F77=no
15141 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15142 hardcode_shlibpath_var_F77=no
15143 export_dynamic_flag_spec_F77='-Bexport'
15147 if test -d /usr/nec; then
15148 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15149 hardcode_shlibpath_var_F77=no
15150 runpath_var=LD_RUN_PATH
15151 hardcode_runpath_var=yes
15156 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15157 no_undefined_flag_F77='${wl}-z,text'
15158 archive_cmds_need_lc_F77=no
15159 hardcode_shlibpath_var_F77=no
15160 runpath_var='LD_RUN_PATH'
15162 if test "$GCC" = yes; then
15163 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15164 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15166 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15167 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15171 sysv5* | sco3.2v5* | sco5v6*)
15172 # Note: We can NOT use -z defs as we might desire, because we do not
15173 # link with -lc, and that would cause any symbols used from libc to
15174 # always be unresolved, which means just about no library would
15175 # ever link correctly. If we're not using GNU ld we use -z text
15176 # though, which does catch some bad symbols but isn't as heavy-handed
15178 no_undefined_flag_F77='${wl}-z,text'
15179 allow_undefined_flag_F77='${wl}-z,nodefs'
15180 archive_cmds_need_lc_F77=no
15181 hardcode_shlibpath_var_F77=no
15182 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15183 hardcode_libdir_separator_F77=':'
15184 link_all_deplibs_F77=yes
15185 export_dynamic_flag_spec_F77='${wl}-Bexport'
15186 runpath_var='LD_RUN_PATH'
15188 if test "$GCC" = yes; then
15189 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15190 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15192 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15193 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15198 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15199 hardcode_libdir_flag_spec_F77='-L$libdir'
15200 hardcode_shlibpath_var_F77=no
15209 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15210 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15211 test "$ld_shlibs_F77" = no && can_build_shared=no
15214 # Do we need to explicitly link libc?
15216 case "x$archive_cmds_need_lc_F77" in
15218 # Assume -lc should be added
15219 archive_cmds_need_lc_F77=yes
15221 if test "$enable_shared" = yes && test "$GCC" = yes; then
15222 case $archive_cmds_F77 in
15224 # FIXME: we may have to deal with multi-command sequences.
15227 # Test whether the compiler implicitly links with -lc since on some
15228 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15229 # to ld, don't add -lc before -lgcc.
15230 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15231 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15233 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15236 (eval $ac_compile) 2>&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); } 2>conftest.err; then
15242 libobjs=conftest.$ac_objext
15244 wl=$lt_prog_compiler_wl_F77
15245 pic_flag=$lt_prog_compiler_pic_F77
15251 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15252 allow_undefined_flag_F77=
15253 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15254 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }
15259 archive_cmds_need_lc_F77=no
15261 archive_cmds_need_lc_F77=yes
15263 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15265 cat conftest.err 1>&5
15268 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15269 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15276 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15277 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15278 library_names_spec=
15279 libname_spec='lib$name'
15283 postuninstall_cmds=
15287 shlibpath_overrides_runpath=unknown
15289 dynamic_linker="$host_os ld.so"
15290 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15291 if test "$GCC" = yes; then
15292 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15293 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15294 # if the path contains ";" then we assume it to be the separator
15295 # otherwise default to the standard path separator (i.e. ":") - it is
15296 # assumed that no part of a normal pathname contains ";" but that should
15297 # okay in the real world where ";" in dirpaths is itself problematic.
15298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15303 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15305 need_lib_prefix=unknown
15306 hardcode_into_libs=no
15308 # when you set need_version to no, make sure it does not cause -set_version
15309 # flags to be left without arguments
15310 need_version=unknown
15315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15316 shlibpath_var=LIBPATH
15318 # AIX 3 has no versioning support, so we append a major version to the name.
15319 soname_spec='${libname}${release}${shared_ext}$major'
15326 hardcode_into_libs=yes
15327 if test "$host_cpu" = ia64; then
15328 # AIX 5 supports IA64
15329 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15330 shlibpath_var=LD_LIBRARY_PATH
15332 # With GCC up to 2.95.x, collect2 would create an import file
15333 # for dependence libraries. The import file would start with
15334 # the line `#! .'. This would cause the generated library to
15335 # depend on `.', always an invalid library. This was fixed in
15336 # development snapshots of GCC prior to 3.0.
15338 aix4 | aix4.[01] | aix4.[01].*)
15339 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15341 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15344 can_build_shared=no
15348 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15349 # soname into executable. Probably we can add versioning support to
15350 # collect2, so additional links can be useful in future.
15351 if test "$aix_use_runtimelinking" = yes; then
15352 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15353 # instead of lib<name>.a to let people know that these are not
15354 # typical AIX shared libraries.
15355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15357 # We preserve .a as extension for shared libraries through AIX4.2
15358 # and later when we are not doing run time linking.
15359 library_names_spec='${libname}${release}.a $libname.a'
15360 soname_spec='${libname}${release}${shared_ext}$major'
15362 shlibpath_var=LIBPATH
15367 library_names_spec='$libname.ixlibrary $libname.a'
15368 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15369 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'
15373 library_names_spec='${libname}${shared_ext}'
15374 dynamic_linker="$host_os ld.so"
15375 shlibpath_var=LIBRARY_PATH
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15382 soname_spec='${libname}${release}${shared_ext}$major'
15383 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15384 shlibpath_var=LD_LIBRARY_PATH
15385 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15386 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15387 # the default ld.so.conf also contains /usr/contrib/lib and
15388 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15389 # libtool to hard-code these into programs
15392 cygwin* | mingw* | pw32*)
15393 version_type=windows
15398 case $GCC,$host_os in
15399 yes,cygwin* | yes,mingw* | yes,pw32*)
15400 library_names_spec='$libname.dll.a'
15401 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15402 postinstall_cmds='base_file=`basename \${file}`~
15403 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15404 dldir=$destdir/`dirname \$dlpath`~
15405 test -d \$dldir || mkdir -p \$dldir~
15406 $install_prog $dir/$dlname \$dldir/$dlname~
15407 chmod a+x \$dldir/$dlname'
15408 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15409 dlpath=$dir/\$dldll~
15411 shlibpath_overrides_runpath=yes
15415 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15416 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15417 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15420 # MinGW DLLs use traditional 'lib' prefix
15421 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15422 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15423 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15424 # It is most probably a Windows format PATH printed by
15425 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15426 # path with ; separators, and with drive letters. We can handle the
15427 # drive letters (cygwin fileutils understands them), so leave them,
15428 # especially as we might pass files found there to a mingw objdump,
15429 # which wouldn't understand a cygwinified path. Ahh.
15430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15436 # pw32 DLLs use 'pw' prefix rather than 'lib'
15437 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15443 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15446 dynamic_linker='Win32 ld.exe'
15447 # FIXME: first we should search . and the directory the executable is in
15451 darwin* | rhapsody*)
15452 dynamic_linker="$host_os dyld"
15453 version_type=darwin
15456 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15457 soname_spec='${libname}${release}${major}$shared_ext'
15458 shlibpath_overrides_runpath=yes
15459 shlibpath_var=DYLD_LIBRARY_PATH
15460 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15461 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15462 if test "$GCC" = yes; then
15463 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"`
15465 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15467 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15475 soname_spec='${libname}${release}${shared_ext}$major'
15476 shlibpath_var=LD_LIBRARY_PATH
15487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15488 soname_spec='${libname}${release}${shared_ext}$major'
15489 shlibpath_var=LD_LIBRARY_PATH
15490 shlibpath_overrides_runpath=no
15491 hardcode_into_libs=yes
15492 dynamic_linker='GNU ld.so'
15495 freebsd* | dragonfly*)
15496 # DragonFly does not have aout. When/if they implement a new
15497 # versioning mechanism, adjust this.
15498 if test -x /usr/bin/objformat; then
15499 objformat=`/usr/bin/objformat`
15502 freebsd[123]*) objformat=aout ;;
15503 *) objformat=elf ;;
15506 version_type=freebsd-$objformat
15507 case $version_type in
15509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15514 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15518 shlibpath_var=LD_LIBRARY_PATH
15521 shlibpath_overrides_runpath=yes
15523 freebsd3.[01]* | freebsdelf3.[01]*)
15524 shlibpath_overrides_runpath=yes
15525 hardcode_into_libs=yes
15527 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15528 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15529 shlibpath_overrides_runpath=no
15530 hardcode_into_libs=yes
15532 freebsd*) # from 4.6 on
15533 shlibpath_overrides_runpath=yes
15534 hardcode_into_libs=yes
15543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15544 soname_spec='${libname}${release}${shared_ext}$major'
15545 shlibpath_var=LD_LIBRARY_PATH
15546 hardcode_into_libs=yes
15549 hpux9* | hpux10* | hpux11*)
15550 # Give a soname corresponding to the major version so that dld.sl refuses to
15551 # link against other versions.
15558 hardcode_into_libs=yes
15559 dynamic_linker="$host_os dld.so"
15560 shlibpath_var=LD_LIBRARY_PATH
15561 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15563 soname_spec='${libname}${release}${shared_ext}$major'
15564 if test "X$HPUX_IA64_MODE" = X32; then
15565 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15567 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15569 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15573 hardcode_into_libs=yes
15574 dynamic_linker="$host_os dld.sl"
15575 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15576 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578 soname_spec='${libname}${release}${shared_ext}$major'
15579 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15580 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15584 dynamic_linker="$host_os dld.sl"
15585 shlibpath_var=SHLIB_PATH
15586 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15588 soname_spec='${libname}${release}${shared_ext}$major'
15591 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15592 postinstall_cmds='chmod 555 $lib'
15599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15600 soname_spec='${libname}${release}${shared_ext}$major'
15601 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15602 shlibpath_var=LD_LIBRARY_PATH
15603 shlibpath_overrides_runpath=no
15604 hardcode_into_libs=yes
15607 irix5* | irix6* | nonstopux*)
15609 nonstopux*) version_type=nonstopux ;;
15611 if test "$lt_cv_prog_gnu_ld" = yes; then
15619 soname_spec='${libname}${release}${shared_ext}$major'
15620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15622 irix5* | nonstopux*)
15623 libsuff= shlibsuff=
15626 case $LD in # libtool.m4 will add one of these switches to LD
15627 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15628 libsuff= shlibsuff= libmagic=32-bit;;
15629 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15630 libsuff=32 shlibsuff=N32 libmagic=N32;;
15631 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15632 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15633 *) libsuff= shlibsuff= libmagic=never-match;;
15637 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15638 shlibpath_overrides_runpath=no
15639 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15640 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15641 hardcode_into_libs=yes
15644 # No shared lib support for Linux oldld, aout, or coff.
15645 linux*oldld* | linux*aout* | linux*coff*)
15649 # This must be Linux ELF.
15654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15655 soname_spec='${libname}${release}${shared_ext}$major'
15656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15657 shlibpath_var=LD_LIBRARY_PATH
15658 shlibpath_overrides_runpath=no
15659 # This implies no fast_install, which is unacceptable.
15660 # Some rework will be needed to allow for fast_install
15661 # before this can be enabled.
15662 hardcode_into_libs=yes
15664 # Append ld.so.conf contents to the search path
15665 if test -f /etc/ld.so.conf; then
15666 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' ' '`
15667 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15670 # We used to test for /lib/ld.so.1 and disable shared libraries on
15671 # powerpc, because MkLinux only supported shared libraries with the
15672 # GNU dynamic linker. Since this was broken with cross compilers,
15673 # most powerpc-linux boxes support dynamic linking these days and
15674 # people can always --disable-shared, the test was removed, and we
15675 # assume the GNU/Linux dynamic linker is in use.
15676 dynamic_linker='GNU/Linux ld.so'
15683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15684 soname_spec='${libname}${release}${shared_ext}$major'
15685 shlibpath_var=LD_LIBRARY_PATH
15686 shlibpath_overrides_runpath=no
15687 hardcode_into_libs=yes
15688 dynamic_linker='GNU ld.so'
15695 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15698 dynamic_linker='NetBSD (a.out) ld.so'
15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15701 soname_spec='${libname}${release}${shared_ext}$major'
15702 dynamic_linker='NetBSD ld.elf_so'
15704 shlibpath_var=LD_LIBRARY_PATH
15705 shlibpath_overrides_runpath=yes
15706 hardcode_into_libs=yes
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15712 shlibpath_var=LD_LIBRARY_PATH
15713 shlibpath_overrides_runpath=yes
15720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15721 soname_spec='${libname}${release}${shared_ext}$major'
15722 shlibpath_var=LD_LIBRARY_PATH
15723 shlibpath_overrides_runpath=yes
15728 sys_lib_dlsearch_path_spec="/usr/lib"
15730 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15732 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15733 *) need_version=no ;;
15735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15736 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15737 shlibpath_var=LD_LIBRARY_PATH
15738 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15740 openbsd2.[89] | openbsd2.[89].*)
15741 shlibpath_overrides_runpath=no
15744 shlibpath_overrides_runpath=yes
15748 shlibpath_overrides_runpath=yes
15753 libname_spec='$name'
15756 library_names_spec='$libname${shared_ext} $libname.a'
15757 dynamic_linker='OS/2 ld.exe'
15758 shlibpath_var=LIBPATH
15761 osf3* | osf4* | osf5*)
15765 soname_spec='${libname}${release}${shared_ext}$major'
15766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15767 shlibpath_var=LD_LIBRARY_PATH
15768 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15769 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15777 soname_spec='${libname}${release}${shared_ext}$major'
15778 shlibpath_var=LD_LIBRARY_PATH
15779 shlibpath_overrides_runpath=yes
15780 hardcode_into_libs=yes
15781 # ldd complains unless libraries are executable
15782 postinstall_cmds='chmod +x $lib'
15787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15788 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15789 shlibpath_var=LD_LIBRARY_PATH
15790 shlibpath_overrides_runpath=yes
15791 if test "$with_gnu_ld" = yes; then
15799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15800 soname_spec='${libname}${release}${shared_ext}$major'
15801 shlibpath_var=LD_LIBRARY_PATH
15802 case $host_vendor in
15804 shlibpath_overrides_runpath=no
15806 export_dynamic_flag_spec='${wl}-Blargedynsym'
15807 runpath_var=LD_RUN_PATH
15815 shlibpath_overrides_runpath=no
15816 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15822 if test -d /usr/nec ;then
15824 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15825 soname_spec='$libname${shared_ext}.$major'
15826 shlibpath_var=LD_LIBRARY_PATH
15830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15831 version_type=freebsd-elf
15834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15835 soname_spec='${libname}${release}${shared_ext}$major'
15836 shlibpath_var=LD_LIBRARY_PATH
15837 hardcode_into_libs=yes
15838 if test "$with_gnu_ld" = yes; then
15839 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15840 shlibpath_overrides_runpath=no
15842 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15843 shlibpath_overrides_runpath=yes
15846 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15850 sys_lib_dlsearch_path_spec='/usr/lib'
15855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15856 soname_spec='${libname}${release}${shared_ext}$major'
15857 shlibpath_var=LD_LIBRARY_PATH
15864 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15865 echo "${ECHO_T}$dynamic_linker" >&6; }
15866 test "$dynamic_linker" = no && can_build_shared=no
15868 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15869 if test "$GCC" = yes; then
15870 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15873 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15874 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15875 hardcode_action_F77=
15876 if test -n "$hardcode_libdir_flag_spec_F77" || \
15877 test -n "$runpath_var_F77" || \
15878 test "X$hardcode_automatic_F77" = "Xyes" ; then
15880 # We can hardcode non-existant directories.
15881 if test "$hardcode_direct_F77" != no &&
15882 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15883 # have to relink, otherwise we might link with an installed library
15884 # when we should be linking with a yet-to-be-installed one
15885 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15886 test "$hardcode_minus_L_F77" != no; then
15887 # Linking always hardcodes the temporary library directory.
15888 hardcode_action_F77=relink
15890 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15891 hardcode_action_F77=immediate
15894 # We cannot hardcode anything, or else we can only hardcode existing
15896 hardcode_action_F77=unsupported
15898 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15899 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15901 if test "$hardcode_action_F77" = relink; then
15902 # Fast installation is not supported
15903 enable_fast_install=no
15904 elif test "$shlibpath_overrides_runpath" = yes ||
15905 test "$enable_shared" = no; then
15906 # Fast installation is not necessary
15907 enable_fast_install=needless
15911 # The else clause should only fire when bootstrapping the
15912 # libtool distribution, otherwise you forgot to ship ltmain.sh
15913 # with your package, and you will get complaints that there are
15914 # no rules to generate ltmain.sh.
15915 if test -f "$ltmain"; then
15916 # See if we are running on zsh, and set the options which allow our commands through
15917 # without removal of \ escapes.
15918 if test -n "${ZSH_VERSION+set}" ; then
15919 setopt NO_GLOB_SUBST
15921 # Now quote all the things that may contain metacharacters while being
15922 # careful not to overquote the AC_SUBSTed values. We take copies of the
15923 # variables and quote the copies for generation of the libtool script.
15924 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15926 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15927 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15928 deplibs_check_method reload_flag reload_cmds need_locks \
15929 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15930 lt_cv_sys_global_symbol_to_c_name_address \
15931 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15932 old_postinstall_cmds old_postuninstall_cmds \
15936 lt_prog_compiler_wl_F77 \
15937 lt_prog_compiler_pic_F77 \
15938 lt_prog_compiler_static_F77 \
15939 lt_prog_compiler_no_builtin_flag_F77 \
15940 export_dynamic_flag_spec_F77 \
15941 thread_safe_flag_spec_F77 \
15942 whole_archive_flag_spec_F77 \
15943 enable_shared_with_static_runtimes_F77 \
15944 old_archive_cmds_F77 \
15945 old_archive_from_new_cmds_F77 \
15946 predep_objects_F77 \
15947 postdep_objects_F77 \
15950 compiler_lib_search_path_F77 \
15952 archive_expsym_cmds_F77 \
15953 postinstall_cmds_F77 \
15954 postuninstall_cmds_F77 \
15955 old_archive_from_expsyms_cmds_F77 \
15956 allow_undefined_flag_F77 \
15957 no_undefined_flag_F77 \
15958 export_symbols_cmds_F77 \
15959 hardcode_libdir_flag_spec_F77 \
15960 hardcode_libdir_flag_spec_ld_F77 \
15961 hardcode_libdir_separator_F77 \
15962 hardcode_automatic_F77 \
15964 module_expsym_cmds_F77 \
15965 lt_cv_prog_compiler_c_o_F77 \
15966 exclude_expsyms_F77 \
15967 include_expsyms_F77; do
15970 old_archive_cmds_F77 | \
15971 old_archive_from_new_cmds_F77 | \
15972 archive_cmds_F77 | \
15973 archive_expsym_cmds_F77 | \
15974 module_cmds_F77 | \
15975 module_expsym_cmds_F77 | \
15976 old_archive_from_expsyms_cmds_F77 | \
15977 export_symbols_cmds_F77 | \
15978 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15979 postinstall_cmds | postuninstall_cmds | \
15980 old_postinstall_cmds | old_postuninstall_cmds | \
15981 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15982 # Double-quote double-evaled strings.
15983 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15986 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15992 *'\$0 --fallback-echo"')
15993 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15999 cat <<__EOF__ >> "$cfgfile"
16000 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16002 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16004 # Shell to use when invoking shell scripts.
16007 # Whether or not to build shared libraries.
16008 build_libtool_libs=$enable_shared
16010 # Whether or not to build static libraries.
16011 build_old_libs=$enable_static
16013 # Whether or not to add -lc for building shared libraries.
16014 build_libtool_need_lc=$archive_cmds_need_lc_F77
16016 # Whether or not to disallow shared libs when runtime libs are static
16017 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16019 # Whether or not to optimize for fast installation.
16020 fast_install=$enable_fast_install
16023 host_alias=$host_alias
16027 # The build system.
16028 build_alias=$build_alias
16032 # An echo program that does not interpret backslashes.
16037 AR_FLAGS=$lt_AR_FLAGS
16042 # LTCC compiler flags.
16043 LTCFLAGS=$lt_LTCFLAGS
16045 # A language-specific compiler.
16046 CC=$lt_compiler_F77
16048 # Is the compiler the GNU C compiler?
16054 # The linker used to build libraries.
16057 # Whether we need hard or soft links.
16060 # A BSD-compatible nm program.
16063 # A symbol stripping program
16066 # Used to examine libraries when file_magic_cmd begins "file"
16067 MAGIC_CMD=$MAGIC_CMD
16069 # Used on cygwin: DLL creation program.
16072 # Used on cygwin: object dumper.
16075 # Used on cygwin: assembler.
16078 # The name of the directory that contains temporary libtool files.
16081 # How to create reloadable object files.
16082 reload_flag=$lt_reload_flag
16083 reload_cmds=$lt_reload_cmds
16085 # How to pass a linker flag through the compiler.
16086 wl=$lt_lt_prog_compiler_wl_F77
16088 # Object file suffix (normally "o").
16089 objext="$ac_objext"
16091 # Old archive suffix (normally "a").
16094 # Shared library suffix (normally ".so").
16095 shrext_cmds='$shrext_cmds'
16097 # Executable file suffix (normally "").
16100 # Additional compiler flags for building library objects.
16101 pic_flag=$lt_lt_prog_compiler_pic_F77
16104 # What is the maximum length of a command?
16105 max_cmd_len=$lt_cv_sys_max_cmd_len
16107 # Does compiler simultaneously support -c and -o options?
16108 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16110 # Must we lock files when doing compilation?
16111 need_locks=$lt_need_locks
16113 # Do we need the lib prefix for modules?
16114 need_lib_prefix=$need_lib_prefix
16116 # Do we need a version for libraries?
16117 need_version=$need_version
16119 # Whether dlopen is supported.
16120 dlopen_support=$enable_dlopen
16122 # Whether dlopen of programs is supported.
16123 dlopen_self=$enable_dlopen_self
16125 # Whether dlopen of statically linked programs is supported.
16126 dlopen_self_static=$enable_dlopen_self_static
16128 # Compiler flag to prevent dynamic linking.
16129 link_static_flag=$lt_lt_prog_compiler_static_F77
16131 # Compiler flag to turn off builtin functions.
16132 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16134 # Compiler flag to allow reflexive dlopens.
16135 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16137 # Compiler flag to generate shared objects directly from archives.
16138 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16140 # Compiler flag to generate thread-safe objects.
16141 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16143 # Library versioning type.
16144 version_type=$version_type
16146 # Format of library name prefix.
16147 libname_spec=$lt_libname_spec
16149 # List of archive names. First name is the real one, the rest are links.
16150 # The last name is the one that the linker finds with -lNAME.
16151 library_names_spec=$lt_library_names_spec
16153 # The coded name of the library, if different from the real name.
16154 soname_spec=$lt_soname_spec
16156 # Commands used to build and install an old-style archive.
16158 old_archive_cmds=$lt_old_archive_cmds_F77
16159 old_postinstall_cmds=$lt_old_postinstall_cmds
16160 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16162 # Create an old-style archive from a shared archive.
16163 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16165 # Create a temporary old-style archive to link instead of a shared archive.
16166 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16168 # Commands used to build and install a shared archive.
16169 archive_cmds=$lt_archive_cmds_F77
16170 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16171 postinstall_cmds=$lt_postinstall_cmds
16172 postuninstall_cmds=$lt_postuninstall_cmds
16174 # Commands used to build a loadable module (assumed same as above if empty)
16175 module_cmds=$lt_module_cmds_F77
16176 module_expsym_cmds=$lt_module_expsym_cmds_F77
16178 # Commands to strip libraries.
16179 old_striplib=$lt_old_striplib
16180 striplib=$lt_striplib
16182 # Dependencies to place before the objects being linked to create a
16184 predep_objects=$lt_predep_objects_F77
16186 # Dependencies to place after the objects being linked to create a
16188 postdep_objects=$lt_postdep_objects_F77
16190 # Dependencies to place before the objects being linked to create a
16192 predeps=$lt_predeps_F77
16194 # Dependencies to place after the objects being linked to create a
16196 postdeps=$lt_postdeps_F77
16198 # The library search path used internally by the compiler when linking
16199 # a shared library.
16200 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16202 # Method to check whether dependent libraries are shared objects.
16203 deplibs_check_method=$lt_deplibs_check_method
16205 # Command to use when deplibs_check_method == file_magic.
16206 file_magic_cmd=$lt_file_magic_cmd
16208 # Flag that allows shared libraries with undefined symbols to be built.
16209 allow_undefined_flag=$lt_allow_undefined_flag_F77
16211 # Flag that forces no undefined symbols.
16212 no_undefined_flag=$lt_no_undefined_flag_F77
16214 # Commands used to finish a libtool library installation in a directory.
16215 finish_cmds=$lt_finish_cmds
16217 # Same as above, but a single script fragment to be evaled but not shown.
16218 finish_eval=$lt_finish_eval
16220 # Take the output of nm and produce a listing of raw symbols and C names.
16221 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16223 # Transform the output of nm in a proper C declaration
16224 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16226 # Transform the output of nm in a C name address pair
16227 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16229 # This is the shared library runtime path variable.
16230 runpath_var=$runpath_var
16232 # This is the shared library path variable.
16233 shlibpath_var=$shlibpath_var
16235 # Is shlibpath searched before the hard-coded library search path?
16236 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16238 # How to hardcode a shared library path into an executable.
16239 hardcode_action=$hardcode_action_F77
16241 # Whether we should hardcode library paths into libraries.
16242 hardcode_into_libs=$hardcode_into_libs
16244 # Flag to hardcode \$libdir into a binary during linking.
16245 # This must work even if \$libdir does not exist.
16246 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16248 # If ld is used when linking, flag to hardcode \$libdir into
16249 # a binary during linking. This must work even if \$libdir does
16251 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16253 # Whether we need a single -rpath flag with a separated argument.
16254 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16256 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16257 # resulting binary.
16258 hardcode_direct=$hardcode_direct_F77
16260 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16261 # resulting binary.
16262 hardcode_minus_L=$hardcode_minus_L_F77
16264 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16265 # the resulting binary.
16266 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16268 # Set to yes if building a shared library automatically hardcodes DIR into the library
16269 # and all subsequent libraries and executables linked against it.
16270 hardcode_automatic=$hardcode_automatic_F77
16272 # Variables whose values should be saved in libtool wrapper scripts and
16273 # restored at relink time.
16274 variables_saved_for_relink="$variables_saved_for_relink"
16276 # Whether libtool must link a program against all its dependency libraries.
16277 link_all_deplibs=$link_all_deplibs_F77
16279 # Compile-time system search path for libraries
16280 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16282 # Run-time system search path for libraries
16283 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16285 # Fix the shell variable \$srcfile for the compiler.
16286 fix_srcfile_path="$fix_srcfile_path_F77"
16288 # Set to yes if exported symbols are required.
16289 always_export_symbols=$always_export_symbols_F77
16291 # The commands to list exported symbols.
16292 export_symbols_cmds=$lt_export_symbols_cmds_F77
16294 # The commands to extract the exported symbol list from a shared archive.
16295 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16297 # Symbols that should not be listed in the preloaded symbols.
16298 exclude_expsyms=$lt_exclude_expsyms_F77
16300 # Symbols that must always be exported.
16301 include_expsyms=$lt_include_expsyms_F77
16303 # ### END LIBTOOL TAG CONFIG: $tagname
16309 # If there is no Makefile yet, we rely on a make rule to execute
16310 # `config.status --recheck' to rerun these tests and create the
16311 # libtool script then.
16312 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16313 if test -f "$ltmain_in"; then
16314 test -f Makefile && make "$ltmain"
16320 ac_cpp='$CPP $CPPFLAGS'
16321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16333 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16336 # Source file extension for Java test sources.
16339 # Object file extension for compiled Java test sources.
16343 # Code to be used in simple compile tests
16344 lt_simple_compile_test_code="class foo {}\n"
16346 # Code to be used in simple link tests
16347 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16349 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16351 # If no C compiler was specified, use CC.
16354 # If no C compiler flags were specified, use CFLAGS.
16355 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16357 # Allow CC to be a program name with arguments.
16361 # save warnings/boilerplate of simple test code
16362 ac_outfile=conftest.$ac_objext
16363 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16364 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16365 _lt_compiler_boilerplate=`cat conftest.err`
16368 ac_outfile=conftest.$ac_objext
16369 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16370 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16371 _lt_linker_boilerplate=`cat conftest.err`
16375 # Allow CC to be a program name with arguments.
16380 for cc_temp in $compiler""; do
16382 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16383 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16388 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16391 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16392 archive_cmds_need_lc_GCJ=no
16394 old_archive_cmds_GCJ=$old_archive_cmds
16397 ## There is no encapsulation within the following macros, do not change
16398 ## the running order or otherwise move them around unless you know exactly
16399 ## what you are doing...
16401 lt_prog_compiler_no_builtin_flag_GCJ=
16403 if test "$GCC" = yes; then
16404 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16407 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16408 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16409 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16412 lt_cv_prog_compiler_rtti_exceptions=no
16413 ac_outfile=conftest.$ac_objext
16414 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16415 lt_compiler_flag="-fno-rtti -fno-exceptions"
16416 # Insert the option either (1) after the last *FLAGS variable, or
16417 # (2) before a word containing "conftest.", or (3) at the end.
16418 # Note that $ac_compile itself does not contain backslashes and begins
16419 # with a dollar sign (not a hyphen), so the echo should work correctly.
16420 # The option is referenced via a variable to avoid confusing sed.
16421 lt_compile=`echo "$ac_compile" | $SED \
16422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16424 -e 's:$: $lt_compiler_flag:'`
16425 (eval echo "\"\$as_me:16425: $lt_compile\"" >&5)
16426 (eval "$lt_compile" 2>conftest.err)
16428 cat conftest.err >&5
16429 echo "$as_me:16429: \$? = $ac_status" >&5
16430 if (exit $ac_status) && test -s "$ac_outfile"; then
16431 # The compiler can only warn and ignore the option if not recognized
16432 # So say no if there are warnings other than the usual output.
16433 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16435 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16436 lt_cv_prog_compiler_rtti_exceptions=yes
16442 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16443 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16445 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16446 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16453 lt_prog_compiler_wl_GCJ=
16454 lt_prog_compiler_pic_GCJ=
16455 lt_prog_compiler_static_GCJ=
16457 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16458 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16460 if test "$GCC" = yes; then
16461 lt_prog_compiler_wl_GCJ='-Wl,'
16462 lt_prog_compiler_static_GCJ='-static'
16466 # All AIX code is PIC.
16467 if test "$host_cpu" = ia64; then
16468 # AIX 5 now supports IA64 processor
16469 lt_prog_compiler_static_GCJ='-Bstatic'
16474 # FIXME: we need at least 68020 code to build shared libraries, but
16475 # adding the `-m68020' flag to GCC prevents building anything better,
16477 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16480 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16481 # PIC is the default for these OSes.
16484 mingw* | pw32* | os2*)
16485 # This hack is so that the source file can tell whether it is being
16486 # built for inclusion in a dll (and should export symbols for example).
16487 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16490 darwin* | rhapsody*)
16491 # PIC is the default on this platform
16492 # Common symbols not allowed in MH_DYLIB files
16493 lt_prog_compiler_pic_GCJ='-fno-common'
16497 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16498 # Instead, we relocate shared libraries at runtime.
16502 # Just because we use GCC doesn't mean we suddenly get shared libraries
16503 # on systems that don't support them.
16504 lt_prog_compiler_can_build_shared_GCJ=no
16509 if test -d /usr/nec; then
16510 lt_prog_compiler_pic_GCJ=-Kconform_pic
16515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16516 # not for PA HP-UX.
16522 lt_prog_compiler_pic_GCJ='-fPIC'
16528 lt_prog_compiler_pic_GCJ='-fPIC'
16532 # PORTME Check for flag to pass linker flags through the system compiler.
16535 lt_prog_compiler_wl_GCJ='-Wl,'
16536 if test "$host_cpu" = ia64; then
16537 # AIX 5 now supports IA64 processor
16538 lt_prog_compiler_static_GCJ='-Bstatic'
16540 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16544 # PIC is the default on this platform
16545 # Common symbols not allowed in MH_DYLIB files
16546 case $cc_basename in
16548 lt_prog_compiler_pic_GCJ='-qnocommon'
16549 lt_prog_compiler_wl_GCJ='-Wl,'
16554 mingw* | pw32* | os2*)
16555 # This hack is so that the source file can tell whether it is being
16556 # built for inclusion in a dll (and should export symbols for example).
16557 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16560 hpux9* | hpux10* | hpux11*)
16561 lt_prog_compiler_wl_GCJ='-Wl,'
16562 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16563 # not for PA HP-UX.
16569 lt_prog_compiler_pic_GCJ='+Z'
16572 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16573 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16576 irix5* | irix6* | nonstopux*)
16577 lt_prog_compiler_wl_GCJ='-Wl,'
16578 # PIC (with -KPIC) is the default.
16579 lt_prog_compiler_static_GCJ='-non_shared'
16583 lt_prog_compiler_pic_GCJ='-KPIC'
16584 lt_prog_compiler_static_GCJ='-Bstatic'
16588 case $cc_basename in
16590 lt_prog_compiler_wl_GCJ='-Wl,'
16591 lt_prog_compiler_pic_GCJ='-KPIC'
16592 lt_prog_compiler_static_GCJ='-static'
16594 pgcc* | pgf77* | pgf90* | pgf95*)
16595 # Portland Group compilers (*not* the Pentium gcc compiler,
16596 # which looks to be a dead project)
16597 lt_prog_compiler_wl_GCJ='-Wl,'
16598 lt_prog_compiler_pic_GCJ='-fpic'
16599 lt_prog_compiler_static_GCJ='-Bstatic'
16602 lt_prog_compiler_wl_GCJ='-Wl,'
16603 # All Alpha code is PIC.
16604 lt_prog_compiler_static_GCJ='-non_shared'
16609 osf3* | osf4* | osf5*)
16610 lt_prog_compiler_wl_GCJ='-Wl,'
16611 # All OSF/1 code is PIC.
16612 lt_prog_compiler_static_GCJ='-non_shared'
16616 lt_prog_compiler_pic_GCJ='-KPIC'
16617 lt_prog_compiler_static_GCJ='-Bstatic'
16618 case $cc_basename in
16619 f77* | f90* | f95*)
16620 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16622 lt_prog_compiler_wl_GCJ='-Wl,';;
16627 lt_prog_compiler_wl_GCJ='-Qoption ld '
16628 lt_prog_compiler_pic_GCJ='-PIC'
16629 lt_prog_compiler_static_GCJ='-Bstatic'
16632 sysv4 | sysv4.2uw2* | sysv4.3*)
16633 lt_prog_compiler_wl_GCJ='-Wl,'
16634 lt_prog_compiler_pic_GCJ='-KPIC'
16635 lt_prog_compiler_static_GCJ='-Bstatic'
16639 if test -d /usr/nec ;then
16640 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16641 lt_prog_compiler_static_GCJ='-Bstatic'
16645 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16646 lt_prog_compiler_wl_GCJ='-Wl,'
16647 lt_prog_compiler_pic_GCJ='-KPIC'
16648 lt_prog_compiler_static_GCJ='-Bstatic'
16652 lt_prog_compiler_wl_GCJ='-Wl,'
16653 lt_prog_compiler_can_build_shared_GCJ=no
16657 lt_prog_compiler_pic_GCJ='-pic'
16658 lt_prog_compiler_static_GCJ='-Bstatic'
16662 lt_prog_compiler_can_build_shared_GCJ=no
16667 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16668 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16671 # Check to make sure the PIC flag actually works.
16673 if test -n "$lt_prog_compiler_pic_GCJ"; then
16675 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16676 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16677 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16678 echo $ECHO_N "(cached) $ECHO_C" >&6
16680 lt_prog_compiler_pic_works_GCJ=no
16681 ac_outfile=conftest.$ac_objext
16682 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16683 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16684 # Insert the option either (1) after the last *FLAGS variable, or
16685 # (2) before a word containing "conftest.", or (3) at the end.
16686 # Note that $ac_compile itself does not contain backslashes and begins
16687 # with a dollar sign (not a hyphen), so the echo should work correctly.
16688 # The option is referenced via a variable to avoid confusing sed.
16689 lt_compile=`echo "$ac_compile" | $SED \
16690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16692 -e 's:$: $lt_compiler_flag:'`
16693 (eval echo "\"\$as_me:16693: $lt_compile\"" >&5)
16694 (eval "$lt_compile" 2>conftest.err)
16696 cat conftest.err >&5
16697 echo "$as_me:16697: \$? = $ac_status" >&5
16698 if (exit $ac_status) && test -s "$ac_outfile"; then
16699 # The compiler can only warn and ignore the option if not recognized
16700 # So say no if there are warnings other than the usual output.
16701 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16703 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16704 lt_prog_compiler_pic_works_GCJ=yes
16710 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16711 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16713 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16714 case $lt_prog_compiler_pic_GCJ in
16716 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16719 lt_prog_compiler_pic_GCJ=
16720 lt_prog_compiler_can_build_shared_GCJ=no
16725 # For platforms which do not support PIC, -DPIC is meaningless:
16727 lt_prog_compiler_pic_GCJ=
16730 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16735 # Check to make sure the static flag actually works.
16737 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16738 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16739 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16740 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16741 echo $ECHO_N "(cached) $ECHO_C" >&6
16743 lt_prog_compiler_static_works_GCJ=no
16744 save_LDFLAGS="$LDFLAGS"
16745 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16746 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16747 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16748 # The linker can only warn and ignore the option if not recognized
16749 # So say no if there are warnings
16750 if test -s conftest.err; then
16751 # Append any errors to the config.log.
16752 cat conftest.err 1>&5
16753 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16755 if diff conftest.exp conftest.er2 >/dev/null; then
16756 lt_prog_compiler_static_works_GCJ=yes
16759 lt_prog_compiler_static_works_GCJ=yes
16763 LDFLAGS="$save_LDFLAGS"
16766 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16767 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16769 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16772 lt_prog_compiler_static_GCJ=
16776 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16777 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16778 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16779 echo $ECHO_N "(cached) $ECHO_C" >&6
16781 lt_cv_prog_compiler_c_o_GCJ=no
16782 $rm -r conftest 2>/dev/null
16786 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16788 lt_compiler_flag="-o out/conftest2.$ac_objext"
16789 # Insert the option either (1) after the last *FLAGS variable, or
16790 # (2) before a word containing "conftest.", or (3) at the end.
16791 # Note that $ac_compile itself does not contain backslashes and begins
16792 # with a dollar sign (not a hyphen), so the echo should work correctly.
16793 lt_compile=`echo "$ac_compile" | $SED \
16794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16796 -e 's:$: $lt_compiler_flag:'`
16797 (eval echo "\"\$as_me:16797: $lt_compile\"" >&5)
16798 (eval "$lt_compile" 2>out/conftest.err)
16800 cat out/conftest.err >&5
16801 echo "$as_me:16801: \$? = $ac_status" >&5
16802 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16804 # The compiler can only warn and ignore the option if not recognized
16805 # So say no if there are warnings
16806 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16807 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16808 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16809 lt_cv_prog_compiler_c_o_GCJ=yes
16814 # SGI C++ compiler will create directory out/ii_files/ for
16815 # template instantiation
16816 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16817 $rm out/* && rmdir out
16823 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16824 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16827 hard_links="nottested"
16828 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16829 # do not overwrite the value of need_locks provided by the user
16830 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16831 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16836 ln conftest.a conftest.b 2>&5 || hard_links=no
16837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16838 { echo "$as_me:$LINENO: result: $hard_links" >&5
16839 echo "${ECHO_T}$hard_links" >&6; }
16840 if test "$hard_links" = no; then
16841 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16842 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16849 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16850 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16853 allow_undefined_flag_GCJ=
16854 enable_shared_with_static_runtimes_GCJ=no
16856 archive_expsym_cmds_GCJ=
16857 old_archive_From_new_cmds_GCJ=
16858 old_archive_from_expsyms_cmds_GCJ=
16859 export_dynamic_flag_spec_GCJ=
16860 whole_archive_flag_spec_GCJ=
16861 thread_safe_flag_spec_GCJ=
16862 hardcode_libdir_flag_spec_GCJ=
16863 hardcode_libdir_flag_spec_ld_GCJ=
16864 hardcode_libdir_separator_GCJ=
16865 hardcode_direct_GCJ=no
16866 hardcode_minus_L_GCJ=no
16867 hardcode_shlibpath_var_GCJ=unsupported
16868 link_all_deplibs_GCJ=unknown
16869 hardcode_automatic_GCJ=no
16871 module_expsym_cmds_GCJ=
16872 always_export_symbols_GCJ=no
16873 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16874 # include_expsyms should be a list of space-separated symbols to be *always*
16875 # included in the symbol list
16876 include_expsyms_GCJ=
16877 # exclude_expsyms can be an extended regexp of symbols to exclude
16878 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16879 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16880 # as well as any symbol that contains `d'.
16881 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16882 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16883 # platforms (ab)use it in PIC code, but their linkers get confused if
16884 # the symbol is explicitly referenced. Since portable code cannot
16885 # rely on this symbol name, it's probably fine to never include it in
16886 # preloaded symbol tables.
16887 extract_expsyms_cmds=
16888 # Just being paranoid about ensuring that cc_basename is set.
16889 for cc_temp in $compiler""; do
16891 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16892 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16897 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16900 cygwin* | mingw* | pw32*)
16901 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16902 # When not using gcc, we currently assume that we are using
16903 # Microsoft Visual C++.
16904 if test "$GCC" != yes; then
16909 # we just hope/assume this is gcc and not c89 (= MSVC++)
16918 if test "$with_gnu_ld" = yes; then
16919 # If archive_cmds runs LD, not CC, wlarc should be empty
16922 # Set some defaults for GNU ld with shared library support. These
16923 # are reset later if shared libraries are not supported. Putting them
16924 # here allows them to be overridden if necessary.
16925 runpath_var=LD_RUN_PATH
16926 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16927 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16928 # ancient GNU ld didn't support --whole-archive et. al.
16929 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16930 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16932 whole_archive_flag_spec_GCJ=
16934 supports_anon_versioning=no
16935 case `$LD -v 2>/dev/null` in
16936 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16937 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16938 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16939 *\ 2.11.*) ;; # other 2.11 versions
16940 *) supports_anon_versioning=yes ;;
16943 # See if GNU ld supports shared libraries.
16945 aix3* | aix4* | aix5*)
16946 # On AIX/PPC, the GNU linker is very broken
16947 if test "$host_cpu" != ia64; then
16951 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16952 *** to be unable to reliably create shared libraries on AIX.
16953 *** Therefore, libtool is disabling shared libraries support. If you
16954 *** really care for shared libraries, you may want to modify your PATH
16955 *** so that a non-GNU linker is found, and then restart.
16962 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)'
16963 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16964 hardcode_minus_L_GCJ=yes
16966 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16967 # that the semantics of dynamic libraries on AmigaOS, at least up
16968 # to version 4, is to share data among multiple programs linked
16969 # with the same dynamic library. Since this doesn't match the
16970 # behavior of shared libraries on other platforms, we can't use
16976 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16977 allow_undefined_flag_GCJ=unsupported
16978 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16979 # support --undefined. This deserves some investigation. FIXME
16980 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16986 cygwin* | mingw* | pw32*)
16987 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16988 # as there is no search path for DLLs.
16989 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16990 allow_undefined_flag_GCJ=unsupported
16991 always_export_symbols_GCJ=no
16992 enable_shared_with_static_runtimes_GCJ=yes
16993 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16995 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16996 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16997 # If the export-symbols file already is a .def file (1st line
16998 # is EXPORTS), use it as is; otherwise, prepend...
16999 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17000 cp $export_symbols $output_objdir/$soname.def;
17002 echo EXPORTS > $output_objdir/$soname.def;
17003 cat $export_symbols >> $output_objdir/$soname.def;
17005 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17012 hardcode_direct_GCJ=no
17013 hardcode_shlibpath_var_GCJ=no
17014 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17015 export_dynamic_flag_spec_GCJ='${wl}-E'
17016 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17017 # Instead, shared libraries are loaded at an image base (0x10000000 by
17018 # default) and relocated if they conflict, which is a slow very memory
17019 # consuming and fragmenting process. To avoid this, we pick a random,
17020 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17021 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17022 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'
17023 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'
17027 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17029 case $cc_basename,$host_cpu in
17030 pgcc*) # Portland Group C compiler
17031 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'
17032 tmp_addflag=' $pic_flag'
17034 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17035 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'
17036 tmp_addflag=' $pic_flag -Mnomain' ;;
17037 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17038 tmp_addflag=' -i_dynamic' ;;
17039 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17040 tmp_addflag=' -i_dynamic -nofor_main' ;;
17041 ifc* | ifort*) # Intel Fortran compiler
17042 tmp_addflag=' -nofor_main' ;;
17044 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17046 if test $supports_anon_versioning = yes; then
17047 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17048 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17049 $echo "local: *; };" >> $output_objdir/$libname.ver~
17050 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17058 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17059 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17062 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17063 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17068 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17072 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17073 *** create shared libraries on Solaris systems. Therefore, libtool
17074 *** is disabling shared libraries support. We urge you to upgrade GNU
17075 *** binutils to release 2.9.1 or newer. Another option is to modify
17076 *** your PATH or compiler configuration so that the native linker is
17077 *** used, and then restart.
17080 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17081 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17082 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17089 case `$LD -v 2>&1` in
17090 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17094 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17095 *** reliably create shared libraries on SCO systems. Therefore, libtool
17096 *** is disabling shared libraries support. We urge you to upgrade GNU
17097 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17098 *** your PATH or compiler configuration so that the native linker is
17099 *** used, and then restart.
17104 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17105 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17106 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17107 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17116 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17118 hardcode_direct_GCJ=yes
17119 hardcode_shlibpath_var_GCJ=no
17123 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17124 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17125 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17132 if test "$ld_shlibs_GCJ" = no; then
17134 hardcode_libdir_flag_spec_GCJ=
17135 export_dynamic_flag_spec_GCJ=
17136 whole_archive_flag_spec_GCJ=
17139 # PORTME fill in a description of your system's linker (not GNU ld)
17142 allow_undefined_flag_GCJ=unsupported
17143 always_export_symbols_GCJ=yes
17144 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'
17145 # Note: this linker hardcodes the directories in LIBPATH if there
17146 # are no directories specified by -L.
17147 hardcode_minus_L_GCJ=yes
17148 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17149 # Neither direct hardcoding nor static linking is supported with a
17151 hardcode_direct_GCJ=unsupported
17156 if test "$host_cpu" = ia64; then
17157 # On IA64, the linker does run time linking by default, so we don't
17158 # have to do anything special.
17159 aix_use_runtimelinking=no
17160 exp_sym_flag='-Bexport'
17163 # If we're using GNU nm, then we don't want the "-C" option.
17164 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17165 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17166 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'
17168 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'
17170 aix_use_runtimelinking=no
17172 # Test if we are trying to use run time linking or normal
17173 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17174 # need to do runtime linking.
17175 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17176 for ld_flag in $LDFLAGS; do
17177 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17178 aix_use_runtimelinking=yes
17185 exp_sym_flag='-bexport'
17186 no_entry_flag='-bnoentry'
17189 # When large executables or shared objects are built, AIX ld can
17190 # have problems creating the table of contents. If linking a library
17191 # or program results in "error TOC overflow" add -mminimal-toc to
17192 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17193 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17195 archive_cmds_GCJ=''
17196 hardcode_direct_GCJ=yes
17197 hardcode_libdir_separator_GCJ=':'
17198 link_all_deplibs_GCJ=yes
17200 if test "$GCC" = yes; then
17201 case $host_os in aix4.[012]|aix4.[012].*)
17202 # We only want to do this on AIX 4.2 and lower, the check
17203 # below for broken collect2 doesn't work under 4.3+
17204 collect2name=`${CC} -print-prog-name=collect2`
17205 if test -f "$collect2name" && \
17206 strings "$collect2name" | grep resolve_lib_name >/dev/null
17208 # We have reworked collect2
17209 hardcode_direct_GCJ=yes
17211 # We have old collect2
17212 hardcode_direct_GCJ=unsupported
17213 # It fails to find uninstalled libraries when the uninstalled
17214 # path is not listed in the libpath. Setting hardcode_minus_L
17215 # to unsupported forces relinking
17216 hardcode_minus_L_GCJ=yes
17217 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17218 hardcode_libdir_separator_GCJ=
17222 shared_flag='-shared'
17223 if test "$aix_use_runtimelinking" = yes; then
17224 shared_flag="$shared_flag "'${wl}-G'
17228 if test "$host_cpu" = ia64; then
17229 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17230 # chokes on -Wl,-G. The following line is correct:
17233 if test "$aix_use_runtimelinking" = yes; then
17234 shared_flag='${wl}-G'
17236 shared_flag='${wl}-bM:SRE'
17241 # It seems that -bexpall does not export symbols beginning with
17242 # underscore (_), so it is better to generate a list of symbols to export.
17243 always_export_symbols_GCJ=yes
17244 if test "$aix_use_runtimelinking" = yes; then
17245 # Warning - without using the other runtime loading flags (-brtl),
17246 # -berok will link without error, but may produce a broken library.
17247 allow_undefined_flag_GCJ='-berok'
17248 # Determine the default libpath from the value encoded in an empty executable.
17249 cat >conftest.$ac_ext <<_ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h. */
17264 rm -f conftest.$ac_objext conftest$ac_exeext
17265 if { (ac_try="$ac_link"
17266 case "(($ac_try" in
17267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268 *) ac_try_echo=$ac_try;;
17270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271 (eval "$ac_link") 2>conftest.er1
17273 grep -v '^ *+' conftest.er1 >conftest.err
17275 cat conftest.err >&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); } && {
17278 test -z "$ac_c_werror_flag" ||
17279 test ! -s conftest.err
17280 } && test -s conftest$ac_exeext &&
17281 $as_test_x conftest$ac_exeext; then
17283 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17285 # Check for a 64-bit object if we didn't find anything.
17286 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; }
17289 echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17296 conftest$ac_exeext conftest.$ac_ext
17297 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17299 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17300 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"
17302 if test "$host_cpu" = ia64; then
17303 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17304 allow_undefined_flag_GCJ="-z nodefs"
17305 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"
17307 # Determine the default libpath from the value encoded in an empty executable.
17308 cat >conftest.$ac_ext <<_ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h. */
17323 rm -f conftest.$ac_objext conftest$ac_exeext
17324 if { (ac_try="$ac_link"
17325 case "(($ac_try" in
17326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17327 *) ac_try_echo=$ac_try;;
17329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17330 (eval "$ac_link") 2>conftest.er1
17332 grep -v '^ *+' conftest.er1 >conftest.err
17334 cat conftest.err >&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); } && {
17337 test -z "$ac_c_werror_flag" ||
17338 test ! -s conftest.err
17339 } && test -s conftest$ac_exeext &&
17340 $as_test_x conftest$ac_exeext; then
17342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17344 # Check for a 64-bit object if we didn't find anything.
17345 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; }
17348 echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17355 conftest$ac_exeext conftest.$ac_ext
17356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17358 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17359 # Warning - without using the other run time loading flags,
17360 # -berok will link without error, but may produce a broken library.
17361 no_undefined_flag_GCJ=' ${wl}-bernotok'
17362 allow_undefined_flag_GCJ=' ${wl}-berok'
17363 # Exported symbols can be pulled into shared objects from archives
17364 whole_archive_flag_spec_GCJ='$convenience'
17365 archive_cmds_need_lc_GCJ=yes
17366 # This is similar to how AIX traditionally builds its shared libraries.
17367 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'
17373 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)'
17374 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17375 hardcode_minus_L_GCJ=yes
17376 # see comment about different semantics on the GNU ld section
17381 export_dynamic_flag_spec_GCJ=-rdynamic
17384 cygwin* | mingw* | pw32*)
17385 # When not using gcc, we currently assume that we are using
17386 # Microsoft Visual C++.
17387 # hardcode_libdir_flag_spec is actually meaningless, as there is
17388 # no search path for DLLs.
17389 hardcode_libdir_flag_spec_GCJ=' '
17390 allow_undefined_flag_GCJ=unsupported
17391 # Tell ltmain to make .lib files, not .a files.
17393 # Tell ltmain to make .dll files, not .so files.
17395 # FIXME: Setting linknames here is a bad hack.
17396 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17397 # The linker will automatically build a .lib file if we build a DLL.
17398 old_archive_From_new_cmds_GCJ='true'
17399 # FIXME: Should let the user specify the lib program.
17400 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17401 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17402 enable_shared_with_static_runtimes_GCJ=yes
17405 darwin* | rhapsody*)
17407 rhapsody* | darwin1.[012])
17408 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17411 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17412 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17414 case ${MACOSX_DEPLOYMENT_TARGET} in
17416 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17419 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17425 archive_cmds_need_lc_GCJ=no
17426 hardcode_direct_GCJ=no
17427 hardcode_automatic_GCJ=yes
17428 hardcode_shlibpath_var_GCJ=unsupported
17429 whole_archive_flag_spec_GCJ=''
17430 link_all_deplibs_GCJ=yes
17431 if test "$GCC" = yes ; then
17432 output_verbose_link_cmd='echo'
17433 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17434 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17435 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17436 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}'
17437 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}'
17439 case $cc_basename in
17441 output_verbose_link_cmd='echo'
17442 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17443 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17444 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17445 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}'
17446 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}'
17456 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17457 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17458 hardcode_shlibpath_var_GCJ=no
17465 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17466 # support. Future versions do this automatically, but an explicit c++rt0.o
17467 # does not break anything, and helps significantly (at the cost of a little
17470 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17471 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17472 hardcode_direct_GCJ=yes
17473 hardcode_shlibpath_var_GCJ=no
17476 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17478 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17479 hardcode_direct_GCJ=yes
17480 hardcode_minus_L_GCJ=yes
17481 hardcode_shlibpath_var_GCJ=no
17484 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17485 freebsd* | kfreebsd*-gnu | dragonfly*)
17486 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17487 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17488 hardcode_direct_GCJ=yes
17489 hardcode_shlibpath_var_GCJ=no
17493 if test "$GCC" = yes; then
17494 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'
17496 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'
17498 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17499 hardcode_libdir_separator_GCJ=:
17500 hardcode_direct_GCJ=yes
17502 # hardcode_minus_L: Not really in the search PATH,
17503 # but as the default location of the library.
17504 hardcode_minus_L_GCJ=yes
17505 export_dynamic_flag_spec_GCJ='${wl}-E'
17509 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17510 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17512 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17514 if test "$with_gnu_ld" = no; then
17515 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17516 hardcode_libdir_separator_GCJ=:
17518 hardcode_direct_GCJ=yes
17519 export_dynamic_flag_spec_GCJ='${wl}-E'
17521 # hardcode_minus_L: Not really in the search PATH,
17522 # but as the default location of the library.
17523 hardcode_minus_L_GCJ=yes
17528 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17531 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17534 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17537 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17543 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17546 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17549 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17553 if test "$with_gnu_ld" = no; then
17554 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17555 hardcode_libdir_separator_GCJ=:
17559 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17560 hardcode_direct_GCJ=no
17561 hardcode_shlibpath_var_GCJ=no
17564 hardcode_direct_GCJ=yes
17565 export_dynamic_flag_spec_GCJ='${wl}-E'
17567 # hardcode_minus_L: Not really in the search PATH,
17568 # but as the default location of the library.
17569 hardcode_minus_L_GCJ=yes
17575 irix5* | irix6* | nonstopux*)
17576 if test "$GCC" = yes; then
17577 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'
17579 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'
17580 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17582 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17583 hardcode_libdir_separator_GCJ=:
17584 link_all_deplibs_GCJ=yes
17588 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17589 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17591 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17593 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17594 hardcode_direct_GCJ=yes
17595 hardcode_shlibpath_var_GCJ=no
17599 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17600 hardcode_direct_GCJ=yes
17601 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17602 hardcode_libdir_separator_GCJ=:
17603 hardcode_shlibpath_var_GCJ=no
17607 hardcode_direct_GCJ=yes
17608 hardcode_shlibpath_var_GCJ=no
17609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17610 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17611 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17612 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17613 export_dynamic_flag_spec_GCJ='${wl}-E'
17616 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17617 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17618 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17621 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17622 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17629 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17630 hardcode_minus_L_GCJ=yes
17631 allow_undefined_flag_GCJ=unsupported
17632 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'
17633 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17637 if test "$GCC" = yes; then
17638 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17639 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'
17641 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17642 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'
17644 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17645 hardcode_libdir_separator_GCJ=:
17648 osf4* | osf5*) # as osf3* with the addition of -msym flag
17649 if test "$GCC" = yes; then
17650 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17651 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'
17652 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17654 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17655 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'
17656 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~
17657 $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'
17659 # Both c and cxx compiler support -rpath directly
17660 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17662 hardcode_libdir_separator_GCJ=:
17666 no_undefined_flag_GCJ=' -z text'
17667 if test "$GCC" = yes; then
17669 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17670 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17671 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17674 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17675 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17676 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17678 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17679 hardcode_shlibpath_var_GCJ=no
17681 solaris2.[0-5] | solaris2.[0-5].*) ;;
17683 # The compiler driver will combine linker options so we
17684 # cannot just pass the convience library names through
17685 # without $wl, iff we do not link with $LD.
17686 # Luckily, gcc supports the same syntax we need for Sun Studio.
17687 # Supported since Solaris 2.6 (maybe 2.5.1?)
17690 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17692 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' ;;
17695 link_all_deplibs_GCJ=yes
17699 if test "x$host_vendor" = xsequent; then
17700 # Use $CC to link under sequent, because it throws in some extra .o
17701 # files that make .init and .fini sections work.
17702 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17704 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17706 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17707 hardcode_direct_GCJ=yes
17708 hardcode_minus_L_GCJ=yes
17709 hardcode_shlibpath_var_GCJ=no
17713 case $host_vendor in
17715 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17716 hardcode_direct_GCJ=yes # is this really true???
17719 ## LD is ld it makes a PLAMLIB
17720 ## CC just makes a GrossModule.
17721 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17722 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17723 hardcode_direct_GCJ=no
17726 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17727 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17730 runpath_var='LD_RUN_PATH'
17731 hardcode_shlibpath_var_GCJ=no
17735 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17736 hardcode_shlibpath_var_GCJ=no
17737 export_dynamic_flag_spec_GCJ='-Bexport'
17741 if test -d /usr/nec; then
17742 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17743 hardcode_shlibpath_var_GCJ=no
17744 runpath_var=LD_RUN_PATH
17745 hardcode_runpath_var=yes
17750 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17751 no_undefined_flag_GCJ='${wl}-z,text'
17752 archive_cmds_need_lc_GCJ=no
17753 hardcode_shlibpath_var_GCJ=no
17754 runpath_var='LD_RUN_PATH'
17756 if test "$GCC" = yes; then
17757 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17758 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17760 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17761 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17765 sysv5* | sco3.2v5* | sco5v6*)
17766 # Note: We can NOT use -z defs as we might desire, because we do not
17767 # link with -lc, and that would cause any symbols used from libc to
17768 # always be unresolved, which means just about no library would
17769 # ever link correctly. If we're not using GNU ld we use -z text
17770 # though, which does catch some bad symbols but isn't as heavy-handed
17772 no_undefined_flag_GCJ='${wl}-z,text'
17773 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17774 archive_cmds_need_lc_GCJ=no
17775 hardcode_shlibpath_var_GCJ=no
17776 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17777 hardcode_libdir_separator_GCJ=':'
17778 link_all_deplibs_GCJ=yes
17779 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17780 runpath_var='LD_RUN_PATH'
17782 if test "$GCC" = yes; then
17783 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17784 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17786 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17787 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17792 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17793 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17794 hardcode_shlibpath_var_GCJ=no
17803 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17804 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17805 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17808 # Do we need to explicitly link libc?
17810 case "x$archive_cmds_need_lc_GCJ" in
17812 # Assume -lc should be added
17813 archive_cmds_need_lc_GCJ=yes
17815 if test "$enable_shared" = yes && test "$GCC" = yes; then
17816 case $archive_cmds_GCJ in
17818 # FIXME: we may have to deal with multi-command sequences.
17821 # Test whether the compiler implicitly links with -lc since on some
17822 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17823 # to ld, don't add -lc before -lgcc.
17824 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17825 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17827 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17830 (eval $ac_compile) 2>&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); } 2>conftest.err; then
17836 libobjs=conftest.$ac_objext
17838 wl=$lt_prog_compiler_wl_GCJ
17839 pic_flag=$lt_prog_compiler_pic_GCJ
17845 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17846 allow_undefined_flag_GCJ=
17847 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17848 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }
17853 archive_cmds_need_lc_GCJ=no
17855 archive_cmds_need_lc_GCJ=yes
17857 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17859 cat conftest.err 1>&5
17862 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17863 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17870 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17871 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17872 library_names_spec=
17873 libname_spec='lib$name'
17877 postuninstall_cmds=
17881 shlibpath_overrides_runpath=unknown
17883 dynamic_linker="$host_os ld.so"
17884 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17885 if test "$GCC" = yes; then
17886 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17887 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17888 # if the path contains ";" then we assume it to be the separator
17889 # otherwise default to the standard path separator (i.e. ":") - it is
17890 # assumed that no part of a normal pathname contains ";" but that should
17891 # okay in the real world where ";" in dirpaths is itself problematic.
17892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17897 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17899 need_lib_prefix=unknown
17900 hardcode_into_libs=no
17902 # when you set need_version to no, make sure it does not cause -set_version
17903 # flags to be left without arguments
17904 need_version=unknown
17909 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17910 shlibpath_var=LIBPATH
17912 # AIX 3 has no versioning support, so we append a major version to the name.
17913 soname_spec='${libname}${release}${shared_ext}$major'
17920 hardcode_into_libs=yes
17921 if test "$host_cpu" = ia64; then
17922 # AIX 5 supports IA64
17923 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17924 shlibpath_var=LD_LIBRARY_PATH
17926 # With GCC up to 2.95.x, collect2 would create an import file
17927 # for dependence libraries. The import file would start with
17928 # the line `#! .'. This would cause the generated library to
17929 # depend on `.', always an invalid library. This was fixed in
17930 # development snapshots of GCC prior to 3.0.
17932 aix4 | aix4.[01] | aix4.[01].*)
17933 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17935 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17938 can_build_shared=no
17942 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17943 # soname into executable. Probably we can add versioning support to
17944 # collect2, so additional links can be useful in future.
17945 if test "$aix_use_runtimelinking" = yes; then
17946 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17947 # instead of lib<name>.a to let people know that these are not
17948 # typical AIX shared libraries.
17949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17951 # We preserve .a as extension for shared libraries through AIX4.2
17952 # and later when we are not doing run time linking.
17953 library_names_spec='${libname}${release}.a $libname.a'
17954 soname_spec='${libname}${release}${shared_ext}$major'
17956 shlibpath_var=LIBPATH
17961 library_names_spec='$libname.ixlibrary $libname.a'
17962 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17963 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'
17967 library_names_spec='${libname}${shared_ext}'
17968 dynamic_linker="$host_os ld.so"
17969 shlibpath_var=LIBRARY_PATH
17975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17976 soname_spec='${libname}${release}${shared_ext}$major'
17977 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17978 shlibpath_var=LD_LIBRARY_PATH
17979 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17980 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17981 # the default ld.so.conf also contains /usr/contrib/lib and
17982 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17983 # libtool to hard-code these into programs
17986 cygwin* | mingw* | pw32*)
17987 version_type=windows
17992 case $GCC,$host_os in
17993 yes,cygwin* | yes,mingw* | yes,pw32*)
17994 library_names_spec='$libname.dll.a'
17995 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17996 postinstall_cmds='base_file=`basename \${file}`~
17997 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17998 dldir=$destdir/`dirname \$dlpath`~
17999 test -d \$dldir || mkdir -p \$dldir~
18000 $install_prog $dir/$dlname \$dldir/$dlname~
18001 chmod a+x \$dldir/$dlname'
18002 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18003 dlpath=$dir/\$dldll~
18005 shlibpath_overrides_runpath=yes
18009 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18010 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18011 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18014 # MinGW DLLs use traditional 'lib' prefix
18015 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18016 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18017 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18018 # It is most probably a Windows format PATH printed by
18019 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18020 # path with ; separators, and with drive letters. We can handle the
18021 # drive letters (cygwin fileutils understands them), so leave them,
18022 # especially as we might pass files found there to a mingw objdump,
18023 # which wouldn't understand a cygwinified path. Ahh.
18024 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18026 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18030 # pw32 DLLs use 'pw' prefix rather than 'lib'
18031 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18037 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18040 dynamic_linker='Win32 ld.exe'
18041 # FIXME: first we should search . and the directory the executable is in
18045 darwin* | rhapsody*)
18046 dynamic_linker="$host_os dyld"
18047 version_type=darwin
18050 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18051 soname_spec='${libname}${release}${major}$shared_ext'
18052 shlibpath_overrides_runpath=yes
18053 shlibpath_var=DYLD_LIBRARY_PATH
18054 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18055 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18056 if test "$GCC" = yes; then
18057 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"`
18059 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18061 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18069 soname_spec='${libname}${release}${shared_ext}$major'
18070 shlibpath_var=LD_LIBRARY_PATH
18081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18082 soname_spec='${libname}${release}${shared_ext}$major'
18083 shlibpath_var=LD_LIBRARY_PATH
18084 shlibpath_overrides_runpath=no
18085 hardcode_into_libs=yes
18086 dynamic_linker='GNU ld.so'
18089 freebsd* | dragonfly*)
18090 # DragonFly does not have aout. When/if they implement a new
18091 # versioning mechanism, adjust this.
18092 if test -x /usr/bin/objformat; then
18093 objformat=`/usr/bin/objformat`
18096 freebsd[123]*) objformat=aout ;;
18097 *) objformat=elf ;;
18100 version_type=freebsd-$objformat
18101 case $version_type in
18103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18108 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18112 shlibpath_var=LD_LIBRARY_PATH
18115 shlibpath_overrides_runpath=yes
18117 freebsd3.[01]* | freebsdelf3.[01]*)
18118 shlibpath_overrides_runpath=yes
18119 hardcode_into_libs=yes
18121 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18122 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18123 shlibpath_overrides_runpath=no
18124 hardcode_into_libs=yes
18126 freebsd*) # from 4.6 on
18127 shlibpath_overrides_runpath=yes
18128 hardcode_into_libs=yes
18137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18138 soname_spec='${libname}${release}${shared_ext}$major'
18139 shlibpath_var=LD_LIBRARY_PATH
18140 hardcode_into_libs=yes
18143 hpux9* | hpux10* | hpux11*)
18144 # Give a soname corresponding to the major version so that dld.sl refuses to
18145 # link against other versions.
18152 hardcode_into_libs=yes
18153 dynamic_linker="$host_os dld.so"
18154 shlibpath_var=LD_LIBRARY_PATH
18155 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18157 soname_spec='${libname}${release}${shared_ext}$major'
18158 if test "X$HPUX_IA64_MODE" = X32; then
18159 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18161 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18167 hardcode_into_libs=yes
18168 dynamic_linker="$host_os dld.sl"
18169 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18170 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18172 soname_spec='${libname}${release}${shared_ext}$major'
18173 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18178 dynamic_linker="$host_os dld.sl"
18179 shlibpath_var=SHLIB_PATH
18180 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18182 soname_spec='${libname}${release}${shared_ext}$major'
18185 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18186 postinstall_cmds='chmod 555 $lib'
18193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18194 soname_spec='${libname}${release}${shared_ext}$major'
18195 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18196 shlibpath_var=LD_LIBRARY_PATH
18197 shlibpath_overrides_runpath=no
18198 hardcode_into_libs=yes
18201 irix5* | irix6* | nonstopux*)
18203 nonstopux*) version_type=nonstopux ;;
18205 if test "$lt_cv_prog_gnu_ld" = yes; then
18213 soname_spec='${libname}${release}${shared_ext}$major'
18214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18216 irix5* | nonstopux*)
18217 libsuff= shlibsuff=
18220 case $LD in # libtool.m4 will add one of these switches to LD
18221 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18222 libsuff= shlibsuff= libmagic=32-bit;;
18223 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18224 libsuff=32 shlibsuff=N32 libmagic=N32;;
18225 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18226 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18227 *) libsuff= shlibsuff= libmagic=never-match;;
18231 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18232 shlibpath_overrides_runpath=no
18233 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18234 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18235 hardcode_into_libs=yes
18238 # No shared lib support for Linux oldld, aout, or coff.
18239 linux*oldld* | linux*aout* | linux*coff*)
18243 # This must be Linux ELF.
18248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18249 soname_spec='${libname}${release}${shared_ext}$major'
18250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18251 shlibpath_var=LD_LIBRARY_PATH
18252 shlibpath_overrides_runpath=no
18253 # This implies no fast_install, which is unacceptable.
18254 # Some rework will be needed to allow for fast_install
18255 # before this can be enabled.
18256 hardcode_into_libs=yes
18258 # Append ld.so.conf contents to the search path
18259 if test -f /etc/ld.so.conf; then
18260 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' ' '`
18261 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18264 # We used to test for /lib/ld.so.1 and disable shared libraries on
18265 # powerpc, because MkLinux only supported shared libraries with the
18266 # GNU dynamic linker. Since this was broken with cross compilers,
18267 # most powerpc-linux boxes support dynamic linking these days and
18268 # people can always --disable-shared, the test was removed, and we
18269 # assume the GNU/Linux dynamic linker is in use.
18270 dynamic_linker='GNU/Linux ld.so'
18277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18278 soname_spec='${libname}${release}${shared_ext}$major'
18279 shlibpath_var=LD_LIBRARY_PATH
18280 shlibpath_overrides_runpath=no
18281 hardcode_into_libs=yes
18282 dynamic_linker='GNU ld.so'
18289 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18292 dynamic_linker='NetBSD (a.out) ld.so'
18294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18295 soname_spec='${libname}${release}${shared_ext}$major'
18296 dynamic_linker='NetBSD ld.elf_so'
18298 shlibpath_var=LD_LIBRARY_PATH
18299 shlibpath_overrides_runpath=yes
18300 hardcode_into_libs=yes
18305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18306 shlibpath_var=LD_LIBRARY_PATH
18307 shlibpath_overrides_runpath=yes
18314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18315 soname_spec='${libname}${release}${shared_ext}$major'
18316 shlibpath_var=LD_LIBRARY_PATH
18317 shlibpath_overrides_runpath=yes
18322 sys_lib_dlsearch_path_spec="/usr/lib"
18324 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18326 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18327 *) need_version=no ;;
18329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18331 shlibpath_var=LD_LIBRARY_PATH
18332 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18334 openbsd2.[89] | openbsd2.[89].*)
18335 shlibpath_overrides_runpath=no
18338 shlibpath_overrides_runpath=yes
18342 shlibpath_overrides_runpath=yes
18347 libname_spec='$name'
18350 library_names_spec='$libname${shared_ext} $libname.a'
18351 dynamic_linker='OS/2 ld.exe'
18352 shlibpath_var=LIBPATH
18355 osf3* | osf4* | osf5*)
18359 soname_spec='${libname}${release}${shared_ext}$major'
18360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18361 shlibpath_var=LD_LIBRARY_PATH
18362 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18363 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18371 soname_spec='${libname}${release}${shared_ext}$major'
18372 shlibpath_var=LD_LIBRARY_PATH
18373 shlibpath_overrides_runpath=yes
18374 hardcode_into_libs=yes
18375 # ldd complains unless libraries are executable
18376 postinstall_cmds='chmod +x $lib'
18381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18382 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18383 shlibpath_var=LD_LIBRARY_PATH
18384 shlibpath_overrides_runpath=yes
18385 if test "$with_gnu_ld" = yes; then
18393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18394 soname_spec='${libname}${release}${shared_ext}$major'
18395 shlibpath_var=LD_LIBRARY_PATH
18396 case $host_vendor in
18398 shlibpath_overrides_runpath=no
18400 export_dynamic_flag_spec='${wl}-Blargedynsym'
18401 runpath_var=LD_RUN_PATH
18409 shlibpath_overrides_runpath=no
18410 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18416 if test -d /usr/nec ;then
18418 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18419 soname_spec='$libname${shared_ext}.$major'
18420 shlibpath_var=LD_LIBRARY_PATH
18424 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18425 version_type=freebsd-elf
18428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18429 soname_spec='${libname}${release}${shared_ext}$major'
18430 shlibpath_var=LD_LIBRARY_PATH
18431 hardcode_into_libs=yes
18432 if test "$with_gnu_ld" = yes; then
18433 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18434 shlibpath_overrides_runpath=no
18436 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18437 shlibpath_overrides_runpath=yes
18440 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18444 sys_lib_dlsearch_path_spec='/usr/lib'
18449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18450 soname_spec='${libname}${release}${shared_ext}$major'
18451 shlibpath_var=LD_LIBRARY_PATH
18458 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18459 echo "${ECHO_T}$dynamic_linker" >&6; }
18460 test "$dynamic_linker" = no && can_build_shared=no
18462 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18463 if test "$GCC" = yes; then
18464 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18467 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18468 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18469 hardcode_action_GCJ=
18470 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18471 test -n "$runpath_var_GCJ" || \
18472 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18474 # We can hardcode non-existant directories.
18475 if test "$hardcode_direct_GCJ" != no &&
18476 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18477 # have to relink, otherwise we might link with an installed library
18478 # when we should be linking with a yet-to-be-installed one
18479 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18480 test "$hardcode_minus_L_GCJ" != no; then
18481 # Linking always hardcodes the temporary library directory.
18482 hardcode_action_GCJ=relink
18484 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18485 hardcode_action_GCJ=immediate
18488 # We cannot hardcode anything, or else we can only hardcode existing
18490 hardcode_action_GCJ=unsupported
18492 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18493 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18495 if test "$hardcode_action_GCJ" = relink; then
18496 # Fast installation is not supported
18497 enable_fast_install=no
18498 elif test "$shlibpath_overrides_runpath" = yes ||
18499 test "$enable_shared" = no; then
18500 # Fast installation is not necessary
18501 enable_fast_install=needless
18505 # The else clause should only fire when bootstrapping the
18506 # libtool distribution, otherwise you forgot to ship ltmain.sh
18507 # with your package, and you will get complaints that there are
18508 # no rules to generate ltmain.sh.
18509 if test -f "$ltmain"; then
18510 # See if we are running on zsh, and set the options which allow our commands through
18511 # without removal of \ escapes.
18512 if test -n "${ZSH_VERSION+set}" ; then
18513 setopt NO_GLOB_SUBST
18515 # Now quote all the things that may contain metacharacters while being
18516 # careful not to overquote the AC_SUBSTed values. We take copies of the
18517 # variables and quote the copies for generation of the libtool script.
18518 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18520 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18521 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18522 deplibs_check_method reload_flag reload_cmds need_locks \
18523 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18524 lt_cv_sys_global_symbol_to_c_name_address \
18525 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18526 old_postinstall_cmds old_postuninstall_cmds \
18530 lt_prog_compiler_wl_GCJ \
18531 lt_prog_compiler_pic_GCJ \
18532 lt_prog_compiler_static_GCJ \
18533 lt_prog_compiler_no_builtin_flag_GCJ \
18534 export_dynamic_flag_spec_GCJ \
18535 thread_safe_flag_spec_GCJ \
18536 whole_archive_flag_spec_GCJ \
18537 enable_shared_with_static_runtimes_GCJ \
18538 old_archive_cmds_GCJ \
18539 old_archive_from_new_cmds_GCJ \
18540 predep_objects_GCJ \
18541 postdep_objects_GCJ \
18544 compiler_lib_search_path_GCJ \
18546 archive_expsym_cmds_GCJ \
18547 postinstall_cmds_GCJ \
18548 postuninstall_cmds_GCJ \
18549 old_archive_from_expsyms_cmds_GCJ \
18550 allow_undefined_flag_GCJ \
18551 no_undefined_flag_GCJ \
18552 export_symbols_cmds_GCJ \
18553 hardcode_libdir_flag_spec_GCJ \
18554 hardcode_libdir_flag_spec_ld_GCJ \
18555 hardcode_libdir_separator_GCJ \
18556 hardcode_automatic_GCJ \
18558 module_expsym_cmds_GCJ \
18559 lt_cv_prog_compiler_c_o_GCJ \
18560 exclude_expsyms_GCJ \
18561 include_expsyms_GCJ; do
18564 old_archive_cmds_GCJ | \
18565 old_archive_from_new_cmds_GCJ | \
18566 archive_cmds_GCJ | \
18567 archive_expsym_cmds_GCJ | \
18568 module_cmds_GCJ | \
18569 module_expsym_cmds_GCJ | \
18570 old_archive_from_expsyms_cmds_GCJ | \
18571 export_symbols_cmds_GCJ | \
18572 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18573 postinstall_cmds | postuninstall_cmds | \
18574 old_postinstall_cmds | old_postuninstall_cmds | \
18575 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18576 # Double-quote double-evaled strings.
18577 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18580 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18586 *'\$0 --fallback-echo"')
18587 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18593 cat <<__EOF__ >> "$cfgfile"
18594 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18596 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18598 # Shell to use when invoking shell scripts.
18601 # Whether or not to build shared libraries.
18602 build_libtool_libs=$enable_shared
18604 # Whether or not to build static libraries.
18605 build_old_libs=$enable_static
18607 # Whether or not to add -lc for building shared libraries.
18608 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18610 # Whether or not to disallow shared libs when runtime libs are static
18611 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18613 # Whether or not to optimize for fast installation.
18614 fast_install=$enable_fast_install
18617 host_alias=$host_alias
18621 # The build system.
18622 build_alias=$build_alias
18626 # An echo program that does not interpret backslashes.
18631 AR_FLAGS=$lt_AR_FLAGS
18636 # LTCC compiler flags.
18637 LTCFLAGS=$lt_LTCFLAGS
18639 # A language-specific compiler.
18640 CC=$lt_compiler_GCJ
18642 # Is the compiler the GNU C compiler?
18648 # The linker used to build libraries.
18651 # Whether we need hard or soft links.
18654 # A BSD-compatible nm program.
18657 # A symbol stripping program
18660 # Used to examine libraries when file_magic_cmd begins "file"
18661 MAGIC_CMD=$MAGIC_CMD
18663 # Used on cygwin: DLL creation program.
18666 # Used on cygwin: object dumper.
18669 # Used on cygwin: assembler.
18672 # The name of the directory that contains temporary libtool files.
18675 # How to create reloadable object files.
18676 reload_flag=$lt_reload_flag
18677 reload_cmds=$lt_reload_cmds
18679 # How to pass a linker flag through the compiler.
18680 wl=$lt_lt_prog_compiler_wl_GCJ
18682 # Object file suffix (normally "o").
18683 objext="$ac_objext"
18685 # Old archive suffix (normally "a").
18688 # Shared library suffix (normally ".so").
18689 shrext_cmds='$shrext_cmds'
18691 # Executable file suffix (normally "").
18694 # Additional compiler flags for building library objects.
18695 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18698 # What is the maximum length of a command?
18699 max_cmd_len=$lt_cv_sys_max_cmd_len
18701 # Does compiler simultaneously support -c and -o options?
18702 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18704 # Must we lock files when doing compilation?
18705 need_locks=$lt_need_locks
18707 # Do we need the lib prefix for modules?
18708 need_lib_prefix=$need_lib_prefix
18710 # Do we need a version for libraries?
18711 need_version=$need_version
18713 # Whether dlopen is supported.
18714 dlopen_support=$enable_dlopen
18716 # Whether dlopen of programs is supported.
18717 dlopen_self=$enable_dlopen_self
18719 # Whether dlopen of statically linked programs is supported.
18720 dlopen_self_static=$enable_dlopen_self_static
18722 # Compiler flag to prevent dynamic linking.
18723 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18725 # Compiler flag to turn off builtin functions.
18726 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18728 # Compiler flag to allow reflexive dlopens.
18729 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18731 # Compiler flag to generate shared objects directly from archives.
18732 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18734 # Compiler flag to generate thread-safe objects.
18735 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18737 # Library versioning type.
18738 version_type=$version_type
18740 # Format of library name prefix.
18741 libname_spec=$lt_libname_spec
18743 # List of archive names. First name is the real one, the rest are links.
18744 # The last name is the one that the linker finds with -lNAME.
18745 library_names_spec=$lt_library_names_spec
18747 # The coded name of the library, if different from the real name.
18748 soname_spec=$lt_soname_spec
18750 # Commands used to build and install an old-style archive.
18752 old_archive_cmds=$lt_old_archive_cmds_GCJ
18753 old_postinstall_cmds=$lt_old_postinstall_cmds
18754 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18756 # Create an old-style archive from a shared archive.
18757 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18759 # Create a temporary old-style archive to link instead of a shared archive.
18760 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18762 # Commands used to build and install a shared archive.
18763 archive_cmds=$lt_archive_cmds_GCJ
18764 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18765 postinstall_cmds=$lt_postinstall_cmds
18766 postuninstall_cmds=$lt_postuninstall_cmds
18768 # Commands used to build a loadable module (assumed same as above if empty)
18769 module_cmds=$lt_module_cmds_GCJ
18770 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18772 # Commands to strip libraries.
18773 old_striplib=$lt_old_striplib
18774 striplib=$lt_striplib
18776 # Dependencies to place before the objects being linked to create a
18778 predep_objects=$lt_predep_objects_GCJ
18780 # Dependencies to place after the objects being linked to create a
18782 postdep_objects=$lt_postdep_objects_GCJ
18784 # Dependencies to place before the objects being linked to create a
18786 predeps=$lt_predeps_GCJ
18788 # Dependencies to place after the objects being linked to create a
18790 postdeps=$lt_postdeps_GCJ
18792 # The library search path used internally by the compiler when linking
18793 # a shared library.
18794 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18796 # Method to check whether dependent libraries are shared objects.
18797 deplibs_check_method=$lt_deplibs_check_method
18799 # Command to use when deplibs_check_method == file_magic.
18800 file_magic_cmd=$lt_file_magic_cmd
18802 # Flag that allows shared libraries with undefined symbols to be built.
18803 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18805 # Flag that forces no undefined symbols.
18806 no_undefined_flag=$lt_no_undefined_flag_GCJ
18808 # Commands used to finish a libtool library installation in a directory.
18809 finish_cmds=$lt_finish_cmds
18811 # Same as above, but a single script fragment to be evaled but not shown.
18812 finish_eval=$lt_finish_eval
18814 # Take the output of nm and produce a listing of raw symbols and C names.
18815 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18817 # Transform the output of nm in a proper C declaration
18818 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18820 # Transform the output of nm in a C name address pair
18821 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18823 # This is the shared library runtime path variable.
18824 runpath_var=$runpath_var
18826 # This is the shared library path variable.
18827 shlibpath_var=$shlibpath_var
18829 # Is shlibpath searched before the hard-coded library search path?
18830 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18832 # How to hardcode a shared library path into an executable.
18833 hardcode_action=$hardcode_action_GCJ
18835 # Whether we should hardcode library paths into libraries.
18836 hardcode_into_libs=$hardcode_into_libs
18838 # Flag to hardcode \$libdir into a binary during linking.
18839 # This must work even if \$libdir does not exist.
18840 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18842 # If ld is used when linking, flag to hardcode \$libdir into
18843 # a binary during linking. This must work even if \$libdir does
18845 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18847 # Whether we need a single -rpath flag with a separated argument.
18848 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18850 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18851 # resulting binary.
18852 hardcode_direct=$hardcode_direct_GCJ
18854 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18855 # resulting binary.
18856 hardcode_minus_L=$hardcode_minus_L_GCJ
18858 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18859 # the resulting binary.
18860 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18862 # Set to yes if building a shared library automatically hardcodes DIR into the library
18863 # and all subsequent libraries and executables linked against it.
18864 hardcode_automatic=$hardcode_automatic_GCJ
18866 # Variables whose values should be saved in libtool wrapper scripts and
18867 # restored at relink time.
18868 variables_saved_for_relink="$variables_saved_for_relink"
18870 # Whether libtool must link a program against all its dependency libraries.
18871 link_all_deplibs=$link_all_deplibs_GCJ
18873 # Compile-time system search path for libraries
18874 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18876 # Run-time system search path for libraries
18877 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18879 # Fix the shell variable \$srcfile for the compiler.
18880 fix_srcfile_path="$fix_srcfile_path_GCJ"
18882 # Set to yes if exported symbols are required.
18883 always_export_symbols=$always_export_symbols_GCJ
18885 # The commands to list exported symbols.
18886 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18888 # The commands to extract the exported symbol list from a shared archive.
18889 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18891 # Symbols that should not be listed in the preloaded symbols.
18892 exclude_expsyms=$lt_exclude_expsyms_GCJ
18894 # Symbols that must always be exported.
18895 include_expsyms=$lt_include_expsyms_GCJ
18897 # ### END LIBTOOL TAG CONFIG: $tagname
18903 # If there is no Makefile yet, we rely on a make rule to execute
18904 # `config.status --recheck' to rerun these tests and create the
18905 # libtool script then.
18906 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18907 if test -f "$ltmain_in"; then
18908 test -f Makefile && make "$ltmain"
18914 ac_cpp='$CPP $CPPFLAGS'
18915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18929 # Source file extension for RC test sources.
18932 # Object file extension for compiled RC test sources.
18936 # Code to be used in simple compile tests
18937 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18939 # Code to be used in simple link tests
18940 lt_simple_link_test_code="$lt_simple_compile_test_code"
18942 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18944 # If no C compiler was specified, use CC.
18947 # If no C compiler flags were specified, use CFLAGS.
18948 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18950 # Allow CC to be a program name with arguments.
18954 # save warnings/boilerplate of simple test code
18955 ac_outfile=conftest.$ac_objext
18956 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18957 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18958 _lt_compiler_boilerplate=`cat conftest.err`
18961 ac_outfile=conftest.$ac_objext
18962 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18963 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18964 _lt_linker_boilerplate=`cat conftest.err`
18968 # Allow CC to be a program name with arguments.
18973 for cc_temp in $compiler""; do
18975 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18976 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18981 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18983 lt_cv_prog_compiler_c_o_RC=yes
18985 # The else clause should only fire when bootstrapping the
18986 # libtool distribution, otherwise you forgot to ship ltmain.sh
18987 # with your package, and you will get complaints that there are
18988 # no rules to generate ltmain.sh.
18989 if test -f "$ltmain"; then
18990 # See if we are running on zsh, and set the options which allow our commands through
18991 # without removal of \ escapes.
18992 if test -n "${ZSH_VERSION+set}" ; then
18993 setopt NO_GLOB_SUBST
18995 # Now quote all the things that may contain metacharacters while being
18996 # careful not to overquote the AC_SUBSTed values. We take copies of the
18997 # variables and quote the copies for generation of the libtool script.
18998 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19000 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19001 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19002 deplibs_check_method reload_flag reload_cmds need_locks \
19003 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19004 lt_cv_sys_global_symbol_to_c_name_address \
19005 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19006 old_postinstall_cmds old_postuninstall_cmds \
19010 lt_prog_compiler_wl_RC \
19011 lt_prog_compiler_pic_RC \
19012 lt_prog_compiler_static_RC \
19013 lt_prog_compiler_no_builtin_flag_RC \
19014 export_dynamic_flag_spec_RC \
19015 thread_safe_flag_spec_RC \
19016 whole_archive_flag_spec_RC \
19017 enable_shared_with_static_runtimes_RC \
19018 old_archive_cmds_RC \
19019 old_archive_from_new_cmds_RC \
19020 predep_objects_RC \
19021 postdep_objects_RC \
19024 compiler_lib_search_path_RC \
19026 archive_expsym_cmds_RC \
19027 postinstall_cmds_RC \
19028 postuninstall_cmds_RC \
19029 old_archive_from_expsyms_cmds_RC \
19030 allow_undefined_flag_RC \
19031 no_undefined_flag_RC \
19032 export_symbols_cmds_RC \
19033 hardcode_libdir_flag_spec_RC \
19034 hardcode_libdir_flag_spec_ld_RC \
19035 hardcode_libdir_separator_RC \
19036 hardcode_automatic_RC \
19038 module_expsym_cmds_RC \
19039 lt_cv_prog_compiler_c_o_RC \
19040 exclude_expsyms_RC \
19041 include_expsyms_RC; do
19044 old_archive_cmds_RC | \
19045 old_archive_from_new_cmds_RC | \
19046 archive_cmds_RC | \
19047 archive_expsym_cmds_RC | \
19049 module_expsym_cmds_RC | \
19050 old_archive_from_expsyms_cmds_RC | \
19051 export_symbols_cmds_RC | \
19052 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19053 postinstall_cmds | postuninstall_cmds | \
19054 old_postinstall_cmds | old_postuninstall_cmds | \
19055 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19056 # Double-quote double-evaled strings.
19057 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19060 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19066 *'\$0 --fallback-echo"')
19067 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19073 cat <<__EOF__ >> "$cfgfile"
19074 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19076 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19078 # Shell to use when invoking shell scripts.
19081 # Whether or not to build shared libraries.
19082 build_libtool_libs=$enable_shared
19084 # Whether or not to build static libraries.
19085 build_old_libs=$enable_static
19087 # Whether or not to add -lc for building shared libraries.
19088 build_libtool_need_lc=$archive_cmds_need_lc_RC
19090 # Whether or not to disallow shared libs when runtime libs are static
19091 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19093 # Whether or not to optimize for fast installation.
19094 fast_install=$enable_fast_install
19097 host_alias=$host_alias
19101 # The build system.
19102 build_alias=$build_alias
19106 # An echo program that does not interpret backslashes.
19111 AR_FLAGS=$lt_AR_FLAGS
19116 # LTCC compiler flags.
19117 LTCFLAGS=$lt_LTCFLAGS
19119 # A language-specific compiler.
19122 # Is the compiler the GNU C compiler?
19128 # The linker used to build libraries.
19131 # Whether we need hard or soft links.
19134 # A BSD-compatible nm program.
19137 # A symbol stripping program
19140 # Used to examine libraries when file_magic_cmd begins "file"
19141 MAGIC_CMD=$MAGIC_CMD
19143 # Used on cygwin: DLL creation program.
19146 # Used on cygwin: object dumper.
19149 # Used on cygwin: assembler.
19152 # The name of the directory that contains temporary libtool files.
19155 # How to create reloadable object files.
19156 reload_flag=$lt_reload_flag
19157 reload_cmds=$lt_reload_cmds
19159 # How to pass a linker flag through the compiler.
19160 wl=$lt_lt_prog_compiler_wl_RC
19162 # Object file suffix (normally "o").
19163 objext="$ac_objext"
19165 # Old archive suffix (normally "a").
19168 # Shared library suffix (normally ".so").
19169 shrext_cmds='$shrext_cmds'
19171 # Executable file suffix (normally "").
19174 # Additional compiler flags for building library objects.
19175 pic_flag=$lt_lt_prog_compiler_pic_RC
19178 # What is the maximum length of a command?
19179 max_cmd_len=$lt_cv_sys_max_cmd_len
19181 # Does compiler simultaneously support -c and -o options?
19182 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19184 # Must we lock files when doing compilation?
19185 need_locks=$lt_need_locks
19187 # Do we need the lib prefix for modules?
19188 need_lib_prefix=$need_lib_prefix
19190 # Do we need a version for libraries?
19191 need_version=$need_version
19193 # Whether dlopen is supported.
19194 dlopen_support=$enable_dlopen
19196 # Whether dlopen of programs is supported.
19197 dlopen_self=$enable_dlopen_self
19199 # Whether dlopen of statically linked programs is supported.
19200 dlopen_self_static=$enable_dlopen_self_static
19202 # Compiler flag to prevent dynamic linking.
19203 link_static_flag=$lt_lt_prog_compiler_static_RC
19205 # Compiler flag to turn off builtin functions.
19206 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19208 # Compiler flag to allow reflexive dlopens.
19209 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19211 # Compiler flag to generate shared objects directly from archives.
19212 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19214 # Compiler flag to generate thread-safe objects.
19215 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19217 # Library versioning type.
19218 version_type=$version_type
19220 # Format of library name prefix.
19221 libname_spec=$lt_libname_spec
19223 # List of archive names. First name is the real one, the rest are links.
19224 # The last name is the one that the linker finds with -lNAME.
19225 library_names_spec=$lt_library_names_spec
19227 # The coded name of the library, if different from the real name.
19228 soname_spec=$lt_soname_spec
19230 # Commands used to build and install an old-style archive.
19232 old_archive_cmds=$lt_old_archive_cmds_RC
19233 old_postinstall_cmds=$lt_old_postinstall_cmds
19234 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19236 # Create an old-style archive from a shared archive.
19237 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19239 # Create a temporary old-style archive to link instead of a shared archive.
19240 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19242 # Commands used to build and install a shared archive.
19243 archive_cmds=$lt_archive_cmds_RC
19244 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19245 postinstall_cmds=$lt_postinstall_cmds
19246 postuninstall_cmds=$lt_postuninstall_cmds
19248 # Commands used to build a loadable module (assumed same as above if empty)
19249 module_cmds=$lt_module_cmds_RC
19250 module_expsym_cmds=$lt_module_expsym_cmds_RC
19252 # Commands to strip libraries.
19253 old_striplib=$lt_old_striplib
19254 striplib=$lt_striplib
19256 # Dependencies to place before the objects being linked to create a
19258 predep_objects=$lt_predep_objects_RC
19260 # Dependencies to place after the objects being linked to create a
19262 postdep_objects=$lt_postdep_objects_RC
19264 # Dependencies to place before the objects being linked to create a
19266 predeps=$lt_predeps_RC
19268 # Dependencies to place after the objects being linked to create a
19270 postdeps=$lt_postdeps_RC
19272 # The library search path used internally by the compiler when linking
19273 # a shared library.
19274 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19276 # Method to check whether dependent libraries are shared objects.
19277 deplibs_check_method=$lt_deplibs_check_method
19279 # Command to use when deplibs_check_method == file_magic.
19280 file_magic_cmd=$lt_file_magic_cmd
19282 # Flag that allows shared libraries with undefined symbols to be built.
19283 allow_undefined_flag=$lt_allow_undefined_flag_RC
19285 # Flag that forces no undefined symbols.
19286 no_undefined_flag=$lt_no_undefined_flag_RC
19288 # Commands used to finish a libtool library installation in a directory.
19289 finish_cmds=$lt_finish_cmds
19291 # Same as above, but a single script fragment to be evaled but not shown.
19292 finish_eval=$lt_finish_eval
19294 # Take the output of nm and produce a listing of raw symbols and C names.
19295 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19297 # Transform the output of nm in a proper C declaration
19298 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19300 # Transform the output of nm in a C name address pair
19301 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19303 # This is the shared library runtime path variable.
19304 runpath_var=$runpath_var
19306 # This is the shared library path variable.
19307 shlibpath_var=$shlibpath_var
19309 # Is shlibpath searched before the hard-coded library search path?
19310 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19312 # How to hardcode a shared library path into an executable.
19313 hardcode_action=$hardcode_action_RC
19315 # Whether we should hardcode library paths into libraries.
19316 hardcode_into_libs=$hardcode_into_libs
19318 # Flag to hardcode \$libdir into a binary during linking.
19319 # This must work even if \$libdir does not exist.
19320 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19322 # If ld is used when linking, flag to hardcode \$libdir into
19323 # a binary during linking. This must work even if \$libdir does
19325 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19327 # Whether we need a single -rpath flag with a separated argument.
19328 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19330 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19331 # resulting binary.
19332 hardcode_direct=$hardcode_direct_RC
19334 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19335 # resulting binary.
19336 hardcode_minus_L=$hardcode_minus_L_RC
19338 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19339 # the resulting binary.
19340 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19342 # Set to yes if building a shared library automatically hardcodes DIR into the library
19343 # and all subsequent libraries and executables linked against it.
19344 hardcode_automatic=$hardcode_automatic_RC
19346 # Variables whose values should be saved in libtool wrapper scripts and
19347 # restored at relink time.
19348 variables_saved_for_relink="$variables_saved_for_relink"
19350 # Whether libtool must link a program against all its dependency libraries.
19351 link_all_deplibs=$link_all_deplibs_RC
19353 # Compile-time system search path for libraries
19354 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19356 # Run-time system search path for libraries
19357 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19359 # Fix the shell variable \$srcfile for the compiler.
19360 fix_srcfile_path="$fix_srcfile_path_RC"
19362 # Set to yes if exported symbols are required.
19363 always_export_symbols=$always_export_symbols_RC
19365 # The commands to list exported symbols.
19366 export_symbols_cmds=$lt_export_symbols_cmds_RC
19368 # The commands to extract the exported symbol list from a shared archive.
19369 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19371 # Symbols that should not be listed in the preloaded symbols.
19372 exclude_expsyms=$lt_exclude_expsyms_RC
19374 # Symbols that must always be exported.
19375 include_expsyms=$lt_include_expsyms_RC
19377 # ### END LIBTOOL TAG CONFIG: $tagname
19383 # If there is no Makefile yet, we rely on a make rule to execute
19384 # `config.status --recheck' to rerun these tests and create the
19385 # libtool script then.
19386 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19387 if test -f "$ltmain_in"; then
19388 test -f Makefile && make "$ltmain"
19394 ac_cpp='$CPP $CPPFLAGS'
19395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19404 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19405 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19406 { (exit 1); exit 1; }; }
19410 # Append the new tag name to the list of available tags.
19411 if test -n "$tagname" ; then
19412 available_tags="$available_tags $tagname"
19418 # Now substitute the updated list of available tags.
19419 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19420 mv "${ofile}T" "$ofile"
19424 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19425 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19426 { (exit 1); exit 1; }; }
19432 # This can be used to rebuild libtool when needed
19433 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19435 # Always use our own libtool.
19436 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19438 # Prevent multiple expansion
19451 # Check whether --with-system-libtool was given.
19452 if test "${with_system_libtool+set}" = set; then
19453 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
19454 set dummy libtool; ac_word=$2
19455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19457 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19458 echo $ECHO_N "(cached) $ECHO_C" >&6
19462 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19466 as_dummy="$PATH:/usr/local/bin"
19467 for as_dir in $as_dummy
19470 test -z "$as_dir" && as_dir=.
19471 for ac_exec_ext in '' $ac_executable_extensions; do
19472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19473 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19484 LIBTOOL=$ac_cv_path_LIBTOOL
19485 if test -n "$LIBTOOL"; then
19486 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19487 echo "${ECHO_T}$LIBTOOL" >&6; }
19489 { echo "$as_me:$LINENO: result: no" >&5
19490 echo "${ECHO_T}no" >&6; }
19496 LIBTOOL="`pwd`/libtool"
19516 # Check whether --enable-strict-dependencies was given.
19517 if test "${enable_strict_dependencies+set}" = set; then
19518 enableval=$enable_strict_dependencies;
19522 docdir='${datadir}/doc/freeradius'
19523 { echo "$as_me:$LINENO: checking docdir" >&5
19524 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
19526 # Check whether --with-docdir was given.
19527 if test "${with_docdir+set}" = set; then
19528 withval=$with_docdir; case "$withval" in
19534 [\\/$]* | ?:[\\/]* )
19538 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19539 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19540 { (exit 1); exit 1; }; }
19547 { echo "$as_me:$LINENO: result: $docdir" >&5
19548 echo "${ECHO_T}$docdir" >&6; }
19549 if test "x$docdir" = xno; then
19550 { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
19551 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19554 logdir='${localstatedir}/log/radius'
19555 { echo "$as_me:$LINENO: checking logdir" >&5
19556 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
19558 # Check whether --with-logdir was given.
19559 if test "${with_logdir+set}" = set; then
19560 withval=$with_logdir; case "$withval" in
19562 { { echo "$as_me:$LINENO: error: Need logdir" >&5
19563 echo "$as_me: error: Need logdir" >&2;}
19564 { (exit 1); exit 1; }; }
19568 [\\/$]* | ?:[\\/]* )
19572 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19573 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19574 { (exit 1); exit 1; }; }
19581 { echo "$as_me:$LINENO: result: $logdir" >&5
19582 echo "${ECHO_T}$logdir" >&6; }
19584 radacctdir='${logdir}/radacct'
19585 { echo "$as_me:$LINENO: checking radacctdir" >&5
19586 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
19588 # Check whether --with-radacctdir was given.
19589 if test "${with_radacctdir+set}" = set; then
19590 withval=$with_radacctdir; case "$withval" in
19592 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19593 echo "$as_me: error: Need radacctdir" >&2;}
19594 { (exit 1); exit 1; }; }
19598 [\\/$]* | ?:[\\/]* )
19599 radacctdir="$withval"
19602 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19603 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19604 { (exit 1); exit 1; }; }
19611 { echo "$as_me:$LINENO: result: $radacctdir" >&5
19612 echo "${ECHO_T}$radacctdir" >&6; }
19614 raddbdir='${sysconfdir}/raddb'
19615 { echo "$as_me:$LINENO: checking raddbdir" >&5
19616 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
19618 # Check whether --with-raddbdir was given.
19619 if test "${with_raddbdir+set}" = set; then
19620 withval=$with_raddbdir; case "$withval" in
19622 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19623 echo "$as_me: error: Need raddbdir" >&2;}
19624 { (exit 1); exit 1; }; }
19628 [\\/$]* | ?:[\\/]* )
19629 raddbdir="$withval"
19632 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19633 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19634 { (exit 1); exit 1; }; }
19641 { echo "$as_me:$LINENO: result: $raddbdir" >&5
19642 echo "${ECHO_T}$raddbdir" >&6; }
19646 # Check whether --with-ascend-binary was given.
19647 if test "${with_ascend_binary+set}" = set; then
19648 withval=$with_ascend_binary; case "$withval" in
19657 if test "X$ASCEND_BINARY" = "Xyes"; then
19659 cat >>confdefs.h <<\_ACEOF
19660 #define ASCEND_BINARY
19667 # Check whether --with-threads was given.
19668 if test "${with_threads+set}" = set; then
19669 withval=$with_threads; case "$withval" in
19681 # Check whether --with-vmps was given.
19682 if test "${with_vmps+set}" = set; then
19683 withval=$with_vmps; case "$withval" in
19692 if test "x$WITH_VMPS" = "xyes"; then
19694 cat >>confdefs.h <<\_ACEOF
19695 #define WITH_VMPS 1
19701 # Check whether --with-dhcp was given.
19702 if test "${with_dhcp+set}" = set; then
19703 withval=$with_dhcp; case "$withval" in
19706 cat >>confdefs.h <<\_ACEOF
19707 #define WITH_DHCP 1
19721 # Check whether --with-static_modules was given.
19722 if test "${with_static_modules+set}" = set; then
19723 withval=$with_static_modules;
19724 for i in $withval; do
19725 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19733 # Check whether --with-modules was given.
19734 if test "${with_modules+set}" = set; then
19735 withval=$with_modules;
19736 for i in $withval; do
19737 MODULES="$MODULES $i"
19743 # Check whether --enable-developer was given.
19744 if test "${enable_developer+set}" = set; then
19745 enableval=$enable_developer; case "$enableval" in
19756 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19760 if test "x$developer" != "xno" -a -d $srcdir/.git; then
19766 # Check whether --with-experimental-modules was given.
19767 if test "${with_experimental_modules+set}" = set; then
19768 withval=$with_experimental_modules; case "$withval" in
19780 # Check whether --with-openssl was given.
19781 if test "${with_openssl+set}" = set; then
19782 withval=$with_openssl; case "$withval" in
19794 OPENSSL_INCLUDE_DIR=
19796 # Check whether --with-openssl-includes was given.
19797 if test "${with_openssl_includes+set}" = set; then
19798 withval=$with_openssl_includes; case "$withval" in
19799 *) OPENSSL_INCLUDE_DIR="$withval"
19808 # Check whether --with-openssl-libraries was given.
19809 if test "${with_openssl_libraries+set}" = set; then
19810 withval=$with_openssl_libraries; case "$withval" in
19811 *) OPENSSL_LIB_DIR="$withval"
19820 # Check whether --with-rlm-FOO-lib-dir was given.
19821 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19822 withval=$with_rlm_FOO_lib_dir; case "$withval" in
19831 # Check whether --with-rlm-FOO-include-dir was given.
19832 if test "${with_rlm_FOO_include_dir+set}" = set; then
19833 withval=$with_rlm_FOO_include_dir; case "$withval" in
19844 # Check whether --with-udpfromto was given.
19845 if test "${with_udpfromto+set}" = set; then
19846 withval=$with_udpfromto; case "$withval" in
19857 if test "x$WITH_UDPFROMTO" = "xyes"; then
19859 cat >>confdefs.h <<\_ACEOF
19860 #define WITH_UDPFROMTO
19866 CHECKRAD=checkrad.pl
19867 # Extract the first word of "perl", so it can be a program name with args.
19868 set dummy perl; ac_word=$2
19869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19871 if test "${ac_cv_path_PERL+set}" = set; then
19872 echo $ECHO_N "(cached) $ECHO_C" >&6
19876 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19880 for as_dir in $PATH
19883 test -z "$as_dir" && as_dir=.
19884 for ac_exec_ext in '' $ac_executable_extensions; do
19885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19886 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19894 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19898 PERL=$ac_cv_path_PERL
19899 if test -n "$PERL"; then
19900 { echo "$as_me:$LINENO: result: $PERL" >&5
19901 echo "${ECHO_T}$PERL" >&6; }
19903 { echo "$as_me:$LINENO: result: no" >&5
19904 echo "${ECHO_T}no" >&6; }
19908 if test "x$ac_cv_path_PERL" = "x"; then
19909 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19910 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19912 # Extract the first word of "snmpget", so it can be a program name with args.
19913 set dummy snmpget; ac_word=$2
19914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19916 if test "${ac_cv_path_SNMPGET+set}" = set; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19921 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19925 for as_dir in $PATH
19928 test -z "$as_dir" && as_dir=.
19929 for ac_exec_ext in '' $ac_executable_extensions; do
19930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19931 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19942 SNMPGET=$ac_cv_path_SNMPGET
19943 if test -n "$SNMPGET"; then
19944 { echo "$as_me:$LINENO: result: $SNMPGET" >&5
19945 echo "${ECHO_T}$SNMPGET" >&6; }
19947 { echo "$as_me:$LINENO: result: no" >&5
19948 echo "${ECHO_T}no" >&6; }
19952 if test "x$ac_cv_path_SNMPGET" = "x"; then
19953 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19954 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19957 # Extract the first word of "snmpwalk", so it can be a program name with args.
19958 set dummy snmpwalk; ac_word=$2
19959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19961 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19962 echo $ECHO_N "(cached) $ECHO_C" >&6
19966 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19970 for as_dir in $PATH
19973 test -z "$as_dir" && as_dir=.
19974 for ac_exec_ext in '' $ac_executable_extensions; do
19975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19976 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19987 SNMPWALK=$ac_cv_path_SNMPWALK
19988 if test -n "$SNMPWALK"; then
19989 { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19990 echo "${ECHO_T}$SNMPWALK" >&6; }
19992 { echo "$as_me:$LINENO: result: no" >&5
19993 echo "${ECHO_T}no" >&6; }
19997 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19998 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19999 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20002 # Extract the first word of "rusers", so it can be a program name with args.
20003 set dummy rusers; ac_word=$2
20004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20006 if test "${ac_cv_path_RUSERS+set}" = set; then
20007 echo $ECHO_N "(cached) $ECHO_C" >&6
20011 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20015 for as_dir in $PATH
20018 test -z "$as_dir" && as_dir=.
20019 for ac_exec_ext in '' $ac_executable_extensions; do
20020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20021 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20029 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20033 RUSERS=$ac_cv_path_RUSERS
20034 if test -n "$RUSERS"; then
20035 { echo "$as_me:$LINENO: result: $RUSERS" >&5
20036 echo "${ECHO_T}$RUSERS" >&6; }
20038 { echo "$as_me:$LINENO: result: no" >&5
20039 echo "${ECHO_T}no" >&6; }
20044 missing_dir=`cd $ac_aux_dir && pwd`
20045 # expand $ac_aux_dir to an absolute path
20046 am_aux_dir=`cd $ac_aux_dir && pwd`
20048 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20049 # Use eval to expand $SHELL
20050 if eval "$MISSING --run true"; then
20051 am_missing_run="$MISSING --run "
20054 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20055 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20059 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20062 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20065 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20068 # Extract the first word of "locate", so it can be a program name with args.
20069 set dummy locate; ac_word=$2
20070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20072 if test "${ac_cv_path_LOCATE+set}" = set; then
20073 echo $ECHO_N "(cached) $ECHO_C" >&6
20077 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20081 for as_dir in $PATH
20084 test -z "$as_dir" && as_dir=.
20085 for ac_exec_ext in '' $ac_executable_extensions; do
20086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20087 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20098 LOCATE=$ac_cv_path_LOCATE
20099 if test -n "$LOCATE"; then
20100 { echo "$as_me:$LINENO: result: $LOCATE" >&5
20101 echo "${ECHO_T}$LOCATE" >&6; }
20103 { echo "$as_me:$LINENO: result: no" >&5
20104 echo "${ECHO_T}no" >&6; }
20108 # Extract the first word of "dirname", so it can be a program name with args.
20109 set dummy dirname; ac_word=$2
20110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20112 if test "${ac_cv_path_DIRNAME+set}" = set; then
20113 echo $ECHO_N "(cached) $ECHO_C" >&6
20117 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20121 for as_dir in $PATH
20124 test -z "$as_dir" && as_dir=.
20125 for ac_exec_ext in '' $ac_executable_extensions; do
20126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20127 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20138 DIRNAME=$ac_cv_path_DIRNAME
20139 if test -n "$DIRNAME"; then
20140 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20141 echo "${ECHO_T}$DIRNAME" >&6; }
20143 { echo "$as_me:$LINENO: result: no" >&5
20144 echo "${ECHO_T}no" >&6; }
20148 # Extract the first word of "grep", so it can be a program name with args.
20149 set dummy grep; ac_word=$2
20150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20152 if test "${ac_cv_path_GREP+set}" = set; then
20153 echo $ECHO_N "(cached) $ECHO_C" >&6
20157 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20161 for as_dir in $PATH
20164 test -z "$as_dir" && as_dir=.
20165 for ac_exec_ext in '' $ac_executable_extensions; do
20166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20167 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20178 GREP=$ac_cv_path_GREP
20179 if test -n "$GREP"; then
20180 { echo "$as_me:$LINENO: result: $GREP" >&5
20181 echo "${ECHO_T}$GREP" >&6; }
20183 { echo "$as_me:$LINENO: result: no" >&5
20184 echo "${ECHO_T}no" >&6; }
20191 if test "x$WITH_THREADS" = "xyes"; then
20192 if test $ac_cv_prog_suncc = "yes"; then
20193 CFLAGS="$CFLAGS -mt"
20197 for ac_header in pthread.h
20199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20204 echo $ECHO_N "(cached) $ECHO_C" >&6
20206 ac_res=`eval echo '${'$as_ac_Header'}'`
20207 { echo "$as_me:$LINENO: result: $ac_res" >&5
20208 echo "${ECHO_T}$ac_res" >&6; }
20210 # Is the header compilable?
20211 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20213 cat >conftest.$ac_ext <<_ACEOF
20216 cat confdefs.h >>conftest.$ac_ext
20217 cat >>conftest.$ac_ext <<_ACEOF
20218 /* end confdefs.h. */
20219 $ac_includes_default
20220 #include <$ac_header>
20222 rm -f conftest.$ac_objext
20223 if { (ac_try="$ac_compile"
20224 case "(($ac_try" in
20225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20226 *) ac_try_echo=$ac_try;;
20228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20229 (eval "$ac_compile") 2>conftest.er1
20231 grep -v '^ *+' conftest.er1 >conftest.err
20233 cat conftest.err >&5
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); } && {
20236 test -z "$ac_c_werror_flag" ||
20237 test ! -s conftest.err
20238 } && test -s conftest.$ac_objext; then
20239 ac_header_compiler=yes
20241 echo "$as_me: failed program was:" >&5
20242 sed 's/^/| /' conftest.$ac_ext >&5
20244 ac_header_compiler=no
20247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20249 echo "${ECHO_T}$ac_header_compiler" >&6; }
20251 # Is the header present?
20252 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20254 cat >conftest.$ac_ext <<_ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20260 #include <$ac_header>
20262 if { (ac_try="$ac_cpp conftest.$ac_ext"
20263 case "(($ac_try" in
20264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265 *) ac_try_echo=$ac_try;;
20267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20270 grep -v '^ *+' conftest.er1 >conftest.err
20272 cat conftest.err >&5
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); } >/dev/null && {
20275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20276 test ! -s conftest.err
20278 ac_header_preproc=yes
20280 echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20283 ac_header_preproc=no
20286 rm -f conftest.err conftest.$ac_ext
20287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20288 echo "${ECHO_T}$ac_header_preproc" >&6; }
20290 # So? What about this header?
20291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20297 ac_header_preproc=yes
20300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20307 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
20320 eval "$as_ac_Header=\$ac_header_preproc"
20322 ac_res=`eval echo '${'$as_ac_Header'}'`
20323 { echo "$as_me:$LINENO: result: $ac_res" >&5
20324 echo "${ECHO_T}$ac_res" >&6; }
20327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20328 cat >>confdefs.h <<_ACEOF
20329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20339 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20340 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20341 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20342 echo $ECHO_N "(cached) $ECHO_C" >&6
20344 ac_check_lib_save_LIBS=$LIBS
20345 LIBS="-lpthread $LIBS"
20346 cat >conftest.$ac_ext <<_ACEOF
20349 cat confdefs.h >>conftest.$ac_ext
20350 cat >>conftest.$ac_ext <<_ACEOF
20351 /* end confdefs.h. */
20353 /* Override any GCC internal prototype to avoid an error.
20354 Use char because int might match the return type of a GCC
20355 builtin and then its argument prototype would still apply. */
20359 char pthread_create ();
20363 return pthread_create ();
20368 rm -f conftest.$ac_objext conftest$ac_exeext
20369 if { (ac_try="$ac_link"
20370 case "(($ac_try" in
20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372 *) ac_try_echo=$ac_try;;
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375 (eval "$ac_link") 2>conftest.er1
20377 grep -v '^ *+' conftest.er1 >conftest.err
20379 cat conftest.err >&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } && {
20382 test -z "$ac_c_werror_flag" ||
20383 test ! -s conftest.err
20384 } && test -s conftest$ac_exeext &&
20385 $as_test_x conftest$ac_exeext; then
20386 ac_cv_lib_pthread_pthread_create=yes
20388 echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20391 ac_cv_lib_pthread_pthread_create=no
20394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20395 conftest$ac_exeext conftest.$ac_ext
20396 LIBS=$ac_check_lib_save_LIBS
20398 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20399 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20400 if test $ac_cv_lib_pthread_pthread_create = yes; then
20401 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20402 LIBS="$LIBS -lpthread"
20404 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20405 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20406 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20407 echo $ECHO_N "(cached) $ECHO_C" >&6
20409 ac_check_lib_save_LIBS=$LIBS
20411 cat >conftest.$ac_ext <<_ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20418 /* Override any GCC internal prototype to avoid an error.
20419 Use char because int might match the return type of a GCC
20420 builtin and then its argument prototype would still apply. */
20424 char pthread_create ();
20428 return pthread_create ();
20433 rm -f conftest.$ac_objext conftest$ac_exeext
20434 if { (ac_try="$ac_link"
20435 case "(($ac_try" in
20436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437 *) ac_try_echo=$ac_try;;
20439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20440 (eval "$ac_link") 2>conftest.er1
20442 grep -v '^ *+' conftest.er1 >conftest.err
20444 cat conftest.err >&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); } && {
20447 test -z "$ac_c_werror_flag" ||
20448 test ! -s conftest.err
20449 } && test -s conftest$ac_exeext &&
20450 $as_test_x conftest$ac_exeext; then
20451 ac_cv_lib_c_r_pthread_create=yes
20453 echo "$as_me: failed program was:" >&5
20454 sed 's/^/| /' conftest.$ac_ext >&5
20456 ac_cv_lib_c_r_pthread_create=no
20459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20460 conftest$ac_exeext conftest.$ac_ext
20461 LIBS=$ac_check_lib_save_LIBS
20463 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20464 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20465 if test $ac_cv_lib_c_r_pthread_create = yes; then
20466 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20477 if test "x$WITH_THREADS" != "xyes"; then
20479 ac_cv_header_pthread_h="no"
20483 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20484 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20485 if test "${ac_cv_search_sem_init+set}" = set; then
20486 echo $ECHO_N "(cached) $ECHO_C" >&6
20488 ac_func_search_save_LIBS=$LIBS
20489 cat >conftest.$ac_ext <<_ACEOF
20492 cat confdefs.h >>conftest.$ac_ext
20493 cat >>conftest.$ac_ext <<_ACEOF
20494 /* end confdefs.h. */
20496 /* Override any GCC internal prototype to avoid an error.
20497 Use char because int might match the return type of a GCC
20498 builtin and then its argument prototype would still apply. */
20506 return sem_init ();
20511 for ac_lib in '' pthread sem posix4 rt semaphore; do
20512 if test -z "$ac_lib"; then
20513 ac_res="none required"
20516 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20518 rm -f conftest.$ac_objext conftest$ac_exeext
20519 if { (ac_try="$ac_link"
20520 case "(($ac_try" in
20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522 *) ac_try_echo=$ac_try;;
20524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525 (eval "$ac_link") 2>conftest.er1
20527 grep -v '^ *+' conftest.er1 >conftest.err
20529 cat conftest.err >&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); } && {
20532 test -z "$ac_c_werror_flag" ||
20533 test ! -s conftest.err
20534 } && test -s conftest$ac_exeext &&
20535 $as_test_x conftest$ac_exeext; then
20536 ac_cv_search_sem_init=$ac_res
20538 echo "$as_me: failed program was:" >&5
20539 sed 's/^/| /' conftest.$ac_ext >&5
20544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20546 if test "${ac_cv_search_sem_init+set}" = set; then
20550 if test "${ac_cv_search_sem_init+set}" = set; then
20553 ac_cv_search_sem_init=no
20555 rm conftest.$ac_ext
20556 LIBS=$ac_func_search_save_LIBS
20558 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20559 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20560 ac_res=$ac_cv_search_sem_init
20561 if test "$ac_res" != no; then
20562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20565 { { 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
20566 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;}
20567 { (exit 1); exit 1; }; }
20574 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20575 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20576 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20579 ac_check_lib_save_LIBS=$LIBS
20580 LIBS="-lsocket $LIBS"
20581 cat >conftest.$ac_ext <<_ACEOF
20584 cat confdefs.h >>conftest.$ac_ext
20585 cat >>conftest.$ac_ext <<_ACEOF
20586 /* end confdefs.h. */
20588 /* Override any GCC internal prototype to avoid an error.
20589 Use char because int might match the return type of a GCC
20590 builtin and then its argument prototype would still apply. */
20594 char getsockname ();
20598 return getsockname ();
20603 rm -f conftest.$ac_objext conftest$ac_exeext
20604 if { (ac_try="$ac_link"
20605 case "(($ac_try" in
20606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20607 *) ac_try_echo=$ac_try;;
20609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20610 (eval "$ac_link") 2>conftest.er1
20612 grep -v '^ *+' conftest.er1 >conftest.err
20614 cat conftest.err >&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } && {
20617 test -z "$ac_c_werror_flag" ||
20618 test ! -s conftest.err
20619 } && test -s conftest$ac_exeext &&
20620 $as_test_x conftest$ac_exeext; then
20621 ac_cv_lib_socket_getsockname=yes
20623 echo "$as_me: failed program was:" >&5
20624 sed 's/^/| /' conftest.$ac_ext >&5
20626 ac_cv_lib_socket_getsockname=no
20629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20630 conftest$ac_exeext conftest.$ac_ext
20631 LIBS=$ac_check_lib_save_LIBS
20633 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20634 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20635 if test $ac_cv_lib_socket_getsockname = yes; then
20636 cat >>confdefs.h <<_ACEOF
20637 #define HAVE_LIBSOCKET 1
20640 LIBS="-lsocket $LIBS"
20646 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20647 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20648 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20649 echo $ECHO_N "(cached) $ECHO_C" >&6
20651 ac_check_lib_save_LIBS=$LIBS
20652 LIBS="-lresolv $LIBS"
20653 cat >conftest.$ac_ext <<_ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h. */
20660 /* Override any GCC internal prototype to avoid an error.
20661 Use char because int might match the return type of a GCC
20662 builtin and then its argument prototype would still apply. */
20670 return inet_aton ();
20675 rm -f conftest.$ac_objext conftest$ac_exeext
20676 if { (ac_try="$ac_link"
20677 case "(($ac_try" in
20678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679 *) ac_try_echo=$ac_try;;
20681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682 (eval "$ac_link") 2>conftest.er1
20684 grep -v '^ *+' conftest.er1 >conftest.err
20686 cat conftest.err >&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); } && {
20689 test -z "$ac_c_werror_flag" ||
20690 test ! -s conftest.err
20691 } && test -s conftest$ac_exeext &&
20692 $as_test_x conftest$ac_exeext; then
20693 ac_cv_lib_resolv_inet_aton=yes
20695 echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20698 ac_cv_lib_resolv_inet_aton=no
20701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20702 conftest$ac_exeext conftest.$ac_ext
20703 LIBS=$ac_check_lib_save_LIBS
20705 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20706 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20707 if test $ac_cv_lib_resolv_inet_aton = yes; then
20708 cat >>confdefs.h <<_ACEOF
20709 #define HAVE_LIBRESOLV 1
20712 LIBS="-lresolv $LIBS"
20718 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20719 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
20720 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20721 echo $ECHO_N "(cached) $ECHO_C" >&6
20723 ac_check_lib_save_LIBS=$LIBS
20725 cat >conftest.$ac_ext <<_ACEOF
20728 cat confdefs.h >>conftest.$ac_ext
20729 cat >>conftest.$ac_ext <<_ACEOF
20730 /* end confdefs.h. */
20732 /* Override any GCC internal prototype to avoid an error.
20733 Use char because int might match the return type of a GCC
20734 builtin and then its argument prototype would still apply. */
20742 return inet_ntoa ();
20747 rm -f conftest.$ac_objext conftest$ac_exeext
20748 if { (ac_try="$ac_link"
20749 case "(($ac_try" in
20750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751 *) ac_try_echo=$ac_try;;
20753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754 (eval "$ac_link") 2>conftest.er1
20756 grep -v '^ *+' conftest.er1 >conftest.err
20758 cat conftest.err >&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); } && {
20761 test -z "$ac_c_werror_flag" ||
20762 test ! -s conftest.err
20763 } && test -s conftest$ac_exeext &&
20764 $as_test_x conftest$ac_exeext; then
20765 ac_cv_lib_nsl_inet_ntoa=yes
20767 echo "$as_me: failed program was:" >&5
20768 sed 's/^/| /' conftest.$ac_ext >&5
20770 ac_cv_lib_nsl_inet_ntoa=no
20773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20774 conftest$ac_exeext conftest.$ac_ext
20775 LIBS=$ac_check_lib_save_LIBS
20777 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20778 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
20779 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20780 cat >>confdefs.h <<_ACEOF
20781 #define HAVE_LIBNSL 1
20790 if test "x$WITH_OPENSSL" = xyes; then
20792 if test "x$OPENSSL_LIB_DIR" != "x"; then
20793 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20795 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20796 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
20797 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20798 echo $ECHO_N "(cached) $ECHO_C" >&6
20800 ac_check_lib_save_LIBS=$LIBS
20801 LIBS="-lcrypto $LIBS"
20802 cat >conftest.$ac_ext <<_ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h. */
20809 /* Override any GCC internal prototype to avoid an error.
20810 Use char because int might match the return type of a GCC
20811 builtin and then its argument prototype would still apply. */
20824 rm -f conftest.$ac_objext conftest$ac_exeext
20825 if { (ac_try="$ac_link"
20826 case "(($ac_try" in
20827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20828 *) ac_try_echo=$ac_try;;
20830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20831 (eval "$ac_link") 2>conftest.er1
20833 grep -v '^ *+' conftest.er1 >conftest.err
20835 cat conftest.err >&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); } && {
20838 test -z "$ac_c_werror_flag" ||
20839 test ! -s conftest.err
20840 } && test -s conftest$ac_exeext &&
20841 $as_test_x conftest$ac_exeext; then
20842 ac_cv_lib_crypto_DH_new=yes
20844 echo "$as_me: failed program was:" >&5
20845 sed 's/^/| /' conftest.$ac_ext >&5
20847 ac_cv_lib_crypto_DH_new=no
20850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20851 conftest$ac_exeext conftest.$ac_ext
20852 LIBS=$ac_check_lib_save_LIBS
20854 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20855 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
20856 if test $ac_cv_lib_crypto_DH_new = yes; then
20858 LIBS="-lcrypto $LIBS"
20860 cat >>confdefs.h <<\_ACEOF
20861 #define HAVE_LIBCRYPTO 1
20864 { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20865 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
20866 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20869 ac_check_lib_save_LIBS=$LIBS
20871 cat >conftest.$ac_ext <<_ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20878 /* Override any GCC internal prototype to avoid an error.
20879 Use char because int might match the return type of a GCC
20880 builtin and then its argument prototype would still apply. */
20893 rm -f conftest.$ac_objext conftest$ac_exeext
20894 if { (ac_try="$ac_link"
20895 case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900 (eval "$ac_link") 2>conftest.er1
20902 grep -v '^ *+' conftest.er1 >conftest.err
20904 cat conftest.err >&5
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); } && {
20907 test -z "$ac_c_werror_flag" ||
20908 test ! -s conftest.err
20909 } && test -s conftest$ac_exeext &&
20910 $as_test_x conftest$ac_exeext; then
20911 ac_cv_lib_ssl_SSL_new=yes
20913 echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20916 ac_cv_lib_ssl_SSL_new=no
20919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20920 conftest$ac_exeext conftest.$ac_ext
20921 LIBS=$ac_check_lib_save_LIBS
20923 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20924 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
20925 if test $ac_cv_lib_ssl_SSL_new = yes; then
20928 cat >>confdefs.h <<\_ACEOF
20929 #define HAVE_LIBSSL 1
20932 if test "x$OPENSSL_LIB_DIR" != "x"; then
20933 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20935 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20946 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
20947 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
20948 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
20949 echo $ECHO_N "(cached) $ECHO_C" >&6
20951 ac_check_lib_save_LIBS=$LIBS
20952 LIBS="-lws2_32 $LIBS"
20953 cat >conftest.$ac_ext <<_ACEOF
20956 cat confdefs.h >>conftest.$ac_ext
20957 cat >>conftest.$ac_ext <<_ACEOF
20958 /* end confdefs.h. */
20960 /* Override any GCC internal prototype to avoid an error.
20961 Use char because int might match the return type of a GCC
20962 builtin and then its argument prototype would still apply. */
20975 rm -f conftest.$ac_objext conftest$ac_exeext
20976 if { (ac_try="$ac_link"
20977 case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982 (eval "$ac_link") 2>conftest.er1
20984 grep -v '^ *+' conftest.er1 >conftest.err
20986 cat conftest.err >&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } && {
20989 test -z "$ac_c_werror_flag" ||
20990 test ! -s conftest.err
20991 } && test -s conftest$ac_exeext &&
20992 $as_test_x conftest$ac_exeext; then
20993 ac_cv_lib_ws2_32_htonl=yes
20995 echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20998 ac_cv_lib_ws2_32_htonl=no
21001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21002 conftest$ac_exeext conftest.$ac_ext
21003 LIBS=$ac_check_lib_save_LIBS
21005 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21006 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21007 if test $ac_cv_lib_ws2_32_htonl = yes; then
21008 cat >>confdefs.h <<_ACEOF
21009 #define HAVE_LIBWS2_32 1
21012 LIBS="-lws2_32 $LIBS"
21018 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21019 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21020 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21021 echo $ECHO_N "(cached) $ECHO_C" >&6
21023 ac_check_lib_save_LIBS=$LIBS
21024 LIBS="-lpcap $LIBS"
21025 cat >conftest.$ac_ext <<_ACEOF
21028 cat confdefs.h >>conftest.$ac_ext
21029 cat >>conftest.$ac_ext <<_ACEOF
21030 /* end confdefs.h. */
21032 /* Override any GCC internal prototype to avoid an error.
21033 Use char because int might match the return type of a GCC
21034 builtin and then its argument prototype would still apply. */
21038 char pcap_open_live ();
21042 return pcap_open_live ();
21047 rm -f conftest.$ac_objext conftest$ac_exeext
21048 if { (ac_try="$ac_link"
21049 case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_link") 2>conftest.er1
21056 grep -v '^ *+' conftest.er1 >conftest.err
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } && {
21061 test -z "$ac_c_werror_flag" ||
21062 test ! -s conftest.err
21063 } && test -s conftest$ac_exeext &&
21064 $as_test_x conftest$ac_exeext; then
21065 ac_cv_lib_pcap_pcap_open_live=yes
21067 echo "$as_me: failed program was:" >&5
21068 sed 's/^/| /' conftest.$ac_ext >&5
21070 ac_cv_lib_pcap_pcap_open_live=no
21073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21074 conftest$ac_exeext conftest.$ac_ext
21075 LIBS=$ac_check_lib_save_LIBS
21077 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21078 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21079 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21082 cat >>confdefs.h <<\_ACEOF
21083 #define HAVE_LIBPCAP 1
21088 { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21089 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21094 { echo "$as_me:$LINENO: checking for a readline compatible library" >&5
21095 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6; }
21096 if test "${ac_cv_lib_readline+set}" = set; then
21097 echo $ECHO_N "(cached) $ECHO_C" >&6
21101 for readline_lib in readline edit editline; do
21102 for termcap_lib in "" termcap curses ncurses; do
21103 if test -z "$termcap_lib"; then
21104 TRY_LIB="-l$readline_lib"
21106 TRY_LIB="-l$readline_lib -l$termcap_lib"
21108 LIBS="$ORIG_LIBS $TRY_LIB"
21109 cat >conftest.$ac_ext <<_ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h. */
21116 /* Override any GCC internal prototype to avoid an error.
21117 Use char because int might match the return type of a GCC
21118 builtin and then its argument prototype would still apply. */
21126 return readline ();
21131 rm -f conftest.$ac_objext conftest$ac_exeext
21132 if { (ac_try="$ac_link"
21133 case "(($ac_try" in
21134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21135 *) ac_try_echo=$ac_try;;
21137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21138 (eval "$ac_link") 2>conftest.er1
21140 grep -v '^ *+' conftest.er1 >conftest.err
21142 cat conftest.err >&5
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); } && {
21145 test -z "$ac_c_werror_flag" ||
21146 test ! -s conftest.err
21147 } && test -s conftest$ac_exeext &&
21148 $as_test_x conftest$ac_exeext; then
21149 ac_cv_lib_readline="$TRY_LIB"
21151 echo "$as_me: failed program was:" >&5
21152 sed 's/^/| /' conftest.$ac_ext >&5
21157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21158 conftest$ac_exeext conftest.$ac_ext
21159 if test -n "$ac_cv_lib_readline"; then
21160 LIBREADLINE="$TRY_LIB"
21165 if test -n "$ac_cv_lib_readline"; then
21169 if test -z "$ac_cv_lib_readline"; then
21170 ac_cv_lib_readline="no"
21175 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
21176 echo "${ECHO_T}$ac_cv_lib_readline" >&6; }
21178 if test "$ac_cv_lib_readline" != "no"; then
21180 cat >>confdefs.h <<\_ACEOF
21181 #define HAVE_LIBREADLINE 1
21186 for ac_header in readline.h readline/readline.h
21188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21193 echo $ECHO_N "(cached) $ECHO_C" >&6
21195 ac_res=`eval echo '${'$as_ac_Header'}'`
21196 { echo "$as_me:$LINENO: result: $ac_res" >&5
21197 echo "${ECHO_T}$ac_res" >&6; }
21199 # Is the header compilable?
21200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21202 cat >conftest.$ac_ext <<_ACEOF
21205 cat confdefs.h >>conftest.$ac_ext
21206 cat >>conftest.$ac_ext <<_ACEOF
21207 /* end confdefs.h. */
21208 $ac_includes_default
21209 #include <$ac_header>
21211 rm -f conftest.$ac_objext
21212 if { (ac_try="$ac_compile"
21213 case "(($ac_try" in
21214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21215 *) ac_try_echo=$ac_try;;
21217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21218 (eval "$ac_compile") 2>conftest.er1
21220 grep -v '^ *+' conftest.er1 >conftest.err
21222 cat conftest.err >&5
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); } && {
21225 test -z "$ac_c_werror_flag" ||
21226 test ! -s conftest.err
21227 } && test -s conftest.$ac_objext; then
21228 ac_header_compiler=yes
21230 echo "$as_me: failed program was:" >&5
21231 sed 's/^/| /' conftest.$ac_ext >&5
21233 ac_header_compiler=no
21236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21238 echo "${ECHO_T}$ac_header_compiler" >&6; }
21240 # Is the header present?
21241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21243 cat >conftest.$ac_ext <<_ACEOF
21246 cat confdefs.h >>conftest.$ac_ext
21247 cat >>conftest.$ac_ext <<_ACEOF
21248 /* end confdefs.h. */
21249 #include <$ac_header>
21251 if { (ac_try="$ac_cpp conftest.$ac_ext"
21252 case "(($ac_try" in
21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254 *) ac_try_echo=$ac_try;;
21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21259 grep -v '^ *+' conftest.er1 >conftest.err
21261 cat conftest.err >&5
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); } >/dev/null && {
21264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21265 test ! -s conftest.err
21267 ac_header_preproc=yes
21269 echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21272 ac_header_preproc=no
21275 rm -f conftest.err conftest.$ac_ext
21276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21277 echo "${ECHO_T}$ac_header_preproc" >&6; }
21279 # So? What about this header?
21280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21286 ac_header_preproc=yes
21289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21304 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21307 echo $ECHO_N "(cached) $ECHO_C" >&6
21309 eval "$as_ac_Header=\$ac_header_preproc"
21311 ac_res=`eval echo '${'$as_ac_Header'}'`
21312 { echo "$as_me:$LINENO: result: $ac_res" >&5
21313 echo "${ECHO_T}$ac_res" >&6; }
21316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21317 cat >>confdefs.h <<_ACEOF
21318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21325 { echo "$as_me:$LINENO: checking whether readline supports history" >&5
21326 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6; }
21327 if test "${ac_cv_lib_readline_history+set}" = set; then
21328 echo $ECHO_N "(cached) $ECHO_C" >&6
21331 ac_cv_lib_readline_history="no"
21332 cat >conftest.$ac_ext <<_ACEOF
21335 cat confdefs.h >>conftest.$ac_ext
21336 cat >>conftest.$ac_ext <<_ACEOF
21337 /* end confdefs.h. */
21339 /* Override any GCC internal prototype to avoid an error.
21340 Use char because int might match the return type of a GCC
21341 builtin and then its argument prototype would still apply. */
21345 char add_history ();
21349 return add_history ();
21354 rm -f conftest.$ac_objext conftest$ac_exeext
21355 if { (ac_try="$ac_link"
21356 case "(($ac_try" in
21357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21358 *) ac_try_echo=$ac_try;;
21360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21361 (eval "$ac_link") 2>conftest.er1
21363 grep -v '^ *+' conftest.er1 >conftest.err
21365 cat conftest.err >&5
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); } && {
21368 test -z "$ac_c_werror_flag" ||
21369 test ! -s conftest.err
21370 } && test -s conftest$ac_exeext &&
21371 $as_test_x conftest$ac_exeext; then
21372 ac_cv_lib_readline_history="yes"
21374 echo "$as_me: failed program was:" >&5
21375 sed 's/^/| /' conftest.$ac_ext >&5
21380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21381 conftest$ac_exeext conftest.$ac_ext
21384 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
21385 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6; }
21386 if test "$ac_cv_lib_readline_history" = "yes"; then
21388 cat >>confdefs.h <<\_ACEOF
21389 #define HAVE_READLINE_HISTORY 1
21394 for ac_header in history.h readline/history.h
21396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21401 echo $ECHO_N "(cached) $ECHO_C" >&6
21403 ac_res=`eval echo '${'$as_ac_Header'}'`
21404 { echo "$as_me:$LINENO: result: $ac_res" >&5
21405 echo "${ECHO_T}$ac_res" >&6; }
21407 # Is the header compilable?
21408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21410 cat >conftest.$ac_ext <<_ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h. */
21416 $ac_includes_default
21417 #include <$ac_header>
21419 rm -f conftest.$ac_objext
21420 if { (ac_try="$ac_compile"
21421 case "(($ac_try" in
21422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423 *) ac_try_echo=$ac_try;;
21425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426 (eval "$ac_compile") 2>conftest.er1
21428 grep -v '^ *+' conftest.er1 >conftest.err
21430 cat conftest.err >&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } && {
21433 test -z "$ac_c_werror_flag" ||
21434 test ! -s conftest.err
21435 } && test -s conftest.$ac_objext; then
21436 ac_header_compiler=yes
21438 echo "$as_me: failed program was:" >&5
21439 sed 's/^/| /' conftest.$ac_ext >&5
21441 ac_header_compiler=no
21444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21446 echo "${ECHO_T}$ac_header_compiler" >&6; }
21448 # Is the header present?
21449 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21451 cat >conftest.$ac_ext <<_ACEOF
21454 cat confdefs.h >>conftest.$ac_ext
21455 cat >>conftest.$ac_ext <<_ACEOF
21456 /* end confdefs.h. */
21457 #include <$ac_header>
21459 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
21467 grep -v '^ *+' conftest.er1 >conftest.err
21469 cat conftest.err >&5
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); } >/dev/null && {
21472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21473 test ! -s conftest.err
21475 ac_header_preproc=yes
21477 echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21480 ac_header_preproc=no
21483 rm -f conftest.err conftest.$ac_ext
21484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21485 echo "${ECHO_T}$ac_header_preproc" >&6; }
21487 # So? What about this header?
21488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21494 ac_header_preproc=yes
21497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21515 echo $ECHO_N "(cached) $ECHO_C" >&6
21517 eval "$as_ac_Header=\$ac_header_preproc"
21519 ac_res=`eval echo '${'$as_ac_Header'}'`
21520 { echo "$as_me:$LINENO: result: $ac_res" >&5
21521 echo "${ECHO_T}$ac_res" >&6; }
21524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21525 cat >>confdefs.h <<_ACEOF
21526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21540 CFLAGS="$CFLAGS -D_ALL_SOURCE"
21543 CFLAGS="$CFLAGS -DDARWIN"
21544 LIBS="-framework DirectoryService $LIBS"
21553 ac_header_dirent=no
21554 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21555 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21556 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21557 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21559 echo $ECHO_N "(cached) $ECHO_C" >&6
21561 cat >conftest.$ac_ext <<_ACEOF
21564 cat confdefs.h >>conftest.$ac_ext
21565 cat >>conftest.$ac_ext <<_ACEOF
21566 /* end confdefs.h. */
21567 #include <sys/types.h>
21579 rm -f conftest.$ac_objext
21580 if { (ac_try="$ac_compile"
21581 case "(($ac_try" in
21582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21583 *) ac_try_echo=$ac_try;;
21585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21586 (eval "$ac_compile") 2>conftest.er1
21588 grep -v '^ *+' conftest.er1 >conftest.err
21590 cat conftest.err >&5
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); } && {
21593 test -z "$ac_c_werror_flag" ||
21594 test ! -s conftest.err
21595 } && test -s conftest.$ac_objext; then
21596 eval "$as_ac_Header=yes"
21598 echo "$as_me: failed program was:" >&5
21599 sed 's/^/| /' conftest.$ac_ext >&5
21601 eval "$as_ac_Header=no"
21604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21606 ac_res=`eval echo '${'$as_ac_Header'}'`
21607 { echo "$as_me:$LINENO: result: $ac_res" >&5
21608 echo "${ECHO_T}$ac_res" >&6; }
21609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21610 cat >>confdefs.h <<_ACEOF
21611 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21614 ac_header_dirent=$ac_hdr; break
21618 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21619 if test $ac_header_dirent = dirent.h; then
21620 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21621 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21622 if test "${ac_cv_search_opendir+set}" = set; then
21623 echo $ECHO_N "(cached) $ECHO_C" >&6
21625 ac_func_search_save_LIBS=$LIBS
21626 cat >conftest.$ac_ext <<_ACEOF
21629 cat confdefs.h >>conftest.$ac_ext
21630 cat >>conftest.$ac_ext <<_ACEOF
21631 /* end confdefs.h. */
21633 /* Override any GCC internal prototype to avoid an error.
21634 Use char because int might match the return type of a GCC
21635 builtin and then its argument prototype would still apply. */
21648 for ac_lib in '' dir; do
21649 if test -z "$ac_lib"; then
21650 ac_res="none required"
21653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21655 rm -f conftest.$ac_objext conftest$ac_exeext
21656 if { (ac_try="$ac_link"
21657 case "(($ac_try" in
21658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21659 *) ac_try_echo=$ac_try;;
21661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21662 (eval "$ac_link") 2>conftest.er1
21664 grep -v '^ *+' conftest.er1 >conftest.err
21666 cat conftest.err >&5
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); } && {
21669 test -z "$ac_c_werror_flag" ||
21670 test ! -s conftest.err
21671 } && test -s conftest$ac_exeext &&
21672 $as_test_x conftest$ac_exeext; then
21673 ac_cv_search_opendir=$ac_res
21675 echo "$as_me: failed program was:" >&5
21676 sed 's/^/| /' conftest.$ac_ext >&5
21681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21683 if test "${ac_cv_search_opendir+set}" = set; then
21687 if test "${ac_cv_search_opendir+set}" = set; then
21690 ac_cv_search_opendir=no
21692 rm conftest.$ac_ext
21693 LIBS=$ac_func_search_save_LIBS
21695 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21696 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21697 ac_res=$ac_cv_search_opendir
21698 if test "$ac_res" != no; then
21699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21704 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21705 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21706 if test "${ac_cv_search_opendir+set}" = set; then
21707 echo $ECHO_N "(cached) $ECHO_C" >&6
21709 ac_func_search_save_LIBS=$LIBS
21710 cat >conftest.$ac_ext <<_ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h. */
21717 /* Override any GCC internal prototype to avoid an error.
21718 Use char because int might match the return type of a GCC
21719 builtin and then its argument prototype would still apply. */
21732 for ac_lib in '' x; do
21733 if test -z "$ac_lib"; then
21734 ac_res="none required"
21737 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21739 rm -f conftest.$ac_objext conftest$ac_exeext
21740 if { (ac_try="$ac_link"
21741 case "(($ac_try" in
21742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21743 *) ac_try_echo=$ac_try;;
21745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21746 (eval "$ac_link") 2>conftest.er1
21748 grep -v '^ *+' conftest.er1 >conftest.err
21750 cat conftest.err >&5
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); } && {
21753 test -z "$ac_c_werror_flag" ||
21754 test ! -s conftest.err
21755 } && test -s conftest$ac_exeext &&
21756 $as_test_x conftest$ac_exeext; then
21757 ac_cv_search_opendir=$ac_res
21759 echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21767 if test "${ac_cv_search_opendir+set}" = set; then
21771 if test "${ac_cv_search_opendir+set}" = set; then
21774 ac_cv_search_opendir=no
21776 rm conftest.$ac_ext
21777 LIBS=$ac_func_search_save_LIBS
21779 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21780 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21781 ac_res=$ac_cv_search_opendir
21782 if test "$ac_res" != no; then
21783 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21789 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21790 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21791 if test "${ac_cv_header_stdc+set}" = set; then
21792 echo $ECHO_N "(cached) $ECHO_C" >&6
21794 cat >conftest.$ac_ext <<_ACEOF
21797 cat confdefs.h >>conftest.$ac_ext
21798 cat >>conftest.$ac_ext <<_ACEOF
21799 /* end confdefs.h. */
21800 #include <stdlib.h>
21801 #include <stdarg.h>
21802 #include <string.h>
21813 rm -f conftest.$ac_objext
21814 if { (ac_try="$ac_compile"
21815 case "(($ac_try" in
21816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817 *) ac_try_echo=$ac_try;;
21819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21820 (eval "$ac_compile") 2>conftest.er1
21822 grep -v '^ *+' conftest.er1 >conftest.err
21824 cat conftest.err >&5
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); } && {
21827 test -z "$ac_c_werror_flag" ||
21828 test ! -s conftest.err
21829 } && test -s conftest.$ac_objext; then
21830 ac_cv_header_stdc=yes
21832 echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21835 ac_cv_header_stdc=no
21838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21840 if test $ac_cv_header_stdc = yes; then
21841 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21842 cat >conftest.$ac_ext <<_ACEOF
21845 cat confdefs.h >>conftest.$ac_ext
21846 cat >>conftest.$ac_ext <<_ACEOF
21847 /* end confdefs.h. */
21848 #include <string.h>
21851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21852 $EGREP "memchr" >/dev/null 2>&1; then
21855 ac_cv_header_stdc=no
21861 if test $ac_cv_header_stdc = yes; then
21862 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21863 cat >conftest.$ac_ext <<_ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h. */
21869 #include <stdlib.h>
21872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21873 $EGREP "free" >/dev/null 2>&1; then
21876 ac_cv_header_stdc=no
21882 if test $ac_cv_header_stdc = yes; then
21883 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21884 if test "$cross_compiling" = yes; then
21887 cat >conftest.$ac_ext <<_ACEOF
21890 cat confdefs.h >>conftest.$ac_ext
21891 cat >>conftest.$ac_ext <<_ACEOF
21892 /* end confdefs.h. */
21894 #include <stdlib.h>
21895 #if ((' ' & 0x0FF) == 0x020)
21896 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21897 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21899 # define ISLOWER(c) \
21900 (('a' <= (c) && (c) <= 'i') \
21901 || ('j' <= (c) && (c) <= 'r') \
21902 || ('s' <= (c) && (c) <= 'z'))
21903 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21906 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21911 for (i = 0; i < 256; i++)
21912 if (XOR (islower (i), ISLOWER (i))
21913 || toupper (i) != TOUPPER (i))
21918 rm -f conftest$ac_exeext
21919 if { (ac_try="$ac_link"
21920 case "(($ac_try" in
21921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922 *) ac_try_echo=$ac_try;;
21924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925 (eval "$ac_link") 2>&5
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21929 { (case "(($ac_try" in
21930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931 *) ac_try_echo=$ac_try;;
21933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21934 (eval "$ac_try") 2>&5
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); }; }; then
21940 echo "$as_me: program exited with status $ac_status" >&5
21941 echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21944 ( exit $ac_status )
21945 ac_cv_header_stdc=no
21947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21953 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21954 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21955 if test $ac_cv_header_stdc = yes; then
21957 cat >>confdefs.h <<\_ACEOF
21958 #define STDC_HEADERS 1
21963 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21964 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21965 if test "${ac_cv_header_time+set}" = set; then
21966 echo $ECHO_N "(cached) $ECHO_C" >&6
21968 cat >conftest.$ac_ext <<_ACEOF
21971 cat confdefs.h >>conftest.$ac_ext
21972 cat >>conftest.$ac_ext <<_ACEOF
21973 /* end confdefs.h. */
21974 #include <sys/types.h>
21975 #include <sys/time.h>
21981 if ((struct tm *) 0)
21987 rm -f conftest.$ac_objext
21988 if { (ac_try="$ac_compile"
21989 case "(($ac_try" in
21990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21991 *) ac_try_echo=$ac_try;;
21993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21994 (eval "$ac_compile") 2>conftest.er1
21996 grep -v '^ *+' conftest.er1 >conftest.err
21998 cat conftest.err >&5
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); } && {
22001 test -z "$ac_c_werror_flag" ||
22002 test ! -s conftest.err
22003 } && test -s conftest.$ac_objext; then
22004 ac_cv_header_time=yes
22006 echo "$as_me: failed program was:" >&5
22007 sed 's/^/| /' conftest.$ac_ext >&5
22009 ac_cv_header_time=no
22012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22014 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22015 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22016 if test $ac_cv_header_time = yes; then
22018 cat >>confdefs.h <<\_ACEOF
22019 #define TIME_WITH_SYS_TIME 1
22024 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22025 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22026 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22027 echo $ECHO_N "(cached) $ECHO_C" >&6
22029 cat >conftest.$ac_ext <<_ACEOF
22032 cat confdefs.h >>conftest.$ac_ext
22033 cat >>conftest.$ac_ext <<_ACEOF
22034 /* end confdefs.h. */
22035 #include <sys/types.h>
22036 #include <sys/wait.h>
22037 #ifndef WEXITSTATUS
22038 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22041 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22049 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22054 rm -f conftest.$ac_objext
22055 if { (ac_try="$ac_compile"
22056 case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_compile") 2>conftest.er1
22063 grep -v '^ *+' conftest.er1 >conftest.err
22065 cat conftest.err >&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } && {
22068 test -z "$ac_c_werror_flag" ||
22069 test ! -s conftest.err
22070 } && test -s conftest.$ac_objext; then
22071 ac_cv_header_sys_wait_h=yes
22073 echo "$as_me: failed program was:" >&5
22074 sed 's/^/| /' conftest.$ac_ext >&5
22076 ac_cv_header_sys_wait_h=no
22079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22081 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22082 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22083 if test $ac_cv_header_sys_wait_h = yes; then
22085 cat >>confdefs.h <<\_ACEOF
22086 #define HAVE_SYS_WAIT_H 1
22165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22170 echo $ECHO_N "(cached) $ECHO_C" >&6
22172 ac_res=`eval echo '${'$as_ac_Header'}'`
22173 { echo "$as_me:$LINENO: result: $ac_res" >&5
22174 echo "${ECHO_T}$ac_res" >&6; }
22176 # Is the header compilable?
22177 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22178 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22179 cat >conftest.$ac_ext <<_ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h. */
22185 $ac_includes_default
22186 #include <$ac_header>
22188 rm -f conftest.$ac_objext
22189 if { (ac_try="$ac_compile"
22190 case "(($ac_try" in
22191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192 *) ac_try_echo=$ac_try;;
22194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22195 (eval "$ac_compile") 2>conftest.er1
22197 grep -v '^ *+' conftest.er1 >conftest.err
22199 cat conftest.err >&5
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); } && {
22202 test -z "$ac_c_werror_flag" ||
22203 test ! -s conftest.err
22204 } && test -s conftest.$ac_objext; then
22205 ac_header_compiler=yes
22207 echo "$as_me: failed program was:" >&5
22208 sed 's/^/| /' conftest.$ac_ext >&5
22210 ac_header_compiler=no
22213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22215 echo "${ECHO_T}$ac_header_compiler" >&6; }
22217 # Is the header present?
22218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22220 cat >conftest.$ac_ext <<_ACEOF
22223 cat confdefs.h >>conftest.$ac_ext
22224 cat >>conftest.$ac_ext <<_ACEOF
22225 /* end confdefs.h. */
22226 #include <$ac_header>
22228 if { (ac_try="$ac_cpp conftest.$ac_ext"
22229 case "(($ac_try" in
22230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231 *) ac_try_echo=$ac_try;;
22233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22236 grep -v '^ *+' conftest.er1 >conftest.err
22238 cat conftest.err >&5
22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); } >/dev/null && {
22241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22242 test ! -s conftest.err
22244 ac_header_preproc=yes
22246 echo "$as_me: failed program was:" >&5
22247 sed 's/^/| /' conftest.$ac_ext >&5
22249 ac_header_preproc=no
22252 rm -f conftest.err conftest.$ac_ext
22253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22254 echo "${ECHO_T}$ac_header_preproc" >&6; }
22256 # So? What about this header?
22257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22263 ac_header_preproc=yes
22266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22284 echo $ECHO_N "(cached) $ECHO_C" >&6
22286 eval "$as_ac_Header=\$ac_header_preproc"
22288 ac_res=`eval echo '${'$as_ac_Header'}'`
22289 { echo "$as_me:$LINENO: result: $ac_res" >&5
22290 echo "${ECHO_T}$ac_res" >&6; }
22293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22294 cat >>confdefs.h <<_ACEOF
22295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22304 for ac_header in net/if.h
22306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22310 echo $ECHO_N "(cached) $ECHO_C" >&6
22312 cat >conftest.$ac_ext <<_ACEOF
22315 cat confdefs.h >>conftest.$ac_ext
22316 cat >>conftest.$ac_ext <<_ACEOF
22317 /* end confdefs.h. */
22318 #ifdef HAVE_SYS_SOCKET_H
22319 # include <sys/socket.h>
22323 #include <$ac_header>
22325 rm -f conftest.$ac_objext
22326 if { (ac_try="$ac_compile"
22327 case "(($ac_try" in
22328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22329 *) ac_try_echo=$ac_try;;
22331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22332 (eval "$ac_compile") 2>conftest.er1
22334 grep -v '^ *+' conftest.er1 >conftest.err
22336 cat conftest.err >&5
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); } && {
22339 test -z "$ac_c_werror_flag" ||
22340 test ! -s conftest.err
22341 } && test -s conftest.$ac_objext; then
22342 eval "$as_ac_Header=yes"
22344 echo "$as_me: failed program was:" >&5
22345 sed 's/^/| /' conftest.$ac_ext >&5
22347 eval "$as_ac_Header=no"
22350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22352 ac_res=`eval echo '${'$as_ac_Header'}'`
22353 { echo "$as_me:$LINENO: result: $ac_res" >&5
22354 echo "${ECHO_T}$ac_res" >&6; }
22355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22356 cat >>confdefs.h <<_ACEOF
22357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22366 if test "${ac_cv_header_regex_h+set}" = set; then
22367 { echo "$as_me:$LINENO: checking for regex.h" >&5
22368 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22369 if test "${ac_cv_header_regex_h+set}" = set; then
22370 echo $ECHO_N "(cached) $ECHO_C" >&6
22372 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22373 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22375 # Is the header compilable?
22376 { echo "$as_me:$LINENO: checking regex.h usability" >&5
22377 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
22378 cat >conftest.$ac_ext <<_ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h. */
22384 $ac_includes_default
22387 rm -f conftest.$ac_objext
22388 if { (ac_try="$ac_compile"
22389 case "(($ac_try" in
22390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22391 *) ac_try_echo=$ac_try;;
22393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22394 (eval "$ac_compile") 2>conftest.er1
22396 grep -v '^ *+' conftest.er1 >conftest.err
22398 cat conftest.err >&5
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); } && {
22401 test -z "$ac_c_werror_flag" ||
22402 test ! -s conftest.err
22403 } && test -s conftest.$ac_objext; then
22404 ac_header_compiler=yes
22406 echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22409 ac_header_compiler=no
22412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22414 echo "${ECHO_T}$ac_header_compiler" >&6; }
22416 # Is the header present?
22417 { echo "$as_me:$LINENO: checking regex.h presence" >&5
22418 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
22419 cat >conftest.$ac_ext <<_ACEOF
22422 cat confdefs.h >>conftest.$ac_ext
22423 cat >>conftest.$ac_ext <<_ACEOF
22424 /* end confdefs.h. */
22427 if { (ac_try="$ac_cpp conftest.$ac_ext"
22428 case "(($ac_try" in
22429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22430 *) ac_try_echo=$ac_try;;
22432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22435 grep -v '^ *+' conftest.er1 >conftest.err
22437 cat conftest.err >&5
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); } >/dev/null && {
22440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22441 test ! -s conftest.err
22443 ac_header_preproc=yes
22445 echo "$as_me: failed program was:" >&5
22446 sed 's/^/| /' conftest.$ac_ext >&5
22448 ac_header_preproc=no
22451 rm -f conftest.err conftest.$ac_ext
22452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22453 echo "${ECHO_T}$ac_header_preproc" >&6; }
22455 # So? What about this header?
22456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22458 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22459 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22460 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22461 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22462 ac_header_preproc=yes
22465 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22466 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
22467 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22468 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22469 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22470 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22471 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22472 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
22473 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22474 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
22475 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22476 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
22480 { echo "$as_me:$LINENO: checking for regex.h" >&5
22481 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22482 if test "${ac_cv_header_regex_h+set}" = set; then
22483 echo $ECHO_N "(cached) $ECHO_C" >&6
22485 ac_cv_header_regex_h=$ac_header_preproc
22487 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22488 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22491 if test $ac_cv_header_regex_h = yes; then
22493 cat >>confdefs.h <<\_ACEOF
22494 #define HAVE_REGEX_H
22500 if test "x$ac_cv_header_regex_h" = "xyes"; then
22503 cat >conftest.$ac_ext <<_ACEOF
22506 cat confdefs.h >>conftest.$ac_ext
22507 cat >>conftest.$ac_ext <<_ACEOF
22508 /* end confdefs.h. */
22510 #ifdef REG_EXTENDED
22515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22516 $EGREP "yes" >/dev/null 2>&1; then
22518 cat >>confdefs.h <<\_ACEOF
22519 #define HAVE_REG_EXTENDED
22529 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
22532 cat >>confdefs.h <<\_ACEOF
22538 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
22541 cat >>confdefs.h <<\_ACEOF
22547 OPENSSL_INCLUDE="-DNO_OPENSSL"
22548 if test "x$WITH_OPENSSL" = xyes; then
22549 if test "x$OPENSSL_LIBS" = "x"; then
22550 { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
22551 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
22553 old_CPPFLAGS=$CPPFLAGS
22554 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22555 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
22557 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
22570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22575 echo $ECHO_N "(cached) $ECHO_C" >&6
22577 ac_res=`eval echo '${'$as_ac_Header'}'`
22578 { echo "$as_me:$LINENO: result: $ac_res" >&5
22579 echo "${ECHO_T}$ac_res" >&6; }
22581 # Is the header compilable?
22582 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22584 cat >conftest.$ac_ext <<_ACEOF
22587 cat confdefs.h >>conftest.$ac_ext
22588 cat >>conftest.$ac_ext <<_ACEOF
22589 /* end confdefs.h. */
22590 $ac_includes_default
22591 #include <$ac_header>
22593 rm -f conftest.$ac_objext
22594 if { (ac_try="$ac_compile"
22595 case "(($ac_try" in
22596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22597 *) ac_try_echo=$ac_try;;
22599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22600 (eval "$ac_compile") 2>conftest.er1
22602 grep -v '^ *+' conftest.er1 >conftest.err
22604 cat conftest.err >&5
22605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); } && {
22607 test -z "$ac_c_werror_flag" ||
22608 test ! -s conftest.err
22609 } && test -s conftest.$ac_objext; then
22610 ac_header_compiler=yes
22612 echo "$as_me: failed program was:" >&5
22613 sed 's/^/| /' conftest.$ac_ext >&5
22615 ac_header_compiler=no
22618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22620 echo "${ECHO_T}$ac_header_compiler" >&6; }
22622 # Is the header present?
22623 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22625 cat >conftest.$ac_ext <<_ACEOF
22628 cat confdefs.h >>conftest.$ac_ext
22629 cat >>conftest.$ac_ext <<_ACEOF
22630 /* end confdefs.h. */
22631 #include <$ac_header>
22633 if { (ac_try="$ac_cpp conftest.$ac_ext"
22634 case "(($ac_try" in
22635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22636 *) ac_try_echo=$ac_try;;
22638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22641 grep -v '^ *+' conftest.er1 >conftest.err
22643 cat conftest.err >&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); } >/dev/null && {
22646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22647 test ! -s conftest.err
22649 ac_header_preproc=yes
22651 echo "$as_me: failed program was:" >&5
22652 sed 's/^/| /' conftest.$ac_ext >&5
22654 ac_header_preproc=no
22657 rm -f conftest.err conftest.$ac_ext
22658 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22659 echo "${ECHO_T}$ac_header_preproc" >&6; }
22661 # So? What about this header?
22662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22667 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22668 ac_header_preproc=yes
22671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22676 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22678 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22682 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22689 echo $ECHO_N "(cached) $ECHO_C" >&6
22691 eval "$as_ac_Header=\$ac_header_preproc"
22693 ac_res=`eval echo '${'$as_ac_Header'}'`
22694 { echo "$as_me:$LINENO: result: $ac_res" >&5
22695 echo "${ECHO_T}$ac_res" >&6; }
22698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22699 cat >>confdefs.h <<_ACEOF
22700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22710 if test "x$OPENSSL_LIBS" != "x"; then
22711 { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22712 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
22713 cat >conftest.$ac_ext <<_ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h. */
22719 #include <openssl/crypto.h>
22720 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22726 $EGREP "yes" >/dev/null 2>&1; then
22731 if test "x$goodssl" != "xyes"; then
22732 { echo "$as_me:$LINENO: result: no" >&5
22733 echo "${ECHO_T}no" >&6; }
22736 { echo "$as_me:$LINENO: result: yes" >&5
22737 echo "${ECHO_T}yes" >&6; }
22738 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22739 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
22741 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
22745 CPPFLAGS=$old_CPPFLAGS
22750 export OPENSSL_LIBS
22752 if test "x$PCAP_LIBS" = x; then
22753 { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
22754 echo "$as_me: skipping test for pcap.h." >&6;}
22756 if test "${ac_cv_header_pcap_h+set}" = set; then
22757 { echo "$as_me:$LINENO: checking for pcap.h" >&5
22758 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
22759 if test "${ac_cv_header_pcap_h+set}" = set; then
22760 echo $ECHO_N "(cached) $ECHO_C" >&6
22762 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22763 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
22765 # Is the header compilable?
22766 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
22767 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
22768 cat >conftest.$ac_ext <<_ACEOF
22771 cat confdefs.h >>conftest.$ac_ext
22772 cat >>conftest.$ac_ext <<_ACEOF
22773 /* end confdefs.h. */
22774 $ac_includes_default
22777 rm -f conftest.$ac_objext
22778 if { (ac_try="$ac_compile"
22779 case "(($ac_try" in
22780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22781 *) ac_try_echo=$ac_try;;
22783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22784 (eval "$ac_compile") 2>conftest.er1
22786 grep -v '^ *+' conftest.er1 >conftest.err
22788 cat conftest.err >&5
22789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); } && {
22791 test -z "$ac_c_werror_flag" ||
22792 test ! -s conftest.err
22793 } && test -s conftest.$ac_objext; then
22794 ac_header_compiler=yes
22796 echo "$as_me: failed program was:" >&5
22797 sed 's/^/| /' conftest.$ac_ext >&5
22799 ac_header_compiler=no
22802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22804 echo "${ECHO_T}$ac_header_compiler" >&6; }
22806 # Is the header present?
22807 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
22808 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
22809 cat >conftest.$ac_ext <<_ACEOF
22812 cat confdefs.h >>conftest.$ac_ext
22813 cat >>conftest.$ac_ext <<_ACEOF
22814 /* end confdefs.h. */
22817 if { (ac_try="$ac_cpp conftest.$ac_ext"
22818 case "(($ac_try" in
22819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22820 *) ac_try_echo=$ac_try;;
22822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22825 grep -v '^ *+' conftest.er1 >conftest.err
22827 cat conftest.err >&5
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); } >/dev/null && {
22830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22831 test ! -s conftest.err
22833 ac_header_preproc=yes
22835 echo "$as_me: failed program was:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22838 ac_header_preproc=no
22841 rm -f conftest.err conftest.$ac_ext
22842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22843 echo "${ECHO_T}$ac_header_preproc" >&6; }
22845 # So? What about this header?
22846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22848 { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
22849 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22850 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
22851 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
22852 ac_header_preproc=yes
22855 { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
22856 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
22857 { echo "$as_me:$LINENO: WARNING: pcap.h: check for missing prerequisite headers?" >&5
22858 echo "$as_me: WARNING: pcap.h: check for missing prerequisite headers?" >&2;}
22859 { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
22860 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
22861 { echo "$as_me:$LINENO: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&5
22862 echo "$as_me: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
22863 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
22864 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
22865 { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
22866 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
22870 { echo "$as_me:$LINENO: checking for pcap.h" >&5
22871 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
22872 if test "${ac_cv_header_pcap_h+set}" = set; then
22873 echo $ECHO_N "(cached) $ECHO_C" >&6
22875 ac_cv_header_pcap_h=$ac_header_preproc
22877 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22878 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
22881 if test $ac_cv_header_pcap_h = yes; then
22883 cat >>confdefs.h <<\_ACEOF
22884 #define HAVE_PCAP_H 1
22889 { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
22890 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
22899 { echo "$as_me:$LINENO: checking for off_t" >&5
22900 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22901 if test "${ac_cv_type_off_t+set}" = set; then
22902 echo $ECHO_N "(cached) $ECHO_C" >&6
22904 cat >conftest.$ac_ext <<_ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h. */
22910 $ac_includes_default
22911 typedef off_t ac__type_new_;
22915 if ((ac__type_new_ *) 0)
22917 if (sizeof (ac__type_new_))
22923 rm -f conftest.$ac_objext
22924 if { (ac_try="$ac_compile"
22925 case "(($ac_try" in
22926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22927 *) ac_try_echo=$ac_try;;
22929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22930 (eval "$ac_compile") 2>conftest.er1
22932 grep -v '^ *+' conftest.er1 >conftest.err
22934 cat conftest.err >&5
22935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936 (exit $ac_status); } && {
22937 test -z "$ac_c_werror_flag" ||
22938 test ! -s conftest.err
22939 } && test -s conftest.$ac_objext; then
22940 ac_cv_type_off_t=yes
22942 echo "$as_me: failed program was:" >&5
22943 sed 's/^/| /' conftest.$ac_ext >&5
22945 ac_cv_type_off_t=no
22948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22950 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22951 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22952 if test $ac_cv_type_off_t = yes; then
22956 cat >>confdefs.h <<_ACEOF
22957 #define off_t long int
22962 { echo "$as_me:$LINENO: checking for pid_t" >&5
22963 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22964 if test "${ac_cv_type_pid_t+set}" = set; then
22965 echo $ECHO_N "(cached) $ECHO_C" >&6
22967 cat >conftest.$ac_ext <<_ACEOF
22970 cat confdefs.h >>conftest.$ac_ext
22971 cat >>conftest.$ac_ext <<_ACEOF
22972 /* end confdefs.h. */
22973 $ac_includes_default
22974 typedef pid_t ac__type_new_;
22978 if ((ac__type_new_ *) 0)
22980 if (sizeof (ac__type_new_))
22986 rm -f conftest.$ac_objext
22987 if { (ac_try="$ac_compile"
22988 case "(($ac_try" in
22989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22990 *) ac_try_echo=$ac_try;;
22992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22993 (eval "$ac_compile") 2>conftest.er1
22995 grep -v '^ *+' conftest.er1 >conftest.err
22997 cat conftest.err >&5
22998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22999 (exit $ac_status); } && {
23000 test -z "$ac_c_werror_flag" ||
23001 test ! -s conftest.err
23002 } && test -s conftest.$ac_objext; then
23003 ac_cv_type_pid_t=yes
23005 echo "$as_me: failed program was:" >&5
23006 sed 's/^/| /' conftest.$ac_ext >&5
23008 ac_cv_type_pid_t=no
23011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23013 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23014 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23015 if test $ac_cv_type_pid_t = yes; then
23019 cat >>confdefs.h <<_ACEOF
23025 { echo "$as_me:$LINENO: checking for size_t" >&5
23026 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23027 if test "${ac_cv_type_size_t+set}" = set; then
23028 echo $ECHO_N "(cached) $ECHO_C" >&6
23030 cat >conftest.$ac_ext <<_ACEOF
23033 cat confdefs.h >>conftest.$ac_ext
23034 cat >>conftest.$ac_ext <<_ACEOF
23035 /* end confdefs.h. */
23036 $ac_includes_default
23037 typedef size_t ac__type_new_;
23041 if ((ac__type_new_ *) 0)
23043 if (sizeof (ac__type_new_))
23049 rm -f conftest.$ac_objext
23050 if { (ac_try="$ac_compile"
23051 case "(($ac_try" in
23052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23053 *) ac_try_echo=$ac_try;;
23055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23056 (eval "$ac_compile") 2>conftest.er1
23058 grep -v '^ *+' conftest.er1 >conftest.err
23060 cat conftest.err >&5
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); } && {
23063 test -z "$ac_c_werror_flag" ||
23064 test ! -s conftest.err
23065 } && test -s conftest.$ac_objext; then
23066 ac_cv_type_size_t=yes
23068 echo "$as_me: failed program was:" >&5
23069 sed 's/^/| /' conftest.$ac_ext >&5
23071 ac_cv_type_size_t=no
23074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23076 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23077 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23078 if test $ac_cv_type_size_t = yes; then
23082 cat >>confdefs.h <<_ACEOF
23083 #define size_t unsigned int
23088 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23089 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23090 if test "${ac_cv_type_uid_t+set}" = set; then
23091 echo $ECHO_N "(cached) $ECHO_C" >&6
23093 cat >conftest.$ac_ext <<_ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h. */
23099 #include <sys/types.h>
23102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23103 $EGREP "uid_t" >/dev/null 2>&1; then
23104 ac_cv_type_uid_t=yes
23106 ac_cv_type_uid_t=no
23111 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23112 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23113 if test $ac_cv_type_uid_t = no; then
23115 cat >>confdefs.h <<\_ACEOF
23120 cat >>confdefs.h <<\_ACEOF
23128 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23129 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23130 if test "${ac_cv_type_socklen_t+set}" = set; then
23131 echo $ECHO_N "(cached) $ECHO_C" >&6
23133 ac_cv_type_socklen_t=no
23134 cat >conftest.$ac_ext <<_ACEOF
23137 cat confdefs.h >>conftest.$ac_ext
23138 cat >>conftest.$ac_ext <<_ACEOF
23139 /* end confdefs.h. */
23140 #ifdef HAVE_SYS_TYPES_H
23141 #include <sys/types.h>
23143 #ifdef HAVE_SYS_SOCKET_H
23144 #include <sys/socket.h>
23155 rm -f conftest.$ac_objext
23156 if { (ac_try="$ac_compile"
23157 case "(($ac_try" in
23158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23159 *) ac_try_echo=$ac_try;;
23161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23162 (eval "$ac_compile") 2>conftest.er1
23164 grep -v '^ *+' conftest.er1 >conftest.err
23166 cat conftest.err >&5
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); } && {
23169 test -z "$ac_c_werror_flag" ||
23170 test ! -s conftest.err
23171 } && test -s conftest.$ac_objext; then
23172 ac_cv_type_socklen_t=yes
23174 echo "$as_me: failed program was:" >&5
23175 sed 's/^/| /' conftest.$ac_ext >&5
23180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23184 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23185 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23187 if test "$ac_cv_type_socklen_t" != "yes"; then
23189 cat >>confdefs.h <<\_ACEOF
23190 #define socklen_t int
23197 { echo "$as_me:$LINENO: checking for uint8_t" >&5
23198 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23199 if test "${ac_cv_type_uint8_t+set}" = set; then
23200 echo $ECHO_N "(cached) $ECHO_C" >&6
23202 ac_cv_type_uint8_t=no
23203 cat >conftest.$ac_ext <<_ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h. */
23209 #ifdef HAVE_INTTYPES_H
23210 #include <inttypes.h>
23212 #ifdef HAVE_STDINT_H
23213 #include <stdint.h>
23224 rm -f conftest.$ac_objext
23225 if { (ac_try="$ac_compile"
23226 case "(($ac_try" in
23227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23228 *) ac_try_echo=$ac_try;;
23230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23231 (eval "$ac_compile") 2>conftest.er1
23233 grep -v '^ *+' conftest.er1 >conftest.err
23235 cat conftest.err >&5
23236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237 (exit $ac_status); } && {
23238 test -z "$ac_c_werror_flag" ||
23239 test ! -s conftest.err
23240 } && test -s conftest.$ac_objext; then
23241 ac_cv_type_uint8_t=yes
23243 echo "$as_me: failed program was:" >&5
23244 sed 's/^/| /' conftest.$ac_ext >&5
23249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23253 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23254 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
23256 if test "$ac_cv_type_uint8_t" != "yes"; then
23258 cat >>confdefs.h <<\_ACEOF
23259 #define uint8_t unsigned char
23266 { echo "$as_me:$LINENO: checking for uint16_t" >&5
23267 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
23268 if test "${ac_cv_type_uint16_t+set}" = set; then
23269 echo $ECHO_N "(cached) $ECHO_C" >&6
23271 ac_cv_type_uint16_t=no
23272 cat >conftest.$ac_ext <<_ACEOF
23275 cat confdefs.h >>conftest.$ac_ext
23276 cat >>conftest.$ac_ext <<_ACEOF
23277 /* end confdefs.h. */
23278 #ifdef HAVE_INTTYPES_H
23279 #include <inttypes.h>
23281 #ifdef HAVE_STDINT_H
23282 #include <stdint.h>
23293 rm -f conftest.$ac_objext
23294 if { (ac_try="$ac_compile"
23295 case "(($ac_try" in
23296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23297 *) ac_try_echo=$ac_try;;
23299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23300 (eval "$ac_compile") 2>conftest.er1
23302 grep -v '^ *+' conftest.er1 >conftest.err
23304 cat conftest.err >&5
23305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306 (exit $ac_status); } && {
23307 test -z "$ac_c_werror_flag" ||
23308 test ! -s conftest.err
23309 } && test -s conftest.$ac_objext; then
23310 ac_cv_type_uint16_t=yes
23312 echo "$as_me: failed program was:" >&5
23313 sed 's/^/| /' conftest.$ac_ext >&5
23318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23322 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
23323 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
23325 if test "$ac_cv_type_uint16_t" != "yes"; then
23327 cat >>confdefs.h <<\_ACEOF
23328 #define uint16_t unsigned short
23335 { echo "$as_me:$LINENO: checking for uint32_t" >&5
23336 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
23337 if test "${ac_cv_type_uint32_t+set}" = set; then
23338 echo $ECHO_N "(cached) $ECHO_C" >&6
23340 ac_cv_type_uint32_t=no
23341 cat >conftest.$ac_ext <<_ACEOF
23344 cat confdefs.h >>conftest.$ac_ext
23345 cat >>conftest.$ac_ext <<_ACEOF
23346 /* end confdefs.h. */
23347 #ifdef HAVE_INTTYPES_H
23348 #include <inttypes.h>
23350 #ifdef HAVE_STDINT_H
23351 #include <stdint.h>
23362 rm -f conftest.$ac_objext
23363 if { (ac_try="$ac_compile"
23364 case "(($ac_try" in
23365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23366 *) ac_try_echo=$ac_try;;
23368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23369 (eval "$ac_compile") 2>conftest.er1
23371 grep -v '^ *+' conftest.er1 >conftest.err
23373 cat conftest.err >&5
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); } && {
23376 test -z "$ac_c_werror_flag" ||
23377 test ! -s conftest.err
23378 } && test -s conftest.$ac_objext; then
23379 ac_cv_type_uint32_t=yes
23381 echo "$as_me: failed program was:" >&5
23382 sed 's/^/| /' conftest.$ac_ext >&5
23387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23391 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
23392 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
23394 if test "$ac_cv_type_uint32_t" != "yes"; then
23396 cat >>confdefs.h <<\_ACEOF
23397 #define uint32_t unsigned int
23403 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
23404 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
23405 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
23406 echo $ECHO_N "(cached) $ECHO_C" >&6
23408 cat >conftest.$ac_ext <<_ACEOF
23411 cat confdefs.h >>conftest.$ac_ext
23412 cat >>conftest.$ac_ext <<_ACEOF
23413 /* end confdefs.h. */
23415 #ifdef HAVE_NETINET_IN_H
23416 #include <netinet/in.h>
23420 typedef struct in6_addr ac__type_new_;
23424 if ((ac__type_new_ *) 0)
23426 if (sizeof (ac__type_new_))
23432 rm -f conftest.$ac_objext
23433 if { (ac_try="$ac_compile"
23434 case "(($ac_try" in
23435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23436 *) ac_try_echo=$ac_try;;
23438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23439 (eval "$ac_compile") 2>conftest.er1
23441 grep -v '^ *+' conftest.er1 >conftest.err
23443 cat conftest.err >&5
23444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445 (exit $ac_status); } && {
23446 test -z "$ac_c_werror_flag" ||
23447 test ! -s conftest.err
23448 } && test -s conftest.$ac_objext; then
23449 ac_cv_type_struct_in6_addr=yes
23451 echo "$as_me: failed program was:" >&5
23452 sed 's/^/| /' conftest.$ac_ext >&5
23454 ac_cv_type_struct_in6_addr=no
23457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23459 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
23460 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
23461 if test $ac_cv_type_struct_in6_addr = yes; then
23463 cat >>confdefs.h <<\_ACEOF
23464 #define HAVE_STRUCT_IN6_ADDR 1
23470 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23471 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
23472 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
23473 echo $ECHO_N "(cached) $ECHO_C" >&6
23475 cat >conftest.$ac_ext <<_ACEOF
23478 cat confdefs.h >>conftest.$ac_ext
23479 cat >>conftest.$ac_ext <<_ACEOF
23480 /* end confdefs.h. */
23482 #ifdef HAVE_NETINET_IN_H
23483 #include <netinet/in.h>
23485 #ifdef HAVE_SYS_SOCKET_H
23486 #include <sys/socket.h>
23490 typedef struct sockaddr_storage ac__type_new_;
23494 if ((ac__type_new_ *) 0)
23496 if (sizeof (ac__type_new_))
23502 rm -f conftest.$ac_objext
23503 if { (ac_try="$ac_compile"
23504 case "(($ac_try" in
23505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23506 *) ac_try_echo=$ac_try;;
23508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23509 (eval "$ac_compile") 2>conftest.er1
23511 grep -v '^ *+' conftest.er1 >conftest.err
23513 cat conftest.err >&5
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); } && {
23516 test -z "$ac_c_werror_flag" ||
23517 test ! -s conftest.err
23518 } && test -s conftest.$ac_objext; then
23519 ac_cv_type_struct_sockaddr_storage=yes
23521 echo "$as_me: failed program was:" >&5
23522 sed 's/^/| /' conftest.$ac_ext >&5
23524 ac_cv_type_struct_sockaddr_storage=no
23527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23529 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
23530 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
23531 if test $ac_cv_type_struct_sockaddr_storage = yes; then
23533 cat >>confdefs.h <<\_ACEOF
23534 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
23540 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23541 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
23542 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
23543 echo $ECHO_N "(cached) $ECHO_C" >&6
23545 cat >conftest.$ac_ext <<_ACEOF
23548 cat confdefs.h >>conftest.$ac_ext
23549 cat >>conftest.$ac_ext <<_ACEOF
23550 /* end confdefs.h. */
23552 #ifdef HAVE_NETINET_IN_H
23553 #include <netinet/in.h>
23557 typedef struct sockaddr_in6 ac__type_new_;
23561 if ((ac__type_new_ *) 0)
23563 if (sizeof (ac__type_new_))
23569 rm -f conftest.$ac_objext
23570 if { (ac_try="$ac_compile"
23571 case "(($ac_try" in
23572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23573 *) ac_try_echo=$ac_try;;
23575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23576 (eval "$ac_compile") 2>conftest.er1
23578 grep -v '^ *+' conftest.er1 >conftest.err
23580 cat conftest.err >&5
23581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582 (exit $ac_status); } && {
23583 test -z "$ac_c_werror_flag" ||
23584 test ! -s conftest.err
23585 } && test -s conftest.$ac_objext; then
23586 ac_cv_type_struct_sockaddr_in6=yes
23588 echo "$as_me: failed program was:" >&5
23589 sed 's/^/| /' conftest.$ac_ext >&5
23591 ac_cv_type_struct_sockaddr_in6=no
23594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23596 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
23597 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
23598 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
23600 cat >>confdefs.h <<\_ACEOF
23601 #define HAVE_STRUCT_SOCKADDR_IN6 1
23607 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
23608 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
23609 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
23610 echo $ECHO_N "(cached) $ECHO_C" >&6
23612 cat >conftest.$ac_ext <<_ACEOF
23615 cat confdefs.h >>conftest.$ac_ext
23616 cat >>conftest.$ac_ext <<_ACEOF
23617 /* end confdefs.h. */
23619 #ifdef HAVE_SYS_TYPES_H
23620 #include <sys/types.h>
23622 #ifdef HAVE_SYS_SOCKET_H
23623 #include <sys/socket.h>
23625 #ifdef HAVE_NETDB_H
23630 typedef struct addrinfo ac__type_new_;
23634 if ((ac__type_new_ *) 0)
23636 if (sizeof (ac__type_new_))
23642 rm -f conftest.$ac_objext
23643 if { (ac_try="$ac_compile"
23644 case "(($ac_try" in
23645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23646 *) ac_try_echo=$ac_try;;
23648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23649 (eval "$ac_compile") 2>conftest.er1
23651 grep -v '^ *+' conftest.er1 >conftest.err
23653 cat conftest.err >&5
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); } && {
23656 test -z "$ac_c_werror_flag" ||
23657 test ! -s conftest.err
23658 } && test -s conftest.$ac_objext; then
23659 ac_cv_type_struct_addrinfo=yes
23661 echo "$as_me: failed program was:" >&5
23662 sed 's/^/| /' conftest.$ac_ext >&5
23664 ac_cv_type_struct_addrinfo=no
23667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23669 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
23670 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
23671 if test $ac_cv_type_struct_addrinfo = yes; then
23673 cat >>confdefs.h <<\_ACEOF
23674 #define HAVE_STRUCT_ADDRINFO 1
23747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23751 echo $ECHO_N "(cached) $ECHO_C" >&6
23753 cat >conftest.$ac_ext <<_ACEOF
23756 cat confdefs.h >>conftest.$ac_ext
23757 cat >>conftest.$ac_ext <<_ACEOF
23758 /* end confdefs.h. */
23759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23761 #define $ac_func innocuous_$ac_func
23763 /* System header to define __stub macros and hopefully few prototypes,
23764 which can conflict with char $ac_func (); below.
23765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23766 <limits.h> exists even on freestanding compilers. */
23769 # include <limits.h>
23771 # include <assert.h>
23776 /* Override any GCC internal prototype to avoid an error.
23777 Use char because int might match the return type of a GCC
23778 builtin and then its argument prototype would still apply. */
23783 /* The GNU C library defines this for functions which it implements
23784 to always fail with ENOSYS. Some functions are actually named
23785 something starting with __ and the normal name is an alias. */
23786 #if defined __stub_$ac_func || defined __stub___$ac_func
23793 return $ac_func ();
23798 rm -f conftest.$ac_objext conftest$ac_exeext
23799 if { (ac_try="$ac_link"
23800 case "(($ac_try" in
23801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23802 *) ac_try_echo=$ac_try;;
23804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23805 (eval "$ac_link") 2>conftest.er1
23807 grep -v '^ *+' conftest.er1 >conftest.err
23809 cat conftest.err >&5
23810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811 (exit $ac_status); } && {
23812 test -z "$ac_c_werror_flag" ||
23813 test ! -s conftest.err
23814 } && test -s conftest$ac_exeext &&
23815 $as_test_x conftest$ac_exeext; then
23816 eval "$as_ac_var=yes"
23818 echo "$as_me: failed program was:" >&5
23819 sed 's/^/| /' conftest.$ac_ext >&5
23821 eval "$as_ac_var=no"
23824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23825 conftest$ac_exeext conftest.$ac_ext
23827 ac_res=`eval echo '${'$as_ac_var'}'`
23828 { echo "$as_me:$LINENO: result: $ac_res" >&5
23829 echo "${ECHO_T}$ac_res" >&6; }
23830 if test `eval echo '${'$as_ac_var'}'` = yes; then
23831 cat >>confdefs.h <<_ACEOF
23832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23848 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23849 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
23850 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
23851 echo $ECHO_N "(cached) $ECHO_C" >&6
23853 cat >conftest.$ac_ext <<_ACEOF
23856 cat confdefs.h >>conftest.$ac_ext
23857 cat >>conftest.$ac_ext <<_ACEOF
23858 /* end confdefs.h. */
23861 #include <string.h>
23862 #ifdef HAVE_UNISTD_H
23863 #include <unistd.h>
23865 #ifdef HAVE_CRYPT_H
23868 #ifdef HAVE_ERRNO_H
23871 #ifdef HAVE_RESOURCE_H
23872 #include <resource.h>
23874 #ifdef HAVE_GETOPT_H
23875 #include <getopt.h>
23877 #ifdef HAVE_MALLOC_H
23878 #include <malloc.h>
23883 #ifdef HAVE_UTMPX_H
23886 #ifdef HAVE_SYS_SELECT_H
23887 #include <sys/select.h>
23889 #ifdef HAVE_DLFCN_H
23892 #ifdef HAVE_REGEX_H
23895 #ifdef HAVE_SYSLOG_H
23896 #include <syslog.h>
23898 #ifdef HAVE_INTTYPES_H
23899 #include <inttypes.h>
23901 #ifdef HAVE_STDINT_H
23902 #include <stdint.h>
23904 #ifdef HAVE_ARPA_INET_H
23905 #include <arpa/inet.h>
23911 char *(*pfn) = (char *(*)) $ac_func
23916 rm -f conftest.$ac_objext
23917 if { (ac_try="$ac_compile"
23918 case "(($ac_try" in
23919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23920 *) ac_try_echo=$ac_try;;
23922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23923 (eval "$ac_compile") 2>conftest.er1
23925 grep -v '^ *+' conftest.er1 >conftest.err
23927 cat conftest.err >&5
23928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929 (exit $ac_status); } && {
23930 test -z "$ac_c_werror_flag" ||
23931 test ! -s conftest.err
23932 } && test -s conftest.$ac_objext; then
23933 eval "radius_cv_decl_needed_$ac_func=no"
23935 echo "$as_me: failed program was:" >&5
23936 sed 's/^/| /' conftest.$ac_ext >&5
23938 eval "radius_cv_decl_needed_$ac_func=yes"
23941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23944 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23945 { echo "$as_me:$LINENO: result: yes" >&5
23946 echo "${ECHO_T}yes" >&6; }
23947 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23948 cat >>confdefs.h <<_ACEOF
23949 #define $radius_tr_decl 1
23953 { echo "$as_me:$LINENO: result: no" >&5
23954 echo "${ECHO_T}no" >&6; }
23960 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23961 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
23962 if test "${ac_cv_type_signal+set}" = set; then
23963 echo $ECHO_N "(cached) $ECHO_C" >&6
23965 cat >conftest.$ac_ext <<_ACEOF
23968 cat confdefs.h >>conftest.$ac_ext
23969 cat >>conftest.$ac_ext <<_ACEOF
23970 /* end confdefs.h. */
23971 #include <sys/types.h>
23972 #include <signal.h>
23977 return *(signal (0, 0)) (0) == 1;
23982 rm -f conftest.$ac_objext
23983 if { (ac_try="$ac_compile"
23984 case "(($ac_try" in
23985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23986 *) ac_try_echo=$ac_try;;
23988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23989 (eval "$ac_compile") 2>conftest.er1
23991 grep -v '^ *+' conftest.er1 >conftest.err
23993 cat conftest.err >&5
23994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); } && {
23996 test -z "$ac_c_werror_flag" ||
23997 test ! -s conftest.err
23998 } && test -s conftest.$ac_objext; then
23999 ac_cv_type_signal=int
24001 echo "$as_me: failed program was:" >&5
24002 sed 's/^/| /' conftest.$ac_ext >&5
24004 ac_cv_type_signal=void
24007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24009 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24010 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24012 cat >>confdefs.h <<_ACEOF
24013 #define RETSIGTYPE $ac_cv_type_signal
24018 if test "x$ac_cv_header_utmpx_h" = "xyes"
24021 { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
24022 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
24025 cat >conftest.$ac_ext <<_ACEOF
24028 cat confdefs.h >>conftest.$ac_ext
24029 cat >>conftest.$ac_ext <<_ACEOF
24030 /* end confdefs.h. */
24034 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24040 int foo = offsetof(struct utmpx, ut_xtime)
24045 rm -f conftest.$ac_objext
24046 if { (ac_try="$ac_compile"
24047 case "(($ac_try" in
24048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24049 *) ac_try_echo=$ac_try;;
24051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24052 (eval "$ac_compile") 2>conftest.er1
24054 grep -v '^ *+' conftest.er1 >conftest.err
24056 cat conftest.err >&5
24057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058 (exit $ac_status); } && {
24059 test -z "$ac_c_werror_flag" ||
24060 test ! -s conftest.err
24061 } && test -s conftest.$ac_objext; then
24064 echo "$as_me: failed program was:" >&5
24065 sed 's/^/| /' conftest.$ac_ext >&5
24070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24072 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
24073 if test "x$has_element" != "x"; then
24074 { echo "$as_me:$LINENO: result: yes" >&5
24075 echo "${ECHO_T}yes" >&6; }
24076 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
24078 { echo "$as_me:$LINENO: result: no" >&5
24079 echo "${ECHO_T}no" >&6; }
24080 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
24083 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
24086 cat >>confdefs.h <<\_ACEOF
24087 #define ut_xtime ut_tv.tv_sec
24094 { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
24095 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
24098 cat >conftest.$ac_ext <<_ACEOF
24101 cat confdefs.h >>conftest.$ac_ext
24102 cat >>conftest.$ac_ext <<_ACEOF
24103 /* end confdefs.h. */
24105 #include <netinet/in.h>
24107 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24113 int foo = offsetof(struct in_pktinfo, ipi_addr)
24118 rm -f conftest.$ac_objext
24119 if { (ac_try="$ac_compile"
24120 case "(($ac_try" in
24121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24122 *) ac_try_echo=$ac_try;;
24124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24125 (eval "$ac_compile") 2>conftest.er1
24127 grep -v '^ *+' conftest.er1 >conftest.err
24129 cat conftest.err >&5
24130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131 (exit $ac_status); } && {
24132 test -z "$ac_c_werror_flag" ||
24133 test ! -s conftest.err
24134 } && test -s conftest.$ac_objext; then
24137 echo "$as_me: failed program was:" >&5
24138 sed 's/^/| /' conftest.$ac_ext >&5
24143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24145 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
24146 if test "x$has_element" != "x"; then
24147 { echo "$as_me:$LINENO: result: yes" >&5
24148 echo "${ECHO_T}yes" >&6; }
24149 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
24151 { echo "$as_me:$LINENO: result: no" >&5
24152 echo "${ECHO_T}no" >&6; }
24153 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
24156 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
24159 cat >>confdefs.h <<\_ACEOF
24160 #define HAVE_IP_PKTINFO
24166 { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
24167 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
24170 cat >conftest.$ac_ext <<_ACEOF
24173 cat confdefs.h >>conftest.$ac_ext
24174 cat >>conftest.$ac_ext <<_ACEOF
24175 /* end confdefs.h. */
24177 #include <netinet/in.h>
24179 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24185 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
24190 rm -f conftest.$ac_objext
24191 if { (ac_try="$ac_compile"
24192 case "(($ac_try" in
24193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24194 *) ac_try_echo=$ac_try;;
24196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24197 (eval "$ac_compile") 2>conftest.er1
24199 grep -v '^ *+' conftest.er1 >conftest.err
24201 cat conftest.err >&5
24202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203 (exit $ac_status); } && {
24204 test -z "$ac_c_werror_flag" ||
24205 test ! -s conftest.err
24206 } && test -s conftest.$ac_objext; then
24209 echo "$as_me: failed program was:" >&5
24210 sed 's/^/| /' conftest.$ac_ext >&5
24215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24217 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
24218 if test "x$has_element" != "x"; then
24219 { echo "$as_me:$LINENO: result: yes" >&5
24220 echo "${ECHO_T}yes" >&6; }
24221 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
24223 { echo "$as_me:$LINENO: result: no" >&5
24224 echo "${ECHO_T}no" >&6; }
24225 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
24228 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
24231 cat >>confdefs.h <<\_ACEOF
24232 #define HAVE_IN6_PKTINFO
24238 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24239 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24240 if test "${ac_cv_c_const+set}" = set; then
24241 echo $ECHO_N "(cached) $ECHO_C" >&6
24243 cat >conftest.$ac_ext <<_ACEOF
24246 cat confdefs.h >>conftest.$ac_ext
24247 cat >>conftest.$ac_ext <<_ACEOF
24248 /* end confdefs.h. */
24253 /* FIXME: Include the comments suggested by Paul. */
24254 #ifndef __cplusplus
24255 /* Ultrix mips cc rejects this. */
24256 typedef int charset[2];
24258 /* SunOS 4.1.1 cc rejects this. */
24259 char const *const *pcpcc;
24261 /* NEC SVR4.0.2 mips cc rejects this. */
24262 struct point {int x, y;};
24263 static struct point const zero = {0,0};
24264 /* AIX XL C 1.02.0.0 rejects this.
24265 It does not let you subtract one const X* pointer from another in
24266 an arm of an if-expression whose if-part is not a constant
24268 const char *g = "string";
24269 pcpcc = &g + (g ? g-g : 0);
24270 /* HPUX 7.0 cc rejects these. */
24272 ppc = (char**) pcpcc;
24273 pcpcc = (char const *const *) ppc;
24274 { /* SCO 3.2v4 cc rejects this. */
24276 char const *s = 0 ? (char *) 0 : (char const *) 0;
24281 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24282 int x[] = {25, 17};
24283 const int *foo = &x[0];
24286 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24287 typedef const int *iptr;
24291 { /* AIX XL C 1.02.0.0 rejects this saying
24292 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24293 struct s { int j; const int *ap[3]; };
24294 struct s *b; b->j = 5;
24296 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24297 const int foo = 10;
24298 if (!foo) return 0;
24300 return !cs[0] && !zero.x;
24307 rm -f conftest.$ac_objext
24308 if { (ac_try="$ac_compile"
24309 case "(($ac_try" in
24310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24311 *) ac_try_echo=$ac_try;;
24313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24314 (eval "$ac_compile") 2>conftest.er1
24316 grep -v '^ *+' conftest.er1 >conftest.err
24318 cat conftest.err >&5
24319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320 (exit $ac_status); } && {
24321 test -z "$ac_c_werror_flag" ||
24322 test ! -s conftest.err
24323 } && test -s conftest.$ac_objext; then
24326 echo "$as_me: failed program was:" >&5
24327 sed 's/^/| /' conftest.$ac_ext >&5
24332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24334 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24335 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24336 if test $ac_cv_c_const = no; then
24338 cat >>confdefs.h <<\_ACEOF
24345 { echo "$as_me:$LINENO: checking type of OS" >&5
24346 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
24348 { echo "$as_me:$LINENO: result: $OS" >&5
24349 echo "${ECHO_T}$OS" >&6; }
24350 if test "$OS" = "OS/2"; then
24357 if test "x$GCC" = "xyes"; then
24358 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
24361 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
24362 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
24363 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
24364 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
24365 CFLAGS="$CFLAGS $devflags"
24367 { echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
24368 echo "${ECHO_T}yes. Using $devflags" >&6; }
24371 CFLAGS="$CFLAGS -DNDEBUG"
24373 { echo "$as_me:$LINENO: result: no." >&5
24374 echo "${ECHO_T}no." >&6; }
24378 { echo "$as_me:$LINENO: checking for TLS" >&5
24379 echo $ECHO_N "checking for TLS... $ECHO_C" >&6; }
24380 if test "$cross_compiling" = yes; then
24383 cat >conftest.$ac_ext <<_ACEOF
24386 cat confdefs.h >>conftest.$ac_ext
24387 cat >>conftest.$ac_ext <<_ACEOF
24388 /* end confdefs.h. */
24389 static __thread int val; int main() { return 0; }
24391 rm -f conftest$ac_exeext
24392 if { (ac_try="$ac_link"
24393 case "(($ac_try" in
24394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24395 *) ac_try_echo=$ac_try;;
24397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24398 (eval "$ac_link") 2>&5
24400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24402 { (case "(($ac_try" in
24403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24404 *) ac_try_echo=$ac_try;;
24406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24407 (eval "$ac_try") 2>&5
24409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410 (exit $ac_status); }; }; then
24413 echo "$as_me: program exited with status $ac_status" >&5
24414 echo "$as_me: failed program was:" >&5
24415 sed 's/^/| /' conftest.$ac_ext >&5
24417 ( exit $ac_status )
24420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24424 { echo "$as_me:$LINENO: result: $have_tls" >&5
24425 echo "${ECHO_T}$have_tls" >&6; }
24426 if test "$have_tls" = "yes"; then
24428 cat >>confdefs.h <<\_ACEOF
24429 #define HAVE_THREAD_TLS 1
24436 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
24437 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
24438 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
24439 echo $ECHO_N "(cached) $ECHO_C" >&6
24441 ac_check_lib_save_LIBS=$LIBS
24442 LIBS="-lcrypt $LIBS"
24443 cat >conftest.$ac_ext <<_ACEOF
24446 cat confdefs.h >>conftest.$ac_ext
24447 cat >>conftest.$ac_ext <<_ACEOF
24448 /* end confdefs.h. */
24450 /* Override any GCC internal prototype to avoid an error.
24451 Use char because int might match the return type of a GCC
24452 builtin and then its argument prototype would still apply. */
24465 rm -f conftest.$ac_objext conftest$ac_exeext
24466 if { (ac_try="$ac_link"
24467 case "(($ac_try" in
24468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24469 *) ac_try_echo=$ac_try;;
24471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24472 (eval "$ac_link") 2>conftest.er1
24474 grep -v '^ *+' conftest.er1 >conftest.err
24476 cat conftest.err >&5
24477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478 (exit $ac_status); } && {
24479 test -z "$ac_c_werror_flag" ||
24480 test ! -s conftest.err
24481 } && test -s conftest$ac_exeext &&
24482 $as_test_x conftest$ac_exeext; then
24483 ac_cv_lib_crypt_crypt=yes
24485 echo "$as_me: failed program was:" >&5
24486 sed 's/^/| /' conftest.$ac_ext >&5
24488 ac_cv_lib_crypt_crypt=no
24491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24492 conftest$ac_exeext conftest.$ac_ext
24493 LIBS=$ac_check_lib_save_LIBS
24495 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
24496 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
24497 if test $ac_cv_lib_crypt_crypt = yes; then
24502 if test "$CRYPTLIB" != ""; then
24504 cat >>confdefs.h <<\_ACEOF
24509 { echo "$as_me:$LINENO: checking for crypt" >&5
24510 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
24511 if test "${ac_cv_func_crypt+set}" = set; then
24512 echo $ECHO_N "(cached) $ECHO_C" >&6
24514 cat >conftest.$ac_ext <<_ACEOF
24517 cat confdefs.h >>conftest.$ac_ext
24518 cat >>conftest.$ac_ext <<_ACEOF
24519 /* end confdefs.h. */
24520 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
24521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24522 #define crypt innocuous_crypt
24524 /* System header to define __stub macros and hopefully few prototypes,
24525 which can conflict with char crypt (); below.
24526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24527 <limits.h> exists even on freestanding compilers. */
24530 # include <limits.h>
24532 # include <assert.h>
24537 /* Override any GCC internal prototype to avoid an error.
24538 Use char because int might match the return type of a GCC
24539 builtin and then its argument prototype would still apply. */
24544 /* The GNU C library defines this for functions which it implements
24545 to always fail with ENOSYS. Some functions are actually named
24546 something starting with __ and the normal name is an alias. */
24547 #if defined __stub_crypt || defined __stub___crypt
24559 rm -f conftest.$ac_objext conftest$ac_exeext
24560 if { (ac_try="$ac_link"
24561 case "(($ac_try" in
24562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24563 *) ac_try_echo=$ac_try;;
24565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24566 (eval "$ac_link") 2>conftest.er1
24568 grep -v '^ *+' conftest.er1 >conftest.err
24570 cat conftest.err >&5
24571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572 (exit $ac_status); } && {
24573 test -z "$ac_c_werror_flag" ||
24574 test ! -s conftest.err
24575 } && test -s conftest$ac_exeext &&
24576 $as_test_x conftest$ac_exeext; then
24577 ac_cv_func_crypt=yes
24579 echo "$as_me: failed program was:" >&5
24580 sed 's/^/| /' conftest.$ac_ext >&5
24582 ac_cv_func_crypt=no
24585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24586 conftest$ac_exeext conftest.$ac_ext
24588 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
24589 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
24590 if test $ac_cv_func_crypt = yes; then
24592 cat >>confdefs.h <<\_ACEOF
24600 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
24601 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
24602 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
24603 echo $ECHO_N "(cached) $ECHO_C" >&6
24605 ac_check_lib_save_LIBS=$LIBS
24606 LIBS="-lcipher $LIBS"
24607 cat >conftest.$ac_ext <<_ACEOF
24610 cat confdefs.h >>conftest.$ac_ext
24611 cat >>conftest.$ac_ext <<_ACEOF
24612 /* end confdefs.h. */
24614 /* Override any GCC internal prototype to avoid an error.
24615 Use char because int might match the return type of a GCC
24616 builtin and then its argument prototype would still apply. */
24629 rm -f conftest.$ac_objext conftest$ac_exeext
24630 if { (ac_try="$ac_link"
24631 case "(($ac_try" in
24632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24633 *) ac_try_echo=$ac_try;;
24635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24636 (eval "$ac_link") 2>conftest.er1
24638 grep -v '^ *+' conftest.er1 >conftest.err
24640 cat conftest.err >&5
24641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642 (exit $ac_status); } && {
24643 test -z "$ac_c_werror_flag" ||
24644 test ! -s conftest.err
24645 } && test -s conftest$ac_exeext &&
24646 $as_test_x conftest$ac_exeext; then
24647 ac_cv_lib_cipher_setkey=yes
24649 echo "$as_me: failed program was:" >&5
24650 sed 's/^/| /' conftest.$ac_ext >&5
24652 ac_cv_lib_cipher_setkey=no
24655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24656 conftest$ac_exeext conftest.$ac_ext
24657 LIBS=$ac_check_lib_save_LIBS
24659 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
24660 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
24661 if test $ac_cv_lib_cipher_setkey = yes; then
24662 CRYPTLIB="${CRYPTLIB} -lcipher"
24669 cat >>confdefs.h <<\_ACEOF
24674 cat >>confdefs.h <<\_ACEOF
24675 #define SYSVSTYLE 2
24679 cat >>confdefs.h <<\_ACEOF
24683 gethostbyaddrrstyle=""
24684 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24685 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
24688 { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
24689 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
24690 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
24691 echo $ECHO_N "(cached) $ECHO_C" >&6
24693 cat >conftest.$ac_ext <<_ACEOF
24696 cat confdefs.h >>conftest.$ac_ext
24697 cat >>conftest.$ac_ext <<_ACEOF
24698 /* end confdefs.h. */
24700 #ifdef HAVE_NETDB_H
24708 #ifndef gethostbyaddr_r
24709 (void) gethostbyaddr_r;
24716 rm -f conftest.$ac_objext
24717 if { (ac_try="$ac_compile"
24718 case "(($ac_try" in
24719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24720 *) ac_try_echo=$ac_try;;
24722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24723 (eval "$ac_compile") 2>conftest.er1
24725 grep -v '^ *+' conftest.er1 >conftest.err
24727 cat conftest.err >&5
24728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); } && {
24730 test -z "$ac_c_werror_flag" ||
24731 test ! -s conftest.err
24732 } && test -s conftest.$ac_objext; then
24733 ac_cv_have_decl_gethostbyaddr_r=yes
24735 echo "$as_me: failed program was:" >&5
24736 sed 's/^/| /' conftest.$ac_ext >&5
24738 ac_cv_have_decl_gethostbyaddr_r=no
24741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24743 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
24744 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
24745 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
24747 cat >>confdefs.h <<_ACEOF
24748 #define HAVE_DECL_GETHOSTBYADDR_R 1
24753 cat >>confdefs.h <<_ACEOF
24754 #define HAVE_DECL_GETHOSTBYADDR_R 0
24759 cat >>confdefs.h <<\_ACEOF
24760 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24763 gethostbyaddrrstyle=BSD
24764 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24765 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24772 if test "x$gethostbyaddrrstyle" = "x"; then
24773 cat >conftest.$ac_ext <<_ACEOF
24776 cat confdefs.h >>conftest.$ac_ext
24777 cat >>conftest.$ac_ext <<_ACEOF
24778 /* end confdefs.h. */
24786 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24791 rm -f conftest.$ac_objext conftest$ac_exeext
24792 if { (ac_try="$ac_link"
24793 case "(($ac_try" in
24794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24795 *) ac_try_echo=$ac_try;;
24797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24798 (eval "$ac_link") 2>conftest.er1
24800 grep -v '^ *+' conftest.er1 >conftest.err
24802 cat conftest.err >&5
24803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804 (exit $ac_status); } && {
24805 test -z "$ac_c_werror_flag" ||
24806 test ! -s conftest.err
24807 } && test -s conftest$ac_exeext &&
24808 $as_test_x conftest$ac_exeext; then
24811 cat >>confdefs.h <<\_ACEOF
24812 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24815 gethostbyaddrrstyle=GNU
24818 echo "$as_me: failed program was:" >&5
24819 sed 's/^/| /' conftest.$ac_ext >&5
24824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24825 conftest$ac_exeext conftest.$ac_ext
24827 if test "x$gethostbyaddrrstyle" = "x"; then
24828 cat >conftest.$ac_ext <<_ACEOF
24831 cat confdefs.h >>conftest.$ac_ext
24832 cat >>conftest.$ac_ext <<_ACEOF
24833 /* end confdefs.h. */
24841 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
24846 rm -f conftest.$ac_objext conftest$ac_exeext
24847 if { (ac_try="$ac_link"
24848 case "(($ac_try" in
24849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24850 *) ac_try_echo=$ac_try;;
24852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24853 (eval "$ac_link") 2>conftest.er1
24855 grep -v '^ *+' conftest.er1 >conftest.err
24857 cat conftest.err >&5
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); } && {
24860 test -z "$ac_c_werror_flag" ||
24861 test ! -s conftest.err
24862 } && test -s conftest$ac_exeext &&
24863 $as_test_x conftest$ac_exeext; then
24866 cat >>confdefs.h <<\_ACEOF
24867 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
24870 gethostbyaddrrstyle=SYSV
24873 echo "$as_me: failed program was:" >&5
24874 sed 's/^/| /' conftest.$ac_ext >&5
24879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24880 conftest$ac_exeext conftest.$ac_ext
24882 if test "x$gethostbyaddrrstyle" = "x"; then
24883 cat >conftest.$ac_ext <<_ACEOF
24886 cat confdefs.h >>conftest.$ac_ext
24887 cat >>conftest.$ac_ext <<_ACEOF
24888 /* end confdefs.h. */
24896 gethostbyaddr(NULL, 0, 0)
24901 rm -f conftest.$ac_objext conftest$ac_exeext
24902 if { (ac_try="$ac_link"
24903 case "(($ac_try" in
24904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24905 *) ac_try_echo=$ac_try;;
24907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24908 (eval "$ac_link") 2>conftest.er1
24910 grep -v '^ *+' conftest.er1 >conftest.err
24912 cat conftest.err >&5
24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); } && {
24915 test -z "$ac_c_werror_flag" ||
24916 test ! -s conftest.err
24917 } && test -s conftest$ac_exeext &&
24918 $as_test_x conftest$ac_exeext; then
24921 cat >>confdefs.h <<\_ACEOF
24922 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24925 gethostbyaddrrstyle=BSD
24928 echo "$as_me: failed program was:" >&5
24929 sed 's/^/| /' conftest.$ac_ext >&5
24934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24935 conftest$ac_exeext conftest.$ac_ext
24938 if test "x$gethostbyaddrrstyle" = "x"; then
24939 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24940 echo "${ECHO_T}none! It must not exist, here." >&6; }
24942 { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
24943 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
24946 if test "x$gethostbyaddrrstyle" = "xBSD"; then
24947 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
24948 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
24951 gethostbynamerstyle=""
24952 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
24953 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
24954 cat >conftest.$ac_ext <<_ACEOF
24957 cat confdefs.h >>conftest.$ac_ext
24958 cat >>conftest.$ac_ext <<_ACEOF
24959 /* end confdefs.h. */
24967 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
24972 rm -f conftest.$ac_objext conftest$ac_exeext
24973 if { (ac_try="$ac_link"
24974 case "(($ac_try" in
24975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24976 *) ac_try_echo=$ac_try;;
24978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24979 (eval "$ac_link") 2>conftest.er1
24981 grep -v '^ *+' conftest.er1 >conftest.err
24983 cat conftest.err >&5
24984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985 (exit $ac_status); } && {
24986 test -z "$ac_c_werror_flag" ||
24987 test ! -s conftest.err
24988 } && test -s conftest$ac_exeext &&
24989 $as_test_x conftest$ac_exeext; then
24992 cat >>confdefs.h <<\_ACEOF
24993 #define GETHOSTBYNAMERSTYLE GNUSTYLE
24996 gethostbynamerstyle=GNU
24999 echo "$as_me: failed program was:" >&5
25000 sed 's/^/| /' conftest.$ac_ext >&5
25005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25006 conftest$ac_exeext conftest.$ac_ext
25007 if test "x$gethostbynamerstyle" = "x"; then
25008 cat >conftest.$ac_ext <<_ACEOF
25011 cat confdefs.h >>conftest.$ac_ext
25012 cat >>conftest.$ac_ext <<_ACEOF
25013 /* end confdefs.h. */
25021 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25026 rm -f conftest.$ac_objext conftest$ac_exeext
25027 if { (ac_try="$ac_link"
25028 case "(($ac_try" in
25029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030 *) ac_try_echo=$ac_try;;
25032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033 (eval "$ac_link") 2>conftest.er1
25035 grep -v '^ *+' conftest.er1 >conftest.err
25037 cat conftest.err >&5
25038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039 (exit $ac_status); } && {
25040 test -z "$ac_c_werror_flag" ||
25041 test ! -s conftest.err
25042 } && test -s conftest$ac_exeext &&
25043 $as_test_x conftest$ac_exeext; then
25046 cat >>confdefs.h <<\_ACEOF
25047 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25050 gethostbynamerstyle=SYSV
25053 echo "$as_me: failed program was:" >&5
25054 sed 's/^/| /' conftest.$ac_ext >&5
25059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25060 conftest$ac_exeext conftest.$ac_ext
25062 if test "x$gethostbynamerstyle" = "x"; then
25063 cat >conftest.$ac_ext <<_ACEOF
25066 cat confdefs.h >>conftest.$ac_ext
25067 cat >>conftest.$ac_ext <<_ACEOF
25068 /* end confdefs.h. */
25076 gethostbyname(NULL)
25081 rm -f conftest.$ac_objext conftest$ac_exeext
25082 if { (ac_try="$ac_link"
25083 case "(($ac_try" in
25084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25085 *) ac_try_echo=$ac_try;;
25087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25088 (eval "$ac_link") 2>conftest.er1
25090 grep -v '^ *+' conftest.er1 >conftest.err
25092 cat conftest.err >&5
25093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); } && {
25095 test -z "$ac_c_werror_flag" ||
25096 test ! -s conftest.err
25097 } && test -s conftest$ac_exeext &&
25098 $as_test_x conftest$ac_exeext; then
25101 cat >>confdefs.h <<\_ACEOF
25102 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25105 gethostbynamerstyle=BSD
25108 echo "$as_me: failed program was:" >&5
25109 sed 's/^/| /' conftest.$ac_ext >&5
25114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25115 conftest$ac_exeext conftest.$ac_ext
25118 if test "x$gethostbynamerstyle" = "x"; then
25119 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25120 echo "${ECHO_T}none! It must not exist, here." >&6; }
25122 { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25123 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25126 if test "x$gethostbynamerstyle" = "xBSD"; then
25127 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25128 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25132 cat >>confdefs.h <<\_ACEOF
25133 #define POSIXSTYLE 1
25137 cat >>confdefs.h <<\_ACEOF
25138 #define SOLARISSTYLE 2
25142 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25143 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
25144 cat >conftest.$ac_ext <<_ACEOF
25147 cat confdefs.h >>conftest.$ac_ext
25148 cat >>conftest.$ac_ext <<_ACEOF
25149 /* end confdefs.h. */
25156 ctime_r(NULL, NULL, 0)
25161 rm -f conftest.$ac_objext conftest$ac_exeext
25162 if { (ac_try="$ac_link"
25163 case "(($ac_try" in
25164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25165 *) ac_try_echo=$ac_try;;
25167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25168 (eval "$ac_link") 2>conftest.er1
25170 grep -v '^ *+' conftest.er1 >conftest.err
25172 cat conftest.err >&5
25173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174 (exit $ac_status); } && {
25175 test -z "$ac_c_werror_flag" ||
25176 test ! -s conftest.err
25177 } && test -s conftest$ac_exeext &&
25178 $as_test_x conftest$ac_exeext; then
25181 cat >>confdefs.h <<\_ACEOF
25182 #define CTIMERSTYLE SOLARISSTYLE
25185 ctimerstyle="SOLARIS"
25188 echo "$as_me: failed program was:" >&5
25189 sed 's/^/| /' conftest.$ac_ext >&5
25194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25195 conftest$ac_exeext conftest.$ac_ext
25196 if test "x$ctimerstyle" = "x"; then
25197 cat >conftest.$ac_ext <<_ACEOF
25200 cat confdefs.h >>conftest.$ac_ext
25201 cat >>conftest.$ac_ext <<_ACEOF
25202 /* end confdefs.h. */
25209 ctime_r(NULL, NULL)
25214 rm -f conftest.$ac_objext conftest$ac_exeext
25215 if { (ac_try="$ac_link"
25216 case "(($ac_try" in
25217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25218 *) ac_try_echo=$ac_try;;
25220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25221 (eval "$ac_link") 2>conftest.er1
25223 grep -v '^ *+' conftest.er1 >conftest.err
25225 cat conftest.err >&5
25226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); } && {
25228 test -z "$ac_c_werror_flag" ||
25229 test ! -s conftest.err
25230 } && test -s conftest$ac_exeext &&
25231 $as_test_x conftest$ac_exeext; then
25234 cat >>confdefs.h <<\_ACEOF
25235 #define CTIMERSTYLE POSIXSTYLE
25238 ctimerstyle="POSIX"
25241 echo "$as_me: failed program was:" >&5
25242 sed 's/^/| /' conftest.$ac_ext >&5
25247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25248 conftest$ac_exeext conftest.$ac_ext
25251 if test "x$ctimerstyle" = "x"; then
25252 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25253 echo "${ECHO_T}none! It must not exist, here." >&6; }
25255 { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25256 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
25264 export top_builddir
25265 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25266 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
25272 mysubdirs="$LIBLTDLPATH"
25273 if test "x$EXPERIMENTAL" = "xyes"; then
25274 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
25275 mysubdirs=`echo $mysubdirs $bar`
25277 for bar in `cat "${srcdir}"/src/modules/stable`; do
25278 if test -f "${srcdir}"/src/modules/$bar/configure; then
25279 mysubdirs="$mysubdirs src/modules/$bar"
25284 if test "x$EXPERIMENTAL" = "xyes"; then
25285 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
25286 MODULES="$MODULES $foo"
25289 for foo in `cat "${srcdir}"/src/modules/stable`; do
25290 MODULES="$MODULES $foo"
25294 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
25299 ac_config_commands="$ac_config_commands stamp-h"
25301 ac_config_commands="$ac_config_commands build-radpaths-h"
25303 ac_config_commands="$ac_config_commands main-chmod"
25305 ac_config_commands="$ac_config_commands scripts-chmod"
25311 USE_SHARED_LIBS=$enable_shared
25313 USE_STATIC_LIBS=$enable_static
25321 unset ac_cv_env_LIBS_set
25322 unset ac_cv_env_LIBS_value
25324 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radiusd.conf"
25326 cat >confcache <<\_ACEOF
25327 # This file is a shell script that caches the results of configure
25328 # tests run on this system so they can be shared between configure
25329 # scripts and configure runs, see configure's option --config-cache.
25330 # It is not useful on other systems. If it contains results you don't
25331 # want to keep, you may remove or edit it.
25333 # config.status only pays attention to the cache file if you give it
25334 # the --recheck option to rerun configure.
25336 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25337 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25338 # following values.
25342 # The following way of writing the cache mishandles newlines in values,
25343 # but we know of no workaround that is simple, portable, and efficient.
25344 # So, we kill variables containing newlines.
25345 # Ultrix sh set writes to stderr and can't be redirected directly,
25346 # and sets the high bit in the cache file unless we assign to the vars.
25348 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25349 eval ac_val=\$$ac_var
25353 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25354 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25357 _ | IFS | as_nl) ;; #(
25358 *) $as_unset $ac_var ;;
25364 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25365 *${as_nl}ac_space=\ *)
25366 # `set' does not quote correctly, so add quotes (double-quote
25367 # substitution turns \\\\ into \\, and sed turns \\ into \).
25370 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25373 # `set' quotes correctly as required by POSIX, so do not add quotes.
25374 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25383 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25385 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25387 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25388 if test -w "$cache_file"; then
25389 test "x$cache_file" != "x/dev/null" &&
25390 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25391 echo "$as_me: updating cache $cache_file" >&6;}
25392 cat confcache >$cache_file
25394 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25395 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25400 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25401 # Let make expand exec_prefix.
25402 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25404 DEFS=-DHAVE_CONFIG_H
25408 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25409 # 1. Remove the extension, and $U if already installed.
25410 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25411 ac_i=`echo "$ac_i" | sed "$ac_script"`
25412 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25413 # will be set to the directory where LIBOBJS objects are built.
25414 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25415 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25417 LIBOBJS=$ac_libobjs
25419 LTLIBOBJS=$ac_ltlibobjs
25423 : ${CONFIG_STATUS=./config.status}
25424 ac_clean_files_save=$ac_clean_files
25425 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25426 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25427 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25428 cat >$CONFIG_STATUS <<_ACEOF
25430 # Generated by $as_me.
25431 # Run this file to recreate the current configuration.
25432 # Compiler output produced by configure, useful for debugging
25433 # configure, is in config.log if it exists.
25436 ac_cs_recheck=false
25438 SHELL=\${CONFIG_SHELL-$SHELL}
25441 cat >>$CONFIG_STATUS <<\_ACEOF
25442 ## --------------------- ##
25443 ## M4sh Initialization. ##
25444 ## --------------------- ##
25446 # Be more Bourne compatible
25447 DUALCASE=1; export DUALCASE # for MKS sh
25448 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25451 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25452 # is contrary to our usage. Disable this feature.
25453 alias -g '${1+"$@"}'='"$@"'
25454 setopt NO_GLOB_SUBST
25456 case `(set -o) 2>/dev/null` in
25457 *posix*) set -o posix ;;
25466 # Avoid depending upon Character Ranges.
25467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25470 as_cr_digits='0123456789'
25471 as_cr_alnum=$as_cr_Letters$as_cr_digits
25473 # The user is always right.
25474 if test "${PATH_SEPARATOR+set}" != set; then
25475 echo "#! /bin/sh" >conf$$.sh
25476 echo "exit 0" >>conf$$.sh
25478 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25486 # Support unset when possible.
25487 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25495 # We need space, tab and new line, in precisely that order. Quoting is
25496 # there to prevent editors from complaining about space-tab.
25497 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25498 # splitting by setting IFS to empty value.)
25503 # Find who we are. Look in the path if we contain no directory separator.
25505 *[\\/]* ) as_myself=$0 ;;
25506 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25507 for as_dir in $PATH
25510 test -z "$as_dir" && as_dir=.
25511 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25517 # We did not find ourselves, most probably we were run as `sh COMMAND'
25518 # in which case we are not to be found in the path.
25519 if test "x$as_myself" = x; then
25522 if test ! -f "$as_myself"; then
25523 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25524 { (exit 1); exit 1; }
25527 # Work around bugs in pre-3.0 UWIN ksh.
25528 for as_var in ENV MAIL MAILPATH
25529 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25537 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25538 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25539 LC_TELEPHONE LC_TIME
25541 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25542 eval $as_var=C; export $as_var
25544 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25548 # Required to use basename.
25549 if expr a : '\(a\)' >/dev/null 2>&1 &&
25550 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25556 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25557 as_basename=basename
25563 # Name of the executable.
25564 as_me=`$as_basename -- "$0" ||
25565 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25566 X"$0" : 'X\(//\)$' \| \
25567 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25569 sed '/^.*\/\([^/][^/]*\)\/*$/{
25588 as_lineno_1=$LINENO
25589 as_lineno_2=$LINENO
25590 test "x$as_lineno_1" != "x$as_lineno_2" &&
25591 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25593 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25594 # uniformly replaced by the line number. The first 'sed' inserts a
25595 # line-number line after each line using $LINENO; the second 'sed'
25596 # does the real work. The second script uses 'N' to pair each
25597 # line-number line with the line containing $LINENO, and appends
25598 # trailing '-' during substitution so that $LINENO is not a special
25599 # case at line end.
25600 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25601 # scripts with optimization help from Paolo Bonzini. Blame Lee
25602 # E. McMahon (1931-1989) for sed's syntax. :-)
25614 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25617 ' >$as_me.lineno &&
25618 chmod +x "$as_me.lineno" ||
25619 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25620 { (exit 1); exit 1; }; }
25622 # Don't try to exec as it changes $[0], causing all sort of problems
25623 # (the dirname of $[0] is not the place where we might find the
25624 # original and so on. Autoconf is especially sensitive to this).
25625 . "./$as_me.lineno"
25626 # Exit status is that of the last command.
25631 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25637 ECHO_C= ECHO_N= ECHO_T=
25638 case `echo -n x` in
25640 case `echo 'x\c'` in
25641 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25648 if expr a : '\(a\)' >/dev/null 2>&1 &&
25649 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25655 rm -f conf$$ conf$$.exe conf$$.file
25656 if test -d conf$$.dir; then
25657 rm -f conf$$.dir/conf$$.file
25663 if ln -s conf$$.file conf$$ 2>/dev/null; then
25665 # ... but there are two gotchas:
25666 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25667 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25668 # In both cases, we have to default to `cp -p'.
25669 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25671 elif ln conf$$.file conf$$ 2>/dev/null; then
25676 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25677 rmdir conf$$.dir 2>/dev/null
25679 if mkdir -p . 2>/dev/null; then
25682 test -d ./-p && rmdir ./-p
25686 if test -x / >/dev/null 2>&1; then
25687 as_test_x='test -x'
25689 if ls -dL / >/dev/null 2>&1; then
25696 if test -d "$1"; then
25702 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25703 ???[sx]*):;;*)false;;esac;fi
25707 as_executable_p=$as_test_x
25709 # Sed expression to map a string onto a valid CPP name.
25710 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25712 # Sed expression to map a string onto a valid variable name.
25713 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25718 # Save the log message, to keep $[0] and so on meaningful, and to
25719 # report actual input values of CONFIG_FILES etc. instead of their
25720 # values after options handling.
25722 This file was extended by $as_me, which was
25723 generated by GNU Autoconf 2.61. Invocation command line was
25725 CONFIG_FILES = $CONFIG_FILES
25726 CONFIG_HEADERS = $CONFIG_HEADERS
25727 CONFIG_LINKS = $CONFIG_LINKS
25728 CONFIG_COMMANDS = $CONFIG_COMMANDS
25731 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25736 cat >>$CONFIG_STATUS <<_ACEOF
25737 # Files that config.status was made for.
25738 config_files="$ac_config_files"
25739 config_headers="$ac_config_headers"
25740 config_commands="$ac_config_commands"
25744 cat >>$CONFIG_STATUS <<\_ACEOF
25746 \`$as_me' instantiates files from templates according to the
25747 current configuration.
25749 Usage: $0 [OPTIONS] [FILE]...
25751 -h, --help print this help, then exit
25752 -V, --version print version number and configuration settings, then exit
25753 -q, --quiet do not print progress messages
25754 -d, --debug don't remove temporary files
25755 --recheck update $as_me by reconfiguring in the same conditions
25756 --file=FILE[:TEMPLATE]
25757 instantiate the configuration file FILE
25758 --header=FILE[:TEMPLATE]
25759 instantiate the configuration header FILE
25761 Configuration files:
25764 Configuration headers:
25767 Configuration commands:
25770 Report bugs to <bug-autoconf@gnu.org>."
25773 cat >>$CONFIG_STATUS <<_ACEOF
25776 configured by $0, generated by GNU Autoconf 2.61,
25777 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25779 Copyright (C) 2006 Free Software Foundation, Inc.
25780 This config.status script is free software; the Free Software Foundation
25781 gives unlimited permission to copy, distribute and modify it."
25787 cat >>$CONFIG_STATUS <<\_ACEOF
25788 # If no file are specified by the user, then we need to provide default
25789 # value. By we need to know if files were specified by the user.
25795 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25796 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25807 # Handling of the options.
25808 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25810 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25811 echo "$ac_cs_version"; exit ;;
25812 --debug | --debu | --deb | --de | --d | -d )
25814 --file | --fil | --fi | --f )
25816 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25817 ac_need_defaults=false;;
25818 --header | --heade | --head | --hea )
25820 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25821 ac_need_defaults=false;;
25823 # Conflict between --help and --header
25824 { echo "$as_me: error: ambiguous option: $1
25825 Try \`$0 --help' for more information." >&2
25826 { (exit 1); exit 1; }; };;
25827 --help | --hel | -h )
25828 echo "$ac_cs_usage"; exit ;;
25829 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25830 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25833 # This is an error.
25834 -*) { echo "$as_me: error: unrecognized option: $1
25835 Try \`$0 --help' for more information." >&2
25836 { (exit 1); exit 1; }; } ;;
25838 *) ac_config_targets="$ac_config_targets $1"
25839 ac_need_defaults=false ;;
25845 ac_configure_extra_args=
25847 if $ac_cs_silent; then
25849 ac_configure_extra_args="$ac_configure_extra_args --silent"
25853 cat >>$CONFIG_STATUS <<_ACEOF
25854 if \$ac_cs_recheck; then
25855 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25856 CONFIG_SHELL=$SHELL
25857 export CONFIG_SHELL
25858 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25862 cat >>$CONFIG_STATUS <<\_ACEOF
25866 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25867 ## Running $as_me. ##
25873 cat >>$CONFIG_STATUS <<_ACEOF
25876 cat >>$CONFIG_STATUS <<\_ACEOF
25878 # Handling of arguments.
25879 for ac_config_target in $ac_config_targets
25881 case $ac_config_target in
25882 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
25883 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
25884 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
25885 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
25886 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
25887 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
25888 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
25889 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
25890 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
25891 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
25892 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
25893 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
25894 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
25895 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
25896 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
25897 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
25898 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
25899 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
25901 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25902 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25903 { (exit 1); exit 1; }; };;
25908 # If the user did not use the arguments to specify the items to instantiate,
25909 # then the envvar interface is used. Set only those that are not.
25910 # We use the long form for the default assignment because of an extremely
25911 # bizarre bug on SunOS 4.1.3.
25912 if $ac_need_defaults; then
25913 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25914 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25915 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25918 # Have a temporary directory for convenience. Make it in the build tree
25919 # simply because there is no reason against having it here, and in addition,
25920 # creating and moving files from /tmp can sometimes cause problems.
25921 # Hook for its removal unless debugging.
25922 # Note that there is a small window in which the directory will not be cleaned:
25923 # after its creation but before its name has been assigned to `$tmp'.
25927 trap 'exit_status=$?
25928 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25930 trap '{ (exit 1); exit 1; }' 1 2 13 15
25932 # Create a (secure) tmp directory for tmp files.
25935 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25936 test -n "$tmp" && test -d "$tmp"
25939 tmp=./conf$$-$RANDOM
25940 (umask 077 && mkdir "$tmp")
25943 echo "$me: cannot create a temporary directory in ." >&2
25944 { (exit 1); exit 1; }
25948 # Set up the sed scripts for CONFIG_FILES section.
25951 # No need to generate the scripts if there are no CONFIG_FILES.
25952 # This happens for instance when ./config.status config.h
25953 if test -n "$CONFIG_FILES"; then
25960 for ac_last_try in false false false false false :; do
25961 cat >conf$$subs.sed <<_ACEOF
25962 SHELL!$SHELL$ac_delim
25963 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25964 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25965 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25966 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25967 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25968 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25969 exec_prefix!$exec_prefix$ac_delim
25970 prefix!$prefix$ac_delim
25971 program_transform_name!$program_transform_name$ac_delim
25972 bindir!$bindir$ac_delim
25973 sbindir!$sbindir$ac_delim
25974 libexecdir!$libexecdir$ac_delim
25975 datarootdir!$datarootdir$ac_delim
25976 datadir!$datadir$ac_delim
25977 sysconfdir!$sysconfdir$ac_delim
25978 sharedstatedir!$sharedstatedir$ac_delim
25979 localstatedir!$localstatedir$ac_delim
25980 includedir!$includedir$ac_delim
25981 oldincludedir!$oldincludedir$ac_delim
25982 docdir!$docdir$ac_delim
25983 infodir!$infodir$ac_delim
25984 htmldir!$htmldir$ac_delim
25985 dvidir!$dvidir$ac_delim
25986 pdfdir!$pdfdir$ac_delim
25987 psdir!$psdir$ac_delim
25988 libdir!$libdir$ac_delim
25989 localedir!$localedir$ac_delim
25990 mandir!$mandir$ac_delim
25991 DEFS!$DEFS$ac_delim
25992 ECHO_C!$ECHO_C$ac_delim
25993 ECHO_N!$ECHO_N$ac_delim
25994 ECHO_T!$ECHO_T$ac_delim
25995 LIBS!$LIBS$ac_delim
25996 build_alias!$build_alias$ac_delim
25997 host_alias!$host_alias$ac_delim
25998 target_alias!$target_alias$ac_delim
26000 CFLAGS!$CFLAGS$ac_delim
26001 LDFLAGS!$LDFLAGS$ac_delim
26002 CPPFLAGS!$CPPFLAGS$ac_delim
26003 ac_ct_CC!$ac_ct_CC$ac_delim
26004 EXEEXT!$EXEEXT$ac_delim
26005 OBJEXT!$OBJEXT$ac_delim
26007 CXXFLAGS!$CXXFLAGS$ac_delim
26008 ac_ct_CXX!$ac_ct_CXX$ac_delim
26010 GREP!$GREP$ac_delim
26011 EGREP!$EGREP$ac_delim
26012 RANLIB!$RANLIB$ac_delim
26013 GMAKE!$GMAKE$ac_delim
26014 MAKE!$MAKE$ac_delim
26015 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
26016 LIBTOOL!$LIBTOOL$ac_delim
26017 build!$build$ac_delim
26018 build_cpu!$build_cpu$ac_delim
26019 build_vendor!$build_vendor$ac_delim
26020 build_os!$build_os$ac_delim
26021 host!$host$ac_delim
26022 host_cpu!$host_cpu$ac_delim
26023 host_vendor!$host_vendor$ac_delim
26024 host_os!$host_os$ac_delim
26025 LN_S!$LN_S$ac_delim
26026 ECHO!$ECHO$ac_delim
26028 STRIP!$STRIP$ac_delim
26029 CXXCPP!$CXXCPP$ac_delim
26031 FFLAGS!$FFLAGS$ac_delim
26032 ac_ct_F77!$ac_ct_F77$ac_delim
26033 logdir!$logdir$ac_delim
26034 radacctdir!$radacctdir$ac_delim
26035 raddbdir!$raddbdir$ac_delim
26036 PERL!$PERL$ac_delim
26037 SNMPGET!$SNMPGET$ac_delim
26038 SNMPWALK!$SNMPWALK$ac_delim
26039 RUSERS!$RUSERS$ac_delim
26040 ACLOCAL!$ACLOCAL$ac_delim
26041 AUTOCONF!$AUTOCONF$ac_delim
26042 AUTOHEADER!$AUTOHEADER$ac_delim
26043 LOCATE!$LOCATE$ac_delim
26044 DIRNAME!$DIRNAME$ac_delim
26045 LIBREADLINE!$LIBREADLINE$ac_delim
26046 REGEX!$REGEX$ac_delim
26047 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26048 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26049 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26050 PCAP_LIBS!$PCAP_LIBS$ac_delim
26051 LIBPREFIX!$LIBPREFIX$ac_delim
26052 CRYPTLIB!$CRYPTLIB$ac_delim
26053 HOSTINFO!$HOSTINFO$ac_delim
26054 LIBLTDL!$LIBLTDL$ac_delim
26055 INCLTDL!$INCLTDL$ac_delim
26056 subdirs!$subdirs$ac_delim
26057 MODULES!$MODULES$ac_delim
26058 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26061 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26063 elif $ac_last_try; then
26064 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26065 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26066 { (exit 1); exit 1; }; }
26068 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26072 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26073 if test -n "$ac_eof"; then
26074 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26075 ac_eof=`expr $ac_eof + 1`
26078 cat >>$CONFIG_STATUS <<_ACEOF
26079 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26083 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26084 s/^/s,@/; s/!/@,|#_!!_#|/
26087 s/'"$ac_delim"'$/,g/; t
26089 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26090 ' >>$CONFIG_STATUS <conf$$subs.sed
26091 rm -f conf$$subs.sed
26092 cat >>$CONFIG_STATUS <<_ACEOF
26098 for ac_last_try in false false false false false :; do
26099 cat >conf$$subs.sed <<_ACEOF
26100 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26101 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26102 STATIC_MODULES!$STATIC_MODULES$ac_delim
26103 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26104 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26105 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26106 LIBOBJS!$LIBOBJS$ac_delim
26107 LTLIBOBJS!$LTLIBOBJS$ac_delim
26110 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
26112 elif $ac_last_try; then
26113 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26114 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26115 { (exit 1); exit 1; }; }
26117 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26121 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26122 if test -n "$ac_eof"; then
26123 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26124 ac_eof=`expr $ac_eof + 1`
26127 cat >>$CONFIG_STATUS <<_ACEOF
26128 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26132 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26133 s/^/s,@/; s/!/@,|#_!!_#|/
26136 s/'"$ac_delim"'$/,g/; t
26138 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26139 ' >>$CONFIG_STATUS <conf$$subs.sed
26140 rm -f conf$$subs.sed
26141 cat >>$CONFIG_STATUS <<_ACEOF
26148 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26149 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26150 # trailing colons and then remove the whole line if VPATH becomes empty
26151 # (actually we leave an empty line to preserve line numbers).
26152 if test "x$srcdir" = x.; then
26153 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26154 s/:*\$(srcdir):*/:/
26155 s/:*\${srcdir}:*/:/
26157 s/^\([^=]*=[ ]*\):*/\1/
26163 cat >>$CONFIG_STATUS <<\_ACEOF
26164 fi # test -n "$CONFIG_FILES"
26167 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26170 :[FHLC]) ac_mode=$ac_tag; continue;;
26172 case $ac_mode$ac_tag in
26174 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26175 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26176 { (exit 1); exit 1; }; };;
26177 :[FH]-) ac_tag=-:-;;
26178 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26195 -) ac_f="$tmp/stdin";;
26196 *) # Look for the file first in the build tree, then in the source tree
26197 # (if the path is not absolute). The absolute path cannot be DOS-style,
26198 # because $ac_f cannot contain `:'.
26202 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26204 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26205 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26206 { (exit 1); exit 1; }; };;
26208 ac_file_inputs="$ac_file_inputs $ac_f"
26211 # Let's still pretend it is `configure' which instantiates (i.e., don't
26212 # use $as_me), people would be surprised to read:
26213 # /* config.h. Generated by config.status. */
26214 configure_input="Generated from "`IFS=:
26215 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26216 if test x"$ac_file" != x-; then
26217 configure_input="$ac_file. $configure_input"
26218 { echo "$as_me:$LINENO: creating $ac_file" >&5
26219 echo "$as_me: creating $ac_file" >&6;}
26223 *:-:* | *:-) cat >"$tmp/stdin";;
26228 ac_dir=`$as_dirname -- "$ac_file" ||
26229 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26230 X"$ac_file" : 'X\(//\)[^/]' \| \
26231 X"$ac_file" : 'X\(//\)$' \| \
26232 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26238 /^X\(\/\/\)[^/].*/{
26253 -*) as_dir=./$as_dir;;
26255 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26259 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26260 *) as_qdir=$as_dir;;
26262 as_dirs="'$as_qdir' $as_dirs"
26263 as_dir=`$as_dirname -- "$as_dir" ||
26264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26265 X"$as_dir" : 'X\(//\)[^/]' \| \
26266 X"$as_dir" : 'X\(//\)$' \| \
26267 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26273 /^X\(\/\/\)[^/].*/{
26286 test -d "$as_dir" && break
26288 test -z "$as_dirs" || eval "mkdir $as_dirs"
26289 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26290 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26291 { (exit 1); exit 1; }; }; }
26295 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26297 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26298 # A ".." for each directory in $ac_dir_suffix.
26299 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26300 case $ac_top_builddir_sub in
26301 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26302 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26305 ac_abs_top_builddir=$ac_pwd
26306 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26307 # for backward compatibility:
26308 ac_top_builddir=$ac_top_build_prefix
26311 .) # We are building in place.
26313 ac_top_srcdir=$ac_top_builddir_sub
26314 ac_abs_top_srcdir=$ac_pwd ;;
26315 [\\/]* | ?:[\\/]* ) # Absolute name.
26316 ac_srcdir=$srcdir$ac_dir_suffix;
26317 ac_top_srcdir=$srcdir
26318 ac_abs_top_srcdir=$srcdir ;;
26319 *) # Relative name.
26320 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26321 ac_top_srcdir=$ac_top_build_prefix$srcdir
26322 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26324 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26335 cat >>$CONFIG_STATUS <<\_ACEOF
26336 # If the template does not know about datarootdir, expand it.
26337 # FIXME: This hack should be removed a few years after 2.60.
26338 ac_datarootdir_hack=; ac_datarootdir_seen=
26340 case `sed -n '/datarootdir/ {
26349 ' $ac_file_inputs` in
26350 *datarootdir*) ac_datarootdir_seen=yes;;
26351 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26352 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26353 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26355 cat >>$CONFIG_STATUS <<_ACEOF
26356 ac_datarootdir_hack='
26357 s&@datadir@&$datadir&g
26358 s&@docdir@&$docdir&g
26359 s&@infodir@&$infodir&g
26360 s&@localedir@&$localedir&g
26361 s&@mandir@&$mandir&g
26362 s&\\\${datarootdir}&$datarootdir&g' ;;
26366 # Neutralize VPATH when `$srcdir' = `.'.
26367 # Shell code in configure.ac might set extrasub.
26368 # FIXME: do we really want to maintain this feature?
26369 cat >>$CONFIG_STATUS <<_ACEOF
26373 cat >>$CONFIG_STATUS <<\_ACEOF
26375 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26376 s&@configure_input@&$configure_input&;t t
26377 s&@top_builddir@&$ac_top_builddir_sub&;t t
26378 s&@srcdir@&$ac_srcdir&;t t
26379 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26380 s&@top_srcdir@&$ac_top_srcdir&;t t
26381 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26382 s&@builddir@&$ac_builddir&;t t
26383 s&@abs_builddir@&$ac_abs_builddir&;t t
26384 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26385 $ac_datarootdir_hack
26386 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26388 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26389 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26390 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26391 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26392 which seems to be undefined. Please make sure it is defined." >&5
26393 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26394 which seems to be undefined. Please make sure it is defined." >&2;}
26398 -) cat "$tmp/out"; rm -f "$tmp/out";;
26399 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26408 # Transform confdefs.h into a sed script `conftest.defines', that
26409 # substitutes the proper values into config.h.in to produce config.h.
26410 rm -f conftest.defines conftest.tail
26411 # First, append a space to every undef/define line, to ease matching.
26412 echo 's/$/ /' >conftest.defines
26413 # Then, protect against being on the right side of a sed subst, or in
26414 # an unquoted here document, in config.status. If some macros were
26415 # called several times there might be several #defines for the same
26416 # symbol, which is useless. But do not sort them, since the last
26417 # AC_DEFINE must be honored.
26418 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26419 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26420 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26421 # PARAMS is the parameter list in the macro definition--in most cases, it's
26422 # just an empty string.
26423 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26424 ac_dB='\\)[ (].*,\\1define\\2'
26432 s/^[ ]*#[ ]*define[ ][ ]*//
26437 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26438 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26439 ' >>conftest.defines
26441 # Remove the space that was appended to ease matching.
26442 # Then replace #undef with comments. This is necessary, for
26443 # example, in the case of _POSIX_SOURCE, which is predefined and required
26444 # on some systems where configure will not decide to define it.
26445 # (The regexp can be short, since the line contains either #define or #undef.)
26447 s,^[ #]*u.*,/* & */,' >>conftest.defines
26449 # Break up conftest.defines:
26450 ac_max_sed_lines=50
26452 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26453 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26454 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26456 ac_in='$ac_file_inputs'
26457 ac_out='"$tmp/out1"'
26458 ac_nxt='"$tmp/out2"'
26462 # Write a here document:
26463 cat >>$CONFIG_STATUS <<_ACEOF
26464 # First, check the format of the line:
26465 cat >"\$tmp/defines.sed" <<\\CEOF
26466 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26467 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26471 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26473 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26474 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26475 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26476 grep . conftest.tail >/dev/null || break
26477 rm -f conftest.defines
26478 mv conftest.tail conftest.defines
26480 rm -f conftest.defines conftest.tail
26482 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26483 cat >>$CONFIG_STATUS <<\_ACEOF
26484 if test x"$ac_file" != x-; then
26485 echo "/* $configure_input */" >"$tmp/config.h"
26486 cat "$ac_result" >>"$tmp/config.h"
26487 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26488 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26489 echo "$as_me: $ac_file is unchanged" >&6;}
26492 mv "$tmp/config.h" $ac_file
26495 echo "/* $configure_input */"
26501 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26502 echo "$as_me: executing $ac_file commands" >&6;}
26507 case $ac_file$ac_mode in
26508 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
26509 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26510 "main-chmod":C) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
26511 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26517 { (exit 0); exit 0; }
26519 chmod +x $CONFIG_STATUS
26520 ac_clean_files=$ac_clean_files_save
26523 # configure is writing to config.log, and then calls config.status.
26524 # config.status does its own redirection, appending to config.log.
26525 # Unfortunately, on DOS this fails, as config.log is still kept open
26526 # by configure, so config.status won't be able to write to it; its
26527 # output is simply discarded. So we exec the FD to /dev/null,
26528 # effectively closing config.log, so it can be properly (re)opened and
26529 # appended to by config.status. When coming back to configure, we
26530 # need to make the FD available again.
26531 if test "$no_create" != yes; then
26533 ac_config_status_args=
26534 test "$silent" = yes &&
26535 ac_config_status_args="$ac_config_status_args --quiet"
26537 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26539 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26540 # would make configure fail if this is the last instruction.
26541 $ac_cs_success || { (exit 1); exit 1; }
26545 # CONFIG_SUBDIRS section.
26547 if test "$no_recursion" != yes; then
26549 # Remove --cache-file and --srcdir arguments so they do not pile up.
26550 ac_sub_configure_args=
26552 eval "set x $ac_configure_args"
26556 if test -n "$ac_prev"; then
26561 -cache-file | --cache-file | --cache-fil | --cache-fi \
26562 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26563 ac_prev=cache_file ;;
26564 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26565 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26568 --config-cache | -C)
26570 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26572 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26574 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26576 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26580 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26582 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
26586 # Always prepend --prefix to ensure using the same prefix
26587 # in subdir configurations.
26588 ac_arg="--prefix=$prefix"
26590 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26592 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
26595 if test "$silent" = yes; then
26596 ac_sub_configure_args="--silent $ac_sub_configure_args"
26600 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26602 # Do not complain, so a configure script can configure whichever
26603 # parts of a large source tree are present.
26604 test -d "$srcdir/$ac_dir" || continue
26606 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26607 echo "$as_me:$LINENO: $ac_msg" >&5
26611 -*) as_dir=./$as_dir;;
26613 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26617 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26618 *) as_qdir=$as_dir;;
26620 as_dirs="'$as_qdir' $as_dirs"
26621 as_dir=`$as_dirname -- "$as_dir" ||
26622 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26623 X"$as_dir" : 'X\(//\)[^/]' \| \
26624 X"$as_dir" : 'X\(//\)$' \| \
26625 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26631 /^X\(\/\/\)[^/].*/{
26644 test -d "$as_dir" && break
26646 test -z "$as_dirs" || eval "mkdir $as_dirs"
26647 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26648 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26649 { (exit 1); exit 1; }; }; }
26653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26655 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26656 # A ".." for each directory in $ac_dir_suffix.
26657 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26658 case $ac_top_builddir_sub in
26659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26663 ac_abs_top_builddir=$ac_pwd
26664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26665 # for backward compatibility:
26666 ac_top_builddir=$ac_top_build_prefix
26669 .) # We are building in place.
26671 ac_top_srcdir=$ac_top_builddir_sub
26672 ac_abs_top_srcdir=$ac_pwd ;;
26673 [\\/]* | ?:[\\/]* ) # Absolute name.
26674 ac_srcdir=$srcdir$ac_dir_suffix;
26675 ac_top_srcdir=$srcdir
26676 ac_abs_top_srcdir=$srcdir ;;
26677 *) # Relative name.
26678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26679 ac_top_srcdir=$ac_top_build_prefix$srcdir
26680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26687 # Check for guested configure; otherwise get Cygnus style configure.
26688 if test -f "$ac_srcdir/configure.gnu"; then
26689 ac_sub_configure=$ac_srcdir/configure.gnu
26690 elif test -f "$ac_srcdir/configure"; then
26691 ac_sub_configure=$ac_srcdir/configure
26692 elif test -f "$ac_srcdir/configure.in"; then
26693 # This should be Cygnus configure.
26694 ac_sub_configure=$ac_aux_dir/configure
26696 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26697 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26701 # The recursion is here.
26702 if test -n "$ac_sub_configure"; then
26703 # Make the cache file name correct relative to the subdirectory.
26704 case $cache_file in
26705 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26706 *) # Relative name.
26707 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
26710 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26711 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26712 # The eval makes quoting arguments work.
26713 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
26714 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
26715 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26716 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26717 { (exit 1); exit 1; }; }