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
874 RADIUSD_MAJOR_VERSION
875 RADIUSD_MINOR_VERSION
880 ac_precious_vars='build_alias
895 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
897 # Initialize some variables set by options.
899 ac_init_version=false
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
909 program_transform_name=s,x,x,
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE}'
934 infodir='${datarootdir}/info'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
947 # If the previous option needs an argument, assign it.
948 if test -n "$ac_prev"; then
949 eval $ac_prev=\$ac_option
955 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
959 # Accept the important Cygnus configure options, so we can diagnose typos.
961 case $ac_dashdash$ac_option in
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970 -build | --build | --buil | --bui | --bu)
971 ac_prev=build_alias ;;
972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973 build_alias=$ac_optarg ;;
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980 cache_file=$ac_optarg ;;
983 cache_file=config.cache ;;
985 -datadir | --datadir | --datadi | --datad)
987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
988 datadir=$ac_optarg ;;
990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
997 -disable-* | --disable-*)
998 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002 { (exit 1); exit 1; }; }
1003 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004 eval enable_$ac_feature=no ;;
1006 -docdir | --docdir | --docdi | --doc | --do)
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
1016 -enable-* | --enable-*)
1017 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023 eval enable_$ac_feature=\$ac_optarg ;;
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
1032 exec_prefix=$ac_optarg ;;
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
1045 -host | --host | --hos | --ho)
1046 ac_prev=host_alias ;;
1047 -host=* | --host=* | --hos=* | --ho=*)
1048 host_alias=$ac_optarg ;;
1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 htmldir=$ac_optarg ;;
1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
1061 includedir=$ac_optarg ;;
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066 infodir=$ac_optarg ;;
1068 -libdir | --libdir | --libdi | --libd)
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071 libdir=$ac_optarg ;;
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
1078 libexecdir=$ac_optarg ;;
1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
1086 | --localstate | --localstat | --localsta | --localst | --locals)
1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090 localstatedir=$ac_optarg ;;
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095 mandir=$ac_optarg ;;
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102 | --no-cr | --no-c | -n)
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116 oldincludedir=$ac_optarg ;;
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121 prefix=$ac_optarg ;;
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128 program_prefix=$ac_optarg ;;
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135 program_suffix=$ac_optarg ;;
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
1152 program_transform_name=$ac_optarg ;;
1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1159 -psdir | --psdir | --psdi | --psd | --ps)
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 sbindir=$ac_optarg ;;
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 sharedstatedir=$ac_optarg ;;
1185 -site | --site | --sit)
1187 -site=* | --site=* | --sit=*)
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193 srcdir=$ac_optarg ;;
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200 sysconfdir=$ac_optarg ;;
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
1203 ac_prev=target_alias ;;
1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205 target_alias=$ac_optarg ;;
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
1214 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 { echo "$as_me: error: invalid package name: $ac_package" >&2
1218 { (exit 1); exit 1; }; }
1219 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1220 eval with_$ac_package=\$ac_optarg ;;
1222 -without-* | --without-*)
1223 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 { echo "$as_me: error: invalid package name: $ac_package" >&2
1227 { (exit 1); exit 1; }; }
1228 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229 eval with_$ac_package=no ;;
1232 # Obsolete; use --with-x.
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240 x_includes=$ac_optarg ;;
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247 x_libraries=$ac_optarg ;;
1249 -*) { echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251 { (exit 1); exit 1; }; }
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259 { (exit 1); exit 1; }; }
1260 eval $ac_envvar=\$ac_optarg
1261 export $ac_envvar ;;
1264 # FIXME: should be removed in autoconf 3.0.
1265 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274 if test -n "$ac_prev"; then
1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 { echo "$as_me: error: missing argument to $ac_option" >&2
1277 { (exit 1); exit 1; }; }
1280 # Be sure to have absolute directory names.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
1286 eval ac_val=\$$ac_var
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292 { (exit 1); exit 1; }; }
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1300 target=$target_alias
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304 if test "x$build_alias" = x; then
1305 cross_compiling=maybe
1306 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307 If a cross compiler is detected then cross compile mode will be used." >&2
1308 elif test "x$build_alias" != "x$host_alias"; then
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316 test "$silent" = yes && exec 6>/dev/null
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322 { echo "$as_me: error: Working directory cannot be determined" >&2
1323 { (exit 1); exit 1; }; }
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 { echo "$as_me: error: pwd does not report name of working directory" >&2
1326 { (exit 1); exit 1; }; }
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$0" ||
1334 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$0" : 'X\(//\)[^/]' \| \
1336 X"$0" : 'X\(//\)$' \| \
1337 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1361 ac_srcdir_defaulted=no
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1366 { (exit 1); exit 1; }; }
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1371 { (exit 1); exit 1; }; }
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391 # Report the --help message.
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1397 \`configure' configures this package to adapt to many kinds of systems.
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1404 Defaults for the options are specified in brackets.
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1428 For better control, use the options below.
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 if test -n "$ac_init_help"; then
1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1467 --disable-largefile omit support for large files
1468 --enable-shared[=PKGS] build shared libraries [default=yes]
1469 --enable-static[=PKGS] build static libraries [default=yes]
1470 --enable-fast-install[=PKGS]
1471 optimize for fast installation [default=yes]
1472 --disable-libtool-lock avoid locking (might break parallel builds)
1473 --enable-strict-dependencies Fail configure on lack of module dependancy.
1474 --enable-developer Enables features of interest to developers.
1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1479 --with-system-libtldl Use the libtltdl installed in your system (default=use our own)
1480 --with-system-libtool Use the libtool installed in your system (default=use our own)
1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1482 --with-pic try to use only PIC/non-PIC objects [default=use
1484 --with-tags[=TAGS] include additional configurations [automatic]
1485 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1486 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1487 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1488 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1489 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1490 --with-threads Use threads, if available. (default=yes)
1491 --with-vmps Compile in VMPS support. (default=yes)
1492 --with-dhcp Compile in DHCP support. (default=no)
1493 --with-static-modules=QUOTED-MODULE-LIST
1494 --with-modules=QUOTED-MODULE-LIST
1495 --with-experimental-modules Use experimental and unstable modules. (default=no)
1496 --with-openssl Use OpenSSL. (default=yes)
1497 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1498 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1499 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1500 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1501 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1503 Some influential environment variables:
1504 CC C compiler command
1505 CFLAGS C compiler flags
1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507 nonstandard directory <lib dir>
1508 LIBS libraries to pass to the linker, e.g. -l<library>
1509 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1510 you have headers in a nonstandard directory <include dir>
1511 CXX C++ compiler command
1512 CXXFLAGS C++ compiler flags
1514 CXXCPP C++ preprocessor
1515 F77 Fortran 77 compiler command
1516 FFLAGS Fortran 77 compiler flags
1518 Use these variables to override the choices made by `configure' or to help
1519 it to find libraries and programs with nonstandard names/locations.
1525 if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528 test -d "$ac_dir" || continue
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1548 .) # We are building in place.
1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
1553 ac_srcdir=$srcdir$ac_dir_suffix;
1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for guested configure.
1565 if test -f "$ac_srcdir/configure.gnu"; then
1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
1570 $SHELL "$ac_srcdir/configure" --help=recursive
1572 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574 cd "$ac_pwd" || { ac_status=$?; break; }
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1582 generated by GNU Autoconf 2.61
1584 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1585 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1591 cat >config.log <<_ACEOF
1592 This file contains any messages produced by compilers while
1593 running configure, to aid debugging if configure makes a mistake.
1595 It was created by $as_me, which was
1596 generated by GNU Autoconf 2.61. Invocation command line was
1608 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1609 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1610 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1611 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1612 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1614 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1615 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1617 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1618 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1619 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1620 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1621 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1622 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1623 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 test -z "$as_dir" && as_dir=.
1632 echo "PATH: $as_dir"
1648 # Keep a trace of the command line.
1649 # Strip out --no-create and --no-recursion so they do not pile up.
1650 # Strip out --silent because we don't want to record it for future runs.
1651 # Also quote any args containing shell meta-characters.
1652 # Make two passes to allow for proper duplicate-argument suppression.
1656 ac_must_keep_next=false
1662 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1663 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1664 | -silent | --silent | --silen | --sile | --sil)
1667 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1670 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1672 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1673 if test $ac_must_keep_next = true; then
1674 ac_must_keep_next=false # Got value, back to normal.
1677 *=* | --config-cache | -C | -disable-* | --disable-* \
1678 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1679 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1680 | -with-* | --with-* | -without-* | --without-* | --x)
1681 case "$ac_configure_args0 " in
1682 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1685 -* ) ac_must_keep_next=true ;;
1688 ac_configure_args="$ac_configure_args '$ac_arg'"
1693 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1694 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1696 # When interrupted or exit'd, cleanup temporary files, and complete
1697 # config.log. We remove comments because anyway the quotes in there
1698 # would cause problems or look ugly.
1699 # WARNING: Use '\'' to represent an apostrophe within the trap.
1700 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1701 trap 'exit_status=$?
1702 # Save into config.log some information that might help in debugging.
1707 ## ---------------- ##
1708 ## Cache variables. ##
1709 ## ---------------- ##
1712 # The following way of writing the cache mishandles newlines in values,
1714 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1715 eval ac_val=\$$ac_var
1719 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1720 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1723 _ | IFS | as_nl) ;; #(
1724 *) $as_unset $ac_var ;;
1729 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1730 *${as_nl}ac_space=\ *)
1732 "s/'\''/'\''\\\\'\'''\''/g;
1733 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1736 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1744 ## ----------------- ##
1745 ## Output variables. ##
1746 ## ----------------- ##
1749 for ac_var in $ac_subst_vars
1751 eval ac_val=\$$ac_var
1753 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755 echo "$ac_var='\''$ac_val'\''"
1759 if test -n "$ac_subst_files"; then
1761 ## ------------------- ##
1762 ## File substitutions. ##
1763 ## ------------------- ##
1766 for ac_var in $ac_subst_files
1768 eval ac_val=\$$ac_var
1770 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772 echo "$ac_var='\''$ac_val'\''"
1777 if test -s confdefs.h; then
1787 test "$ac_signal" != 0 &&
1788 echo "$as_me: caught signal $ac_signal"
1789 echo "$as_me: exit $exit_status"
1791 rm -f core *.core core.conftest.* &&
1792 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1795 for ac_signal in 1 2 13 15; do
1796 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1800 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1801 rm -f -r conftest* confdefs.h
1803 # Predefined preprocessor variables.
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_NAME "$PACKAGE_NAME"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_STRING "$PACKAGE_STRING"
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1830 # Let the site file select an alternate cache file if it wants to.
1831 # Prefer explicitly selected file to automatically selected ones.
1832 if test -n "$CONFIG_SITE"; then
1833 set x "$CONFIG_SITE"
1834 elif test "x$prefix" != xNONE; then
1835 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1837 set x "$ac_default_prefix/share/config.site" \
1838 "$ac_default_prefix/etc/config.site"
1843 if test -r "$ac_site_file"; then
1844 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1845 echo "$as_me: loading site script $ac_site_file" >&6;}
1846 sed 's/^/| /' "$ac_site_file" >&5
1851 if test -r "$cache_file"; then
1852 # Some versions of bash will fail to source /dev/null (special
1853 # files actually), so we avoid doing that.
1854 if test -f "$cache_file"; then
1855 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1856 echo "$as_me: loading cache $cache_file" >&6;}
1858 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1859 *) . "./$cache_file";;
1863 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1864 echo "$as_me: creating cache $cache_file" >&6;}
1868 # Check that the precious variables saved in the cache have kept the same
1870 ac_cache_corrupted=false
1871 for ac_var in $ac_precious_vars; do
1872 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1873 eval ac_new_set=\$ac_env_${ac_var}_set
1874 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1875 eval ac_new_val=\$ac_env_${ac_var}_value
1876 case $ac_old_set,$ac_new_set in
1878 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1879 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1880 ac_cache_corrupted=: ;;
1882 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1883 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1884 ac_cache_corrupted=: ;;
1887 if test "x$ac_old_val" != "x$ac_new_val"; then
1888 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1889 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1890 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1891 echo "$as_me: former value: $ac_old_val" >&2;}
1892 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1893 echo "$as_me: current value: $ac_new_val" >&2;}
1894 ac_cache_corrupted=:
1897 # Pass precious variables to config.status.
1898 if test "$ac_new_set" = set; then
1900 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1901 *) ac_arg=$ac_var=$ac_new_val ;;
1903 case " $ac_configure_args " in
1904 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1905 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1909 if $ac_cache_corrupted; then
1910 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1911 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1912 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1913 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1914 { (exit 1); exit 1; }; }
1934 ac_cpp='$CPP $CPPFLAGS'
1935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1943 RADIUSD_VERSION=`cat VERSION`
1944 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
1945 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^2\.//'`
1950 ac_cpp='$CPP $CPPFLAGS'
1951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954 if test -n "$ac_tool_prefix"; then
1955 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1956 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1959 if test "${ac_cv_prog_CC+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6
1962 if test -n "$CC"; then
1963 ac_cv_prog_CC="$CC" # Let the user override the test.
1965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969 test -z "$as_dir" && as_dir=.
1970 for ac_exec_ext in '' $ac_executable_extensions; do
1971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1972 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983 if test -n "$CC"; then
1984 { echo "$as_me:$LINENO: result: $CC" >&5
1985 echo "${ECHO_T}$CC" >&6; }
1987 { echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6; }
1993 if test -z "$ac_cv_prog_CC"; then
1995 # Extract the first word of "gcc", so it can be a program name with args.
1996 set dummy gcc; ac_word=$2
1997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 if test -n "$ac_ct_CC"; then
2003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 test -z "$as_dir" && as_dir=.
2010 for ac_exec_ext in '' $ac_executable_extensions; do
2011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2012 ac_cv_prog_ac_ct_CC="gcc"
2013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2023 if test -n "$ac_ct_CC"; then
2024 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2025 echo "${ECHO_T}$ac_ct_CC" >&6; }
2027 { echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6; }
2031 if test "x$ac_ct_CC" = x; then
2034 case $cross_compiling:$ac_tool_warned in
2036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2037 whose name does not start with the host triplet. If you think this
2038 configuration is useful to you, please write to autoconf@gnu.org." >&5
2039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2040 whose name does not start with the host triplet. If you think this
2041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2042 ac_tool_warned=yes ;;
2050 if test -z "$CC"; then
2051 if test -n "$ac_tool_prefix"; then
2052 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2053 set dummy ${ac_tool_prefix}cc; ac_word=$2
2054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2056 if test "${ac_cv_prog_CC+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 if test -n "$CC"; then
2060 ac_cv_prog_CC="$CC" # Let the user override the test.
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069 ac_cv_prog_CC="${ac_tool_prefix}cc"
2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 if test -n "$CC"; then
2081 { echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6; }
2084 { echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6; }
2091 if test -z "$CC"; then
2092 # Extract the first word of "cc", so it can be a program name with args.
2093 set dummy cc; ac_word=$2
2094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2096 if test "${ac_cv_prog_CC+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 if test -n "$CC"; then
2100 ac_cv_prog_CC="$CC" # Let the user override the test.
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2110 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2111 ac_prog_rejected=yes
2115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122 if test $ac_prog_rejected = yes; then
2123 # We found a bogon in the path, so make sure we never use it.
2124 set dummy $ac_cv_prog_CC
2126 if test $# != 0; then
2127 # We chose a different compiler from the bogus one.
2128 # However, it has the same basename, so the bogon will be chosen
2129 # first if we set CC to just the basename; use the full file name.
2131 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2137 if test -n "$CC"; then
2138 { echo "$as_me:$LINENO: result: $CC" >&5
2139 echo "${ECHO_T}$CC" >&6; }
2141 { echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6; }
2147 if test -z "$CC"; then
2148 if test -n "$ac_tool_prefix"; then
2149 for ac_prog in cl.exe
2151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_CC+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 if test -n "$CC"; then
2159 ac_cv_prog_CC="$CC" # Let the user override the test.
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179 if test -n "$CC"; then
2180 { echo "$as_me:$LINENO: result: $CC" >&5
2181 echo "${ECHO_T}$CC" >&6; }
2183 { echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6; }
2188 test -n "$CC" && break
2191 if test -z "$CC"; then
2193 for ac_prog in cl.exe
2195 # Extract the first word of "$ac_prog", so it can be a program name with args.
2196 set dummy $ac_prog; ac_word=$2
2197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2199 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2202 if test -n "$ac_ct_CC"; then
2203 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 test -z "$as_dir" && as_dir=.
2210 for ac_exec_ext in '' $ac_executable_extensions; do
2211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2212 ac_cv_prog_ac_ct_CC="$ac_prog"
2213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2222 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2223 if test -n "$ac_ct_CC"; then
2224 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2225 echo "${ECHO_T}$ac_ct_CC" >&6; }
2227 { echo "$as_me:$LINENO: result: no" >&5
2228 echo "${ECHO_T}no" >&6; }
2232 test -n "$ac_ct_CC" && break
2235 if test "x$ac_ct_CC" = x; then
2238 case $cross_compiling:$ac_tool_warned in
2240 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2241 whose name does not start with the host triplet. If you think this
2242 configuration is useful to you, please write to autoconf@gnu.org." >&5
2243 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2244 whose name does not start with the host triplet. If you think this
2245 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2246 ac_tool_warned=yes ;;
2255 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: no acceptable C compiler found in \$PATH
2258 See \`config.log' for more details." >&2;}
2259 { (exit 1); exit 1; }; }
2261 # Provide some information about the compiler.
2262 echo "$as_me:$LINENO: checking for C compiler version" >&5
2263 ac_compiler=`set X $ac_compile; echo $2`
2264 { (ac_try="$ac_compiler --version >&5"
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2270 (eval "$ac_compiler --version >&5") 2>&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }
2274 { (ac_try="$ac_compiler -v >&5"
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2280 (eval "$ac_compiler -v >&5") 2>&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }
2284 { (ac_try="$ac_compiler -V >&5"
2286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287 *) ac_try_echo=$ac_try;;
2289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2290 (eval "$ac_compiler -V >&5") 2>&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }
2295 cat >conftest.$ac_ext <<_ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2310 ac_clean_files_save=$ac_clean_files
2311 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2312 # Try to create an executable without -o first, disregard a.out.
2313 # It will help us diagnose broken compilers, and finding out an intuition
2315 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2316 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2317 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2319 # List of possible output files, starting from the most likely.
2320 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2321 # only as a last resort. b.out is created by i960 compilers.
2322 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2324 # The IRIX 6 linker writes into existing files which may not be
2325 # executable, retaining their permissions. Remove them first so a
2326 # subsequent execution test works.
2328 for ac_file in $ac_files
2331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2332 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2337 if { (ac_try="$ac_link_default"
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2343 (eval "$ac_link_default") 2>&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; then
2347 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2348 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2349 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2350 # so that the user can short-circuit this test for compilers unknown to
2352 for ac_file in $ac_files ''
2354 test -f "$ac_file" || continue
2356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2359 # We found the default executable, but exeext='' is most
2363 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2365 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2367 # We set ac_cv_exeext here because the later test for it is not
2368 # safe: cross compilers may not add the suffix if given an `-o'
2369 # argument, so we may need to know it at that point already.
2370 # Even if this section looks crufty: it has the advantage of
2377 test "$ac_cv_exeext" = no && ac_cv_exeext=
2383 { echo "$as_me:$LINENO: result: $ac_file" >&5
2384 echo "${ECHO_T}$ac_file" >&6; }
2385 if test -z "$ac_file"; then
2386 echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2389 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: C compiler cannot create executables
2392 See \`config.log' for more details." >&2;}
2393 { (exit 77); exit 77; }; }
2396 ac_exeext=$ac_cv_exeext
2398 # Check that the compiler produces executables we can run. If not, either
2399 # the compiler is broken, or we cross compile.
2400 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2401 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2402 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2403 # If not cross compiling, check that we can run a simple program.
2404 if test "$cross_compiling" != yes; then
2405 if { ac_try='./$ac_file'
2406 { (case "(($ac_try" in
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411 (eval "$ac_try") 2>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2417 if test "$cross_compiling" = maybe; then
2420 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2421 If you meant to cross compile, use \`--host'.
2422 See \`config.log' for more details." >&5
2423 echo "$as_me: error: cannot run C compiled programs.
2424 If you meant to cross compile, use \`--host'.
2425 See \`config.log' for more details." >&2;}
2426 { (exit 1); exit 1; }; }
2430 { echo "$as_me:$LINENO: result: yes" >&5
2431 echo "${ECHO_T}yes" >&6; }
2433 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2434 ac_clean_files=$ac_clean_files_save
2435 # Check that the compiler produces executables we can run. If not, either
2436 # the compiler is broken, or we cross compile.
2437 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2438 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2439 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2440 echo "${ECHO_T}$cross_compiling" >&6; }
2442 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2443 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2444 if { (ac_try="$ac_link"
2446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447 *) ac_try_echo=$ac_try;;
2449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2450 (eval "$ac_link") 2>&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; then
2454 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2455 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2456 # work properly (i.e., refer to `conftest.exe'), while it won't with
2458 for ac_file in conftest.exe conftest conftest.*; do
2459 test -f "$ac_file" || continue
2461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2462 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2468 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2469 See \`config.log' for more details." >&5
2470 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2471 See \`config.log' for more details." >&2;}
2472 { (exit 1); exit 1; }; }
2475 rm -f conftest$ac_cv_exeext
2476 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2477 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2479 rm -f conftest.$ac_ext
2480 EXEEXT=$ac_cv_exeext
2482 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2483 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2484 if test "${ac_cv_objext+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 cat >conftest.$ac_ext <<_ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2502 rm -f conftest.o conftest.obj
2503 if { (ac_try="$ac_compile"
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509 (eval "$ac_compile") 2>&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; then
2513 for ac_file in conftest.o conftest.obj conftest.*; do
2514 test -f "$ac_file" || continue;
2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2517 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2525 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2528 See \`config.log' for more details." >&2;}
2529 { (exit 1); exit 1; }; }
2532 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2534 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2535 echo "${ECHO_T}$ac_cv_objext" >&6; }
2536 OBJEXT=$ac_cv_objext
2538 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2539 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2540 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 cat >conftest.$ac_ext <<_ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2561 rm -f conftest.$ac_objext
2562 if { (ac_try="$ac_compile"
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568 (eval "$ac_compile") 2>conftest.er1
2570 grep -v '^ *+' conftest.er1 >conftest.err
2572 cat conftest.err >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } && {
2575 test -z "$ac_c_werror_flag" ||
2576 test ! -s conftest.err
2577 } && test -s conftest.$ac_objext; then
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2590 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2591 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2592 GCC=`test $ac_compiler_gnu = yes && echo yes`
2593 ac_test_CFLAGS=${CFLAGS+set}
2594 ac_save_CFLAGS=$CFLAGS
2595 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2596 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_cc_g+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 ac_save_c_werror_flag=$ac_c_werror_flag
2601 ac_c_werror_flag=yes
2604 cat >conftest.$ac_ext <<_ACEOF
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h. */
2619 rm -f conftest.$ac_objext
2620 if { (ac_try="$ac_compile"
2622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623 *) ac_try_echo=$ac_try;;
2625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2626 (eval "$ac_compile") 2>conftest.er1
2628 grep -v '^ *+' conftest.er1 >conftest.err
2630 cat conftest.err >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } && {
2633 test -z "$ac_c_werror_flag" ||
2634 test ! -s conftest.err
2635 } && test -s conftest.$ac_objext; then
2638 echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2657 rm -f conftest.$ac_objext
2658 if { (ac_try="$ac_compile"
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664 (eval "$ac_compile") 2>conftest.er1
2666 grep -v '^ *+' conftest.er1 >conftest.err
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } && {
2671 test -z "$ac_c_werror_flag" ||
2672 test ! -s conftest.err
2673 } && test -s conftest.$ac_objext; then
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2679 ac_c_werror_flag=$ac_save_c_werror_flag
2681 cat >conftest.$ac_ext <<_ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h. */
2696 rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_compile") 2>conftest.er1
2705 grep -v '^ *+' conftest.er1 >conftest.err
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } && {
2710 test -z "$ac_c_werror_flag" ||
2711 test ! -s conftest.err
2712 } && test -s conftest.$ac_objext; then
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728 ac_c_werror_flag=$ac_save_c_werror_flag
2730 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2731 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2732 if test "$ac_test_CFLAGS" = set; then
2733 CFLAGS=$ac_save_CFLAGS
2734 elif test $ac_cv_prog_cc_g = yes; then
2735 if test "$GCC" = yes; then
2741 if test "$GCC" = yes; then
2747 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2748 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2749 if test "${ac_cv_prog_cc_c89+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 ac_cv_prog_cc_c89=no
2754 cat >conftest.$ac_ext <<_ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2762 #include <sys/types.h>
2763 #include <sys/stat.h>
2764 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2765 struct buf { int x; };
2766 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2767 static char *e (p, i)
2773 static char *f (char * (*g) (char **, int), char **p, ...)
2778 s = g (p, va_arg (v,int));
2783 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2784 function prototypes and stuff, but not '\xHH' hex character constants.
2785 These don't provoke an error unfortunately, instead are silently treated
2786 as 'x'. The following induces an error, until -std is added to get
2787 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2788 array size at least. It's necessary to write '\x00'==0 to get something
2789 that's true only with -std. */
2790 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2792 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2793 inside strings and character constants. */
2795 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2797 int test (int i, double x);
2798 struct s1 {int (*f) (int a);};
2799 struct s2 {int (*f) (double a);};
2800 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2806 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2811 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2812 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2814 CC="$ac_save_CC $ac_arg"
2815 rm -f conftest.$ac_objext
2816 if { (ac_try="$ac_compile"
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2822 (eval "$ac_compile") 2>conftest.er1
2824 grep -v '^ *+' conftest.er1 >conftest.err
2826 cat conftest.err >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } && {
2829 test -z "$ac_c_werror_flag" ||
2830 test ! -s conftest.err
2831 } && test -s conftest.$ac_objext; then
2832 ac_cv_prog_cc_c89=$ac_arg
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2840 rm -f core conftest.err conftest.$ac_objext
2841 test "x$ac_cv_prog_cc_c89" != "xno" && break
2843 rm -f conftest.$ac_ext
2848 case "x$ac_cv_prog_cc_c89" in
2850 { echo "$as_me:$LINENO: result: none needed" >&5
2851 echo "${ECHO_T}none needed" >&6; } ;;
2853 { echo "$as_me:$LINENO: result: unsupported" >&5
2854 echo "${ECHO_T}unsupported" >&6; } ;;
2856 CC="$CC $ac_cv_prog_cc_c89"
2857 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2858 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2869 ac_cpp='$CXXCPP $CPPFLAGS'
2870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2873 if test -z "$CXX"; then
2874 if test -n "$CCC"; then
2877 if test -n "$ac_tool_prefix"; then
2878 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2884 if test "${ac_cv_prog_CXX+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 if test -n "$CXX"; then
2888 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 if test -n "$CXX"; then
2909 { echo "$as_me:$LINENO: result: $CXX" >&5
2910 echo "${ECHO_T}$CXX" >&6; }
2912 { echo "$as_me:$LINENO: result: no" >&5
2913 echo "${ECHO_T}no" >&6; }
2917 test -n "$CXX" && break
2920 if test -z "$CXX"; then
2922 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2924 # Extract the first word of "$ac_prog", so it can be a program name with args.
2925 set dummy $ac_prog; ac_word=$2
2926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2928 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 if test -n "$ac_ct_CXX"; then
2932 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941 ac_cv_prog_ac_ct_CXX="$ac_prog"
2942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2952 if test -n "$ac_ct_CXX"; then
2953 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2954 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2956 { echo "$as_me:$LINENO: result: no" >&5
2957 echo "${ECHO_T}no" >&6; }
2961 test -n "$ac_ct_CXX" && break
2964 if test "x$ac_ct_CXX" = x; then
2967 case $cross_compiling:$ac_tool_warned in
2969 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2970 whose name does not start with the host triplet. If you think this
2971 configuration is useful to you, please write to autoconf@gnu.org." >&5
2972 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2973 whose name does not start with the host triplet. If you think this
2974 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2975 ac_tool_warned=yes ;;
2983 # Provide some information about the compiler.
2984 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2985 ac_compiler=`set X $ac_compile; echo $2`
2986 { (ac_try="$ac_compiler --version >&5"
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_compiler --version >&5") 2>&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }
2996 { (ac_try="$ac_compiler -v >&5"
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compiler -v >&5") 2>&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }
3006 { (ac_try="$ac_compiler -V >&5"
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compiler -V >&5") 2>&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }
3017 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3018 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3019 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 cat >conftest.$ac_ext <<_ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3040 rm -f conftest.$ac_objext
3041 if { (ac_try="$ac_compile"
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compile") 2>conftest.er1
3049 grep -v '^ *+' conftest.er1 >conftest.err
3051 cat conftest.err >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } && {
3054 test -z "$ac_cxx_werror_flag" ||
3055 test ! -s conftest.err
3056 } && test -s conftest.$ac_objext; then
3059 echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3066 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3069 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3070 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3071 GXX=`test $ac_compiler_gnu = yes && echo yes`
3072 ac_test_CXXFLAGS=${CXXFLAGS+set}
3073 ac_save_CXXFLAGS=$CXXFLAGS
3074 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3075 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3076 if test "${ac_cv_prog_cxx_g+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3080 ac_cxx_werror_flag=yes
3083 cat >conftest.$ac_ext <<_ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h. */
3098 rm -f conftest.$ac_objext
3099 if { (ac_try="$ac_compile"
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_compile") 2>conftest.er1
3107 grep -v '^ *+' conftest.er1 >conftest.err
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } && {
3112 test -z "$ac_cxx_werror_flag" ||
3113 test ! -s conftest.err
3114 } && test -s conftest.$ac_objext; then
3115 ac_cv_prog_cxx_g=yes
3117 echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
3145 grep -v '^ *+' conftest.er1 >conftest.err
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } && {
3150 test -z "$ac_cxx_werror_flag" ||
3151 test ! -s conftest.err
3152 } && test -s conftest.$ac_objext; then
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3158 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3160 cat >conftest.$ac_ext <<_ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_compile") 2>conftest.er1
3184 grep -v '^ *+' conftest.er1 >conftest.err
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } && {
3189 test -z "$ac_cxx_werror_flag" ||
3190 test ! -s conftest.err
3191 } && test -s conftest.$ac_objext; then
3192 ac_cv_prog_cxx_g=yes
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3209 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3210 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3211 if test "$ac_test_CXXFLAGS" = set; then
3212 CXXFLAGS=$ac_save_CXXFLAGS
3213 elif test $ac_cv_prog_cxx_g = yes; then
3214 if test "$GXX" = yes; then
3220 if test "$GXX" = yes; then
3227 ac_cpp='$CPP $CPPFLAGS'
3228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3240 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3241 # On Suns, sometimes $CPP names a directory.
3242 if test -n "$CPP" && test -d "$CPP"; then
3245 if test -z "$CPP"; then
3246 if test "${ac_cv_prog_CPP+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 # Double quotes because CPP needs to be expanded
3250 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3253 for ac_c_preproc_warn_flag in '' yes
3255 # Use a header file that comes with gcc, so configuring glibc
3256 # with a fresh cross-compiler works.
3257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3258 # <limits.h> exists even on freestanding compilers.
3259 # On the NeXT, cc -E runs the code through the compiler's parser,
3260 # not just through cpp. "Syntax error" is here to catch this case.
3261 cat >conftest.$ac_ext <<_ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3268 # include <limits.h>
3270 # include <assert.h>
3274 if { (ac_try="$ac_cpp conftest.$ac_ext"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3282 grep -v '^ *+' conftest.er1 >conftest.err
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null && {
3287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3288 test ! -s conftest.err
3292 echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3295 # Broken: fails on valid input.
3299 rm -f conftest.err conftest.$ac_ext
3301 # OK, works on sane cases. Now check whether nonexistent headers
3302 # can be detected and how.
3303 cat >conftest.$ac_ext <<_ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3309 #include <ac_nonexistent.h>
3311 if { (ac_try="$ac_cpp conftest.$ac_ext"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3319 grep -v '^ *+' conftest.er1 >conftest.err
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } >/dev/null && {
3324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3325 test ! -s conftest.err
3327 # Broken: success on invalid input.
3330 echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3333 # Passes both tests.
3338 rm -f conftest.err conftest.$ac_ext
3341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3342 rm -f conftest.err conftest.$ac_ext
3343 if $ac_preproc_ok; then
3355 { echo "$as_me:$LINENO: result: $CPP" >&5
3356 echo "${ECHO_T}$CPP" >&6; }
3358 for ac_c_preproc_warn_flag in '' yes
3360 # Use a header file that comes with gcc, so configuring glibc
3361 # with a fresh cross-compiler works.
3362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3363 # <limits.h> exists even on freestanding compilers.
3364 # On the NeXT, cc -E runs the code through the compiler's parser,
3365 # not just through cpp. "Syntax error" is here to catch this case.
3366 cat >conftest.$ac_ext <<_ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3373 # include <limits.h>
3375 # include <assert.h>
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3387 grep -v '^ *+' conftest.er1 >conftest.err
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } >/dev/null && {
3392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3393 test ! -s conftest.err
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3400 # Broken: fails on valid input.
3404 rm -f conftest.err conftest.$ac_ext
3406 # OK, works on sane cases. Now check whether nonexistent headers
3407 # can be detected and how.
3408 cat >conftest.$ac_ext <<_ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3414 #include <ac_nonexistent.h>
3416 if { (ac_try="$ac_cpp conftest.$ac_ext"
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3424 grep -v '^ *+' conftest.er1 >conftest.err
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } >/dev/null && {
3429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3430 test ! -s conftest.err
3432 # Broken: success on invalid input.
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 # Passes both tests.
3443 rm -f conftest.err conftest.$ac_ext
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3451 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&5
3453 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details." >&2;}
3455 { (exit 1); exit 1; }; }
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3466 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3467 if test "${ac_cv_path_GREP+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 # Extract the first word of "grep ggrep" to use in msg output
3471 if test -z "$GREP"; then
3472 set dummy grep ggrep; ac_prog_name=$2
3473 if test "${ac_cv_path_GREP+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 ac_path_GREP_found=false
3477 # Loop through the user's path and test for each of PROGNAME-LIST
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3482 test -z "$as_dir" && as_dir=.
3483 for ac_prog in grep ggrep; do
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3486 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3487 # Check for GNU ac_path_GREP and select it if it is found.
3488 # Check for GNU $ac_path_GREP
3489 case `"$ac_path_GREP" --version 2>&1` in
3491 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3494 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3497 cat "conftest.in" "conftest.in" >"conftest.tmp"
3498 mv "conftest.tmp" "conftest.in"
3499 cp "conftest.in" "conftest.nl"
3500 echo 'GREP' >> "conftest.nl"
3501 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3503 ac_count=`expr $ac_count + 1`
3504 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3505 # Best one so far, save it but keep looking for a better one
3506 ac_cv_path_GREP="$ac_path_GREP"
3507 ac_path_GREP_max=$ac_count
3509 # 10*(2^10) chars as input seems more than enough
3510 test $ac_count -gt 10 && break
3512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3516 $ac_path_GREP_found && break 3
3526 GREP="$ac_cv_path_GREP"
3527 if test -z "$GREP"; then
3528 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3529 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3530 { (exit 1); exit 1; }; }
3534 ac_cv_path_GREP=$GREP
3539 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3540 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3541 GREP="$ac_cv_path_GREP"
3544 { echo "$as_me:$LINENO: checking for egrep" >&5
3545 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3546 if test "${ac_cv_path_EGREP+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3550 then ac_cv_path_EGREP="$GREP -E"
3552 # Extract the first word of "egrep" to use in msg output
3553 if test -z "$EGREP"; then
3554 set dummy egrep; ac_prog_name=$2
3555 if test "${ac_cv_path_EGREP+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 ac_path_EGREP_found=false
3559 # Loop through the user's path and test for each of PROGNAME-LIST
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3564 test -z "$as_dir" && as_dir=.
3565 for ac_prog in egrep; do
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3568 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3569 # Check for GNU ac_path_EGREP and select it if it is found.
3570 # Check for GNU $ac_path_EGREP
3571 case `"$ac_path_EGREP" --version 2>&1` in
3573 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3576 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3579 cat "conftest.in" "conftest.in" >"conftest.tmp"
3580 mv "conftest.tmp" "conftest.in"
3581 cp "conftest.in" "conftest.nl"
3582 echo 'EGREP' >> "conftest.nl"
3583 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3585 ac_count=`expr $ac_count + 1`
3586 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3587 # Best one so far, save it but keep looking for a better one
3588 ac_cv_path_EGREP="$ac_path_EGREP"
3589 ac_path_EGREP_max=$ac_count
3591 # 10*(2^10) chars as input seems more than enough
3592 test $ac_count -gt 10 && break
3594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3598 $ac_path_EGREP_found && break 3
3608 EGREP="$ac_cv_path_EGREP"
3609 if test -z "$EGREP"; then
3610 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3611 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3612 { (exit 1); exit 1; }; }
3616 ac_cv_path_EGREP=$EGREP
3622 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3623 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3624 EGREP="$ac_cv_path_EGREP"
3628 { echo "$as_me:$LINENO: checking for AIX" >&5
3629 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3630 cat >conftest.$ac_ext <<_ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3642 $EGREP "yes" >/dev/null 2>&1; then
3643 { echo "$as_me:$LINENO: result: yes" >&5
3644 echo "${ECHO_T}yes" >&6; }
3645 cat >>confdefs.h <<\_ACEOF
3646 #define _ALL_SOURCE 1
3650 { echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6; }
3657 if test $ac_cv_c_compiler_gnu = yes; then
3658 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3659 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3660 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 ac_pattern="Autoconf.*'x'"
3664 cat >conftest.$ac_ext <<_ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h. */
3673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3674 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3675 ac_cv_prog_gcc_traditional=yes
3677 ac_cv_prog_gcc_traditional=no
3682 if test $ac_cv_prog_gcc_traditional = no; then
3683 cat >conftest.$ac_ext <<_ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h. */
3692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3693 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3694 ac_cv_prog_gcc_traditional=yes
3700 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3701 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3702 if test $ac_cv_prog_gcc_traditional = yes; then
3703 CC="$CC -traditional"
3707 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3708 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3709 if test "${ac_cv_prog_suncc+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 cat > conftest.c <<EOF
3717 if { ac_try='${CC-cc} -E conftest.c'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3723 ac_cv_prog_suncc=yes
3728 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3729 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3730 if test -n "$ac_tool_prefix"; then
3731 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3732 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3735 if test "${ac_cv_prog_RANLIB+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 if test -n "$RANLIB"; then
3739 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 RANLIB=$ac_cv_prog_RANLIB
3759 if test -n "$RANLIB"; then
3760 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3761 echo "${ECHO_T}$RANLIB" >&6; }
3763 { echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6; }
3769 if test -z "$ac_cv_prog_RANLIB"; then
3770 ac_ct_RANLIB=$RANLIB
3771 # Extract the first word of "ranlib", so it can be a program name with args.
3772 set dummy ranlib; ac_word=$2
3773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3775 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 if test -n "$ac_ct_RANLIB"; then
3779 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3788 ac_cv_prog_ac_ct_RANLIB="ranlib"
3789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3799 if test -n "$ac_ct_RANLIB"; then
3800 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3801 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3803 { echo "$as_me:$LINENO: result: no" >&5
3804 echo "${ECHO_T}no" >&6; }
3807 if test "x$ac_ct_RANLIB" = x; then
3810 case $cross_compiling:$ac_tool_warned in
3812 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3813 whose name does not start with the host triplet. If you think this
3814 configuration is useful to you, please write to autoconf@gnu.org." >&5
3815 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3816 whose name does not start with the host triplet. If you think this
3817 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3818 ac_tool_warned=yes ;;
3820 RANLIB=$ac_ct_RANLIB
3823 RANLIB="$ac_cv_prog_RANLIB"
3827 # Check whether --enable-largefile was given.
3828 if test "${enable_largefile+set}" = set; then
3829 enableval=$enable_largefile;
3832 if test "$enable_largefile" != no; then
3834 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3835 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3836 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 ac_cv_sys_largefile_CC=no
3840 if test "$GCC" != yes; then
3843 # IRIX 6.2 and later do not support large files by default,
3844 # so use the C compiler's -n32 option if that helps.
3845 cat >conftest.$ac_ext <<_ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3851 #include <sys/types.h>
3852 /* Check that off_t can represent 2**63 - 1 correctly.
3853 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3854 since some C++ compilers masquerading as C compilers
3855 incorrectly reject 9223372036854775807. */
3856 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3857 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3858 && LARGE_OFF_T % 2147483647 == 1)
3868 rm -f conftest.$ac_objext
3869 if { (ac_try="$ac_compile"
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3875 (eval "$ac_compile") 2>conftest.er1
3877 grep -v '^ *+' conftest.er1 >conftest.err
3879 cat conftest.err >&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); } && {
3882 test -z "$ac_c_werror_flag" ||
3883 test ! -s conftest.err
3884 } && test -s conftest.$ac_objext; then
3887 echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3893 rm -f core conftest.err conftest.$ac_objext
3895 rm -f conftest.$ac_objext
3896 if { (ac_try="$ac_compile"
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902 (eval "$ac_compile") 2>conftest.er1
3904 grep -v '^ *+' conftest.er1 >conftest.err
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } && {
3909 test -z "$ac_c_werror_flag" ||
3910 test ! -s conftest.err
3911 } && test -s conftest.$ac_objext; then
3912 ac_cv_sys_largefile_CC=' -n32'; break
3914 echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3920 rm -f core conftest.err conftest.$ac_objext
3924 rm -f conftest.$ac_ext
3927 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3928 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3929 if test "$ac_cv_sys_largefile_CC" != no; then
3930 CC=$CC$ac_cv_sys_largefile_CC
3933 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3934 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3935 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 cat >conftest.$ac_ext <<_ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3945 #include <sys/types.h>
3946 /* Check that off_t can represent 2**63 - 1 correctly.
3947 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3948 since some C++ compilers masquerading as C compilers
3949 incorrectly reject 9223372036854775807. */
3950 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3951 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3952 && LARGE_OFF_T % 2147483647 == 1)
3962 rm -f conftest.$ac_objext
3963 if { (ac_try="$ac_compile"
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969 (eval "$ac_compile") 2>conftest.er1
3971 grep -v '^ *+' conftest.er1 >conftest.err
3973 cat conftest.err >&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } && {
3976 test -z "$ac_c_werror_flag" ||
3977 test ! -s conftest.err
3978 } && test -s conftest.$ac_objext; then
3979 ac_cv_sys_file_offset_bits=no; break
3981 echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988 cat >conftest.$ac_ext <<_ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3994 #define _FILE_OFFSET_BITS 64
3995 #include <sys/types.h>
3996 /* Check that off_t can represent 2**63 - 1 correctly.
3997 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3998 since some C++ compilers masquerading as C compilers
3999 incorrectly reject 9223372036854775807. */
4000 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4001 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4002 && LARGE_OFF_T % 2147483647 == 1)
4012 rm -f conftest.$ac_objext
4013 if { (ac_try="$ac_compile"
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_compile") 2>conftest.er1
4021 grep -v '^ *+' conftest.er1 >conftest.err
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } && {
4026 test -z "$ac_c_werror_flag" ||
4027 test ! -s conftest.err
4028 } && test -s conftest.$ac_objext; then
4029 ac_cv_sys_file_offset_bits=64; break
4031 echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 ac_cv_sys_file_offset_bits=unknown
4042 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4043 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4044 case $ac_cv_sys_file_offset_bits in #(
4047 cat >>confdefs.h <<_ACEOF
4048 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4053 if test $ac_cv_sys_file_offset_bits = unknown; then
4054 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4055 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4056 if test "${ac_cv_sys_large_files+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 cat >conftest.$ac_ext <<_ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4066 #include <sys/types.h>
4067 /* Check that off_t can represent 2**63 - 1 correctly.
4068 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4069 since some C++ compilers masquerading as C compilers
4070 incorrectly reject 9223372036854775807. */
4071 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4072 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4073 && LARGE_OFF_T % 2147483647 == 1)
4083 rm -f conftest.$ac_objext
4084 if { (ac_try="$ac_compile"
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090 (eval "$ac_compile") 2>conftest.er1
4092 grep -v '^ *+' conftest.er1 >conftest.err
4094 cat conftest.err >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } && {
4097 test -z "$ac_c_werror_flag" ||
4098 test ! -s conftest.err
4099 } && test -s conftest.$ac_objext; then
4100 ac_cv_sys_large_files=no; break
4102 echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 cat >conftest.$ac_ext <<_ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4115 #define _LARGE_FILES 1
4116 #include <sys/types.h>
4117 /* Check that off_t can represent 2**63 - 1 correctly.
4118 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4119 since some C++ compilers masquerading as C compilers
4120 incorrectly reject 9223372036854775807. */
4121 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4122 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4123 && LARGE_OFF_T % 2147483647 == 1)
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_compile") 2>conftest.er1
4142 grep -v '^ *+' conftest.er1 >conftest.err
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } && {
4147 test -z "$ac_c_werror_flag" ||
4148 test ! -s conftest.err
4149 } && test -s conftest.$ac_objext; then
4150 ac_cv_sys_large_files=1; break
4152 echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 ac_cv_sys_large_files=unknown
4163 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4164 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4165 case $ac_cv_sys_large_files in #(
4168 cat >>confdefs.h <<_ACEOF
4169 #define _LARGE_FILES $ac_cv_sys_large_files
4178 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4179 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4180 if test "${ac_cv_header_stdc+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 cat >conftest.$ac_ext <<_ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4202 rm -f conftest.$ac_objext
4203 if { (ac_try="$ac_compile"
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$ac_compile") 2>conftest.er1
4211 grep -v '^ *+' conftest.er1 >conftest.err
4213 cat conftest.err >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } && {
4216 test -z "$ac_c_werror_flag" ||
4217 test ! -s conftest.err
4218 } && test -s conftest.$ac_objext; then
4219 ac_cv_header_stdc=yes
4221 echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4224 ac_cv_header_stdc=no
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229 if test $ac_cv_header_stdc = yes; then
4230 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4231 cat >conftest.$ac_ext <<_ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4241 $EGREP "memchr" >/dev/null 2>&1; then
4244 ac_cv_header_stdc=no
4250 if test $ac_cv_header_stdc = yes; then
4251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4252 cat >conftest.$ac_ext <<_ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4262 $EGREP "free" >/dev/null 2>&1; then
4265 ac_cv_header_stdc=no
4271 if test $ac_cv_header_stdc = yes; then
4272 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4273 if test "$cross_compiling" = yes; then
4276 cat >conftest.$ac_ext <<_ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h. */
4284 #if ((' ' & 0x0FF) == 0x020)
4285 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4286 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4288 # define ISLOWER(c) \
4289 (('a' <= (c) && (c) <= 'i') \
4290 || ('j' <= (c) && (c) <= 'r') \
4291 || ('s' <= (c) && (c) <= 'z'))
4292 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4295 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4300 for (i = 0; i < 256; i++)
4301 if (XOR (islower (i), ISLOWER (i))
4302 || toupper (i) != TOUPPER (i))
4307 rm -f conftest$ac_exeext
4308 if { (ac_try="$ac_link"
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314 (eval "$ac_link") 2>&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4318 { (case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_try") 2>&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; }; then
4329 echo "$as_me: program exited with status $ac_status" >&5
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4334 ac_cv_header_stdc=no
4336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4342 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4343 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4344 if test $ac_cv_header_stdc = yes; then
4346 cat >>confdefs.h <<\_ACEOF
4347 #define STDC_HEADERS 1
4352 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4362 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4363 inttypes.h stdint.h unistd.h
4365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 cat >conftest.$ac_ext <<_ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4377 $ac_includes_default
4379 #include <$ac_header>
4381 rm -f conftest.$ac_objext
4382 if { (ac_try="$ac_compile"
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388 (eval "$ac_compile") 2>conftest.er1
4390 grep -v '^ *+' conftest.er1 >conftest.err
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } && {
4395 test -z "$ac_c_werror_flag" ||
4396 test ! -s conftest.err
4397 } && test -s conftest.$ac_objext; then
4398 eval "$as_ac_Header=yes"
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4403 eval "$as_ac_Header=no"
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 ac_res=`eval echo '${'$as_ac_Header'}'`
4409 { echo "$as_me:$LINENO: result: $ac_res" >&5
4410 echo "${ECHO_T}$ac_res" >&6; }
4411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4412 cat >>confdefs.h <<_ACEOF
4413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4421 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4422 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4423 if test "${ac_cv_c_bigendian+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 # See if sys/param.h defines the BYTE_ORDER macro.
4427 cat >conftest.$ac_ext <<_ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4433 #include <sys/types.h>
4434 #include <sys/param.h>
4439 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4440 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4448 rm -f conftest.$ac_objext
4449 if { (ac_try="$ac_compile"
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4455 (eval "$ac_compile") 2>conftest.er1
4457 grep -v '^ *+' conftest.er1 >conftest.err
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } && {
4462 test -z "$ac_c_werror_flag" ||
4463 test ! -s conftest.err
4464 } && test -s conftest.$ac_objext; then
4465 # It does; now see whether it defined to BIG_ENDIAN or not.
4466 cat >conftest.$ac_ext <<_ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4472 #include <sys/types.h>
4473 #include <sys/param.h>
4478 #if BYTE_ORDER != BIG_ENDIAN
4486 rm -f conftest.$ac_objext
4487 if { (ac_try="$ac_compile"
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_compile") 2>conftest.er1
4495 grep -v '^ *+' conftest.er1 >conftest.err
4497 cat conftest.err >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } && {
4500 test -z "$ac_c_werror_flag" ||
4501 test ! -s conftest.err
4502 } && test -s conftest.$ac_objext; then
4503 ac_cv_c_bigendian=yes
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4508 ac_cv_c_bigendian=no
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4516 # It does not; compile a test program.
4517 if test "$cross_compiling" = yes; then
4518 # try to guess the endianness by grepping values into an object file
4519 ac_cv_c_bigendian=unknown
4520 cat >conftest.$ac_ext <<_ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4526 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4527 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4528 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4529 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4530 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4531 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4535 _ascii (); _ebcdic ();
4540 rm -f conftest.$ac_objext
4541 if { (ac_try="$ac_compile"
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4547 (eval "$ac_compile") 2>conftest.er1
4549 grep -v '^ *+' conftest.er1 >conftest.err
4551 cat conftest.err >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } && {
4554 test -z "$ac_c_werror_flag" ||
4555 test ! -s conftest.err
4556 } && test -s conftest.$ac_objext; then
4557 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4558 ac_cv_c_bigendian=yes
4560 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4561 if test "$ac_cv_c_bigendian" = unknown; then
4562 ac_cv_c_bigendian=no
4564 # finding both strings is unlikely to happen, but who knows?
4565 ac_cv_c_bigendian=unknown
4569 echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577 cat >conftest.$ac_ext <<_ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 $ac_includes_default
4588 /* Are we little or big endian? From Harbison&Steele. */
4592 char c[sizeof (long int)];
4595 return u.c[sizeof (long int) - 1] == 1;
4601 rm -f conftest$ac_exeext
4602 if { (ac_try="$ac_link"
4604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605 *) ac_try_echo=$ac_try;;
4607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4608 (eval "$ac_link") 2>&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4612 { (case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617 (eval "$ac_try") 2>&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 ac_cv_c_bigendian=no
4623 echo "$as_me: program exited with status $ac_status" >&5
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4628 ac_cv_c_bigendian=yes
4630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4639 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4640 case $ac_cv_c_bigendian in
4643 cat >>confdefs.h <<\_ACEOF
4644 #define WORDS_BIGENDIAN 1
4650 { { echo "$as_me:$LINENO: error: unknown endianness
4651 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4652 echo "$as_me: error: unknown endianness
4653 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4654 { (exit 1); exit 1; }; } ;;
4658 # Extract the first word of "gmake", so it can be a program name with args.
4659 set dummy gmake; ac_word=$2
4660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4662 if test "${ac_cv_prog_GMAKE+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 if test -n "$GMAKE"; then
4666 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_prog_GMAKE="yes"
4676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4686 GMAKE=$ac_cv_prog_GMAKE
4687 if test -n "$GMAKE"; then
4688 { echo "$as_me:$LINENO: result: $GMAKE" >&5
4689 echo "${ECHO_T}$GMAKE" >&6; }
4691 { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4696 if test $GMAKE = no; then
4697 # Extract the first word of "make", so it can be a program name with args.
4698 set dummy make; ac_word=$2
4699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4701 if test "${ac_cv_path_MAKE+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4728 MAKE=$ac_cv_path_MAKE
4729 if test -n "$MAKE"; then
4730 { echo "$as_me:$LINENO: result: $MAKE" >&5
4731 echo "${ECHO_T}$MAKE" >&6; }
4733 { echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6; }
4739 # Extract the first word of "gmake", so it can be a program name with args.
4740 set dummy gmake; ac_word=$2
4741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4743 if test "${ac_cv_path_MAKE+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 test -z "$as_dir" && as_dir=.
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4758 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4770 MAKE=$ac_cv_path_MAKE
4771 if test -n "$MAKE"; then
4772 { echo "$as_me:$LINENO: result: $MAKE" >&5
4773 echo "${ECHO_T}$MAKE" >&6; }
4775 { echo "$as_me:$LINENO: result: no" >&5
4776 echo "${ECHO_T}no" >&6; }
4781 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4782 if test -z "$makever"; then
4783 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
4784 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4785 echo "$as_me: error: GNU Make is not installed. Please download and install it
4786 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4787 { (exit 1); exit 1; }; }
4791 # Check whether --with-system-libtldl was given.
4792 if test "${with_system_libtldl+set}" = set; then
4793 withval=$with_system_libtldl;
4800 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4801 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4802 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 ac_check_lib_save_LIBS=$LIBS
4807 cat >conftest.$ac_ext <<_ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4814 /* Override any GCC internal prototype to avoid an error.
4815 Use char because int might match the return type of a GCC
4816 builtin and then its argument prototype would still apply. */
4824 return lt_dlinit ();
4829 rm -f conftest.$ac_objext conftest$ac_exeext
4830 if { (ac_try="$ac_link"
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836 (eval "$ac_link") 2>conftest.er1
4838 grep -v '^ *+' conftest.er1 >conftest.err
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } && {
4843 test -z "$ac_c_werror_flag" ||
4844 test ! -s conftest.err
4845 } && test -s conftest$ac_exeext &&
4846 $as_test_x conftest$ac_exeext; then
4847 ac_cv_lib_ltdl_lt_dlinit=yes
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4852 ac_cv_lib_ltdl_lt_dlinit=no
4855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4856 conftest$ac_exeext conftest.$ac_ext
4857 LIBS=$ac_check_lib_save_LIBS
4859 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4860 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4861 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4862 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4864 if test x"$enable_ltdl_install" = xno; then
4865 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4866 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4868 enable_ltdl_install=yes
4873 if test x"$enable_ltdl_install" = x"yes"; then
4874 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4875 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4876 LTDLINCL='-I${top_srcdir}/''libltdl'
4878 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4882 # For backwards non-gettext consistent compatibility...
4886 if test x"$enable_ltdl_install" = x"yes"; then
4887 LTDL_SUBDIRS=libltdl
4894 # Check whether --enable-shared was given.
4895 if test "${enable_shared+set}" = set; then
4896 enableval=$enable_shared; p=${PACKAGE-default}
4898 yes) enable_shared=yes ;;
4899 no) enable_shared=no ;;
4902 # Look at the argument we got. We use all the common list separators.
4903 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4904 for pkg in $enableval; do
4906 if test "X$pkg" = "X$p"; then
4918 # Check whether --enable-static was given.
4919 if test "${enable_static+set}" = set; then
4920 enableval=$enable_static; p=${PACKAGE-default}
4922 yes) enable_static=yes ;;
4923 no) enable_static=no ;;
4926 # Look at the argument we got. We use all the common list separators.
4927 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4928 for pkg in $enableval; do
4930 if test "X$pkg" = "X$p"; then
4942 # Check whether --enable-fast-install was given.
4943 if test "${enable_fast_install+set}" = set; then
4944 enableval=$enable_fast_install; p=${PACKAGE-default}
4946 yes) enable_fast_install=yes ;;
4947 no) enable_fast_install=no ;;
4949 enable_fast_install=no
4950 # Look at the argument we got. We use all the common list separators.
4951 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4952 for pkg in $enableval; do
4954 if test "X$pkg" = "X$p"; then
4955 enable_fast_install=yes
4962 enable_fast_install=yes
4967 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4968 if test -f "$ac_dir/install-sh"; then
4970 ac_install_sh="$ac_aux_dir/install-sh -c"
4972 elif test -f "$ac_dir/install.sh"; then
4974 ac_install_sh="$ac_aux_dir/install.sh -c"
4976 elif test -f "$ac_dir/shtool"; then
4978 ac_install_sh="$ac_aux_dir/shtool install -c"
4982 if test -z "$ac_aux_dir"; then
4983 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4984 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4985 { (exit 1); exit 1; }; }
4988 # These three variables are undocumented and unsupported,
4989 # and are intended to be withdrawn in a future Autoconf release.
4990 # They can cause serious problems if a builder's source tree is in a directory
4991 # whose full name contains unusual characters.
4992 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4993 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4994 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4997 # Make sure we can run config.sub.
4998 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4999 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5000 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5001 { (exit 1); exit 1; }; }
5003 { echo "$as_me:$LINENO: checking build system type" >&5
5004 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5005 if test "${ac_cv_build+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 ac_build_alias=$build_alias
5009 test "x$ac_build_alias" = x &&
5010 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5011 test "x$ac_build_alias" = x &&
5012 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5013 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5014 { (exit 1); exit 1; }; }
5015 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5016 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5017 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5018 { (exit 1); exit 1; }; }
5021 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5022 echo "${ECHO_T}$ac_cv_build" >&6; }
5023 case $ac_cv_build in
5025 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5026 echo "$as_me: error: invalid value of canonical build" >&2;}
5027 { (exit 1); exit 1; }; };;
5030 ac_save_IFS=$IFS; IFS='-'
5036 # Remember, the first character of IFS is used to create $*,
5037 # except with old shells:
5040 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5043 { echo "$as_me:$LINENO: checking host system type" >&5
5044 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5045 if test "${ac_cv_host+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 if test "x$host_alias" = x; then
5049 ac_cv_host=$ac_cv_build
5051 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5052 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5053 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5054 { (exit 1); exit 1; }; }
5058 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5059 echo "${ECHO_T}$ac_cv_host" >&6; }
5062 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5063 echo "$as_me: error: invalid value of canonical host" >&2;}
5064 { (exit 1); exit 1; }; };;
5067 ac_save_IFS=$IFS; IFS='-'
5073 # Remember, the first character of IFS is used to create $*,
5074 # except with old shells:
5077 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5080 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5081 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5082 if test "${lt_cv_path_SED+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 # Loop through the user's path and test for sed and gsed.
5086 # Then use that list of sed's as ones to test for truncation.
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 test -z "$as_dir" && as_dir=.
5092 for lt_ac_prog in sed gsed; do
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5095 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5103 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5104 # along with /bin/sed that truncates output.
5105 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5106 test ! -f $lt_ac_sed && continue
5107 cat /dev/null > conftest.in
5109 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5110 # Check for GNU sed and select it if it is found.
5111 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5112 lt_cv_path_SED=$lt_ac_sed
5116 cat conftest.in conftest.in >conftest.tmp
5117 mv conftest.tmp conftest.in
5118 cp conftest.in conftest.nl
5120 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5121 cmp -s conftest.out conftest.nl || break
5122 # 10000 chars as input seems more than enough
5123 test $lt_ac_count -gt 10 && break
5124 lt_ac_count=`expr $lt_ac_count + 1`
5125 if test $lt_ac_count -gt $lt_ac_max; then
5126 lt_ac_max=$lt_ac_count
5127 lt_cv_path_SED=$lt_ac_sed
5136 { echo "$as_me:$LINENO: result: $SED" >&5
5137 echo "${ECHO_T}$SED" >&6; }
5140 # Check whether --with-gnu-ld was given.
5141 if test "${with_gnu_ld+set}" = set; then
5142 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5148 if test "$GCC" = yes; then
5149 # Check if gcc -print-prog-name=ld gives a path.
5150 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5151 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5154 # gcc leaves a trailing carriage return which upsets mingw
5155 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5157 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5160 # Accept absolute paths.
5162 re_direlt='/[^/][^/]*/\.\./'
5163 # Canonicalize the pathname of ld
5164 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5165 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5166 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5168 test -z "$LD" && LD="$ac_prog"
5171 # If it fails, then pretend we aren't using GCC.
5175 # If it is relative, then search for the first ld in PATH.
5179 elif test "$with_gnu_ld" = yes; then
5180 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5181 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5183 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5184 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5186 if test "${lt_cv_path_LD+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 if test -z "$LD"; then
5190 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5191 for ac_dir in $PATH; do
5193 test -z "$ac_dir" && ac_dir=.
5194 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5195 lt_cv_path_LD="$ac_dir/$ac_prog"
5196 # Check to see if the program is GNU ld. I'd rather use --version,
5197 # but apparently some variants of GNU ld only accept -v.
5198 # Break only if it was the GNU/non-GNU ld that we prefer.
5199 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5200 *GNU* | *'with BFD'*)
5201 test "$with_gnu_ld" != no && break
5204 test "$with_gnu_ld" != yes && break
5211 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5216 if test -n "$LD"; then
5217 { echo "$as_me:$LINENO: result: $LD" >&5
5218 echo "${ECHO_T}$LD" >&6; }
5220 { echo "$as_me:$LINENO: result: no" >&5
5221 echo "${ECHO_T}no" >&6; }
5223 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5224 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5225 { (exit 1); exit 1; }; }
5226 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5227 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5228 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5232 case `$LD -v 2>&1 </dev/null` in
5233 *GNU* | *'with BFD'*)
5234 lt_cv_prog_gnu_ld=yes
5237 lt_cv_prog_gnu_ld=no
5241 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5242 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5243 with_gnu_ld=$lt_cv_prog_gnu_ld
5246 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5247 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5248 if test "${lt_cv_ld_reload_flag+set}" = set; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 lt_cv_ld_reload_flag='-r'
5253 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5254 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5255 reload_flag=$lt_cv_ld_reload_flag
5256 case $reload_flag in
5258 *) reload_flag=" $reload_flag" ;;
5260 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5263 if test "$GCC" = yes; then
5264 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5266 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5271 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5272 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5273 if test "${lt_cv_path_NM+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 if test -n "$NM"; then
5277 # Let the user override the test.
5280 lt_nm_to_check="${ac_tool_prefix}nm"
5281 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5282 lt_nm_to_check="$lt_nm_to_check nm"
5284 for lt_tmp_nm in $lt_nm_to_check; do
5285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5286 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5288 test -z "$ac_dir" && ac_dir=.
5289 tmp_nm="$ac_dir/$lt_tmp_nm"
5290 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5291 # Check to see if the nm accepts a BSD-compat flag.
5292 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5293 # nm: unknown option "B" ignored
5294 # Tru64's nm complains that /dev/null is an invalid object file
5295 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5296 */dev/null* | *'Invalid file or object type'*)
5297 lt_cv_path_NM="$tmp_nm -B"
5301 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5303 lt_cv_path_NM="$tmp_nm -p"
5307 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5308 continue # so that we can try to find one that supports BSD flags
5317 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5320 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5321 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5324 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5325 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5327 if test "$LN_S" = "ln -s"; then
5328 { echo "$as_me:$LINENO: result: yes" >&5
5329 echo "${ECHO_T}yes" >&6; }
5331 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5332 echo "${ECHO_T}no, using $LN_S" >&6; }
5335 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5336 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5337 if test "${lt_cv_deplibs_check_method+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 lt_cv_file_magic_cmd='$MAGIC_CMD'
5341 lt_cv_file_magic_test_file=
5342 lt_cv_deplibs_check_method='unknown'
5343 # Need to set the preceding variable on all platforms that support
5344 # interlibrary dependencies.
5345 # 'none' -- dependencies not supported.
5346 # `unknown' -- same as none, but documents that we really don't know.
5347 # 'pass_all' -- all dependencies passed with no checks.
5348 # 'test_compile' -- check by making test program.
5349 # 'file_magic [[regex]]' -- check by looking for files in library path
5350 # which responds to the $file_magic_cmd with a given extended regex.
5351 # If you have `file' or equivalent on your system and you're not sure
5352 # whether `pass_all' will *always* work, you probably want this one.
5356 lt_cv_deplibs_check_method=pass_all
5360 lt_cv_deplibs_check_method=pass_all
5364 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5365 lt_cv_file_magic_cmd='/usr/bin/file -L'
5366 lt_cv_file_magic_test_file=/shlib/libc.so
5370 # func_win32_libid is a shell function defined in ltmain.sh
5371 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5372 lt_cv_file_magic_cmd='func_win32_libid'
5376 # Base MSYS/MinGW do not provide the 'file' command needed by
5377 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5378 # unless we find 'file', for example because we are cross-compiling.
5379 if ( file / ) >/dev/null 2>&1; then
5380 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5381 lt_cv_file_magic_cmd='func_win32_libid'
5383 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5384 lt_cv_file_magic_cmd='$OBJDUMP -f'
5388 darwin* | rhapsody*)
5389 lt_cv_deplibs_check_method=pass_all
5392 freebsd* | dragonfly*)
5393 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5396 # Not sure whether the presence of OpenBSD here was a mistake.
5397 # Let's accept both of them until this is cleared up.
5398 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5399 lt_cv_file_magic_cmd=/usr/bin/file
5400 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5404 lt_cv_deplibs_check_method=pass_all
5409 lt_cv_deplibs_check_method=pass_all
5412 hpux10.20* | hpux11*)
5413 lt_cv_file_magic_cmd=/usr/bin/file
5416 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5417 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5420 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]'
5421 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5424 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5425 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5431 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5432 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5435 irix5* | irix6* | nonstopux*)
5437 *-32|*"-32 ") libmagic=32-bit;;
5438 *-n32|*"-n32 ") libmagic=N32;;
5439 *-64|*"-64 ") libmagic=64-bit;;
5440 *) libmagic=never-match;;
5442 lt_cv_deplibs_check_method=pass_all
5445 # This must be Linux ELF.
5446 linux* | k*bsd*-gnu)
5447 lt_cv_deplibs_check_method=pass_all
5450 netbsd* | netbsdelf*-gnu)
5451 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5452 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5454 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5459 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5460 lt_cv_file_magic_cmd=/usr/bin/file
5461 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5465 lt_cv_deplibs_check_method=unknown
5469 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5470 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5476 osf3* | osf4* | osf5*)
5477 lt_cv_deplibs_check_method=pass_all
5481 lt_cv_deplibs_check_method=pass_all
5485 lt_cv_deplibs_check_method=pass_all
5489 case $host_vendor in
5491 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]'
5492 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5495 lt_cv_deplibs_check_method=pass_all
5498 lt_cv_file_magic_cmd='/bin/file'
5499 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5502 lt_cv_file_magic_cmd='/bin/file'
5503 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5504 lt_cv_file_magic_test_file=/lib/libc.so
5507 lt_cv_deplibs_check_method=pass_all
5510 lt_cv_deplibs_check_method=pass_all
5515 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5516 lt_cv_deplibs_check_method=pass_all
5521 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5522 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5523 file_magic_cmd=$lt_cv_file_magic_cmd
5524 deplibs_check_method=$lt_cv_deplibs_check_method
5525 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5530 # If no C compiler was specified, use CC.
5533 # If no C compiler flags were specified, use CFLAGS.
5534 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5536 # Allow CC to be a program name with arguments.
5539 # Check whether --enable-libtool-lock was given.
5540 if test "${enable_libtool_lock+set}" = set; then
5541 enableval=$enable_libtool_lock;
5544 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5546 # Some flags need to be propagated to the compiler or linker for good
5550 # Find out which ABI we are using.
5551 echo 'int i;' > conftest.$ac_ext
5552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5553 (eval $ac_compile) 2>&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; then
5557 case `/usr/bin/file conftest.$ac_objext` in
5569 # Find out which ABI we are using.
5570 echo '#line 5570 "configure"' > conftest.$ac_ext
5571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5572 (eval $ac_compile) 2>&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; then
5576 if test "$lt_cv_prog_gnu_ld" = yes; then
5577 case `/usr/bin/file conftest.$ac_objext` in
5579 LD="${LD-ld} -melf32bsmip"
5582 LD="${LD-ld} -melf32bmipn32"
5585 LD="${LD-ld} -melf64bmip"
5589 case `/usr/bin/file conftest.$ac_objext` in
5605 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5606 s390*-*linux*|sparc*-*linux*)
5607 # Find out which ABI we are using.
5608 echo 'int i;' > conftest.$ac_ext
5609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5610 (eval $ac_compile) 2>&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; then
5614 case `/usr/bin/file conftest.o` in
5617 x86_64-*kfreebsd*-gnu)
5618 LD="${LD-ld} -m elf_i386_fbsd"
5621 LD="${LD-ld} -m elf_i386"
5623 ppc64-*linux*|powerpc64-*linux*)
5624 LD="${LD-ld} -m elf32ppclinux"
5627 LD="${LD-ld} -m elf_s390"
5630 LD="${LD-ld} -m elf32_sparc"
5636 x86_64-*kfreebsd*-gnu)
5637 LD="${LD-ld} -m elf_x86_64_fbsd"
5640 LD="${LD-ld} -m elf_x86_64"
5642 ppc*-*linux*|powerpc*-*linux*)
5643 LD="${LD-ld} -m elf64ppc"
5646 LD="${LD-ld} -m elf64_s390"
5649 LD="${LD-ld} -m elf64_sparc"
5659 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5660 SAVE_CFLAGS="$CFLAGS"
5661 CFLAGS="$CFLAGS -belf"
5662 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5663 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5664 if test "${lt_cv_cc_needs_belf+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 ac_cpp='$CPP $CPPFLAGS'
5669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5673 cat >conftest.$ac_ext <<_ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5688 rm -f conftest.$ac_objext conftest$ac_exeext
5689 if { (ac_try="$ac_link"
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_link") 2>conftest.er1
5697 grep -v '^ *+' conftest.er1 >conftest.err
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } && {
5702 test -z "$ac_c_werror_flag" ||
5703 test ! -s conftest.err
5704 } && test -s conftest$ac_exeext &&
5705 $as_test_x conftest$ac_exeext; then
5706 lt_cv_cc_needs_belf=yes
5708 echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5711 lt_cv_cc_needs_belf=no
5714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5715 conftest$ac_exeext conftest.$ac_ext
5717 ac_cpp='$CPP $CPPFLAGS'
5718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5723 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5724 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5725 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5726 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5727 CFLAGS="$SAVE_CFLAGS"
5731 # Find out which ABI we are using.
5732 echo 'int i;' > conftest.$ac_ext
5733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5734 (eval $ac_compile) 2>&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; then
5738 case `/usr/bin/file conftest.o` in
5740 case $lt_cv_prog_gnu_ld in
5741 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5743 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5757 need_locks="$enable_libtool_lock"
5761 for ac_header in dlfcn.h
5763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 ac_res=`eval echo '${'$as_ac_Header'}'`
5771 { echo "$as_me:$LINENO: result: $ac_res" >&5
5772 echo "${ECHO_T}$ac_res" >&6; }
5774 # Is the header compilable?
5775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5777 cat >conftest.$ac_ext <<_ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5783 $ac_includes_default
5784 #include <$ac_header>
5786 rm -f conftest.$ac_objext
5787 if { (ac_try="$ac_compile"
5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790 *) ac_try_echo=$ac_try;;
5792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793 (eval "$ac_compile") 2>conftest.er1
5795 grep -v '^ *+' conftest.er1 >conftest.err
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } && {
5800 test -z "$ac_c_werror_flag" ||
5801 test ! -s conftest.err
5802 } && test -s conftest.$ac_objext; then
5803 ac_header_compiler=yes
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5808 ac_header_compiler=no
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5813 echo "${ECHO_T}$ac_header_compiler" >&6; }
5815 # Is the header present?
5816 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5818 cat >conftest.$ac_ext <<_ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5824 #include <$ac_header>
5826 if { (ac_try="$ac_cpp conftest.$ac_ext"
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5834 grep -v '^ *+' conftest.er1 >conftest.err
5836 cat conftest.err >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } >/dev/null && {
5839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5840 test ! -s conftest.err
5842 ac_header_preproc=yes
5844 echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5847 ac_header_preproc=no
5850 rm -f conftest.err conftest.$ac_ext
5851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5852 echo "${ECHO_T}$ac_header_preproc" >&6; }
5854 # So? What about this header?
5855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5861 ac_header_preproc=yes
5864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5871 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 eval "$as_ac_Header=\$ac_header_preproc"
5886 ac_res=`eval echo '${'$as_ac_Header'}'`
5887 { echo "$as_me:$LINENO: result: $ac_res" >&5
5888 echo "${ECHO_T}$ac_res" >&6; }
5891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5892 cat >>confdefs.h <<_ACEOF
5893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5902 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5903 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5904 (test "X$CXX" != "Xg++"))) ; then
5906 ac_cpp='$CXXCPP $CPPFLAGS'
5907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5910 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5911 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5912 if test -z "$CXXCPP"; then
5913 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 # Double quotes because CXXCPP needs to be expanded
5917 for CXXCPP in "$CXX -E" "/lib/cpp"
5920 for ac_cxx_preproc_warn_flag in '' yes
5922 # Use a header file that comes with gcc, so configuring glibc
5923 # with a fresh cross-compiler works.
5924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5925 # <limits.h> exists even on freestanding compilers.
5926 # On the NeXT, cc -E runs the code through the compiler's parser,
5927 # not just through cpp. "Syntax error" is here to catch this case.
5928 cat >conftest.$ac_ext <<_ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5935 # include <limits.h>
5937 # include <assert.h>
5941 if { (ac_try="$ac_cpp conftest.$ac_ext"
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5949 grep -v '^ *+' conftest.er1 >conftest.err
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } >/dev/null && {
5954 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5955 test ! -s conftest.err
5959 echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5962 # Broken: fails on valid input.
5966 rm -f conftest.err conftest.$ac_ext
5968 # OK, works on sane cases. Now check whether nonexistent headers
5969 # can be detected and how.
5970 cat >conftest.$ac_ext <<_ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h. */
5976 #include <ac_nonexistent.h>
5978 if { (ac_try="$ac_cpp conftest.$ac_ext"
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5986 grep -v '^ *+' conftest.er1 >conftest.err
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } >/dev/null && {
5991 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5992 test ! -s conftest.err
5994 # Broken: success on invalid input.
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
6000 # Passes both tests.
6005 rm -f conftest.err conftest.$ac_ext
6008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6009 rm -f conftest.err conftest.$ac_ext
6010 if $ac_preproc_ok; then
6015 ac_cv_prog_CXXCPP=$CXXCPP
6018 CXXCPP=$ac_cv_prog_CXXCPP
6020 ac_cv_prog_CXXCPP=$CXXCPP
6022 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6023 echo "${ECHO_T}$CXXCPP" >&6; }
6025 for ac_cxx_preproc_warn_flag in '' yes
6027 # Use a header file that comes with gcc, so configuring glibc
6028 # with a fresh cross-compiler works.
6029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6030 # <limits.h> exists even on freestanding compilers.
6031 # On the NeXT, cc -E runs the code through the compiler's parser,
6032 # not just through cpp. "Syntax error" is here to catch this case.
6033 cat >conftest.$ac_ext <<_ACEOF
6036 cat confdefs.h >>conftest.$ac_ext
6037 cat >>conftest.$ac_ext <<_ACEOF
6038 /* end confdefs.h. */
6040 # include <limits.h>
6042 # include <assert.h>
6046 if { (ac_try="$ac_cpp conftest.$ac_ext"
6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6054 grep -v '^ *+' conftest.er1 >conftest.err
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } >/dev/null && {
6059 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6060 test ! -s conftest.err
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6067 # Broken: fails on valid input.
6071 rm -f conftest.err conftest.$ac_ext
6073 # OK, works on sane cases. Now check whether nonexistent headers
6074 # can be detected and how.
6075 cat >conftest.$ac_ext <<_ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h. */
6081 #include <ac_nonexistent.h>
6083 if { (ac_try="$ac_cpp conftest.$ac_ext"
6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086 *) ac_try_echo=$ac_try;;
6088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6091 grep -v '^ *+' conftest.er1 >conftest.err
6093 cat conftest.err >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } >/dev/null && {
6096 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6097 test ! -s conftest.err
6099 # Broken: success on invalid input.
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6105 # Passes both tests.
6110 rm -f conftest.err conftest.$ac_ext
6113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6114 rm -f conftest.err conftest.$ac_ext
6115 if $ac_preproc_ok; then
6118 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6119 See \`config.log' for more details." >&5
6120 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6121 See \`config.log' for more details." >&2;}
6122 { (exit 1); exit 1; }; }
6126 ac_cpp='$CXXCPP $CPPFLAGS'
6127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6135 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6136 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6137 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6138 if test -n "$ac_tool_prefix"; then
6139 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
6141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6142 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6145 if test "${ac_cv_prog_F77+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 if test -n "$F77"; then
6149 ac_cv_prog_F77="$F77" # Let the user override the test.
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 if test -n "$F77"; then
6170 { echo "$as_me:$LINENO: result: $F77" >&5
6171 echo "${ECHO_T}$F77" >&6; }
6173 { echo "$as_me:$LINENO: result: no" >&5
6174 echo "${ECHO_T}no" >&6; }
6178 test -n "$F77" && break
6181 if test -z "$F77"; then
6183 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
6185 # Extract the first word of "$ac_prog", so it can be a program name with args.
6186 set dummy $ac_prog; ac_word=$2
6187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6189 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 if test -n "$ac_ct_F77"; then
6193 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 test -z "$as_dir" && as_dir=.
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6202 ac_cv_prog_ac_ct_F77="$ac_prog"
6203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6213 if test -n "$ac_ct_F77"; then
6214 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6215 echo "${ECHO_T}$ac_ct_F77" >&6; }
6217 { echo "$as_me:$LINENO: result: no" >&5
6218 echo "${ECHO_T}no" >&6; }
6222 test -n "$ac_ct_F77" && break
6225 if test "x$ac_ct_F77" = x; then
6228 case $cross_compiling:$ac_tool_warned in
6230 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6231 whose name does not start with the host triplet. If you think this
6232 configuration is useful to you, please write to autoconf@gnu.org." >&5
6233 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6234 whose name does not start with the host triplet. If you think this
6235 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6236 ac_tool_warned=yes ;;
6243 # Provide some information about the compiler.
6244 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6245 ac_compiler=`set X $ac_compile; echo $2`
6246 { (ac_try="$ac_compiler --version >&5"
6248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6249 *) ac_try_echo=$ac_try;;
6251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6252 (eval "$ac_compiler --version >&5") 2>&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }
6256 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }
6266 { (ac_try="$ac_compiler -V >&5"
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_compiler -V >&5") 2>&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }
6278 # If we don't use `.F' as extension, the preprocessor is not run on the
6279 # input file. (Note that this only needs to work for GNU compilers.)
6282 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6283 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6284 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 cat >conftest.$ac_ext <<_ACEOF
6295 rm -f conftest.$ac_objext
6296 if { (ac_try="$ac_compile"
6298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299 *) ac_try_echo=$ac_try;;
6301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6302 (eval "$ac_compile") 2>conftest.er1
6304 grep -v '^ *+' conftest.er1 >conftest.err
6306 cat conftest.err >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } && {
6309 test -z "$ac_f77_werror_flag" ||
6310 test ! -s conftest.err
6311 } && test -s conftest.$ac_objext; then
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6324 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6325 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6327 ac_test_FFLAGS=${FFLAGS+set}
6328 ac_save_FFLAGS=$FFLAGS
6330 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6331 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6332 if test "${ac_cv_prog_f77_g+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 cat >conftest.$ac_ext <<_ACEOF
6341 rm -f conftest.$ac_objext
6342 if { (ac_try="$ac_compile"
6344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345 *) ac_try_echo=$ac_try;;
6347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348 (eval "$ac_compile") 2>conftest.er1
6350 grep -v '^ *+' conftest.er1 >conftest.err
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } && {
6355 test -z "$ac_f77_werror_flag" ||
6356 test ! -s conftest.err
6357 } && test -s conftest.$ac_objext; then
6358 ac_cv_prog_f77_g=yes
6360 echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6369 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6370 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6371 if test "$ac_test_FFLAGS" = set; then
6372 FFLAGS=$ac_save_FFLAGS
6373 elif test $ac_cv_prog_f77_g = yes; then
6374 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6380 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6387 G77=`test $ac_compiler_gnu = yes && echo yes`
6389 ac_cpp='$CPP $CPPFLAGS'
6390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6396 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6397 # find the maximum length of command line arguments
6398 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6399 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6400 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 # On DJGPP, this test can blow up pretty badly due to problems in libc
6409 # (any single argument exceeding 2000 bytes causes a buffer overrun
6410 # during glob expansion). Even if it were fixed, the result of this
6411 # check would be larger than it should be.
6412 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6416 # Under GNU Hurd, this test is not required because there is
6417 # no limit to the length of command line arguments.
6418 # Libtool will interpret -1 as no limit whatsoever
6419 lt_cv_sys_max_cmd_len=-1;
6423 # On Win9x/ME, this test blows up -- it succeeds, but takes
6424 # about 5 minutes as the teststring grows exponentially.
6425 # Worse, since 9x/ME are not pre-emptively multitasking,
6426 # you end up with a "frozen" computer, even though with patience
6427 # the test eventually succeeds (with a max line length of 256k).
6428 # Instead, let's just punt: use the minimum linelength reported by
6429 # all of the supported platforms: 8192 (on NT/2K/XP).
6430 lt_cv_sys_max_cmd_len=8192;
6434 # On AmigaOS with pdksh, this test takes hours, literally.
6435 # So we just punt and use a minimum line length of 8192.
6436 lt_cv_sys_max_cmd_len=8192;
6439 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6440 # This has been around since 386BSD, at least. Likely further.
6441 if test -x /sbin/sysctl; then
6442 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6443 elif test -x /usr/sbin/sysctl; then
6444 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6446 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6448 # And add a safety zone
6449 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6450 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6454 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6455 lt_cv_sys_max_cmd_len=196608
6459 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6460 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6461 # nice to cause kernel panics so lets avoid the loop below.
6462 # First set a reasonable default.
6463 lt_cv_sys_max_cmd_len=16384
6465 if test -x /sbin/sysconfig; then
6466 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6467 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6472 lt_cv_sys_max_cmd_len=102400
6474 sysv5* | sco5v6* | sysv4.2uw2*)
6475 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6476 if test -n "$kargmax"; then
6477 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6479 lt_cv_sys_max_cmd_len=32768
6483 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6484 if test -n "$lt_cv_sys_max_cmd_len"; then
6485 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6486 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6488 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6489 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6490 = "XX$teststring") >/dev/null 2>&1 &&
6491 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6492 lt_cv_sys_max_cmd_len=$new_result &&
6493 test $i != 17 # 1/2 MB should be enough
6496 teststring=$teststring$teststring
6499 # Add a significant safety factor because C++ compilers can tack on massive
6500 # amounts of additional arguments before passing them to the linker.
6501 # It appears as though 1/2 is a usable value.
6502 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6509 if test -n $lt_cv_sys_max_cmd_len ; then
6510 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6511 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6513 { echo "$as_me:$LINENO: result: none" >&5
6514 echo "${ECHO_T}none" >&6; }
6521 # Check for command to grab the raw symbol name followed by C symbol from nm.
6522 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6523 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6524 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 # These are sane defaults that work on at least a few old systems.
6529 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6531 # Character class describing NM global symbol codes.
6532 symcode='[BCDEGRST]'
6534 # Regexp to match symbols that can be accessed directly from C.
6535 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6537 # Transform an extracted symbol line into a proper C declaration
6538 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6540 # Transform an extracted symbol line into symbol name and symbol address
6541 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'"
6543 # Define system-specific variables.
6548 cygwin* | mingw* | pw32*)
6549 symcode='[ABCDGISTW]'
6551 hpux*) # Its linker distinguishes data from code symbols
6552 if test "$host_cpu" = ia64; then
6553 symcode='[ABCDEGRST]'
6555 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6556 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'"
6558 linux* | k*bsd*-gnu)
6559 if test "$host_cpu" = ia64; then
6560 symcode='[ABCDGIRSTW]'
6561 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6562 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'"
6566 symcode='[BCDEGRST]'
6569 symcode='[BCDEGQRST]'
6580 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6588 # Handle CRLF in mingw tool chain
6592 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6596 # If we're using GNU nm, then use its standard symbol codes.
6597 case `$NM -V 2>&1` in
6598 *GNU* | *'with BFD'*)
6599 symcode='[ABCDGIRSTW]' ;;
6602 # Try without a prefix undercore, then with it.
6603 for ac_symprfx in "" "_"; do
6605 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6606 symxfrm="\\1 $ac_symprfx\\2 \\2"
6608 # Write the raw and C identifiers.
6609 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6611 # Check to see that the pipe works correctly.
6615 cat > conftest.$ac_ext <<EOF
6620 void nm_test_func(){}
6624 int main(){nm_test_var='a';nm_test_func();return(0);}
6627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6628 (eval $ac_compile) 2>&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; then
6632 # Now try to grab the symbols.
6634 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6635 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } && test -s "$nlist"; then
6639 # Try sorting and uniquifying the output.
6640 if sort "$nlist" | uniq > "$nlist"T; then
6641 mv -f "$nlist"T "$nlist"
6646 # Make sure that we snagged all the symbols we need.
6647 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6648 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6649 cat <<EOF > conftest.$ac_ext
6655 # Now generate the symbol file.
6656 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6658 cat <<EOF >> conftest.$ac_ext
6659 #if defined (__STDC__) && __STDC__
6660 # define lt_ptr_t void *
6662 # define lt_ptr_t char *
6666 /* The mapping between symbol names and symbols. */
6671 lt_preloaded_symbols[] =
6674 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6675 cat <<\EOF >> conftest.$ac_ext
6683 # Now try linking the two files.
6684 mv conftest.$ac_objext conftstm.$ac_objext
6685 lt_save_LIBS="$LIBS"
6686 lt_save_CFLAGS="$CFLAGS"
6687 LIBS="conftstm.$ac_objext"
6688 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6690 (eval $ac_link) 2>&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6696 LIBS="$lt_save_LIBS"
6697 CFLAGS="$lt_save_CFLAGS"
6699 echo "cannot find nm_test_func in $nlist" >&5
6702 echo "cannot find nm_test_var in $nlist" >&5
6705 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6708 echo "$progname: failed program was:" >&5
6709 cat conftest.$ac_ext >&5
6711 rm -rf conftest* conftst*
6713 # Do not use the global_symbol_pipe unless it works.
6714 if test "$pipe_works" = yes; then
6717 lt_cv_sys_global_symbol_pipe=
6723 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6724 lt_cv_sys_global_symbol_to_cdecl=
6726 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6727 { echo "$as_me:$LINENO: result: failed" >&5
6728 echo "${ECHO_T}failed" >&6; }
6730 { echo "$as_me:$LINENO: result: ok" >&5
6731 echo "${ECHO_T}ok" >&6; }
6734 { echo "$as_me:$LINENO: checking for objdir" >&5
6735 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6736 if test "${lt_cv_objdir+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 rm -f .libs 2>/dev/null
6740 mkdir .libs 2>/dev/null
6741 if test -d .libs; then
6744 # MS-DOS does not allow filenames that begin with a dot.
6747 rmdir .libs 2>/dev/null
6749 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6750 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6751 objdir=$lt_cv_objdir
6759 # AIX sometimes has problems with the GCC collect2 program. For some
6760 # reason, if we set the COLLECT_NAMES environment variable, the problems
6761 # vanish in a puff of smoke.
6762 if test "X${COLLECT_NAMES+set}" != Xset; then
6764 export COLLECT_NAMES
6769 # Sed substitution that helps us do robust quoting. It backslashifies
6770 # metacharacters that are still active within double-quoted strings.
6771 Xsed='sed -e 1s/^X//'
6772 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6774 # Same as above, but do not quote variable references.
6775 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6777 # Sed substitution to delay expansion of an escaped shell variable in a
6778 # double_quote_subst'ed string.
6779 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6781 # Sed substitution to avoid accidental globbing in evaled expressions
6782 no_glob_subst='s/\*/\\\*/g'
6788 default_ofile=libtool
6789 can_build_shared=yes
6791 # All known linkers require a `.a' archive for static linking (except MSVC,
6792 # which needs '.lib').
6794 ltmain="$ac_aux_dir/ltmain.sh"
6795 ofile="$default_ofile"
6796 with_gnu_ld="$lt_cv_prog_gnu_ld"
6798 if test -n "$ac_tool_prefix"; then
6799 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6800 set dummy ${ac_tool_prefix}ar; ac_word=$2
6801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6803 if test "${ac_cv_prog_AR+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 if test -n "$AR"; then
6807 ac_cv_prog_AR="$AR" # Let the user override the test.
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6816 ac_cv_prog_AR="${ac_tool_prefix}ar"
6817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 if test -n "$AR"; then
6828 { echo "$as_me:$LINENO: result: $AR" >&5
6829 echo "${ECHO_T}$AR" >&6; }
6831 { echo "$as_me:$LINENO: result: no" >&5
6832 echo "${ECHO_T}no" >&6; }
6837 if test -z "$ac_cv_prog_AR"; then
6839 # Extract the first word of "ar", so it can be a program name with args.
6840 set dummy ar; ac_word=$2
6841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6843 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6846 if test -n "$ac_ct_AR"; then
6847 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6856 ac_cv_prog_ac_ct_AR="ar"
6857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6867 if test -n "$ac_ct_AR"; then
6868 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6869 echo "${ECHO_T}$ac_ct_AR" >&6; }
6871 { echo "$as_me:$LINENO: result: no" >&5
6872 echo "${ECHO_T}no" >&6; }
6875 if test "x$ac_ct_AR" = x; then
6878 case $cross_compiling:$ac_tool_warned in
6880 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6881 whose name does not start with the host triplet. If you think this
6882 configuration is useful to you, please write to autoconf@gnu.org." >&5
6883 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6884 whose name does not start with the host triplet. If you think this
6885 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6886 ac_tool_warned=yes ;;
6894 if test -n "$ac_tool_prefix"; then
6895 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6896 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6899 if test "${ac_cv_prog_RANLIB+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 if test -n "$RANLIB"; then
6903 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6912 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 RANLIB=$ac_cv_prog_RANLIB
6923 if test -n "$RANLIB"; then
6924 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6925 echo "${ECHO_T}$RANLIB" >&6; }
6927 { echo "$as_me:$LINENO: result: no" >&5
6928 echo "${ECHO_T}no" >&6; }
6933 if test -z "$ac_cv_prog_RANLIB"; then
6934 ac_ct_RANLIB=$RANLIB
6935 # Extract the first word of "ranlib", so it can be a program name with args.
6936 set dummy ranlib; ac_word=$2
6937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6939 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 if test -n "$ac_ct_RANLIB"; then
6943 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6952 ac_cv_prog_ac_ct_RANLIB="ranlib"
6953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6963 if test -n "$ac_ct_RANLIB"; then
6964 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6965 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6967 { echo "$as_me:$LINENO: result: no" >&5
6968 echo "${ECHO_T}no" >&6; }
6971 if test "x$ac_ct_RANLIB" = x; then
6974 case $cross_compiling:$ac_tool_warned in
6976 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6977 whose name does not start with the host triplet. If you think this
6978 configuration is useful to you, please write to autoconf@gnu.org." >&5
6979 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6980 whose name does not start with the host triplet. If you think this
6981 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6982 ac_tool_warned=yes ;;
6984 RANLIB=$ac_ct_RANLIB
6987 RANLIB="$ac_cv_prog_RANLIB"
6990 if test -n "$ac_tool_prefix"; then
6991 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6992 set dummy ${ac_tool_prefix}strip; ac_word=$2
6993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6995 if test "${ac_cv_prog_STRIP+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 if test -n "$STRIP"; then
6999 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7008 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7018 STRIP=$ac_cv_prog_STRIP
7019 if test -n "$STRIP"; then
7020 { echo "$as_me:$LINENO: result: $STRIP" >&5
7021 echo "${ECHO_T}$STRIP" >&6; }
7023 { echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6; }
7029 if test -z "$ac_cv_prog_STRIP"; then
7031 # Extract the first word of "strip", so it can be a program name with args.
7032 set dummy strip; ac_word=$2
7033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7035 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 if test -n "$ac_ct_STRIP"; then
7039 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7048 ac_cv_prog_ac_ct_STRIP="strip"
7049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7059 if test -n "$ac_ct_STRIP"; then
7060 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7061 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7063 { echo "$as_me:$LINENO: result: no" >&5
7064 echo "${ECHO_T}no" >&6; }
7067 if test "x$ac_ct_STRIP" = x; then
7070 case $cross_compiling:$ac_tool_warned in
7072 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7073 whose name does not start with the host triplet. If you think this
7074 configuration is useful to you, please write to autoconf@gnu.org." >&5
7075 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7076 whose name does not start with the host triplet. If you think this
7077 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7078 ac_tool_warned=yes ;;
7083 STRIP="$ac_cv_prog_STRIP"
7088 old_CFLAGS="$CFLAGS"
7090 # Set sane defaults for various variables
7091 test -z "$AR" && AR=ar
7092 test -z "$AR_FLAGS" && AR_FLAGS=cru
7093 test -z "$AS" && AS=as
7094 test -z "$CC" && CC=cc
7095 test -z "$LTCC" && LTCC=$CC
7096 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7097 test -z "$DLLTOOL" && DLLTOOL=dlltool
7098 test -z "$LD" && LD=ld
7099 test -z "$LN_S" && LN_S="ln -s"
7100 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7101 test -z "$NM" && NM=nm
7102 test -z "$SED" && SED=sed
7103 test -z "$OBJDUMP" && OBJDUMP=objdump
7104 test -z "$RANLIB" && RANLIB=:
7105 test -z "$STRIP" && STRIP=:
7106 test -z "$ac_objext" && ac_objext=o
7108 # Determine commands to create old-style static archives.
7109 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7110 old_postinstall_cmds='chmod 644 $oldlib'
7111 old_postuninstall_cmds=
7113 if test -n "$RANLIB"; then
7116 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7119 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7122 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7125 for cc_temp in $compiler""; do
7127 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7128 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7133 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7136 # Only perform the check for file, if the check method requires it
7137 case $deplibs_check_method in
7139 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7140 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7141 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7142 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7150 lt_save_MAGIC_CMD="$MAGIC_CMD"
7151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7152 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7153 for ac_dir in $ac_dummy; do
7155 test -z "$ac_dir" && ac_dir=.
7156 if test -f $ac_dir/${ac_tool_prefix}file; then
7157 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7158 if test -n "$file_magic_test_file"; then
7159 case $deplibs_check_method in
7161 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7163 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7164 $EGREP "$file_magic_regex" > /dev/null; then
7169 *** Warning: the command libtool uses to detect shared libraries,
7170 *** $file_magic_cmd, produces output that libtool cannot recognize.
7171 *** The result is that libtool may fail to recognize shared libraries
7172 *** as such. This will affect the creation of libtool libraries that
7173 *** depend on shared libraries, but programs linked with such libtool
7174 *** libraries will work regardless of this problem. Nevertheless, you
7175 *** may want to report the problem to your system manager and/or to
7176 *** bug-libtool@gnu.org
7186 MAGIC_CMD="$lt_save_MAGIC_CMD"
7191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7192 if test -n "$MAGIC_CMD"; then
7193 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7194 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7196 { echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6; }
7200 if test -z "$lt_cv_path_MAGIC_CMD"; then
7201 if test -n "$ac_tool_prefix"; then
7202 { echo "$as_me:$LINENO: checking for file" >&5
7203 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7204 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7209 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7212 lt_save_MAGIC_CMD="$MAGIC_CMD"
7213 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7214 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7215 for ac_dir in $ac_dummy; do
7217 test -z "$ac_dir" && ac_dir=.
7218 if test -f $ac_dir/file; then
7219 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7220 if test -n "$file_magic_test_file"; then
7221 case $deplibs_check_method in
7223 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7225 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7226 $EGREP "$file_magic_regex" > /dev/null; then
7231 *** Warning: the command libtool uses to detect shared libraries,
7232 *** $file_magic_cmd, produces output that libtool cannot recognize.
7233 *** The result is that libtool may fail to recognize shared libraries
7234 *** as such. This will affect the creation of libtool libraries that
7235 *** depend on shared libraries, but programs linked with such libtool
7236 *** libraries will work regardless of this problem. Nevertheless, you
7237 *** may want to report the problem to your system manager and/or to
7238 *** bug-libtool@gnu.org
7248 MAGIC_CMD="$lt_save_MAGIC_CMD"
7253 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7254 if test -n "$MAGIC_CMD"; then
7255 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7256 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7258 { echo "$as_me:$LINENO: result: no" >&5
7259 echo "${ECHO_T}no" >&6; }
7273 rhapsody* | darwin*)
7274 if test -n "$ac_tool_prefix"; then
7275 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7276 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7279 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 if test -n "$DSYMUTIL"; then
7283 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 test -z "$as_dir" && as_dir=.
7290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7292 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7303 if test -n "$DSYMUTIL"; then
7304 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7305 echo "${ECHO_T}$DSYMUTIL" >&6; }
7307 { echo "$as_me:$LINENO: result: no" >&5
7308 echo "${ECHO_T}no" >&6; }
7313 if test -z "$ac_cv_prog_DSYMUTIL"; then
7314 ac_ct_DSYMUTIL=$DSYMUTIL
7315 # Extract the first word of "dsymutil", so it can be a program name with args.
7316 set dummy dsymutil; ac_word=$2
7317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7319 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 if test -n "$ac_ct_DSYMUTIL"; then
7323 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7332 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7343 if test -n "$ac_ct_DSYMUTIL"; then
7344 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7345 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7347 { echo "$as_me:$LINENO: result: no" >&5
7348 echo "${ECHO_T}no" >&6; }
7351 if test "x$ac_ct_DSYMUTIL" = x; then
7354 case $cross_compiling:$ac_tool_warned in
7356 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7357 whose name does not start with the host triplet. If you think this
7358 configuration is useful to you, please write to autoconf@gnu.org." >&5
7359 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7360 whose name does not start with the host triplet. If you think this
7361 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7362 ac_tool_warned=yes ;;
7364 DSYMUTIL=$ac_ct_DSYMUTIL
7367 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7370 if test -n "$ac_tool_prefix"; then
7371 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7372 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7375 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7378 if test -n "$NMEDIT"; then
7379 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 test -z "$as_dir" && as_dir=.
7386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7388 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 NMEDIT=$ac_cv_prog_NMEDIT
7399 if test -n "$NMEDIT"; then
7400 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7401 echo "${ECHO_T}$NMEDIT" >&6; }
7403 { echo "$as_me:$LINENO: result: no" >&5
7404 echo "${ECHO_T}no" >&6; }
7409 if test -z "$ac_cv_prog_NMEDIT"; then
7410 ac_ct_NMEDIT=$NMEDIT
7411 # Extract the first word of "nmedit", so it can be a program name with args.
7412 set dummy nmedit; ac_word=$2
7413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7415 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 if test -n "$ac_ct_NMEDIT"; then
7419 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7428 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7439 if test -n "$ac_ct_NMEDIT"; then
7440 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7441 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7443 { echo "$as_me:$LINENO: result: no" >&5
7444 echo "${ECHO_T}no" >&6; }
7447 if test "x$ac_ct_NMEDIT" = x; then
7450 case $cross_compiling:$ac_tool_warned in
7452 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7453 whose name does not start with the host triplet. If you think this
7454 configuration is useful to you, please write to autoconf@gnu.org." >&5
7455 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7456 whose name does not start with the host triplet. If you think this
7457 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7458 ac_tool_warned=yes ;;
7460 NMEDIT=$ac_ct_NMEDIT
7463 NMEDIT="$ac_cv_prog_NMEDIT"
7467 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7468 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7469 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 lt_cv_apple_cc_single_mod=no
7473 if test -z "${LT_MULTI_MODULE}"; then
7474 # By default we will add the -single_module flag. You can override
7475 # by either setting the environment variable LT_MULTI_MODULE
7476 # non-empty at configure time, or by adding -multi_module to the
7478 echo "int foo(void){return 1;}" > conftest.c
7479 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7480 -dynamiclib ${wl}-single_module conftest.c
7481 if test -f libconftest.dylib; then
7482 lt_cv_apple_cc_single_mod=yes
7483 rm -rf libconftest.dylib*
7488 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7489 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7490 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7491 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7492 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 lt_cv_ld_exported_symbols_list=no
7496 save_LDFLAGS=$LDFLAGS
7497 echo "_main" > conftest.sym
7498 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7499 cat >conftest.$ac_ext <<_ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h. */
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (ac_try="$ac_link"
7517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518 *) ac_try_echo=$ac_try;;
7520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7521 (eval "$ac_link") 2>conftest.er1
7523 grep -v '^ *+' conftest.er1 >conftest.err
7525 cat conftest.err >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } && {
7528 test -z "$ac_c_werror_flag" ||
7529 test ! -s conftest.err
7530 } && test -s conftest$ac_exeext &&
7531 $as_test_x conftest$ac_exeext; then
7532 lt_cv_ld_exported_symbols_list=yes
7534 echo "$as_me: failed program was:" >&5
7535 sed 's/^/| /' conftest.$ac_ext >&5
7537 lt_cv_ld_exported_symbols_list=no
7540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7541 conftest$ac_exeext conftest.$ac_ext
7542 LDFLAGS="$save_LDFLAGS"
7545 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7546 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7548 rhapsody* | darwin1.[0123])
7549 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7551 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7553 # if running on 10.5 or later, the deployment target defaults
7554 # to the OS version, if on x86, and 10.4, the deployment
7555 # target defaults to 10.4. Don't you love it?
7556 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7557 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7558 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7560 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7562 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7566 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7567 _lt_dar_single_mod='$single_module'
7569 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7570 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7572 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7574 if test "$DSYMUTIL" != ":"; then
7575 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7586 # Check whether --enable-libtool-lock was given.
7587 if test "${enable_libtool_lock+set}" = set; then
7588 enableval=$enable_libtool_lock;
7591 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7594 # Check whether --with-pic was given.
7595 if test "${with_pic+set}" = set; then
7596 withval=$with_pic; pic_mode="$withval"
7601 test -z "$pic_mode" && pic_mode=default
7603 # Use C for the default configuration in the libtool script
7607 ac_cpp='$CPP $CPPFLAGS'
7608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7613 # Source file extension for C test sources.
7616 # Object file extension for compiled C test sources.
7620 # Code to be used in simple compile tests
7621 lt_simple_compile_test_code="int some_variable = 0;"
7623 # Code to be used in simple link tests
7624 lt_simple_link_test_code='int main(){return(0);}'
7627 # If no C compiler was specified, use CC.
7630 # If no C compiler flags were specified, use CFLAGS.
7631 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7633 # Allow CC to be a program name with arguments.
7637 # save warnings/boilerplate of simple test code
7638 ac_outfile=conftest.$ac_objext
7639 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7640 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7641 _lt_compiler_boilerplate=`cat conftest.err`
7644 ac_outfile=conftest.$ac_objext
7645 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7646 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7647 _lt_linker_boilerplate=`cat conftest.err`
7652 lt_prog_compiler_no_builtin_flag=
7654 if test "$GCC" = yes; then
7655 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7658 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7659 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7660 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 lt_cv_prog_compiler_rtti_exceptions=no
7664 ac_outfile=conftest.$ac_objext
7665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7666 lt_compiler_flag="-fno-rtti -fno-exceptions"
7667 # Insert the option either (1) after the last *FLAGS variable, or
7668 # (2) before a word containing "conftest.", or (3) at the end.
7669 # Note that $ac_compile itself does not contain backslashes and begins
7670 # with a dollar sign (not a hyphen), so the echo should work correctly.
7671 # The option is referenced via a variable to avoid confusing sed.
7672 lt_compile=`echo "$ac_compile" | $SED \
7673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7675 -e 's:$: $lt_compiler_flag:'`
7676 (eval echo "\"\$as_me:7676: $lt_compile\"" >&5)
7677 (eval "$lt_compile" 2>conftest.err)
7679 cat conftest.err >&5
7680 echo "$as_me:7680: \$? = $ac_status" >&5
7681 if (exit $ac_status) && test -s "$ac_outfile"; then
7682 # The compiler can only warn and ignore the option if not recognized
7683 # So say no if there are warnings other than the usual output.
7684 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7686 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7687 lt_cv_prog_compiler_rtti_exceptions=yes
7693 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7694 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7696 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7697 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7704 lt_prog_compiler_wl=
7705 lt_prog_compiler_pic=
7706 lt_prog_compiler_static=
7708 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7709 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7711 if test "$GCC" = yes; then
7712 lt_prog_compiler_wl='-Wl,'
7713 lt_prog_compiler_static='-static'
7717 # All AIX code is PIC.
7718 if test "$host_cpu" = ia64; then
7719 # AIX 5 now supports IA64 processor
7720 lt_prog_compiler_static='-Bstatic'
7725 # FIXME: we need at least 68020 code to build shared libraries, but
7726 # adding the `-m68020' flag to GCC prevents building anything better,
7728 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7731 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7732 # PIC is the default for these OSes.
7735 mingw* | cygwin* | pw32* | os2*)
7736 # This hack is so that the source file can tell whether it is being
7737 # built for inclusion in a dll (and should export symbols for example).
7738 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7739 # (--disable-auto-import) libraries
7740 lt_prog_compiler_pic='-DDLL_EXPORT'
7743 darwin* | rhapsody*)
7744 # PIC is the default on this platform
7745 # Common symbols not allowed in MH_DYLIB files
7746 lt_prog_compiler_pic='-fno-common'
7750 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7751 # Instead, we relocate shared libraries at runtime.
7755 # Just because we use GCC doesn't mean we suddenly get shared libraries
7756 # on systems that don't support them.
7757 lt_prog_compiler_can_build_shared=no
7762 if test -d /usr/nec; then
7763 lt_prog_compiler_pic=-Kconform_pic
7768 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7775 lt_prog_compiler_pic='-fPIC'
7781 lt_prog_compiler_pic='-fPIC'
7785 # PORTME Check for flag to pass linker flags through the system compiler.
7788 lt_prog_compiler_wl='-Wl,'
7789 if test "$host_cpu" = ia64; then
7790 # AIX 5 now supports IA64 processor
7791 lt_prog_compiler_static='-Bstatic'
7793 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7797 # PIC is the default on this platform
7798 # Common symbols not allowed in MH_DYLIB files
7799 case $cc_basename in
7801 lt_prog_compiler_pic='-qnocommon'
7802 lt_prog_compiler_wl='-Wl,'
7807 mingw* | cygwin* | pw32* | os2*)
7808 # This hack is so that the source file can tell whether it is being
7809 # built for inclusion in a dll (and should export symbols for example).
7810 lt_prog_compiler_pic='-DDLL_EXPORT'
7813 hpux9* | hpux10* | hpux11*)
7814 lt_prog_compiler_wl='-Wl,'
7815 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7822 lt_prog_compiler_pic='+Z'
7825 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7826 lt_prog_compiler_static='${wl}-a ${wl}archive'
7829 irix5* | irix6* | nonstopux*)
7830 lt_prog_compiler_wl='-Wl,'
7831 # PIC (with -KPIC) is the default.
7832 lt_prog_compiler_static='-non_shared'
7836 lt_prog_compiler_pic='-KPIC'
7837 lt_prog_compiler_static='-Bstatic'
7840 linux* | k*bsd*-gnu)
7841 case $cc_basename in
7843 lt_prog_compiler_wl='-Wl,'
7844 lt_prog_compiler_pic='-KPIC'
7845 lt_prog_compiler_static='-static'
7847 pgcc* | pgf77* | pgf90* | pgf95*)
7848 # Portland Group compilers (*not* the Pentium gcc compiler,
7849 # which looks to be a dead project)
7850 lt_prog_compiler_wl='-Wl,'
7851 lt_prog_compiler_pic='-fpic'
7852 lt_prog_compiler_static='-Bstatic'
7855 lt_prog_compiler_wl='-Wl,'
7856 # All Alpha code is PIC.
7857 lt_prog_compiler_static='-non_shared'
7860 case `$CC -V 2>&1 | sed 5q` in
7863 lt_prog_compiler_pic='-KPIC'
7864 lt_prog_compiler_static='-Bstatic'
7865 lt_prog_compiler_wl='-Wl,'
7868 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7869 lt_prog_compiler_pic='-KPIC'
7870 lt_prog_compiler_static='-Bstatic'
7871 lt_prog_compiler_wl=''
7878 osf3* | osf4* | osf5*)
7879 lt_prog_compiler_wl='-Wl,'
7880 # All OSF/1 code is PIC.
7881 lt_prog_compiler_static='-non_shared'
7885 lt_prog_compiler_static='-non_shared'
7889 lt_prog_compiler_pic='-KPIC'
7890 lt_prog_compiler_static='-Bstatic'
7891 case $cc_basename in
7893 lt_prog_compiler_wl='-Qoption ld ';;
7895 lt_prog_compiler_wl='-Wl,';;
7900 lt_prog_compiler_wl='-Qoption ld '
7901 lt_prog_compiler_pic='-PIC'
7902 lt_prog_compiler_static='-Bstatic'
7905 sysv4 | sysv4.2uw2* | sysv4.3*)
7906 lt_prog_compiler_wl='-Wl,'
7907 lt_prog_compiler_pic='-KPIC'
7908 lt_prog_compiler_static='-Bstatic'
7912 if test -d /usr/nec ;then
7913 lt_prog_compiler_pic='-Kconform_pic'
7914 lt_prog_compiler_static='-Bstatic'
7918 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7919 lt_prog_compiler_wl='-Wl,'
7920 lt_prog_compiler_pic='-KPIC'
7921 lt_prog_compiler_static='-Bstatic'
7925 lt_prog_compiler_wl='-Wl,'
7926 lt_prog_compiler_can_build_shared=no
7930 lt_prog_compiler_pic='-pic'
7931 lt_prog_compiler_static='-Bstatic'
7935 lt_prog_compiler_can_build_shared=no
7940 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7941 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7944 # Check to make sure the PIC flag actually works.
7946 if test -n "$lt_prog_compiler_pic"; then
7948 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7949 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7950 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 lt_cv_prog_compiler_pic_works=no
7954 ac_outfile=conftest.$ac_objext
7955 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7956 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7957 # Insert the option either (1) after the last *FLAGS variable, or
7958 # (2) before a word containing "conftest.", or (3) at the end.
7959 # Note that $ac_compile itself does not contain backslashes and begins
7960 # with a dollar sign (not a hyphen), so the echo should work correctly.
7961 # The option is referenced via a variable to avoid confusing sed.
7962 lt_compile=`echo "$ac_compile" | $SED \
7963 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7965 -e 's:$: $lt_compiler_flag:'`
7966 (eval echo "\"\$as_me:7966: $lt_compile\"" >&5)
7967 (eval "$lt_compile" 2>conftest.err)
7969 cat conftest.err >&5
7970 echo "$as_me:7970: \$? = $ac_status" >&5
7971 if (exit $ac_status) && test -s "$ac_outfile"; then
7972 # The compiler can only warn and ignore the option if not recognized
7973 # So say no if there are warnings other than the usual output.
7974 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7976 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7977 lt_cv_prog_compiler_pic_works=yes
7983 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7984 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7986 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7987 case $lt_prog_compiler_pic in
7989 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7992 lt_prog_compiler_pic=
7993 lt_prog_compiler_can_build_shared=no
7998 # For platforms which do not support PIC, -DPIC is meaningless:
8000 lt_prog_compiler_pic=
8003 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8008 # Check to make sure the static flag actually works.
8010 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8011 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8012 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8013 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 lt_cv_prog_compiler_static_works=no
8017 save_LDFLAGS="$LDFLAGS"
8018 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8019 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8020 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8021 # The linker can only warn and ignore the option if not recognized
8022 # So say no if there are warnings
8023 if test -s conftest.err; then
8024 # Append any errors to the config.log.
8025 cat conftest.err 1>&5
8026 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8028 if diff conftest.exp conftest.er2 >/dev/null; then
8029 lt_cv_prog_compiler_static_works=yes
8032 lt_cv_prog_compiler_static_works=yes
8036 LDFLAGS="$save_LDFLAGS"
8039 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8040 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8042 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8045 lt_prog_compiler_static=
8049 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8050 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8051 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8054 lt_cv_prog_compiler_c_o=no
8055 $rm -r conftest 2>/dev/null
8059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8061 lt_compiler_flag="-o out/conftest2.$ac_objext"
8062 # Insert the option either (1) after the last *FLAGS variable, or
8063 # (2) before a word containing "conftest.", or (3) at the end.
8064 # Note that $ac_compile itself does not contain backslashes and begins
8065 # with a dollar sign (not a hyphen), so the echo should work correctly.
8066 lt_compile=`echo "$ac_compile" | $SED \
8067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8069 -e 's:$: $lt_compiler_flag:'`
8070 (eval echo "\"\$as_me:8070: $lt_compile\"" >&5)
8071 (eval "$lt_compile" 2>out/conftest.err)
8073 cat out/conftest.err >&5
8074 echo "$as_me:8074: \$? = $ac_status" >&5
8075 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8077 # The compiler can only warn and ignore the option if not recognized
8078 # So say no if there are warnings
8079 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8080 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8081 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8082 lt_cv_prog_compiler_c_o=yes
8087 # SGI C++ compiler will create directory out/ii_files/ for
8088 # template instantiation
8089 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8090 $rm out/* && rmdir out
8096 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8097 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8100 hard_links="nottested"
8101 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8102 # do not overwrite the value of need_locks provided by the user
8103 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8104 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8107 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8109 ln conftest.a conftest.b 2>&5 || hard_links=no
8110 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8111 { echo "$as_me:$LINENO: result: $hard_links" >&5
8112 echo "${ECHO_T}$hard_links" >&6; }
8113 if test "$hard_links" = no; then
8114 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8115 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8122 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8123 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8126 allow_undefined_flag=
8127 enable_shared_with_static_runtimes=no
8129 archive_expsym_cmds=
8130 old_archive_From_new_cmds=
8131 old_archive_from_expsyms_cmds=
8132 export_dynamic_flag_spec=
8133 whole_archive_flag_spec=
8134 thread_safe_flag_spec=
8135 hardcode_libdir_flag_spec=
8136 hardcode_libdir_flag_spec_ld=
8137 hardcode_libdir_separator=
8140 hardcode_shlibpath_var=unsupported
8141 link_all_deplibs=unknown
8142 hardcode_automatic=no
8145 always_export_symbols=no
8146 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8147 # include_expsyms should be a list of space-separated symbols to be *always*
8148 # included in the symbol list
8150 # exclude_expsyms can be an extended regexp of symbols to exclude
8151 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8152 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8153 # as well as any symbol that contains `d'.
8154 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8155 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8156 # platforms (ab)use it in PIC code, but their linkers get confused if
8157 # the symbol is explicitly referenced. Since portable code cannot
8158 # rely on this symbol name, it's probably fine to never include it in
8159 # preloaded symbol tables.
8160 # Exclude shared library initialization/finalization symbols.
8161 extract_expsyms_cmds=
8162 # Just being paranoid about ensuring that cc_basename is set.
8163 for cc_temp in $compiler""; do
8165 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8166 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8171 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8174 cygwin* | mingw* | pw32*)
8175 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8176 # When not using gcc, we currently assume that we are using
8177 # Microsoft Visual C++.
8178 if test "$GCC" != yes; then
8183 # we just hope/assume this is gcc and not c89 (= MSVC++)
8192 if test "$with_gnu_ld" = yes; then
8193 # If archive_cmds runs LD, not CC, wlarc should be empty
8196 # Set some defaults for GNU ld with shared library support. These
8197 # are reset later if shared libraries are not supported. Putting them
8198 # here allows them to be overridden if necessary.
8199 runpath_var=LD_RUN_PATH
8200 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8201 export_dynamic_flag_spec='${wl}--export-dynamic'
8202 # ancient GNU ld didn't support --whole-archive et. al.
8203 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8204 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8206 whole_archive_flag_spec=
8208 supports_anon_versioning=no
8209 case `$LD -v 2>/dev/null` in
8210 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8211 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8212 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8213 *\ 2.11.*) ;; # other 2.11 versions
8214 *) supports_anon_versioning=yes ;;
8217 # See if GNU ld supports shared libraries.
8220 # On AIX/PPC, the GNU linker is very broken
8221 if test "$host_cpu" != ia64; then
8225 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8226 *** to be unable to reliably create shared libraries on AIX.
8227 *** Therefore, libtool is disabling shared libraries support. If you
8228 *** really care for shared libraries, you may want to modify your PATH
8229 *** so that a non-GNU linker is found, and then restart.
8236 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)'
8237 hardcode_libdir_flag_spec='-L$libdir'
8238 hardcode_minus_L=yes
8240 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8241 # that the semantics of dynamic libraries on AmigaOS, at least up
8242 # to version 4, is to share data among multiple programs linked
8243 # with the same dynamic library. Since this doesn't match the
8244 # behavior of shared libraries on other platforms, we can't use
8250 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8251 allow_undefined_flag=unsupported
8252 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8253 # support --undefined. This deserves some investigation. FIXME
8254 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8260 cygwin* | mingw* | pw32*)
8261 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8262 # as there is no search path for DLLs.
8263 hardcode_libdir_flag_spec='-L$libdir'
8264 allow_undefined_flag=unsupported
8265 always_export_symbols=no
8266 enable_shared_with_static_runtimes=yes
8267 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8269 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8271 # If the export-symbols file already is a .def file (1st line
8272 # is EXPORTS), use it as is; otherwise, prepend...
8273 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8274 cp $export_symbols $output_objdir/$soname.def;
8276 echo EXPORTS > $output_objdir/$soname.def;
8277 cat $export_symbols >> $output_objdir/$soname.def;
8279 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8287 hardcode_shlibpath_var=no
8288 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8289 export_dynamic_flag_spec='${wl}-E'
8290 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8291 # Instead, shared libraries are loaded at an image base (0x10000000 by
8292 # default) and relocated if they conflict, which is a slow very memory
8293 # consuming and fragmenting process. To avoid this, we pick a random,
8294 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8295 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8296 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8297 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'
8300 gnu* | linux* | k*bsd*-gnu)
8301 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8303 case $cc_basename,$host_cpu in
8304 pgcc*) # Portland Group C compiler
8305 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'
8306 tmp_addflag=' $pic_flag'
8308 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8309 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'
8310 tmp_addflag=' $pic_flag -Mnomain' ;;
8311 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8312 tmp_addflag=' -i_dynamic' ;;
8313 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8314 tmp_addflag=' -i_dynamic -nofor_main' ;;
8315 ifc* | ifort*) # Intel Fortran compiler
8316 tmp_addflag=' -nofor_main' ;;
8318 case `$CC -V 2>&1 | sed 5q` in
8319 *Sun\ C*) # Sun C 5.9
8320 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8321 tmp_sharedflag='-G' ;;
8322 *Sun\ F*) # Sun Fortran 8.3
8323 tmp_sharedflag='-G' ;;
8325 tmp_sharedflag='-shared' ;;
8327 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8329 if test $supports_anon_versioning = yes; then
8330 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8331 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8332 $echo "local: *; };" >> $output_objdir/$libname.ver~
8333 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8341 netbsd* | netbsdelf*-gnu)
8342 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8343 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8347 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8352 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8356 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8357 *** create shared libraries on Solaris systems. Therefore, libtool
8358 *** is disabling shared libraries support. We urge you to upgrade GNU
8359 *** binutils to release 2.9.1 or newer. Another option is to modify
8360 *** your PATH or compiler configuration so that the native linker is
8361 *** used, and then restart.
8364 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8365 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8366 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8372 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8373 case `$LD -v 2>&1` in
8374 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8378 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8379 *** reliably create shared libraries on SCO systems. Therefore, libtool
8380 *** is disabling shared libraries support. We urge you to upgrade GNU
8381 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8382 *** your PATH or compiler configuration so that the native linker is
8383 *** used, and then restart.
8388 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8389 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8391 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8400 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8403 hardcode_shlibpath_var=no
8407 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8416 if test "$ld_shlibs" = no; then
8418 hardcode_libdir_flag_spec=
8419 export_dynamic_flag_spec=
8420 whole_archive_flag_spec=
8423 # PORTME fill in a description of your system's linker (not GNU ld)
8426 allow_undefined_flag=unsupported
8427 always_export_symbols=yes
8428 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'
8429 # Note: this linker hardcodes the directories in LIBPATH if there
8430 # are no directories specified by -L.
8431 hardcode_minus_L=yes
8432 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8433 # Neither direct hardcoding nor static linking is supported with a
8435 hardcode_direct=unsupported
8440 if test "$host_cpu" = ia64; then
8441 # On IA64, the linker does run time linking by default, so we don't
8442 # have to do anything special.
8443 aix_use_runtimelinking=no
8444 exp_sym_flag='-Bexport'
8447 # If we're using GNU nm, then we don't want the "-C" option.
8448 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8449 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8450 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'
8452 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'
8454 aix_use_runtimelinking=no
8456 # Test if we are trying to use run time linking or normal
8457 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8458 # need to do runtime linking.
8459 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8460 for ld_flag in $LDFLAGS; do
8461 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8462 aix_use_runtimelinking=yes
8469 exp_sym_flag='-bexport'
8470 no_entry_flag='-bnoentry'
8473 # When large executables or shared objects are built, AIX ld can
8474 # have problems creating the table of contents. If linking a library
8475 # or program results in "error TOC overflow" add -mminimal-toc to
8476 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8477 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8481 hardcode_libdir_separator=':'
8482 link_all_deplibs=yes
8484 if test "$GCC" = yes; then
8485 case $host_os in aix4.[012]|aix4.[012].*)
8486 # We only want to do this on AIX 4.2 and lower, the check
8487 # below for broken collect2 doesn't work under 4.3+
8488 collect2name=`${CC} -print-prog-name=collect2`
8489 if test -f "$collect2name" && \
8490 strings "$collect2name" | grep resolve_lib_name >/dev/null
8492 # We have reworked collect2
8495 # We have old collect2
8496 hardcode_direct=unsupported
8497 # It fails to find uninstalled libraries when the uninstalled
8498 # path is not listed in the libpath. Setting hardcode_minus_L
8499 # to unsupported forces relinking
8500 hardcode_minus_L=yes
8501 hardcode_libdir_flag_spec='-L$libdir'
8502 hardcode_libdir_separator=
8506 shared_flag='-shared'
8507 if test "$aix_use_runtimelinking" = yes; then
8508 shared_flag="$shared_flag "'${wl}-G'
8512 if test "$host_cpu" = ia64; then
8513 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8514 # chokes on -Wl,-G. The following line is correct:
8517 if test "$aix_use_runtimelinking" = yes; then
8518 shared_flag='${wl}-G'
8520 shared_flag='${wl}-bM:SRE'
8525 # It seems that -bexpall does not export symbols beginning with
8526 # underscore (_), so it is better to generate a list of symbols to export.
8527 always_export_symbols=yes
8528 if test "$aix_use_runtimelinking" = yes; then
8529 # Warning - without using the other runtime loading flags (-brtl),
8530 # -berok will link without error, but may produce a broken library.
8531 allow_undefined_flag='-berok'
8532 # Determine the default libpath from the value encoded in an empty executable.
8533 cat >conftest.$ac_ext <<_ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8548 rm -f conftest.$ac_objext conftest$ac_exeext
8549 if { (ac_try="$ac_link"
8551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552 *) ac_try_echo=$ac_try;;
8554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555 (eval "$ac_link") 2>conftest.er1
8557 grep -v '^ *+' conftest.er1 >conftest.err
8559 cat conftest.err >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } && {
8562 test -z "$ac_c_werror_flag" ||
8563 test ! -s conftest.err
8564 } && test -s conftest$ac_exeext &&
8565 $as_test_x conftest$ac_exeext; then
8567 lt_aix_libpath_sed='
8568 /Import File Strings/,/^$/ {
8574 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8575 # Check for a 64-bit object if we didn't find anything.
8576 if test -z "$aix_libpath"; then
8577 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8587 conftest$ac_exeext conftest.$ac_ext
8588 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8590 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8591 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"
8593 if test "$host_cpu" = ia64; then
8594 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8595 allow_undefined_flag="-z nodefs"
8596 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"
8598 # Determine the default libpath from the value encoded in an empty executable.
8599 cat >conftest.$ac_ext <<_ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8614 rm -f conftest.$ac_objext conftest$ac_exeext
8615 if { (ac_try="$ac_link"
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_link") 2>conftest.er1
8623 grep -v '^ *+' conftest.er1 >conftest.err
8625 cat conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } && {
8628 test -z "$ac_c_werror_flag" ||
8629 test ! -s conftest.err
8630 } && test -s conftest$ac_exeext &&
8631 $as_test_x conftest$ac_exeext; then
8633 lt_aix_libpath_sed='
8634 /Import File Strings/,/^$/ {
8640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8641 # Check for a 64-bit object if we didn't find anything.
8642 if test -z "$aix_libpath"; then
8643 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8646 echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8653 conftest$ac_exeext conftest.$ac_ext
8654 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8656 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8657 # Warning - without using the other run time loading flags,
8658 # -berok will link without error, but may produce a broken library.
8659 no_undefined_flag=' ${wl}-bernotok'
8660 allow_undefined_flag=' ${wl}-berok'
8661 # Exported symbols can be pulled into shared objects from archives
8662 whole_archive_flag_spec='$convenience'
8663 archive_cmds_need_lc=yes
8664 # This is similar to how AIX traditionally builds its shared libraries.
8665 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'
8671 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)'
8672 hardcode_libdir_flag_spec='-L$libdir'
8673 hardcode_minus_L=yes
8674 # see comment about different semantics on the GNU ld section
8679 export_dynamic_flag_spec=-rdynamic
8682 cygwin* | mingw* | pw32*)
8683 # When not using gcc, we currently assume that we are using
8684 # Microsoft Visual C++.
8685 # hardcode_libdir_flag_spec is actually meaningless, as there is
8686 # no search path for DLLs.
8687 hardcode_libdir_flag_spec=' '
8688 allow_undefined_flag=unsupported
8689 # Tell ltmain to make .lib files, not .a files.
8691 # Tell ltmain to make .dll files, not .so files.
8693 # FIXME: Setting linknames here is a bad hack.
8694 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8695 # The linker will automatically build a .lib file if we build a DLL.
8696 old_archive_From_new_cmds='true'
8697 # FIXME: Should let the user specify the lib program.
8698 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8699 fix_srcfile_path='`cygpath -w "$srcfile"`'
8700 enable_shared_with_static_runtimes=yes
8703 darwin* | rhapsody*)
8705 rhapsody* | darwin1.[012])
8706 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8709 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8710 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8712 case ${MACOSX_DEPLOYMENT_TARGET} in
8714 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8717 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8723 archive_cmds_need_lc=no
8725 hardcode_automatic=yes
8726 hardcode_shlibpath_var=unsupported
8727 whole_archive_flag_spec=''
8728 link_all_deplibs=yes
8729 if test "$GCC" = yes ; then
8730 output_verbose_link_cmd='echo'
8731 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8732 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8733 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8734 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8736 case $cc_basename in
8738 output_verbose_link_cmd='echo'
8739 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8740 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8741 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8742 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8743 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}'
8753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8754 hardcode_libdir_flag_spec='-L$libdir'
8755 hardcode_shlibpath_var=no
8762 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8763 # support. Future versions do this automatically, but an explicit c++rt0.o
8764 # does not break anything, and helps significantly (at the cost of a little
8767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8768 hardcode_libdir_flag_spec='-R$libdir'
8770 hardcode_shlibpath_var=no
8773 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8777 hardcode_minus_L=yes
8778 hardcode_shlibpath_var=no
8781 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8782 freebsd* | dragonfly*)
8783 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8784 hardcode_libdir_flag_spec='-R$libdir'
8786 hardcode_shlibpath_var=no
8790 if test "$GCC" = yes; then
8791 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'
8793 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'
8795 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8796 hardcode_libdir_separator=:
8799 # hardcode_minus_L: Not really in the search PATH,
8800 # but as the default location of the library.
8801 hardcode_minus_L=yes
8802 export_dynamic_flag_spec='${wl}-E'
8806 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8807 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8809 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8811 if test "$with_gnu_ld" = no; then
8812 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8813 hardcode_libdir_separator=:
8816 export_dynamic_flag_spec='${wl}-E'
8818 # hardcode_minus_L: Not really in the search PATH,
8819 # but as the default location of the library.
8820 hardcode_minus_L=yes
8825 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8828 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8831 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8834 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8840 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8843 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8846 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8850 if test "$with_gnu_ld" = no; then
8851 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8852 hardcode_libdir_separator=:
8856 hardcode_libdir_flag_spec_ld='+b $libdir'
8858 hardcode_shlibpath_var=no
8862 export_dynamic_flag_spec='${wl}-E'
8864 # hardcode_minus_L: Not really in the search PATH,
8865 # but as the default location of the library.
8866 hardcode_minus_L=yes
8872 irix5* | irix6* | nonstopux*)
8873 if test "$GCC" = yes; then
8874 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'
8876 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'
8877 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8880 hardcode_libdir_separator=:
8881 link_all_deplibs=yes
8884 netbsd* | netbsdelf*-gnu)
8885 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8886 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8888 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8890 hardcode_libdir_flag_spec='-R$libdir'
8892 hardcode_shlibpath_var=no
8896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8899 hardcode_libdir_separator=:
8900 hardcode_shlibpath_var=no
8904 if test -f /usr/libexec/ld.so; then
8906 hardcode_shlibpath_var=no
8907 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8908 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8909 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8910 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8911 export_dynamic_flag_spec='${wl}-E'
8914 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8915 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8916 hardcode_libdir_flag_spec='-R$libdir'
8919 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8920 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8930 hardcode_libdir_flag_spec='-L$libdir'
8931 hardcode_minus_L=yes
8932 allow_undefined_flag=unsupported
8933 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'
8934 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8938 if test "$GCC" = yes; then
8939 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8940 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'
8942 allow_undefined_flag=' -expect_unresolved \*'
8943 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'
8945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8946 hardcode_libdir_separator=:
8949 osf4* | osf5*) # as osf3* with the addition of -msym flag
8950 if test "$GCC" = yes; then
8951 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8952 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'
8953 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8955 allow_undefined_flag=' -expect_unresolved \*'
8956 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'
8957 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8958 $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'
8960 # Both c and cxx compiler support -rpath directly
8961 hardcode_libdir_flag_spec='-rpath $libdir'
8963 hardcode_libdir_separator=:
8967 no_undefined_flag=' -z text'
8968 if test "$GCC" = yes; then
8970 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8971 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8972 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8975 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8976 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8977 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8979 hardcode_libdir_flag_spec='-R$libdir'
8980 hardcode_shlibpath_var=no
8982 solaris2.[0-5] | solaris2.[0-5].*) ;;
8984 # The compiler driver will combine and reorder linker options,
8985 # but understands `-z linker_flag'. GCC discards it without `$wl',
8986 # but is careful enough not to reorder.
8987 # Supported since Solaris 2.6 (maybe 2.5.1?)
8988 if test "$GCC" = yes; then
8989 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8991 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8995 link_all_deplibs=yes
8999 if test "x$host_vendor" = xsequent; then
9000 # Use $CC to link under sequent, because it throws in some extra .o
9001 # files that make .init and .fini sections work.
9002 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9004 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9006 hardcode_libdir_flag_spec='-L$libdir'
9008 hardcode_minus_L=yes
9009 hardcode_shlibpath_var=no
9013 case $host_vendor in
9015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9016 hardcode_direct=yes # is this really true???
9019 ## LD is ld it makes a PLAMLIB
9020 ## CC just makes a GrossModule.
9021 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9022 reload_cmds='$CC -r -o $output$reload_objs'
9026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9027 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9030 runpath_var='LD_RUN_PATH'
9031 hardcode_shlibpath_var=no
9035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9036 hardcode_shlibpath_var=no
9037 export_dynamic_flag_spec='-Bexport'
9041 if test -d /usr/nec; then
9042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9043 hardcode_shlibpath_var=no
9044 runpath_var=LD_RUN_PATH
9045 hardcode_runpath_var=yes
9050 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9051 no_undefined_flag='${wl}-z,text'
9052 archive_cmds_need_lc=no
9053 hardcode_shlibpath_var=no
9054 runpath_var='LD_RUN_PATH'
9056 if test "$GCC" = yes; then
9057 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9058 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9060 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9061 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9065 sysv5* | sco3.2v5* | sco5v6*)
9066 # Note: We can NOT use -z defs as we might desire, because we do not
9067 # link with -lc, and that would cause any symbols used from libc to
9068 # always be unresolved, which means just about no library would
9069 # ever link correctly. If we're not using GNU ld we use -z text
9070 # though, which does catch some bad symbols but isn't as heavy-handed
9072 no_undefined_flag='${wl}-z,text'
9073 allow_undefined_flag='${wl}-z,nodefs'
9074 archive_cmds_need_lc=no
9075 hardcode_shlibpath_var=no
9076 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9077 hardcode_libdir_separator=':'
9078 link_all_deplibs=yes
9079 export_dynamic_flag_spec='${wl}-Bexport'
9080 runpath_var='LD_RUN_PATH'
9082 if test "$GCC" = yes; then
9083 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9084 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9086 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9087 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9093 hardcode_libdir_flag_spec='-L$libdir'
9094 hardcode_shlibpath_var=no
9103 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9104 echo "${ECHO_T}$ld_shlibs" >&6; }
9105 test "$ld_shlibs" = no && can_build_shared=no
9108 # Do we need to explicitly link libc?
9110 case "x$archive_cmds_need_lc" in
9112 # Assume -lc should be added
9113 archive_cmds_need_lc=yes
9115 if test "$enable_shared" = yes && test "$GCC" = yes; then
9116 case $archive_cmds in
9118 # FIXME: we may have to deal with multi-command sequences.
9121 # Test whether the compiler implicitly links with -lc since on some
9122 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9123 # to ld, don't add -lc before -lgcc.
9124 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9125 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9130 (eval $ac_compile) 2>&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } 2>conftest.err; then
9136 libobjs=conftest.$ac_objext
9138 wl=$lt_prog_compiler_wl
9139 pic_flag=$lt_prog_compiler_pic
9145 lt_save_allow_undefined_flag=$allow_undefined_flag
9146 allow_undefined_flag=
9147 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9148 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); }
9153 archive_cmds_need_lc=no
9155 archive_cmds_need_lc=yes
9157 allow_undefined_flag=$lt_save_allow_undefined_flag
9159 cat conftest.err 1>&5
9162 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9163 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9170 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9171 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9173 libname_spec='lib$name'
9181 shlibpath_overrides_runpath=unknown
9183 dynamic_linker="$host_os ld.so"
9184 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9186 if test "$GCC" = yes; then
9188 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9189 *) lt_awk_arg="/^libraries:/" ;;
9191 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9192 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9193 # if the path contains ";" then we assume it to be the separator
9194 # otherwise default to the standard path separator (i.e. ":") - it is
9195 # assumed that no part of a normal pathname contains ";" but that should
9196 # okay in the real world where ";" in dirpaths is itself problematic.
9197 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9199 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9201 # Ok, now we have the path, separated by spaces, we can step through it
9202 # and add multilib dir if necessary.
9203 lt_tmp_lt_search_path_spec=
9204 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9205 for lt_sys_path in $lt_search_path_spec; do
9206 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9207 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9209 test -d "$lt_sys_path" && \
9210 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9213 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9214 BEGIN {RS=" "; FS="/|\n";} {
9217 for (lt_i = NF; lt_i > 0; lt_i--) {
9218 if ($lt_i != "" && $lt_i != ".") {
9219 if ($lt_i == "..") {
9222 if (lt_count == 0) {
9223 lt_foo="/" $lt_i lt_foo;
9230 if (lt_foo != "") { lt_freq[lt_foo]++; }
9231 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9233 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9235 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9237 need_lib_prefix=unknown
9238 hardcode_into_libs=no
9240 # when you set need_version to no, make sure it does not cause -set_version
9241 # flags to be left without arguments
9242 need_version=unknown
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9248 shlibpath_var=LIBPATH
9250 # AIX 3 has no versioning support, so we append a major version to the name.
9251 soname_spec='${libname}${release}${shared_ext}$major'
9258 hardcode_into_libs=yes
9259 if test "$host_cpu" = ia64; then
9260 # AIX 5 supports IA64
9261 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9262 shlibpath_var=LD_LIBRARY_PATH
9264 # With GCC up to 2.95.x, collect2 would create an import file
9265 # for dependence libraries. The import file would start with
9266 # the line `#! .'. This would cause the generated library to
9267 # depend on `.', always an invalid library. This was fixed in
9268 # development snapshots of GCC prior to 3.0.
9270 aix4 | aix4.[01] | aix4.[01].*)
9271 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9273 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9280 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9281 # soname into executable. Probably we can add versioning support to
9282 # collect2, so additional links can be useful in future.
9283 if test "$aix_use_runtimelinking" = yes; then
9284 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9285 # instead of lib<name>.a to let people know that these are not
9286 # typical AIX shared libraries.
9287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289 # We preserve .a as extension for shared libraries through AIX4.2
9290 # and later when we are not doing run time linking.
9291 library_names_spec='${libname}${release}.a $libname.a'
9292 soname_spec='${libname}${release}${shared_ext}$major'
9294 shlibpath_var=LIBPATH
9299 library_names_spec='$libname.ixlibrary $libname.a'
9300 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9301 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'
9305 library_names_spec='${libname}${shared_ext}'
9306 dynamic_linker="$host_os ld.so"
9307 shlibpath_var=LIBRARY_PATH
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314 soname_spec='${libname}${release}${shared_ext}$major'
9315 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9316 shlibpath_var=LD_LIBRARY_PATH
9317 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9318 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9319 # the default ld.so.conf also contains /usr/contrib/lib and
9320 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9321 # libtool to hard-code these into programs
9324 cygwin* | mingw* | pw32*)
9325 version_type=windows
9330 case $GCC,$host_os in
9331 yes,cygwin* | yes,mingw* | yes,pw32*)
9332 library_names_spec='$libname.dll.a'
9333 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9334 postinstall_cmds='base_file=`basename \${file}`~
9335 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9336 dldir=$destdir/`dirname \$dlpath`~
9337 test -d \$dldir || mkdir -p \$dldir~
9338 $install_prog $dir/$dlname \$dldir/$dlname~
9339 chmod a+x \$dldir/$dlname'
9340 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9341 dlpath=$dir/\$dldll~
9343 shlibpath_overrides_runpath=yes
9347 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9348 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9349 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9352 # MinGW DLLs use traditional 'lib' prefix
9353 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9354 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9355 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9356 # It is most probably a Windows format PATH printed by
9357 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9358 # path with ; separators, and with drive letters. We can handle the
9359 # drive letters (cygwin fileutils understands them), so leave them,
9360 # especially as we might pass files found there to a mingw objdump,
9361 # which wouldn't understand a cygwinified path. Ahh.
9362 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9364 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9368 # pw32 DLLs use 'pw' prefix rather than 'lib'
9369 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9375 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9378 dynamic_linker='Win32 ld.exe'
9379 # FIXME: first we should search . and the directory the executable is in
9383 darwin* | rhapsody*)
9384 dynamic_linker="$host_os dyld"
9388 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9389 soname_spec='${libname}${release}${major}$shared_ext'
9390 shlibpath_overrides_runpath=yes
9391 shlibpath_var=DYLD_LIBRARY_PATH
9392 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9394 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9395 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9403 soname_spec='${libname}${release}${shared_ext}$major'
9404 shlibpath_var=LD_LIBRARY_PATH
9411 freebsd* | dragonfly*)
9412 # DragonFly does not have aout. When/if they implement a new
9413 # versioning mechanism, adjust this.
9414 if test -x /usr/bin/objformat; then
9415 objformat=`/usr/bin/objformat`
9418 freebsd[123]*) objformat=aout ;;
9422 version_type=freebsd-$objformat
9423 case $version_type in
9425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9434 shlibpath_var=LD_LIBRARY_PATH
9437 shlibpath_overrides_runpath=yes
9439 freebsd3.[01]* | freebsdelf3.[01]*)
9440 shlibpath_overrides_runpath=yes
9441 hardcode_into_libs=yes
9443 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9444 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9445 shlibpath_overrides_runpath=no
9446 hardcode_into_libs=yes
9448 *) # from 4.6 on, and DragonFly
9449 shlibpath_overrides_runpath=yes
9450 hardcode_into_libs=yes
9459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9460 soname_spec='${libname}${release}${shared_ext}$major'
9461 shlibpath_var=LD_LIBRARY_PATH
9462 hardcode_into_libs=yes
9465 hpux9* | hpux10* | hpux11*)
9466 # Give a soname corresponding to the major version so that dld.sl refuses to
9467 # link against other versions.
9474 hardcode_into_libs=yes
9475 dynamic_linker="$host_os dld.so"
9476 shlibpath_var=LD_LIBRARY_PATH
9477 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9479 soname_spec='${libname}${release}${shared_ext}$major'
9480 if test "X$HPUX_IA64_MODE" = X32; then
9481 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9483 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9485 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9489 hardcode_into_libs=yes
9490 dynamic_linker="$host_os dld.sl"
9491 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9492 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494 soname_spec='${libname}${release}${shared_ext}$major'
9495 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9496 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9500 dynamic_linker="$host_os dld.sl"
9501 shlibpath_var=SHLIB_PATH
9502 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504 soname_spec='${libname}${release}${shared_ext}$major'
9507 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9508 postinstall_cmds='chmod 555 $lib'
9515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9516 soname_spec='${libname}${release}${shared_ext}$major'
9517 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9518 shlibpath_var=LD_LIBRARY_PATH
9519 shlibpath_overrides_runpath=no
9520 hardcode_into_libs=yes
9523 irix5* | irix6* | nonstopux*)
9525 nonstopux*) version_type=nonstopux ;;
9527 if test "$lt_cv_prog_gnu_ld" = yes; then
9535 soname_spec='${libname}${release}${shared_ext}$major'
9536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9538 irix5* | nonstopux*)
9542 case $LD in # libtool.m4 will add one of these switches to LD
9543 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9544 libsuff= shlibsuff= libmagic=32-bit;;
9545 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9546 libsuff=32 shlibsuff=N32 libmagic=N32;;
9547 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9548 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9549 *) libsuff= shlibsuff= libmagic=never-match;;
9553 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9554 shlibpath_overrides_runpath=no
9555 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9556 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9557 hardcode_into_libs=yes
9560 # No shared lib support for Linux oldld, aout, or coff.
9561 linux*oldld* | linux*aout* | linux*coff*)
9565 # This must be Linux ELF.
9566 linux* | k*bsd*-gnu)
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571 soname_spec='${libname}${release}${shared_ext}$major'
9572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9573 shlibpath_var=LD_LIBRARY_PATH
9574 shlibpath_overrides_runpath=no
9575 # This implies no fast_install, which is unacceptable.
9576 # Some rework will be needed to allow for fast_install
9577 # before this can be enabled.
9578 hardcode_into_libs=yes
9580 # Append ld.so.conf contents to the search path
9581 if test -f /etc/ld.so.conf; then
9582 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9583 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9586 # We used to test for /lib/ld.so.1 and disable shared libraries on
9587 # powerpc, because MkLinux only supported shared libraries with the
9588 # GNU dynamic linker. Since this was broken with cross compilers,
9589 # most powerpc-linux boxes support dynamic linking these days and
9590 # people can always --disable-shared, the test was removed, and we
9591 # assume the GNU/Linux dynamic linker is in use.
9592 dynamic_linker='GNU/Linux ld.so'
9599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9600 soname_spec='${libname}${release}${shared_ext}$major'
9601 shlibpath_var=LD_LIBRARY_PATH
9602 shlibpath_overrides_runpath=no
9603 hardcode_into_libs=yes
9604 dynamic_linker='NetBSD ld.elf_so'
9611 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9614 dynamic_linker='NetBSD (a.out) ld.so'
9616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9617 soname_spec='${libname}${release}${shared_ext}$major'
9618 dynamic_linker='NetBSD ld.elf_so'
9620 shlibpath_var=LD_LIBRARY_PATH
9621 shlibpath_overrides_runpath=yes
9622 hardcode_into_libs=yes
9627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9628 shlibpath_var=LD_LIBRARY_PATH
9629 shlibpath_overrides_runpath=yes
9636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9637 soname_spec='${libname}${release}${shared_ext}$major'
9638 shlibpath_var=LD_LIBRARY_PATH
9639 shlibpath_overrides_runpath=yes
9644 sys_lib_dlsearch_path_spec="/usr/lib"
9646 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9648 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9649 *) need_version=no ;;
9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9653 shlibpath_var=LD_LIBRARY_PATH
9654 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9656 openbsd2.[89] | openbsd2.[89].*)
9657 shlibpath_overrides_runpath=no
9660 shlibpath_overrides_runpath=yes
9664 shlibpath_overrides_runpath=yes
9669 libname_spec='$name'
9672 library_names_spec='$libname${shared_ext} $libname.a'
9673 dynamic_linker='OS/2 ld.exe'
9674 shlibpath_var=LIBPATH
9677 osf3* | osf4* | osf5*)
9681 soname_spec='${libname}${release}${shared_ext}$major'
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683 shlibpath_var=LD_LIBRARY_PATH
9684 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9685 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9697 soname_spec='${libname}${release}${shared_ext}$major'
9698 shlibpath_var=LD_LIBRARY_PATH
9699 shlibpath_overrides_runpath=yes
9700 hardcode_into_libs=yes
9701 # ldd complains unless libraries are executable
9702 postinstall_cmds='chmod +x $lib'
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9708 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9709 shlibpath_var=LD_LIBRARY_PATH
9710 shlibpath_overrides_runpath=yes
9711 if test "$with_gnu_ld" = yes; then
9719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9720 soname_spec='${libname}${release}${shared_ext}$major'
9721 shlibpath_var=LD_LIBRARY_PATH
9722 case $host_vendor in
9724 shlibpath_overrides_runpath=no
9726 export_dynamic_flag_spec='${wl}-Blargedynsym'
9727 runpath_var=LD_RUN_PATH
9735 shlibpath_overrides_runpath=no
9736 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9742 if test -d /usr/nec ;then
9744 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9745 soname_spec='$libname${shared_ext}.$major'
9746 shlibpath_var=LD_LIBRARY_PATH
9750 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9751 version_type=freebsd-elf
9754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9755 soname_spec='${libname}${release}${shared_ext}$major'
9756 shlibpath_var=LD_LIBRARY_PATH
9757 hardcode_into_libs=yes
9758 if test "$with_gnu_ld" = yes; then
9759 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9760 shlibpath_overrides_runpath=no
9762 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9763 shlibpath_overrides_runpath=yes
9766 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9770 sys_lib_dlsearch_path_spec='/usr/lib'
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9776 soname_spec='${libname}${release}${shared_ext}$major'
9777 shlibpath_var=LD_LIBRARY_PATH
9784 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9785 echo "${ECHO_T}$dynamic_linker" >&6; }
9786 test "$dynamic_linker" = no && can_build_shared=no
9788 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9789 echo $ECHO_N "(cached) $ECHO_C" >&6
9791 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9794 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9795 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9801 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9804 if test "$GCC" = yes; then
9805 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9808 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9809 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9811 if test -n "$hardcode_libdir_flag_spec" || \
9812 test -n "$runpath_var" || \
9813 test "X$hardcode_automatic" = "Xyes" ; then
9815 # We can hardcode non-existant directories.
9816 if test "$hardcode_direct" != no &&
9817 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9818 # have to relink, otherwise we might link with an installed library
9819 # when we should be linking with a yet-to-be-installed one
9820 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9821 test "$hardcode_minus_L" != no; then
9822 # Linking always hardcodes the temporary library directory.
9823 hardcode_action=relink
9825 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9826 hardcode_action=immediate
9829 # We cannot hardcode anything, or else we can only hardcode existing
9831 hardcode_action=unsupported
9833 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9834 echo "${ECHO_T}$hardcode_action" >&6; }
9836 if test "$hardcode_action" = relink; then
9837 # Fast installation is not supported
9838 enable_fast_install=no
9839 elif test "$shlibpath_overrides_runpath" = yes ||
9840 test "$enable_shared" = no; then
9841 # Fast installation is not necessary
9842 enable_fast_install=needless
9847 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9848 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9849 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9850 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9851 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9852 { echo "$as_me:$LINENO: result: yes" >&5
9853 echo "${ECHO_T}yes" >&6; }
9855 # FIXME - insert some real tests, host_os isn't really good enough
9858 if test -n "$STRIP" ; then
9859 striplib="$STRIP -x"
9860 old_striplib="$STRIP -S"
9861 { echo "$as_me:$LINENO: result: yes" >&5
9862 echo "${ECHO_T}yes" >&6; }
9864 { echo "$as_me:$LINENO: result: no" >&5
9865 echo "${ECHO_T}no" >&6; }
9869 { echo "$as_me:$LINENO: result: no" >&5
9870 echo "${ECHO_T}no" >&6; }
9875 if test "x$enable_dlopen" != xyes; then
9876 enable_dlopen=unknown
9877 enable_dlopen_self=unknown
9878 enable_dlopen_self_static=unknown
9885 lt_cv_dlopen="load_add_on"
9887 lt_cv_dlopen_self=yes
9891 lt_cv_dlopen="LoadLibrary"
9896 lt_cv_dlopen="dlopen"
9901 # if libdl is installed we need to link against it
9902 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9903 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9904 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 ac_check_lib_save_LIBS=$LIBS
9909 cat >conftest.$ac_ext <<_ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h. */
9916 /* Override any GCC internal prototype to avoid an error.
9917 Use char because int might match the return type of a GCC
9918 builtin and then its argument prototype would still apply. */
9931 rm -f conftest.$ac_objext conftest$ac_exeext
9932 if { (ac_try="$ac_link"
9934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935 *) ac_try_echo=$ac_try;;
9937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938 (eval "$ac_link") 2>conftest.er1
9940 grep -v '^ *+' conftest.er1 >conftest.err
9942 cat conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } && {
9945 test -z "$ac_c_werror_flag" ||
9946 test ! -s conftest.err
9947 } && test -s conftest$ac_exeext &&
9948 $as_test_x conftest$ac_exeext; then
9949 ac_cv_lib_dl_dlopen=yes
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9954 ac_cv_lib_dl_dlopen=no
9957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9958 conftest$ac_exeext conftest.$ac_ext
9959 LIBS=$ac_check_lib_save_LIBS
9961 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9962 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9963 if test $ac_cv_lib_dl_dlopen = yes; then
9964 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9969 lt_cv_dlopen_self=yes
9976 { echo "$as_me:$LINENO: checking for shl_load" >&5
9977 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9978 if test "${ac_cv_func_shl_load+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 cat >conftest.$ac_ext <<_ACEOF
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h. */
9987 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9989 #define shl_load innocuous_shl_load
9991 /* System header to define __stub macros and hopefully few prototypes,
9992 which can conflict with char shl_load (); below.
9993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9994 <limits.h> exists even on freestanding compilers. */
9997 # include <limits.h>
9999 # include <assert.h>
10004 /* Override any GCC internal prototype to avoid an error.
10005 Use char because int might match the return type of a GCC
10006 builtin and then its argument prototype would still apply. */
10011 /* The GNU C library defines this for functions which it implements
10012 to always fail with ENOSYS. Some functions are actually named
10013 something starting with __ and the normal name is an alias. */
10014 #if defined __stub_shl_load || defined __stub___shl_load
10021 return shl_load ();
10026 rm -f conftest.$ac_objext conftest$ac_exeext
10027 if { (ac_try="$ac_link"
10028 case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_link") 2>conftest.er1
10035 grep -v '^ *+' conftest.er1 >conftest.err
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } && {
10040 test -z "$ac_c_werror_flag" ||
10041 test ! -s conftest.err
10042 } && test -s conftest$ac_exeext &&
10043 $as_test_x conftest$ac_exeext; then
10044 ac_cv_func_shl_load=yes
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10049 ac_cv_func_shl_load=no
10052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10053 conftest$ac_exeext conftest.$ac_ext
10055 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10056 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10057 if test $ac_cv_func_shl_load = yes; then
10058 lt_cv_dlopen="shl_load"
10060 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10061 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10062 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 ac_check_lib_save_LIBS=$LIBS
10067 cat >conftest.$ac_ext <<_ACEOF
10070 cat confdefs.h >>conftest.$ac_ext
10071 cat >>conftest.$ac_ext <<_ACEOF
10072 /* end confdefs.h. */
10074 /* Override any GCC internal prototype to avoid an error.
10075 Use char because int might match the return type of a GCC
10076 builtin and then its argument prototype would still apply. */
10084 return shl_load ();
10089 rm -f conftest.$ac_objext conftest$ac_exeext
10090 if { (ac_try="$ac_link"
10091 case "(($ac_try" in
10092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10093 *) ac_try_echo=$ac_try;;
10095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10096 (eval "$ac_link") 2>conftest.er1
10098 grep -v '^ *+' conftest.er1 >conftest.err
10100 cat conftest.err >&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } && {
10103 test -z "$ac_c_werror_flag" ||
10104 test ! -s conftest.err
10105 } && test -s conftest$ac_exeext &&
10106 $as_test_x conftest$ac_exeext; then
10107 ac_cv_lib_dld_shl_load=yes
10109 echo "$as_me: failed program was:" >&5
10110 sed 's/^/| /' conftest.$ac_ext >&5
10112 ac_cv_lib_dld_shl_load=no
10115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10116 conftest$ac_exeext conftest.$ac_ext
10117 LIBS=$ac_check_lib_save_LIBS
10119 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10120 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10121 if test $ac_cv_lib_dld_shl_load = yes; then
10122 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10124 { echo "$as_me:$LINENO: checking for dlopen" >&5
10125 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10126 if test "${ac_cv_func_dlopen+set}" = set; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10129 cat >conftest.$ac_ext <<_ACEOF
10132 cat confdefs.h >>conftest.$ac_ext
10133 cat >>conftest.$ac_ext <<_ACEOF
10134 /* end confdefs.h. */
10135 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10137 #define dlopen innocuous_dlopen
10139 /* System header to define __stub macros and hopefully few prototypes,
10140 which can conflict with char dlopen (); below.
10141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10142 <limits.h> exists even on freestanding compilers. */
10145 # include <limits.h>
10147 # include <assert.h>
10152 /* Override any GCC internal prototype to avoid an error.
10153 Use char because int might match the return type of a GCC
10154 builtin and then its argument prototype would still apply. */
10159 /* The GNU C library defines this for functions which it implements
10160 to always fail with ENOSYS. Some functions are actually named
10161 something starting with __ and the normal name is an alias. */
10162 #if defined __stub_dlopen || defined __stub___dlopen
10174 rm -f conftest.$ac_objext conftest$ac_exeext
10175 if { (ac_try="$ac_link"
10176 case "(($ac_try" in
10177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10178 *) ac_try_echo=$ac_try;;
10180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10181 (eval "$ac_link") 2>conftest.er1
10183 grep -v '^ *+' conftest.er1 >conftest.err
10185 cat conftest.err >&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } && {
10188 test -z "$ac_c_werror_flag" ||
10189 test ! -s conftest.err
10190 } && test -s conftest$ac_exeext &&
10191 $as_test_x conftest$ac_exeext; then
10192 ac_cv_func_dlopen=yes
10194 echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10197 ac_cv_func_dlopen=no
10200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10201 conftest$ac_exeext conftest.$ac_ext
10203 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10204 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10205 if test $ac_cv_func_dlopen = yes; then
10206 lt_cv_dlopen="dlopen"
10208 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10209 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10210 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
10213 ac_check_lib_save_LIBS=$LIBS
10215 cat >conftest.$ac_ext <<_ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h. */
10222 /* Override any GCC internal prototype to avoid an error.
10223 Use char because int might match the return type of a GCC
10224 builtin and then its argument prototype would still apply. */
10237 rm -f conftest.$ac_objext conftest$ac_exeext
10238 if { (ac_try="$ac_link"
10239 case "(($ac_try" in
10240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241 *) ac_try_echo=$ac_try;;
10243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10244 (eval "$ac_link") 2>conftest.er1
10246 grep -v '^ *+' conftest.er1 >conftest.err
10248 cat conftest.err >&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } && {
10251 test -z "$ac_c_werror_flag" ||
10252 test ! -s conftest.err
10253 } && test -s conftest$ac_exeext &&
10254 $as_test_x conftest$ac_exeext; then
10255 ac_cv_lib_dl_dlopen=yes
10257 echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10260 ac_cv_lib_dl_dlopen=no
10263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10264 conftest$ac_exeext conftest.$ac_ext
10265 LIBS=$ac_check_lib_save_LIBS
10267 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10268 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10269 if test $ac_cv_lib_dl_dlopen = yes; then
10270 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10272 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10273 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10274 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10277 ac_check_lib_save_LIBS=$LIBS
10278 LIBS="-lsvld $LIBS"
10279 cat >conftest.$ac_ext <<_ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h. */
10286 /* Override any GCC internal prototype to avoid an error.
10287 Use char because int might match the return type of a GCC
10288 builtin and then its argument prototype would still apply. */
10301 rm -f conftest.$ac_objext conftest$ac_exeext
10302 if { (ac_try="$ac_link"
10303 case "(($ac_try" in
10304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10305 *) ac_try_echo=$ac_try;;
10307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10308 (eval "$ac_link") 2>conftest.er1
10310 grep -v '^ *+' conftest.er1 >conftest.err
10312 cat conftest.err >&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } && {
10315 test -z "$ac_c_werror_flag" ||
10316 test ! -s conftest.err
10317 } && test -s conftest$ac_exeext &&
10318 $as_test_x conftest$ac_exeext; then
10319 ac_cv_lib_svld_dlopen=yes
10321 echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10324 ac_cv_lib_svld_dlopen=no
10327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10328 conftest$ac_exeext conftest.$ac_ext
10329 LIBS=$ac_check_lib_save_LIBS
10331 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10332 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10333 if test $ac_cv_lib_svld_dlopen = yes; then
10334 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10336 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10337 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10338 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 ac_check_lib_save_LIBS=$LIBS
10343 cat >conftest.$ac_ext <<_ACEOF
10346 cat confdefs.h >>conftest.$ac_ext
10347 cat >>conftest.$ac_ext <<_ACEOF
10348 /* end confdefs.h. */
10350 /* Override any GCC internal prototype to avoid an error.
10351 Use char because int might match the return type of a GCC
10352 builtin and then its argument prototype would still apply. */
10360 return dld_link ();
10365 rm -f conftest.$ac_objext conftest$ac_exeext
10366 if { (ac_try="$ac_link"
10367 case "(($ac_try" in
10368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10369 *) ac_try_echo=$ac_try;;
10371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10372 (eval "$ac_link") 2>conftest.er1
10374 grep -v '^ *+' conftest.er1 >conftest.err
10376 cat conftest.err >&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); } && {
10379 test -z "$ac_c_werror_flag" ||
10380 test ! -s conftest.err
10381 } && test -s conftest$ac_exeext &&
10382 $as_test_x conftest$ac_exeext; then
10383 ac_cv_lib_dld_dld_link=yes
10385 echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10388 ac_cv_lib_dld_dld_link=no
10391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10392 conftest$ac_exeext conftest.$ac_ext
10393 LIBS=$ac_check_lib_save_LIBS
10395 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10396 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10397 if test $ac_cv_lib_dld_dld_link = yes; then
10398 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10419 if test "x$lt_cv_dlopen" != xno; then
10425 case $lt_cv_dlopen in
10427 save_CPPFLAGS="$CPPFLAGS"
10428 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10430 save_LDFLAGS="$LDFLAGS"
10431 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10434 LIBS="$lt_cv_dlopen_libs $LIBS"
10436 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10437 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10438 if test "${lt_cv_dlopen_self+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 if test "$cross_compiling" = yes; then :
10442 lt_cv_dlopen_self=cross
10444 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10445 lt_status=$lt_dlunknown
10446 cat > conftest.$ac_ext <<EOF
10447 #line 10447 "configure"
10448 #include "confdefs.h"
10457 # define LT_DLGLOBAL RTLD_GLOBAL
10460 # define LT_DLGLOBAL DL_GLOBAL
10462 # define LT_DLGLOBAL 0
10466 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10467 find out it does not work in some platform. */
10468 #ifndef LT_DLLAZY_OR_NOW
10470 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10473 # define LT_DLLAZY_OR_NOW DL_LAZY
10476 # define LT_DLLAZY_OR_NOW RTLD_NOW
10479 # define LT_DLLAZY_OR_NOW DL_NOW
10481 # define LT_DLLAZY_OR_NOW 0
10489 extern "C" void exit (int);
10492 void fnord() { int i=42;}
10495 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10496 int status = $lt_dlunknown;
10500 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10501 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10502 /* dlclose (self); */
10510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10511 (eval $ac_link) 2>&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10515 (./conftest; exit; ) >&5 2>/dev/null
10517 case x$lt_status in
10518 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10519 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10520 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10523 # compilation failed
10524 lt_cv_dlopen_self=no
10531 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10532 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10534 if test "x$lt_cv_dlopen_self" = xyes; then
10535 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10536 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10537 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10538 if test "${lt_cv_dlopen_self_static+set}" = set; then
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 if test "$cross_compiling" = yes; then :
10542 lt_cv_dlopen_self_static=cross
10544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10545 lt_status=$lt_dlunknown
10546 cat > conftest.$ac_ext <<EOF
10547 #line 10547 "configure"
10548 #include "confdefs.h"
10557 # define LT_DLGLOBAL RTLD_GLOBAL
10560 # define LT_DLGLOBAL DL_GLOBAL
10562 # define LT_DLGLOBAL 0
10566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10567 find out it does not work in some platform. */
10568 #ifndef LT_DLLAZY_OR_NOW
10570 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10573 # define LT_DLLAZY_OR_NOW DL_LAZY
10576 # define LT_DLLAZY_OR_NOW RTLD_NOW
10579 # define LT_DLLAZY_OR_NOW DL_NOW
10581 # define LT_DLLAZY_OR_NOW 0
10589 extern "C" void exit (int);
10592 void fnord() { int i=42;}
10595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10596 int status = $lt_dlunknown;
10600 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10601 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10602 /* dlclose (self); */
10610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10611 (eval $ac_link) 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10615 (./conftest; exit; ) >&5 2>/dev/null
10617 case x$lt_status in
10618 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10619 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10620 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10623 # compilation failed
10624 lt_cv_dlopen_self_static=no
10631 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10632 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10635 CPPFLAGS="$save_CPPFLAGS"
10636 LDFLAGS="$save_LDFLAGS"
10641 case $lt_cv_dlopen_self in
10642 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10643 *) enable_dlopen_self=unknown ;;
10646 case $lt_cv_dlopen_self_static in
10647 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10648 *) enable_dlopen_self_static=unknown ;;
10653 # Report which library types will actually be built
10654 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10655 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10656 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10657 echo "${ECHO_T}$can_build_shared" >&6; }
10659 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10660 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10661 test "$can_build_shared" = "no" && enable_shared=no
10663 # On AIX, shared libraries and static libraries use the same namespace, and
10664 # are all built from PIC.
10667 test "$enable_shared" = yes && enable_static=no
10668 if test -n "$RANLIB"; then
10669 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10670 postinstall_cmds='$RANLIB $lib'
10675 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10676 test "$enable_shared" = yes && enable_static=no
10680 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10681 echo "${ECHO_T}$enable_shared" >&6; }
10683 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10684 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10685 # Make sure either enable_shared or enable_static is yes.
10686 test "$enable_shared" = yes || enable_static=yes
10687 { echo "$as_me:$LINENO: result: $enable_static" >&5
10688 echo "${ECHO_T}$enable_static" >&6; }
10690 # The else clause should only fire when bootstrapping the
10691 # libtool distribution, otherwise you forgot to ship ltmain.sh
10692 # with your package, and you will get complaints that there are
10693 # no rules to generate ltmain.sh.
10694 if test -f "$ltmain"; then
10695 # See if we are running on zsh, and set the options which allow our commands through
10696 # without removal of \ escapes.
10697 if test -n "${ZSH_VERSION+set}" ; then
10698 setopt NO_GLOB_SUBST
10700 # Now quote all the things that may contain metacharacters while being
10701 # careful not to overquote the AC_SUBSTed values. We take copies of the
10702 # variables and quote the copies for generation of the libtool script.
10703 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10705 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10706 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10707 deplibs_check_method reload_flag reload_cmds need_locks \
10708 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10709 lt_cv_sys_global_symbol_to_c_name_address \
10710 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10711 old_postinstall_cmds old_postuninstall_cmds \
10715 lt_prog_compiler_wl \
10716 lt_prog_compiler_pic \
10717 lt_prog_compiler_static \
10718 lt_prog_compiler_no_builtin_flag \
10719 export_dynamic_flag_spec \
10720 thread_safe_flag_spec \
10721 whole_archive_flag_spec \
10722 enable_shared_with_static_runtimes \
10724 old_archive_from_new_cmds \
10729 compiler_lib_search_path \
10730 compiler_lib_search_dirs \
10732 archive_expsym_cmds \
10734 postuninstall_cmds \
10735 old_archive_from_expsyms_cmds \
10736 allow_undefined_flag \
10737 no_undefined_flag \
10738 export_symbols_cmds \
10739 hardcode_libdir_flag_spec \
10740 hardcode_libdir_flag_spec_ld \
10741 hardcode_libdir_separator \
10742 hardcode_automatic \
10744 module_expsym_cmds \
10745 lt_cv_prog_compiler_c_o \
10748 include_expsyms; do
10751 old_archive_cmds | \
10752 old_archive_from_new_cmds | \
10754 archive_expsym_cmds | \
10756 module_expsym_cmds | \
10757 old_archive_from_expsyms_cmds | \
10758 export_symbols_cmds | \
10759 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10760 postinstall_cmds | postuninstall_cmds | \
10761 old_postinstall_cmds | old_postuninstall_cmds | \
10762 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10763 # Double-quote double-evaled strings.
10764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10767 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10773 *'\$0 --fallback-echo"')
10774 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10778 cfgfile="${ofile}T"
10779 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10781 { echo "$as_me:$LINENO: creating $ofile" >&5
10782 echo "$as_me: creating $ofile" >&6;}
10784 cat <<__EOF__ >> "$cfgfile"
10787 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10788 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10789 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10791 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10792 # Free Software Foundation, Inc.
10794 # This file is part of GNU Libtool:
10795 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10797 # This program is free software; you can redistribute it and/or modify
10798 # it under the terms of the GNU General Public License as published by
10799 # the Free Software Foundation; either version 2 of the License, or
10800 # (at your option) any later version.
10802 # This program is distributed in the hope that it will be useful, but
10803 # WITHOUT ANY WARRANTY; without even the implied warranty of
10804 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10805 # General Public License for more details.
10807 # You should have received a copy of the GNU General Public License
10808 # along with this program; if not, write to the Free Software
10809 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10811 # As a special exception to the GNU General Public License, if you
10812 # distribute this file as part of a program that contains a
10813 # configuration script generated by Autoconf, you may include it under
10814 # the same distribution terms that you use for the rest of that program.
10816 # A sed program that does not truncate output.
10819 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10820 Xsed="$SED -e 1s/^X//"
10822 # The HP-UX ksh and POSIX shell print the target directory to stdout
10823 # if CDPATH is set.
10824 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10826 # The names of the tagged configurations supported by this script.
10829 # ### BEGIN LIBTOOL CONFIG
10831 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10833 # Shell to use when invoking shell scripts.
10836 # Whether or not to build shared libraries.
10837 build_libtool_libs=$enable_shared
10839 # Whether or not to build static libraries.
10840 build_old_libs=$enable_static
10842 # Whether or not to add -lc for building shared libraries.
10843 build_libtool_need_lc=$archive_cmds_need_lc
10845 # Whether or not to disallow shared libs when runtime libs are static
10846 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10848 # Whether or not to optimize for fast installation.
10849 fast_install=$enable_fast_install
10852 host_alias=$host_alias
10856 # The build system.
10857 build_alias=$build_alias
10861 # An echo program that does not interpret backslashes.
10866 AR_FLAGS=$lt_AR_FLAGS
10871 # LTCC compiler flags.
10872 LTCFLAGS=$lt_LTCFLAGS
10874 # A language-specific compiler.
10877 # Is the compiler the GNU C compiler?
10883 # The linker used to build libraries.
10886 # Whether we need hard or soft links.
10889 # A BSD-compatible nm program.
10892 # A symbol stripping program
10895 # Used to examine libraries when file_magic_cmd begins "file"
10896 MAGIC_CMD=$MAGIC_CMD
10898 # Used on cygwin: DLL creation program.
10901 # Used on cygwin: object dumper.
10904 # Used on cygwin: assembler.
10907 # The name of the directory that contains temporary libtool files.
10910 # How to create reloadable object files.
10911 reload_flag=$lt_reload_flag
10912 reload_cmds=$lt_reload_cmds
10914 # How to pass a linker flag through the compiler.
10915 wl=$lt_lt_prog_compiler_wl
10917 # Object file suffix (normally "o").
10918 objext="$ac_objext"
10920 # Old archive suffix (normally "a").
10923 # Shared library suffix (normally ".so").
10924 shrext_cmds='$shrext_cmds'
10926 # Executable file suffix (normally "").
10929 # Additional compiler flags for building library objects.
10930 pic_flag=$lt_lt_prog_compiler_pic
10933 # What is the maximum length of a command?
10934 max_cmd_len=$lt_cv_sys_max_cmd_len
10936 # Does compiler simultaneously support -c and -o options?
10937 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10939 # Must we lock files when doing compilation?
10940 need_locks=$lt_need_locks
10942 # Do we need the lib prefix for modules?
10943 need_lib_prefix=$need_lib_prefix
10945 # Do we need a version for libraries?
10946 need_version=$need_version
10948 # Whether dlopen is supported.
10949 dlopen_support=$enable_dlopen
10951 # Whether dlopen of programs is supported.
10952 dlopen_self=$enable_dlopen_self
10954 # Whether dlopen of statically linked programs is supported.
10955 dlopen_self_static=$enable_dlopen_self_static
10957 # Compiler flag to prevent dynamic linking.
10958 link_static_flag=$lt_lt_prog_compiler_static
10960 # Compiler flag to turn off builtin functions.
10961 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10963 # Compiler flag to allow reflexive dlopens.
10964 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10966 # Compiler flag to generate shared objects directly from archives.
10967 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10969 # Compiler flag to generate thread-safe objects.
10970 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10972 # Library versioning type.
10973 version_type=$version_type
10975 # Format of library name prefix.
10976 libname_spec=$lt_libname_spec
10978 # List of archive names. First name is the real one, the rest are links.
10979 # The last name is the one that the linker finds with -lNAME.
10980 library_names_spec=$lt_library_names_spec
10982 # The coded name of the library, if different from the real name.
10983 soname_spec=$lt_soname_spec
10985 # Commands used to build and install an old-style archive.
10987 old_archive_cmds=$lt_old_archive_cmds
10988 old_postinstall_cmds=$lt_old_postinstall_cmds
10989 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10991 # Create an old-style archive from a shared archive.
10992 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10994 # Create a temporary old-style archive to link instead of a shared archive.
10995 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10997 # Commands used to build and install a shared archive.
10998 archive_cmds=$lt_archive_cmds
10999 archive_expsym_cmds=$lt_archive_expsym_cmds
11000 postinstall_cmds=$lt_postinstall_cmds
11001 postuninstall_cmds=$lt_postuninstall_cmds
11003 # Commands used to build a loadable module (assumed same as above if empty)
11004 module_cmds=$lt_module_cmds
11005 module_expsym_cmds=$lt_module_expsym_cmds
11007 # Commands to strip libraries.
11008 old_striplib=$lt_old_striplib
11009 striplib=$lt_striplib
11011 # Dependencies to place before the objects being linked to create a
11013 predep_objects=$lt_predep_objects
11015 # Dependencies to place after the objects being linked to create a
11017 postdep_objects=$lt_postdep_objects
11019 # Dependencies to place before the objects being linked to create a
11021 predeps=$lt_predeps
11023 # Dependencies to place after the objects being linked to create a
11025 postdeps=$lt_postdeps
11027 # The directories searched by this compiler when creating a shared
11029 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11031 # The library search path used internally by the compiler when linking
11032 # a shared library.
11033 compiler_lib_search_path=$lt_compiler_lib_search_path
11035 # Method to check whether dependent libraries are shared objects.
11036 deplibs_check_method=$lt_deplibs_check_method
11038 # Command to use when deplibs_check_method == file_magic.
11039 file_magic_cmd=$lt_file_magic_cmd
11041 # Flag that allows shared libraries with undefined symbols to be built.
11042 allow_undefined_flag=$lt_allow_undefined_flag
11044 # Flag that forces no undefined symbols.
11045 no_undefined_flag=$lt_no_undefined_flag
11047 # Commands used to finish a libtool library installation in a directory.
11048 finish_cmds=$lt_finish_cmds
11050 # Same as above, but a single script fragment to be evaled but not shown.
11051 finish_eval=$lt_finish_eval
11053 # Take the output of nm and produce a listing of raw symbols and C names.
11054 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11056 # Transform the output of nm in a proper C declaration
11057 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11059 # Transform the output of nm in a C name address pair
11060 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11062 # This is the shared library runtime path variable.
11063 runpath_var=$runpath_var
11065 # This is the shared library path variable.
11066 shlibpath_var=$shlibpath_var
11068 # Is shlibpath searched before the hard-coded library search path?
11069 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11071 # How to hardcode a shared library path into an executable.
11072 hardcode_action=$hardcode_action
11074 # Whether we should hardcode library paths into libraries.
11075 hardcode_into_libs=$hardcode_into_libs
11077 # Flag to hardcode \$libdir into a binary during linking.
11078 # This must work even if \$libdir does not exist.
11079 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11081 # If ld is used when linking, flag to hardcode \$libdir into
11082 # a binary during linking. This must work even if \$libdir does
11084 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11086 # Whether we need a single -rpath flag with a separated argument.
11087 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11089 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11090 # resulting binary.
11091 hardcode_direct=$hardcode_direct
11093 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11094 # resulting binary.
11095 hardcode_minus_L=$hardcode_minus_L
11097 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11098 # the resulting binary.
11099 hardcode_shlibpath_var=$hardcode_shlibpath_var
11101 # Set to yes if building a shared library automatically hardcodes DIR into the library
11102 # and all subsequent libraries and executables linked against it.
11103 hardcode_automatic=$hardcode_automatic
11105 # Variables whose values should be saved in libtool wrapper scripts and
11106 # restored at relink time.
11107 variables_saved_for_relink="$variables_saved_for_relink"
11109 # Whether libtool must link a program against all its dependency libraries.
11110 link_all_deplibs=$link_all_deplibs
11112 # Compile-time system search path for libraries
11113 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11115 # Run-time system search path for libraries
11116 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11118 # Fix the shell variable \$srcfile for the compiler.
11119 fix_srcfile_path=$lt_fix_srcfile_path
11121 # Set to yes if exported symbols are required.
11122 always_export_symbols=$always_export_symbols
11124 # The commands to list exported symbols.
11125 export_symbols_cmds=$lt_export_symbols_cmds
11127 # The commands to extract the exported symbol list from a shared archive.
11128 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11130 # Symbols that should not be listed in the preloaded symbols.
11131 exclude_expsyms=$lt_exclude_expsyms
11133 # Symbols that must always be exported.
11134 include_expsyms=$lt_include_expsyms
11136 # ### END LIBTOOL CONFIG
11143 cat <<\EOF >> "$cfgfile"
11145 # AIX sometimes has problems with the GCC collect2 program. For some
11146 # reason, if we set the COLLECT_NAMES environment variable, the problems
11147 # vanish in a puff of smoke.
11148 if test "X${COLLECT_NAMES+set}" != Xset; then
11150 export COLLECT_NAMES
11156 # We use sed instead of cat because bash on DJGPP gets confused if
11157 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11158 # text mode, it properly converts lines to CR/LF. This bash problem
11159 # is reportedly fixed, but why not run on old versions too?
11160 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11162 mv -f "$cfgfile" "$ofile" || \
11163 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11167 # If there is no Makefile yet, we rely on a make rule to execute
11168 # `config.status --recheck' to rerun these tests and create the
11169 # libtool script then.
11170 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11171 if test -f "$ltmain_in"; then
11172 test -f Makefile && make "$ltmain"
11178 ac_cpp='$CPP $CPPFLAGS'
11179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11186 # Check whether --with-tags was given.
11187 if test "${with_tags+set}" = set; then
11188 withval=$with_tags; tagnames="$withval"
11192 if test -f "$ltmain" && test -n "$tagnames"; then
11193 if test ! -f "${ofile}"; then
11194 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11195 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11198 if test -z "$LTCC"; then
11199 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11200 if test -z "$LTCC"; then
11201 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11202 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11204 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11205 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11208 if test -z "$LTCFLAGS"; then
11209 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11212 # Extract list of available tagged configurations in $ofile.
11213 # Note that this assumes the entire list is on one line.
11214 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11216 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11217 for tagname in $tagnames; do
11219 # Check whether tagname contains only valid characters
11220 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11222 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11223 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11224 { (exit 1); exit 1; }; }
11228 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11230 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11231 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11232 { (exit 1); exit 1; }; }
11235 # Update the list of available tags.
11236 if test -n "$tagname"; then
11237 echo appending configuration tag \"$tagname\" to $ofile
11241 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11242 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11243 (test "X$CXX" != "Xg++"))) ; then
11245 ac_cpp='$CXXCPP $CPPFLAGS'
11246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11253 archive_cmds_need_lc_CXX=no
11254 allow_undefined_flag_CXX=
11255 always_export_symbols_CXX=no
11256 archive_expsym_cmds_CXX=
11257 export_dynamic_flag_spec_CXX=
11258 hardcode_direct_CXX=no
11259 hardcode_libdir_flag_spec_CXX=
11260 hardcode_libdir_flag_spec_ld_CXX=
11261 hardcode_libdir_separator_CXX=
11262 hardcode_minus_L_CXX=no
11263 hardcode_shlibpath_var_CXX=unsupported
11264 hardcode_automatic_CXX=no
11266 module_expsym_cmds_CXX=
11267 link_all_deplibs_CXX=unknown
11268 old_archive_cmds_CXX=$old_archive_cmds
11269 no_undefined_flag_CXX=
11270 whole_archive_flag_spec_CXX=
11271 enable_shared_with_static_runtimes_CXX=no
11273 # Dependencies to place before and after the object being linked:
11274 predep_objects_CXX=
11275 postdep_objects_CXX=
11278 compiler_lib_search_path_CXX=
11279 compiler_lib_search_dirs_CXX=
11281 # Source file extension for C++ test sources.
11284 # Object file extension for compiled C++ test sources.
11288 # Code to be used in simple compile tests
11289 lt_simple_compile_test_code="int some_variable = 0;"
11291 # Code to be used in simple link tests
11292 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11294 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11296 # If no C compiler was specified, use CC.
11299 # If no C compiler flags were specified, use CFLAGS.
11300 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11302 # Allow CC to be a program name with arguments.
11306 # save warnings/boilerplate of simple test code
11307 ac_outfile=conftest.$ac_objext
11308 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11309 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11310 _lt_compiler_boilerplate=`cat conftest.err`
11313 ac_outfile=conftest.$ac_objext
11314 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11315 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11316 _lt_linker_boilerplate=`cat conftest.err`
11320 # Allow CC to be a program name with arguments.
11325 lt_save_with_gnu_ld=$with_gnu_ld
11326 lt_save_path_LD=$lt_cv_path_LD
11327 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11328 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11330 $as_unset lt_cv_prog_gnu_ld
11332 if test -n "${lt_cv_path_LDCXX+set}"; then
11333 lt_cv_path_LD=$lt_cv_path_LDCXX
11335 $as_unset lt_cv_path_LD
11337 test -z "${LDCXX+set}" || LD=$LDCXX
11341 for cc_temp in $compiler""; do
11343 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11344 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11349 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11352 # We don't want -fno-exception wen compiling C++ code, so set the
11353 # no_builtin_flag separately
11354 if test "$GXX" = yes; then
11355 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11357 lt_prog_compiler_no_builtin_flag_CXX=
11360 if test "$GXX" = yes; then
11361 # Set up default GNU C++ configuration
11364 # Check whether --with-gnu-ld was given.
11365 if test "${with_gnu_ld+set}" = set; then
11366 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11372 if test "$GCC" = yes; then
11373 # Check if gcc -print-prog-name=ld gives a path.
11374 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11375 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11378 # gcc leaves a trailing carriage return which upsets mingw
11379 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11381 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11384 # Accept absolute paths.
11386 re_direlt='/[^/][^/]*/\.\./'
11387 # Canonicalize the pathname of ld
11388 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11389 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11390 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11392 test -z "$LD" && LD="$ac_prog"
11395 # If it fails, then pretend we aren't using GCC.
11399 # If it is relative, then search for the first ld in PATH.
11400 with_gnu_ld=unknown
11403 elif test "$with_gnu_ld" = yes; then
11404 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11405 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11407 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11408 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11410 if test "${lt_cv_path_LD+set}" = set; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11413 if test -z "$LD"; then
11414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11415 for ac_dir in $PATH; do
11417 test -z "$ac_dir" && ac_dir=.
11418 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11419 lt_cv_path_LD="$ac_dir/$ac_prog"
11420 # Check to see if the program is GNU ld. I'd rather use --version,
11421 # but apparently some variants of GNU ld only accept -v.
11422 # Break only if it was the GNU/non-GNU ld that we prefer.
11423 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11424 *GNU* | *'with BFD'*)
11425 test "$with_gnu_ld" != no && break
11428 test "$with_gnu_ld" != yes && break
11435 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11439 LD="$lt_cv_path_LD"
11440 if test -n "$LD"; then
11441 { echo "$as_me:$LINENO: result: $LD" >&5
11442 echo "${ECHO_T}$LD" >&6; }
11444 { echo "$as_me:$LINENO: result: no" >&5
11445 echo "${ECHO_T}no" >&6; }
11447 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11448 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11449 { (exit 1); exit 1; }; }
11450 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11451 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11452 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11453 echo $ECHO_N "(cached) $ECHO_C" >&6
11455 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11456 case `$LD -v 2>&1 </dev/null` in
11457 *GNU* | *'with BFD'*)
11458 lt_cv_prog_gnu_ld=yes
11461 lt_cv_prog_gnu_ld=no
11465 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11466 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11467 with_gnu_ld=$lt_cv_prog_gnu_ld
11471 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11472 # archiving commands below assume that GNU ld is being used.
11473 if test "$with_gnu_ld" = yes; then
11474 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11475 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'
11477 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11478 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11480 # If archive_cmds runs LD, not CC, wlarc should be empty
11481 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11482 # investigate it a little bit more. (MM)
11485 # ancient GNU ld didn't support --whole-archive et. al.
11486 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11487 grep 'no-whole-archive' > /dev/null; then
11488 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11490 whole_archive_flag_spec_CXX=
11496 # A generic and very simple default shared library creation
11497 # command for GNU C++ for the case where it uses the native
11498 # linker, instead of GNU ld. If possible, this setting should
11499 # overridden to take advantage of the native linker features on
11500 # the platform it is being used on.
11501 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11504 # Commands to make compiler produce verbose output that lists
11505 # what "hidden" libraries, object files and flags are used when
11506 # linking a shared library.
11507 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11515 # PORTME: fill in a description of your system's C++ link characteristics
11516 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11517 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11521 # FIXME: insert proper C++ library support
11525 if test "$host_cpu" = ia64; then
11526 # On IA64, the linker does run time linking by default, so we don't
11527 # have to do anything special.
11528 aix_use_runtimelinking=no
11529 exp_sym_flag='-Bexport'
11532 aix_use_runtimelinking=no
11534 # Test if we are trying to use run time linking or normal
11535 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11536 # need to do runtime linking.
11537 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11538 for ld_flag in $LDFLAGS; do
11541 aix_use_runtimelinking=yes
11549 exp_sym_flag='-bexport'
11550 no_entry_flag='-bnoentry'
11553 # When large executables or shared objects are built, AIX ld can
11554 # have problems creating the table of contents. If linking a library
11555 # or program results in "error TOC overflow" add -mminimal-toc to
11556 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11557 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11559 archive_cmds_CXX=''
11560 hardcode_direct_CXX=yes
11561 hardcode_libdir_separator_CXX=':'
11562 link_all_deplibs_CXX=yes
11564 if test "$GXX" = yes; then
11565 case $host_os in aix4.[012]|aix4.[012].*)
11566 # We only want to do this on AIX 4.2 and lower, the check
11567 # below for broken collect2 doesn't work under 4.3+
11568 collect2name=`${CC} -print-prog-name=collect2`
11569 if test -f "$collect2name" && \
11570 strings "$collect2name" | grep resolve_lib_name >/dev/null
11572 # We have reworked collect2
11575 # We have old collect2
11576 hardcode_direct_CXX=unsupported
11577 # It fails to find uninstalled libraries when the uninstalled
11578 # path is not listed in the libpath. Setting hardcode_minus_L
11579 # to unsupported forces relinking
11580 hardcode_minus_L_CXX=yes
11581 hardcode_libdir_flag_spec_CXX='-L$libdir'
11582 hardcode_libdir_separator_CXX=
11586 shared_flag='-shared'
11587 if test "$aix_use_runtimelinking" = yes; then
11588 shared_flag="$shared_flag "'${wl}-G'
11592 if test "$host_cpu" = ia64; then
11593 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11594 # chokes on -Wl,-G. The following line is correct:
11597 if test "$aix_use_runtimelinking" = yes; then
11598 shared_flag='${wl}-G'
11600 shared_flag='${wl}-bM:SRE'
11605 # It seems that -bexpall does not export symbols beginning with
11606 # underscore (_), so it is better to generate a list of symbols to export.
11607 always_export_symbols_CXX=yes
11608 if test "$aix_use_runtimelinking" = yes; then
11609 # Warning - without using the other runtime loading flags (-brtl),
11610 # -berok will link without error, but may produce a broken library.
11611 allow_undefined_flag_CXX='-berok'
11612 # Determine the default libpath from the value encoded in an empty executable.
11613 cat >conftest.$ac_ext <<_ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h. */
11628 rm -f conftest.$ac_objext conftest$ac_exeext
11629 if { (ac_try="$ac_link"
11630 case "(($ac_try" in
11631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632 *) ac_try_echo=$ac_try;;
11634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11635 (eval "$ac_link") 2>conftest.er1
11637 grep -v '^ *+' conftest.er1 >conftest.err
11639 cat conftest.err >&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } && {
11642 test -z "$ac_cxx_werror_flag" ||
11643 test ! -s conftest.err
11644 } && test -s conftest$ac_exeext &&
11645 $as_test_x conftest$ac_exeext; then
11647 lt_aix_libpath_sed='
11648 /Import File Strings/,/^$/ {
11654 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11655 # Check for a 64-bit object if we didn't find anything.
11656 if test -z "$aix_libpath"; then
11657 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11660 echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11667 conftest$ac_exeext conftest.$ac_ext
11668 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11670 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11672 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"
11674 if test "$host_cpu" = ia64; then
11675 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11676 allow_undefined_flag_CXX="-z nodefs"
11677 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"
11679 # Determine the default libpath from the value encoded in an empty executable.
11680 cat >conftest.$ac_ext <<_ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11695 rm -f conftest.$ac_objext conftest$ac_exeext
11696 if { (ac_try="$ac_link"
11697 case "(($ac_try" in
11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699 *) ac_try_echo=$ac_try;;
11701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702 (eval "$ac_link") 2>conftest.er1
11704 grep -v '^ *+' conftest.er1 >conftest.err
11706 cat conftest.err >&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } && {
11709 test -z "$ac_cxx_werror_flag" ||
11710 test ! -s conftest.err
11711 } && test -s conftest$ac_exeext &&
11712 $as_test_x conftest$ac_exeext; then
11714 lt_aix_libpath_sed='
11715 /Import File Strings/,/^$/ {
11721 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11722 # Check for a 64-bit object if we didn't find anything.
11723 if test -z "$aix_libpath"; then
11724 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11727 echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11734 conftest$ac_exeext conftest.$ac_ext
11735 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11737 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11738 # Warning - without using the other run time loading flags,
11739 # -berok will link without error, but may produce a broken library.
11740 no_undefined_flag_CXX=' ${wl}-bernotok'
11741 allow_undefined_flag_CXX=' ${wl}-berok'
11742 # Exported symbols can be pulled into shared objects from archives
11743 whole_archive_flag_spec_CXX='$convenience'
11744 archive_cmds_need_lc_CXX=yes
11745 # This is similar to how AIX traditionally builds its shared libraries.
11746 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'
11752 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11753 allow_undefined_flag_CXX=unsupported
11754 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11755 # support --undefined. This deserves some investigation. FIXME
11756 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11763 case $cc_basename in
11765 # FIXME: insert proper C++ library support
11771 cygwin* | mingw* | pw32*)
11772 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11773 # as there is no search path for DLLs.
11774 hardcode_libdir_flag_spec_CXX='-L$libdir'
11775 allow_undefined_flag_CXX=unsupported
11776 always_export_symbols_CXX=no
11777 enable_shared_with_static_runtimes_CXX=yes
11779 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11780 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'
11781 # If the export-symbols file already is a .def file (1st line
11782 # is EXPORTS), use it as is; otherwise, prepend...
11783 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11784 cp $export_symbols $output_objdir/$soname.def;
11786 echo EXPORTS > $output_objdir/$soname.def;
11787 cat $export_symbols >> $output_objdir/$soname.def;
11789 $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'
11794 darwin* | rhapsody*)
11795 archive_cmds_need_lc_CXX=no
11796 hardcode_direct_CXX=no
11797 hardcode_automatic_CXX=yes
11798 hardcode_shlibpath_var_CXX=unsupported
11799 whole_archive_flag_spec_CXX=''
11800 link_all_deplibs_CXX=yes
11801 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11802 if test "$GXX" = yes ; then
11803 output_verbose_link_cmd='echo'
11804 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11805 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11806 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11807 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11808 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11809 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11810 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11813 case $cc_basename in
11815 output_verbose_link_cmd='echo'
11816 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11817 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11818 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11819 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11820 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}'
11830 case $cc_basename in
11832 # FIXME: insert proper C++ library support
11836 # Green Hills C++ Compiler
11837 # FIXME: insert proper C++ library support
11841 # FIXME: insert proper C++ library support
11847 # C++ shared libraries reported to be fairly broken before switch to ELF
11851 archive_cmds_need_lc_CXX=no
11853 freebsd* | dragonfly*)
11854 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11861 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11862 hardcode_libdir_separator_CXX=:
11863 export_dynamic_flag_spec_CXX='${wl}-E'
11864 hardcode_direct_CXX=yes
11865 hardcode_minus_L_CXX=yes # Not in the search PATH,
11866 # but as the default
11867 # location of the library.
11869 case $cc_basename in
11871 # FIXME: insert proper C++ library support
11875 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'
11876 # Commands to make compiler produce verbose output that lists
11877 # what "hidden" libraries, object files and flags are used when
11878 # linking a shared library.
11880 # There doesn't appear to be a way to prevent this compiler from
11881 # explicitly linking system object files so we need to strip them
11882 # from the output so that they don't get included in the library
11884 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'
11887 if test "$GXX" = yes; then
11888 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'
11890 # FIXME: insert proper C++ library support
11897 if test $with_gnu_ld = no; then
11898 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11899 hardcode_libdir_separator_CXX=:
11904 export_dynamic_flag_spec_CXX='${wl}-E'
11910 hardcode_direct_CXX=no
11911 hardcode_shlibpath_var_CXX=no
11914 hardcode_direct_CXX=yes
11915 hardcode_minus_L_CXX=yes # Not in the search PATH,
11916 # but as the default
11917 # location of the library.
11921 case $cc_basename in
11923 # FIXME: insert proper C++ library support
11929 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11932 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11935 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11938 # Commands to make compiler produce verbose output that lists
11939 # what "hidden" libraries, object files and flags are used when
11940 # linking a shared library.
11942 # There doesn't appear to be a way to prevent this compiler from
11943 # explicitly linking system object files so we need to strip them
11944 # from the output so that they don't get included in the library
11946 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'
11949 if test "$GXX" = yes; then
11950 if test $with_gnu_ld = no; then
11953 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11956 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11959 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'
11964 # FIXME: insert proper C++ library support
11971 hardcode_direct_CXX=no
11972 hardcode_shlibpath_var_CXX=no
11973 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11974 export_dynamic_flag_spec_CXX='${wl}-E'
11975 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11976 # Instead, shared libraries are loaded at an image base (0x10000000 by
11977 # default) and relocated if they conflict, which is a slow very memory
11978 # consuming and fragmenting process. To avoid this, we pick a random,
11979 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11980 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11981 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'
11982 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'
11985 case $cc_basename in
11988 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'
11990 # Archives containing C++ object files must be created using
11991 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11992 # necessary to make sure instantiated templates are included
11994 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11997 if test "$GXX" = yes; then
11998 if test "$with_gnu_ld" = no; then
11999 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'
12001 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'
12004 link_all_deplibs_CXX=yes
12007 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12008 hardcode_libdir_separator_CXX=:
12010 linux* | k*bsd*-gnu)
12011 case $cc_basename in
12013 # Kuck and Associates, Inc. (KAI) C++ Compiler
12015 # KCC will only create a shared library if the output file
12016 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12017 # to its proper name (with version) after linking.
12018 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'
12019 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'
12020 # Commands to make compiler produce verbose output that lists
12021 # what "hidden" libraries, object files and flags are used when
12022 # linking a shared library.
12024 # There doesn't appear to be a way to prevent this compiler from
12025 # explicitly linking system object files so we need to strip them
12026 # from the output so that they don't get included in the library
12028 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'
12030 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12031 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12033 # Archives containing C++ object files must be created using
12034 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12035 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12040 # version 8.0 and above of icpc choke on multiply defined symbols
12041 # if we add $predep_objects and $postdep_objects, however 7.1 and
12042 # earlier do not add the objects themselves.
12043 case `$CC -V 2>&1` in
12045 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12046 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'
12048 *) # Version 8.0 or newer
12051 ia64*) tmp_idyn=' -i_dynamic';;
12053 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12054 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'
12057 archive_cmds_need_lc_CXX=no
12058 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12059 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12060 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12063 # Portland Group C++ compiler
12064 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12065 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'
12067 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12068 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12069 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'
12073 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12074 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'
12076 runpath_var=LD_RUN_PATH
12077 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12078 hardcode_libdir_separator_CXX=:
12080 # Commands to make compiler produce verbose output that lists
12081 # what "hidden" libraries, object files and flags are used when
12082 # linking a shared library.
12084 # There doesn't appear to be a way to prevent this compiler from
12085 # explicitly linking system object files so we need to strip them
12086 # from the output so that they don't get included in the library
12088 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'
12091 case `$CC -V 2>&1 | sed 5q` in
12094 no_undefined_flag_CXX=' -zdefs'
12095 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12096 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12097 hardcode_libdir_flag_spec_CXX='-R$libdir'
12098 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12100 # Not sure whether something based on
12101 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12103 output_verbose_link_cmd='echo'
12105 # Archives containing C++ object files must be created using
12106 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12107 # necessary to make sure instantiated templates are included
12109 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12116 # FIXME: insert proper C++ library support
12120 # FIXME: insert proper C++ library support
12124 case $cc_basename in
12126 # FIXME: insert proper C++ library support
12130 # FIXME: insert proper C++ library support
12135 netbsd* | netbsdelf*-gnu)
12136 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12137 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12139 hardcode_libdir_flag_spec_CXX='-R$libdir'
12140 hardcode_direct_CXX=yes
12141 hardcode_shlibpath_var_CXX=no
12143 # Workaround some broken pre-1.5 toolchains
12144 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12147 # C++ shared libraries are fairly broken
12151 if test -f /usr/libexec/ld.so; then
12152 hardcode_direct_CXX=yes
12153 hardcode_shlibpath_var_CXX=no
12154 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12155 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12156 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12157 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12158 export_dynamic_flag_spec_CXX='${wl}-E'
12159 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12161 output_verbose_link_cmd='echo'
12167 case $cc_basename in
12169 # Kuck and Associates, Inc. (KAI) C++ Compiler
12171 # KCC will only create a shared library if the output file
12172 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12173 # to its proper name (with version) after linking.
12174 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'
12176 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12177 hardcode_libdir_separator_CXX=:
12179 # Archives containing C++ object files must be created using
12180 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12181 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12185 # Rational C++ 2.4.1
12186 # FIXME: insert proper C++ library support
12190 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12191 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'
12193 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12194 hardcode_libdir_separator_CXX=:
12196 # Commands to make compiler produce verbose output that lists
12197 # what "hidden" libraries, object files and flags are used when
12198 # linking a shared library.
12200 # There doesn't appear to be a way to prevent this compiler from
12201 # explicitly linking system object files so we need to strip them
12202 # from the output so that they don't get included in the library
12204 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'
12207 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12208 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12209 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'
12211 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12212 hardcode_libdir_separator_CXX=:
12214 # Commands to make compiler produce verbose output that lists
12215 # what "hidden" libraries, object files and flags are used when
12216 # linking a shared library.
12217 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12220 # FIXME: insert proper C++ library support
12227 case $cc_basename in
12229 # Kuck and Associates, Inc. (KAI) C++ Compiler
12231 # KCC will only create a shared library if the output file
12232 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12233 # to its proper name (with version) after linking.
12234 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'
12236 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12237 hardcode_libdir_separator_CXX=:
12239 # Archives containing C++ object files must be created using
12240 # the KAI C++ compiler.
12241 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12244 # Rational C++ 2.4.1
12245 # FIXME: insert proper C++ library support
12249 allow_undefined_flag_CXX=' -expect_unresolved \*'
12250 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'
12251 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12252 echo "-hidden">> $lib.exp~
12253 $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~
12256 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12257 hardcode_libdir_separator_CXX=:
12259 # Commands to make compiler produce verbose output that lists
12260 # what "hidden" libraries, object files and flags are used when
12261 # linking a shared library.
12263 # There doesn't appear to be a way to prevent this compiler from
12264 # explicitly linking system object files so we need to strip them
12265 # from the output so that they don't get included in the library
12267 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'
12270 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12271 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12272 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'
12274 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12275 hardcode_libdir_separator_CXX=:
12277 # Commands to make compiler produce verbose output that lists
12278 # what "hidden" libraries, object files and flags are used when
12279 # linking a shared library.
12280 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12283 # FIXME: insert proper C++ library support
12290 # FIXME: insert proper C++ library support
12294 case $cc_basename in
12297 # FIXME: insert proper C++ library support
12302 # FIXME: insert proper C++ library support
12306 # FIXME: insert proper C++ library support
12312 case $cc_basename in
12314 # Sun C++ 4.2, 5.x and Centerline C++
12315 archive_cmds_need_lc_CXX=yes
12316 no_undefined_flag_CXX=' -zdefs'
12317 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12318 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12319 $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'
12321 hardcode_libdir_flag_spec_CXX='-R$libdir'
12322 hardcode_shlibpath_var_CXX=no
12324 solaris2.[0-5] | solaris2.[0-5].*) ;;
12326 # The compiler driver will combine and reorder linker options,
12327 # but understands `-z linker_flag'.
12328 # Supported since Solaris 2.6 (maybe 2.5.1?)
12329 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12332 link_all_deplibs_CXX=yes
12334 output_verbose_link_cmd='echo'
12336 # Archives containing C++ object files must be created using
12337 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12338 # necessary to make sure instantiated templates are included
12340 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12343 # Green Hills C++ Compiler
12344 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12346 # The C++ compiler must be used to create the archive.
12347 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12350 # GNU C++ compiler with Solaris linker
12351 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12352 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12353 if $CC --version | grep -v '^2\.7' > /dev/null; then
12354 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12355 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12356 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12358 # Commands to make compiler produce verbose output that lists
12359 # what "hidden" libraries, object files and flags are used when
12360 # linking a shared library.
12361 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12363 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12365 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12366 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12367 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12369 # Commands to make compiler produce verbose output that lists
12370 # what "hidden" libraries, object files and flags are used when
12371 # linking a shared library.
12372 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12375 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12377 solaris2.[0-5] | solaris2.[0-5].*) ;;
12379 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12386 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12387 no_undefined_flag_CXX='${wl}-z,text'
12388 archive_cmds_need_lc_CXX=no
12389 hardcode_shlibpath_var_CXX=no
12390 runpath_var='LD_RUN_PATH'
12392 case $cc_basename in
12394 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12395 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12398 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12399 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12403 sysv5* | sco3.2v5* | sco5v6*)
12404 # Note: We can NOT use -z defs as we might desire, because we do not
12405 # link with -lc, and that would cause any symbols used from libc to
12406 # always be unresolved, which means just about no library would
12407 # ever link correctly. If we're not using GNU ld we use -z text
12408 # though, which does catch some bad symbols but isn't as heavy-handed
12410 # For security reasons, it is highly recommended that you always
12411 # use absolute paths for naming shared libraries, and exclude the
12412 # DT_RUNPATH tag from executables and libraries. But doing so
12413 # requires that you compile everything twice, which is a pain.
12414 # So that behaviour is only enabled if SCOABSPATH is set to a
12415 # non-empty value in the environment. Most likely only useful for
12416 # creating official distributions of packages.
12417 # This is a hack until libtool officially supports absolute path
12418 # names for shared libraries.
12419 no_undefined_flag_CXX='${wl}-z,text'
12420 allow_undefined_flag_CXX='${wl}-z,nodefs'
12421 archive_cmds_need_lc_CXX=no
12422 hardcode_shlibpath_var_CXX=no
12423 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12424 hardcode_libdir_separator_CXX=':'
12425 link_all_deplibs_CXX=yes
12426 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12427 runpath_var='LD_RUN_PATH'
12429 case $cc_basename in
12431 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12432 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12435 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12436 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12441 case $cc_basename in
12443 # NonStop-UX NCC 3.20
12444 # FIXME: insert proper C++ library support
12448 # FIXME: insert proper C++ library support
12454 # FIXME: insert proper C++ library support
12458 # FIXME: insert proper C++ library support
12462 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12463 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12464 test "$ld_shlibs_CXX" = no && can_build_shared=no
12469 cat > conftest.$ac_ext <<EOF
12473 Foo (void) { a = 0; }
12479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12480 (eval $ac_compile) 2>&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; then
12484 # Parse the compiler output and extract the necessary
12485 # objects, libraries and library flags.
12487 # Sentinel used to keep track of whether or not we are before
12488 # the conftest object file.
12489 pre_test_object_deps_done=no
12491 # The `*' in the case matches for architectures that use `case' in
12492 # $output_verbose_cmd can trigger glob expansion during the loop
12493 # eval without this substitution.
12494 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12496 for p in `eval $output_verbose_link_cmd`; do
12500 # Some compilers place space between "-{L,R}" and the path.
12501 # Remove the space.
12502 if test $p = "-L" \
12503 || test $p = "-R"; then
12510 if test "$pre_test_object_deps_done" = no; then
12513 # Internal compiler library paths should come after those
12514 # provided the user. The postdeps already come after the
12515 # user supplied libs so there is no need to process them.
12516 if test -z "$compiler_lib_search_path_CXX"; then
12517 compiler_lib_search_path_CXX="${prev}${p}"
12519 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12522 # The "-l" case would never come before the object being
12523 # linked, so don't bother handling this case.
12526 if test -z "$postdeps_CXX"; then
12527 postdeps_CXX="${prev}${p}"
12529 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12535 # This assumes that the test object file only shows up
12536 # once in the compiler output.
12537 if test "$p" = "conftest.$objext"; then
12538 pre_test_object_deps_done=yes
12542 if test "$pre_test_object_deps_done" = no; then
12543 if test -z "$predep_objects_CXX"; then
12544 predep_objects_CXX="$p"
12546 predep_objects_CXX="$predep_objects_CXX $p"
12549 if test -z "$postdep_objects_CXX"; then
12550 postdep_objects_CXX="$p"
12552 postdep_objects_CXX="$postdep_objects_CXX $p"
12557 *) ;; # Ignore the rest.
12565 echo "libtool.m4: error: problem compiling CXX test program"
12568 $rm -f confest.$objext
12570 compiler_lib_search_dirs_CXX=
12571 if test -n "$compiler_lib_search_path_CXX"; then
12572 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12575 # PORTME: override above test on systems where it is broken
12578 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12579 # hack all around it, let's just trust "g++" to DTRT.
12580 predep_objects_CXX=
12581 postdep_objects_CXX=
12586 case `$CC -V 2>&1 | sed 5q` in
12590 # The more standards-conforming stlport4 library is
12591 # incompatible with the Cstd library. Avoid specifying
12592 # it if it's in CXXFLAGS. Ignore libCrun as
12593 # -library=stlport4 depends on it.
12594 case " $CXX $CXXFLAGS " in
12595 *" -library=stlport4 "*)
12596 solaris_use_stlport4=yes
12599 if test "$solaris_use_stlport4" != yes; then
12600 postdeps_CXX='-library=Cstd -library=Crun'
12607 case $cc_basename in
12609 # The more standards-conforming stlport4 library is
12610 # incompatible with the Cstd library. Avoid specifying
12611 # it if it's in CXXFLAGS. Ignore libCrun as
12612 # -library=stlport4 depends on it.
12613 case " $CXX $CXXFLAGS " in
12614 *" -library=stlport4 "*)
12615 solaris_use_stlport4=yes
12619 # Adding this requires a known-good setup of shared libraries for
12620 # Sun compiler versions before 5.6, else PIC objects from an old
12621 # archive will be linked into the output, leading to subtle bugs.
12622 if test "$solaris_use_stlport4" != yes; then
12623 postdeps_CXX='-library=Cstd -library=Crun'
12630 case " $postdeps_CXX " in
12631 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12634 lt_prog_compiler_wl_CXX=
12635 lt_prog_compiler_pic_CXX=
12636 lt_prog_compiler_static_CXX=
12638 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12639 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12641 # C++ specific cases for pic, static, wl, etc.
12642 if test "$GXX" = yes; then
12643 lt_prog_compiler_wl_CXX='-Wl,'
12644 lt_prog_compiler_static_CXX='-static'
12648 # All AIX code is PIC.
12649 if test "$host_cpu" = ia64; then
12650 # AIX 5 now supports IA64 processor
12651 lt_prog_compiler_static_CXX='-Bstatic'
12655 # FIXME: we need at least 68020 code to build shared libraries, but
12656 # adding the `-m68020' flag to GCC prevents building anything better,
12658 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12660 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12661 # PIC is the default for these OSes.
12663 mingw* | cygwin* | os2* | pw32*)
12664 # This hack is so that the source file can tell whether it is being
12665 # built for inclusion in a dll (and should export symbols for example).
12666 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12667 # (--disable-auto-import) libraries
12668 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12670 darwin* | rhapsody*)
12671 # PIC is the default on this platform
12672 # Common symbols not allowed in MH_DYLIB files
12673 lt_prog_compiler_pic_CXX='-fno-common'
12676 # DJGPP does not support shared libraries at all
12677 lt_prog_compiler_pic_CXX=
12680 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12681 # Instead, we relocate shared libraries at runtime.
12684 if test -d /usr/nec; then
12685 lt_prog_compiler_pic_CXX=-Kconform_pic
12689 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12690 # not for PA HP-UX.
12695 lt_prog_compiler_pic_CXX='-fPIC'
12700 lt_prog_compiler_pic_CXX='-fPIC'
12706 # All AIX code is PIC.
12707 if test "$host_cpu" = ia64; then
12708 # AIX 5 now supports IA64 processor
12709 lt_prog_compiler_static_CXX='-Bstatic'
12711 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12715 case $cc_basename in
12717 # Green Hills C++ Compiler
12718 # _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"
12723 # PIC is the default on this platform
12724 # Common symbols not allowed in MH_DYLIB files
12725 case $cc_basename in
12727 lt_prog_compiler_pic_CXX='-qnocommon'
12728 lt_prog_compiler_wl_CXX='-Wl,'
12733 case $cc_basename in
12735 lt_prog_compiler_pic_CXX='-KPIC'
12738 # Green Hills C++ Compiler
12739 lt_prog_compiler_pic_CXX='-pic'
12745 freebsd* | dragonfly*)
12746 # FreeBSD uses GNU C++
12748 hpux9* | hpux10* | hpux11*)
12749 case $cc_basename in
12751 lt_prog_compiler_wl_CXX='-Wl,'
12752 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12753 if test "$host_cpu" != ia64; then
12754 lt_prog_compiler_pic_CXX='+Z'
12758 lt_prog_compiler_wl_CXX='-Wl,'
12759 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12765 lt_prog_compiler_pic_CXX='+Z'
12774 # This is c89, which is MS Visual C++ (no shared libs)
12775 # Anyone wants to do a port?
12777 irix5* | irix6* | nonstopux*)
12778 case $cc_basename in
12780 lt_prog_compiler_wl_CXX='-Wl,'
12781 lt_prog_compiler_static_CXX='-non_shared'
12782 # CC pic flag -KPIC is the default.
12788 linux* | k*bsd*-gnu)
12789 case $cc_basename in
12792 lt_prog_compiler_wl_CXX='--backend -Wl,'
12793 lt_prog_compiler_pic_CXX='-fPIC'
12797 lt_prog_compiler_wl_CXX='-Wl,'
12798 lt_prog_compiler_pic_CXX='-KPIC'
12799 lt_prog_compiler_static_CXX='-static'
12802 # Portland Group C++ compiler.
12803 lt_prog_compiler_wl_CXX='-Wl,'
12804 lt_prog_compiler_pic_CXX='-fpic'
12805 lt_prog_compiler_static_CXX='-Bstatic'
12809 # Make sure the PIC flag is empty. It appears that all Alpha
12810 # Linux and Compaq Tru64 Unix objects are PIC.
12811 lt_prog_compiler_pic_CXX=
12812 lt_prog_compiler_static_CXX='-non_shared'
12815 case `$CC -V 2>&1 | sed 5q` in
12818 lt_prog_compiler_pic_CXX='-KPIC'
12819 lt_prog_compiler_static_CXX='-Bstatic'
12820 lt_prog_compiler_wl_CXX='-Qoption ld '
12831 case $cc_basename in
12833 lt_prog_compiler_pic_CXX='-W c,exportall'
12839 netbsd* | netbsdelf*-gnu)
12841 osf3* | osf4* | osf5*)
12842 case $cc_basename in
12844 lt_prog_compiler_wl_CXX='--backend -Wl,'
12847 # Rational C++ 2.4.1
12848 lt_prog_compiler_pic_CXX='-pic'
12851 # Digital/Compaq C++
12852 lt_prog_compiler_wl_CXX='-Wl,'
12853 # Make sure the PIC flag is empty. It appears that all Alpha
12854 # Linux and Compaq Tru64 Unix objects are PIC.
12855 lt_prog_compiler_pic_CXX=
12856 lt_prog_compiler_static_CXX='-non_shared'
12865 case $cc_basename in
12867 # Sun C++ 4.2, 5.x and Centerline C++
12868 lt_prog_compiler_pic_CXX='-KPIC'
12869 lt_prog_compiler_static_CXX='-Bstatic'
12870 lt_prog_compiler_wl_CXX='-Qoption ld '
12873 # Green Hills C++ Compiler
12874 lt_prog_compiler_pic_CXX='-PIC'
12881 case $cc_basename in
12884 lt_prog_compiler_pic_CXX='-pic'
12885 lt_prog_compiler_static_CXX='-Bstatic'
12889 lt_prog_compiler_pic_CXX='-pic'
12896 case $cc_basename in
12898 # NonStop-UX NCC 3.20
12899 lt_prog_compiler_pic_CXX='-KPIC'
12905 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12906 case $cc_basename in
12908 lt_prog_compiler_wl_CXX='-Wl,'
12909 lt_prog_compiler_pic_CXX='-KPIC'
12910 lt_prog_compiler_static_CXX='-Bstatic'
12917 lt_prog_compiler_can_build_shared_CXX=no
12922 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12923 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12926 # Check to make sure the PIC flag actually works.
12928 if test -n "$lt_prog_compiler_pic_CXX"; then
12930 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12931 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12932 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12935 lt_cv_prog_compiler_pic_works_CXX=no
12936 ac_outfile=conftest.$ac_objext
12937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12938 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12939 # Insert the option either (1) after the last *FLAGS variable, or
12940 # (2) before a word containing "conftest.", or (3) at the end.
12941 # Note that $ac_compile itself does not contain backslashes and begins
12942 # with a dollar sign (not a hyphen), so the echo should work correctly.
12943 # The option is referenced via a variable to avoid confusing sed.
12944 lt_compile=`echo "$ac_compile" | $SED \
12945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12947 -e 's:$: $lt_compiler_flag:'`
12948 (eval echo "\"\$as_me:12948: $lt_compile\"" >&5)
12949 (eval "$lt_compile" 2>conftest.err)
12951 cat conftest.err >&5
12952 echo "$as_me:12952: \$? = $ac_status" >&5
12953 if (exit $ac_status) && test -s "$ac_outfile"; then
12954 # The compiler can only warn and ignore the option if not recognized
12955 # So say no if there are warnings other than the usual output.
12956 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12958 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12959 lt_cv_prog_compiler_pic_works_CXX=yes
12965 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12966 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12968 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12969 case $lt_prog_compiler_pic_CXX in
12971 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12974 lt_prog_compiler_pic_CXX=
12975 lt_prog_compiler_can_build_shared_CXX=no
12980 # For platforms which do not support PIC, -DPIC is meaningless:
12982 lt_prog_compiler_pic_CXX=
12985 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12990 # Check to make sure the static flag actually works.
12992 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12993 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12994 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12995 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 lt_cv_prog_compiler_static_works_CXX=no
12999 save_LDFLAGS="$LDFLAGS"
13000 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13001 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13002 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13003 # The linker can only warn and ignore the option if not recognized
13004 # So say no if there are warnings
13005 if test -s conftest.err; then
13006 # Append any errors to the config.log.
13007 cat conftest.err 1>&5
13008 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13009 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13010 if diff conftest.exp conftest.er2 >/dev/null; then
13011 lt_cv_prog_compiler_static_works_CXX=yes
13014 lt_cv_prog_compiler_static_works_CXX=yes
13018 LDFLAGS="$save_LDFLAGS"
13021 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13022 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13024 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13027 lt_prog_compiler_static_CXX=
13031 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13032 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13033 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13036 lt_cv_prog_compiler_c_o_CXX=no
13037 $rm -r conftest 2>/dev/null
13041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13043 lt_compiler_flag="-o out/conftest2.$ac_objext"
13044 # Insert the option either (1) after the last *FLAGS variable, or
13045 # (2) before a word containing "conftest.", or (3) at the end.
13046 # Note that $ac_compile itself does not contain backslashes and begins
13047 # with a dollar sign (not a hyphen), so the echo should work correctly.
13048 lt_compile=`echo "$ac_compile" | $SED \
13049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13051 -e 's:$: $lt_compiler_flag:'`
13052 (eval echo "\"\$as_me:13052: $lt_compile\"" >&5)
13053 (eval "$lt_compile" 2>out/conftest.err)
13055 cat out/conftest.err >&5
13056 echo "$as_me:13056: \$? = $ac_status" >&5
13057 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13059 # The compiler can only warn and ignore the option if not recognized
13060 # So say no if there are warnings
13061 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13062 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13063 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13064 lt_cv_prog_compiler_c_o_CXX=yes
13069 # SGI C++ compiler will create directory out/ii_files/ for
13070 # template instantiation
13071 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13072 $rm out/* && rmdir out
13078 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13079 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13082 hard_links="nottested"
13083 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13084 # do not overwrite the value of need_locks provided by the user
13085 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13086 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13089 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13091 ln conftest.a conftest.b 2>&5 || hard_links=no
13092 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13093 { echo "$as_me:$LINENO: result: $hard_links" >&5
13094 echo "${ECHO_T}$hard_links" >&6; }
13095 if test "$hard_links" = no; then
13096 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13097 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13104 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13105 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13107 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13110 # If we're using GNU nm, then we don't want the "-C" option.
13111 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13112 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13113 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'
13115 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'
13119 export_symbols_cmds_CXX="$ltdll_cmds"
13122 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'
13124 linux* | k*bsd*-gnu)
13125 link_all_deplibs_CXX=no
13128 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13131 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13133 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13134 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13135 test "$ld_shlibs_CXX" = no && can_build_shared=no
13138 # Do we need to explicitly link libc?
13140 case "x$archive_cmds_need_lc_CXX" in
13142 # Assume -lc should be added
13143 archive_cmds_need_lc_CXX=yes
13145 if test "$enable_shared" = yes && test "$GCC" = yes; then
13146 case $archive_cmds_CXX in
13148 # FIXME: we may have to deal with multi-command sequences.
13151 # Test whether the compiler implicitly links with -lc since on some
13152 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13153 # to ld, don't add -lc before -lgcc.
13154 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13155 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13160 (eval $ac_compile) 2>&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } 2>conftest.err; then
13166 libobjs=conftest.$ac_objext
13168 wl=$lt_prog_compiler_wl_CXX
13169 pic_flag=$lt_prog_compiler_pic_CXX
13175 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13176 allow_undefined_flag_CXX=
13177 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13178 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }
13183 archive_cmds_need_lc_CXX=no
13185 archive_cmds_need_lc_CXX=yes
13187 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13189 cat conftest.err 1>&5
13192 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13193 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13200 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13201 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13202 library_names_spec=
13203 libname_spec='lib$name'
13207 postuninstall_cmds=
13211 shlibpath_overrides_runpath=unknown
13213 dynamic_linker="$host_os ld.so"
13214 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13216 need_lib_prefix=unknown
13217 hardcode_into_libs=no
13219 # when you set need_version to no, make sure it does not cause -set_version
13220 # flags to be left without arguments
13221 need_version=unknown
13226 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13227 shlibpath_var=LIBPATH
13229 # AIX 3 has no versioning support, so we append a major version to the name.
13230 soname_spec='${libname}${release}${shared_ext}$major'
13237 hardcode_into_libs=yes
13238 if test "$host_cpu" = ia64; then
13239 # AIX 5 supports IA64
13240 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13241 shlibpath_var=LD_LIBRARY_PATH
13243 # With GCC up to 2.95.x, collect2 would create an import file
13244 # for dependence libraries. The import file would start with
13245 # the line `#! .'. This would cause the generated library to
13246 # depend on `.', always an invalid library. This was fixed in
13247 # development snapshots of GCC prior to 3.0.
13249 aix4 | aix4.[01] | aix4.[01].*)
13250 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13252 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13255 can_build_shared=no
13259 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13260 # soname into executable. Probably we can add versioning support to
13261 # collect2, so additional links can be useful in future.
13262 if test "$aix_use_runtimelinking" = yes; then
13263 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13264 # instead of lib<name>.a to let people know that these are not
13265 # typical AIX shared libraries.
13266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13268 # We preserve .a as extension for shared libraries through AIX4.2
13269 # and later when we are not doing run time linking.
13270 library_names_spec='${libname}${release}.a $libname.a'
13271 soname_spec='${libname}${release}${shared_ext}$major'
13273 shlibpath_var=LIBPATH
13278 library_names_spec='$libname.ixlibrary $libname.a'
13279 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13280 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'
13284 library_names_spec='${libname}${shared_ext}'
13285 dynamic_linker="$host_os ld.so"
13286 shlibpath_var=LIBRARY_PATH
13292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13293 soname_spec='${libname}${release}${shared_ext}$major'
13294 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13295 shlibpath_var=LD_LIBRARY_PATH
13296 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13297 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13298 # the default ld.so.conf also contains /usr/contrib/lib and
13299 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13300 # libtool to hard-code these into programs
13303 cygwin* | mingw* | pw32*)
13304 version_type=windows
13309 case $GCC,$host_os in
13310 yes,cygwin* | yes,mingw* | yes,pw32*)
13311 library_names_spec='$libname.dll.a'
13312 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13313 postinstall_cmds='base_file=`basename \${file}`~
13314 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13315 dldir=$destdir/`dirname \$dlpath`~
13316 test -d \$dldir || mkdir -p \$dldir~
13317 $install_prog $dir/$dlname \$dldir/$dlname~
13318 chmod a+x \$dldir/$dlname'
13319 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13320 dlpath=$dir/\$dldll~
13322 shlibpath_overrides_runpath=yes
13326 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13327 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13328 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13331 # MinGW DLLs use traditional 'lib' prefix
13332 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13333 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13334 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13335 # It is most probably a Windows format PATH printed by
13336 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13337 # path with ; separators, and with drive letters. We can handle the
13338 # drive letters (cygwin fileutils understands them), so leave them,
13339 # especially as we might pass files found there to a mingw objdump,
13340 # which wouldn't understand a cygwinified path. Ahh.
13341 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13343 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13347 # pw32 DLLs use 'pw' prefix rather than 'lib'
13348 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13354 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13357 dynamic_linker='Win32 ld.exe'
13358 # FIXME: first we should search . and the directory the executable is in
13362 darwin* | rhapsody*)
13363 dynamic_linker="$host_os dyld"
13364 version_type=darwin
13367 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13368 soname_spec='${libname}${release}${major}$shared_ext'
13369 shlibpath_overrides_runpath=yes
13370 shlibpath_var=DYLD_LIBRARY_PATH
13371 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13373 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13381 soname_spec='${libname}${release}${shared_ext}$major'
13382 shlibpath_var=LD_LIBRARY_PATH
13389 freebsd* | dragonfly*)
13390 # DragonFly does not have aout. When/if they implement a new
13391 # versioning mechanism, adjust this.
13392 if test -x /usr/bin/objformat; then
13393 objformat=`/usr/bin/objformat`
13396 freebsd[123]*) objformat=aout ;;
13397 *) objformat=elf ;;
13400 version_type=freebsd-$objformat
13401 case $version_type in
13403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13408 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13412 shlibpath_var=LD_LIBRARY_PATH
13415 shlibpath_overrides_runpath=yes
13417 freebsd3.[01]* | freebsdelf3.[01]*)
13418 shlibpath_overrides_runpath=yes
13419 hardcode_into_libs=yes
13421 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13422 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13423 shlibpath_overrides_runpath=no
13424 hardcode_into_libs=yes
13426 *) # from 4.6 on, and DragonFly
13427 shlibpath_overrides_runpath=yes
13428 hardcode_into_libs=yes
13437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13438 soname_spec='${libname}${release}${shared_ext}$major'
13439 shlibpath_var=LD_LIBRARY_PATH
13440 hardcode_into_libs=yes
13443 hpux9* | hpux10* | hpux11*)
13444 # Give a soname corresponding to the major version so that dld.sl refuses to
13445 # link against other versions.
13452 hardcode_into_libs=yes
13453 dynamic_linker="$host_os dld.so"
13454 shlibpath_var=LD_LIBRARY_PATH
13455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13457 soname_spec='${libname}${release}${shared_ext}$major'
13458 if test "X$HPUX_IA64_MODE" = X32; then
13459 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13461 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13463 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13467 hardcode_into_libs=yes
13468 dynamic_linker="$host_os dld.sl"
13469 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13470 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13472 soname_spec='${libname}${release}${shared_ext}$major'
13473 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13478 dynamic_linker="$host_os dld.sl"
13479 shlibpath_var=SHLIB_PATH
13480 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13482 soname_spec='${libname}${release}${shared_ext}$major'
13485 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13486 postinstall_cmds='chmod 555 $lib'
13493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13494 soname_spec='${libname}${release}${shared_ext}$major'
13495 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13496 shlibpath_var=LD_LIBRARY_PATH
13497 shlibpath_overrides_runpath=no
13498 hardcode_into_libs=yes
13501 irix5* | irix6* | nonstopux*)
13503 nonstopux*) version_type=nonstopux ;;
13505 if test "$lt_cv_prog_gnu_ld" = yes; then
13513 soname_spec='${libname}${release}${shared_ext}$major'
13514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13516 irix5* | nonstopux*)
13517 libsuff= shlibsuff=
13520 case $LD in # libtool.m4 will add one of these switches to LD
13521 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13522 libsuff= shlibsuff= libmagic=32-bit;;
13523 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13524 libsuff=32 shlibsuff=N32 libmagic=N32;;
13525 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13526 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13527 *) libsuff= shlibsuff= libmagic=never-match;;
13531 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13532 shlibpath_overrides_runpath=no
13533 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13534 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13535 hardcode_into_libs=yes
13538 # No shared lib support for Linux oldld, aout, or coff.
13539 linux*oldld* | linux*aout* | linux*coff*)
13543 # This must be Linux ELF.
13544 linux* | k*bsd*-gnu)
13548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13549 soname_spec='${libname}${release}${shared_ext}$major'
13550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13551 shlibpath_var=LD_LIBRARY_PATH
13552 shlibpath_overrides_runpath=no
13553 # This implies no fast_install, which is unacceptable.
13554 # Some rework will be needed to allow for fast_install
13555 # before this can be enabled.
13556 hardcode_into_libs=yes
13558 # Append ld.so.conf contents to the search path
13559 if test -f /etc/ld.so.conf; then
13560 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13561 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13564 # We used to test for /lib/ld.so.1 and disable shared libraries on
13565 # powerpc, because MkLinux only supported shared libraries with the
13566 # GNU dynamic linker. Since this was broken with cross compilers,
13567 # most powerpc-linux boxes support dynamic linking these days and
13568 # people can always --disable-shared, the test was removed, and we
13569 # assume the GNU/Linux dynamic linker is in use.
13570 dynamic_linker='GNU/Linux ld.so'
13577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13578 soname_spec='${libname}${release}${shared_ext}$major'
13579 shlibpath_var=LD_LIBRARY_PATH
13580 shlibpath_overrides_runpath=no
13581 hardcode_into_libs=yes
13582 dynamic_linker='NetBSD ld.elf_so'
13589 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13591 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13592 dynamic_linker='NetBSD (a.out) ld.so'
13594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13595 soname_spec='${libname}${release}${shared_ext}$major'
13596 dynamic_linker='NetBSD ld.elf_so'
13598 shlibpath_var=LD_LIBRARY_PATH
13599 shlibpath_overrides_runpath=yes
13600 hardcode_into_libs=yes
13605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13606 shlibpath_var=LD_LIBRARY_PATH
13607 shlibpath_overrides_runpath=yes
13614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13615 soname_spec='${libname}${release}${shared_ext}$major'
13616 shlibpath_var=LD_LIBRARY_PATH
13617 shlibpath_overrides_runpath=yes
13622 sys_lib_dlsearch_path_spec="/usr/lib"
13624 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13626 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13627 *) need_version=no ;;
13629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13631 shlibpath_var=LD_LIBRARY_PATH
13632 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13634 openbsd2.[89] | openbsd2.[89].*)
13635 shlibpath_overrides_runpath=no
13638 shlibpath_overrides_runpath=yes
13642 shlibpath_overrides_runpath=yes
13647 libname_spec='$name'
13650 library_names_spec='$libname${shared_ext} $libname.a'
13651 dynamic_linker='OS/2 ld.exe'
13652 shlibpath_var=LIBPATH
13655 osf3* | osf4* | osf5*)
13659 soname_spec='${libname}${release}${shared_ext}$major'
13660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13661 shlibpath_var=LD_LIBRARY_PATH
13662 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13663 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13675 soname_spec='${libname}${release}${shared_ext}$major'
13676 shlibpath_var=LD_LIBRARY_PATH
13677 shlibpath_overrides_runpath=yes
13678 hardcode_into_libs=yes
13679 # ldd complains unless libraries are executable
13680 postinstall_cmds='chmod +x $lib'
13685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13686 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13687 shlibpath_var=LD_LIBRARY_PATH
13688 shlibpath_overrides_runpath=yes
13689 if test "$with_gnu_ld" = yes; then
13697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13698 soname_spec='${libname}${release}${shared_ext}$major'
13699 shlibpath_var=LD_LIBRARY_PATH
13700 case $host_vendor in
13702 shlibpath_overrides_runpath=no
13704 export_dynamic_flag_spec='${wl}-Blargedynsym'
13705 runpath_var=LD_RUN_PATH
13713 shlibpath_overrides_runpath=no
13714 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13720 if test -d /usr/nec ;then
13722 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13723 soname_spec='$libname${shared_ext}.$major'
13724 shlibpath_var=LD_LIBRARY_PATH
13728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13729 version_type=freebsd-elf
13732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13733 soname_spec='${libname}${release}${shared_ext}$major'
13734 shlibpath_var=LD_LIBRARY_PATH
13735 hardcode_into_libs=yes
13736 if test "$with_gnu_ld" = yes; then
13737 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13738 shlibpath_overrides_runpath=no
13740 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13741 shlibpath_overrides_runpath=yes
13744 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13748 sys_lib_dlsearch_path_spec='/usr/lib'
13753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13754 soname_spec='${libname}${release}${shared_ext}$major'
13755 shlibpath_var=LD_LIBRARY_PATH
13762 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13763 echo "${ECHO_T}$dynamic_linker" >&6; }
13764 test "$dynamic_linker" = no && can_build_shared=no
13766 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13772 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13773 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13779 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13781 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13782 if test "$GCC" = yes; then
13783 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13786 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13787 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13788 hardcode_action_CXX=
13789 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13790 test -n "$runpath_var_CXX" || \
13791 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13793 # We can hardcode non-existant directories.
13794 if test "$hardcode_direct_CXX" != no &&
13795 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13796 # have to relink, otherwise we might link with an installed library
13797 # when we should be linking with a yet-to-be-installed one
13798 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13799 test "$hardcode_minus_L_CXX" != no; then
13800 # Linking always hardcodes the temporary library directory.
13801 hardcode_action_CXX=relink
13803 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13804 hardcode_action_CXX=immediate
13807 # We cannot hardcode anything, or else we can only hardcode existing
13809 hardcode_action_CXX=unsupported
13811 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13812 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13814 if test "$hardcode_action_CXX" = relink; then
13815 # Fast installation is not supported
13816 enable_fast_install=no
13817 elif test "$shlibpath_overrides_runpath" = yes ||
13818 test "$enable_shared" = no; then
13819 # Fast installation is not necessary
13820 enable_fast_install=needless
13824 # The else clause should only fire when bootstrapping the
13825 # libtool distribution, otherwise you forgot to ship ltmain.sh
13826 # with your package, and you will get complaints that there are
13827 # no rules to generate ltmain.sh.
13828 if test -f "$ltmain"; then
13829 # See if we are running on zsh, and set the options which allow our commands through
13830 # without removal of \ escapes.
13831 if test -n "${ZSH_VERSION+set}" ; then
13832 setopt NO_GLOB_SUBST
13834 # Now quote all the things that may contain metacharacters while being
13835 # careful not to overquote the AC_SUBSTed values. We take copies of the
13836 # variables and quote the copies for generation of the libtool script.
13837 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13839 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13840 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13841 deplibs_check_method reload_flag reload_cmds need_locks \
13842 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13843 lt_cv_sys_global_symbol_to_c_name_address \
13844 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13845 old_postinstall_cmds old_postuninstall_cmds \
13849 lt_prog_compiler_wl_CXX \
13850 lt_prog_compiler_pic_CXX \
13851 lt_prog_compiler_static_CXX \
13852 lt_prog_compiler_no_builtin_flag_CXX \
13853 export_dynamic_flag_spec_CXX \
13854 thread_safe_flag_spec_CXX \
13855 whole_archive_flag_spec_CXX \
13856 enable_shared_with_static_runtimes_CXX \
13857 old_archive_cmds_CXX \
13858 old_archive_from_new_cmds_CXX \
13859 predep_objects_CXX \
13860 postdep_objects_CXX \
13863 compiler_lib_search_path_CXX \
13864 compiler_lib_search_dirs_CXX \
13866 archive_expsym_cmds_CXX \
13867 postinstall_cmds_CXX \
13868 postuninstall_cmds_CXX \
13869 old_archive_from_expsyms_cmds_CXX \
13870 allow_undefined_flag_CXX \
13871 no_undefined_flag_CXX \
13872 export_symbols_cmds_CXX \
13873 hardcode_libdir_flag_spec_CXX \
13874 hardcode_libdir_flag_spec_ld_CXX \
13875 hardcode_libdir_separator_CXX \
13876 hardcode_automatic_CXX \
13878 module_expsym_cmds_CXX \
13879 lt_cv_prog_compiler_c_o_CXX \
13880 fix_srcfile_path_CXX \
13881 exclude_expsyms_CXX \
13882 include_expsyms_CXX; do
13885 old_archive_cmds_CXX | \
13886 old_archive_from_new_cmds_CXX | \
13887 archive_cmds_CXX | \
13888 archive_expsym_cmds_CXX | \
13889 module_cmds_CXX | \
13890 module_expsym_cmds_CXX | \
13891 old_archive_from_expsyms_cmds_CXX | \
13892 export_symbols_cmds_CXX | \
13893 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13894 postinstall_cmds | postuninstall_cmds | \
13895 old_postinstall_cmds | old_postuninstall_cmds | \
13896 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13897 # Double-quote double-evaled strings.
13898 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13901 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13907 *'\$0 --fallback-echo"')
13908 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13914 cat <<__EOF__ >> "$cfgfile"
13915 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13917 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13919 # Shell to use when invoking shell scripts.
13922 # Whether or not to build shared libraries.
13923 build_libtool_libs=$enable_shared
13925 # Whether or not to build static libraries.
13926 build_old_libs=$enable_static
13928 # Whether or not to add -lc for building shared libraries.
13929 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13931 # Whether or not to disallow shared libs when runtime libs are static
13932 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13934 # Whether or not to optimize for fast installation.
13935 fast_install=$enable_fast_install
13938 host_alias=$host_alias
13942 # The build system.
13943 build_alias=$build_alias
13947 # An echo program that does not interpret backslashes.
13952 AR_FLAGS=$lt_AR_FLAGS
13957 # LTCC compiler flags.
13958 LTCFLAGS=$lt_LTCFLAGS
13960 # A language-specific compiler.
13961 CC=$lt_compiler_CXX
13963 # Is the compiler the GNU C compiler?
13969 # The linker used to build libraries.
13972 # Whether we need hard or soft links.
13975 # A BSD-compatible nm program.
13978 # A symbol stripping program
13981 # Used to examine libraries when file_magic_cmd begins "file"
13982 MAGIC_CMD=$MAGIC_CMD
13984 # Used on cygwin: DLL creation program.
13987 # Used on cygwin: object dumper.
13990 # Used on cygwin: assembler.
13993 # The name of the directory that contains temporary libtool files.
13996 # How to create reloadable object files.
13997 reload_flag=$lt_reload_flag
13998 reload_cmds=$lt_reload_cmds
14000 # How to pass a linker flag through the compiler.
14001 wl=$lt_lt_prog_compiler_wl_CXX
14003 # Object file suffix (normally "o").
14004 objext="$ac_objext"
14006 # Old archive suffix (normally "a").
14009 # Shared library suffix (normally ".so").
14010 shrext_cmds='$shrext_cmds'
14012 # Executable file suffix (normally "").
14015 # Additional compiler flags for building library objects.
14016 pic_flag=$lt_lt_prog_compiler_pic_CXX
14019 # What is the maximum length of a command?
14020 max_cmd_len=$lt_cv_sys_max_cmd_len
14022 # Does compiler simultaneously support -c and -o options?
14023 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14025 # Must we lock files when doing compilation?
14026 need_locks=$lt_need_locks
14028 # Do we need the lib prefix for modules?
14029 need_lib_prefix=$need_lib_prefix
14031 # Do we need a version for libraries?
14032 need_version=$need_version
14034 # Whether dlopen is supported.
14035 dlopen_support=$enable_dlopen
14037 # Whether dlopen of programs is supported.
14038 dlopen_self=$enable_dlopen_self
14040 # Whether dlopen of statically linked programs is supported.
14041 dlopen_self_static=$enable_dlopen_self_static
14043 # Compiler flag to prevent dynamic linking.
14044 link_static_flag=$lt_lt_prog_compiler_static_CXX
14046 # Compiler flag to turn off builtin functions.
14047 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14049 # Compiler flag to allow reflexive dlopens.
14050 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14052 # Compiler flag to generate shared objects directly from archives.
14053 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14055 # Compiler flag to generate thread-safe objects.
14056 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14058 # Library versioning type.
14059 version_type=$version_type
14061 # Format of library name prefix.
14062 libname_spec=$lt_libname_spec
14064 # List of archive names. First name is the real one, the rest are links.
14065 # The last name is the one that the linker finds with -lNAME.
14066 library_names_spec=$lt_library_names_spec
14068 # The coded name of the library, if different from the real name.
14069 soname_spec=$lt_soname_spec
14071 # Commands used to build and install an old-style archive.
14073 old_archive_cmds=$lt_old_archive_cmds_CXX
14074 old_postinstall_cmds=$lt_old_postinstall_cmds
14075 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14077 # Create an old-style archive from a shared archive.
14078 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14080 # Create a temporary old-style archive to link instead of a shared archive.
14081 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14083 # Commands used to build and install a shared archive.
14084 archive_cmds=$lt_archive_cmds_CXX
14085 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14086 postinstall_cmds=$lt_postinstall_cmds
14087 postuninstall_cmds=$lt_postuninstall_cmds
14089 # Commands used to build a loadable module (assumed same as above if empty)
14090 module_cmds=$lt_module_cmds_CXX
14091 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14093 # Commands to strip libraries.
14094 old_striplib=$lt_old_striplib
14095 striplib=$lt_striplib
14097 # Dependencies to place before the objects being linked to create a
14099 predep_objects=$lt_predep_objects_CXX
14101 # Dependencies to place after the objects being linked to create a
14103 postdep_objects=$lt_postdep_objects_CXX
14105 # Dependencies to place before the objects being linked to create a
14107 predeps=$lt_predeps_CXX
14109 # Dependencies to place after the objects being linked to create a
14111 postdeps=$lt_postdeps_CXX
14113 # The directories searched by this compiler when creating a shared
14115 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14117 # The library search path used internally by the compiler when linking
14118 # a shared library.
14119 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14121 # Method to check whether dependent libraries are shared objects.
14122 deplibs_check_method=$lt_deplibs_check_method
14124 # Command to use when deplibs_check_method == file_magic.
14125 file_magic_cmd=$lt_file_magic_cmd
14127 # Flag that allows shared libraries with undefined symbols to be built.
14128 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14130 # Flag that forces no undefined symbols.
14131 no_undefined_flag=$lt_no_undefined_flag_CXX
14133 # Commands used to finish a libtool library installation in a directory.
14134 finish_cmds=$lt_finish_cmds
14136 # Same as above, but a single script fragment to be evaled but not shown.
14137 finish_eval=$lt_finish_eval
14139 # Take the output of nm and produce a listing of raw symbols and C names.
14140 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14142 # Transform the output of nm in a proper C declaration
14143 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14145 # Transform the output of nm in a C name address pair
14146 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14148 # This is the shared library runtime path variable.
14149 runpath_var=$runpath_var
14151 # This is the shared library path variable.
14152 shlibpath_var=$shlibpath_var
14154 # Is shlibpath searched before the hard-coded library search path?
14155 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14157 # How to hardcode a shared library path into an executable.
14158 hardcode_action=$hardcode_action_CXX
14160 # Whether we should hardcode library paths into libraries.
14161 hardcode_into_libs=$hardcode_into_libs
14163 # Flag to hardcode \$libdir into a binary during linking.
14164 # This must work even if \$libdir does not exist.
14165 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14167 # If ld is used when linking, flag to hardcode \$libdir into
14168 # a binary during linking. This must work even if \$libdir does
14170 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14172 # Whether we need a single -rpath flag with a separated argument.
14173 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14175 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14176 # resulting binary.
14177 hardcode_direct=$hardcode_direct_CXX
14179 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14180 # resulting binary.
14181 hardcode_minus_L=$hardcode_minus_L_CXX
14183 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14184 # the resulting binary.
14185 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14187 # Set to yes if building a shared library automatically hardcodes DIR into the library
14188 # and all subsequent libraries and executables linked against it.
14189 hardcode_automatic=$hardcode_automatic_CXX
14191 # Variables whose values should be saved in libtool wrapper scripts and
14192 # restored at relink time.
14193 variables_saved_for_relink="$variables_saved_for_relink"
14195 # Whether libtool must link a program against all its dependency libraries.
14196 link_all_deplibs=$link_all_deplibs_CXX
14198 # Compile-time system search path for libraries
14199 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14201 # Run-time system search path for libraries
14202 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14204 # Fix the shell variable \$srcfile for the compiler.
14205 fix_srcfile_path=$lt_fix_srcfile_path
14207 # Set to yes if exported symbols are required.
14208 always_export_symbols=$always_export_symbols_CXX
14210 # The commands to list exported symbols.
14211 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14213 # The commands to extract the exported symbol list from a shared archive.
14214 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14216 # Symbols that should not be listed in the preloaded symbols.
14217 exclude_expsyms=$lt_exclude_expsyms_CXX
14219 # Symbols that must always be exported.
14220 include_expsyms=$lt_include_expsyms_CXX
14222 # ### END LIBTOOL TAG CONFIG: $tagname
14228 # If there is no Makefile yet, we rely on a make rule to execute
14229 # `config.status --recheck' to rerun these tests and create the
14230 # libtool script then.
14231 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14232 if test -f "$ltmain_in"; then
14233 test -f Makefile && make "$ltmain"
14239 ac_cpp='$CPP $CPPFLAGS'
14240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14248 with_gnu_ldcxx=$with_gnu_ld
14249 with_gnu_ld=$lt_save_with_gnu_ld
14250 lt_cv_path_LDCXX=$lt_cv_path_LD
14251 lt_cv_path_LD=$lt_save_path_LD
14252 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14253 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14261 if test -n "$F77" && test "X$F77" != "Xno"; then
14264 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14265 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14266 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14269 archive_cmds_need_lc_F77=no
14270 allow_undefined_flag_F77=
14271 always_export_symbols_F77=no
14272 archive_expsym_cmds_F77=
14273 export_dynamic_flag_spec_F77=
14274 hardcode_direct_F77=no
14275 hardcode_libdir_flag_spec_F77=
14276 hardcode_libdir_flag_spec_ld_F77=
14277 hardcode_libdir_separator_F77=
14278 hardcode_minus_L_F77=no
14279 hardcode_automatic_F77=no
14281 module_expsym_cmds_F77=
14282 link_all_deplibs_F77=unknown
14283 old_archive_cmds_F77=$old_archive_cmds
14284 no_undefined_flag_F77=
14285 whole_archive_flag_spec_F77=
14286 enable_shared_with_static_runtimes_F77=no
14288 # Source file extension for f77 test sources.
14291 # Object file extension for compiled f77 test sources.
14295 # Code to be used in simple compile tests
14296 lt_simple_compile_test_code="\
14302 # Code to be used in simple link tests
14303 lt_simple_link_test_code="\
14308 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14310 # If no C compiler was specified, use CC.
14313 # If no C compiler flags were specified, use CFLAGS.
14314 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14316 # Allow CC to be a program name with arguments.
14320 # save warnings/boilerplate of simple test code
14321 ac_outfile=conftest.$ac_objext
14322 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14323 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14324 _lt_compiler_boilerplate=`cat conftest.err`
14327 ac_outfile=conftest.$ac_objext
14328 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14329 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14330 _lt_linker_boilerplate=`cat conftest.err`
14334 # Allow CC to be a program name with arguments.
14339 for cc_temp in $compiler""; do
14341 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14342 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14347 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14350 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14351 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14352 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14353 echo "${ECHO_T}$can_build_shared" >&6; }
14355 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14356 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14357 test "$can_build_shared" = "no" && enable_shared=no
14359 # On AIX, shared libraries and static libraries use the same namespace, and
14360 # are all built from PIC.
14363 test "$enable_shared" = yes && enable_static=no
14364 if test -n "$RANLIB"; then
14365 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14366 postinstall_cmds='$RANLIB $lib'
14370 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14371 test "$enable_shared" = yes && enable_static=no
14375 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14376 echo "${ECHO_T}$enable_shared" >&6; }
14378 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14379 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14380 # Make sure either enable_shared or enable_static is yes.
14381 test "$enable_shared" = yes || enable_static=yes
14382 { echo "$as_me:$LINENO: result: $enable_static" >&5
14383 echo "${ECHO_T}$enable_static" >&6; }
14388 lt_prog_compiler_wl_F77=
14389 lt_prog_compiler_pic_F77=
14390 lt_prog_compiler_static_F77=
14392 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14393 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14395 if test "$GCC" = yes; then
14396 lt_prog_compiler_wl_F77='-Wl,'
14397 lt_prog_compiler_static_F77='-static'
14401 # All AIX code is PIC.
14402 if test "$host_cpu" = ia64; then
14403 # AIX 5 now supports IA64 processor
14404 lt_prog_compiler_static_F77='-Bstatic'
14409 # FIXME: we need at least 68020 code to build shared libraries, but
14410 # adding the `-m68020' flag to GCC prevents building anything better,
14412 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14415 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14416 # PIC is the default for these OSes.
14419 mingw* | cygwin* | pw32* | os2*)
14420 # This hack is so that the source file can tell whether it is being
14421 # built for inclusion in a dll (and should export symbols for example).
14422 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14423 # (--disable-auto-import) libraries
14424 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14427 darwin* | rhapsody*)
14428 # PIC is the default on this platform
14429 # Common symbols not allowed in MH_DYLIB files
14430 lt_prog_compiler_pic_F77='-fno-common'
14434 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14435 # Instead, we relocate shared libraries at runtime.
14439 # Just because we use GCC doesn't mean we suddenly get shared libraries
14440 # on systems that don't support them.
14441 lt_prog_compiler_can_build_shared_F77=no
14446 if test -d /usr/nec; then
14447 lt_prog_compiler_pic_F77=-Kconform_pic
14452 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14453 # not for PA HP-UX.
14459 lt_prog_compiler_pic_F77='-fPIC'
14465 lt_prog_compiler_pic_F77='-fPIC'
14469 # PORTME Check for flag to pass linker flags through the system compiler.
14472 lt_prog_compiler_wl_F77='-Wl,'
14473 if test "$host_cpu" = ia64; then
14474 # AIX 5 now supports IA64 processor
14475 lt_prog_compiler_static_F77='-Bstatic'
14477 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14481 # PIC is the default on this platform
14482 # Common symbols not allowed in MH_DYLIB files
14483 case $cc_basename in
14485 lt_prog_compiler_pic_F77='-qnocommon'
14486 lt_prog_compiler_wl_F77='-Wl,'
14491 mingw* | cygwin* | pw32* | os2*)
14492 # This hack is so that the source file can tell whether it is being
14493 # built for inclusion in a dll (and should export symbols for example).
14494 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14497 hpux9* | hpux10* | hpux11*)
14498 lt_prog_compiler_wl_F77='-Wl,'
14499 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14500 # not for PA HP-UX.
14506 lt_prog_compiler_pic_F77='+Z'
14509 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14510 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14513 irix5* | irix6* | nonstopux*)
14514 lt_prog_compiler_wl_F77='-Wl,'
14515 # PIC (with -KPIC) is the default.
14516 lt_prog_compiler_static_F77='-non_shared'
14520 lt_prog_compiler_pic_F77='-KPIC'
14521 lt_prog_compiler_static_F77='-Bstatic'
14524 linux* | k*bsd*-gnu)
14525 case $cc_basename in
14527 lt_prog_compiler_wl_F77='-Wl,'
14528 lt_prog_compiler_pic_F77='-KPIC'
14529 lt_prog_compiler_static_F77='-static'
14531 pgcc* | pgf77* | pgf90* | pgf95*)
14532 # Portland Group compilers (*not* the Pentium gcc compiler,
14533 # which looks to be a dead project)
14534 lt_prog_compiler_wl_F77='-Wl,'
14535 lt_prog_compiler_pic_F77='-fpic'
14536 lt_prog_compiler_static_F77='-Bstatic'
14539 lt_prog_compiler_wl_F77='-Wl,'
14540 # All Alpha code is PIC.
14541 lt_prog_compiler_static_F77='-non_shared'
14544 case `$CC -V 2>&1 | sed 5q` in
14547 lt_prog_compiler_pic_F77='-KPIC'
14548 lt_prog_compiler_static_F77='-Bstatic'
14549 lt_prog_compiler_wl_F77='-Wl,'
14552 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14553 lt_prog_compiler_pic_F77='-KPIC'
14554 lt_prog_compiler_static_F77='-Bstatic'
14555 lt_prog_compiler_wl_F77=''
14562 osf3* | osf4* | osf5*)
14563 lt_prog_compiler_wl_F77='-Wl,'
14564 # All OSF/1 code is PIC.
14565 lt_prog_compiler_static_F77='-non_shared'
14569 lt_prog_compiler_static_F77='-non_shared'
14573 lt_prog_compiler_pic_F77='-KPIC'
14574 lt_prog_compiler_static_F77='-Bstatic'
14575 case $cc_basename in
14576 f77* | f90* | f95*)
14577 lt_prog_compiler_wl_F77='-Qoption ld ';;
14579 lt_prog_compiler_wl_F77='-Wl,';;
14584 lt_prog_compiler_wl_F77='-Qoption ld '
14585 lt_prog_compiler_pic_F77='-PIC'
14586 lt_prog_compiler_static_F77='-Bstatic'
14589 sysv4 | sysv4.2uw2* | sysv4.3*)
14590 lt_prog_compiler_wl_F77='-Wl,'
14591 lt_prog_compiler_pic_F77='-KPIC'
14592 lt_prog_compiler_static_F77='-Bstatic'
14596 if test -d /usr/nec ;then
14597 lt_prog_compiler_pic_F77='-Kconform_pic'
14598 lt_prog_compiler_static_F77='-Bstatic'
14602 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14603 lt_prog_compiler_wl_F77='-Wl,'
14604 lt_prog_compiler_pic_F77='-KPIC'
14605 lt_prog_compiler_static_F77='-Bstatic'
14609 lt_prog_compiler_wl_F77='-Wl,'
14610 lt_prog_compiler_can_build_shared_F77=no
14614 lt_prog_compiler_pic_F77='-pic'
14615 lt_prog_compiler_static_F77='-Bstatic'
14619 lt_prog_compiler_can_build_shared_F77=no
14624 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14625 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14628 # Check to make sure the PIC flag actually works.
14630 if test -n "$lt_prog_compiler_pic_F77"; then
14632 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14633 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14634 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14635 echo $ECHO_N "(cached) $ECHO_C" >&6
14637 lt_cv_prog_compiler_pic_works_F77=no
14638 ac_outfile=conftest.$ac_objext
14639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14640 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14641 # Insert the option either (1) after the last *FLAGS variable, or
14642 # (2) before a word containing "conftest.", or (3) at the end.
14643 # Note that $ac_compile itself does not contain backslashes and begins
14644 # with a dollar sign (not a hyphen), so the echo should work correctly.
14645 # The option is referenced via a variable to avoid confusing sed.
14646 lt_compile=`echo "$ac_compile" | $SED \
14647 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14648 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14649 -e 's:$: $lt_compiler_flag:'`
14650 (eval echo "\"\$as_me:14650: $lt_compile\"" >&5)
14651 (eval "$lt_compile" 2>conftest.err)
14653 cat conftest.err >&5
14654 echo "$as_me:14654: \$? = $ac_status" >&5
14655 if (exit $ac_status) && test -s "$ac_outfile"; then
14656 # The compiler can only warn and ignore the option if not recognized
14657 # So say no if there are warnings other than the usual output.
14658 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14660 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14661 lt_cv_prog_compiler_pic_works_F77=yes
14667 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14668 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14670 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14671 case $lt_prog_compiler_pic_F77 in
14673 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14676 lt_prog_compiler_pic_F77=
14677 lt_prog_compiler_can_build_shared_F77=no
14682 # For platforms which do not support PIC, -DPIC is meaningless:
14684 lt_prog_compiler_pic_F77=
14687 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14692 # Check to make sure the static flag actually works.
14694 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14695 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14696 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14697 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14698 echo $ECHO_N "(cached) $ECHO_C" >&6
14700 lt_cv_prog_compiler_static_works_F77=no
14701 save_LDFLAGS="$LDFLAGS"
14702 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14703 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14704 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14705 # The linker can only warn and ignore the option if not recognized
14706 # So say no if there are warnings
14707 if test -s conftest.err; then
14708 # Append any errors to the config.log.
14709 cat conftest.err 1>&5
14710 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14712 if diff conftest.exp conftest.er2 >/dev/null; then
14713 lt_cv_prog_compiler_static_works_F77=yes
14716 lt_cv_prog_compiler_static_works_F77=yes
14720 LDFLAGS="$save_LDFLAGS"
14723 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14724 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14726 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14729 lt_prog_compiler_static_F77=
14733 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14734 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14735 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14736 echo $ECHO_N "(cached) $ECHO_C" >&6
14738 lt_cv_prog_compiler_c_o_F77=no
14739 $rm -r conftest 2>/dev/null
14743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14745 lt_compiler_flag="-o out/conftest2.$ac_objext"
14746 # Insert the option either (1) after the last *FLAGS variable, or
14747 # (2) before a word containing "conftest.", or (3) at the end.
14748 # Note that $ac_compile itself does not contain backslashes and begins
14749 # with a dollar sign (not a hyphen), so the echo should work correctly.
14750 lt_compile=`echo "$ac_compile" | $SED \
14751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14753 -e 's:$: $lt_compiler_flag:'`
14754 (eval echo "\"\$as_me:14754: $lt_compile\"" >&5)
14755 (eval "$lt_compile" 2>out/conftest.err)
14757 cat out/conftest.err >&5
14758 echo "$as_me:14758: \$? = $ac_status" >&5
14759 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14761 # The compiler can only warn and ignore the option if not recognized
14762 # So say no if there are warnings
14763 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14764 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14765 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14766 lt_cv_prog_compiler_c_o_F77=yes
14771 # SGI C++ compiler will create directory out/ii_files/ for
14772 # template instantiation
14773 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14774 $rm out/* && rmdir out
14780 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14781 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14784 hard_links="nottested"
14785 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14786 # do not overwrite the value of need_locks provided by the user
14787 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14788 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14791 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14793 ln conftest.a conftest.b 2>&5 || hard_links=no
14794 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14795 { echo "$as_me:$LINENO: result: $hard_links" >&5
14796 echo "${ECHO_T}$hard_links" >&6; }
14797 if test "$hard_links" = no; then
14798 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14799 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14806 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14807 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14810 allow_undefined_flag_F77=
14811 enable_shared_with_static_runtimes_F77=no
14813 archive_expsym_cmds_F77=
14814 old_archive_From_new_cmds_F77=
14815 old_archive_from_expsyms_cmds_F77=
14816 export_dynamic_flag_spec_F77=
14817 whole_archive_flag_spec_F77=
14818 thread_safe_flag_spec_F77=
14819 hardcode_libdir_flag_spec_F77=
14820 hardcode_libdir_flag_spec_ld_F77=
14821 hardcode_libdir_separator_F77=
14822 hardcode_direct_F77=no
14823 hardcode_minus_L_F77=no
14824 hardcode_shlibpath_var_F77=unsupported
14825 link_all_deplibs_F77=unknown
14826 hardcode_automatic_F77=no
14828 module_expsym_cmds_F77=
14829 always_export_symbols_F77=no
14830 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14831 # include_expsyms should be a list of space-separated symbols to be *always*
14832 # included in the symbol list
14833 include_expsyms_F77=
14834 # exclude_expsyms can be an extended regexp of symbols to exclude
14835 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14836 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14837 # as well as any symbol that contains `d'.
14838 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14839 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14840 # platforms (ab)use it in PIC code, but their linkers get confused if
14841 # the symbol is explicitly referenced. Since portable code cannot
14842 # rely on this symbol name, it's probably fine to never include it in
14843 # preloaded symbol tables.
14844 # Exclude shared library initialization/finalization symbols.
14845 extract_expsyms_cmds=
14846 # Just being paranoid about ensuring that cc_basename is set.
14847 for cc_temp in $compiler""; do
14849 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14850 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14855 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14858 cygwin* | mingw* | pw32*)
14859 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14860 # When not using gcc, we currently assume that we are using
14861 # Microsoft Visual C++.
14862 if test "$GCC" != yes; then
14867 # we just hope/assume this is gcc and not c89 (= MSVC++)
14876 if test "$with_gnu_ld" = yes; then
14877 # If archive_cmds runs LD, not CC, wlarc should be empty
14880 # Set some defaults for GNU ld with shared library support. These
14881 # are reset later if shared libraries are not supported. Putting them
14882 # here allows them to be overridden if necessary.
14883 runpath_var=LD_RUN_PATH
14884 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14885 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14886 # ancient GNU ld didn't support --whole-archive et. al.
14887 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14888 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14890 whole_archive_flag_spec_F77=
14892 supports_anon_versioning=no
14893 case `$LD -v 2>/dev/null` in
14894 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14895 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14896 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14897 *\ 2.11.*) ;; # other 2.11 versions
14898 *) supports_anon_versioning=yes ;;
14901 # See if GNU ld supports shared libraries.
14904 # On AIX/PPC, the GNU linker is very broken
14905 if test "$host_cpu" != ia64; then
14909 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14910 *** to be unable to reliably create shared libraries on AIX.
14911 *** Therefore, libtool is disabling shared libraries support. If you
14912 *** really care for shared libraries, you may want to modify your PATH
14913 *** so that a non-GNU linker is found, and then restart.
14920 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)'
14921 hardcode_libdir_flag_spec_F77='-L$libdir'
14922 hardcode_minus_L_F77=yes
14924 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14925 # that the semantics of dynamic libraries on AmigaOS, at least up
14926 # to version 4, is to share data among multiple programs linked
14927 # with the same dynamic library. Since this doesn't match the
14928 # behavior of shared libraries on other platforms, we can't use
14934 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14935 allow_undefined_flag_F77=unsupported
14936 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14937 # support --undefined. This deserves some investigation. FIXME
14938 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14944 cygwin* | mingw* | pw32*)
14945 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14946 # as there is no search path for DLLs.
14947 hardcode_libdir_flag_spec_F77='-L$libdir'
14948 allow_undefined_flag_F77=unsupported
14949 always_export_symbols_F77=no
14950 enable_shared_with_static_runtimes_F77=yes
14951 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14953 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14954 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14955 # If the export-symbols file already is a .def file (1st line
14956 # is EXPORTS), use it as is; otherwise, prepend...
14957 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14958 cp $export_symbols $output_objdir/$soname.def;
14960 echo EXPORTS > $output_objdir/$soname.def;
14961 cat $export_symbols >> $output_objdir/$soname.def;
14963 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14970 hardcode_direct_F77=no
14971 hardcode_shlibpath_var_F77=no
14972 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14973 export_dynamic_flag_spec_F77='${wl}-E'
14974 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14975 # Instead, shared libraries are loaded at an image base (0x10000000 by
14976 # default) and relocated if they conflict, which is a slow very memory
14977 # consuming and fragmenting process. To avoid this, we pick a random,
14978 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14979 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14980 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'
14981 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'
14984 gnu* | linux* | k*bsd*-gnu)
14985 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14987 case $cc_basename,$host_cpu in
14988 pgcc*) # Portland Group C compiler
14989 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'
14990 tmp_addflag=' $pic_flag'
14992 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14993 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'
14994 tmp_addflag=' $pic_flag -Mnomain' ;;
14995 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14996 tmp_addflag=' -i_dynamic' ;;
14997 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14998 tmp_addflag=' -i_dynamic -nofor_main' ;;
14999 ifc* | ifort*) # Intel Fortran compiler
15000 tmp_addflag=' -nofor_main' ;;
15002 case `$CC -V 2>&1 | sed 5q` in
15003 *Sun\ C*) # Sun C 5.9
15004 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15005 tmp_sharedflag='-G' ;;
15006 *Sun\ F*) # Sun Fortran 8.3
15007 tmp_sharedflag='-G' ;;
15009 tmp_sharedflag='-shared' ;;
15011 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15013 if test $supports_anon_versioning = yes; then
15014 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15015 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15016 $echo "local: *; };" >> $output_objdir/$libname.ver~
15017 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15019 link_all_deplibs_F77=no
15025 netbsd* | netbsdelf*-gnu)
15026 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15027 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15030 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15031 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15036 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15040 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15041 *** create shared libraries on Solaris systems. Therefore, libtool
15042 *** is disabling shared libraries support. We urge you to upgrade GNU
15043 *** binutils to release 2.9.1 or newer. Another option is to modify
15044 *** your PATH or compiler configuration so that the native linker is
15045 *** used, and then restart.
15048 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15049 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15050 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15056 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15057 case `$LD -v 2>&1` in
15058 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15062 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15063 *** reliably create shared libraries on SCO systems. Therefore, libtool
15064 *** is disabling shared libraries support. We urge you to upgrade GNU
15065 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15066 *** your PATH or compiler configuration so that the native linker is
15067 *** used, and then restart.
15072 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15073 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15074 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15075 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15084 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15086 hardcode_direct_F77=yes
15087 hardcode_shlibpath_var_F77=no
15091 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15092 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15093 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15100 if test "$ld_shlibs_F77" = no; then
15102 hardcode_libdir_flag_spec_F77=
15103 export_dynamic_flag_spec_F77=
15104 whole_archive_flag_spec_F77=
15107 # PORTME fill in a description of your system's linker (not GNU ld)
15110 allow_undefined_flag_F77=unsupported
15111 always_export_symbols_F77=yes
15112 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'
15113 # Note: this linker hardcodes the directories in LIBPATH if there
15114 # are no directories specified by -L.
15115 hardcode_minus_L_F77=yes
15116 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15117 # Neither direct hardcoding nor static linking is supported with a
15119 hardcode_direct_F77=unsupported
15124 if test "$host_cpu" = ia64; then
15125 # On IA64, the linker does run time linking by default, so we don't
15126 # have to do anything special.
15127 aix_use_runtimelinking=no
15128 exp_sym_flag='-Bexport'
15131 # If we're using GNU nm, then we don't want the "-C" option.
15132 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15133 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15134 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'
15136 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'
15138 aix_use_runtimelinking=no
15140 # Test if we are trying to use run time linking or normal
15141 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15142 # need to do runtime linking.
15143 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15144 for ld_flag in $LDFLAGS; do
15145 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15146 aix_use_runtimelinking=yes
15153 exp_sym_flag='-bexport'
15154 no_entry_flag='-bnoentry'
15157 # When large executables or shared objects are built, AIX ld can
15158 # have problems creating the table of contents. If linking a library
15159 # or program results in "error TOC overflow" add -mminimal-toc to
15160 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15161 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15163 archive_cmds_F77=''
15164 hardcode_direct_F77=yes
15165 hardcode_libdir_separator_F77=':'
15166 link_all_deplibs_F77=yes
15168 if test "$GCC" = yes; then
15169 case $host_os in aix4.[012]|aix4.[012].*)
15170 # We only want to do this on AIX 4.2 and lower, the check
15171 # below for broken collect2 doesn't work under 4.3+
15172 collect2name=`${CC} -print-prog-name=collect2`
15173 if test -f "$collect2name" && \
15174 strings "$collect2name" | grep resolve_lib_name >/dev/null
15176 # We have reworked collect2
15179 # We have old collect2
15180 hardcode_direct_F77=unsupported
15181 # It fails to find uninstalled libraries when the uninstalled
15182 # path is not listed in the libpath. Setting hardcode_minus_L
15183 # to unsupported forces relinking
15184 hardcode_minus_L_F77=yes
15185 hardcode_libdir_flag_spec_F77='-L$libdir'
15186 hardcode_libdir_separator_F77=
15190 shared_flag='-shared'
15191 if test "$aix_use_runtimelinking" = yes; then
15192 shared_flag="$shared_flag "'${wl}-G'
15196 if test "$host_cpu" = ia64; then
15197 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15198 # chokes on -Wl,-G. The following line is correct:
15201 if test "$aix_use_runtimelinking" = yes; then
15202 shared_flag='${wl}-G'
15204 shared_flag='${wl}-bM:SRE'
15209 # It seems that -bexpall does not export symbols beginning with
15210 # underscore (_), so it is better to generate a list of symbols to export.
15211 always_export_symbols_F77=yes
15212 if test "$aix_use_runtimelinking" = yes; then
15213 # Warning - without using the other runtime loading flags (-brtl),
15214 # -berok will link without error, but may produce a broken library.
15215 allow_undefined_flag_F77='-berok'
15216 # Determine the default libpath from the value encoded in an empty executable.
15217 cat >conftest.$ac_ext <<_ACEOF
15222 rm -f conftest.$ac_objext conftest$ac_exeext
15223 if { (ac_try="$ac_link"
15224 case "(($ac_try" in
15225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15226 *) ac_try_echo=$ac_try;;
15228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15229 (eval "$ac_link") 2>conftest.er1
15231 grep -v '^ *+' conftest.er1 >conftest.err
15233 cat conftest.err >&5
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); } && {
15236 test -z "$ac_f77_werror_flag" ||
15237 test ! -s conftest.err
15238 } && test -s conftest$ac_exeext &&
15239 $as_test_x conftest$ac_exeext; then
15241 lt_aix_libpath_sed='
15242 /Import File Strings/,/^$/ {
15248 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15249 # Check for a 64-bit object if we didn't find anything.
15250 if test -z "$aix_libpath"; then
15251 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15254 echo "$as_me: failed program was:" >&5
15255 sed 's/^/| /' conftest.$ac_ext >&5
15260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15261 conftest$ac_exeext conftest.$ac_ext
15262 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15264 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15265 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"
15267 if test "$host_cpu" = ia64; then
15268 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15269 allow_undefined_flag_F77="-z nodefs"
15270 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"
15272 # Determine the default libpath from the value encoded in an empty executable.
15273 cat >conftest.$ac_ext <<_ACEOF
15278 rm -f conftest.$ac_objext conftest$ac_exeext
15279 if { (ac_try="$ac_link"
15280 case "(($ac_try" in
15281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282 *) ac_try_echo=$ac_try;;
15284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15285 (eval "$ac_link") 2>conftest.er1
15287 grep -v '^ *+' conftest.er1 >conftest.err
15289 cat conftest.err >&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } && {
15292 test -z "$ac_f77_werror_flag" ||
15293 test ! -s conftest.err
15294 } && test -s conftest$ac_exeext &&
15295 $as_test_x conftest$ac_exeext; then
15297 lt_aix_libpath_sed='
15298 /Import File Strings/,/^$/ {
15304 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15305 # Check for a 64-bit object if we didn't find anything.
15306 if test -z "$aix_libpath"; then
15307 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15310 echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15317 conftest$ac_exeext conftest.$ac_ext
15318 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15320 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15321 # Warning - without using the other run time loading flags,
15322 # -berok will link without error, but may produce a broken library.
15323 no_undefined_flag_F77=' ${wl}-bernotok'
15324 allow_undefined_flag_F77=' ${wl}-berok'
15325 # Exported symbols can be pulled into shared objects from archives
15326 whole_archive_flag_spec_F77='$convenience'
15327 archive_cmds_need_lc_F77=yes
15328 # This is similar to how AIX traditionally builds its shared libraries.
15329 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'
15335 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)'
15336 hardcode_libdir_flag_spec_F77='-L$libdir'
15337 hardcode_minus_L_F77=yes
15338 # see comment about different semantics on the GNU ld section
15343 export_dynamic_flag_spec_F77=-rdynamic
15346 cygwin* | mingw* | pw32*)
15347 # When not using gcc, we currently assume that we are using
15348 # Microsoft Visual C++.
15349 # hardcode_libdir_flag_spec is actually meaningless, as there is
15350 # no search path for DLLs.
15351 hardcode_libdir_flag_spec_F77=' '
15352 allow_undefined_flag_F77=unsupported
15353 # Tell ltmain to make .lib files, not .a files.
15355 # Tell ltmain to make .dll files, not .so files.
15357 # FIXME: Setting linknames here is a bad hack.
15358 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15359 # The linker will automatically build a .lib file if we build a DLL.
15360 old_archive_From_new_cmds_F77='true'
15361 # FIXME: Should let the user specify the lib program.
15362 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15363 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15364 enable_shared_with_static_runtimes_F77=yes
15367 darwin* | rhapsody*)
15369 rhapsody* | darwin1.[012])
15370 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15373 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15374 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15376 case ${MACOSX_DEPLOYMENT_TARGET} in
15378 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15381 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15387 archive_cmds_need_lc_F77=no
15388 hardcode_direct_F77=no
15389 hardcode_automatic_F77=yes
15390 hardcode_shlibpath_var_F77=unsupported
15391 whole_archive_flag_spec_F77=''
15392 link_all_deplibs_F77=yes
15393 if test "$GCC" = yes ; then
15394 output_verbose_link_cmd='echo'
15395 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15396 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15397 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15398 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15400 case $cc_basename in
15402 output_verbose_link_cmd='echo'
15403 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15404 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15405 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15406 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15407 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}'
15417 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15418 hardcode_libdir_flag_spec_F77='-L$libdir'
15419 hardcode_shlibpath_var_F77=no
15426 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15427 # support. Future versions do this automatically, but an explicit c++rt0.o
15428 # does not break anything, and helps significantly (at the cost of a little
15431 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15432 hardcode_libdir_flag_spec_F77='-R$libdir'
15433 hardcode_direct_F77=yes
15434 hardcode_shlibpath_var_F77=no
15437 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15439 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15440 hardcode_direct_F77=yes
15441 hardcode_minus_L_F77=yes
15442 hardcode_shlibpath_var_F77=no
15445 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15446 freebsd* | dragonfly*)
15447 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15448 hardcode_libdir_flag_spec_F77='-R$libdir'
15449 hardcode_direct_F77=yes
15450 hardcode_shlibpath_var_F77=no
15454 if test "$GCC" = yes; then
15455 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'
15457 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'
15459 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15460 hardcode_libdir_separator_F77=:
15461 hardcode_direct_F77=yes
15463 # hardcode_minus_L: Not really in the search PATH,
15464 # but as the default location of the library.
15465 hardcode_minus_L_F77=yes
15466 export_dynamic_flag_spec_F77='${wl}-E'
15470 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15471 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15473 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15475 if test "$with_gnu_ld" = no; then
15476 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15477 hardcode_libdir_separator_F77=:
15479 hardcode_direct_F77=yes
15480 export_dynamic_flag_spec_F77='${wl}-E'
15482 # hardcode_minus_L: Not really in the search PATH,
15483 # but as the default location of the library.
15484 hardcode_minus_L_F77=yes
15489 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15492 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15495 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15498 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15504 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15507 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15510 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15514 if test "$with_gnu_ld" = no; then
15515 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15516 hardcode_libdir_separator_F77=:
15520 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15521 hardcode_direct_F77=no
15522 hardcode_shlibpath_var_F77=no
15525 hardcode_direct_F77=yes
15526 export_dynamic_flag_spec_F77='${wl}-E'
15528 # hardcode_minus_L: Not really in the search PATH,
15529 # but as the default location of the library.
15530 hardcode_minus_L_F77=yes
15536 irix5* | irix6* | nonstopux*)
15537 if test "$GCC" = yes; then
15538 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'
15540 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'
15541 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15543 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15544 hardcode_libdir_separator_F77=:
15545 link_all_deplibs_F77=yes
15548 netbsd* | netbsdelf*-gnu)
15549 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15550 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15552 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15554 hardcode_libdir_flag_spec_F77='-R$libdir'
15555 hardcode_direct_F77=yes
15556 hardcode_shlibpath_var_F77=no
15560 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15561 hardcode_direct_F77=yes
15562 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15563 hardcode_libdir_separator_F77=:
15564 hardcode_shlibpath_var_F77=no
15568 if test -f /usr/libexec/ld.so; then
15569 hardcode_direct_F77=yes
15570 hardcode_shlibpath_var_F77=no
15571 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15572 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15573 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15574 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15575 export_dynamic_flag_spec_F77='${wl}-E'
15578 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15579 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15580 hardcode_libdir_flag_spec_F77='-R$libdir'
15583 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15584 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15594 hardcode_libdir_flag_spec_F77='-L$libdir'
15595 hardcode_minus_L_F77=yes
15596 allow_undefined_flag_F77=unsupported
15597 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'
15598 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15602 if test "$GCC" = yes; then
15603 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15604 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'
15606 allow_undefined_flag_F77=' -expect_unresolved \*'
15607 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'
15609 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15610 hardcode_libdir_separator_F77=:
15613 osf4* | osf5*) # as osf3* with the addition of -msym flag
15614 if test "$GCC" = yes; then
15615 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15616 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'
15617 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15619 allow_undefined_flag_F77=' -expect_unresolved \*'
15620 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'
15621 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~
15622 $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'
15624 # Both c and cxx compiler support -rpath directly
15625 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15627 hardcode_libdir_separator_F77=:
15631 no_undefined_flag_F77=' -z text'
15632 if test "$GCC" = yes; then
15634 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15635 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15636 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15639 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15640 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15641 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15643 hardcode_libdir_flag_spec_F77='-R$libdir'
15644 hardcode_shlibpath_var_F77=no
15646 solaris2.[0-5] | solaris2.[0-5].*) ;;
15648 # The compiler driver will combine and reorder linker options,
15649 # but understands `-z linker_flag'. GCC discards it without `$wl',
15650 # but is careful enough not to reorder.
15651 # Supported since Solaris 2.6 (maybe 2.5.1?)
15652 if test "$GCC" = yes; then
15653 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15655 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15659 link_all_deplibs_F77=yes
15663 if test "x$host_vendor" = xsequent; then
15664 # Use $CC to link under sequent, because it throws in some extra .o
15665 # files that make .init and .fini sections work.
15666 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15668 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15670 hardcode_libdir_flag_spec_F77='-L$libdir'
15671 hardcode_direct_F77=yes
15672 hardcode_minus_L_F77=yes
15673 hardcode_shlibpath_var_F77=no
15677 case $host_vendor in
15679 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15680 hardcode_direct_F77=yes # is this really true???
15683 ## LD is ld it makes a PLAMLIB
15684 ## CC just makes a GrossModule.
15685 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15686 reload_cmds_F77='$CC -r -o $output$reload_objs'
15687 hardcode_direct_F77=no
15690 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15691 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15694 runpath_var='LD_RUN_PATH'
15695 hardcode_shlibpath_var_F77=no
15699 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15700 hardcode_shlibpath_var_F77=no
15701 export_dynamic_flag_spec_F77='-Bexport'
15705 if test -d /usr/nec; then
15706 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15707 hardcode_shlibpath_var_F77=no
15708 runpath_var=LD_RUN_PATH
15709 hardcode_runpath_var=yes
15714 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15715 no_undefined_flag_F77='${wl}-z,text'
15716 archive_cmds_need_lc_F77=no
15717 hardcode_shlibpath_var_F77=no
15718 runpath_var='LD_RUN_PATH'
15720 if test "$GCC" = yes; then
15721 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15722 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15724 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15725 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15729 sysv5* | sco3.2v5* | sco5v6*)
15730 # Note: We can NOT use -z defs as we might desire, because we do not
15731 # link with -lc, and that would cause any symbols used from libc to
15732 # always be unresolved, which means just about no library would
15733 # ever link correctly. If we're not using GNU ld we use -z text
15734 # though, which does catch some bad symbols but isn't as heavy-handed
15736 no_undefined_flag_F77='${wl}-z,text'
15737 allow_undefined_flag_F77='${wl}-z,nodefs'
15738 archive_cmds_need_lc_F77=no
15739 hardcode_shlibpath_var_F77=no
15740 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15741 hardcode_libdir_separator_F77=':'
15742 link_all_deplibs_F77=yes
15743 export_dynamic_flag_spec_F77='${wl}-Bexport'
15744 runpath_var='LD_RUN_PATH'
15746 if test "$GCC" = yes; then
15747 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15748 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15750 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15751 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15756 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15757 hardcode_libdir_flag_spec_F77='-L$libdir'
15758 hardcode_shlibpath_var_F77=no
15767 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15768 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15769 test "$ld_shlibs_F77" = no && can_build_shared=no
15772 # Do we need to explicitly link libc?
15774 case "x$archive_cmds_need_lc_F77" in
15776 # Assume -lc should be added
15777 archive_cmds_need_lc_F77=yes
15779 if test "$enable_shared" = yes && test "$GCC" = yes; then
15780 case $archive_cmds_F77 in
15782 # FIXME: we may have to deal with multi-command sequences.
15785 # Test whether the compiler implicitly links with -lc since on some
15786 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15787 # to ld, don't add -lc before -lgcc.
15788 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15789 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15794 (eval $ac_compile) 2>&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); } 2>conftest.err; then
15800 libobjs=conftest.$ac_objext
15802 wl=$lt_prog_compiler_wl_F77
15803 pic_flag=$lt_prog_compiler_pic_F77
15809 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15810 allow_undefined_flag_F77=
15811 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15812 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }
15817 archive_cmds_need_lc_F77=no
15819 archive_cmds_need_lc_F77=yes
15821 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15823 cat conftest.err 1>&5
15826 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15827 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15834 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15835 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15836 library_names_spec=
15837 libname_spec='lib$name'
15841 postuninstall_cmds=
15845 shlibpath_overrides_runpath=unknown
15847 dynamic_linker="$host_os ld.so"
15848 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15850 need_lib_prefix=unknown
15851 hardcode_into_libs=no
15853 # when you set need_version to no, make sure it does not cause -set_version
15854 # flags to be left without arguments
15855 need_version=unknown
15860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15861 shlibpath_var=LIBPATH
15863 # AIX 3 has no versioning support, so we append a major version to the name.
15864 soname_spec='${libname}${release}${shared_ext}$major'
15871 hardcode_into_libs=yes
15872 if test "$host_cpu" = ia64; then
15873 # AIX 5 supports IA64
15874 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15875 shlibpath_var=LD_LIBRARY_PATH
15877 # With GCC up to 2.95.x, collect2 would create an import file
15878 # for dependence libraries. The import file would start with
15879 # the line `#! .'. This would cause the generated library to
15880 # depend on `.', always an invalid library. This was fixed in
15881 # development snapshots of GCC prior to 3.0.
15883 aix4 | aix4.[01] | aix4.[01].*)
15884 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15886 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15889 can_build_shared=no
15893 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15894 # soname into executable. Probably we can add versioning support to
15895 # collect2, so additional links can be useful in future.
15896 if test "$aix_use_runtimelinking" = yes; then
15897 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15898 # instead of lib<name>.a to let people know that these are not
15899 # typical AIX shared libraries.
15900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15902 # We preserve .a as extension for shared libraries through AIX4.2
15903 # and later when we are not doing run time linking.
15904 library_names_spec='${libname}${release}.a $libname.a'
15905 soname_spec='${libname}${release}${shared_ext}$major'
15907 shlibpath_var=LIBPATH
15912 library_names_spec='$libname.ixlibrary $libname.a'
15913 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15914 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'
15918 library_names_spec='${libname}${shared_ext}'
15919 dynamic_linker="$host_os ld.so"
15920 shlibpath_var=LIBRARY_PATH
15926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927 soname_spec='${libname}${release}${shared_ext}$major'
15928 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15929 shlibpath_var=LD_LIBRARY_PATH
15930 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15931 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15932 # the default ld.so.conf also contains /usr/contrib/lib and
15933 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15934 # libtool to hard-code these into programs
15937 cygwin* | mingw* | pw32*)
15938 version_type=windows
15943 case $GCC,$host_os in
15944 yes,cygwin* | yes,mingw* | yes,pw32*)
15945 library_names_spec='$libname.dll.a'
15946 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15947 postinstall_cmds='base_file=`basename \${file}`~
15948 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15949 dldir=$destdir/`dirname \$dlpath`~
15950 test -d \$dldir || mkdir -p \$dldir~
15951 $install_prog $dir/$dlname \$dldir/$dlname~
15952 chmod a+x \$dldir/$dlname'
15953 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15954 dlpath=$dir/\$dldll~
15956 shlibpath_overrides_runpath=yes
15960 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15961 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15962 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15965 # MinGW DLLs use traditional 'lib' prefix
15966 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15967 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15968 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15969 # It is most probably a Windows format PATH printed by
15970 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15971 # path with ; separators, and with drive letters. We can handle the
15972 # drive letters (cygwin fileutils understands them), so leave them,
15973 # especially as we might pass files found there to a mingw objdump,
15974 # which wouldn't understand a cygwinified path. Ahh.
15975 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15977 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15981 # pw32 DLLs use 'pw' prefix rather than 'lib'
15982 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15988 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15991 dynamic_linker='Win32 ld.exe'
15992 # FIXME: first we should search . and the directory the executable is in
15996 darwin* | rhapsody*)
15997 dynamic_linker="$host_os dyld"
15998 version_type=darwin
16001 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16002 soname_spec='${libname}${release}${major}$shared_ext'
16003 shlibpath_overrides_runpath=yes
16004 shlibpath_var=DYLD_LIBRARY_PATH
16005 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16007 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16015 soname_spec='${libname}${release}${shared_ext}$major'
16016 shlibpath_var=LD_LIBRARY_PATH
16023 freebsd* | dragonfly*)
16024 # DragonFly does not have aout. When/if they implement a new
16025 # versioning mechanism, adjust this.
16026 if test -x /usr/bin/objformat; then
16027 objformat=`/usr/bin/objformat`
16030 freebsd[123]*) objformat=aout ;;
16031 *) objformat=elf ;;
16034 version_type=freebsd-$objformat
16035 case $version_type in
16037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16042 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16046 shlibpath_var=LD_LIBRARY_PATH
16049 shlibpath_overrides_runpath=yes
16051 freebsd3.[01]* | freebsdelf3.[01]*)
16052 shlibpath_overrides_runpath=yes
16053 hardcode_into_libs=yes
16055 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16056 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16057 shlibpath_overrides_runpath=no
16058 hardcode_into_libs=yes
16060 *) # from 4.6 on, and DragonFly
16061 shlibpath_overrides_runpath=yes
16062 hardcode_into_libs=yes
16071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16072 soname_spec='${libname}${release}${shared_ext}$major'
16073 shlibpath_var=LD_LIBRARY_PATH
16074 hardcode_into_libs=yes
16077 hpux9* | hpux10* | hpux11*)
16078 # Give a soname corresponding to the major version so that dld.sl refuses to
16079 # link against other versions.
16086 hardcode_into_libs=yes
16087 dynamic_linker="$host_os dld.so"
16088 shlibpath_var=LD_LIBRARY_PATH
16089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16091 soname_spec='${libname}${release}${shared_ext}$major'
16092 if test "X$HPUX_IA64_MODE" = X32; then
16093 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16095 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16097 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16101 hardcode_into_libs=yes
16102 dynamic_linker="$host_os dld.sl"
16103 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16106 soname_spec='${libname}${release}${shared_ext}$major'
16107 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16112 dynamic_linker="$host_os dld.sl"
16113 shlibpath_var=SHLIB_PATH
16114 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16116 soname_spec='${libname}${release}${shared_ext}$major'
16119 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16120 postinstall_cmds='chmod 555 $lib'
16127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16128 soname_spec='${libname}${release}${shared_ext}$major'
16129 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16130 shlibpath_var=LD_LIBRARY_PATH
16131 shlibpath_overrides_runpath=no
16132 hardcode_into_libs=yes
16135 irix5* | irix6* | nonstopux*)
16137 nonstopux*) version_type=nonstopux ;;
16139 if test "$lt_cv_prog_gnu_ld" = yes; then
16147 soname_spec='${libname}${release}${shared_ext}$major'
16148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16150 irix5* | nonstopux*)
16151 libsuff= shlibsuff=
16154 case $LD in # libtool.m4 will add one of these switches to LD
16155 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16156 libsuff= shlibsuff= libmagic=32-bit;;
16157 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16158 libsuff=32 shlibsuff=N32 libmagic=N32;;
16159 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16160 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16161 *) libsuff= shlibsuff= libmagic=never-match;;
16165 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16166 shlibpath_overrides_runpath=no
16167 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16168 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16169 hardcode_into_libs=yes
16172 # No shared lib support for Linux oldld, aout, or coff.
16173 linux*oldld* | linux*aout* | linux*coff*)
16177 # This must be Linux ELF.
16178 linux* | k*bsd*-gnu)
16182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16183 soname_spec='${libname}${release}${shared_ext}$major'
16184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16185 shlibpath_var=LD_LIBRARY_PATH
16186 shlibpath_overrides_runpath=no
16187 # This implies no fast_install, which is unacceptable.
16188 # Some rework will be needed to allow for fast_install
16189 # before this can be enabled.
16190 hardcode_into_libs=yes
16192 # Append ld.so.conf contents to the search path
16193 if test -f /etc/ld.so.conf; then
16194 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16195 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16198 # We used to test for /lib/ld.so.1 and disable shared libraries on
16199 # powerpc, because MkLinux only supported shared libraries with the
16200 # GNU dynamic linker. Since this was broken with cross compilers,
16201 # most powerpc-linux boxes support dynamic linking these days and
16202 # people can always --disable-shared, the test was removed, and we
16203 # assume the GNU/Linux dynamic linker is in use.
16204 dynamic_linker='GNU/Linux ld.so'
16211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16212 soname_spec='${libname}${release}${shared_ext}$major'
16213 shlibpath_var=LD_LIBRARY_PATH
16214 shlibpath_overrides_runpath=no
16215 hardcode_into_libs=yes
16216 dynamic_linker='NetBSD ld.elf_so'
16223 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16226 dynamic_linker='NetBSD (a.out) ld.so'
16228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16229 soname_spec='${libname}${release}${shared_ext}$major'
16230 dynamic_linker='NetBSD ld.elf_so'
16232 shlibpath_var=LD_LIBRARY_PATH
16233 shlibpath_overrides_runpath=yes
16234 hardcode_into_libs=yes
16239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16240 shlibpath_var=LD_LIBRARY_PATH
16241 shlibpath_overrides_runpath=yes
16248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249 soname_spec='${libname}${release}${shared_ext}$major'
16250 shlibpath_var=LD_LIBRARY_PATH
16251 shlibpath_overrides_runpath=yes
16256 sys_lib_dlsearch_path_spec="/usr/lib"
16258 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16260 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16261 *) need_version=no ;;
16263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16265 shlibpath_var=LD_LIBRARY_PATH
16266 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16268 openbsd2.[89] | openbsd2.[89].*)
16269 shlibpath_overrides_runpath=no
16272 shlibpath_overrides_runpath=yes
16276 shlibpath_overrides_runpath=yes
16281 libname_spec='$name'
16284 library_names_spec='$libname${shared_ext} $libname.a'
16285 dynamic_linker='OS/2 ld.exe'
16286 shlibpath_var=LIBPATH
16289 osf3* | osf4* | osf5*)
16293 soname_spec='${libname}${release}${shared_ext}$major'
16294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16295 shlibpath_var=LD_LIBRARY_PATH
16296 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16297 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16309 soname_spec='${libname}${release}${shared_ext}$major'
16310 shlibpath_var=LD_LIBRARY_PATH
16311 shlibpath_overrides_runpath=yes
16312 hardcode_into_libs=yes
16313 # ldd complains unless libraries are executable
16314 postinstall_cmds='chmod +x $lib'
16319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16320 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16321 shlibpath_var=LD_LIBRARY_PATH
16322 shlibpath_overrides_runpath=yes
16323 if test "$with_gnu_ld" = yes; then
16331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332 soname_spec='${libname}${release}${shared_ext}$major'
16333 shlibpath_var=LD_LIBRARY_PATH
16334 case $host_vendor in
16336 shlibpath_overrides_runpath=no
16338 export_dynamic_flag_spec='${wl}-Blargedynsym'
16339 runpath_var=LD_RUN_PATH
16347 shlibpath_overrides_runpath=no
16348 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16354 if test -d /usr/nec ;then
16356 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16357 soname_spec='$libname${shared_ext}.$major'
16358 shlibpath_var=LD_LIBRARY_PATH
16362 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16363 version_type=freebsd-elf
16366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16367 soname_spec='${libname}${release}${shared_ext}$major'
16368 shlibpath_var=LD_LIBRARY_PATH
16369 hardcode_into_libs=yes
16370 if test "$with_gnu_ld" = yes; then
16371 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16372 shlibpath_overrides_runpath=no
16374 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16375 shlibpath_overrides_runpath=yes
16378 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16382 sys_lib_dlsearch_path_spec='/usr/lib'
16387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388 soname_spec='${libname}${release}${shared_ext}$major'
16389 shlibpath_var=LD_LIBRARY_PATH
16396 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16397 echo "${ECHO_T}$dynamic_linker" >&6; }
16398 test "$dynamic_linker" = no && can_build_shared=no
16400 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16401 echo $ECHO_N "(cached) $ECHO_C" >&6
16403 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16406 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16407 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16408 echo $ECHO_N "(cached) $ECHO_C" >&6
16410 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16413 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16415 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16416 if test "$GCC" = yes; then
16417 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16420 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16421 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16422 hardcode_action_F77=
16423 if test -n "$hardcode_libdir_flag_spec_F77" || \
16424 test -n "$runpath_var_F77" || \
16425 test "X$hardcode_automatic_F77" = "Xyes" ; then
16427 # We can hardcode non-existant directories.
16428 if test "$hardcode_direct_F77" != no &&
16429 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16430 # have to relink, otherwise we might link with an installed library
16431 # when we should be linking with a yet-to-be-installed one
16432 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16433 test "$hardcode_minus_L_F77" != no; then
16434 # Linking always hardcodes the temporary library directory.
16435 hardcode_action_F77=relink
16437 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16438 hardcode_action_F77=immediate
16441 # We cannot hardcode anything, or else we can only hardcode existing
16443 hardcode_action_F77=unsupported
16445 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16446 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16448 if test "$hardcode_action_F77" = relink; then
16449 # Fast installation is not supported
16450 enable_fast_install=no
16451 elif test "$shlibpath_overrides_runpath" = yes ||
16452 test "$enable_shared" = no; then
16453 # Fast installation is not necessary
16454 enable_fast_install=needless
16458 # The else clause should only fire when bootstrapping the
16459 # libtool distribution, otherwise you forgot to ship ltmain.sh
16460 # with your package, and you will get complaints that there are
16461 # no rules to generate ltmain.sh.
16462 if test -f "$ltmain"; then
16463 # See if we are running on zsh, and set the options which allow our commands through
16464 # without removal of \ escapes.
16465 if test -n "${ZSH_VERSION+set}" ; then
16466 setopt NO_GLOB_SUBST
16468 # Now quote all the things that may contain metacharacters while being
16469 # careful not to overquote the AC_SUBSTed values. We take copies of the
16470 # variables and quote the copies for generation of the libtool script.
16471 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16473 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16474 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16475 deplibs_check_method reload_flag reload_cmds need_locks \
16476 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16477 lt_cv_sys_global_symbol_to_c_name_address \
16478 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16479 old_postinstall_cmds old_postuninstall_cmds \
16483 lt_prog_compiler_wl_F77 \
16484 lt_prog_compiler_pic_F77 \
16485 lt_prog_compiler_static_F77 \
16486 lt_prog_compiler_no_builtin_flag_F77 \
16487 export_dynamic_flag_spec_F77 \
16488 thread_safe_flag_spec_F77 \
16489 whole_archive_flag_spec_F77 \
16490 enable_shared_with_static_runtimes_F77 \
16491 old_archive_cmds_F77 \
16492 old_archive_from_new_cmds_F77 \
16493 predep_objects_F77 \
16494 postdep_objects_F77 \
16497 compiler_lib_search_path_F77 \
16498 compiler_lib_search_dirs_F77 \
16500 archive_expsym_cmds_F77 \
16501 postinstall_cmds_F77 \
16502 postuninstall_cmds_F77 \
16503 old_archive_from_expsyms_cmds_F77 \
16504 allow_undefined_flag_F77 \
16505 no_undefined_flag_F77 \
16506 export_symbols_cmds_F77 \
16507 hardcode_libdir_flag_spec_F77 \
16508 hardcode_libdir_flag_spec_ld_F77 \
16509 hardcode_libdir_separator_F77 \
16510 hardcode_automatic_F77 \
16512 module_expsym_cmds_F77 \
16513 lt_cv_prog_compiler_c_o_F77 \
16514 fix_srcfile_path_F77 \
16515 exclude_expsyms_F77 \
16516 include_expsyms_F77; do
16519 old_archive_cmds_F77 | \
16520 old_archive_from_new_cmds_F77 | \
16521 archive_cmds_F77 | \
16522 archive_expsym_cmds_F77 | \
16523 module_cmds_F77 | \
16524 module_expsym_cmds_F77 | \
16525 old_archive_from_expsyms_cmds_F77 | \
16526 export_symbols_cmds_F77 | \
16527 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16528 postinstall_cmds | postuninstall_cmds | \
16529 old_postinstall_cmds | old_postuninstall_cmds | \
16530 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16531 # Double-quote double-evaled strings.
16532 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16535 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16541 *'\$0 --fallback-echo"')
16542 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16548 cat <<__EOF__ >> "$cfgfile"
16549 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16551 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16553 # Shell to use when invoking shell scripts.
16556 # Whether or not to build shared libraries.
16557 build_libtool_libs=$enable_shared
16559 # Whether or not to build static libraries.
16560 build_old_libs=$enable_static
16562 # Whether or not to add -lc for building shared libraries.
16563 build_libtool_need_lc=$archive_cmds_need_lc_F77
16565 # Whether or not to disallow shared libs when runtime libs are static
16566 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16568 # Whether or not to optimize for fast installation.
16569 fast_install=$enable_fast_install
16572 host_alias=$host_alias
16576 # The build system.
16577 build_alias=$build_alias
16581 # An echo program that does not interpret backslashes.
16586 AR_FLAGS=$lt_AR_FLAGS
16591 # LTCC compiler flags.
16592 LTCFLAGS=$lt_LTCFLAGS
16594 # A language-specific compiler.
16595 CC=$lt_compiler_F77
16597 # Is the compiler the GNU C compiler?
16603 # The linker used to build libraries.
16606 # Whether we need hard or soft links.
16609 # A BSD-compatible nm program.
16612 # A symbol stripping program
16615 # Used to examine libraries when file_magic_cmd begins "file"
16616 MAGIC_CMD=$MAGIC_CMD
16618 # Used on cygwin: DLL creation program.
16621 # Used on cygwin: object dumper.
16624 # Used on cygwin: assembler.
16627 # The name of the directory that contains temporary libtool files.
16630 # How to create reloadable object files.
16631 reload_flag=$lt_reload_flag
16632 reload_cmds=$lt_reload_cmds
16634 # How to pass a linker flag through the compiler.
16635 wl=$lt_lt_prog_compiler_wl_F77
16637 # Object file suffix (normally "o").
16638 objext="$ac_objext"
16640 # Old archive suffix (normally "a").
16643 # Shared library suffix (normally ".so").
16644 shrext_cmds='$shrext_cmds'
16646 # Executable file suffix (normally "").
16649 # Additional compiler flags for building library objects.
16650 pic_flag=$lt_lt_prog_compiler_pic_F77
16653 # What is the maximum length of a command?
16654 max_cmd_len=$lt_cv_sys_max_cmd_len
16656 # Does compiler simultaneously support -c and -o options?
16657 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16659 # Must we lock files when doing compilation?
16660 need_locks=$lt_need_locks
16662 # Do we need the lib prefix for modules?
16663 need_lib_prefix=$need_lib_prefix
16665 # Do we need a version for libraries?
16666 need_version=$need_version
16668 # Whether dlopen is supported.
16669 dlopen_support=$enable_dlopen
16671 # Whether dlopen of programs is supported.
16672 dlopen_self=$enable_dlopen_self
16674 # Whether dlopen of statically linked programs is supported.
16675 dlopen_self_static=$enable_dlopen_self_static
16677 # Compiler flag to prevent dynamic linking.
16678 link_static_flag=$lt_lt_prog_compiler_static_F77
16680 # Compiler flag to turn off builtin functions.
16681 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16683 # Compiler flag to allow reflexive dlopens.
16684 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16686 # Compiler flag to generate shared objects directly from archives.
16687 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16689 # Compiler flag to generate thread-safe objects.
16690 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16692 # Library versioning type.
16693 version_type=$version_type
16695 # Format of library name prefix.
16696 libname_spec=$lt_libname_spec
16698 # List of archive names. First name is the real one, the rest are links.
16699 # The last name is the one that the linker finds with -lNAME.
16700 library_names_spec=$lt_library_names_spec
16702 # The coded name of the library, if different from the real name.
16703 soname_spec=$lt_soname_spec
16705 # Commands used to build and install an old-style archive.
16707 old_archive_cmds=$lt_old_archive_cmds_F77
16708 old_postinstall_cmds=$lt_old_postinstall_cmds
16709 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16711 # Create an old-style archive from a shared archive.
16712 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16714 # Create a temporary old-style archive to link instead of a shared archive.
16715 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16717 # Commands used to build and install a shared archive.
16718 archive_cmds=$lt_archive_cmds_F77
16719 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16720 postinstall_cmds=$lt_postinstall_cmds
16721 postuninstall_cmds=$lt_postuninstall_cmds
16723 # Commands used to build a loadable module (assumed same as above if empty)
16724 module_cmds=$lt_module_cmds_F77
16725 module_expsym_cmds=$lt_module_expsym_cmds_F77
16727 # Commands to strip libraries.
16728 old_striplib=$lt_old_striplib
16729 striplib=$lt_striplib
16731 # Dependencies to place before the objects being linked to create a
16733 predep_objects=$lt_predep_objects_F77
16735 # Dependencies to place after the objects being linked to create a
16737 postdep_objects=$lt_postdep_objects_F77
16739 # Dependencies to place before the objects being linked to create a
16741 predeps=$lt_predeps_F77
16743 # Dependencies to place after the objects being linked to create a
16745 postdeps=$lt_postdeps_F77
16747 # The directories searched by this compiler when creating a shared
16749 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16751 # The library search path used internally by the compiler when linking
16752 # a shared library.
16753 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16755 # Method to check whether dependent libraries are shared objects.
16756 deplibs_check_method=$lt_deplibs_check_method
16758 # Command to use when deplibs_check_method == file_magic.
16759 file_magic_cmd=$lt_file_magic_cmd
16761 # Flag that allows shared libraries with undefined symbols to be built.
16762 allow_undefined_flag=$lt_allow_undefined_flag_F77
16764 # Flag that forces no undefined symbols.
16765 no_undefined_flag=$lt_no_undefined_flag_F77
16767 # Commands used to finish a libtool library installation in a directory.
16768 finish_cmds=$lt_finish_cmds
16770 # Same as above, but a single script fragment to be evaled but not shown.
16771 finish_eval=$lt_finish_eval
16773 # Take the output of nm and produce a listing of raw symbols and C names.
16774 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16776 # Transform the output of nm in a proper C declaration
16777 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16779 # Transform the output of nm in a C name address pair
16780 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16782 # This is the shared library runtime path variable.
16783 runpath_var=$runpath_var
16785 # This is the shared library path variable.
16786 shlibpath_var=$shlibpath_var
16788 # Is shlibpath searched before the hard-coded library search path?
16789 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16791 # How to hardcode a shared library path into an executable.
16792 hardcode_action=$hardcode_action_F77
16794 # Whether we should hardcode library paths into libraries.
16795 hardcode_into_libs=$hardcode_into_libs
16797 # Flag to hardcode \$libdir into a binary during linking.
16798 # This must work even if \$libdir does not exist.
16799 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16801 # If ld is used when linking, flag to hardcode \$libdir into
16802 # a binary during linking. This must work even if \$libdir does
16804 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16806 # Whether we need a single -rpath flag with a separated argument.
16807 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16809 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16810 # resulting binary.
16811 hardcode_direct=$hardcode_direct_F77
16813 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16814 # resulting binary.
16815 hardcode_minus_L=$hardcode_minus_L_F77
16817 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16818 # the resulting binary.
16819 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16821 # Set to yes if building a shared library automatically hardcodes DIR into the library
16822 # and all subsequent libraries and executables linked against it.
16823 hardcode_automatic=$hardcode_automatic_F77
16825 # Variables whose values should be saved in libtool wrapper scripts and
16826 # restored at relink time.
16827 variables_saved_for_relink="$variables_saved_for_relink"
16829 # Whether libtool must link a program against all its dependency libraries.
16830 link_all_deplibs=$link_all_deplibs_F77
16832 # Compile-time system search path for libraries
16833 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16835 # Run-time system search path for libraries
16836 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16838 # Fix the shell variable \$srcfile for the compiler.
16839 fix_srcfile_path=$lt_fix_srcfile_path
16841 # Set to yes if exported symbols are required.
16842 always_export_symbols=$always_export_symbols_F77
16844 # The commands to list exported symbols.
16845 export_symbols_cmds=$lt_export_symbols_cmds_F77
16847 # The commands to extract the exported symbol list from a shared archive.
16848 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16850 # Symbols that should not be listed in the preloaded symbols.
16851 exclude_expsyms=$lt_exclude_expsyms_F77
16853 # Symbols that must always be exported.
16854 include_expsyms=$lt_include_expsyms_F77
16856 # ### END LIBTOOL TAG CONFIG: $tagname
16862 # If there is no Makefile yet, we rely on a make rule to execute
16863 # `config.status --recheck' to rerun these tests and create the
16864 # libtool script then.
16865 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16866 if test -f "$ltmain_in"; then
16867 test -f Makefile && make "$ltmain"
16873 ac_cpp='$CPP $CPPFLAGS'
16874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16886 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16889 # Source file extension for Java test sources.
16892 # Object file extension for compiled Java test sources.
16896 # Code to be used in simple compile tests
16897 lt_simple_compile_test_code="class foo {}"
16899 # Code to be used in simple link tests
16900 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16902 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16904 # If no C compiler was specified, use CC.
16907 # If no C compiler flags were specified, use CFLAGS.
16908 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16910 # Allow CC to be a program name with arguments.
16914 # save warnings/boilerplate of simple test code
16915 ac_outfile=conftest.$ac_objext
16916 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16917 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16918 _lt_compiler_boilerplate=`cat conftest.err`
16921 ac_outfile=conftest.$ac_objext
16922 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16923 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16924 _lt_linker_boilerplate=`cat conftest.err`
16928 # Allow CC to be a program name with arguments.
16933 for cc_temp in $compiler""; do
16935 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16936 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16941 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16944 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16945 archive_cmds_need_lc_GCJ=no
16947 old_archive_cmds_GCJ=$old_archive_cmds
16950 lt_prog_compiler_no_builtin_flag_GCJ=
16952 if test "$GCC" = yes; then
16953 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16956 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16957 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16958 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16959 echo $ECHO_N "(cached) $ECHO_C" >&6
16961 lt_cv_prog_compiler_rtti_exceptions=no
16962 ac_outfile=conftest.$ac_objext
16963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16964 lt_compiler_flag="-fno-rtti -fno-exceptions"
16965 # Insert the option either (1) after the last *FLAGS variable, or
16966 # (2) before a word containing "conftest.", or (3) at the end.
16967 # Note that $ac_compile itself does not contain backslashes and begins
16968 # with a dollar sign (not a hyphen), so the echo should work correctly.
16969 # The option is referenced via a variable to avoid confusing sed.
16970 lt_compile=`echo "$ac_compile" | $SED \
16971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16973 -e 's:$: $lt_compiler_flag:'`
16974 (eval echo "\"\$as_me:16974: $lt_compile\"" >&5)
16975 (eval "$lt_compile" 2>conftest.err)
16977 cat conftest.err >&5
16978 echo "$as_me:16978: \$? = $ac_status" >&5
16979 if (exit $ac_status) && test -s "$ac_outfile"; then
16980 # The compiler can only warn and ignore the option if not recognized
16981 # So say no if there are warnings other than the usual output.
16982 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16984 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16985 lt_cv_prog_compiler_rtti_exceptions=yes
16991 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16992 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16994 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16995 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17002 lt_prog_compiler_wl_GCJ=
17003 lt_prog_compiler_pic_GCJ=
17004 lt_prog_compiler_static_GCJ=
17006 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17007 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17009 if test "$GCC" = yes; then
17010 lt_prog_compiler_wl_GCJ='-Wl,'
17011 lt_prog_compiler_static_GCJ='-static'
17015 # All AIX code is PIC.
17016 if test "$host_cpu" = ia64; then
17017 # AIX 5 now supports IA64 processor
17018 lt_prog_compiler_static_GCJ='-Bstatic'
17023 # FIXME: we need at least 68020 code to build shared libraries, but
17024 # adding the `-m68020' flag to GCC prevents building anything better,
17026 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17029 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17030 # PIC is the default for these OSes.
17033 mingw* | cygwin* | pw32* | os2*)
17034 # This hack is so that the source file can tell whether it is being
17035 # built for inclusion in a dll (and should export symbols for example).
17036 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17037 # (--disable-auto-import) libraries
17041 darwin* | rhapsody*)
17042 # PIC is the default on this platform
17043 # Common symbols not allowed in MH_DYLIB files
17044 lt_prog_compiler_pic_GCJ='-fno-common'
17048 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17049 # Instead, we relocate shared libraries at runtime.
17053 # Just because we use GCC doesn't mean we suddenly get shared libraries
17054 # on systems that don't support them.
17055 lt_prog_compiler_can_build_shared_GCJ=no
17060 if test -d /usr/nec; then
17061 lt_prog_compiler_pic_GCJ=-Kconform_pic
17066 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17067 # not for PA HP-UX.
17073 lt_prog_compiler_pic_GCJ='-fPIC'
17079 lt_prog_compiler_pic_GCJ='-fPIC'
17083 # PORTME Check for flag to pass linker flags through the system compiler.
17086 lt_prog_compiler_wl_GCJ='-Wl,'
17087 if test "$host_cpu" = ia64; then
17088 # AIX 5 now supports IA64 processor
17089 lt_prog_compiler_static_GCJ='-Bstatic'
17091 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17095 # PIC is the default on this platform
17096 # Common symbols not allowed in MH_DYLIB files
17097 case $cc_basename in
17099 lt_prog_compiler_pic_GCJ='-qnocommon'
17100 lt_prog_compiler_wl_GCJ='-Wl,'
17105 mingw* | cygwin* | pw32* | os2*)
17106 # This hack is so that the source file can tell whether it is being
17107 # built for inclusion in a dll (and should export symbols for example).
17111 hpux9* | hpux10* | hpux11*)
17112 lt_prog_compiler_wl_GCJ='-Wl,'
17113 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17114 # not for PA HP-UX.
17120 lt_prog_compiler_pic_GCJ='+Z'
17123 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17124 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17127 irix5* | irix6* | nonstopux*)
17128 lt_prog_compiler_wl_GCJ='-Wl,'
17129 # PIC (with -KPIC) is the default.
17130 lt_prog_compiler_static_GCJ='-non_shared'
17134 lt_prog_compiler_pic_GCJ='-KPIC'
17135 lt_prog_compiler_static_GCJ='-Bstatic'
17138 linux* | k*bsd*-gnu)
17139 case $cc_basename in
17141 lt_prog_compiler_wl_GCJ='-Wl,'
17142 lt_prog_compiler_pic_GCJ='-KPIC'
17143 lt_prog_compiler_static_GCJ='-static'
17145 pgcc* | pgf77* | pgf90* | pgf95*)
17146 # Portland Group compilers (*not* the Pentium gcc compiler,
17147 # which looks to be a dead project)
17148 lt_prog_compiler_wl_GCJ='-Wl,'
17149 lt_prog_compiler_pic_GCJ='-fpic'
17150 lt_prog_compiler_static_GCJ='-Bstatic'
17153 lt_prog_compiler_wl_GCJ='-Wl,'
17154 # All Alpha code is PIC.
17155 lt_prog_compiler_static_GCJ='-non_shared'
17158 case `$CC -V 2>&1 | sed 5q` in
17161 lt_prog_compiler_pic_GCJ='-KPIC'
17162 lt_prog_compiler_static_GCJ='-Bstatic'
17163 lt_prog_compiler_wl_GCJ='-Wl,'
17166 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17167 lt_prog_compiler_pic_GCJ='-KPIC'
17168 lt_prog_compiler_static_GCJ='-Bstatic'
17169 lt_prog_compiler_wl_GCJ=''
17176 osf3* | osf4* | osf5*)
17177 lt_prog_compiler_wl_GCJ='-Wl,'
17178 # All OSF/1 code is PIC.
17179 lt_prog_compiler_static_GCJ='-non_shared'
17183 lt_prog_compiler_static_GCJ='-non_shared'
17187 lt_prog_compiler_pic_GCJ='-KPIC'
17188 lt_prog_compiler_static_GCJ='-Bstatic'
17189 case $cc_basename in
17190 f77* | f90* | f95*)
17191 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17193 lt_prog_compiler_wl_GCJ='-Wl,';;
17198 lt_prog_compiler_wl_GCJ='-Qoption ld '
17199 lt_prog_compiler_pic_GCJ='-PIC'
17200 lt_prog_compiler_static_GCJ='-Bstatic'
17203 sysv4 | sysv4.2uw2* | sysv4.3*)
17204 lt_prog_compiler_wl_GCJ='-Wl,'
17205 lt_prog_compiler_pic_GCJ='-KPIC'
17206 lt_prog_compiler_static_GCJ='-Bstatic'
17210 if test -d /usr/nec ;then
17211 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17212 lt_prog_compiler_static_GCJ='-Bstatic'
17216 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17217 lt_prog_compiler_wl_GCJ='-Wl,'
17218 lt_prog_compiler_pic_GCJ='-KPIC'
17219 lt_prog_compiler_static_GCJ='-Bstatic'
17223 lt_prog_compiler_wl_GCJ='-Wl,'
17224 lt_prog_compiler_can_build_shared_GCJ=no
17228 lt_prog_compiler_pic_GCJ='-pic'
17229 lt_prog_compiler_static_GCJ='-Bstatic'
17233 lt_prog_compiler_can_build_shared_GCJ=no
17238 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17239 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17242 # Check to make sure the PIC flag actually works.
17244 if test -n "$lt_prog_compiler_pic_GCJ"; then
17246 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17247 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17248 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
17251 lt_cv_prog_compiler_pic_works_GCJ=no
17252 ac_outfile=conftest.$ac_objext
17253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17254 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17255 # Insert the option either (1) after the last *FLAGS variable, or
17256 # (2) before a word containing "conftest.", or (3) at the end.
17257 # Note that $ac_compile itself does not contain backslashes and begins
17258 # with a dollar sign (not a hyphen), so the echo should work correctly.
17259 # The option is referenced via a variable to avoid confusing sed.
17260 lt_compile=`echo "$ac_compile" | $SED \
17261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17263 -e 's:$: $lt_compiler_flag:'`
17264 (eval echo "\"\$as_me:17264: $lt_compile\"" >&5)
17265 (eval "$lt_compile" 2>conftest.err)
17267 cat conftest.err >&5
17268 echo "$as_me:17268: \$? = $ac_status" >&5
17269 if (exit $ac_status) && test -s "$ac_outfile"; then
17270 # The compiler can only warn and ignore the option if not recognized
17271 # So say no if there are warnings other than the usual output.
17272 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17274 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17275 lt_cv_prog_compiler_pic_works_GCJ=yes
17281 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17282 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17284 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17285 case $lt_prog_compiler_pic_GCJ in
17287 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17290 lt_prog_compiler_pic_GCJ=
17291 lt_prog_compiler_can_build_shared_GCJ=no
17296 # For platforms which do not support PIC, -DPIC is meaningless:
17298 lt_prog_compiler_pic_GCJ=
17301 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17306 # Check to make sure the static flag actually works.
17308 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17309 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17310 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17311 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17312 echo $ECHO_N "(cached) $ECHO_C" >&6
17314 lt_cv_prog_compiler_static_works_GCJ=no
17315 save_LDFLAGS="$LDFLAGS"
17316 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17317 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17318 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17319 # The linker can only warn and ignore the option if not recognized
17320 # So say no if there are warnings
17321 if test -s conftest.err; then
17322 # Append any errors to the config.log.
17323 cat conftest.err 1>&5
17324 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17326 if diff conftest.exp conftest.er2 >/dev/null; then
17327 lt_cv_prog_compiler_static_works_GCJ=yes
17330 lt_cv_prog_compiler_static_works_GCJ=yes
17334 LDFLAGS="$save_LDFLAGS"
17337 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17338 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17340 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17343 lt_prog_compiler_static_GCJ=
17347 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17348 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17349 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17350 echo $ECHO_N "(cached) $ECHO_C" >&6
17352 lt_cv_prog_compiler_c_o_GCJ=no
17353 $rm -r conftest 2>/dev/null
17357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17359 lt_compiler_flag="-o out/conftest2.$ac_objext"
17360 # Insert the option either (1) after the last *FLAGS variable, or
17361 # (2) before a word containing "conftest.", or (3) at the end.
17362 # Note that $ac_compile itself does not contain backslashes and begins
17363 # with a dollar sign (not a hyphen), so the echo should work correctly.
17364 lt_compile=`echo "$ac_compile" | $SED \
17365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17367 -e 's:$: $lt_compiler_flag:'`
17368 (eval echo "\"\$as_me:17368: $lt_compile\"" >&5)
17369 (eval "$lt_compile" 2>out/conftest.err)
17371 cat out/conftest.err >&5
17372 echo "$as_me:17372: \$? = $ac_status" >&5
17373 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17375 # The compiler can only warn and ignore the option if not recognized
17376 # So say no if there are warnings
17377 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17378 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17379 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17380 lt_cv_prog_compiler_c_o_GCJ=yes
17385 # SGI C++ compiler will create directory out/ii_files/ for
17386 # template instantiation
17387 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17388 $rm out/* && rmdir out
17394 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17395 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17398 hard_links="nottested"
17399 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17400 # do not overwrite the value of need_locks provided by the user
17401 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17402 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17405 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17407 ln conftest.a conftest.b 2>&5 || hard_links=no
17408 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17409 { echo "$as_me:$LINENO: result: $hard_links" >&5
17410 echo "${ECHO_T}$hard_links" >&6; }
17411 if test "$hard_links" = no; then
17412 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17413 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17420 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17421 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17424 allow_undefined_flag_GCJ=
17425 enable_shared_with_static_runtimes_GCJ=no
17427 archive_expsym_cmds_GCJ=
17428 old_archive_From_new_cmds_GCJ=
17429 old_archive_from_expsyms_cmds_GCJ=
17430 export_dynamic_flag_spec_GCJ=
17431 whole_archive_flag_spec_GCJ=
17432 thread_safe_flag_spec_GCJ=
17433 hardcode_libdir_flag_spec_GCJ=
17434 hardcode_libdir_flag_spec_ld_GCJ=
17435 hardcode_libdir_separator_GCJ=
17436 hardcode_direct_GCJ=no
17437 hardcode_minus_L_GCJ=no
17438 hardcode_shlibpath_var_GCJ=unsupported
17439 link_all_deplibs_GCJ=unknown
17440 hardcode_automatic_GCJ=no
17442 module_expsym_cmds_GCJ=
17443 always_export_symbols_GCJ=no
17444 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17445 # include_expsyms should be a list of space-separated symbols to be *always*
17446 # included in the symbol list
17447 include_expsyms_GCJ=
17448 # exclude_expsyms can be an extended regexp of symbols to exclude
17449 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17450 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17451 # as well as any symbol that contains `d'.
17452 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17453 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17454 # platforms (ab)use it in PIC code, but their linkers get confused if
17455 # the symbol is explicitly referenced. Since portable code cannot
17456 # rely on this symbol name, it's probably fine to never include it in
17457 # preloaded symbol tables.
17458 # Exclude shared library initialization/finalization symbols.
17459 extract_expsyms_cmds=
17460 # Just being paranoid about ensuring that cc_basename is set.
17461 for cc_temp in $compiler""; do
17463 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17464 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17469 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17472 cygwin* | mingw* | pw32*)
17473 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17474 # When not using gcc, we currently assume that we are using
17475 # Microsoft Visual C++.
17476 if test "$GCC" != yes; then
17481 # we just hope/assume this is gcc and not c89 (= MSVC++)
17490 if test "$with_gnu_ld" = yes; then
17491 # If archive_cmds runs LD, not CC, wlarc should be empty
17494 # Set some defaults for GNU ld with shared library support. These
17495 # are reset later if shared libraries are not supported. Putting them
17496 # here allows them to be overridden if necessary.
17497 runpath_var=LD_RUN_PATH
17498 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17499 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17500 # ancient GNU ld didn't support --whole-archive et. al.
17501 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17502 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17504 whole_archive_flag_spec_GCJ=
17506 supports_anon_versioning=no
17507 case `$LD -v 2>/dev/null` in
17508 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17509 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17510 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17511 *\ 2.11.*) ;; # other 2.11 versions
17512 *) supports_anon_versioning=yes ;;
17515 # See if GNU ld supports shared libraries.
17518 # On AIX/PPC, the GNU linker is very broken
17519 if test "$host_cpu" != ia64; then
17523 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17524 *** to be unable to reliably create shared libraries on AIX.
17525 *** Therefore, libtool is disabling shared libraries support. If you
17526 *** really care for shared libraries, you may want to modify your PATH
17527 *** so that a non-GNU linker is found, and then restart.
17534 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)'
17535 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17536 hardcode_minus_L_GCJ=yes
17538 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17539 # that the semantics of dynamic libraries on AmigaOS, at least up
17540 # to version 4, is to share data among multiple programs linked
17541 # with the same dynamic library. Since this doesn't match the
17542 # behavior of shared libraries on other platforms, we can't use
17548 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17549 allow_undefined_flag_GCJ=unsupported
17550 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17551 # support --undefined. This deserves some investigation. FIXME
17552 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17558 cygwin* | mingw* | pw32*)
17559 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17560 # as there is no search path for DLLs.
17561 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17562 allow_undefined_flag_GCJ=unsupported
17563 always_export_symbols_GCJ=no
17564 enable_shared_with_static_runtimes_GCJ=yes
17565 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17567 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17568 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17569 # If the export-symbols file already is a .def file (1st line
17570 # is EXPORTS), use it as is; otherwise, prepend...
17571 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17572 cp $export_symbols $output_objdir/$soname.def;
17574 echo EXPORTS > $output_objdir/$soname.def;
17575 cat $export_symbols >> $output_objdir/$soname.def;
17577 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17584 hardcode_direct_GCJ=no
17585 hardcode_shlibpath_var_GCJ=no
17586 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17587 export_dynamic_flag_spec_GCJ='${wl}-E'
17588 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17589 # Instead, shared libraries are loaded at an image base (0x10000000 by
17590 # default) and relocated if they conflict, which is a slow very memory
17591 # consuming and fragmenting process. To avoid this, we pick a random,
17592 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17593 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17594 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'
17595 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'
17598 gnu* | linux* | k*bsd*-gnu)
17599 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17601 case $cc_basename,$host_cpu in
17602 pgcc*) # Portland Group C compiler
17603 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'
17604 tmp_addflag=' $pic_flag'
17606 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17607 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'
17608 tmp_addflag=' $pic_flag -Mnomain' ;;
17609 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17610 tmp_addflag=' -i_dynamic' ;;
17611 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17612 tmp_addflag=' -i_dynamic -nofor_main' ;;
17613 ifc* | ifort*) # Intel Fortran compiler
17614 tmp_addflag=' -nofor_main' ;;
17616 case `$CC -V 2>&1 | sed 5q` in
17617 *Sun\ C*) # Sun C 5.9
17618 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17619 tmp_sharedflag='-G' ;;
17620 *Sun\ F*) # Sun Fortran 8.3
17621 tmp_sharedflag='-G' ;;
17623 tmp_sharedflag='-shared' ;;
17625 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17627 if test $supports_anon_versioning = yes; then
17628 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17629 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17630 $echo "local: *; };" >> $output_objdir/$libname.ver~
17631 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17633 link_all_deplibs_GCJ=no
17639 netbsd* | netbsdelf*-gnu)
17640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17641 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17644 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17645 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17650 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17654 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17655 *** create shared libraries on Solaris systems. Therefore, libtool
17656 *** is disabling shared libraries support. We urge you to upgrade GNU
17657 *** binutils to release 2.9.1 or newer. Another option is to modify
17658 *** your PATH or compiler configuration so that the native linker is
17659 *** used, and then restart.
17662 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17663 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17664 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17670 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17671 case `$LD -v 2>&1` in
17672 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17676 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17677 *** reliably create shared libraries on SCO systems. Therefore, libtool
17678 *** is disabling shared libraries support. We urge you to upgrade GNU
17679 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17680 *** your PATH or compiler configuration so that the native linker is
17681 *** used, and then restart.
17686 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17687 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17688 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17689 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17698 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17700 hardcode_direct_GCJ=yes
17701 hardcode_shlibpath_var_GCJ=no
17705 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17706 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17707 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17714 if test "$ld_shlibs_GCJ" = no; then
17716 hardcode_libdir_flag_spec_GCJ=
17717 export_dynamic_flag_spec_GCJ=
17718 whole_archive_flag_spec_GCJ=
17721 # PORTME fill in a description of your system's linker (not GNU ld)
17724 allow_undefined_flag_GCJ=unsupported
17725 always_export_symbols_GCJ=yes
17726 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'
17727 # Note: this linker hardcodes the directories in LIBPATH if there
17728 # are no directories specified by -L.
17729 hardcode_minus_L_GCJ=yes
17730 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17731 # Neither direct hardcoding nor static linking is supported with a
17733 hardcode_direct_GCJ=unsupported
17738 if test "$host_cpu" = ia64; then
17739 # On IA64, the linker does run time linking by default, so we don't
17740 # have to do anything special.
17741 aix_use_runtimelinking=no
17742 exp_sym_flag='-Bexport'
17745 # If we're using GNU nm, then we don't want the "-C" option.
17746 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17747 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17748 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'
17750 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'
17752 aix_use_runtimelinking=no
17754 # Test if we are trying to use run time linking or normal
17755 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17756 # need to do runtime linking.
17757 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17758 for ld_flag in $LDFLAGS; do
17759 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17760 aix_use_runtimelinking=yes
17767 exp_sym_flag='-bexport'
17768 no_entry_flag='-bnoentry'
17771 # When large executables or shared objects are built, AIX ld can
17772 # have problems creating the table of contents. If linking a library
17773 # or program results in "error TOC overflow" add -mminimal-toc to
17774 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17775 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17777 archive_cmds_GCJ=''
17778 hardcode_direct_GCJ=yes
17779 hardcode_libdir_separator_GCJ=':'
17780 link_all_deplibs_GCJ=yes
17782 if test "$GCC" = yes; then
17783 case $host_os in aix4.[012]|aix4.[012].*)
17784 # We only want to do this on AIX 4.2 and lower, the check
17785 # below for broken collect2 doesn't work under 4.3+
17786 collect2name=`${CC} -print-prog-name=collect2`
17787 if test -f "$collect2name" && \
17788 strings "$collect2name" | grep resolve_lib_name >/dev/null
17790 # We have reworked collect2
17793 # We have old collect2
17794 hardcode_direct_GCJ=unsupported
17795 # It fails to find uninstalled libraries when the uninstalled
17796 # path is not listed in the libpath. Setting hardcode_minus_L
17797 # to unsupported forces relinking
17798 hardcode_minus_L_GCJ=yes
17799 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17800 hardcode_libdir_separator_GCJ=
17804 shared_flag='-shared'
17805 if test "$aix_use_runtimelinking" = yes; then
17806 shared_flag="$shared_flag "'${wl}-G'
17810 if test "$host_cpu" = ia64; then
17811 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17812 # chokes on -Wl,-G. The following line is correct:
17815 if test "$aix_use_runtimelinking" = yes; then
17816 shared_flag='${wl}-G'
17818 shared_flag='${wl}-bM:SRE'
17823 # It seems that -bexpall does not export symbols beginning with
17824 # underscore (_), so it is better to generate a list of symbols to export.
17825 always_export_symbols_GCJ=yes
17826 if test "$aix_use_runtimelinking" = yes; then
17827 # Warning - without using the other runtime loading flags (-brtl),
17828 # -berok will link without error, but may produce a broken library.
17829 allow_undefined_flag_GCJ='-berok'
17830 # Determine the default libpath from the value encoded in an empty executable.
17831 cat >conftest.$ac_ext <<_ACEOF
17834 cat confdefs.h >>conftest.$ac_ext
17835 cat >>conftest.$ac_ext <<_ACEOF
17836 /* end confdefs.h. */
17846 rm -f conftest.$ac_objext conftest$ac_exeext
17847 if { (ac_try="$ac_link"
17848 case "(($ac_try" in
17849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850 *) ac_try_echo=$ac_try;;
17852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17853 (eval "$ac_link") 2>conftest.er1
17855 grep -v '^ *+' conftest.er1 >conftest.err
17857 cat conftest.err >&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); } && {
17860 test -z "$ac_c_werror_flag" ||
17861 test ! -s conftest.err
17862 } && test -s conftest$ac_exeext &&
17863 $as_test_x conftest$ac_exeext; then
17865 lt_aix_libpath_sed='
17866 /Import File Strings/,/^$/ {
17872 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17873 # Check for a 64-bit object if we didn't find anything.
17874 if test -z "$aix_libpath"; then
17875 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17878 echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17885 conftest$ac_exeext conftest.$ac_ext
17886 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17888 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17889 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"
17891 if test "$host_cpu" = ia64; then
17892 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17893 allow_undefined_flag_GCJ="-z nodefs"
17894 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"
17896 # Determine the default libpath from the value encoded in an empty executable.
17897 cat >conftest.$ac_ext <<_ACEOF
17900 cat confdefs.h >>conftest.$ac_ext
17901 cat >>conftest.$ac_ext <<_ACEOF
17902 /* end confdefs.h. */
17912 rm -f conftest.$ac_objext conftest$ac_exeext
17913 if { (ac_try="$ac_link"
17914 case "(($ac_try" in
17915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17916 *) ac_try_echo=$ac_try;;
17918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17919 (eval "$ac_link") 2>conftest.er1
17921 grep -v '^ *+' conftest.er1 >conftest.err
17923 cat conftest.err >&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } && {
17926 test -z "$ac_c_werror_flag" ||
17927 test ! -s conftest.err
17928 } && test -s conftest$ac_exeext &&
17929 $as_test_x conftest$ac_exeext; then
17931 lt_aix_libpath_sed='
17932 /Import File Strings/,/^$/ {
17938 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17939 # Check for a 64-bit object if we didn't find anything.
17940 if test -z "$aix_libpath"; then
17941 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17944 echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.$ac_ext >&5
17950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17951 conftest$ac_exeext conftest.$ac_ext
17952 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17954 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17955 # Warning - without using the other run time loading flags,
17956 # -berok will link without error, but may produce a broken library.
17957 no_undefined_flag_GCJ=' ${wl}-bernotok'
17958 allow_undefined_flag_GCJ=' ${wl}-berok'
17959 # Exported symbols can be pulled into shared objects from archives
17960 whole_archive_flag_spec_GCJ='$convenience'
17961 archive_cmds_need_lc_GCJ=yes
17962 # This is similar to how AIX traditionally builds its shared libraries.
17963 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'
17969 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)'
17970 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17971 hardcode_minus_L_GCJ=yes
17972 # see comment about different semantics on the GNU ld section
17977 export_dynamic_flag_spec_GCJ=-rdynamic
17980 cygwin* | mingw* | pw32*)
17981 # When not using gcc, we currently assume that we are using
17982 # Microsoft Visual C++.
17983 # hardcode_libdir_flag_spec is actually meaningless, as there is
17984 # no search path for DLLs.
17985 hardcode_libdir_flag_spec_GCJ=' '
17986 allow_undefined_flag_GCJ=unsupported
17987 # Tell ltmain to make .lib files, not .a files.
17989 # Tell ltmain to make .dll files, not .so files.
17991 # FIXME: Setting linknames here is a bad hack.
17992 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17993 # The linker will automatically build a .lib file if we build a DLL.
17994 old_archive_From_new_cmds_GCJ='true'
17995 # FIXME: Should let the user specify the lib program.
17996 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17997 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17998 enable_shared_with_static_runtimes_GCJ=yes
18001 darwin* | rhapsody*)
18003 rhapsody* | darwin1.[012])
18004 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18007 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18008 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18010 case ${MACOSX_DEPLOYMENT_TARGET} in
18012 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18015 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18021 archive_cmds_need_lc_GCJ=no
18022 hardcode_direct_GCJ=no
18023 hardcode_automatic_GCJ=yes
18024 hardcode_shlibpath_var_GCJ=unsupported
18025 whole_archive_flag_spec_GCJ=''
18026 link_all_deplibs_GCJ=yes
18027 if test "$GCC" = yes ; then
18028 output_verbose_link_cmd='echo'
18029 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18030 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18031 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18032 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18034 case $cc_basename in
18036 output_verbose_link_cmd='echo'
18037 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18038 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18039 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18040 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18041 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}'
18051 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18052 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18053 hardcode_shlibpath_var_GCJ=no
18060 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18061 # support. Future versions do this automatically, but an explicit c++rt0.o
18062 # does not break anything, and helps significantly (at the cost of a little
18065 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18066 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18067 hardcode_direct_GCJ=yes
18068 hardcode_shlibpath_var_GCJ=no
18071 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18073 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18074 hardcode_direct_GCJ=yes
18075 hardcode_minus_L_GCJ=yes
18076 hardcode_shlibpath_var_GCJ=no
18079 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18080 freebsd* | dragonfly*)
18081 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18082 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18083 hardcode_direct_GCJ=yes
18084 hardcode_shlibpath_var_GCJ=no
18088 if test "$GCC" = yes; then
18089 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'
18091 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'
18093 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18094 hardcode_libdir_separator_GCJ=:
18095 hardcode_direct_GCJ=yes
18097 # hardcode_minus_L: Not really in the search PATH,
18098 # but as the default location of the library.
18099 hardcode_minus_L_GCJ=yes
18100 export_dynamic_flag_spec_GCJ='${wl}-E'
18104 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18105 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18107 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18109 if test "$with_gnu_ld" = no; then
18110 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18111 hardcode_libdir_separator_GCJ=:
18113 hardcode_direct_GCJ=yes
18114 export_dynamic_flag_spec_GCJ='${wl}-E'
18116 # hardcode_minus_L: Not really in the search PATH,
18117 # but as the default location of the library.
18118 hardcode_minus_L_GCJ=yes
18123 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18126 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18129 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18132 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18138 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18141 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18144 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18148 if test "$with_gnu_ld" = no; then
18149 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18150 hardcode_libdir_separator_GCJ=:
18154 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18155 hardcode_direct_GCJ=no
18156 hardcode_shlibpath_var_GCJ=no
18159 hardcode_direct_GCJ=yes
18160 export_dynamic_flag_spec_GCJ='${wl}-E'
18162 # hardcode_minus_L: Not really in the search PATH,
18163 # but as the default location of the library.
18164 hardcode_minus_L_GCJ=yes
18170 irix5* | irix6* | nonstopux*)
18171 if test "$GCC" = yes; then
18172 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'
18174 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'
18175 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18177 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18178 hardcode_libdir_separator_GCJ=:
18179 link_all_deplibs_GCJ=yes
18182 netbsd* | netbsdelf*-gnu)
18183 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18184 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18186 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18188 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18189 hardcode_direct_GCJ=yes
18190 hardcode_shlibpath_var_GCJ=no
18194 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18195 hardcode_direct_GCJ=yes
18196 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18197 hardcode_libdir_separator_GCJ=:
18198 hardcode_shlibpath_var_GCJ=no
18202 if test -f /usr/libexec/ld.so; then
18203 hardcode_direct_GCJ=yes
18204 hardcode_shlibpath_var_GCJ=no
18205 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18206 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18207 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18208 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18209 export_dynamic_flag_spec_GCJ='${wl}-E'
18212 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18213 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18214 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18217 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18218 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18228 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18229 hardcode_minus_L_GCJ=yes
18230 allow_undefined_flag_GCJ=unsupported
18231 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'
18232 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18236 if test "$GCC" = yes; then
18237 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18238 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'
18240 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18241 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'
18243 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18244 hardcode_libdir_separator_GCJ=:
18247 osf4* | osf5*) # as osf3* with the addition of -msym flag
18248 if test "$GCC" = yes; then
18249 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18250 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'
18251 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18253 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18254 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'
18255 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~
18256 $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'
18258 # Both c and cxx compiler support -rpath directly
18259 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18261 hardcode_libdir_separator_GCJ=:
18265 no_undefined_flag_GCJ=' -z text'
18266 if test "$GCC" = yes; then
18268 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18269 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18270 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18273 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18274 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18275 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18277 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18278 hardcode_shlibpath_var_GCJ=no
18280 solaris2.[0-5] | solaris2.[0-5].*) ;;
18282 # The compiler driver will combine and reorder linker options,
18283 # but understands `-z linker_flag'. GCC discards it without `$wl',
18284 # but is careful enough not to reorder.
18285 # Supported since Solaris 2.6 (maybe 2.5.1?)
18286 if test "$GCC" = yes; then
18287 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18289 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18293 link_all_deplibs_GCJ=yes
18297 if test "x$host_vendor" = xsequent; then
18298 # Use $CC to link under sequent, because it throws in some extra .o
18299 # files that make .init and .fini sections work.
18300 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18302 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18304 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18305 hardcode_direct_GCJ=yes
18306 hardcode_minus_L_GCJ=yes
18307 hardcode_shlibpath_var_GCJ=no
18311 case $host_vendor in
18313 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18314 hardcode_direct_GCJ=yes # is this really true???
18317 ## LD is ld it makes a PLAMLIB
18318 ## CC just makes a GrossModule.
18319 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18320 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18321 hardcode_direct_GCJ=no
18324 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18325 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18328 runpath_var='LD_RUN_PATH'
18329 hardcode_shlibpath_var_GCJ=no
18333 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18334 hardcode_shlibpath_var_GCJ=no
18335 export_dynamic_flag_spec_GCJ='-Bexport'
18339 if test -d /usr/nec; then
18340 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18341 hardcode_shlibpath_var_GCJ=no
18342 runpath_var=LD_RUN_PATH
18343 hardcode_runpath_var=yes
18348 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18349 no_undefined_flag_GCJ='${wl}-z,text'
18350 archive_cmds_need_lc_GCJ=no
18351 hardcode_shlibpath_var_GCJ=no
18352 runpath_var='LD_RUN_PATH'
18354 if test "$GCC" = yes; then
18355 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18356 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18358 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18359 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18363 sysv5* | sco3.2v5* | sco5v6*)
18364 # Note: We can NOT use -z defs as we might desire, because we do not
18365 # link with -lc, and that would cause any symbols used from libc to
18366 # always be unresolved, which means just about no library would
18367 # ever link correctly. If we're not using GNU ld we use -z text
18368 # though, which does catch some bad symbols but isn't as heavy-handed
18370 no_undefined_flag_GCJ='${wl}-z,text'
18371 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18372 archive_cmds_need_lc_GCJ=no
18373 hardcode_shlibpath_var_GCJ=no
18374 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18375 hardcode_libdir_separator_GCJ=':'
18376 link_all_deplibs_GCJ=yes
18377 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18378 runpath_var='LD_RUN_PATH'
18380 if test "$GCC" = yes; then
18381 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18382 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18384 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18385 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18390 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18391 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18392 hardcode_shlibpath_var_GCJ=no
18401 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18402 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18403 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18406 # Do we need to explicitly link libc?
18408 case "x$archive_cmds_need_lc_GCJ" in
18410 # Assume -lc should be added
18411 archive_cmds_need_lc_GCJ=yes
18413 if test "$enable_shared" = yes && test "$GCC" = yes; then
18414 case $archive_cmds_GCJ in
18416 # FIXME: we may have to deal with multi-command sequences.
18419 # Test whether the compiler implicitly links with -lc since on some
18420 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18421 # to ld, don't add -lc before -lgcc.
18422 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18423 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18428 (eval $ac_compile) 2>&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); } 2>conftest.err; then
18434 libobjs=conftest.$ac_objext
18436 wl=$lt_prog_compiler_wl_GCJ
18437 pic_flag=$lt_prog_compiler_pic_GCJ
18443 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18444 allow_undefined_flag_GCJ=
18445 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18446 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); }
18451 archive_cmds_need_lc_GCJ=no
18453 archive_cmds_need_lc_GCJ=yes
18455 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18457 cat conftest.err 1>&5
18460 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18461 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18468 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18469 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18470 library_names_spec=
18471 libname_spec='lib$name'
18475 postuninstall_cmds=
18479 shlibpath_overrides_runpath=unknown
18481 dynamic_linker="$host_os ld.so"
18482 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18484 need_lib_prefix=unknown
18485 hardcode_into_libs=no
18487 # when you set need_version to no, make sure it does not cause -set_version
18488 # flags to be left without arguments
18489 need_version=unknown
18494 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18495 shlibpath_var=LIBPATH
18497 # AIX 3 has no versioning support, so we append a major version to the name.
18498 soname_spec='${libname}${release}${shared_ext}$major'
18505 hardcode_into_libs=yes
18506 if test "$host_cpu" = ia64; then
18507 # AIX 5 supports IA64
18508 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18509 shlibpath_var=LD_LIBRARY_PATH
18511 # With GCC up to 2.95.x, collect2 would create an import file
18512 # for dependence libraries. The import file would start with
18513 # the line `#! .'. This would cause the generated library to
18514 # depend on `.', always an invalid library. This was fixed in
18515 # development snapshots of GCC prior to 3.0.
18517 aix4 | aix4.[01] | aix4.[01].*)
18518 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18520 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18523 can_build_shared=no
18527 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18528 # soname into executable. Probably we can add versioning support to
18529 # collect2, so additional links can be useful in future.
18530 if test "$aix_use_runtimelinking" = yes; then
18531 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18532 # instead of lib<name>.a to let people know that these are not
18533 # typical AIX shared libraries.
18534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18536 # We preserve .a as extension for shared libraries through AIX4.2
18537 # and later when we are not doing run time linking.
18538 library_names_spec='${libname}${release}.a $libname.a'
18539 soname_spec='${libname}${release}${shared_ext}$major'
18541 shlibpath_var=LIBPATH
18546 library_names_spec='$libname.ixlibrary $libname.a'
18547 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18548 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'
18552 library_names_spec='${libname}${shared_ext}'
18553 dynamic_linker="$host_os ld.so"
18554 shlibpath_var=LIBRARY_PATH
18560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18561 soname_spec='${libname}${release}${shared_ext}$major'
18562 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18563 shlibpath_var=LD_LIBRARY_PATH
18564 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18565 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18566 # the default ld.so.conf also contains /usr/contrib/lib and
18567 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18568 # libtool to hard-code these into programs
18571 cygwin* | mingw* | pw32*)
18572 version_type=windows
18577 case $GCC,$host_os in
18578 yes,cygwin* | yes,mingw* | yes,pw32*)
18579 library_names_spec='$libname.dll.a'
18580 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18581 postinstall_cmds='base_file=`basename \${file}`~
18582 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18583 dldir=$destdir/`dirname \$dlpath`~
18584 test -d \$dldir || mkdir -p \$dldir~
18585 $install_prog $dir/$dlname \$dldir/$dlname~
18586 chmod a+x \$dldir/$dlname'
18587 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18588 dlpath=$dir/\$dldll~
18590 shlibpath_overrides_runpath=yes
18594 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18595 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18596 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18599 # MinGW DLLs use traditional 'lib' prefix
18600 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18601 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18602 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18603 # It is most probably a Windows format PATH printed by
18604 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18605 # path with ; separators, and with drive letters. We can handle the
18606 # drive letters (cygwin fileutils understands them), so leave them,
18607 # especially as we might pass files found there to a mingw objdump,
18608 # which wouldn't understand a cygwinified path. Ahh.
18609 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18615 # pw32 DLLs use 'pw' prefix rather than 'lib'
18616 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18622 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18625 dynamic_linker='Win32 ld.exe'
18626 # FIXME: first we should search . and the directory the executable is in
18630 darwin* | rhapsody*)
18631 dynamic_linker="$host_os dyld"
18632 version_type=darwin
18635 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18636 soname_spec='${libname}${release}${major}$shared_ext'
18637 shlibpath_overrides_runpath=yes
18638 shlibpath_var=DYLD_LIBRARY_PATH
18639 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18641 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18649 soname_spec='${libname}${release}${shared_ext}$major'
18650 shlibpath_var=LD_LIBRARY_PATH
18657 freebsd* | dragonfly*)
18658 # DragonFly does not have aout. When/if they implement a new
18659 # versioning mechanism, adjust this.
18660 if test -x /usr/bin/objformat; then
18661 objformat=`/usr/bin/objformat`
18664 freebsd[123]*) objformat=aout ;;
18665 *) objformat=elf ;;
18668 version_type=freebsd-$objformat
18669 case $version_type in
18671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18676 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18680 shlibpath_var=LD_LIBRARY_PATH
18683 shlibpath_overrides_runpath=yes
18685 freebsd3.[01]* | freebsdelf3.[01]*)
18686 shlibpath_overrides_runpath=yes
18687 hardcode_into_libs=yes
18689 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18690 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18691 shlibpath_overrides_runpath=no
18692 hardcode_into_libs=yes
18694 *) # from 4.6 on, and DragonFly
18695 shlibpath_overrides_runpath=yes
18696 hardcode_into_libs=yes
18705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18706 soname_spec='${libname}${release}${shared_ext}$major'
18707 shlibpath_var=LD_LIBRARY_PATH
18708 hardcode_into_libs=yes
18711 hpux9* | hpux10* | hpux11*)
18712 # Give a soname corresponding to the major version so that dld.sl refuses to
18713 # link against other versions.
18720 hardcode_into_libs=yes
18721 dynamic_linker="$host_os dld.so"
18722 shlibpath_var=LD_LIBRARY_PATH
18723 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18725 soname_spec='${libname}${release}${shared_ext}$major'
18726 if test "X$HPUX_IA64_MODE" = X32; then
18727 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18729 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18731 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18735 hardcode_into_libs=yes
18736 dynamic_linker="$host_os dld.sl"
18737 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18738 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18740 soname_spec='${libname}${release}${shared_ext}$major'
18741 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18742 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18746 dynamic_linker="$host_os dld.sl"
18747 shlibpath_var=SHLIB_PATH
18748 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18750 soname_spec='${libname}${release}${shared_ext}$major'
18753 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18754 postinstall_cmds='chmod 555 $lib'
18761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18762 soname_spec='${libname}${release}${shared_ext}$major'
18763 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18764 shlibpath_var=LD_LIBRARY_PATH
18765 shlibpath_overrides_runpath=no
18766 hardcode_into_libs=yes
18769 irix5* | irix6* | nonstopux*)
18771 nonstopux*) version_type=nonstopux ;;
18773 if test "$lt_cv_prog_gnu_ld" = yes; then
18781 soname_spec='${libname}${release}${shared_ext}$major'
18782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18784 irix5* | nonstopux*)
18785 libsuff= shlibsuff=
18788 case $LD in # libtool.m4 will add one of these switches to LD
18789 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18790 libsuff= shlibsuff= libmagic=32-bit;;
18791 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18792 libsuff=32 shlibsuff=N32 libmagic=N32;;
18793 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18794 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18795 *) libsuff= shlibsuff= libmagic=never-match;;
18799 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18800 shlibpath_overrides_runpath=no
18801 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18802 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18803 hardcode_into_libs=yes
18806 # No shared lib support for Linux oldld, aout, or coff.
18807 linux*oldld* | linux*aout* | linux*coff*)
18811 # This must be Linux ELF.
18812 linux* | k*bsd*-gnu)
18816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18817 soname_spec='${libname}${release}${shared_ext}$major'
18818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18819 shlibpath_var=LD_LIBRARY_PATH
18820 shlibpath_overrides_runpath=no
18821 # This implies no fast_install, which is unacceptable.
18822 # Some rework will be needed to allow for fast_install
18823 # before this can be enabled.
18824 hardcode_into_libs=yes
18826 # Append ld.so.conf contents to the search path
18827 if test -f /etc/ld.so.conf; then
18828 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18829 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18832 # We used to test for /lib/ld.so.1 and disable shared libraries on
18833 # powerpc, because MkLinux only supported shared libraries with the
18834 # GNU dynamic linker. Since this was broken with cross compilers,
18835 # most powerpc-linux boxes support dynamic linking these days and
18836 # people can always --disable-shared, the test was removed, and we
18837 # assume the GNU/Linux dynamic linker is in use.
18838 dynamic_linker='GNU/Linux ld.so'
18845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18846 soname_spec='${libname}${release}${shared_ext}$major'
18847 shlibpath_var=LD_LIBRARY_PATH
18848 shlibpath_overrides_runpath=no
18849 hardcode_into_libs=yes
18850 dynamic_linker='NetBSD ld.elf_so'
18857 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18860 dynamic_linker='NetBSD (a.out) ld.so'
18862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18863 soname_spec='${libname}${release}${shared_ext}$major'
18864 dynamic_linker='NetBSD ld.elf_so'
18866 shlibpath_var=LD_LIBRARY_PATH
18867 shlibpath_overrides_runpath=yes
18868 hardcode_into_libs=yes
18873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18874 shlibpath_var=LD_LIBRARY_PATH
18875 shlibpath_overrides_runpath=yes
18882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18883 soname_spec='${libname}${release}${shared_ext}$major'
18884 shlibpath_var=LD_LIBRARY_PATH
18885 shlibpath_overrides_runpath=yes
18890 sys_lib_dlsearch_path_spec="/usr/lib"
18892 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18894 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18895 *) need_version=no ;;
18897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18899 shlibpath_var=LD_LIBRARY_PATH
18900 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18902 openbsd2.[89] | openbsd2.[89].*)
18903 shlibpath_overrides_runpath=no
18906 shlibpath_overrides_runpath=yes
18910 shlibpath_overrides_runpath=yes
18915 libname_spec='$name'
18918 library_names_spec='$libname${shared_ext} $libname.a'
18919 dynamic_linker='OS/2 ld.exe'
18920 shlibpath_var=LIBPATH
18923 osf3* | osf4* | osf5*)
18927 soname_spec='${libname}${release}${shared_ext}$major'
18928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18929 shlibpath_var=LD_LIBRARY_PATH
18930 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18931 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18943 soname_spec='${libname}${release}${shared_ext}$major'
18944 shlibpath_var=LD_LIBRARY_PATH
18945 shlibpath_overrides_runpath=yes
18946 hardcode_into_libs=yes
18947 # ldd complains unless libraries are executable
18948 postinstall_cmds='chmod +x $lib'
18953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18954 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18955 shlibpath_var=LD_LIBRARY_PATH
18956 shlibpath_overrides_runpath=yes
18957 if test "$with_gnu_ld" = yes; then
18965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18966 soname_spec='${libname}${release}${shared_ext}$major'
18967 shlibpath_var=LD_LIBRARY_PATH
18968 case $host_vendor in
18970 shlibpath_overrides_runpath=no
18972 export_dynamic_flag_spec='${wl}-Blargedynsym'
18973 runpath_var=LD_RUN_PATH
18981 shlibpath_overrides_runpath=no
18982 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18988 if test -d /usr/nec ;then
18990 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18991 soname_spec='$libname${shared_ext}.$major'
18992 shlibpath_var=LD_LIBRARY_PATH
18996 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18997 version_type=freebsd-elf
19000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19001 soname_spec='${libname}${release}${shared_ext}$major'
19002 shlibpath_var=LD_LIBRARY_PATH
19003 hardcode_into_libs=yes
19004 if test "$with_gnu_ld" = yes; then
19005 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19006 shlibpath_overrides_runpath=no
19008 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19009 shlibpath_overrides_runpath=yes
19012 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19016 sys_lib_dlsearch_path_spec='/usr/lib'
19021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19022 soname_spec='${libname}${release}${shared_ext}$major'
19023 shlibpath_var=LD_LIBRARY_PATH
19030 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19031 echo "${ECHO_T}$dynamic_linker" >&6; }
19032 test "$dynamic_linker" = no && can_build_shared=no
19034 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19035 echo $ECHO_N "(cached) $ECHO_C" >&6
19037 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19040 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19041 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19044 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19047 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19049 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19050 if test "$GCC" = yes; then
19051 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19054 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19055 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19056 hardcode_action_GCJ=
19057 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19058 test -n "$runpath_var_GCJ" || \
19059 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19061 # We can hardcode non-existant directories.
19062 if test "$hardcode_direct_GCJ" != no &&
19063 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19064 # have to relink, otherwise we might link with an installed library
19065 # when we should be linking with a yet-to-be-installed one
19066 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19067 test "$hardcode_minus_L_GCJ" != no; then
19068 # Linking always hardcodes the temporary library directory.
19069 hardcode_action_GCJ=relink
19071 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19072 hardcode_action_GCJ=immediate
19075 # We cannot hardcode anything, or else we can only hardcode existing
19077 hardcode_action_GCJ=unsupported
19079 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19080 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19082 if test "$hardcode_action_GCJ" = relink; then
19083 # Fast installation is not supported
19084 enable_fast_install=no
19085 elif test "$shlibpath_overrides_runpath" = yes ||
19086 test "$enable_shared" = no; then
19087 # Fast installation is not necessary
19088 enable_fast_install=needless
19092 # The else clause should only fire when bootstrapping the
19093 # libtool distribution, otherwise you forgot to ship ltmain.sh
19094 # with your package, and you will get complaints that there are
19095 # no rules to generate ltmain.sh.
19096 if test -f "$ltmain"; then
19097 # See if we are running on zsh, and set the options which allow our commands through
19098 # without removal of \ escapes.
19099 if test -n "${ZSH_VERSION+set}" ; then
19100 setopt NO_GLOB_SUBST
19102 # Now quote all the things that may contain metacharacters while being
19103 # careful not to overquote the AC_SUBSTed values. We take copies of the
19104 # variables and quote the copies for generation of the libtool script.
19105 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19107 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19108 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19109 deplibs_check_method reload_flag reload_cmds need_locks \
19110 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19111 lt_cv_sys_global_symbol_to_c_name_address \
19112 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19113 old_postinstall_cmds old_postuninstall_cmds \
19117 lt_prog_compiler_wl_GCJ \
19118 lt_prog_compiler_pic_GCJ \
19119 lt_prog_compiler_static_GCJ \
19120 lt_prog_compiler_no_builtin_flag_GCJ \
19121 export_dynamic_flag_spec_GCJ \
19122 thread_safe_flag_spec_GCJ \
19123 whole_archive_flag_spec_GCJ \
19124 enable_shared_with_static_runtimes_GCJ \
19125 old_archive_cmds_GCJ \
19126 old_archive_from_new_cmds_GCJ \
19127 predep_objects_GCJ \
19128 postdep_objects_GCJ \
19131 compiler_lib_search_path_GCJ \
19132 compiler_lib_search_dirs_GCJ \
19134 archive_expsym_cmds_GCJ \
19135 postinstall_cmds_GCJ \
19136 postuninstall_cmds_GCJ \
19137 old_archive_from_expsyms_cmds_GCJ \
19138 allow_undefined_flag_GCJ \
19139 no_undefined_flag_GCJ \
19140 export_symbols_cmds_GCJ \
19141 hardcode_libdir_flag_spec_GCJ \
19142 hardcode_libdir_flag_spec_ld_GCJ \
19143 hardcode_libdir_separator_GCJ \
19144 hardcode_automatic_GCJ \
19146 module_expsym_cmds_GCJ \
19147 lt_cv_prog_compiler_c_o_GCJ \
19148 fix_srcfile_path_GCJ \
19149 exclude_expsyms_GCJ \
19150 include_expsyms_GCJ; do
19153 old_archive_cmds_GCJ | \
19154 old_archive_from_new_cmds_GCJ | \
19155 archive_cmds_GCJ | \
19156 archive_expsym_cmds_GCJ | \
19157 module_cmds_GCJ | \
19158 module_expsym_cmds_GCJ | \
19159 old_archive_from_expsyms_cmds_GCJ | \
19160 export_symbols_cmds_GCJ | \
19161 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19162 postinstall_cmds | postuninstall_cmds | \
19163 old_postinstall_cmds | old_postuninstall_cmds | \
19164 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19165 # Double-quote double-evaled strings.
19166 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19169 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19175 *'\$0 --fallback-echo"')
19176 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19182 cat <<__EOF__ >> "$cfgfile"
19183 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19185 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19187 # Shell to use when invoking shell scripts.
19190 # Whether or not to build shared libraries.
19191 build_libtool_libs=$enable_shared
19193 # Whether or not to build static libraries.
19194 build_old_libs=$enable_static
19196 # Whether or not to add -lc for building shared libraries.
19197 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19199 # Whether or not to disallow shared libs when runtime libs are static
19200 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19202 # Whether or not to optimize for fast installation.
19203 fast_install=$enable_fast_install
19206 host_alias=$host_alias
19210 # The build system.
19211 build_alias=$build_alias
19215 # An echo program that does not interpret backslashes.
19220 AR_FLAGS=$lt_AR_FLAGS
19225 # LTCC compiler flags.
19226 LTCFLAGS=$lt_LTCFLAGS
19228 # A language-specific compiler.
19229 CC=$lt_compiler_GCJ
19231 # Is the compiler the GNU C compiler?
19237 # The linker used to build libraries.
19240 # Whether we need hard or soft links.
19243 # A BSD-compatible nm program.
19246 # A symbol stripping program
19249 # Used to examine libraries when file_magic_cmd begins "file"
19250 MAGIC_CMD=$MAGIC_CMD
19252 # Used on cygwin: DLL creation program.
19255 # Used on cygwin: object dumper.
19258 # Used on cygwin: assembler.
19261 # The name of the directory that contains temporary libtool files.
19264 # How to create reloadable object files.
19265 reload_flag=$lt_reload_flag
19266 reload_cmds=$lt_reload_cmds
19268 # How to pass a linker flag through the compiler.
19269 wl=$lt_lt_prog_compiler_wl_GCJ
19271 # Object file suffix (normally "o").
19272 objext="$ac_objext"
19274 # Old archive suffix (normally "a").
19277 # Shared library suffix (normally ".so").
19278 shrext_cmds='$shrext_cmds'
19280 # Executable file suffix (normally "").
19283 # Additional compiler flags for building library objects.
19284 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19287 # What is the maximum length of a command?
19288 max_cmd_len=$lt_cv_sys_max_cmd_len
19290 # Does compiler simultaneously support -c and -o options?
19291 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19293 # Must we lock files when doing compilation?
19294 need_locks=$lt_need_locks
19296 # Do we need the lib prefix for modules?
19297 need_lib_prefix=$need_lib_prefix
19299 # Do we need a version for libraries?
19300 need_version=$need_version
19302 # Whether dlopen is supported.
19303 dlopen_support=$enable_dlopen
19305 # Whether dlopen of programs is supported.
19306 dlopen_self=$enable_dlopen_self
19308 # Whether dlopen of statically linked programs is supported.
19309 dlopen_self_static=$enable_dlopen_self_static
19311 # Compiler flag to prevent dynamic linking.
19312 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19314 # Compiler flag to turn off builtin functions.
19315 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19317 # Compiler flag to allow reflexive dlopens.
19318 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19320 # Compiler flag to generate shared objects directly from archives.
19321 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19323 # Compiler flag to generate thread-safe objects.
19324 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19326 # Library versioning type.
19327 version_type=$version_type
19329 # Format of library name prefix.
19330 libname_spec=$lt_libname_spec
19332 # List of archive names. First name is the real one, the rest are links.
19333 # The last name is the one that the linker finds with -lNAME.
19334 library_names_spec=$lt_library_names_spec
19336 # The coded name of the library, if different from the real name.
19337 soname_spec=$lt_soname_spec
19339 # Commands used to build and install an old-style archive.
19341 old_archive_cmds=$lt_old_archive_cmds_GCJ
19342 old_postinstall_cmds=$lt_old_postinstall_cmds
19343 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19345 # Create an old-style archive from a shared archive.
19346 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19348 # Create a temporary old-style archive to link instead of a shared archive.
19349 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19351 # Commands used to build and install a shared archive.
19352 archive_cmds=$lt_archive_cmds_GCJ
19353 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19354 postinstall_cmds=$lt_postinstall_cmds
19355 postuninstall_cmds=$lt_postuninstall_cmds
19357 # Commands used to build a loadable module (assumed same as above if empty)
19358 module_cmds=$lt_module_cmds_GCJ
19359 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19361 # Commands to strip libraries.
19362 old_striplib=$lt_old_striplib
19363 striplib=$lt_striplib
19365 # Dependencies to place before the objects being linked to create a
19367 predep_objects=$lt_predep_objects_GCJ
19369 # Dependencies to place after the objects being linked to create a
19371 postdep_objects=$lt_postdep_objects_GCJ
19373 # Dependencies to place before the objects being linked to create a
19375 predeps=$lt_predeps_GCJ
19377 # Dependencies to place after the objects being linked to create a
19379 postdeps=$lt_postdeps_GCJ
19381 # The directories searched by this compiler when creating a shared
19383 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19385 # The library search path used internally by the compiler when linking
19386 # a shared library.
19387 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19389 # Method to check whether dependent libraries are shared objects.
19390 deplibs_check_method=$lt_deplibs_check_method
19392 # Command to use when deplibs_check_method == file_magic.
19393 file_magic_cmd=$lt_file_magic_cmd
19395 # Flag that allows shared libraries with undefined symbols to be built.
19396 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19398 # Flag that forces no undefined symbols.
19399 no_undefined_flag=$lt_no_undefined_flag_GCJ
19401 # Commands used to finish a libtool library installation in a directory.
19402 finish_cmds=$lt_finish_cmds
19404 # Same as above, but a single script fragment to be evaled but not shown.
19405 finish_eval=$lt_finish_eval
19407 # Take the output of nm and produce a listing of raw symbols and C names.
19408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19410 # Transform the output of nm in a proper C declaration
19411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19413 # Transform the output of nm in a C name address pair
19414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19416 # This is the shared library runtime path variable.
19417 runpath_var=$runpath_var
19419 # This is the shared library path variable.
19420 shlibpath_var=$shlibpath_var
19422 # Is shlibpath searched before the hard-coded library search path?
19423 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19425 # How to hardcode a shared library path into an executable.
19426 hardcode_action=$hardcode_action_GCJ
19428 # Whether we should hardcode library paths into libraries.
19429 hardcode_into_libs=$hardcode_into_libs
19431 # Flag to hardcode \$libdir into a binary during linking.
19432 # This must work even if \$libdir does not exist.
19433 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19435 # If ld is used when linking, flag to hardcode \$libdir into
19436 # a binary during linking. This must work even if \$libdir does
19438 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19440 # Whether we need a single -rpath flag with a separated argument.
19441 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19443 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19444 # resulting binary.
19445 hardcode_direct=$hardcode_direct_GCJ
19447 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19448 # resulting binary.
19449 hardcode_minus_L=$hardcode_minus_L_GCJ
19451 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19452 # the resulting binary.
19453 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19455 # Set to yes if building a shared library automatically hardcodes DIR into the library
19456 # and all subsequent libraries and executables linked against it.
19457 hardcode_automatic=$hardcode_automatic_GCJ
19459 # Variables whose values should be saved in libtool wrapper scripts and
19460 # restored at relink time.
19461 variables_saved_for_relink="$variables_saved_for_relink"
19463 # Whether libtool must link a program against all its dependency libraries.
19464 link_all_deplibs=$link_all_deplibs_GCJ
19466 # Compile-time system search path for libraries
19467 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19469 # Run-time system search path for libraries
19470 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19472 # Fix the shell variable \$srcfile for the compiler.
19473 fix_srcfile_path=$lt_fix_srcfile_path
19475 # Set to yes if exported symbols are required.
19476 always_export_symbols=$always_export_symbols_GCJ
19478 # The commands to list exported symbols.
19479 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19481 # The commands to extract the exported symbol list from a shared archive.
19482 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19484 # Symbols that should not be listed in the preloaded symbols.
19485 exclude_expsyms=$lt_exclude_expsyms_GCJ
19487 # Symbols that must always be exported.
19488 include_expsyms=$lt_include_expsyms_GCJ
19490 # ### END LIBTOOL TAG CONFIG: $tagname
19496 # If there is no Makefile yet, we rely on a make rule to execute
19497 # `config.status --recheck' to rerun these tests and create the
19498 # libtool script then.
19499 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19500 if test -f "$ltmain_in"; then
19501 test -f Makefile && make "$ltmain"
19507 ac_cpp='$CPP $CPPFLAGS'
19508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19522 # Source file extension for RC test sources.
19525 # Object file extension for compiled RC test sources.
19529 # Code to be used in simple compile tests
19530 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19532 # Code to be used in simple link tests
19533 lt_simple_link_test_code="$lt_simple_compile_test_code"
19535 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19537 # If no C compiler was specified, use CC.
19540 # If no C compiler flags were specified, use CFLAGS.
19541 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19543 # Allow CC to be a program name with arguments.
19547 # save warnings/boilerplate of simple test code
19548 ac_outfile=conftest.$ac_objext
19549 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19550 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19551 _lt_compiler_boilerplate=`cat conftest.err`
19554 ac_outfile=conftest.$ac_objext
19555 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19556 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19557 _lt_linker_boilerplate=`cat conftest.err`
19561 # Allow CC to be a program name with arguments.
19566 for cc_temp in $compiler""; do
19568 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19569 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19574 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19576 lt_cv_prog_compiler_c_o_RC=yes
19578 # The else clause should only fire when bootstrapping the
19579 # libtool distribution, otherwise you forgot to ship ltmain.sh
19580 # with your package, and you will get complaints that there are
19581 # no rules to generate ltmain.sh.
19582 if test -f "$ltmain"; then
19583 # See if we are running on zsh, and set the options which allow our commands through
19584 # without removal of \ escapes.
19585 if test -n "${ZSH_VERSION+set}" ; then
19586 setopt NO_GLOB_SUBST
19588 # Now quote all the things that may contain metacharacters while being
19589 # careful not to overquote the AC_SUBSTed values. We take copies of the
19590 # variables and quote the copies for generation of the libtool script.
19591 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19593 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19594 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19595 deplibs_check_method reload_flag reload_cmds need_locks \
19596 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19597 lt_cv_sys_global_symbol_to_c_name_address \
19598 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19599 old_postinstall_cmds old_postuninstall_cmds \
19603 lt_prog_compiler_wl_RC \
19604 lt_prog_compiler_pic_RC \
19605 lt_prog_compiler_static_RC \
19606 lt_prog_compiler_no_builtin_flag_RC \
19607 export_dynamic_flag_spec_RC \
19608 thread_safe_flag_spec_RC \
19609 whole_archive_flag_spec_RC \
19610 enable_shared_with_static_runtimes_RC \
19611 old_archive_cmds_RC \
19612 old_archive_from_new_cmds_RC \
19613 predep_objects_RC \
19614 postdep_objects_RC \
19617 compiler_lib_search_path_RC \
19618 compiler_lib_search_dirs_RC \
19620 archive_expsym_cmds_RC \
19621 postinstall_cmds_RC \
19622 postuninstall_cmds_RC \
19623 old_archive_from_expsyms_cmds_RC \
19624 allow_undefined_flag_RC \
19625 no_undefined_flag_RC \
19626 export_symbols_cmds_RC \
19627 hardcode_libdir_flag_spec_RC \
19628 hardcode_libdir_flag_spec_ld_RC \
19629 hardcode_libdir_separator_RC \
19630 hardcode_automatic_RC \
19632 module_expsym_cmds_RC \
19633 lt_cv_prog_compiler_c_o_RC \
19634 fix_srcfile_path_RC \
19635 exclude_expsyms_RC \
19636 include_expsyms_RC; do
19639 old_archive_cmds_RC | \
19640 old_archive_from_new_cmds_RC | \
19641 archive_cmds_RC | \
19642 archive_expsym_cmds_RC | \
19644 module_expsym_cmds_RC | \
19645 old_archive_from_expsyms_cmds_RC | \
19646 export_symbols_cmds_RC | \
19647 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19648 postinstall_cmds | postuninstall_cmds | \
19649 old_postinstall_cmds | old_postuninstall_cmds | \
19650 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19651 # Double-quote double-evaled strings.
19652 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19655 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19661 *'\$0 --fallback-echo"')
19662 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19668 cat <<__EOF__ >> "$cfgfile"
19669 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19671 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19673 # Shell to use when invoking shell scripts.
19676 # Whether or not to build shared libraries.
19677 build_libtool_libs=$enable_shared
19679 # Whether or not to build static libraries.
19680 build_old_libs=$enable_static
19682 # Whether or not to add -lc for building shared libraries.
19683 build_libtool_need_lc=$archive_cmds_need_lc_RC
19685 # Whether or not to disallow shared libs when runtime libs are static
19686 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19688 # Whether or not to optimize for fast installation.
19689 fast_install=$enable_fast_install
19692 host_alias=$host_alias
19696 # The build system.
19697 build_alias=$build_alias
19701 # An echo program that does not interpret backslashes.
19706 AR_FLAGS=$lt_AR_FLAGS
19711 # LTCC compiler flags.
19712 LTCFLAGS=$lt_LTCFLAGS
19714 # A language-specific compiler.
19717 # Is the compiler the GNU C compiler?
19723 # The linker used to build libraries.
19726 # Whether we need hard or soft links.
19729 # A BSD-compatible nm program.
19732 # A symbol stripping program
19735 # Used to examine libraries when file_magic_cmd begins "file"
19736 MAGIC_CMD=$MAGIC_CMD
19738 # Used on cygwin: DLL creation program.
19741 # Used on cygwin: object dumper.
19744 # Used on cygwin: assembler.
19747 # The name of the directory that contains temporary libtool files.
19750 # How to create reloadable object files.
19751 reload_flag=$lt_reload_flag
19752 reload_cmds=$lt_reload_cmds
19754 # How to pass a linker flag through the compiler.
19755 wl=$lt_lt_prog_compiler_wl_RC
19757 # Object file suffix (normally "o").
19758 objext="$ac_objext"
19760 # Old archive suffix (normally "a").
19763 # Shared library suffix (normally ".so").
19764 shrext_cmds='$shrext_cmds'
19766 # Executable file suffix (normally "").
19769 # Additional compiler flags for building library objects.
19770 pic_flag=$lt_lt_prog_compiler_pic_RC
19773 # What is the maximum length of a command?
19774 max_cmd_len=$lt_cv_sys_max_cmd_len
19776 # Does compiler simultaneously support -c and -o options?
19777 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19779 # Must we lock files when doing compilation?
19780 need_locks=$lt_need_locks
19782 # Do we need the lib prefix for modules?
19783 need_lib_prefix=$need_lib_prefix
19785 # Do we need a version for libraries?
19786 need_version=$need_version
19788 # Whether dlopen is supported.
19789 dlopen_support=$enable_dlopen
19791 # Whether dlopen of programs is supported.
19792 dlopen_self=$enable_dlopen_self
19794 # Whether dlopen of statically linked programs is supported.
19795 dlopen_self_static=$enable_dlopen_self_static
19797 # Compiler flag to prevent dynamic linking.
19798 link_static_flag=$lt_lt_prog_compiler_static_RC
19800 # Compiler flag to turn off builtin functions.
19801 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19803 # Compiler flag to allow reflexive dlopens.
19804 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19806 # Compiler flag to generate shared objects directly from archives.
19807 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19809 # Compiler flag to generate thread-safe objects.
19810 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19812 # Library versioning type.
19813 version_type=$version_type
19815 # Format of library name prefix.
19816 libname_spec=$lt_libname_spec
19818 # List of archive names. First name is the real one, the rest are links.
19819 # The last name is the one that the linker finds with -lNAME.
19820 library_names_spec=$lt_library_names_spec
19822 # The coded name of the library, if different from the real name.
19823 soname_spec=$lt_soname_spec
19825 # Commands used to build and install an old-style archive.
19827 old_archive_cmds=$lt_old_archive_cmds_RC
19828 old_postinstall_cmds=$lt_old_postinstall_cmds
19829 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19831 # Create an old-style archive from a shared archive.
19832 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19834 # Create a temporary old-style archive to link instead of a shared archive.
19835 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19837 # Commands used to build and install a shared archive.
19838 archive_cmds=$lt_archive_cmds_RC
19839 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19840 postinstall_cmds=$lt_postinstall_cmds
19841 postuninstall_cmds=$lt_postuninstall_cmds
19843 # Commands used to build a loadable module (assumed same as above if empty)
19844 module_cmds=$lt_module_cmds_RC
19845 module_expsym_cmds=$lt_module_expsym_cmds_RC
19847 # Commands to strip libraries.
19848 old_striplib=$lt_old_striplib
19849 striplib=$lt_striplib
19851 # Dependencies to place before the objects being linked to create a
19853 predep_objects=$lt_predep_objects_RC
19855 # Dependencies to place after the objects being linked to create a
19857 postdep_objects=$lt_postdep_objects_RC
19859 # Dependencies to place before the objects being linked to create a
19861 predeps=$lt_predeps_RC
19863 # Dependencies to place after the objects being linked to create a
19865 postdeps=$lt_postdeps_RC
19867 # The directories searched by this compiler when creating a shared
19869 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19871 # The library search path used internally by the compiler when linking
19872 # a shared library.
19873 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19875 # Method to check whether dependent libraries are shared objects.
19876 deplibs_check_method=$lt_deplibs_check_method
19878 # Command to use when deplibs_check_method == file_magic.
19879 file_magic_cmd=$lt_file_magic_cmd
19881 # Flag that allows shared libraries with undefined symbols to be built.
19882 allow_undefined_flag=$lt_allow_undefined_flag_RC
19884 # Flag that forces no undefined symbols.
19885 no_undefined_flag=$lt_no_undefined_flag_RC
19887 # Commands used to finish a libtool library installation in a directory.
19888 finish_cmds=$lt_finish_cmds
19890 # Same as above, but a single script fragment to be evaled but not shown.
19891 finish_eval=$lt_finish_eval
19893 # Take the output of nm and produce a listing of raw symbols and C names.
19894 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19896 # Transform the output of nm in a proper C declaration
19897 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19899 # Transform the output of nm in a C name address pair
19900 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19902 # This is the shared library runtime path variable.
19903 runpath_var=$runpath_var
19905 # This is the shared library path variable.
19906 shlibpath_var=$shlibpath_var
19908 # Is shlibpath searched before the hard-coded library search path?
19909 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19911 # How to hardcode a shared library path into an executable.
19912 hardcode_action=$hardcode_action_RC
19914 # Whether we should hardcode library paths into libraries.
19915 hardcode_into_libs=$hardcode_into_libs
19917 # Flag to hardcode \$libdir into a binary during linking.
19918 # This must work even if \$libdir does not exist.
19919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19921 # If ld is used when linking, flag to hardcode \$libdir into
19922 # a binary during linking. This must work even if \$libdir does
19924 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19926 # Whether we need a single -rpath flag with a separated argument.
19927 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19929 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19930 # resulting binary.
19931 hardcode_direct=$hardcode_direct_RC
19933 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19934 # resulting binary.
19935 hardcode_minus_L=$hardcode_minus_L_RC
19937 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19938 # the resulting binary.
19939 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19941 # Set to yes if building a shared library automatically hardcodes DIR into the library
19942 # and all subsequent libraries and executables linked against it.
19943 hardcode_automatic=$hardcode_automatic_RC
19945 # Variables whose values should be saved in libtool wrapper scripts and
19946 # restored at relink time.
19947 variables_saved_for_relink="$variables_saved_for_relink"
19949 # Whether libtool must link a program against all its dependency libraries.
19950 link_all_deplibs=$link_all_deplibs_RC
19952 # Compile-time system search path for libraries
19953 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19955 # Run-time system search path for libraries
19956 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19958 # Fix the shell variable \$srcfile for the compiler.
19959 fix_srcfile_path=$lt_fix_srcfile_path
19961 # Set to yes if exported symbols are required.
19962 always_export_symbols=$always_export_symbols_RC
19964 # The commands to list exported symbols.
19965 export_symbols_cmds=$lt_export_symbols_cmds_RC
19967 # The commands to extract the exported symbol list from a shared archive.
19968 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19970 # Symbols that should not be listed in the preloaded symbols.
19971 exclude_expsyms=$lt_exclude_expsyms_RC
19973 # Symbols that must always be exported.
19974 include_expsyms=$lt_include_expsyms_RC
19976 # ### END LIBTOOL TAG CONFIG: $tagname
19982 # If there is no Makefile yet, we rely on a make rule to execute
19983 # `config.status --recheck' to rerun these tests and create the
19984 # libtool script then.
19985 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19986 if test -f "$ltmain_in"; then
19987 test -f Makefile && make "$ltmain"
19993 ac_cpp='$CPP $CPPFLAGS'
19994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20003 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20004 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20005 { (exit 1); exit 1; }; }
20009 # Append the new tag name to the list of available tags.
20010 if test -n "$tagname" ; then
20011 available_tags="$available_tags $tagname"
20017 # Now substitute the updated list of available tags.
20018 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20019 mv "${ofile}T" "$ofile"
20023 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20024 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20025 { (exit 1); exit 1; }; }
20031 # This can be used to rebuild libtool when needed
20032 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20034 # Always use our own libtool.
20035 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20037 # Prevent multiple expansion
20050 # Check whether --with-system-libtool was given.
20051 if test "${with_system_libtool+set}" = set; then
20052 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
20053 set dummy libtool; ac_word=$2
20054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20056 if test "${ac_cv_path_LIBTOOL+set}" = set; then
20057 echo $ECHO_N "(cached) $ECHO_C" >&6
20061 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
20064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20065 as_dummy="$PATH:/usr/local/bin"
20066 for as_dir in $as_dummy
20069 test -z "$as_dir" && as_dir=.
20070 for ac_exec_ext in '' $ac_executable_extensions; do
20071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20072 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
20073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20083 LIBTOOL=$ac_cv_path_LIBTOOL
20084 if test -n "$LIBTOOL"; then
20085 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
20086 echo "${ECHO_T}$LIBTOOL" >&6; }
20088 { echo "$as_me:$LINENO: result: no" >&5
20089 echo "${ECHO_T}no" >&6; }
20095 LIBTOOL="`pwd`/libtool"
20115 # Check whether --enable-strict-dependencies was given.
20116 if test "${enable_strict_dependencies+set}" = set; then
20117 enableval=$enable_strict_dependencies;
20121 docdir='${datadir}/doc/freeradius'
20122 { echo "$as_me:$LINENO: checking docdir" >&5
20123 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
20125 # Check whether --with-docdir was given.
20126 if test "${with_docdir+set}" = set; then
20127 withval=$with_docdir; case "$withval" in
20133 [\\/$]* | ?:[\\/]* )
20137 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
20138 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
20139 { (exit 1); exit 1; }; }
20146 { echo "$as_me:$LINENO: result: $docdir" >&5
20147 echo "${ECHO_T}$docdir" >&6; }
20148 if test "x$docdir" = xno; then
20149 { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
20150 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
20153 logdir='${localstatedir}/log/radius'
20154 { echo "$as_me:$LINENO: checking logdir" >&5
20155 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
20157 # Check whether --with-logdir was given.
20158 if test "${with_logdir+set}" = set; then
20159 withval=$with_logdir; case "$withval" in
20161 { { echo "$as_me:$LINENO: error: Need logdir" >&5
20162 echo "$as_me: error: Need logdir" >&2;}
20163 { (exit 1); exit 1; }; }
20167 [\\/$]* | ?:[\\/]* )
20171 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
20172 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
20173 { (exit 1); exit 1; }; }
20180 { echo "$as_me:$LINENO: result: $logdir" >&5
20181 echo "${ECHO_T}$logdir" >&6; }
20183 radacctdir='${logdir}/radacct'
20184 { echo "$as_me:$LINENO: checking radacctdir" >&5
20185 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
20187 # Check whether --with-radacctdir was given.
20188 if test "${with_radacctdir+set}" = set; then
20189 withval=$with_radacctdir; case "$withval" in
20191 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
20192 echo "$as_me: error: Need radacctdir" >&2;}
20193 { (exit 1); exit 1; }; }
20197 [\\/$]* | ?:[\\/]* )
20198 radacctdir="$withval"
20201 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
20202 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
20203 { (exit 1); exit 1; }; }
20210 { echo "$as_me:$LINENO: result: $radacctdir" >&5
20211 echo "${ECHO_T}$radacctdir" >&6; }
20213 raddbdir='${sysconfdir}/raddb'
20214 { echo "$as_me:$LINENO: checking raddbdir" >&5
20215 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
20217 # Check whether --with-raddbdir was given.
20218 if test "${with_raddbdir+set}" = set; then
20219 withval=$with_raddbdir; case "$withval" in
20221 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
20222 echo "$as_me: error: Need raddbdir" >&2;}
20223 { (exit 1); exit 1; }; }
20227 [\\/$]* | ?:[\\/]* )
20228 raddbdir="$withval"
20231 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
20232 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
20233 { (exit 1); exit 1; }; }
20240 { echo "$as_me:$LINENO: result: $raddbdir" >&5
20241 echo "${ECHO_T}$raddbdir" >&6; }
20245 # Check whether --with-ascend-binary was given.
20246 if test "${with_ascend_binary+set}" = set; then
20247 withval=$with_ascend_binary; case "$withval" in
20256 if test "X$ASCEND_BINARY" = "Xyes"; then
20258 cat >>confdefs.h <<\_ACEOF
20259 #define ASCEND_BINARY
20266 # Check whether --with-threads was given.
20267 if test "${with_threads+set}" = set; then
20268 withval=$with_threads; case "$withval" in
20280 # Check whether --with-vmps was given.
20281 if test "${with_vmps+set}" = set; then
20282 withval=$with_vmps; case "$withval" in
20291 if test "x$WITH_VMPS" = "xyes"; then
20293 cat >>confdefs.h <<\_ACEOF
20294 #define WITH_VMPS 1
20300 # Check whether --with-dhcp was given.
20301 if test "${with_dhcp+set}" = set; then
20302 withval=$with_dhcp; case "$withval" in
20305 cat >>confdefs.h <<\_ACEOF
20306 #define WITH_DHCP 1
20320 # Check whether --with-static_modules was given.
20321 if test "${with_static_modules+set}" = set; then
20322 withval=$with_static_modules;
20323 for i in $withval; do
20324 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
20332 # Check whether --with-modules was given.
20333 if test "${with_modules+set}" = set; then
20334 withval=$with_modules;
20335 for i in $withval; do
20336 MODULES="$MODULES $i"
20342 # Check whether --enable-developer was given.
20343 if test "${enable_developer+set}" = set; then
20344 enableval=$enable_developer; case "$enableval" in
20355 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
20359 if test "x$developer" != "xno" -a -d $srcdir/.git; then
20365 # Check whether --with-experimental-modules was given.
20366 if test "${with_experimental_modules+set}" = set; then
20367 withval=$with_experimental_modules; case "$withval" in
20379 # Check whether --with-openssl was given.
20380 if test "${with_openssl+set}" = set; then
20381 withval=$with_openssl; case "$withval" in
20393 OPENSSL_INCLUDE_DIR=
20395 # Check whether --with-openssl-includes was given.
20396 if test "${with_openssl_includes+set}" = set; then
20397 withval=$with_openssl_includes; case "$withval" in
20398 *) OPENSSL_INCLUDE_DIR="$withval"
20407 # Check whether --with-openssl-libraries was given.
20408 if test "${with_openssl_libraries+set}" = set; then
20409 withval=$with_openssl_libraries; case "$withval" in
20410 *) OPENSSL_LIB_DIR="$withval"
20419 # Check whether --with-rlm-FOO-lib-dir was given.
20420 if test "${with_rlm_FOO_lib_dir+set}" = set; then
20421 withval=$with_rlm_FOO_lib_dir; case "$withval" in
20430 # Check whether --with-rlm-FOO-include-dir was given.
20431 if test "${with_rlm_FOO_include_dir+set}" = set; then
20432 withval=$with_rlm_FOO_include_dir; case "$withval" in
20443 # Check whether --with-udpfromto was given.
20444 if test "${with_udpfromto+set}" = set; then
20445 withval=$with_udpfromto; case "$withval" in
20456 if test "x$WITH_UDPFROMTO" = "xyes"; then
20458 cat >>confdefs.h <<\_ACEOF
20459 #define WITH_UDPFROMTO
20465 CHECKRAD=checkrad.pl
20466 # Extract the first word of "perl", so it can be a program name with args.
20467 set dummy perl; ac_word=$2
20468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20470 if test "${ac_cv_path_PERL+set}" = set; then
20471 echo $ECHO_N "(cached) $ECHO_C" >&6
20475 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20479 for as_dir in $PATH
20482 test -z "$as_dir" && as_dir=.
20483 for ac_exec_ext in '' $ac_executable_extensions; do
20484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20485 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
20486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20493 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
20497 PERL=$ac_cv_path_PERL
20498 if test -n "$PERL"; then
20499 { echo "$as_me:$LINENO: result: $PERL" >&5
20500 echo "${ECHO_T}$PERL" >&6; }
20502 { echo "$as_me:$LINENO: result: no" >&5
20503 echo "${ECHO_T}no" >&6; }
20507 if test "x$ac_cv_path_PERL" = "x"; then
20508 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
20509 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20511 # Extract the first word of "snmpget", so it can be a program name with args.
20512 set dummy snmpget; ac_word=$2
20513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20515 if test "${ac_cv_path_SNMPGET+set}" = set; then
20516 echo $ECHO_N "(cached) $ECHO_C" >&6
20520 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
20523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20524 for as_dir in $PATH
20527 test -z "$as_dir" && as_dir=.
20528 for ac_exec_ext in '' $ac_executable_extensions; do
20529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20530 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
20531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20541 SNMPGET=$ac_cv_path_SNMPGET
20542 if test -n "$SNMPGET"; then
20543 { echo "$as_me:$LINENO: result: $SNMPGET" >&5
20544 echo "${ECHO_T}$SNMPGET" >&6; }
20546 { echo "$as_me:$LINENO: result: no" >&5
20547 echo "${ECHO_T}no" >&6; }
20551 if test "x$ac_cv_path_SNMPGET" = "x"; then
20552 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
20553 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20556 # Extract the first word of "snmpwalk", so it can be a program name with args.
20557 set dummy snmpwalk; ac_word=$2
20558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20560 if test "${ac_cv_path_SNMPWALK+set}" = set; then
20561 echo $ECHO_N "(cached) $ECHO_C" >&6
20565 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
20568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20569 for as_dir in $PATH
20572 test -z "$as_dir" && as_dir=.
20573 for ac_exec_ext in '' $ac_executable_extensions; do
20574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20575 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20586 SNMPWALK=$ac_cv_path_SNMPWALK
20587 if test -n "$SNMPWALK"; then
20588 { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
20589 echo "${ECHO_T}$SNMPWALK" >&6; }
20591 { echo "$as_me:$LINENO: result: no" >&5
20592 echo "${ECHO_T}no" >&6; }
20596 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20597 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20598 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20601 # Extract the first word of "rusers", so it can be a program name with args.
20602 set dummy rusers; ac_word=$2
20603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20605 if test "${ac_cv_path_RUSERS+set}" = set; then
20606 echo $ECHO_N "(cached) $ECHO_C" >&6
20610 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20614 for as_dir in $PATH
20617 test -z "$as_dir" && as_dir=.
20618 for ac_exec_ext in '' $ac_executable_extensions; do
20619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20620 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20628 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20632 RUSERS=$ac_cv_path_RUSERS
20633 if test -n "$RUSERS"; then
20634 { echo "$as_me:$LINENO: result: $RUSERS" >&5
20635 echo "${ECHO_T}$RUSERS" >&6; }
20637 { echo "$as_me:$LINENO: result: no" >&5
20638 echo "${ECHO_T}no" >&6; }
20643 missing_dir=`cd $ac_aux_dir && pwd`
20644 # expand $ac_aux_dir to an absolute path
20645 am_aux_dir=`cd $ac_aux_dir && pwd`
20647 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20648 # Use eval to expand $SHELL
20649 if eval "$MISSING --run true"; then
20650 am_missing_run="$MISSING --run "
20653 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20654 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20658 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20661 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20664 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20667 # Extract the first word of "locate", so it can be a program name with args.
20668 set dummy locate; ac_word=$2
20669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20671 if test "${ac_cv_path_LOCATE+set}" = set; then
20672 echo $ECHO_N "(cached) $ECHO_C" >&6
20676 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20680 for as_dir in $PATH
20683 test -z "$as_dir" && as_dir=.
20684 for ac_exec_ext in '' $ac_executable_extensions; do
20685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20686 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20697 LOCATE=$ac_cv_path_LOCATE
20698 if test -n "$LOCATE"; then
20699 { echo "$as_me:$LINENO: result: $LOCATE" >&5
20700 echo "${ECHO_T}$LOCATE" >&6; }
20702 { echo "$as_me:$LINENO: result: no" >&5
20703 echo "${ECHO_T}no" >&6; }
20707 # Extract the first word of "dirname", so it can be a program name with args.
20708 set dummy dirname; ac_word=$2
20709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20711 if test "${ac_cv_path_DIRNAME+set}" = set; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
20716 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20720 for as_dir in $PATH
20723 test -z "$as_dir" && as_dir=.
20724 for ac_exec_ext in '' $ac_executable_extensions; do
20725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20726 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20737 DIRNAME=$ac_cv_path_DIRNAME
20738 if test -n "$DIRNAME"; then
20739 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20740 echo "${ECHO_T}$DIRNAME" >&6; }
20742 { echo "$as_me:$LINENO: result: no" >&5
20743 echo "${ECHO_T}no" >&6; }
20747 # Extract the first word of "grep", so it can be a program name with args.
20748 set dummy grep; ac_word=$2
20749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20751 if test "${ac_cv_path_GREP+set}" = set; then
20752 echo $ECHO_N "(cached) $ECHO_C" >&6
20756 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20760 for as_dir in $PATH
20763 test -z "$as_dir" && as_dir=.
20764 for ac_exec_ext in '' $ac_executable_extensions; do
20765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20766 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20777 GREP=$ac_cv_path_GREP
20778 if test -n "$GREP"; then
20779 { echo "$as_me:$LINENO: result: $GREP" >&5
20780 echo "${ECHO_T}$GREP" >&6; }
20782 { echo "$as_me:$LINENO: result: no" >&5
20783 echo "${ECHO_T}no" >&6; }
20790 if test "x$WITH_THREADS" = "xyes"; then
20791 if test $ac_cv_prog_suncc = "yes"; then
20792 CFLAGS="$CFLAGS -mt"
20796 for ac_header in pthread.h
20798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20803 echo $ECHO_N "(cached) $ECHO_C" >&6
20805 ac_res=`eval echo '${'$as_ac_Header'}'`
20806 { echo "$as_me:$LINENO: result: $ac_res" >&5
20807 echo "${ECHO_T}$ac_res" >&6; }
20809 # Is the header compilable?
20810 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20812 cat >conftest.$ac_ext <<_ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h. */
20818 $ac_includes_default
20819 #include <$ac_header>
20821 rm -f conftest.$ac_objext
20822 if { (ac_try="$ac_compile"
20823 case "(($ac_try" in
20824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825 *) ac_try_echo=$ac_try;;
20827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828 (eval "$ac_compile") 2>conftest.er1
20830 grep -v '^ *+' conftest.er1 >conftest.err
20832 cat conftest.err >&5
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); } && {
20835 test -z "$ac_c_werror_flag" ||
20836 test ! -s conftest.err
20837 } && test -s conftest.$ac_objext; then
20838 ac_header_compiler=yes
20840 echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20843 ac_header_compiler=no
20846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20848 echo "${ECHO_T}$ac_header_compiler" >&6; }
20850 # Is the header present?
20851 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20853 cat >conftest.$ac_ext <<_ACEOF
20856 cat confdefs.h >>conftest.$ac_ext
20857 cat >>conftest.$ac_ext <<_ACEOF
20858 /* end confdefs.h. */
20859 #include <$ac_header>
20861 if { (ac_try="$ac_cpp conftest.$ac_ext"
20862 case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20869 grep -v '^ *+' conftest.er1 >conftest.err
20871 cat conftest.err >&5
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); } >/dev/null && {
20874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20875 test ! -s conftest.err
20877 ac_header_preproc=yes
20879 echo "$as_me: failed program was:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20882 ac_header_preproc=no
20885 rm -f conftest.err conftest.$ac_ext
20886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20887 echo "${ECHO_T}$ac_header_preproc" >&6; }
20889 # So? What about this header?
20890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20896 ac_header_preproc=yes
20899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20917 echo $ECHO_N "(cached) $ECHO_C" >&6
20919 eval "$as_ac_Header=\$ac_header_preproc"
20921 ac_res=`eval echo '${'$as_ac_Header'}'`
20922 { echo "$as_me:$LINENO: result: $ac_res" >&5
20923 echo "${ECHO_T}$ac_res" >&6; }
20926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20927 cat >>confdefs.h <<_ACEOF
20928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20938 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20939 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20940 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20943 ac_check_lib_save_LIBS=$LIBS
20944 LIBS="-lpthread $LIBS"
20945 cat >conftest.$ac_ext <<_ACEOF
20948 cat confdefs.h >>conftest.$ac_ext
20949 cat >>conftest.$ac_ext <<_ACEOF
20950 /* end confdefs.h. */
20952 /* Override any GCC internal prototype to avoid an error.
20953 Use char because int might match the return type of a GCC
20954 builtin and then its argument prototype would still apply. */
20958 char pthread_create ();
20962 return pthread_create ();
20967 rm -f conftest.$ac_objext conftest$ac_exeext
20968 if { (ac_try="$ac_link"
20969 case "(($ac_try" in
20970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971 *) ac_try_echo=$ac_try;;
20973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20974 (eval "$ac_link") 2>conftest.er1
20976 grep -v '^ *+' conftest.er1 >conftest.err
20978 cat conftest.err >&5
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); } && {
20981 test -z "$ac_c_werror_flag" ||
20982 test ! -s conftest.err
20983 } && test -s conftest$ac_exeext &&
20984 $as_test_x conftest$ac_exeext; then
20985 ac_cv_lib_pthread_pthread_create=yes
20987 echo "$as_me: failed program was:" >&5
20988 sed 's/^/| /' conftest.$ac_ext >&5
20990 ac_cv_lib_pthread_pthread_create=no
20993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20994 conftest$ac_exeext conftest.$ac_ext
20995 LIBS=$ac_check_lib_save_LIBS
20997 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20998 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20999 if test $ac_cv_lib_pthread_pthread_create = yes; then
21000 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
21001 LIBS="$LIBS -lpthread"
21003 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21004 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
21005 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21006 echo $ECHO_N "(cached) $ECHO_C" >&6
21008 ac_check_lib_save_LIBS=$LIBS
21010 cat >conftest.$ac_ext <<_ACEOF
21013 cat confdefs.h >>conftest.$ac_ext
21014 cat >>conftest.$ac_ext <<_ACEOF
21015 /* end confdefs.h. */
21017 /* Override any GCC internal prototype to avoid an error.
21018 Use char because int might match the return type of a GCC
21019 builtin and then its argument prototype would still apply. */
21023 char pthread_create ();
21027 return pthread_create ();
21032 rm -f conftest.$ac_objext conftest$ac_exeext
21033 if { (ac_try="$ac_link"
21034 case "(($ac_try" in
21035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036 *) ac_try_echo=$ac_try;;
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039 (eval "$ac_link") 2>conftest.er1
21041 grep -v '^ *+' conftest.er1 >conftest.err
21043 cat conftest.err >&5
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); } && {
21046 test -z "$ac_c_werror_flag" ||
21047 test ! -s conftest.err
21048 } && test -s conftest$ac_exeext &&
21049 $as_test_x conftest$ac_exeext; then
21050 ac_cv_lib_c_r_pthread_create=yes
21052 echo "$as_me: failed program was:" >&5
21053 sed 's/^/| /' conftest.$ac_ext >&5
21055 ac_cv_lib_c_r_pthread_create=no
21058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21059 conftest$ac_exeext conftest.$ac_ext
21060 LIBS=$ac_check_lib_save_LIBS
21062 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21063 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
21064 if test $ac_cv_lib_c_r_pthread_create = yes; then
21065 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
21076 if test "x$WITH_THREADS" != "xyes"; then
21078 ac_cv_header_pthread_h="no"
21082 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
21083 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
21084 if test "${ac_cv_search_sem_init+set}" = set; then
21085 echo $ECHO_N "(cached) $ECHO_C" >&6
21087 ac_func_search_save_LIBS=$LIBS
21088 cat >conftest.$ac_ext <<_ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h. */
21095 /* Override any GCC internal prototype to avoid an error.
21096 Use char because int might match the return type of a GCC
21097 builtin and then its argument prototype would still apply. */
21105 return sem_init ();
21110 for ac_lib in '' pthread sem posix4 rt semaphore; do
21111 if test -z "$ac_lib"; then
21112 ac_res="none required"
21115 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21117 rm -f conftest.$ac_objext conftest$ac_exeext
21118 if { (ac_try="$ac_link"
21119 case "(($ac_try" in
21120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21121 *) ac_try_echo=$ac_try;;
21123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21124 (eval "$ac_link") 2>conftest.er1
21126 grep -v '^ *+' conftest.er1 >conftest.err
21128 cat conftest.err >&5
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); } && {
21131 test -z "$ac_c_werror_flag" ||
21132 test ! -s conftest.err
21133 } && test -s conftest$ac_exeext &&
21134 $as_test_x conftest$ac_exeext; then
21135 ac_cv_search_sem_init=$ac_res
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21145 if test "${ac_cv_search_sem_init+set}" = set; then
21149 if test "${ac_cv_search_sem_init+set}" = set; then
21152 ac_cv_search_sem_init=no
21154 rm conftest.$ac_ext
21155 LIBS=$ac_func_search_save_LIBS
21157 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
21158 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
21159 ac_res=$ac_cv_search_sem_init
21160 if test "$ac_res" != no; then
21161 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21164 { { 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
21165 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;}
21166 { (exit 1); exit 1; }; }
21173 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
21174 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
21175 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
21176 echo $ECHO_N "(cached) $ECHO_C" >&6
21178 ac_check_lib_save_LIBS=$LIBS
21179 LIBS="-lsocket $LIBS"
21180 cat >conftest.$ac_ext <<_ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h. */
21187 /* Override any GCC internal prototype to avoid an error.
21188 Use char because int might match the return type of a GCC
21189 builtin and then its argument prototype would still apply. */
21193 char getsockname ();
21197 return getsockname ();
21202 rm -f conftest.$ac_objext conftest$ac_exeext
21203 if { (ac_try="$ac_link"
21204 case "(($ac_try" in
21205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21206 *) ac_try_echo=$ac_try;;
21208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21209 (eval "$ac_link") 2>conftest.er1
21211 grep -v '^ *+' conftest.er1 >conftest.err
21213 cat conftest.err >&5
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); } && {
21216 test -z "$ac_c_werror_flag" ||
21217 test ! -s conftest.err
21218 } && test -s conftest$ac_exeext &&
21219 $as_test_x conftest$ac_exeext; then
21220 ac_cv_lib_socket_getsockname=yes
21222 echo "$as_me: failed program was:" >&5
21223 sed 's/^/| /' conftest.$ac_ext >&5
21225 ac_cv_lib_socket_getsockname=no
21228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21229 conftest$ac_exeext conftest.$ac_ext
21230 LIBS=$ac_check_lib_save_LIBS
21232 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
21233 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
21234 if test $ac_cv_lib_socket_getsockname = yes; then
21235 cat >>confdefs.h <<_ACEOF
21236 #define HAVE_LIBSOCKET 1
21239 LIBS="-lsocket $LIBS"
21245 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
21246 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
21247 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
21248 echo $ECHO_N "(cached) $ECHO_C" >&6
21250 ac_check_lib_save_LIBS=$LIBS
21251 LIBS="-lresolv $LIBS"
21252 cat >conftest.$ac_ext <<_ACEOF
21255 cat confdefs.h >>conftest.$ac_ext
21256 cat >>conftest.$ac_ext <<_ACEOF
21257 /* end confdefs.h. */
21259 /* Override any GCC internal prototype to avoid an error.
21260 Use char because int might match the return type of a GCC
21261 builtin and then its argument prototype would still apply. */
21269 return inet_aton ();
21274 rm -f conftest.$ac_objext conftest$ac_exeext
21275 if { (ac_try="$ac_link"
21276 case "(($ac_try" in
21277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278 *) ac_try_echo=$ac_try;;
21280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21281 (eval "$ac_link") 2>conftest.er1
21283 grep -v '^ *+' conftest.er1 >conftest.err
21285 cat conftest.err >&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); } && {
21288 test -z "$ac_c_werror_flag" ||
21289 test ! -s conftest.err
21290 } && test -s conftest$ac_exeext &&
21291 $as_test_x conftest$ac_exeext; then
21292 ac_cv_lib_resolv_inet_aton=yes
21294 echo "$as_me: failed program was:" >&5
21295 sed 's/^/| /' conftest.$ac_ext >&5
21297 ac_cv_lib_resolv_inet_aton=no
21300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21301 conftest$ac_exeext conftest.$ac_ext
21302 LIBS=$ac_check_lib_save_LIBS
21304 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
21305 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
21306 if test $ac_cv_lib_resolv_inet_aton = yes; then
21307 cat >>confdefs.h <<_ACEOF
21308 #define HAVE_LIBRESOLV 1
21311 LIBS="-lresolv $LIBS"
21317 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
21318 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
21319 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
21320 echo $ECHO_N "(cached) $ECHO_C" >&6
21322 ac_check_lib_save_LIBS=$LIBS
21324 cat >conftest.$ac_ext <<_ACEOF
21327 cat confdefs.h >>conftest.$ac_ext
21328 cat >>conftest.$ac_ext <<_ACEOF
21329 /* end confdefs.h. */
21331 /* Override any GCC internal prototype to avoid an error.
21332 Use char because int might match the return type of a GCC
21333 builtin and then its argument prototype would still apply. */
21341 return inet_ntoa ();
21346 rm -f conftest.$ac_objext conftest$ac_exeext
21347 if { (ac_try="$ac_link"
21348 case "(($ac_try" in
21349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21350 *) ac_try_echo=$ac_try;;
21352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21353 (eval "$ac_link") 2>conftest.er1
21355 grep -v '^ *+' conftest.er1 >conftest.err
21357 cat conftest.err >&5
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); } && {
21360 test -z "$ac_c_werror_flag" ||
21361 test ! -s conftest.err
21362 } && test -s conftest$ac_exeext &&
21363 $as_test_x conftest$ac_exeext; then
21364 ac_cv_lib_nsl_inet_ntoa=yes
21366 echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21369 ac_cv_lib_nsl_inet_ntoa=no
21372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21373 conftest$ac_exeext conftest.$ac_ext
21374 LIBS=$ac_check_lib_save_LIBS
21376 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
21377 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
21378 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
21379 cat >>confdefs.h <<_ACEOF
21380 #define HAVE_LIBNSL 1
21389 if test "x$WITH_OPENSSL" = xyes; then
21391 if test "x$OPENSSL_LIB_DIR" != "x"; then
21392 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
21394 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21395 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
21396 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
21397 echo $ECHO_N "(cached) $ECHO_C" >&6
21399 ac_check_lib_save_LIBS=$LIBS
21400 LIBS="-lcrypto $LIBS"
21401 cat >conftest.$ac_ext <<_ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h. */
21408 /* Override any GCC internal prototype to avoid an error.
21409 Use char because int might match the return type of a GCC
21410 builtin and then its argument prototype would still apply. */
21423 rm -f conftest.$ac_objext conftest$ac_exeext
21424 if { (ac_try="$ac_link"
21425 case "(($ac_try" in
21426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21427 *) ac_try_echo=$ac_try;;
21429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21430 (eval "$ac_link") 2>conftest.er1
21432 grep -v '^ *+' conftest.er1 >conftest.err
21434 cat conftest.err >&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } && {
21437 test -z "$ac_c_werror_flag" ||
21438 test ! -s conftest.err
21439 } && test -s conftest$ac_exeext &&
21440 $as_test_x conftest$ac_exeext; then
21441 ac_cv_lib_crypto_DH_new=yes
21443 echo "$as_me: failed program was:" >&5
21444 sed 's/^/| /' conftest.$ac_ext >&5
21446 ac_cv_lib_crypto_DH_new=no
21449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21450 conftest$ac_exeext conftest.$ac_ext
21451 LIBS=$ac_check_lib_save_LIBS
21453 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
21454 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
21455 if test $ac_cv_lib_crypto_DH_new = yes; then
21457 LIBS="-lcrypto $LIBS"
21459 cat >>confdefs.h <<\_ACEOF
21460 #define HAVE_LIBCRYPTO 1
21463 { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21464 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
21465 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
21466 echo $ECHO_N "(cached) $ECHO_C" >&6
21468 ac_check_lib_save_LIBS=$LIBS
21470 cat >conftest.$ac_ext <<_ACEOF
21473 cat confdefs.h >>conftest.$ac_ext
21474 cat >>conftest.$ac_ext <<_ACEOF
21475 /* end confdefs.h. */
21477 /* Override any GCC internal prototype to avoid an error.
21478 Use char because int might match the return type of a GCC
21479 builtin and then its argument prototype would still apply. */
21492 rm -f conftest.$ac_objext conftest$ac_exeext
21493 if { (ac_try="$ac_link"
21494 case "(($ac_try" in
21495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21496 *) ac_try_echo=$ac_try;;
21498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21499 (eval "$ac_link") 2>conftest.er1
21501 grep -v '^ *+' conftest.er1 >conftest.err
21503 cat conftest.err >&5
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); } && {
21506 test -z "$ac_c_werror_flag" ||
21507 test ! -s conftest.err
21508 } && test -s conftest$ac_exeext &&
21509 $as_test_x conftest$ac_exeext; then
21510 ac_cv_lib_ssl_SSL_new=yes
21512 echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21515 ac_cv_lib_ssl_SSL_new=no
21518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21519 conftest$ac_exeext conftest.$ac_ext
21520 LIBS=$ac_check_lib_save_LIBS
21522 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
21523 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
21524 if test $ac_cv_lib_ssl_SSL_new = yes; then
21527 cat >>confdefs.h <<\_ACEOF
21528 #define HAVE_LIBSSL 1
21531 if test "x$OPENSSL_LIB_DIR" != "x"; then
21532 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21534 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21545 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
21546 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
21547 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
21548 echo $ECHO_N "(cached) $ECHO_C" >&6
21550 ac_check_lib_save_LIBS=$LIBS
21551 LIBS="-lws2_32 $LIBS"
21552 cat >conftest.$ac_ext <<_ACEOF
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h. */
21559 /* Override any GCC internal prototype to avoid an error.
21560 Use char because int might match the return type of a GCC
21561 builtin and then its argument prototype would still apply. */
21574 rm -f conftest.$ac_objext conftest$ac_exeext
21575 if { (ac_try="$ac_link"
21576 case "(($ac_try" in
21577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21578 *) ac_try_echo=$ac_try;;
21580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21581 (eval "$ac_link") 2>conftest.er1
21583 grep -v '^ *+' conftest.er1 >conftest.err
21585 cat conftest.err >&5
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); } && {
21588 test -z "$ac_c_werror_flag" ||
21589 test ! -s conftest.err
21590 } && test -s conftest$ac_exeext &&
21591 $as_test_x conftest$ac_exeext; then
21592 ac_cv_lib_ws2_32_htonl=yes
21594 echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21597 ac_cv_lib_ws2_32_htonl=no
21600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21601 conftest$ac_exeext conftest.$ac_ext
21602 LIBS=$ac_check_lib_save_LIBS
21604 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21605 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21606 if test $ac_cv_lib_ws2_32_htonl = yes; then
21607 cat >>confdefs.h <<_ACEOF
21608 #define HAVE_LIBWS2_32 1
21611 LIBS="-lws2_32 $LIBS"
21617 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21618 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21619 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21620 echo $ECHO_N "(cached) $ECHO_C" >&6
21622 ac_check_lib_save_LIBS=$LIBS
21623 LIBS="-lpcap $LIBS"
21624 cat >conftest.$ac_ext <<_ACEOF
21627 cat confdefs.h >>conftest.$ac_ext
21628 cat >>conftest.$ac_ext <<_ACEOF
21629 /* end confdefs.h. */
21631 /* Override any GCC internal prototype to avoid an error.
21632 Use char because int might match the return type of a GCC
21633 builtin and then its argument prototype would still apply. */
21637 char pcap_open_live ();
21641 return pcap_open_live ();
21646 rm -f conftest.$ac_objext conftest$ac_exeext
21647 if { (ac_try="$ac_link"
21648 case "(($ac_try" in
21649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650 *) ac_try_echo=$ac_try;;
21652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653 (eval "$ac_link") 2>conftest.er1
21655 grep -v '^ *+' conftest.er1 >conftest.err
21657 cat conftest.err >&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); } && {
21660 test -z "$ac_c_werror_flag" ||
21661 test ! -s conftest.err
21662 } && test -s conftest$ac_exeext &&
21663 $as_test_x conftest$ac_exeext; then
21664 ac_cv_lib_pcap_pcap_open_live=yes
21666 echo "$as_me: failed program was:" >&5
21667 sed 's/^/| /' conftest.$ac_ext >&5
21669 ac_cv_lib_pcap_pcap_open_live=no
21672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21673 conftest$ac_exeext conftest.$ac_ext
21674 LIBS=$ac_check_lib_save_LIBS
21676 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21677 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21678 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21681 cat >>confdefs.h <<\_ACEOF
21682 #define HAVE_LIBPCAP 1
21687 { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21688 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21693 { echo "$as_me:$LINENO: checking for a readline compatible library" >&5
21694 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6; }
21695 if test "${ac_cv_lib_readline+set}" = set; then
21696 echo $ECHO_N "(cached) $ECHO_C" >&6
21700 for readline_lib in readline edit editline; do
21701 for termcap_lib in "" termcap curses ncurses; do
21702 if test -z "$termcap_lib"; then
21703 TRY_LIB="-l$readline_lib"
21705 TRY_LIB="-l$readline_lib -l$termcap_lib"
21707 LIBS="$ORIG_LIBS $TRY_LIB"
21708 cat >conftest.$ac_ext <<_ACEOF
21711 cat confdefs.h >>conftest.$ac_ext
21712 cat >>conftest.$ac_ext <<_ACEOF
21713 /* end confdefs.h. */
21715 /* Override any GCC internal prototype to avoid an error.
21716 Use char because int might match the return type of a GCC
21717 builtin and then its argument prototype would still apply. */
21725 return readline ();
21730 rm -f conftest.$ac_objext conftest$ac_exeext
21731 if { (ac_try="$ac_link"
21732 case "(($ac_try" in
21733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21734 *) ac_try_echo=$ac_try;;
21736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21737 (eval "$ac_link") 2>conftest.er1
21739 grep -v '^ *+' conftest.er1 >conftest.err
21741 cat conftest.err >&5
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); } && {
21744 test -z "$ac_c_werror_flag" ||
21745 test ! -s conftest.err
21746 } && test -s conftest$ac_exeext &&
21747 $as_test_x conftest$ac_exeext; then
21748 ac_cv_lib_readline="$TRY_LIB"
21750 echo "$as_me: failed program was:" >&5
21751 sed 's/^/| /' conftest.$ac_ext >&5
21756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21757 conftest$ac_exeext conftest.$ac_ext
21758 if test -n "$ac_cv_lib_readline"; then
21759 LIBREADLINE="$TRY_LIB"
21764 if test -n "$ac_cv_lib_readline"; then
21768 if test -z "$ac_cv_lib_readline"; then
21769 ac_cv_lib_readline="no"
21774 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
21775 echo "${ECHO_T}$ac_cv_lib_readline" >&6; }
21777 if test "$ac_cv_lib_readline" != "no"; then
21779 cat >>confdefs.h <<\_ACEOF
21780 #define HAVE_LIBREADLINE 1
21785 for ac_header in readline.h readline/readline.h
21787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21792 echo $ECHO_N "(cached) $ECHO_C" >&6
21794 ac_res=`eval echo '${'$as_ac_Header'}'`
21795 { echo "$as_me:$LINENO: result: $ac_res" >&5
21796 echo "${ECHO_T}$ac_res" >&6; }
21798 # Is the header compilable?
21799 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21801 cat >conftest.$ac_ext <<_ACEOF
21804 cat confdefs.h >>conftest.$ac_ext
21805 cat >>conftest.$ac_ext <<_ACEOF
21806 /* end confdefs.h. */
21807 $ac_includes_default
21808 #include <$ac_header>
21810 rm -f conftest.$ac_objext
21811 if { (ac_try="$ac_compile"
21812 case "(($ac_try" in
21813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21814 *) ac_try_echo=$ac_try;;
21816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21817 (eval "$ac_compile") 2>conftest.er1
21819 grep -v '^ *+' conftest.er1 >conftest.err
21821 cat conftest.err >&5
21822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823 (exit $ac_status); } && {
21824 test -z "$ac_c_werror_flag" ||
21825 test ! -s conftest.err
21826 } && test -s conftest.$ac_objext; then
21827 ac_header_compiler=yes
21829 echo "$as_me: failed program was:" >&5
21830 sed 's/^/| /' conftest.$ac_ext >&5
21832 ac_header_compiler=no
21835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21836 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21837 echo "${ECHO_T}$ac_header_compiler" >&6; }
21839 # Is the header present?
21840 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 <$ac_header>
21850 if { (ac_try="$ac_cpp conftest.$ac_ext"
21851 case "(($ac_try" in
21852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21853 *) ac_try_echo=$ac_try;;
21855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21858 grep -v '^ *+' conftest.er1 >conftest.err
21860 cat conftest.err >&5
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); } >/dev/null && {
21863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21864 test ! -s conftest.err
21866 ac_header_preproc=yes
21868 echo "$as_me: failed program was:" >&5
21869 sed 's/^/| /' conftest.$ac_ext >&5
21871 ac_header_preproc=no
21874 rm -f conftest.err conftest.$ac_ext
21875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21876 echo "${ECHO_T}$ac_header_preproc" >&6; }
21878 # So? What about this header?
21879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21885 ac_header_preproc=yes
21888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21906 echo $ECHO_N "(cached) $ECHO_C" >&6
21908 eval "$as_ac_Header=\$ac_header_preproc"
21910 ac_res=`eval echo '${'$as_ac_Header'}'`
21911 { echo "$as_me:$LINENO: result: $ac_res" >&5
21912 echo "${ECHO_T}$ac_res" >&6; }
21915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21916 cat >>confdefs.h <<_ACEOF
21917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21924 { echo "$as_me:$LINENO: checking whether readline supports history" >&5
21925 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6; }
21926 if test "${ac_cv_lib_readline_history+set}" = set; then
21927 echo $ECHO_N "(cached) $ECHO_C" >&6
21930 ac_cv_lib_readline_history="no"
21931 cat >conftest.$ac_ext <<_ACEOF
21934 cat confdefs.h >>conftest.$ac_ext
21935 cat >>conftest.$ac_ext <<_ACEOF
21936 /* end confdefs.h. */
21938 /* Override any GCC internal prototype to avoid an error.
21939 Use char because int might match the return type of a GCC
21940 builtin and then its argument prototype would still apply. */
21944 char add_history ();
21948 return add_history ();
21953 rm -f conftest.$ac_objext conftest$ac_exeext
21954 if { (ac_try="$ac_link"
21955 case "(($ac_try" in
21956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21957 *) ac_try_echo=$ac_try;;
21959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21960 (eval "$ac_link") 2>conftest.er1
21962 grep -v '^ *+' conftest.er1 >conftest.err
21964 cat conftest.err >&5
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); } && {
21967 test -z "$ac_c_werror_flag" ||
21968 test ! -s conftest.err
21969 } && test -s conftest$ac_exeext &&
21970 $as_test_x conftest$ac_exeext; then
21971 ac_cv_lib_readline_history="yes"
21973 echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21980 conftest$ac_exeext conftest.$ac_ext
21983 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
21984 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6; }
21985 if test "$ac_cv_lib_readline_history" = "yes"; then
21987 cat >>confdefs.h <<\_ACEOF
21988 #define HAVE_READLINE_HISTORY 1
21993 for ac_header in history.h readline/history.h
21995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22000 echo $ECHO_N "(cached) $ECHO_C" >&6
22002 ac_res=`eval echo '${'$as_ac_Header'}'`
22003 { echo "$as_me:$LINENO: result: $ac_res" >&5
22004 echo "${ECHO_T}$ac_res" >&6; }
22006 # Is the header compilable?
22007 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22009 cat >conftest.$ac_ext <<_ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22015 $ac_includes_default
22016 #include <$ac_header>
22018 rm -f conftest.$ac_objext
22019 if { (ac_try="$ac_compile"
22020 case "(($ac_try" in
22021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22022 *) ac_try_echo=$ac_try;;
22024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22025 (eval "$ac_compile") 2>conftest.er1
22027 grep -v '^ *+' conftest.er1 >conftest.err
22029 cat conftest.err >&5
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); } && {
22032 test -z "$ac_c_werror_flag" ||
22033 test ! -s conftest.err
22034 } && test -s conftest.$ac_objext; then
22035 ac_header_compiler=yes
22037 echo "$as_me: failed program was:" >&5
22038 sed 's/^/| /' conftest.$ac_ext >&5
22040 ac_header_compiler=no
22043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22045 echo "${ECHO_T}$ac_header_compiler" >&6; }
22047 # Is the header present?
22048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22050 cat >conftest.$ac_ext <<_ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h. */
22056 #include <$ac_header>
22058 if { (ac_try="$ac_cpp conftest.$ac_ext"
22059 case "(($ac_try" in
22060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061 *) ac_try_echo=$ac_try;;
22063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22066 grep -v '^ *+' conftest.er1 >conftest.err
22068 cat conftest.err >&5
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); } >/dev/null && {
22071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22072 test ! -s conftest.err
22074 ac_header_preproc=yes
22076 echo "$as_me: failed program was:" >&5
22077 sed 's/^/| /' conftest.$ac_ext >&5
22079 ac_header_preproc=no
22082 rm -f conftest.err conftest.$ac_ext
22083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22084 echo "${ECHO_T}$ac_header_preproc" >&6; }
22086 # So? What about this header?
22087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22093 ac_header_preproc=yes
22096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22099 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22100 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22102 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22103 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22106 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22114 echo $ECHO_N "(cached) $ECHO_C" >&6
22116 eval "$as_ac_Header=\$ac_header_preproc"
22118 ac_res=`eval echo '${'$as_ac_Header'}'`
22119 { echo "$as_me:$LINENO: result: $ac_res" >&5
22120 echo "${ECHO_T}$ac_res" >&6; }
22123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22124 cat >>confdefs.h <<_ACEOF
22125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22139 CFLAGS="$CFLAGS -D_ALL_SOURCE"
22142 CFLAGS="$CFLAGS -DDARWIN"
22143 LIBS="-framework DirectoryService $LIBS"
22152 ac_header_dirent=no
22153 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22154 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22155 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22156 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22158 echo $ECHO_N "(cached) $ECHO_C" >&6
22160 cat >conftest.$ac_ext <<_ACEOF
22163 cat confdefs.h >>conftest.$ac_ext
22164 cat >>conftest.$ac_ext <<_ACEOF
22165 /* end confdefs.h. */
22166 #include <sys/types.h>
22178 rm -f conftest.$ac_objext
22179 if { (ac_try="$ac_compile"
22180 case "(($ac_try" in
22181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22182 *) ac_try_echo=$ac_try;;
22184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22185 (eval "$ac_compile") 2>conftest.er1
22187 grep -v '^ *+' conftest.er1 >conftest.err
22189 cat conftest.err >&5
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); } && {
22192 test -z "$ac_c_werror_flag" ||
22193 test ! -s conftest.err
22194 } && test -s conftest.$ac_objext; then
22195 eval "$as_ac_Header=yes"
22197 echo "$as_me: failed program was:" >&5
22198 sed 's/^/| /' conftest.$ac_ext >&5
22200 eval "$as_ac_Header=no"
22203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22205 ac_res=`eval echo '${'$as_ac_Header'}'`
22206 { echo "$as_me:$LINENO: result: $ac_res" >&5
22207 echo "${ECHO_T}$ac_res" >&6; }
22208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22209 cat >>confdefs.h <<_ACEOF
22210 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22213 ac_header_dirent=$ac_hdr; break
22217 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22218 if test $ac_header_dirent = dirent.h; then
22219 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22220 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22221 if test "${ac_cv_search_opendir+set}" = set; then
22222 echo $ECHO_N "(cached) $ECHO_C" >&6
22224 ac_func_search_save_LIBS=$LIBS
22225 cat >conftest.$ac_ext <<_ACEOF
22228 cat confdefs.h >>conftest.$ac_ext
22229 cat >>conftest.$ac_ext <<_ACEOF
22230 /* end confdefs.h. */
22232 /* Override any GCC internal prototype to avoid an error.
22233 Use char because int might match the return type of a GCC
22234 builtin and then its argument prototype would still apply. */
22247 for ac_lib in '' dir; do
22248 if test -z "$ac_lib"; then
22249 ac_res="none required"
22252 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22254 rm -f conftest.$ac_objext conftest$ac_exeext
22255 if { (ac_try="$ac_link"
22256 case "(($ac_try" in
22257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258 *) ac_try_echo=$ac_try;;
22260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22261 (eval "$ac_link") 2>conftest.er1
22263 grep -v '^ *+' conftest.er1 >conftest.err
22265 cat conftest.err >&5
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); } && {
22268 test -z "$ac_c_werror_flag" ||
22269 test ! -s conftest.err
22270 } && test -s conftest$ac_exeext &&
22271 $as_test_x conftest$ac_exeext; then
22272 ac_cv_search_opendir=$ac_res
22274 echo "$as_me: failed program was:" >&5
22275 sed 's/^/| /' conftest.$ac_ext >&5
22280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22282 if test "${ac_cv_search_opendir+set}" = set; then
22286 if test "${ac_cv_search_opendir+set}" = set; then
22289 ac_cv_search_opendir=no
22291 rm conftest.$ac_ext
22292 LIBS=$ac_func_search_save_LIBS
22294 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22295 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22296 ac_res=$ac_cv_search_opendir
22297 if test "$ac_res" != no; then
22298 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22303 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22304 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22305 if test "${ac_cv_search_opendir+set}" = set; then
22306 echo $ECHO_N "(cached) $ECHO_C" >&6
22308 ac_func_search_save_LIBS=$LIBS
22309 cat >conftest.$ac_ext <<_ACEOF
22312 cat confdefs.h >>conftest.$ac_ext
22313 cat >>conftest.$ac_ext <<_ACEOF
22314 /* end confdefs.h. */
22316 /* Override any GCC internal prototype to avoid an error.
22317 Use char because int might match the return type of a GCC
22318 builtin and then its argument prototype would still apply. */
22331 for ac_lib in '' x; do
22332 if test -z "$ac_lib"; then
22333 ac_res="none required"
22336 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22338 rm -f conftest.$ac_objext conftest$ac_exeext
22339 if { (ac_try="$ac_link"
22340 case "(($ac_try" in
22341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22342 *) ac_try_echo=$ac_try;;
22344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22345 (eval "$ac_link") 2>conftest.er1
22347 grep -v '^ *+' conftest.er1 >conftest.err
22349 cat conftest.err >&5
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); } && {
22352 test -z "$ac_c_werror_flag" ||
22353 test ! -s conftest.err
22354 } && test -s conftest$ac_exeext &&
22355 $as_test_x conftest$ac_exeext; then
22356 ac_cv_search_opendir=$ac_res
22358 echo "$as_me: failed program was:" >&5
22359 sed 's/^/| /' conftest.$ac_ext >&5
22364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22366 if test "${ac_cv_search_opendir+set}" = set; then
22370 if test "${ac_cv_search_opendir+set}" = set; then
22373 ac_cv_search_opendir=no
22375 rm conftest.$ac_ext
22376 LIBS=$ac_func_search_save_LIBS
22378 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22379 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22380 ac_res=$ac_cv_search_opendir
22381 if test "$ac_res" != no; then
22382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22388 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22389 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22390 if test "${ac_cv_header_stdc+set}" = set; then
22391 echo $ECHO_N "(cached) $ECHO_C" >&6
22393 cat >conftest.$ac_ext <<_ACEOF
22396 cat confdefs.h >>conftest.$ac_ext
22397 cat >>conftest.$ac_ext <<_ACEOF
22398 /* end confdefs.h. */
22399 #include <stdlib.h>
22400 #include <stdarg.h>
22401 #include <string.h>
22412 rm -f conftest.$ac_objext
22413 if { (ac_try="$ac_compile"
22414 case "(($ac_try" in
22415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22416 *) ac_try_echo=$ac_try;;
22418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22419 (eval "$ac_compile") 2>conftest.er1
22421 grep -v '^ *+' conftest.er1 >conftest.err
22423 cat conftest.err >&5
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); } && {
22426 test -z "$ac_c_werror_flag" ||
22427 test ! -s conftest.err
22428 } && test -s conftest.$ac_objext; then
22429 ac_cv_header_stdc=yes
22431 echo "$as_me: failed program was:" >&5
22432 sed 's/^/| /' conftest.$ac_ext >&5
22434 ac_cv_header_stdc=no
22437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22439 if test $ac_cv_header_stdc = yes; then
22440 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22441 cat >conftest.$ac_ext <<_ACEOF
22444 cat confdefs.h >>conftest.$ac_ext
22445 cat >>conftest.$ac_ext <<_ACEOF
22446 /* end confdefs.h. */
22447 #include <string.h>
22450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22451 $EGREP "memchr" >/dev/null 2>&1; then
22454 ac_cv_header_stdc=no
22460 if test $ac_cv_header_stdc = yes; then
22461 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22462 cat >conftest.$ac_ext <<_ACEOF
22465 cat confdefs.h >>conftest.$ac_ext
22466 cat >>conftest.$ac_ext <<_ACEOF
22467 /* end confdefs.h. */
22468 #include <stdlib.h>
22471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22472 $EGREP "free" >/dev/null 2>&1; then
22475 ac_cv_header_stdc=no
22481 if test $ac_cv_header_stdc = yes; then
22482 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22483 if test "$cross_compiling" = yes; then
22486 cat >conftest.$ac_ext <<_ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h. */
22493 #include <stdlib.h>
22494 #if ((' ' & 0x0FF) == 0x020)
22495 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22496 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22498 # define ISLOWER(c) \
22499 (('a' <= (c) && (c) <= 'i') \
22500 || ('j' <= (c) && (c) <= 'r') \
22501 || ('s' <= (c) && (c) <= 'z'))
22502 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22505 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22510 for (i = 0; i < 256; i++)
22511 if (XOR (islower (i), ISLOWER (i))
22512 || toupper (i) != TOUPPER (i))
22517 rm -f conftest$ac_exeext
22518 if { (ac_try="$ac_link"
22519 case "(($ac_try" in
22520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22521 *) ac_try_echo=$ac_try;;
22523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22524 (eval "$ac_link") 2>&5
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22528 { (case "(($ac_try" in
22529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530 *) ac_try_echo=$ac_try;;
22532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22533 (eval "$ac_try") 2>&5
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); }; }; then
22539 echo "$as_me: program exited with status $ac_status" >&5
22540 echo "$as_me: failed program was:" >&5
22541 sed 's/^/| /' conftest.$ac_ext >&5
22543 ( exit $ac_status )
22544 ac_cv_header_stdc=no
22546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22552 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22553 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22554 if test $ac_cv_header_stdc = yes; then
22556 cat >>confdefs.h <<\_ACEOF
22557 #define STDC_HEADERS 1
22562 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22563 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22564 if test "${ac_cv_header_time+set}" = set; then
22565 echo $ECHO_N "(cached) $ECHO_C" >&6
22567 cat >conftest.$ac_ext <<_ACEOF
22570 cat confdefs.h >>conftest.$ac_ext
22571 cat >>conftest.$ac_ext <<_ACEOF
22572 /* end confdefs.h. */
22573 #include <sys/types.h>
22574 #include <sys/time.h>
22580 if ((struct tm *) 0)
22586 rm -f conftest.$ac_objext
22587 if { (ac_try="$ac_compile"
22588 case "(($ac_try" in
22589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22590 *) ac_try_echo=$ac_try;;
22592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22593 (eval "$ac_compile") 2>conftest.er1
22595 grep -v '^ *+' conftest.er1 >conftest.err
22597 cat conftest.err >&5
22598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 (exit $ac_status); } && {
22600 test -z "$ac_c_werror_flag" ||
22601 test ! -s conftest.err
22602 } && test -s conftest.$ac_objext; then
22603 ac_cv_header_time=yes
22605 echo "$as_me: failed program was:" >&5
22606 sed 's/^/| /' conftest.$ac_ext >&5
22608 ac_cv_header_time=no
22611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22613 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22614 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22615 if test $ac_cv_header_time = yes; then
22617 cat >>confdefs.h <<\_ACEOF
22618 #define TIME_WITH_SYS_TIME 1
22623 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22624 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22625 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22626 echo $ECHO_N "(cached) $ECHO_C" >&6
22628 cat >conftest.$ac_ext <<_ACEOF
22631 cat confdefs.h >>conftest.$ac_ext
22632 cat >>conftest.$ac_ext <<_ACEOF
22633 /* end confdefs.h. */
22634 #include <sys/types.h>
22635 #include <sys/wait.h>
22636 #ifndef WEXITSTATUS
22637 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22640 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22648 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22653 rm -f conftest.$ac_objext
22654 if { (ac_try="$ac_compile"
22655 case "(($ac_try" in
22656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22657 *) ac_try_echo=$ac_try;;
22659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22660 (eval "$ac_compile") 2>conftest.er1
22662 grep -v '^ *+' conftest.er1 >conftest.err
22664 cat conftest.err >&5
22665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666 (exit $ac_status); } && {
22667 test -z "$ac_c_werror_flag" ||
22668 test ! -s conftest.err
22669 } && test -s conftest.$ac_objext; then
22670 ac_cv_header_sys_wait_h=yes
22672 echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.$ac_ext >&5
22675 ac_cv_header_sys_wait_h=no
22678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22680 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22681 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22682 if test $ac_cv_header_sys_wait_h = yes; then
22684 cat >>confdefs.h <<\_ACEOF
22685 #define HAVE_SYS_WAIT_H 1
22764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22769 echo $ECHO_N "(cached) $ECHO_C" >&6
22771 ac_res=`eval echo '${'$as_ac_Header'}'`
22772 { echo "$as_me:$LINENO: result: $ac_res" >&5
22773 echo "${ECHO_T}$ac_res" >&6; }
22775 # Is the header compilable?
22776 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22778 cat >conftest.$ac_ext <<_ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h. */
22784 $ac_includes_default
22785 #include <$ac_header>
22787 rm -f conftest.$ac_objext
22788 if { (ac_try="$ac_compile"
22789 case "(($ac_try" in
22790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22791 *) ac_try_echo=$ac_try;;
22793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22794 (eval "$ac_compile") 2>conftest.er1
22796 grep -v '^ *+' conftest.er1 >conftest.err
22798 cat conftest.err >&5
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); } && {
22801 test -z "$ac_c_werror_flag" ||
22802 test ! -s conftest.err
22803 } && test -s conftest.$ac_objext; then
22804 ac_header_compiler=yes
22806 echo "$as_me: failed program was:" >&5
22807 sed 's/^/| /' conftest.$ac_ext >&5
22809 ac_header_compiler=no
22812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22814 echo "${ECHO_T}$ac_header_compiler" >&6; }
22816 # Is the header present?
22817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22819 cat >conftest.$ac_ext <<_ACEOF
22822 cat confdefs.h >>conftest.$ac_ext
22823 cat >>conftest.$ac_ext <<_ACEOF
22824 /* end confdefs.h. */
22825 #include <$ac_header>
22827 if { (ac_try="$ac_cpp conftest.$ac_ext"
22828 case "(($ac_try" in
22829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22830 *) ac_try_echo=$ac_try;;
22832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22835 grep -v '^ *+' conftest.er1 >conftest.err
22837 cat conftest.err >&5
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); } >/dev/null && {
22840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22841 test ! -s conftest.err
22843 ac_header_preproc=yes
22845 echo "$as_me: failed program was:" >&5
22846 sed 's/^/| /' conftest.$ac_ext >&5
22848 ac_header_preproc=no
22851 rm -f conftest.err conftest.$ac_ext
22852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22853 echo "${ECHO_T}$ac_header_preproc" >&6; }
22855 # So? What about this header?
22856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22862 ac_header_preproc=yes
22865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22883 echo $ECHO_N "(cached) $ECHO_C" >&6
22885 eval "$as_ac_Header=\$ac_header_preproc"
22887 ac_res=`eval echo '${'$as_ac_Header'}'`
22888 { echo "$as_me:$LINENO: result: $ac_res" >&5
22889 echo "${ECHO_T}$ac_res" >&6; }
22892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22893 cat >>confdefs.h <<_ACEOF
22894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22903 for ac_header in net/if.h
22905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22909 echo $ECHO_N "(cached) $ECHO_C" >&6
22911 cat >conftest.$ac_ext <<_ACEOF
22914 cat confdefs.h >>conftest.$ac_ext
22915 cat >>conftest.$ac_ext <<_ACEOF
22916 /* end confdefs.h. */
22917 #ifdef HAVE_SYS_SOCKET_H
22918 # include <sys/socket.h>
22922 #include <$ac_header>
22924 rm -f conftest.$ac_objext
22925 if { (ac_try="$ac_compile"
22926 case "(($ac_try" in
22927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928 *) ac_try_echo=$ac_try;;
22930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22931 (eval "$ac_compile") 2>conftest.er1
22933 grep -v '^ *+' conftest.er1 >conftest.err
22935 cat conftest.err >&5
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); } && {
22938 test -z "$ac_c_werror_flag" ||
22939 test ! -s conftest.err
22940 } && test -s conftest.$ac_objext; then
22941 eval "$as_ac_Header=yes"
22943 echo "$as_me: failed program was:" >&5
22944 sed 's/^/| /' conftest.$ac_ext >&5
22946 eval "$as_ac_Header=no"
22949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22951 ac_res=`eval echo '${'$as_ac_Header'}'`
22952 { echo "$as_me:$LINENO: result: $ac_res" >&5
22953 echo "${ECHO_T}$ac_res" >&6; }
22954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22955 cat >>confdefs.h <<_ACEOF
22956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22965 if test "${ac_cv_header_regex_h+set}" = set; then
22966 { echo "$as_me:$LINENO: checking for regex.h" >&5
22967 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22968 if test "${ac_cv_header_regex_h+set}" = set; then
22969 echo $ECHO_N "(cached) $ECHO_C" >&6
22971 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22972 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22974 # Is the header compilable?
22975 { echo "$as_me:$LINENO: checking regex.h usability" >&5
22976 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
22977 cat >conftest.$ac_ext <<_ACEOF
22980 cat confdefs.h >>conftest.$ac_ext
22981 cat >>conftest.$ac_ext <<_ACEOF
22982 /* end confdefs.h. */
22983 $ac_includes_default
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_header_compiler=yes
23005 echo "$as_me: failed program was:" >&5
23006 sed 's/^/| /' conftest.$ac_ext >&5
23008 ac_header_compiler=no
23011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23013 echo "${ECHO_T}$ac_header_compiler" >&6; }
23015 # Is the header present?
23016 { echo "$as_me:$LINENO: checking regex.h presence" >&5
23017 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
23018 cat >conftest.$ac_ext <<_ACEOF
23021 cat confdefs.h >>conftest.$ac_ext
23022 cat >>conftest.$ac_ext <<_ACEOF
23023 /* end confdefs.h. */
23026 if { (ac_try="$ac_cpp conftest.$ac_ext"
23027 case "(($ac_try" in
23028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23029 *) ac_try_echo=$ac_try;;
23031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23034 grep -v '^ *+' conftest.er1 >conftest.err
23036 cat conftest.err >&5
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); } >/dev/null && {
23039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23040 test ! -s conftest.err
23042 ac_header_preproc=yes
23044 echo "$as_me: failed program was:" >&5
23045 sed 's/^/| /' conftest.$ac_ext >&5
23047 ac_header_preproc=no
23050 rm -f conftest.err conftest.$ac_ext
23051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23052 echo "${ECHO_T}$ac_header_preproc" >&6; }
23054 # So? What about this header?
23055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23057 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23058 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23059 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23060 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23061 ac_header_preproc=yes
23064 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23065 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
23066 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
23067 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
23068 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23069 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23070 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
23071 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
23072 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23073 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
23074 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23075 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
23079 { echo "$as_me:$LINENO: checking for regex.h" >&5
23080 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
23081 if test "${ac_cv_header_regex_h+set}" = set; then
23082 echo $ECHO_N "(cached) $ECHO_C" >&6
23084 ac_cv_header_regex_h=$ac_header_preproc
23086 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23087 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
23090 if test $ac_cv_header_regex_h = yes; then
23092 cat >>confdefs.h <<\_ACEOF
23093 #define HAVE_REGEX_H
23099 if test "x$ac_cv_header_regex_h" = "xyes"; then
23102 cat >conftest.$ac_ext <<_ACEOF
23105 cat confdefs.h >>conftest.$ac_ext
23106 cat >>conftest.$ac_ext <<_ACEOF
23107 /* end confdefs.h. */
23109 #ifdef REG_EXTENDED
23114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23115 $EGREP "yes" >/dev/null 2>&1; then
23117 cat >>confdefs.h <<\_ACEOF
23118 #define HAVE_REG_EXTENDED
23128 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
23131 cat >>confdefs.h <<\_ACEOF
23137 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
23140 cat >>confdefs.h <<\_ACEOF
23146 OPENSSL_INCLUDE="-DNO_OPENSSL"
23147 if test "x$WITH_OPENSSL" = xyes; then
23148 if test "x$OPENSSL_LIBS" = "x"; then
23149 { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
23150 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
23152 old_CPPFLAGS=$CPPFLAGS
23153 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23154 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
23156 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
23169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23174 echo $ECHO_N "(cached) $ECHO_C" >&6
23176 ac_res=`eval echo '${'$as_ac_Header'}'`
23177 { echo "$as_me:$LINENO: result: $ac_res" >&5
23178 echo "${ECHO_T}$ac_res" >&6; }
23180 # Is the header compilable?
23181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23183 cat >conftest.$ac_ext <<_ACEOF
23186 cat confdefs.h >>conftest.$ac_ext
23187 cat >>conftest.$ac_ext <<_ACEOF
23188 /* end confdefs.h. */
23189 $ac_includes_default
23190 #include <$ac_header>
23192 rm -f conftest.$ac_objext
23193 if { (ac_try="$ac_compile"
23194 case "(($ac_try" in
23195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23196 *) ac_try_echo=$ac_try;;
23198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23199 (eval "$ac_compile") 2>conftest.er1
23201 grep -v '^ *+' conftest.er1 >conftest.err
23203 cat conftest.err >&5
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); } && {
23206 test -z "$ac_c_werror_flag" ||
23207 test ! -s conftest.err
23208 } && test -s conftest.$ac_objext; then
23209 ac_header_compiler=yes
23211 echo "$as_me: failed program was:" >&5
23212 sed 's/^/| /' conftest.$ac_ext >&5
23214 ac_header_compiler=no
23217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23219 echo "${ECHO_T}$ac_header_compiler" >&6; }
23221 # Is the header present?
23222 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23224 cat >conftest.$ac_ext <<_ACEOF
23227 cat confdefs.h >>conftest.$ac_ext
23228 cat >>conftest.$ac_ext <<_ACEOF
23229 /* end confdefs.h. */
23230 #include <$ac_header>
23232 if { (ac_try="$ac_cpp conftest.$ac_ext"
23233 case "(($ac_try" in
23234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23235 *) ac_try_echo=$ac_try;;
23237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23240 grep -v '^ *+' conftest.er1 >conftest.err
23242 cat conftest.err >&5
23243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244 (exit $ac_status); } >/dev/null && {
23245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23246 test ! -s conftest.err
23248 ac_header_preproc=yes
23250 echo "$as_me: failed program was:" >&5
23251 sed 's/^/| /' conftest.$ac_ext >&5
23253 ac_header_preproc=no
23256 rm -f conftest.err conftest.$ac_ext
23257 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23258 echo "${ECHO_T}$ac_header_preproc" >&6; }
23260 # So? What about this header?
23261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23266 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23267 ac_header_preproc=yes
23270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23275 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23277 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23281 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23288 echo $ECHO_N "(cached) $ECHO_C" >&6
23290 eval "$as_ac_Header=\$ac_header_preproc"
23292 ac_res=`eval echo '${'$as_ac_Header'}'`
23293 { echo "$as_me:$LINENO: result: $ac_res" >&5
23294 echo "${ECHO_T}$ac_res" >&6; }
23297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23298 cat >>confdefs.h <<_ACEOF
23299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23309 if test "x$OPENSSL_LIBS" != "x"; then
23310 { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
23311 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
23312 cat >conftest.$ac_ext <<_ACEOF
23315 cat confdefs.h >>conftest.$ac_ext
23316 cat >>conftest.$ac_ext <<_ACEOF
23317 /* end confdefs.h. */
23318 #include <openssl/crypto.h>
23319 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
23324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23325 $EGREP "yes" >/dev/null 2>&1; then
23330 if test "x$goodssl" != "xyes"; then
23331 { echo "$as_me:$LINENO: result: no" >&5
23332 echo "${ECHO_T}no" >&6; }
23335 { echo "$as_me:$LINENO: result: yes" >&5
23336 echo "${ECHO_T}yes" >&6; }
23337 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23338 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
23340 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
23344 CPPFLAGS=$old_CPPFLAGS
23349 export OPENSSL_LIBS
23351 if test "x$PCAP_LIBS" = x; then
23352 { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
23353 echo "$as_me: skipping test for pcap.h." >&6;}
23355 if test "${ac_cv_header_pcap_h+set}" = set; then
23356 { echo "$as_me:$LINENO: checking for pcap.h" >&5
23357 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23358 if test "${ac_cv_header_pcap_h+set}" = set; then
23359 echo $ECHO_N "(cached) $ECHO_C" >&6
23361 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23362 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23364 # Is the header compilable?
23365 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
23366 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
23367 cat >conftest.$ac_ext <<_ACEOF
23370 cat confdefs.h >>conftest.$ac_ext
23371 cat >>conftest.$ac_ext <<_ACEOF
23372 /* end confdefs.h. */
23373 $ac_includes_default
23376 rm -f conftest.$ac_objext
23377 if { (ac_try="$ac_compile"
23378 case "(($ac_try" in
23379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23380 *) ac_try_echo=$ac_try;;
23382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23383 (eval "$ac_compile") 2>conftest.er1
23385 grep -v '^ *+' conftest.er1 >conftest.err
23387 cat conftest.err >&5
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); } && {
23390 test -z "$ac_c_werror_flag" ||
23391 test ! -s conftest.err
23392 } && test -s conftest.$ac_objext; then
23393 ac_header_compiler=yes
23395 echo "$as_me: failed program was:" >&5
23396 sed 's/^/| /' conftest.$ac_ext >&5
23398 ac_header_compiler=no
23401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23402 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23403 echo "${ECHO_T}$ac_header_compiler" >&6; }
23405 # Is the header present?
23406 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
23407 echo $ECHO_N "checking pcap.h presence... $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. */
23416 if { (ac_try="$ac_cpp conftest.$ac_ext"
23417 case "(($ac_try" in
23418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23419 *) ac_try_echo=$ac_try;;
23421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23424 grep -v '^ *+' conftest.er1 >conftest.err
23426 cat conftest.err >&5
23427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428 (exit $ac_status); } >/dev/null && {
23429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23430 test ! -s conftest.err
23432 ac_header_preproc=yes
23434 echo "$as_me: failed program was:" >&5
23435 sed 's/^/| /' conftest.$ac_ext >&5
23437 ac_header_preproc=no
23440 rm -f conftest.err conftest.$ac_ext
23441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23442 echo "${ECHO_T}$ac_header_preproc" >&6; }
23444 # So? What about this header?
23445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23447 { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
23448 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23449 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
23450 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
23451 ac_header_preproc=yes
23454 { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
23455 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
23456 { echo "$as_me:$LINENO: WARNING: pcap.h: check for missing prerequisite headers?" >&5
23457 echo "$as_me: WARNING: pcap.h: check for missing prerequisite headers?" >&2;}
23458 { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
23459 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
23460 { echo "$as_me:$LINENO: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&5
23461 echo "$as_me: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
23462 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
23463 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
23464 { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
23465 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
23469 { echo "$as_me:$LINENO: checking for pcap.h" >&5
23470 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23471 if test "${ac_cv_header_pcap_h+set}" = set; then
23472 echo $ECHO_N "(cached) $ECHO_C" >&6
23474 ac_cv_header_pcap_h=$ac_header_preproc
23476 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23477 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23480 if test $ac_cv_header_pcap_h = yes; then
23482 cat >>confdefs.h <<\_ACEOF
23483 #define HAVE_PCAP_H 1
23488 { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
23489 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
23498 { echo "$as_me:$LINENO: checking for off_t" >&5
23499 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23500 if test "${ac_cv_type_off_t+set}" = set; then
23501 echo $ECHO_N "(cached) $ECHO_C" >&6
23503 cat >conftest.$ac_ext <<_ACEOF
23506 cat confdefs.h >>conftest.$ac_ext
23507 cat >>conftest.$ac_ext <<_ACEOF
23508 /* end confdefs.h. */
23509 $ac_includes_default
23510 typedef off_t ac__type_new_;
23514 if ((ac__type_new_ *) 0)
23516 if (sizeof (ac__type_new_))
23522 rm -f conftest.$ac_objext
23523 if { (ac_try="$ac_compile"
23524 case "(($ac_try" in
23525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23526 *) ac_try_echo=$ac_try;;
23528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23529 (eval "$ac_compile") 2>conftest.er1
23531 grep -v '^ *+' conftest.er1 >conftest.err
23533 cat conftest.err >&5
23534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535 (exit $ac_status); } && {
23536 test -z "$ac_c_werror_flag" ||
23537 test ! -s conftest.err
23538 } && test -s conftest.$ac_objext; then
23539 ac_cv_type_off_t=yes
23541 echo "$as_me: failed program was:" >&5
23542 sed 's/^/| /' conftest.$ac_ext >&5
23544 ac_cv_type_off_t=no
23547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23549 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23550 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23551 if test $ac_cv_type_off_t = yes; then
23555 cat >>confdefs.h <<_ACEOF
23556 #define off_t long int
23561 { echo "$as_me:$LINENO: checking for pid_t" >&5
23562 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23563 if test "${ac_cv_type_pid_t+set}" = set; then
23564 echo $ECHO_N "(cached) $ECHO_C" >&6
23566 cat >conftest.$ac_ext <<_ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h. */
23572 $ac_includes_default
23573 typedef pid_t ac__type_new_;
23577 if ((ac__type_new_ *) 0)
23579 if (sizeof (ac__type_new_))
23585 rm -f conftest.$ac_objext
23586 if { (ac_try="$ac_compile"
23587 case "(($ac_try" in
23588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23589 *) ac_try_echo=$ac_try;;
23591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23592 (eval "$ac_compile") 2>conftest.er1
23594 grep -v '^ *+' conftest.er1 >conftest.err
23596 cat conftest.err >&5
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); } && {
23599 test -z "$ac_c_werror_flag" ||
23600 test ! -s conftest.err
23601 } && test -s conftest.$ac_objext; then
23602 ac_cv_type_pid_t=yes
23604 echo "$as_me: failed program was:" >&5
23605 sed 's/^/| /' conftest.$ac_ext >&5
23607 ac_cv_type_pid_t=no
23610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23612 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23613 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23614 if test $ac_cv_type_pid_t = yes; then
23618 cat >>confdefs.h <<_ACEOF
23624 { echo "$as_me:$LINENO: checking for size_t" >&5
23625 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23626 if test "${ac_cv_type_size_t+set}" = set; then
23627 echo $ECHO_N "(cached) $ECHO_C" >&6
23629 cat >conftest.$ac_ext <<_ACEOF
23632 cat confdefs.h >>conftest.$ac_ext
23633 cat >>conftest.$ac_ext <<_ACEOF
23634 /* end confdefs.h. */
23635 $ac_includes_default
23636 typedef size_t ac__type_new_;
23640 if ((ac__type_new_ *) 0)
23642 if (sizeof (ac__type_new_))
23648 rm -f conftest.$ac_objext
23649 if { (ac_try="$ac_compile"
23650 case "(($ac_try" in
23651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23652 *) ac_try_echo=$ac_try;;
23654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23655 (eval "$ac_compile") 2>conftest.er1
23657 grep -v '^ *+' conftest.er1 >conftest.err
23659 cat conftest.err >&5
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); } && {
23662 test -z "$ac_c_werror_flag" ||
23663 test ! -s conftest.err
23664 } && test -s conftest.$ac_objext; then
23665 ac_cv_type_size_t=yes
23667 echo "$as_me: failed program was:" >&5
23668 sed 's/^/| /' conftest.$ac_ext >&5
23670 ac_cv_type_size_t=no
23673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23675 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23676 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23677 if test $ac_cv_type_size_t = yes; then
23681 cat >>confdefs.h <<_ACEOF
23682 #define size_t unsigned int
23687 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23688 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23689 if test "${ac_cv_type_uid_t+set}" = set; then
23690 echo $ECHO_N "(cached) $ECHO_C" >&6
23692 cat >conftest.$ac_ext <<_ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h. */
23698 #include <sys/types.h>
23701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23702 $EGREP "uid_t" >/dev/null 2>&1; then
23703 ac_cv_type_uid_t=yes
23705 ac_cv_type_uid_t=no
23710 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23711 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23712 if test $ac_cv_type_uid_t = no; then
23714 cat >>confdefs.h <<\_ACEOF
23719 cat >>confdefs.h <<\_ACEOF
23727 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23728 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23729 if test "${ac_cv_type_socklen_t+set}" = set; then
23730 echo $ECHO_N "(cached) $ECHO_C" >&6
23732 ac_cv_type_socklen_t=no
23733 cat >conftest.$ac_ext <<_ACEOF
23736 cat confdefs.h >>conftest.$ac_ext
23737 cat >>conftest.$ac_ext <<_ACEOF
23738 /* end confdefs.h. */
23739 #ifdef HAVE_SYS_TYPES_H
23740 #include <sys/types.h>
23742 #ifdef HAVE_SYS_SOCKET_H
23743 #include <sys/socket.h>
23754 rm -f conftest.$ac_objext
23755 if { (ac_try="$ac_compile"
23756 case "(($ac_try" in
23757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23758 *) ac_try_echo=$ac_try;;
23760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23761 (eval "$ac_compile") 2>conftest.er1
23763 grep -v '^ *+' conftest.er1 >conftest.err
23765 cat conftest.err >&5
23766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767 (exit $ac_status); } && {
23768 test -z "$ac_c_werror_flag" ||
23769 test ! -s conftest.err
23770 } && test -s conftest.$ac_objext; then
23771 ac_cv_type_socklen_t=yes
23773 echo "$as_me: failed program was:" >&5
23774 sed 's/^/| /' conftest.$ac_ext >&5
23779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23783 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23784 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23786 if test "$ac_cv_type_socklen_t" != "yes"; then
23788 cat >>confdefs.h <<\_ACEOF
23789 #define socklen_t int
23796 { echo "$as_me:$LINENO: checking for uint8_t" >&5
23797 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23798 if test "${ac_cv_type_uint8_t+set}" = set; then
23799 echo $ECHO_N "(cached) $ECHO_C" >&6
23801 ac_cv_type_uint8_t=no
23802 cat >conftest.$ac_ext <<_ACEOF
23805 cat confdefs.h >>conftest.$ac_ext
23806 cat >>conftest.$ac_ext <<_ACEOF
23807 /* end confdefs.h. */
23808 #ifdef HAVE_INTTYPES_H
23809 #include <inttypes.h>
23811 #ifdef HAVE_STDINT_H
23812 #include <stdint.h>
23823 rm -f conftest.$ac_objext
23824 if { (ac_try="$ac_compile"
23825 case "(($ac_try" in
23826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23827 *) ac_try_echo=$ac_try;;
23829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23830 (eval "$ac_compile") 2>conftest.er1
23832 grep -v '^ *+' conftest.er1 >conftest.err
23834 cat conftest.err >&5
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); } && {
23837 test -z "$ac_c_werror_flag" ||
23838 test ! -s conftest.err
23839 } && test -s conftest.$ac_objext; then
23840 ac_cv_type_uint8_t=yes
23842 echo "$as_me: failed program was:" >&5
23843 sed 's/^/| /' conftest.$ac_ext >&5
23848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23852 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23853 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
23855 if test "$ac_cv_type_uint8_t" != "yes"; then
23857 cat >>confdefs.h <<\_ACEOF
23858 #define uint8_t unsigned char
23865 { echo "$as_me:$LINENO: checking for uint16_t" >&5
23866 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
23867 if test "${ac_cv_type_uint16_t+set}" = set; then
23868 echo $ECHO_N "(cached) $ECHO_C" >&6
23870 ac_cv_type_uint16_t=no
23871 cat >conftest.$ac_ext <<_ACEOF
23874 cat confdefs.h >>conftest.$ac_ext
23875 cat >>conftest.$ac_ext <<_ACEOF
23876 /* end confdefs.h. */
23877 #ifdef HAVE_INTTYPES_H
23878 #include <inttypes.h>
23880 #ifdef HAVE_STDINT_H
23881 #include <stdint.h>
23892 rm -f conftest.$ac_objext
23893 if { (ac_try="$ac_compile"
23894 case "(($ac_try" in
23895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23896 *) ac_try_echo=$ac_try;;
23898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23899 (eval "$ac_compile") 2>conftest.er1
23901 grep -v '^ *+' conftest.er1 >conftest.err
23903 cat conftest.err >&5
23904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); } && {
23906 test -z "$ac_c_werror_flag" ||
23907 test ! -s conftest.err
23908 } && test -s conftest.$ac_objext; then
23909 ac_cv_type_uint16_t=yes
23911 echo "$as_me: failed program was:" >&5
23912 sed 's/^/| /' conftest.$ac_ext >&5
23917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23921 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
23922 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
23924 if test "$ac_cv_type_uint16_t" != "yes"; then
23926 cat >>confdefs.h <<\_ACEOF
23927 #define uint16_t unsigned short
23934 { echo "$as_me:$LINENO: checking for uint32_t" >&5
23935 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
23936 if test "${ac_cv_type_uint32_t+set}" = set; then
23937 echo $ECHO_N "(cached) $ECHO_C" >&6
23939 ac_cv_type_uint32_t=no
23940 cat >conftest.$ac_ext <<_ACEOF
23943 cat confdefs.h >>conftest.$ac_ext
23944 cat >>conftest.$ac_ext <<_ACEOF
23945 /* end confdefs.h. */
23946 #ifdef HAVE_INTTYPES_H
23947 #include <inttypes.h>
23949 #ifdef HAVE_STDINT_H
23950 #include <stdint.h>
23961 rm -f conftest.$ac_objext
23962 if { (ac_try="$ac_compile"
23963 case "(($ac_try" in
23964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23965 *) ac_try_echo=$ac_try;;
23967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23968 (eval "$ac_compile") 2>conftest.er1
23970 grep -v '^ *+' conftest.er1 >conftest.err
23972 cat conftest.err >&5
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); } && {
23975 test -z "$ac_c_werror_flag" ||
23976 test ! -s conftest.err
23977 } && test -s conftest.$ac_objext; then
23978 ac_cv_type_uint32_t=yes
23980 echo "$as_me: failed program was:" >&5
23981 sed 's/^/| /' conftest.$ac_ext >&5
23986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23990 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
23991 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
23993 if test "$ac_cv_type_uint32_t" != "yes"; then
23995 cat >>confdefs.h <<\_ACEOF
23996 #define uint32_t unsigned int
24002 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
24003 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
24004 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
24005 echo $ECHO_N "(cached) $ECHO_C" >&6
24007 cat >conftest.$ac_ext <<_ACEOF
24010 cat confdefs.h >>conftest.$ac_ext
24011 cat >>conftest.$ac_ext <<_ACEOF
24012 /* end confdefs.h. */
24014 #ifdef HAVE_NETINET_IN_H
24015 #include <netinet/in.h>
24019 typedef struct in6_addr ac__type_new_;
24023 if ((ac__type_new_ *) 0)
24025 if (sizeof (ac__type_new_))
24031 rm -f conftest.$ac_objext
24032 if { (ac_try="$ac_compile"
24033 case "(($ac_try" in
24034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24035 *) ac_try_echo=$ac_try;;
24037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24038 (eval "$ac_compile") 2>conftest.er1
24040 grep -v '^ *+' conftest.er1 >conftest.err
24042 cat conftest.err >&5
24043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044 (exit $ac_status); } && {
24045 test -z "$ac_c_werror_flag" ||
24046 test ! -s conftest.err
24047 } && test -s conftest.$ac_objext; then
24048 ac_cv_type_struct_in6_addr=yes
24050 echo "$as_me: failed program was:" >&5
24051 sed 's/^/| /' conftest.$ac_ext >&5
24053 ac_cv_type_struct_in6_addr=no
24056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24058 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
24059 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
24060 if test $ac_cv_type_struct_in6_addr = yes; then
24062 cat >>confdefs.h <<\_ACEOF
24063 #define HAVE_STRUCT_IN6_ADDR 1
24069 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
24070 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
24071 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
24072 echo $ECHO_N "(cached) $ECHO_C" >&6
24074 cat >conftest.$ac_ext <<_ACEOF
24077 cat confdefs.h >>conftest.$ac_ext
24078 cat >>conftest.$ac_ext <<_ACEOF
24079 /* end confdefs.h. */
24081 #ifdef HAVE_NETINET_IN_H
24082 #include <netinet/in.h>
24084 #ifdef HAVE_SYS_SOCKET_H
24085 #include <sys/socket.h>
24089 typedef struct sockaddr_storage ac__type_new_;
24093 if ((ac__type_new_ *) 0)
24095 if (sizeof (ac__type_new_))
24101 rm -f conftest.$ac_objext
24102 if { (ac_try="$ac_compile"
24103 case "(($ac_try" in
24104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24105 *) ac_try_echo=$ac_try;;
24107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24108 (eval "$ac_compile") 2>conftest.er1
24110 grep -v '^ *+' conftest.er1 >conftest.err
24112 cat conftest.err >&5
24113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); } && {
24115 test -z "$ac_c_werror_flag" ||
24116 test ! -s conftest.err
24117 } && test -s conftest.$ac_objext; then
24118 ac_cv_type_struct_sockaddr_storage=yes
24120 echo "$as_me: failed program was:" >&5
24121 sed 's/^/| /' conftest.$ac_ext >&5
24123 ac_cv_type_struct_sockaddr_storage=no
24126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24128 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
24129 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
24130 if test $ac_cv_type_struct_sockaddr_storage = yes; then
24132 cat >>confdefs.h <<\_ACEOF
24133 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
24139 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
24140 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
24141 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
24142 echo $ECHO_N "(cached) $ECHO_C" >&6
24144 cat >conftest.$ac_ext <<_ACEOF
24147 cat confdefs.h >>conftest.$ac_ext
24148 cat >>conftest.$ac_ext <<_ACEOF
24149 /* end confdefs.h. */
24151 #ifdef HAVE_NETINET_IN_H
24152 #include <netinet/in.h>
24156 typedef struct sockaddr_in6 ac__type_new_;
24160 if ((ac__type_new_ *) 0)
24162 if (sizeof (ac__type_new_))
24168 rm -f conftest.$ac_objext
24169 if { (ac_try="$ac_compile"
24170 case "(($ac_try" in
24171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24172 *) ac_try_echo=$ac_try;;
24174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24175 (eval "$ac_compile") 2>conftest.er1
24177 grep -v '^ *+' conftest.er1 >conftest.err
24179 cat conftest.err >&5
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); } && {
24182 test -z "$ac_c_werror_flag" ||
24183 test ! -s conftest.err
24184 } && test -s conftest.$ac_objext; then
24185 ac_cv_type_struct_sockaddr_in6=yes
24187 echo "$as_me: failed program was:" >&5
24188 sed 's/^/| /' conftest.$ac_ext >&5
24190 ac_cv_type_struct_sockaddr_in6=no
24193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24195 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
24196 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
24197 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
24199 cat >>confdefs.h <<\_ACEOF
24200 #define HAVE_STRUCT_SOCKADDR_IN6 1
24206 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
24207 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
24208 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
24209 echo $ECHO_N "(cached) $ECHO_C" >&6
24211 cat >conftest.$ac_ext <<_ACEOF
24214 cat confdefs.h >>conftest.$ac_ext
24215 cat >>conftest.$ac_ext <<_ACEOF
24216 /* end confdefs.h. */
24218 #ifdef HAVE_SYS_TYPES_H
24219 #include <sys/types.h>
24221 #ifdef HAVE_SYS_SOCKET_H
24222 #include <sys/socket.h>
24224 #ifdef HAVE_NETDB_H
24229 typedef struct addrinfo ac__type_new_;
24233 if ((ac__type_new_ *) 0)
24235 if (sizeof (ac__type_new_))
24241 rm -f conftest.$ac_objext
24242 if { (ac_try="$ac_compile"
24243 case "(($ac_try" in
24244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24245 *) ac_try_echo=$ac_try;;
24247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24248 (eval "$ac_compile") 2>conftest.er1
24250 grep -v '^ *+' conftest.er1 >conftest.err
24252 cat conftest.err >&5
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); } && {
24255 test -z "$ac_c_werror_flag" ||
24256 test ! -s conftest.err
24257 } && test -s conftest.$ac_objext; then
24258 ac_cv_type_struct_addrinfo=yes
24260 echo "$as_me: failed program was:" >&5
24261 sed 's/^/| /' conftest.$ac_ext >&5
24263 ac_cv_type_struct_addrinfo=no
24266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24268 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
24269 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
24270 if test $ac_cv_type_struct_addrinfo = yes; then
24272 cat >>confdefs.h <<\_ACEOF
24273 #define HAVE_STRUCT_ADDRINFO 1
24346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24350 echo $ECHO_N "(cached) $ECHO_C" >&6
24352 cat >conftest.$ac_ext <<_ACEOF
24355 cat confdefs.h >>conftest.$ac_ext
24356 cat >>conftest.$ac_ext <<_ACEOF
24357 /* end confdefs.h. */
24358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24360 #define $ac_func innocuous_$ac_func
24362 /* System header to define __stub macros and hopefully few prototypes,
24363 which can conflict with char $ac_func (); below.
24364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24365 <limits.h> exists even on freestanding compilers. */
24368 # include <limits.h>
24370 # include <assert.h>
24375 /* Override any GCC internal prototype to avoid an error.
24376 Use char because int might match the return type of a GCC
24377 builtin and then its argument prototype would still apply. */
24382 /* The GNU C library defines this for functions which it implements
24383 to always fail with ENOSYS. Some functions are actually named
24384 something starting with __ and the normal name is an alias. */
24385 #if defined __stub_$ac_func || defined __stub___$ac_func
24392 return $ac_func ();
24397 rm -f conftest.$ac_objext conftest$ac_exeext
24398 if { (ac_try="$ac_link"
24399 case "(($ac_try" in
24400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24401 *) ac_try_echo=$ac_try;;
24403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24404 (eval "$ac_link") 2>conftest.er1
24406 grep -v '^ *+' conftest.er1 >conftest.err
24408 cat conftest.err >&5
24409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410 (exit $ac_status); } && {
24411 test -z "$ac_c_werror_flag" ||
24412 test ! -s conftest.err
24413 } && test -s conftest$ac_exeext &&
24414 $as_test_x conftest$ac_exeext; then
24415 eval "$as_ac_var=yes"
24417 echo "$as_me: failed program was:" >&5
24418 sed 's/^/| /' conftest.$ac_ext >&5
24420 eval "$as_ac_var=no"
24423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24424 conftest$ac_exeext conftest.$ac_ext
24426 ac_res=`eval echo '${'$as_ac_var'}'`
24427 { echo "$as_me:$LINENO: result: $ac_res" >&5
24428 echo "${ECHO_T}$ac_res" >&6; }
24429 if test `eval echo '${'$as_ac_var'}'` = yes; then
24430 cat >>confdefs.h <<_ACEOF
24431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24447 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
24448 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
24449 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
24450 echo $ECHO_N "(cached) $ECHO_C" >&6
24452 cat >conftest.$ac_ext <<_ACEOF
24455 cat confdefs.h >>conftest.$ac_ext
24456 cat >>conftest.$ac_ext <<_ACEOF
24457 /* end confdefs.h. */
24460 #include <string.h>
24461 #ifdef HAVE_UNISTD_H
24462 #include <unistd.h>
24464 #ifdef HAVE_CRYPT_H
24467 #ifdef HAVE_ERRNO_H
24470 #ifdef HAVE_RESOURCE_H
24471 #include <resource.h>
24473 #ifdef HAVE_GETOPT_H
24474 #include <getopt.h>
24476 #ifdef HAVE_MALLOC_H
24477 #include <malloc.h>
24482 #ifdef HAVE_UTMPX_H
24485 #ifdef HAVE_SYS_SELECT_H
24486 #include <sys/select.h>
24488 #ifdef HAVE_DLFCN_H
24491 #ifdef HAVE_REGEX_H
24494 #ifdef HAVE_SYSLOG_H
24495 #include <syslog.h>
24497 #ifdef HAVE_INTTYPES_H
24498 #include <inttypes.h>
24500 #ifdef HAVE_STDINT_H
24501 #include <stdint.h>
24503 #ifdef HAVE_ARPA_INET_H
24504 #include <arpa/inet.h>
24510 char *(*pfn) = (char *(*)) $ac_func
24515 rm -f conftest.$ac_objext
24516 if { (ac_try="$ac_compile"
24517 case "(($ac_try" in
24518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519 *) ac_try_echo=$ac_try;;
24521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24522 (eval "$ac_compile") 2>conftest.er1
24524 grep -v '^ *+' conftest.er1 >conftest.err
24526 cat conftest.err >&5
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); } && {
24529 test -z "$ac_c_werror_flag" ||
24530 test ! -s conftest.err
24531 } && test -s conftest.$ac_objext; then
24532 eval "radius_cv_decl_needed_$ac_func=no"
24534 echo "$as_me: failed program was:" >&5
24535 sed 's/^/| /' conftest.$ac_ext >&5
24537 eval "radius_cv_decl_needed_$ac_func=yes"
24540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24543 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
24544 { echo "$as_me:$LINENO: result: yes" >&5
24545 echo "${ECHO_T}yes" >&6; }
24546 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24547 cat >>confdefs.h <<_ACEOF
24548 #define $radius_tr_decl 1
24552 { echo "$as_me:$LINENO: result: no" >&5
24553 echo "${ECHO_T}no" >&6; }
24559 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24560 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24561 if test "${ac_cv_type_signal+set}" = set; then
24562 echo $ECHO_N "(cached) $ECHO_C" >&6
24564 cat >conftest.$ac_ext <<_ACEOF
24567 cat confdefs.h >>conftest.$ac_ext
24568 cat >>conftest.$ac_ext <<_ACEOF
24569 /* end confdefs.h. */
24570 #include <sys/types.h>
24571 #include <signal.h>
24576 return *(signal (0, 0)) (0) == 1;
24581 rm -f conftest.$ac_objext
24582 if { (ac_try="$ac_compile"
24583 case "(($ac_try" in
24584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24585 *) ac_try_echo=$ac_try;;
24587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24588 (eval "$ac_compile") 2>conftest.er1
24590 grep -v '^ *+' conftest.er1 >conftest.err
24592 cat conftest.err >&5
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); } && {
24595 test -z "$ac_c_werror_flag" ||
24596 test ! -s conftest.err
24597 } && test -s conftest.$ac_objext; then
24598 ac_cv_type_signal=int
24600 echo "$as_me: failed program was:" >&5
24601 sed 's/^/| /' conftest.$ac_ext >&5
24603 ac_cv_type_signal=void
24606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24608 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24609 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24611 cat >>confdefs.h <<_ACEOF
24612 #define RETSIGTYPE $ac_cv_type_signal
24617 if test "x$ac_cv_header_utmpx_h" = "xyes"
24620 { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
24621 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
24624 cat >conftest.$ac_ext <<_ACEOF
24627 cat confdefs.h >>conftest.$ac_ext
24628 cat >>conftest.$ac_ext <<_ACEOF
24629 /* end confdefs.h. */
24633 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24639 int foo = offsetof(struct utmpx, ut_xtime)
24644 rm -f conftest.$ac_objext
24645 if { (ac_try="$ac_compile"
24646 case "(($ac_try" in
24647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24648 *) ac_try_echo=$ac_try;;
24650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24651 (eval "$ac_compile") 2>conftest.er1
24653 grep -v '^ *+' conftest.er1 >conftest.err
24655 cat conftest.err >&5
24656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657 (exit $ac_status); } && {
24658 test -z "$ac_c_werror_flag" ||
24659 test ! -s conftest.err
24660 } && test -s conftest.$ac_objext; then
24663 echo "$as_me: failed program was:" >&5
24664 sed 's/^/| /' conftest.$ac_ext >&5
24669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24671 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
24672 if test "x$has_element" != "x"; then
24673 { echo "$as_me:$LINENO: result: yes" >&5
24674 echo "${ECHO_T}yes" >&6; }
24675 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
24677 { echo "$as_me:$LINENO: result: no" >&5
24678 echo "${ECHO_T}no" >&6; }
24679 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
24682 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
24685 cat >>confdefs.h <<\_ACEOF
24686 #define ut_xtime ut_tv.tv_sec
24693 { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
24694 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
24697 cat >conftest.$ac_ext <<_ACEOF
24700 cat confdefs.h >>conftest.$ac_ext
24701 cat >>conftest.$ac_ext <<_ACEOF
24702 /* end confdefs.h. */
24704 #include <netinet/in.h>
24706 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24712 int foo = offsetof(struct in_pktinfo, ipi_addr)
24717 rm -f conftest.$ac_objext
24718 if { (ac_try="$ac_compile"
24719 case "(($ac_try" in
24720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24721 *) ac_try_echo=$ac_try;;
24723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24724 (eval "$ac_compile") 2>conftest.er1
24726 grep -v '^ *+' conftest.er1 >conftest.err
24728 cat conftest.err >&5
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); } && {
24731 test -z "$ac_c_werror_flag" ||
24732 test ! -s conftest.err
24733 } && test -s conftest.$ac_objext; then
24736 echo "$as_me: failed program was:" >&5
24737 sed 's/^/| /' conftest.$ac_ext >&5
24742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24744 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
24745 if test "x$has_element" != "x"; then
24746 { echo "$as_me:$LINENO: result: yes" >&5
24747 echo "${ECHO_T}yes" >&6; }
24748 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
24750 { echo "$as_me:$LINENO: result: no" >&5
24751 echo "${ECHO_T}no" >&6; }
24752 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
24755 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
24758 cat >>confdefs.h <<\_ACEOF
24759 #define HAVE_IP_PKTINFO
24765 { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
24766 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
24769 cat >conftest.$ac_ext <<_ACEOF
24772 cat confdefs.h >>conftest.$ac_ext
24773 cat >>conftest.$ac_ext <<_ACEOF
24774 /* end confdefs.h. */
24776 #include <netinet/in.h>
24778 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24784 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
24789 rm -f conftest.$ac_objext
24790 if { (ac_try="$ac_compile"
24791 case "(($ac_try" in
24792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24793 *) ac_try_echo=$ac_try;;
24795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24796 (eval "$ac_compile") 2>conftest.er1
24798 grep -v '^ *+' conftest.er1 >conftest.err
24800 cat conftest.err >&5
24801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802 (exit $ac_status); } && {
24803 test -z "$ac_c_werror_flag" ||
24804 test ! -s conftest.err
24805 } && test -s conftest.$ac_objext; then
24808 echo "$as_me: failed program was:" >&5
24809 sed 's/^/| /' conftest.$ac_ext >&5
24814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24816 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
24817 if test "x$has_element" != "x"; then
24818 { echo "$as_me:$LINENO: result: yes" >&5
24819 echo "${ECHO_T}yes" >&6; }
24820 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
24822 { echo "$as_me:$LINENO: result: no" >&5
24823 echo "${ECHO_T}no" >&6; }
24824 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
24827 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
24830 cat >>confdefs.h <<\_ACEOF
24831 #define HAVE_IN6_PKTINFO
24837 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24838 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24839 if test "${ac_cv_c_const+set}" = set; then
24840 echo $ECHO_N "(cached) $ECHO_C" >&6
24842 cat >conftest.$ac_ext <<_ACEOF
24845 cat confdefs.h >>conftest.$ac_ext
24846 cat >>conftest.$ac_ext <<_ACEOF
24847 /* end confdefs.h. */
24852 /* FIXME: Include the comments suggested by Paul. */
24853 #ifndef __cplusplus
24854 /* Ultrix mips cc rejects this. */
24855 typedef int charset[2];
24857 /* SunOS 4.1.1 cc rejects this. */
24858 char const *const *pcpcc;
24860 /* NEC SVR4.0.2 mips cc rejects this. */
24861 struct point {int x, y;};
24862 static struct point const zero = {0,0};
24863 /* AIX XL C 1.02.0.0 rejects this.
24864 It does not let you subtract one const X* pointer from another in
24865 an arm of an if-expression whose if-part is not a constant
24867 const char *g = "string";
24868 pcpcc = &g + (g ? g-g : 0);
24869 /* HPUX 7.0 cc rejects these. */
24871 ppc = (char**) pcpcc;
24872 pcpcc = (char const *const *) ppc;
24873 { /* SCO 3.2v4 cc rejects this. */
24875 char const *s = 0 ? (char *) 0 : (char const *) 0;
24880 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24881 int x[] = {25, 17};
24882 const int *foo = &x[0];
24885 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24886 typedef const int *iptr;
24890 { /* AIX XL C 1.02.0.0 rejects this saying
24891 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24892 struct s { int j; const int *ap[3]; };
24893 struct s *b; b->j = 5;
24895 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24896 const int foo = 10;
24897 if (!foo) return 0;
24899 return !cs[0] && !zero.x;
24906 rm -f conftest.$ac_objext
24907 if { (ac_try="$ac_compile"
24908 case "(($ac_try" in
24909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24910 *) ac_try_echo=$ac_try;;
24912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24913 (eval "$ac_compile") 2>conftest.er1
24915 grep -v '^ *+' conftest.er1 >conftest.err
24917 cat conftest.err >&5
24918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); } && {
24920 test -z "$ac_c_werror_flag" ||
24921 test ! -s conftest.err
24922 } && test -s conftest.$ac_objext; then
24925 echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24933 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24934 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24935 if test $ac_cv_c_const = no; then
24937 cat >>confdefs.h <<\_ACEOF
24944 { echo "$as_me:$LINENO: checking type of OS" >&5
24945 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
24947 { echo "$as_me:$LINENO: result: $OS" >&5
24948 echo "${ECHO_T}$OS" >&6; }
24949 if test "$OS" = "OS/2"; then
24956 if test "x$GCC" = "xyes"; then
24957 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
24960 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
24961 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
24962 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
24963 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
24964 CFLAGS="$CFLAGS $devflags"
24966 { echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
24967 echo "${ECHO_T}yes. Using $devflags" >&6; }
24970 CFLAGS="$CFLAGS -DNDEBUG"
24972 { echo "$as_me:$LINENO: result: no." >&5
24973 echo "${ECHO_T}no." >&6; }
24977 { echo "$as_me:$LINENO: checking for TLS" >&5
24978 echo $ECHO_N "checking for TLS... $ECHO_C" >&6; }
24979 if test "$cross_compiling" = yes; then
24982 cat >conftest.$ac_ext <<_ACEOF
24985 cat confdefs.h >>conftest.$ac_ext
24986 cat >>conftest.$ac_ext <<_ACEOF
24987 /* end confdefs.h. */
24988 static __thread int val; int main() { return 0; }
24990 rm -f conftest$ac_exeext
24991 if { (ac_try="$ac_link"
24992 case "(($ac_try" in
24993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24994 *) ac_try_echo=$ac_try;;
24996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24997 (eval "$ac_link") 2>&5
24999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25001 { (case "(($ac_try" in
25002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003 *) ac_try_echo=$ac_try;;
25005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25006 (eval "$ac_try") 2>&5
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); }; }; then
25012 echo "$as_me: program exited with status $ac_status" >&5
25013 echo "$as_me: failed program was:" >&5
25014 sed 's/^/| /' conftest.$ac_ext >&5
25016 ( exit $ac_status )
25019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25023 { echo "$as_me:$LINENO: result: $have_tls" >&5
25024 echo "${ECHO_T}$have_tls" >&6; }
25025 if test "$have_tls" = "yes"; then
25027 cat >>confdefs.h <<\_ACEOF
25028 #define HAVE_THREAD_TLS 1
25035 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
25036 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
25037 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
25038 echo $ECHO_N "(cached) $ECHO_C" >&6
25040 ac_check_lib_save_LIBS=$LIBS
25041 LIBS="-lcrypt $LIBS"
25042 cat >conftest.$ac_ext <<_ACEOF
25045 cat confdefs.h >>conftest.$ac_ext
25046 cat >>conftest.$ac_ext <<_ACEOF
25047 /* end confdefs.h. */
25049 /* Override any GCC internal prototype to avoid an error.
25050 Use char because int might match the return type of a GCC
25051 builtin and then its argument prototype would still apply. */
25064 rm -f conftest.$ac_objext conftest$ac_exeext
25065 if { (ac_try="$ac_link"
25066 case "(($ac_try" in
25067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25068 *) ac_try_echo=$ac_try;;
25070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25071 (eval "$ac_link") 2>conftest.er1
25073 grep -v '^ *+' conftest.er1 >conftest.err
25075 cat conftest.err >&5
25076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25077 (exit $ac_status); } && {
25078 test -z "$ac_c_werror_flag" ||
25079 test ! -s conftest.err
25080 } && test -s conftest$ac_exeext &&
25081 $as_test_x conftest$ac_exeext; then
25082 ac_cv_lib_crypt_crypt=yes
25084 echo "$as_me: failed program was:" >&5
25085 sed 's/^/| /' conftest.$ac_ext >&5
25087 ac_cv_lib_crypt_crypt=no
25090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25091 conftest$ac_exeext conftest.$ac_ext
25092 LIBS=$ac_check_lib_save_LIBS
25094 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
25095 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
25096 if test $ac_cv_lib_crypt_crypt = yes; then
25101 if test "$CRYPTLIB" != ""; then
25103 cat >>confdefs.h <<\_ACEOF
25108 { echo "$as_me:$LINENO: checking for crypt" >&5
25109 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
25110 if test "${ac_cv_func_crypt+set}" = set; then
25111 echo $ECHO_N "(cached) $ECHO_C" >&6
25113 cat >conftest.$ac_ext <<_ACEOF
25116 cat confdefs.h >>conftest.$ac_ext
25117 cat >>conftest.$ac_ext <<_ACEOF
25118 /* end confdefs.h. */
25119 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
25120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25121 #define crypt innocuous_crypt
25123 /* System header to define __stub macros and hopefully few prototypes,
25124 which can conflict with char crypt (); below.
25125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25126 <limits.h> exists even on freestanding compilers. */
25129 # include <limits.h>
25131 # include <assert.h>
25136 /* Override any GCC internal prototype to avoid an error.
25137 Use char because int might match the return type of a GCC
25138 builtin and then its argument prototype would still apply. */
25143 /* The GNU C library defines this for functions which it implements
25144 to always fail with ENOSYS. Some functions are actually named
25145 something starting with __ and the normal name is an alias. */
25146 #if defined __stub_crypt || defined __stub___crypt
25158 rm -f conftest.$ac_objext conftest$ac_exeext
25159 if { (ac_try="$ac_link"
25160 case "(($ac_try" in
25161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25162 *) ac_try_echo=$ac_try;;
25164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25165 (eval "$ac_link") 2>conftest.er1
25167 grep -v '^ *+' conftest.er1 >conftest.err
25169 cat conftest.err >&5
25170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171 (exit $ac_status); } && {
25172 test -z "$ac_c_werror_flag" ||
25173 test ! -s conftest.err
25174 } && test -s conftest$ac_exeext &&
25175 $as_test_x conftest$ac_exeext; then
25176 ac_cv_func_crypt=yes
25178 echo "$as_me: failed program was:" >&5
25179 sed 's/^/| /' conftest.$ac_ext >&5
25181 ac_cv_func_crypt=no
25184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25185 conftest$ac_exeext conftest.$ac_ext
25187 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
25188 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
25189 if test $ac_cv_func_crypt = yes; then
25191 cat >>confdefs.h <<\_ACEOF
25199 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
25200 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
25201 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
25202 echo $ECHO_N "(cached) $ECHO_C" >&6
25204 ac_check_lib_save_LIBS=$LIBS
25205 LIBS="-lcipher $LIBS"
25206 cat >conftest.$ac_ext <<_ACEOF
25209 cat confdefs.h >>conftest.$ac_ext
25210 cat >>conftest.$ac_ext <<_ACEOF
25211 /* end confdefs.h. */
25213 /* Override any GCC internal prototype to avoid an error.
25214 Use char because int might match the return type of a GCC
25215 builtin and then its argument prototype would still apply. */
25228 rm -f conftest.$ac_objext conftest$ac_exeext
25229 if { (ac_try="$ac_link"
25230 case "(($ac_try" in
25231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25232 *) ac_try_echo=$ac_try;;
25234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25235 (eval "$ac_link") 2>conftest.er1
25237 grep -v '^ *+' conftest.er1 >conftest.err
25239 cat conftest.err >&5
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); } && {
25242 test -z "$ac_c_werror_flag" ||
25243 test ! -s conftest.err
25244 } && test -s conftest$ac_exeext &&
25245 $as_test_x conftest$ac_exeext; then
25246 ac_cv_lib_cipher_setkey=yes
25248 echo "$as_me: failed program was:" >&5
25249 sed 's/^/| /' conftest.$ac_ext >&5
25251 ac_cv_lib_cipher_setkey=no
25254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25255 conftest$ac_exeext conftest.$ac_ext
25256 LIBS=$ac_check_lib_save_LIBS
25258 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
25259 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
25260 if test $ac_cv_lib_cipher_setkey = yes; then
25261 CRYPTLIB="${CRYPTLIB} -lcipher"
25268 cat >>confdefs.h <<\_ACEOF
25273 cat >>confdefs.h <<\_ACEOF
25274 #define SYSVSTYLE 2
25278 cat >>confdefs.h <<\_ACEOF
25282 gethostbyaddrrstyle=""
25283 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
25284 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
25287 { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
25288 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
25289 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
25290 echo $ECHO_N "(cached) $ECHO_C" >&6
25292 cat >conftest.$ac_ext <<_ACEOF
25295 cat confdefs.h >>conftest.$ac_ext
25296 cat >>conftest.$ac_ext <<_ACEOF
25297 /* end confdefs.h. */
25299 #ifdef HAVE_NETDB_H
25307 #ifndef gethostbyaddr_r
25308 (void) gethostbyaddr_r;
25315 rm -f conftest.$ac_objext
25316 if { (ac_try="$ac_compile"
25317 case "(($ac_try" in
25318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25319 *) ac_try_echo=$ac_try;;
25321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25322 (eval "$ac_compile") 2>conftest.er1
25324 grep -v '^ *+' conftest.er1 >conftest.err
25326 cat conftest.err >&5
25327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); } && {
25329 test -z "$ac_c_werror_flag" ||
25330 test ! -s conftest.err
25331 } && test -s conftest.$ac_objext; then
25332 ac_cv_have_decl_gethostbyaddr_r=yes
25334 echo "$as_me: failed program was:" >&5
25335 sed 's/^/| /' conftest.$ac_ext >&5
25337 ac_cv_have_decl_gethostbyaddr_r=no
25340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25342 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
25343 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
25344 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
25346 cat >>confdefs.h <<_ACEOF
25347 #define HAVE_DECL_GETHOSTBYADDR_R 1
25352 cat >>confdefs.h <<_ACEOF
25353 #define HAVE_DECL_GETHOSTBYADDR_R 0
25358 cat >>confdefs.h <<\_ACEOF
25359 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25362 gethostbyaddrrstyle=BSD
25363 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
25364 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
25371 if test "x$gethostbyaddrrstyle" = "x"; then
25372 cat >conftest.$ac_ext <<_ACEOF
25375 cat confdefs.h >>conftest.$ac_ext
25376 cat >>conftest.$ac_ext <<_ACEOF
25377 /* end confdefs.h. */
25385 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
25390 rm -f conftest.$ac_objext conftest$ac_exeext
25391 if { (ac_try="$ac_link"
25392 case "(($ac_try" in
25393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25394 *) ac_try_echo=$ac_try;;
25396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25397 (eval "$ac_link") 2>conftest.er1
25399 grep -v '^ *+' conftest.er1 >conftest.err
25401 cat conftest.err >&5
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); } && {
25404 test -z "$ac_c_werror_flag" ||
25405 test ! -s conftest.err
25406 } && test -s conftest$ac_exeext &&
25407 $as_test_x conftest$ac_exeext; then
25410 cat >>confdefs.h <<\_ACEOF
25411 #define GETHOSTBYADDRRSTYLE GNUSTYLE
25414 gethostbyaddrrstyle=GNU
25417 echo "$as_me: failed program was:" >&5
25418 sed 's/^/| /' conftest.$ac_ext >&5
25423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25424 conftest$ac_exeext conftest.$ac_ext
25426 if test "x$gethostbyaddrrstyle" = "x"; then
25427 cat >conftest.$ac_ext <<_ACEOF
25430 cat confdefs.h >>conftest.$ac_ext
25431 cat >>conftest.$ac_ext <<_ACEOF
25432 /* end confdefs.h. */
25440 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
25445 rm -f conftest.$ac_objext conftest$ac_exeext
25446 if { (ac_try="$ac_link"
25447 case "(($ac_try" in
25448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25449 *) ac_try_echo=$ac_try;;
25451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25452 (eval "$ac_link") 2>conftest.er1
25454 grep -v '^ *+' conftest.er1 >conftest.err
25456 cat conftest.err >&5
25457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458 (exit $ac_status); } && {
25459 test -z "$ac_c_werror_flag" ||
25460 test ! -s conftest.err
25461 } && test -s conftest$ac_exeext &&
25462 $as_test_x conftest$ac_exeext; then
25465 cat >>confdefs.h <<\_ACEOF
25466 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
25469 gethostbyaddrrstyle=SYSV
25472 echo "$as_me: failed program was:" >&5
25473 sed 's/^/| /' conftest.$ac_ext >&5
25478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25479 conftest$ac_exeext conftest.$ac_ext
25481 if test "x$gethostbyaddrrstyle" = "x"; then
25482 cat >conftest.$ac_ext <<_ACEOF
25485 cat confdefs.h >>conftest.$ac_ext
25486 cat >>conftest.$ac_ext <<_ACEOF
25487 /* end confdefs.h. */
25495 gethostbyaddr(NULL, 0, 0)
25500 rm -f conftest.$ac_objext conftest$ac_exeext
25501 if { (ac_try="$ac_link"
25502 case "(($ac_try" in
25503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25504 *) ac_try_echo=$ac_try;;
25506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25507 (eval "$ac_link") 2>conftest.er1
25509 grep -v '^ *+' conftest.er1 >conftest.err
25511 cat conftest.err >&5
25512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513 (exit $ac_status); } && {
25514 test -z "$ac_c_werror_flag" ||
25515 test ! -s conftest.err
25516 } && test -s conftest$ac_exeext &&
25517 $as_test_x conftest$ac_exeext; then
25520 cat >>confdefs.h <<\_ACEOF
25521 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25524 gethostbyaddrrstyle=BSD
25527 echo "$as_me: failed program was:" >&5
25528 sed 's/^/| /' conftest.$ac_ext >&5
25533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25534 conftest$ac_exeext conftest.$ac_ext
25537 if test "x$gethostbyaddrrstyle" = "x"; then
25538 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25539 echo "${ECHO_T}none! It must not exist, here." >&6; }
25541 { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
25542 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
25545 if test "x$gethostbyaddrrstyle" = "xBSD"; then
25546 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
25547 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
25550 gethostbynamerstyle=""
25551 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
25552 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
25553 cat >conftest.$ac_ext <<_ACEOF
25556 cat confdefs.h >>conftest.$ac_ext
25557 cat >>conftest.$ac_ext <<_ACEOF
25558 /* end confdefs.h. */
25566 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
25571 rm -f conftest.$ac_objext conftest$ac_exeext
25572 if { (ac_try="$ac_link"
25573 case "(($ac_try" in
25574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25575 *) ac_try_echo=$ac_try;;
25577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25578 (eval "$ac_link") 2>conftest.er1
25580 grep -v '^ *+' conftest.er1 >conftest.err
25582 cat conftest.err >&5
25583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584 (exit $ac_status); } && {
25585 test -z "$ac_c_werror_flag" ||
25586 test ! -s conftest.err
25587 } && test -s conftest$ac_exeext &&
25588 $as_test_x conftest$ac_exeext; then
25591 cat >>confdefs.h <<\_ACEOF
25592 #define GETHOSTBYNAMERSTYLE GNUSTYLE
25595 gethostbynamerstyle=GNU
25598 echo "$as_me: failed program was:" >&5
25599 sed 's/^/| /' conftest.$ac_ext >&5
25604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25605 conftest$ac_exeext conftest.$ac_ext
25606 if test "x$gethostbynamerstyle" = "x"; then
25607 cat >conftest.$ac_ext <<_ACEOF
25610 cat confdefs.h >>conftest.$ac_ext
25611 cat >>conftest.$ac_ext <<_ACEOF
25612 /* end confdefs.h. */
25620 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25625 rm -f conftest.$ac_objext conftest$ac_exeext
25626 if { (ac_try="$ac_link"
25627 case "(($ac_try" in
25628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25629 *) ac_try_echo=$ac_try;;
25631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25632 (eval "$ac_link") 2>conftest.er1
25634 grep -v '^ *+' conftest.er1 >conftest.err
25636 cat conftest.err >&5
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); } && {
25639 test -z "$ac_c_werror_flag" ||
25640 test ! -s conftest.err
25641 } && test -s conftest$ac_exeext &&
25642 $as_test_x conftest$ac_exeext; then
25645 cat >>confdefs.h <<\_ACEOF
25646 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25649 gethostbynamerstyle=SYSV
25652 echo "$as_me: failed program was:" >&5
25653 sed 's/^/| /' conftest.$ac_ext >&5
25658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25659 conftest$ac_exeext conftest.$ac_ext
25661 if test "x$gethostbynamerstyle" = "x"; then
25662 cat >conftest.$ac_ext <<_ACEOF
25665 cat confdefs.h >>conftest.$ac_ext
25666 cat >>conftest.$ac_ext <<_ACEOF
25667 /* end confdefs.h. */
25675 gethostbyname(NULL)
25680 rm -f conftest.$ac_objext conftest$ac_exeext
25681 if { (ac_try="$ac_link"
25682 case "(($ac_try" in
25683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25684 *) ac_try_echo=$ac_try;;
25686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25687 (eval "$ac_link") 2>conftest.er1
25689 grep -v '^ *+' conftest.er1 >conftest.err
25691 cat conftest.err >&5
25692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693 (exit $ac_status); } && {
25694 test -z "$ac_c_werror_flag" ||
25695 test ! -s conftest.err
25696 } && test -s conftest$ac_exeext &&
25697 $as_test_x conftest$ac_exeext; then
25700 cat >>confdefs.h <<\_ACEOF
25701 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25704 gethostbynamerstyle=BSD
25707 echo "$as_me: failed program was:" >&5
25708 sed 's/^/| /' conftest.$ac_ext >&5
25713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25714 conftest$ac_exeext conftest.$ac_ext
25717 if test "x$gethostbynamerstyle" = "x"; then
25718 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25719 echo "${ECHO_T}none! It must not exist, here." >&6; }
25721 { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25722 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25725 if test "x$gethostbynamerstyle" = "xBSD"; then
25726 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25727 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25731 cat >>confdefs.h <<\_ACEOF
25732 #define POSIXSTYLE 1
25736 cat >>confdefs.h <<\_ACEOF
25737 #define SOLARISSTYLE 2
25741 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25742 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
25743 cat >conftest.$ac_ext <<_ACEOF
25746 cat confdefs.h >>conftest.$ac_ext
25747 cat >>conftest.$ac_ext <<_ACEOF
25748 /* end confdefs.h. */
25755 ctime_r(NULL, NULL, 0)
25760 rm -f conftest.$ac_objext conftest$ac_exeext
25761 if { (ac_try="$ac_link"
25762 case "(($ac_try" in
25763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25764 *) ac_try_echo=$ac_try;;
25766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25767 (eval "$ac_link") 2>conftest.er1
25769 grep -v '^ *+' conftest.er1 >conftest.err
25771 cat conftest.err >&5
25772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 (exit $ac_status); } && {
25774 test -z "$ac_c_werror_flag" ||
25775 test ! -s conftest.err
25776 } && test -s conftest$ac_exeext &&
25777 $as_test_x conftest$ac_exeext; then
25780 cat >>confdefs.h <<\_ACEOF
25781 #define CTIMERSTYLE SOLARISSTYLE
25784 ctimerstyle="SOLARIS"
25787 echo "$as_me: failed program was:" >&5
25788 sed 's/^/| /' conftest.$ac_ext >&5
25793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25794 conftest$ac_exeext conftest.$ac_ext
25795 if test "x$ctimerstyle" = "x"; then
25796 cat >conftest.$ac_ext <<_ACEOF
25799 cat confdefs.h >>conftest.$ac_ext
25800 cat >>conftest.$ac_ext <<_ACEOF
25801 /* end confdefs.h. */
25808 ctime_r(NULL, NULL)
25813 rm -f conftest.$ac_objext conftest$ac_exeext
25814 if { (ac_try="$ac_link"
25815 case "(($ac_try" in
25816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25817 *) ac_try_echo=$ac_try;;
25819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25820 (eval "$ac_link") 2>conftest.er1
25822 grep -v '^ *+' conftest.er1 >conftest.err
25824 cat conftest.err >&5
25825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25826 (exit $ac_status); } && {
25827 test -z "$ac_c_werror_flag" ||
25828 test ! -s conftest.err
25829 } && test -s conftest$ac_exeext &&
25830 $as_test_x conftest$ac_exeext; then
25833 cat >>confdefs.h <<\_ACEOF
25834 #define CTIMERSTYLE POSIXSTYLE
25837 ctimerstyle="POSIX"
25840 echo "$as_me: failed program was:" >&5
25841 sed 's/^/| /' conftest.$ac_ext >&5
25846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25847 conftest$ac_exeext conftest.$ac_ext
25850 if test "x$ctimerstyle" = "x"; then
25851 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25852 echo "${ECHO_T}none! It must not exist, here." >&6; }
25854 { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25855 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
25863 export top_builddir
25864 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25865 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
25871 mysubdirs="$LIBLTDLPATH"
25872 if test "x$EXPERIMENTAL" = "xyes"; then
25873 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
25874 mysubdirs=`echo $mysubdirs $bar`
25876 for bar in `cat "${srcdir}"/src/modules/stable`; do
25877 if test -f "${srcdir}"/src/modules/$bar/configure; then
25878 mysubdirs="$mysubdirs src/modules/$bar"
25883 if test "x$EXPERIMENTAL" = "xyes"; then
25884 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
25885 MODULES="$MODULES $foo"
25888 for foo in `cat "${srcdir}"/src/modules/stable`; do
25889 MODULES="$MODULES $foo"
25893 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
25898 ac_config_commands="$ac_config_commands stamp-h"
25900 ac_config_commands="$ac_config_commands build-radpaths-h"
25902 ac_config_commands="$ac_config_commands main-chmod"
25904 ac_config_commands="$ac_config_commands scripts-chmod"
25910 USE_SHARED_LIBS=$enable_shared
25912 USE_STATIC_LIBS=$enable_static
25920 unset ac_cv_env_LIBS_set
25921 unset ac_cv_env_LIBS_value
25923 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/radrelay.conf ./raddb/radiusd.conf"
25925 cat >confcache <<\_ACEOF
25926 # This file is a shell script that caches the results of configure
25927 # tests run on this system so they can be shared between configure
25928 # scripts and configure runs, see configure's option --config-cache.
25929 # It is not useful on other systems. If it contains results you don't
25930 # want to keep, you may remove or edit it.
25932 # config.status only pays attention to the cache file if you give it
25933 # the --recheck option to rerun configure.
25935 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25936 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25937 # following values.
25941 # The following way of writing the cache mishandles newlines in values,
25942 # but we know of no workaround that is simple, portable, and efficient.
25943 # So, we kill variables containing newlines.
25944 # Ultrix sh set writes to stderr and can't be redirected directly,
25945 # and sets the high bit in the cache file unless we assign to the vars.
25947 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25948 eval ac_val=\$$ac_var
25952 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25953 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25956 _ | IFS | as_nl) ;; #(
25957 *) $as_unset $ac_var ;;
25963 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25964 *${as_nl}ac_space=\ *)
25965 # `set' does not quote correctly, so add quotes (double-quote
25966 # substitution turns \\\\ into \\, and sed turns \\ into \).
25969 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25972 # `set' quotes correctly as required by POSIX, so do not add quotes.
25973 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25982 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25984 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25986 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25987 if test -w "$cache_file"; then
25988 test "x$cache_file" != "x/dev/null" &&
25989 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25990 echo "$as_me: updating cache $cache_file" >&6;}
25991 cat confcache >$cache_file
25993 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25994 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25999 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26000 # Let make expand exec_prefix.
26001 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26003 DEFS=-DHAVE_CONFIG_H
26007 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26008 # 1. Remove the extension, and $U if already installed.
26009 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26010 ac_i=`echo "$ac_i" | sed "$ac_script"`
26011 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26012 # will be set to the directory where LIBOBJS objects are built.
26013 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26014 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26016 LIBOBJS=$ac_libobjs
26018 LTLIBOBJS=$ac_ltlibobjs
26022 : ${CONFIG_STATUS=./config.status}
26023 ac_clean_files_save=$ac_clean_files
26024 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26025 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26026 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26027 cat >$CONFIG_STATUS <<_ACEOF
26029 # Generated by $as_me.
26030 # Run this file to recreate the current configuration.
26031 # Compiler output produced by configure, useful for debugging
26032 # configure, is in config.log if it exists.
26035 ac_cs_recheck=false
26037 SHELL=\${CONFIG_SHELL-$SHELL}
26040 cat >>$CONFIG_STATUS <<\_ACEOF
26041 ## --------------------- ##
26042 ## M4sh Initialization. ##
26043 ## --------------------- ##
26045 # Be more Bourne compatible
26046 DUALCASE=1; export DUALCASE # for MKS sh
26047 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26050 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26051 # is contrary to our usage. Disable this feature.
26052 alias -g '${1+"$@"}'='"$@"'
26053 setopt NO_GLOB_SUBST
26055 case `(set -o) 2>/dev/null` in
26056 *posix*) set -o posix ;;
26065 # Avoid depending upon Character Ranges.
26066 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26067 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26068 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26069 as_cr_digits='0123456789'
26070 as_cr_alnum=$as_cr_Letters$as_cr_digits
26072 # The user is always right.
26073 if test "${PATH_SEPARATOR+set}" != set; then
26074 echo "#! /bin/sh" >conf$$.sh
26075 echo "exit 0" >>conf$$.sh
26077 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26085 # Support unset when possible.
26086 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26094 # We need space, tab and new line, in precisely that order. Quoting is
26095 # there to prevent editors from complaining about space-tab.
26096 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26097 # splitting by setting IFS to empty value.)
26102 # Find who we are. Look in the path if we contain no directory separator.
26104 *[\\/]* ) as_myself=$0 ;;
26105 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26106 for as_dir in $PATH
26109 test -z "$as_dir" && as_dir=.
26110 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26116 # We did not find ourselves, most probably we were run as `sh COMMAND'
26117 # in which case we are not to be found in the path.
26118 if test "x$as_myself" = x; then
26121 if test ! -f "$as_myself"; then
26122 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26123 { (exit 1); exit 1; }
26126 # Work around bugs in pre-3.0 UWIN ksh.
26127 for as_var in ENV MAIL MAILPATH
26128 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26136 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26137 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26138 LC_TELEPHONE LC_TIME
26140 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26141 eval $as_var=C; export $as_var
26143 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26147 # Required to use basename.
26148 if expr a : '\(a\)' >/dev/null 2>&1 &&
26149 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26155 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26156 as_basename=basename
26162 # Name of the executable.
26163 as_me=`$as_basename -- "$0" ||
26164 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26165 X"$0" : 'X\(//\)$' \| \
26166 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26168 sed '/^.*\/\([^/][^/]*\)\/*$/{
26187 as_lineno_1=$LINENO
26188 as_lineno_2=$LINENO
26189 test "x$as_lineno_1" != "x$as_lineno_2" &&
26190 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26192 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26193 # uniformly replaced by the line number. The first 'sed' inserts a
26194 # line-number line after each line using $LINENO; the second 'sed'
26195 # does the real work. The second script uses 'N' to pair each
26196 # line-number line with the line containing $LINENO, and appends
26197 # trailing '-' during substitution so that $LINENO is not a special
26198 # case at line end.
26199 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26200 # scripts with optimization help from Paolo Bonzini. Blame Lee
26201 # E. McMahon (1931-1989) for sed's syntax. :-)
26213 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26216 ' >$as_me.lineno &&
26217 chmod +x "$as_me.lineno" ||
26218 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26219 { (exit 1); exit 1; }; }
26221 # Don't try to exec as it changes $[0], causing all sort of problems
26222 # (the dirname of $[0] is not the place where we might find the
26223 # original and so on. Autoconf is especially sensitive to this).
26224 . "./$as_me.lineno"
26225 # Exit status is that of the last command.
26230 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26236 ECHO_C= ECHO_N= ECHO_T=
26237 case `echo -n x` in
26239 case `echo 'x\c'` in
26240 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26247 if expr a : '\(a\)' >/dev/null 2>&1 &&
26248 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26254 rm -f conf$$ conf$$.exe conf$$.file
26255 if test -d conf$$.dir; then
26256 rm -f conf$$.dir/conf$$.file
26262 if ln -s conf$$.file conf$$ 2>/dev/null; then
26264 # ... but there are two gotchas:
26265 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26266 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26267 # In both cases, we have to default to `cp -p'.
26268 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26270 elif ln conf$$.file conf$$ 2>/dev/null; then
26275 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26276 rmdir conf$$.dir 2>/dev/null
26278 if mkdir -p . 2>/dev/null; then
26281 test -d ./-p && rmdir ./-p
26285 if test -x / >/dev/null 2>&1; then
26286 as_test_x='test -x'
26288 if ls -dL / >/dev/null 2>&1; then
26295 if test -d "$1"; then
26301 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26302 ???[sx]*):;;*)false;;esac;fi
26306 as_executable_p=$as_test_x
26308 # Sed expression to map a string onto a valid CPP name.
26309 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26311 # Sed expression to map a string onto a valid variable name.
26312 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26317 # Save the log message, to keep $[0] and so on meaningful, and to
26318 # report actual input values of CONFIG_FILES etc. instead of their
26319 # values after options handling.
26321 This file was extended by $as_me, which was
26322 generated by GNU Autoconf 2.61. Invocation command line was
26324 CONFIG_FILES = $CONFIG_FILES
26325 CONFIG_HEADERS = $CONFIG_HEADERS
26326 CONFIG_LINKS = $CONFIG_LINKS
26327 CONFIG_COMMANDS = $CONFIG_COMMANDS
26330 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26335 cat >>$CONFIG_STATUS <<_ACEOF
26336 # Files that config.status was made for.
26337 config_files="$ac_config_files"
26338 config_headers="$ac_config_headers"
26339 config_commands="$ac_config_commands"
26343 cat >>$CONFIG_STATUS <<\_ACEOF
26345 \`$as_me' instantiates files from templates according to the
26346 current configuration.
26348 Usage: $0 [OPTIONS] [FILE]...
26350 -h, --help print this help, then exit
26351 -V, --version print version number and configuration settings, then exit
26352 -q, --quiet do not print progress messages
26353 -d, --debug don't remove temporary files
26354 --recheck update $as_me by reconfiguring in the same conditions
26355 --file=FILE[:TEMPLATE]
26356 instantiate the configuration file FILE
26357 --header=FILE[:TEMPLATE]
26358 instantiate the configuration header FILE
26360 Configuration files:
26363 Configuration headers:
26366 Configuration commands:
26369 Report bugs to <bug-autoconf@gnu.org>."
26372 cat >>$CONFIG_STATUS <<_ACEOF
26375 configured by $0, generated by GNU Autoconf 2.61,
26376 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26378 Copyright (C) 2006 Free Software Foundation, Inc.
26379 This config.status script is free software; the Free Software Foundation
26380 gives unlimited permission to copy, distribute and modify it."
26386 cat >>$CONFIG_STATUS <<\_ACEOF
26387 # If no file are specified by the user, then we need to provide default
26388 # value. By we need to know if files were specified by the user.
26394 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26395 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26406 # Handling of the options.
26407 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26409 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26410 echo "$ac_cs_version"; exit ;;
26411 --debug | --debu | --deb | --de | --d | -d )
26413 --file | --fil | --fi | --f )
26415 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26416 ac_need_defaults=false;;
26417 --header | --heade | --head | --hea )
26419 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26420 ac_need_defaults=false;;
26422 # Conflict between --help and --header
26423 { echo "$as_me: error: ambiguous option: $1
26424 Try \`$0 --help' for more information." >&2
26425 { (exit 1); exit 1; }; };;
26426 --help | --hel | -h )
26427 echo "$ac_cs_usage"; exit ;;
26428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26429 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26432 # This is an error.
26433 -*) { echo "$as_me: error: unrecognized option: $1
26434 Try \`$0 --help' for more information." >&2
26435 { (exit 1); exit 1; }; } ;;
26437 *) ac_config_targets="$ac_config_targets $1"
26438 ac_need_defaults=false ;;
26444 ac_configure_extra_args=
26446 if $ac_cs_silent; then
26448 ac_configure_extra_args="$ac_configure_extra_args --silent"
26452 cat >>$CONFIG_STATUS <<_ACEOF
26453 if \$ac_cs_recheck; then
26454 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26455 CONFIG_SHELL=$SHELL
26456 export CONFIG_SHELL
26457 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26461 cat >>$CONFIG_STATUS <<\_ACEOF
26465 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26466 ## Running $as_me. ##
26472 cat >>$CONFIG_STATUS <<_ACEOF
26475 cat >>$CONFIG_STATUS <<\_ACEOF
26477 # Handling of arguments.
26478 for ac_config_target in $ac_config_targets
26480 case $ac_config_target in
26481 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
26482 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
26483 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
26484 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
26485 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
26486 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
26487 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
26488 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
26489 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
26490 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
26491 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
26492 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
26493 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
26494 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
26495 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
26496 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
26497 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
26498 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
26499 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
26501 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26502 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26503 { (exit 1); exit 1; }; };;
26508 # If the user did not use the arguments to specify the items to instantiate,
26509 # then the envvar interface is used. Set only those that are not.
26510 # We use the long form for the default assignment because of an extremely
26511 # bizarre bug on SunOS 4.1.3.
26512 if $ac_need_defaults; then
26513 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26514 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26515 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26518 # Have a temporary directory for convenience. Make it in the build tree
26519 # simply because there is no reason against having it here, and in addition,
26520 # creating and moving files from /tmp can sometimes cause problems.
26521 # Hook for its removal unless debugging.
26522 # Note that there is a small window in which the directory will not be cleaned:
26523 # after its creation but before its name has been assigned to `$tmp'.
26527 trap 'exit_status=$?
26528 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26530 trap '{ (exit 1); exit 1; }' 1 2 13 15
26532 # Create a (secure) tmp directory for tmp files.
26535 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26536 test -n "$tmp" && test -d "$tmp"
26539 tmp=./conf$$-$RANDOM
26540 (umask 077 && mkdir "$tmp")
26543 echo "$me: cannot create a temporary directory in ." >&2
26544 { (exit 1); exit 1; }
26548 # Set up the sed scripts for CONFIG_FILES section.
26551 # No need to generate the scripts if there are no CONFIG_FILES.
26552 # This happens for instance when ./config.status config.h
26553 if test -n "$CONFIG_FILES"; then
26560 for ac_last_try in false false false false false :; do
26561 cat >conf$$subs.sed <<_ACEOF
26562 SHELL!$SHELL$ac_delim
26563 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26564 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26565 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26566 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26567 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26568 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26569 exec_prefix!$exec_prefix$ac_delim
26570 prefix!$prefix$ac_delim
26571 program_transform_name!$program_transform_name$ac_delim
26572 bindir!$bindir$ac_delim
26573 sbindir!$sbindir$ac_delim
26574 libexecdir!$libexecdir$ac_delim
26575 datarootdir!$datarootdir$ac_delim
26576 datadir!$datadir$ac_delim
26577 sysconfdir!$sysconfdir$ac_delim
26578 sharedstatedir!$sharedstatedir$ac_delim
26579 localstatedir!$localstatedir$ac_delim
26580 includedir!$includedir$ac_delim
26581 oldincludedir!$oldincludedir$ac_delim
26582 docdir!$docdir$ac_delim
26583 infodir!$infodir$ac_delim
26584 htmldir!$htmldir$ac_delim
26585 dvidir!$dvidir$ac_delim
26586 pdfdir!$pdfdir$ac_delim
26587 psdir!$psdir$ac_delim
26588 libdir!$libdir$ac_delim
26589 localedir!$localedir$ac_delim
26590 mandir!$mandir$ac_delim
26591 DEFS!$DEFS$ac_delim
26592 ECHO_C!$ECHO_C$ac_delim
26593 ECHO_N!$ECHO_N$ac_delim
26594 ECHO_T!$ECHO_T$ac_delim
26595 LIBS!$LIBS$ac_delim
26596 build_alias!$build_alias$ac_delim
26597 host_alias!$host_alias$ac_delim
26598 target_alias!$target_alias$ac_delim
26600 CFLAGS!$CFLAGS$ac_delim
26601 LDFLAGS!$LDFLAGS$ac_delim
26602 CPPFLAGS!$CPPFLAGS$ac_delim
26603 ac_ct_CC!$ac_ct_CC$ac_delim
26604 EXEEXT!$EXEEXT$ac_delim
26605 OBJEXT!$OBJEXT$ac_delim
26607 CXXFLAGS!$CXXFLAGS$ac_delim
26608 ac_ct_CXX!$ac_ct_CXX$ac_delim
26610 GREP!$GREP$ac_delim
26611 EGREP!$EGREP$ac_delim
26612 RANLIB!$RANLIB$ac_delim
26613 GMAKE!$GMAKE$ac_delim
26614 MAKE!$MAKE$ac_delim
26615 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
26616 LIBTOOL!$LIBTOOL$ac_delim
26617 build!$build$ac_delim
26618 build_cpu!$build_cpu$ac_delim
26619 build_vendor!$build_vendor$ac_delim
26620 build_os!$build_os$ac_delim
26621 host!$host$ac_delim
26622 host_cpu!$host_cpu$ac_delim
26623 host_vendor!$host_vendor$ac_delim
26624 host_os!$host_os$ac_delim
26626 LN_S!$LN_S$ac_delim
26627 ECHO!$ECHO$ac_delim
26629 STRIP!$STRIP$ac_delim
26630 DSYMUTIL!$DSYMUTIL$ac_delim
26631 NMEDIT!$NMEDIT$ac_delim
26632 CXXCPP!$CXXCPP$ac_delim
26634 FFLAGS!$FFLAGS$ac_delim
26635 ac_ct_F77!$ac_ct_F77$ac_delim
26636 logdir!$logdir$ac_delim
26637 radacctdir!$radacctdir$ac_delim
26638 raddbdir!$raddbdir$ac_delim
26639 PERL!$PERL$ac_delim
26640 SNMPGET!$SNMPGET$ac_delim
26641 SNMPWALK!$SNMPWALK$ac_delim
26642 RUSERS!$RUSERS$ac_delim
26643 ACLOCAL!$ACLOCAL$ac_delim
26644 AUTOCONF!$AUTOCONF$ac_delim
26645 AUTOHEADER!$AUTOHEADER$ac_delim
26646 LOCATE!$LOCATE$ac_delim
26647 DIRNAME!$DIRNAME$ac_delim
26648 LIBREADLINE!$LIBREADLINE$ac_delim
26649 REGEX!$REGEX$ac_delim
26650 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26651 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26652 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26653 PCAP_LIBS!$PCAP_LIBS$ac_delim
26654 LIBPREFIX!$LIBPREFIX$ac_delim
26655 CRYPTLIB!$CRYPTLIB$ac_delim
26656 HOSTINFO!$HOSTINFO$ac_delim
26657 LIBLTDL!$LIBLTDL$ac_delim
26658 INCLTDL!$INCLTDL$ac_delim
26661 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26663 elif $ac_last_try; then
26664 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26665 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26666 { (exit 1); exit 1; }; }
26668 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26672 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26673 if test -n "$ac_eof"; then
26674 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26675 ac_eof=`expr $ac_eof + 1`
26678 cat >>$CONFIG_STATUS <<_ACEOF
26679 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26680 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26683 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26684 s/^/s,@/; s/!/@,|#_!!_#|/
26687 s/'"$ac_delim"'$/,g/; t
26689 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26690 ' >>$CONFIG_STATUS <conf$$subs.sed
26691 rm -f conf$$subs.sed
26692 cat >>$CONFIG_STATUS <<_ACEOF
26698 for ac_last_try in false false false false false :; do
26699 cat >conf$$subs.sed <<_ACEOF
26700 subdirs!$subdirs$ac_delim
26701 MODULES!$MODULES$ac_delim
26702 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26703 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26704 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26705 STATIC_MODULES!$STATIC_MODULES$ac_delim
26706 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26707 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26708 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26709 LIBOBJS!$LIBOBJS$ac_delim
26710 LTLIBOBJS!$LTLIBOBJS$ac_delim
26713 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
26715 elif $ac_last_try; then
26716 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26717 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26718 { (exit 1); exit 1; }; }
26720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26724 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26725 if test -n "$ac_eof"; then
26726 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26727 ac_eof=`expr $ac_eof + 1`
26730 cat >>$CONFIG_STATUS <<_ACEOF
26731 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26732 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26735 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26736 s/^/s,@/; s/!/@,|#_!!_#|/
26739 s/'"$ac_delim"'$/,g/; t
26741 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26742 ' >>$CONFIG_STATUS <conf$$subs.sed
26743 rm -f conf$$subs.sed
26744 cat >>$CONFIG_STATUS <<_ACEOF
26751 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26752 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26753 # trailing colons and then remove the whole line if VPATH becomes empty
26754 # (actually we leave an empty line to preserve line numbers).
26755 if test "x$srcdir" = x.; then
26756 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26757 s/:*\$(srcdir):*/:/
26758 s/:*\${srcdir}:*/:/
26760 s/^\([^=]*=[ ]*\):*/\1/
26766 cat >>$CONFIG_STATUS <<\_ACEOF
26767 fi # test -n "$CONFIG_FILES"
26770 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26773 :[FHLC]) ac_mode=$ac_tag; continue;;
26775 case $ac_mode$ac_tag in
26777 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26778 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26779 { (exit 1); exit 1; }; };;
26780 :[FH]-) ac_tag=-:-;;
26781 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26798 -) ac_f="$tmp/stdin";;
26799 *) # Look for the file first in the build tree, then in the source tree
26800 # (if the path is not absolute). The absolute path cannot be DOS-style,
26801 # because $ac_f cannot contain `:'.
26805 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26807 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26808 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26809 { (exit 1); exit 1; }; };;
26811 ac_file_inputs="$ac_file_inputs $ac_f"
26814 # Let's still pretend it is `configure' which instantiates (i.e., don't
26815 # use $as_me), people would be surprised to read:
26816 # /* config.h. Generated by config.status. */
26817 configure_input="Generated from "`IFS=:
26818 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26819 if test x"$ac_file" != x-; then
26820 configure_input="$ac_file. $configure_input"
26821 { echo "$as_me:$LINENO: creating $ac_file" >&5
26822 echo "$as_me: creating $ac_file" >&6;}
26826 *:-:* | *:-) cat >"$tmp/stdin";;
26831 ac_dir=`$as_dirname -- "$ac_file" ||
26832 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26833 X"$ac_file" : 'X\(//\)[^/]' \| \
26834 X"$ac_file" : 'X\(//\)$' \| \
26835 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26841 /^X\(\/\/\)[^/].*/{
26856 -*) as_dir=./$as_dir;;
26858 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26862 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26863 *) as_qdir=$as_dir;;
26865 as_dirs="'$as_qdir' $as_dirs"
26866 as_dir=`$as_dirname -- "$as_dir" ||
26867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26868 X"$as_dir" : 'X\(//\)[^/]' \| \
26869 X"$as_dir" : 'X\(//\)$' \| \
26870 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26876 /^X\(\/\/\)[^/].*/{
26889 test -d "$as_dir" && break
26891 test -z "$as_dirs" || eval "mkdir $as_dirs"
26892 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26893 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26894 { (exit 1); exit 1; }; }; }
26898 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26901 # A ".." for each directory in $ac_dir_suffix.
26902 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26903 case $ac_top_builddir_sub in
26904 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26905 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26908 ac_abs_top_builddir=$ac_pwd
26909 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26910 # for backward compatibility:
26911 ac_top_builddir=$ac_top_build_prefix
26914 .) # We are building in place.
26916 ac_top_srcdir=$ac_top_builddir_sub
26917 ac_abs_top_srcdir=$ac_pwd ;;
26918 [\\/]* | ?:[\\/]* ) # Absolute name.
26919 ac_srcdir=$srcdir$ac_dir_suffix;
26920 ac_top_srcdir=$srcdir
26921 ac_abs_top_srcdir=$srcdir ;;
26922 *) # Relative name.
26923 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26924 ac_top_srcdir=$ac_top_build_prefix$srcdir
26925 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26927 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26938 cat >>$CONFIG_STATUS <<\_ACEOF
26939 # If the template does not know about datarootdir, expand it.
26940 # FIXME: This hack should be removed a few years after 2.60.
26941 ac_datarootdir_hack=; ac_datarootdir_seen=
26943 case `sed -n '/datarootdir/ {
26952 ' $ac_file_inputs` in
26953 *datarootdir*) ac_datarootdir_seen=yes;;
26954 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26955 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26956 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26958 cat >>$CONFIG_STATUS <<_ACEOF
26959 ac_datarootdir_hack='
26960 s&@datadir@&$datadir&g
26961 s&@docdir@&$docdir&g
26962 s&@infodir@&$infodir&g
26963 s&@localedir@&$localedir&g
26964 s&@mandir@&$mandir&g
26965 s&\\\${datarootdir}&$datarootdir&g' ;;
26969 # Neutralize VPATH when `$srcdir' = `.'.
26970 # Shell code in configure.ac might set extrasub.
26971 # FIXME: do we really want to maintain this feature?
26972 cat >>$CONFIG_STATUS <<_ACEOF
26976 cat >>$CONFIG_STATUS <<\_ACEOF
26978 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26979 s&@configure_input@&$configure_input&;t t
26980 s&@top_builddir@&$ac_top_builddir_sub&;t t
26981 s&@srcdir@&$ac_srcdir&;t t
26982 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26983 s&@top_srcdir@&$ac_top_srcdir&;t t
26984 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26985 s&@builddir@&$ac_builddir&;t t
26986 s&@abs_builddir@&$ac_abs_builddir&;t t
26987 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26988 $ac_datarootdir_hack
26989 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26991 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26992 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26993 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26994 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26995 which seems to be undefined. Please make sure it is defined." >&5
26996 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26997 which seems to be undefined. Please make sure it is defined." >&2;}
27001 -) cat "$tmp/out"; rm -f "$tmp/out";;
27002 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27011 # Transform confdefs.h into a sed script `conftest.defines', that
27012 # substitutes the proper values into config.h.in to produce config.h.
27013 rm -f conftest.defines conftest.tail
27014 # First, append a space to every undef/define line, to ease matching.
27015 echo 's/$/ /' >conftest.defines
27016 # Then, protect against being on the right side of a sed subst, or in
27017 # an unquoted here document, in config.status. If some macros were
27018 # called several times there might be several #defines for the same
27019 # symbol, which is useless. But do not sort them, since the last
27020 # AC_DEFINE must be honored.
27021 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27022 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27023 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27024 # PARAMS is the parameter list in the macro definition--in most cases, it's
27025 # just an empty string.
27026 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27027 ac_dB='\\)[ (].*,\\1define\\2'
27035 s/^[ ]*#[ ]*define[ ][ ]*//
27040 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27041 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27042 ' >>conftest.defines
27044 # Remove the space that was appended to ease matching.
27045 # Then replace #undef with comments. This is necessary, for
27046 # example, in the case of _POSIX_SOURCE, which is predefined and required
27047 # on some systems where configure will not decide to define it.
27048 # (The regexp can be short, since the line contains either #define or #undef.)
27050 s,^[ #]*u.*,/* & */,' >>conftest.defines
27052 # Break up conftest.defines:
27053 ac_max_sed_lines=50
27055 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27056 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27057 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27059 ac_in='$ac_file_inputs'
27060 ac_out='"$tmp/out1"'
27061 ac_nxt='"$tmp/out2"'
27065 # Write a here document:
27066 cat >>$CONFIG_STATUS <<_ACEOF
27067 # First, check the format of the line:
27068 cat >"\$tmp/defines.sed" <<\\CEOF
27069 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27070 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27074 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27076 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27077 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27078 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27079 grep . conftest.tail >/dev/null || break
27080 rm -f conftest.defines
27081 mv conftest.tail conftest.defines
27083 rm -f conftest.defines conftest.tail
27085 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27086 cat >>$CONFIG_STATUS <<\_ACEOF
27087 if test x"$ac_file" != x-; then
27088 echo "/* $configure_input */" >"$tmp/config.h"
27089 cat "$ac_result" >>"$tmp/config.h"
27090 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27091 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27092 echo "$as_me: $ac_file is unchanged" >&6;}
27095 mv "$tmp/config.h" $ac_file
27098 echo "/* $configure_input */"
27104 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27105 echo "$as_me: executing $ac_file commands" >&6;}
27110 case $ac_file$ac_mode in
27111 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
27112 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
27113 "main-chmod":C) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
27114 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
27120 { (exit 0); exit 0; }
27122 chmod +x $CONFIG_STATUS
27123 ac_clean_files=$ac_clean_files_save
27126 # configure is writing to config.log, and then calls config.status.
27127 # config.status does its own redirection, appending to config.log.
27128 # Unfortunately, on DOS this fails, as config.log is still kept open
27129 # by configure, so config.status won't be able to write to it; its
27130 # output is simply discarded. So we exec the FD to /dev/null,
27131 # effectively closing config.log, so it can be properly (re)opened and
27132 # appended to by config.status. When coming back to configure, we
27133 # need to make the FD available again.
27134 if test "$no_create" != yes; then
27136 ac_config_status_args=
27137 test "$silent" = yes &&
27138 ac_config_status_args="$ac_config_status_args --quiet"
27140 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27142 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27143 # would make configure fail if this is the last instruction.
27144 $ac_cs_success || { (exit 1); exit 1; }
27148 # CONFIG_SUBDIRS section.
27150 if test "$no_recursion" != yes; then
27152 # Remove --cache-file and --srcdir arguments so they do not pile up.
27153 ac_sub_configure_args=
27155 eval "set x $ac_configure_args"
27159 if test -n "$ac_prev"; then
27164 -cache-file | --cache-file | --cache-fil | --cache-fi \
27165 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27166 ac_prev=cache_file ;;
27167 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27168 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27171 --config-cache | -C)
27173 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27175 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27177 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27179 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27183 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27185 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27189 # Always prepend --prefix to ensure using the same prefix
27190 # in subdir configurations.
27191 ac_arg="--prefix=$prefix"
27193 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27195 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27198 if test "$silent" = yes; then
27199 ac_sub_configure_args="--silent $ac_sub_configure_args"
27203 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27205 # Do not complain, so a configure script can configure whichever
27206 # parts of a large source tree are present.
27207 test -d "$srcdir/$ac_dir" || continue
27209 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27210 echo "$as_me:$LINENO: $ac_msg" >&5
27214 -*) as_dir=./$as_dir;;
27216 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27220 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27221 *) as_qdir=$as_dir;;
27223 as_dirs="'$as_qdir' $as_dirs"
27224 as_dir=`$as_dirname -- "$as_dir" ||
27225 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27226 X"$as_dir" : 'X\(//\)[^/]' \| \
27227 X"$as_dir" : 'X\(//\)$' \| \
27228 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27234 /^X\(\/\/\)[^/].*/{
27247 test -d "$as_dir" && break
27249 test -z "$as_dirs" || eval "mkdir $as_dirs"
27250 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27251 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27252 { (exit 1); exit 1; }; }; }
27256 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27258 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27259 # A ".." for each directory in $ac_dir_suffix.
27260 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27261 case $ac_top_builddir_sub in
27262 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27263 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27266 ac_abs_top_builddir=$ac_pwd
27267 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27268 # for backward compatibility:
27269 ac_top_builddir=$ac_top_build_prefix
27272 .) # We are building in place.
27274 ac_top_srcdir=$ac_top_builddir_sub
27275 ac_abs_top_srcdir=$ac_pwd ;;
27276 [\\/]* | ?:[\\/]* ) # Absolute name.
27277 ac_srcdir=$srcdir$ac_dir_suffix;
27278 ac_top_srcdir=$srcdir
27279 ac_abs_top_srcdir=$srcdir ;;
27280 *) # Relative name.
27281 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27282 ac_top_srcdir=$ac_top_build_prefix$srcdir
27283 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27285 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27290 # Check for guested configure; otherwise get Cygnus style configure.
27291 if test -f "$ac_srcdir/configure.gnu"; then
27292 ac_sub_configure=$ac_srcdir/configure.gnu
27293 elif test -f "$ac_srcdir/configure"; then
27294 ac_sub_configure=$ac_srcdir/configure
27295 elif test -f "$ac_srcdir/configure.in"; then
27296 # This should be Cygnus configure.
27297 ac_sub_configure=$ac_aux_dir/configure
27299 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27300 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27304 # The recursion is here.
27305 if test -n "$ac_sub_configure"; then
27306 # Make the cache file name correct relative to the subdirectory.
27307 case $cache_file in
27308 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27309 *) # Relative name.
27310 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27313 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27314 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27315 # The eval makes quoting arguments work.
27316 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27317 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27318 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27319 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27320 { (exit 1); exit 1; }; }