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-libtool try to use libtool installed in your system default=use our own
1480 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1481 --with-pic try to use only PIC/non-PIC objects [default=use
1483 --with-tags[=TAGS] include additional configurations [automatic]
1484 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1485 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1486 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1487 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1488 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1489 --with-threads Use threads, if available. (default=yes)
1490 --with-vmps Compile in VMPS support. (default=yes)
1491 --with-dhcp Compile in DHCP support. (default=no)
1492 --with-static-modules=QUOTED-MODULE-LIST
1493 --with-modules=QUOTED-MODULE-LIST
1494 --with-experimental-modules Use experimental and unstable modules. (default=no)
1495 --with-openssl Use OpenSSL. (default=yes)
1496 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1497 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1498 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1499 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1500 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1502 Some influential environment variables:
1503 CC C compiler command
1504 CFLAGS C compiler flags
1505 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1506 nonstandard directory <lib dir>
1507 LIBS libraries to pass to the linker, e.g. -l<library>
1508 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1509 you have headers in a nonstandard directory <include dir>
1510 CXX C++ compiler command
1511 CXXFLAGS C++ compiler flags
1513 CXXCPP C++ preprocessor
1514 F77 Fortran 77 compiler command
1515 FFLAGS Fortran 77 compiler flags
1517 Use these variables to override the choices made by `configure' or to help
1518 it to find libraries and programs with nonstandard names/locations.
1524 if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527 test -d "$ac_dir" || continue
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1547 .) # We are building in place.
1549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
1552 ac_srcdir=$srcdir$ac_dir_suffix;
1553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1571 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1581 generated by GNU Autoconf 2.61
1583 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1584 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1590 cat >config.log <<_ACEOF
1591 This file contains any messages produced by compilers while
1592 running configure, to aid debugging if configure makes a mistake.
1594 It was created by $as_me, which was
1595 generated by GNU Autoconf 2.61. Invocation command line was
1607 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1608 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1609 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1610 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1611 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1613 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1614 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1616 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1617 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1618 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1619 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1620 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1621 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1622 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 test -z "$as_dir" && as_dir=.
1631 echo "PATH: $as_dir"
1647 # Keep a trace of the command line.
1648 # Strip out --no-create and --no-recursion so they do not pile up.
1649 # Strip out --silent because we don't want to record it for future runs.
1650 # Also quote any args containing shell meta-characters.
1651 # Make two passes to allow for proper duplicate-argument suppression.
1655 ac_must_keep_next=false
1661 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1662 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1663 | -silent | --silent | --silen | --sile | --sil)
1666 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1669 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1671 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1672 if test $ac_must_keep_next = true; then
1673 ac_must_keep_next=false # Got value, back to normal.
1676 *=* | --config-cache | -C | -disable-* | --disable-* \
1677 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1678 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1679 | -with-* | --with-* | -without-* | --without-* | --x)
1680 case "$ac_configure_args0 " in
1681 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1684 -* ) ac_must_keep_next=true ;;
1687 ac_configure_args="$ac_configure_args '$ac_arg'"
1692 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1693 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1695 # When interrupted or exit'd, cleanup temporary files, and complete
1696 # config.log. We remove comments because anyway the quotes in there
1697 # would cause problems or look ugly.
1698 # WARNING: Use '\'' to represent an apostrophe within the trap.
1699 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1700 trap 'exit_status=$?
1701 # Save into config.log some information that might help in debugging.
1706 ## ---------------- ##
1707 ## Cache variables. ##
1708 ## ---------------- ##
1711 # The following way of writing the cache mishandles newlines in values,
1713 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1714 eval ac_val=\$$ac_var
1718 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1719 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1722 _ | IFS | as_nl) ;; #(
1723 *) $as_unset $ac_var ;;
1728 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1729 *${as_nl}ac_space=\ *)
1731 "s/'\''/'\''\\\\'\'''\''/g;
1732 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1735 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1743 ## ----------------- ##
1744 ## Output variables. ##
1745 ## ----------------- ##
1748 for ac_var in $ac_subst_vars
1750 eval ac_val=\$$ac_var
1752 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754 echo "$ac_var='\''$ac_val'\''"
1758 if test -n "$ac_subst_files"; then
1760 ## ------------------- ##
1761 ## File substitutions. ##
1762 ## ------------------- ##
1765 for ac_var in $ac_subst_files
1767 eval ac_val=\$$ac_var
1769 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771 echo "$ac_var='\''$ac_val'\''"
1776 if test -s confdefs.h; then
1786 test "$ac_signal" != 0 &&
1787 echo "$as_me: caught signal $ac_signal"
1788 echo "$as_me: exit $exit_status"
1790 rm -f core *.core core.conftest.* &&
1791 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1794 for ac_signal in 1 2 13 15; do
1795 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1799 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1800 rm -f -r conftest* confdefs.h
1802 # Predefined preprocessor variables.
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_NAME "$PACKAGE_NAME"
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_STRING "$PACKAGE_STRING"
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1829 # Let the site file select an alternate cache file if it wants to.
1830 # Prefer explicitly selected file to automatically selected ones.
1831 if test -n "$CONFIG_SITE"; then
1832 set x "$CONFIG_SITE"
1833 elif test "x$prefix" != xNONE; then
1834 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1836 set x "$ac_default_prefix/share/config.site" \
1837 "$ac_default_prefix/etc/config.site"
1842 if test -r "$ac_site_file"; then
1843 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1844 echo "$as_me: loading site script $ac_site_file" >&6;}
1845 sed 's/^/| /' "$ac_site_file" >&5
1850 if test -r "$cache_file"; then
1851 # Some versions of bash will fail to source /dev/null (special
1852 # files actually), so we avoid doing that.
1853 if test -f "$cache_file"; then
1854 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1855 echo "$as_me: loading cache $cache_file" >&6;}
1857 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1858 *) . "./$cache_file";;
1862 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1863 echo "$as_me: creating cache $cache_file" >&6;}
1867 # Check that the precious variables saved in the cache have kept the same
1869 ac_cache_corrupted=false
1870 for ac_var in $ac_precious_vars; do
1871 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1872 eval ac_new_set=\$ac_env_${ac_var}_set
1873 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1874 eval ac_new_val=\$ac_env_${ac_var}_value
1875 case $ac_old_set,$ac_new_set in
1877 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1878 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1879 ac_cache_corrupted=: ;;
1881 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1882 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1883 ac_cache_corrupted=: ;;
1886 if test "x$ac_old_val" != "x$ac_new_val"; then
1887 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1888 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1889 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1890 echo "$as_me: former value: $ac_old_val" >&2;}
1891 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1892 echo "$as_me: current value: $ac_new_val" >&2;}
1893 ac_cache_corrupted=:
1896 # Pass precious variables to config.status.
1897 if test "$ac_new_set" = set; then
1899 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1900 *) ac_arg=$ac_var=$ac_new_val ;;
1902 case " $ac_configure_args " in
1903 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1904 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1908 if $ac_cache_corrupted; then
1909 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1910 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1911 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1912 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1913 { (exit 1); exit 1; }; }
1933 ac_cpp='$CPP $CPPFLAGS'
1934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1939 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1942 RADIUSD_VERSION=`cat VERSION`
1943 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
1944 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^2\.//'`
1949 ac_cpp='$CPP $CPPFLAGS'
1950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1953 if test -n "$ac_tool_prefix"; then
1954 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1955 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1958 if test "${ac_cv_prog_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test -n "$CC"; then
1962 ac_cv_prog_CC="$CC" # Let the user override the test.
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1971 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982 if test -n "$CC"; then
1983 { echo "$as_me:$LINENO: result: $CC" >&5
1984 echo "${ECHO_T}$CC" >&6; }
1986 { echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6; }
1992 if test -z "$ac_cv_prog_CC"; then
1994 # Extract the first word of "gcc", so it can be a program name with args.
1995 set dummy gcc; ac_word=$2
1996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1998 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 if test -n "$ac_ct_CC"; then
2002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2011 ac_cv_prog_ac_ct_CC="gcc"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2022 if test -n "$ac_ct_CC"; then
2023 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2024 echo "${ECHO_T}$ac_ct_CC" >&6; }
2026 { echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6; }
2030 if test "x$ac_ct_CC" = x; then
2033 case $cross_compiling:$ac_tool_warned in
2035 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2036 whose name does not start with the host triplet. If you think this
2037 configuration is useful to you, please write to autoconf@gnu.org." >&5
2038 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2039 whose name does not start with the host triplet. If you think this
2040 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2041 ac_tool_warned=yes ;;
2049 if test -z "$CC"; then
2050 if test -n "$ac_tool_prefix"; then
2051 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2052 set dummy ${ac_tool_prefix}cc; ac_word=$2
2053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 if test -n "$CC"; then
2059 ac_cv_prog_CC="$CC" # Let the user override the test.
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2068 ac_cv_prog_CC="${ac_tool_prefix}cc"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079 if test -n "$CC"; then
2080 { echo "$as_me:$LINENO: result: $CC" >&5
2081 echo "${ECHO_T}$CC" >&6; }
2083 { echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6; }
2090 if test -z "$CC"; then
2091 # Extract the first word of "cc", so it can be a program name with args.
2092 set dummy cc; ac_word=$2
2093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2095 if test "${ac_cv_prog_CC+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 if test -n "$CC"; then
2099 ac_cv_prog_CC="$CC" # Let the user override the test.
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 test -z "$as_dir" && as_dir=.
2107 for ac_exec_ext in '' $ac_executable_extensions; do
2108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2109 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2110 ac_prog_rejected=yes
2114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121 if test $ac_prog_rejected = yes; then
2122 # We found a bogon in the path, so make sure we never use it.
2123 set dummy $ac_cv_prog_CC
2125 if test $# != 0; then
2126 # We chose a different compiler from the bogus one.
2127 # However, it has the same basename, so the bogon will be chosen
2128 # first if we set CC to just the basename; use the full file name.
2130 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2136 if test -n "$CC"; then
2137 { echo "$as_me:$LINENO: result: $CC" >&5
2138 echo "${ECHO_T}$CC" >&6; }
2140 { echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6; }
2146 if test -z "$CC"; then
2147 if test -n "$ac_tool_prefix"; then
2148 for ac_prog in cl.exe
2150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2154 if test "${ac_cv_prog_CC+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 if test -n "$CC"; then
2158 ac_cv_prog_CC="$CC" # Let the user override the test.
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 test -z "$as_dir" && as_dir=.
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2167 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178 if test -n "$CC"; then
2179 { echo "$as_me:$LINENO: result: $CC" >&5
2180 echo "${ECHO_T}$CC" >&6; }
2182 { echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6; }
2187 test -n "$CC" && break
2190 if test -z "$CC"; then
2192 for ac_prog in cl.exe
2194 # Extract the first word of "$ac_prog", so it can be a program name with args.
2195 set dummy $ac_prog; ac_word=$2
2196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2198 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 if test -n "$ac_ct_CC"; then
2202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 test -z "$as_dir" && as_dir=.
2209 for ac_exec_ext in '' $ac_executable_extensions; do
2210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2211 ac_cv_prog_ac_ct_CC="$ac_prog"
2212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2222 if test -n "$ac_ct_CC"; then
2223 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2224 echo "${ECHO_T}$ac_ct_CC" >&6; }
2226 { echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6; }
2231 test -n "$ac_ct_CC" && break
2234 if test "x$ac_ct_CC" = x; then
2237 case $cross_compiling:$ac_tool_warned in
2239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2240 whose name does not start with the host triplet. If you think this
2241 configuration is useful to you, please write to autoconf@gnu.org." >&5
2242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2243 whose name does not start with the host triplet. If you think this
2244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2245 ac_tool_warned=yes ;;
2254 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2255 See \`config.log' for more details." >&5
2256 echo "$as_me: error: no acceptable C compiler found in \$PATH
2257 See \`config.log' for more details." >&2;}
2258 { (exit 1); exit 1; }; }
2260 # Provide some information about the compiler.
2261 echo "$as_me:$LINENO: checking for C compiler version" >&5
2262 ac_compiler=`set X $ac_compile; echo $2`
2263 { (ac_try="$ac_compiler --version >&5"
2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266 *) ac_try_echo=$ac_try;;
2268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2269 (eval "$ac_compiler --version >&5") 2>&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }
2273 { (ac_try="$ac_compiler -v >&5"
2275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2276 *) ac_try_echo=$ac_try;;
2278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2279 (eval "$ac_compiler -v >&5") 2>&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }
2283 { (ac_try="$ac_compiler -V >&5"
2285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2286 *) ac_try_echo=$ac_try;;
2288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2289 (eval "$ac_compiler -V >&5") 2>&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }
2294 cat >conftest.$ac_ext <<_ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h. */
2309 ac_clean_files_save=$ac_clean_files
2310 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2311 # Try to create an executable without -o first, disregard a.out.
2312 # It will help us diagnose broken compilers, and finding out an intuition
2314 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2315 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2316 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2318 # List of possible output files, starting from the most likely.
2319 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2320 # only as a last resort. b.out is created by i960 compilers.
2321 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2323 # The IRIX 6 linker writes into existing files which may not be
2324 # executable, retaining their permissions. Remove them first so a
2325 # subsequent execution test works.
2327 for ac_file in $ac_files
2330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2331 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2336 if { (ac_try="$ac_link_default"
2338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2339 *) ac_try_echo=$ac_try;;
2341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2342 (eval "$ac_link_default") 2>&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; then
2346 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2347 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2348 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2349 # so that the user can short-circuit this test for compilers unknown to
2351 for ac_file in $ac_files ''
2353 test -f "$ac_file" || continue
2355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2358 # We found the default executable, but exeext='' is most
2362 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2364 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2366 # We set ac_cv_exeext here because the later test for it is not
2367 # safe: cross compilers may not add the suffix if given an `-o'
2368 # argument, so we may need to know it at that point already.
2369 # Even if this section looks crufty: it has the advantage of
2376 test "$ac_cv_exeext" = no && ac_cv_exeext=
2382 { echo "$as_me:$LINENO: result: $ac_file" >&5
2383 echo "${ECHO_T}$ac_file" >&6; }
2384 if test -z "$ac_file"; then
2385 echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2388 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2389 See \`config.log' for more details." >&5
2390 echo "$as_me: error: C compiler cannot create executables
2391 See \`config.log' for more details." >&2;}
2392 { (exit 77); exit 77; }; }
2395 ac_exeext=$ac_cv_exeext
2397 # Check that the compiler produces executables we can run. If not, either
2398 # the compiler is broken, or we cross compile.
2399 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2400 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2401 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2402 # If not cross compiling, check that we can run a simple program.
2403 if test "$cross_compiling" != yes; then
2404 if { ac_try='./$ac_file'
2405 { (case "(($ac_try" in
2406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407 *) ac_try_echo=$ac_try;;
2409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2410 (eval "$ac_try") 2>&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; }; then
2416 if test "$cross_compiling" = maybe; then
2419 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2420 If you meant to cross compile, use \`--host'.
2421 See \`config.log' for more details." >&5
2422 echo "$as_me: error: cannot run C compiled programs.
2423 If you meant to cross compile, use \`--host'.
2424 See \`config.log' for more details." >&2;}
2425 { (exit 1); exit 1; }; }
2429 { echo "$as_me:$LINENO: result: yes" >&5
2430 echo "${ECHO_T}yes" >&6; }
2432 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2433 ac_clean_files=$ac_clean_files_save
2434 # Check that the compiler produces executables we can run. If not, either
2435 # the compiler is broken, or we cross compile.
2436 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2437 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2438 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2439 echo "${ECHO_T}$cross_compiling" >&6; }
2441 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2442 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2443 if { (ac_try="$ac_link"
2445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446 *) ac_try_echo=$ac_try;;
2448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2449 (eval "$ac_link") 2>&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; then
2453 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2454 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2455 # work properly (i.e., refer to `conftest.exe'), while it won't with
2457 for ac_file in conftest.exe conftest conftest.*; do
2458 test -f "$ac_file" || continue
2460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2461 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2467 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2468 See \`config.log' for more details." >&5
2469 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2470 See \`config.log' for more details." >&2;}
2471 { (exit 1); exit 1; }; }
2474 rm -f conftest$ac_cv_exeext
2475 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2476 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2478 rm -f conftest.$ac_ext
2479 EXEEXT=$ac_cv_exeext
2481 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2482 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2483 if test "${ac_cv_objext+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 cat >conftest.$ac_ext <<_ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h. */
2501 rm -f conftest.o conftest.obj
2502 if { (ac_try="$ac_compile"
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508 (eval "$ac_compile") 2>&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; then
2512 for ac_file in conftest.o conftest.obj conftest.*; do
2513 test -f "$ac_file" || continue;
2515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2516 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2524 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2525 See \`config.log' for more details." >&5
2526 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2527 See \`config.log' for more details." >&2;}
2528 { (exit 1); exit 1; }; }
2531 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2533 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2534 echo "${ECHO_T}$ac_cv_objext" >&6; }
2535 OBJEXT=$ac_cv_objext
2537 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2538 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2539 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 cat >conftest.$ac_ext <<_ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2560 rm -f conftest.$ac_objext
2561 if { (ac_try="$ac_compile"
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567 (eval "$ac_compile") 2>conftest.er1
2569 grep -v '^ *+' conftest.er1 >conftest.err
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } && {
2574 test -z "$ac_c_werror_flag" ||
2575 test ! -s conftest.err
2576 } && test -s conftest.$ac_objext; then
2579 echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2589 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2590 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2591 GCC=`test $ac_compiler_gnu = yes && echo yes`
2592 ac_test_CFLAGS=${CFLAGS+set}
2593 ac_save_CFLAGS=$CFLAGS
2594 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2595 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2596 if test "${ac_cv_prog_cc_g+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 ac_save_c_werror_flag=$ac_c_werror_flag
2600 ac_c_werror_flag=yes
2603 cat >conftest.$ac_ext <<_ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2618 rm -f conftest.$ac_objext
2619 if { (ac_try="$ac_compile"
2621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622 *) ac_try_echo=$ac_try;;
2624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2625 (eval "$ac_compile") 2>conftest.er1
2627 grep -v '^ *+' conftest.er1 >conftest.err
2629 cat conftest.err >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } && {
2632 test -z "$ac_c_werror_flag" ||
2633 test ! -s conftest.err
2634 } && test -s conftest.$ac_objext; then
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2641 cat >conftest.$ac_ext <<_ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h. */
2656 rm -f conftest.$ac_objext
2657 if { (ac_try="$ac_compile"
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663 (eval "$ac_compile") 2>conftest.er1
2665 grep -v '^ *+' conftest.er1 >conftest.err
2667 cat conftest.err >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } && {
2670 test -z "$ac_c_werror_flag" ||
2671 test ! -s conftest.err
2672 } && test -s conftest.$ac_objext; then
2675 echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2678 ac_c_werror_flag=$ac_save_c_werror_flag
2680 cat >conftest.$ac_ext <<_ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2695 rm -f conftest.$ac_objext
2696 if { (ac_try="$ac_compile"
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702 (eval "$ac_compile") 2>conftest.er1
2704 grep -v '^ *+' conftest.er1 >conftest.err
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } && {
2709 test -z "$ac_c_werror_flag" ||
2710 test ! -s conftest.err
2711 } && test -s conftest.$ac_objext; then
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727 ac_c_werror_flag=$ac_save_c_werror_flag
2729 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2730 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2731 if test "$ac_test_CFLAGS" = set; then
2732 CFLAGS=$ac_save_CFLAGS
2733 elif test $ac_cv_prog_cc_g = yes; then
2734 if test "$GCC" = yes; then
2740 if test "$GCC" = yes; then
2746 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2747 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2748 if test "${ac_cv_prog_cc_c89+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 ac_cv_prog_cc_c89=no
2753 cat >conftest.$ac_ext <<_ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2761 #include <sys/types.h>
2762 #include <sys/stat.h>
2763 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2764 struct buf { int x; };
2765 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2766 static char *e (p, i)
2772 static char *f (char * (*g) (char **, int), char **p, ...)
2777 s = g (p, va_arg (v,int));
2782 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2783 function prototypes and stuff, but not '\xHH' hex character constants.
2784 These don't provoke an error unfortunately, instead are silently treated
2785 as 'x'. The following induces an error, until -std is added to get
2786 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2787 array size at least. It's necessary to write '\x00'==0 to get something
2788 that's true only with -std. */
2789 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2791 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2792 inside strings and character constants. */
2794 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2796 int test (int i, double x);
2797 struct s1 {int (*f) (int a);};
2798 struct s2 {int (*f) (double a);};
2799 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2805 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2810 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2811 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2813 CC="$ac_save_CC $ac_arg"
2814 rm -f conftest.$ac_objext
2815 if { (ac_try="$ac_compile"
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821 (eval "$ac_compile") 2>conftest.er1
2823 grep -v '^ *+' conftest.er1 >conftest.err
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } && {
2828 test -z "$ac_c_werror_flag" ||
2829 test ! -s conftest.err
2830 } && test -s conftest.$ac_objext; then
2831 ac_cv_prog_cc_c89=$ac_arg
2833 echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2839 rm -f core conftest.err conftest.$ac_objext
2840 test "x$ac_cv_prog_cc_c89" != "xno" && break
2842 rm -f conftest.$ac_ext
2847 case "x$ac_cv_prog_cc_c89" in
2849 { echo "$as_me:$LINENO: result: none needed" >&5
2850 echo "${ECHO_T}none needed" >&6; } ;;
2852 { echo "$as_me:$LINENO: result: unsupported" >&5
2853 echo "${ECHO_T}unsupported" >&6; } ;;
2855 CC="$CC $ac_cv_prog_cc_c89"
2856 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2857 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868 ac_cpp='$CXXCPP $CPPFLAGS'
2869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2872 if test -z "$CXX"; then
2873 if test -n "$CCC"; then
2876 if test -n "$ac_tool_prefix"; then
2877 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2883 if test "${ac_cv_prog_CXX+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 if test -n "$CXX"; then
2887 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 if test -n "$CXX"; then
2908 { echo "$as_me:$LINENO: result: $CXX" >&5
2909 echo "${ECHO_T}$CXX" >&6; }
2911 { echo "$as_me:$LINENO: result: no" >&5
2912 echo "${ECHO_T}no" >&6; }
2916 test -n "$CXX" && break
2919 if test -z "$CXX"; then
2921 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2923 # Extract the first word of "$ac_prog", so it can be a program name with args.
2924 set dummy $ac_prog; ac_word=$2
2925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2927 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 if test -n "$ac_ct_CXX"; then
2931 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940 ac_cv_prog_ac_ct_CXX="$ac_prog"
2941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2951 if test -n "$ac_ct_CXX"; then
2952 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2953 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2955 { echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6; }
2960 test -n "$ac_ct_CXX" && break
2963 if test "x$ac_ct_CXX" = x; then
2966 case $cross_compiling:$ac_tool_warned in
2968 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2969 whose name does not start with the host triplet. If you think this
2970 configuration is useful to you, please write to autoconf@gnu.org." >&5
2971 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2972 whose name does not start with the host triplet. If you think this
2973 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2974 ac_tool_warned=yes ;;
2982 # Provide some information about the compiler.
2983 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2984 ac_compiler=`set X $ac_compile; echo $2`
2985 { (ac_try="$ac_compiler --version >&5"
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_compiler --version >&5") 2>&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }
2995 { (ac_try="$ac_compiler -v >&5"
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_compiler -v >&5") 2>&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }
3005 { (ac_try="$ac_compiler -V >&5"
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011 (eval "$ac_compiler -V >&5") 2>&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }
3016 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3017 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3018 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 cat >conftest.$ac_ext <<_ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h. */
3039 rm -f conftest.$ac_objext
3040 if { (ac_try="$ac_compile"
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compile") 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } && {
3053 test -z "$ac_cxx_werror_flag" ||
3054 test ! -s conftest.err
3055 } && test -s conftest.$ac_objext; then
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3065 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3068 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3069 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3070 GXX=`test $ac_compiler_gnu = yes && echo yes`
3071 ac_test_CXXFLAGS=${CXXFLAGS+set}
3072 ac_save_CXXFLAGS=$CXXFLAGS
3073 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3074 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3075 if test "${ac_cv_prog_cxx_g+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3079 ac_cxx_werror_flag=yes
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_compile") 2>conftest.er1
3106 grep -v '^ *+' conftest.er1 >conftest.err
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } && {
3111 test -z "$ac_cxx_werror_flag" ||
3112 test ! -s conftest.err
3113 } && test -s conftest.$ac_objext; then
3114 ac_cv_prog_cxx_g=yes
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3120 cat >conftest.$ac_ext <<_ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3144 grep -v '^ *+' conftest.er1 >conftest.err
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } && {
3149 test -z "$ac_cxx_werror_flag" ||
3150 test ! -s conftest.err
3151 } && test -s conftest.$ac_objext; then
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3157 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3159 cat >conftest.$ac_ext <<_ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3183 grep -v '^ *+' conftest.er1 >conftest.err
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } && {
3188 test -z "$ac_cxx_werror_flag" ||
3189 test ! -s conftest.err
3190 } && test -s conftest.$ac_objext; then
3191 ac_cv_prog_cxx_g=yes
3193 echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3208 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3209 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3210 if test "$ac_test_CXXFLAGS" = set; then
3211 CXXFLAGS=$ac_save_CXXFLAGS
3212 elif test $ac_cv_prog_cxx_g = yes; then
3213 if test "$GXX" = yes; then
3219 if test "$GXX" = yes; then
3226 ac_cpp='$CPP $CPPFLAGS'
3227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3239 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3240 # On Suns, sometimes $CPP names a directory.
3241 if test -n "$CPP" && test -d "$CPP"; then
3244 if test -z "$CPP"; then
3245 if test "${ac_cv_prog_CPP+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 # Double quotes because CPP needs to be expanded
3249 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3252 for ac_c_preproc_warn_flag in '' yes
3254 # Use a header file that comes with gcc, so configuring glibc
3255 # with a fresh cross-compiler works.
3256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3257 # <limits.h> exists even on freestanding compilers.
3258 # On the NeXT, cc -E runs the code through the compiler's parser,
3259 # not just through cpp. "Syntax error" is here to catch this case.
3260 cat >conftest.$ac_ext <<_ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3267 # include <limits.h>
3269 # include <assert.h>
3273 if { (ac_try="$ac_cpp conftest.$ac_ext"
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281 grep -v '^ *+' conftest.er1 >conftest.err
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } >/dev/null && {
3286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3287 test ! -s conftest.err
3291 echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3294 # Broken: fails on valid input.
3298 rm -f conftest.err conftest.$ac_ext
3300 # OK, works on sane cases. Now check whether nonexistent headers
3301 # can be detected and how.
3302 cat >conftest.$ac_ext <<_ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h. */
3308 #include <ac_nonexistent.h>
3310 if { (ac_try="$ac_cpp conftest.$ac_ext"
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3318 grep -v '^ *+' conftest.er1 >conftest.err
3320 cat conftest.err >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } >/dev/null && {
3323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3324 test ! -s conftest.err
3326 # Broken: success on invalid input.
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3332 # Passes both tests.
3337 rm -f conftest.err conftest.$ac_ext
3340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3341 rm -f conftest.err conftest.$ac_ext
3342 if $ac_preproc_ok; then
3354 { echo "$as_me:$LINENO: result: $CPP" >&5
3355 echo "${ECHO_T}$CPP" >&6; }
3357 for ac_c_preproc_warn_flag in '' yes
3359 # Use a header file that comes with gcc, so configuring glibc
3360 # with a fresh cross-compiler works.
3361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3362 # <limits.h> exists even on freestanding compilers.
3363 # On the NeXT, cc -E runs the code through the compiler's parser,
3364 # not just through cpp. "Syntax error" is here to catch this case.
3365 cat >conftest.$ac_ext <<_ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3372 # include <limits.h>
3374 # include <assert.h>
3378 if { (ac_try="$ac_cpp conftest.$ac_ext"
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3386 grep -v '^ *+' conftest.er1 >conftest.err
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } >/dev/null && {
3391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3392 test ! -s conftest.err
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3399 # Broken: fails on valid input.
3403 rm -f conftest.err conftest.$ac_ext
3405 # OK, works on sane cases. Now check whether nonexistent headers
3406 # can be detected and how.
3407 cat >conftest.$ac_ext <<_ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3413 #include <ac_nonexistent.h>
3415 if { (ac_try="$ac_cpp conftest.$ac_ext"
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3423 grep -v '^ *+' conftest.er1 >conftest.err
3425 cat conftest.err >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } >/dev/null && {
3428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3429 test ! -s conftest.err
3431 # Broken: success on invalid input.
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3437 # Passes both tests.
3442 rm -f conftest.err conftest.$ac_ext
3445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446 rm -f conftest.err conftest.$ac_ext
3447 if $ac_preproc_ok; then
3450 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3451 See \`config.log' for more details." >&5
3452 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3453 See \`config.log' for more details." >&2;}
3454 { (exit 1); exit 1; }; }
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3465 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3466 if test "${ac_cv_path_GREP+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 # Extract the first word of "grep ggrep" to use in msg output
3470 if test -z "$GREP"; then
3471 set dummy grep ggrep; ac_prog_name=$2
3472 if test "${ac_cv_path_GREP+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 ac_path_GREP_found=false
3476 # Loop through the user's path and test for each of PROGNAME-LIST
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3481 test -z "$as_dir" && as_dir=.
3482 for ac_prog in grep ggrep; do
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3485 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3486 # Check for GNU ac_path_GREP and select it if it is found.
3487 # Check for GNU $ac_path_GREP
3488 case `"$ac_path_GREP" --version 2>&1` in
3490 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3493 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3496 cat "conftest.in" "conftest.in" >"conftest.tmp"
3497 mv "conftest.tmp" "conftest.in"
3498 cp "conftest.in" "conftest.nl"
3499 echo 'GREP' >> "conftest.nl"
3500 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3502 ac_count=`expr $ac_count + 1`
3503 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3504 # Best one so far, save it but keep looking for a better one
3505 ac_cv_path_GREP="$ac_path_GREP"
3506 ac_path_GREP_max=$ac_count
3508 # 10*(2^10) chars as input seems more than enough
3509 test $ac_count -gt 10 && break
3511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3515 $ac_path_GREP_found && break 3
3525 GREP="$ac_cv_path_GREP"
3526 if test -z "$GREP"; then
3527 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3528 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3529 { (exit 1); exit 1; }; }
3533 ac_cv_path_GREP=$GREP
3538 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3539 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3540 GREP="$ac_cv_path_GREP"
3543 { echo "$as_me:$LINENO: checking for egrep" >&5
3544 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3545 if test "${ac_cv_path_EGREP+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3549 then ac_cv_path_EGREP="$GREP -E"
3551 # Extract the first word of "egrep" to use in msg output
3552 if test -z "$EGREP"; then
3553 set dummy egrep; ac_prog_name=$2
3554 if test "${ac_cv_path_EGREP+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 ac_path_EGREP_found=false
3558 # Loop through the user's path and test for each of PROGNAME-LIST
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3563 test -z "$as_dir" && as_dir=.
3564 for ac_prog in egrep; do
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3567 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3568 # Check for GNU ac_path_EGREP and select it if it is found.
3569 # Check for GNU $ac_path_EGREP
3570 case `"$ac_path_EGREP" --version 2>&1` in
3572 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3575 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3578 cat "conftest.in" "conftest.in" >"conftest.tmp"
3579 mv "conftest.tmp" "conftest.in"
3580 cp "conftest.in" "conftest.nl"
3581 echo 'EGREP' >> "conftest.nl"
3582 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3584 ac_count=`expr $ac_count + 1`
3585 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3586 # Best one so far, save it but keep looking for a better one
3587 ac_cv_path_EGREP="$ac_path_EGREP"
3588 ac_path_EGREP_max=$ac_count
3590 # 10*(2^10) chars as input seems more than enough
3591 test $ac_count -gt 10 && break
3593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3597 $ac_path_EGREP_found && break 3
3607 EGREP="$ac_cv_path_EGREP"
3608 if test -z "$EGREP"; then
3609 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3610 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3611 { (exit 1); exit 1; }; }
3615 ac_cv_path_EGREP=$EGREP
3621 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3622 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3623 EGREP="$ac_cv_path_EGREP"
3627 { echo "$as_me:$LINENO: checking for AIX" >&5
3628 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3629 cat >conftest.$ac_ext <<_ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h. */
3640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3641 $EGREP "yes" >/dev/null 2>&1; then
3642 { echo "$as_me:$LINENO: result: yes" >&5
3643 echo "${ECHO_T}yes" >&6; }
3644 cat >>confdefs.h <<\_ACEOF
3645 #define _ALL_SOURCE 1
3649 { echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6; }
3656 if test $ac_cv_c_compiler_gnu = yes; then
3657 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3658 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3659 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 ac_pattern="Autoconf.*'x'"
3663 cat >conftest.$ac_ext <<_ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3673 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3674 ac_cv_prog_gcc_traditional=yes
3676 ac_cv_prog_gcc_traditional=no
3681 if test $ac_cv_prog_gcc_traditional = no; then
3682 cat >conftest.$ac_ext <<_ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3692 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3693 ac_cv_prog_gcc_traditional=yes
3699 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3700 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3701 if test $ac_cv_prog_gcc_traditional = yes; then
3702 CC="$CC -traditional"
3706 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3707 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3708 if test "${ac_cv_prog_suncc+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 cat > conftest.c <<EOF
3716 if { ac_try='${CC-cc} -E conftest.c'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3722 ac_cv_prog_suncc=yes
3727 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3728 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3729 if test -n "$ac_tool_prefix"; then
3730 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3731 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3734 if test "${ac_cv_prog_RANLIB+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 if test -n "$RANLIB"; then
3738 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 RANLIB=$ac_cv_prog_RANLIB
3758 if test -n "$RANLIB"; then
3759 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3760 echo "${ECHO_T}$RANLIB" >&6; }
3762 { echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6; }
3768 if test -z "$ac_cv_prog_RANLIB"; then
3769 ac_ct_RANLIB=$RANLIB
3770 # Extract the first word of "ranlib", so it can be a program name with args.
3771 set dummy ranlib; ac_word=$2
3772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3774 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 if test -n "$ac_ct_RANLIB"; then
3778 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 test -z "$as_dir" && as_dir=.
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3787 ac_cv_prog_ac_ct_RANLIB="ranlib"
3788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3798 if test -n "$ac_ct_RANLIB"; then
3799 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3800 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3802 { echo "$as_me:$LINENO: result: no" >&5
3803 echo "${ECHO_T}no" >&6; }
3806 if test "x$ac_ct_RANLIB" = x; then
3809 case $cross_compiling:$ac_tool_warned in
3811 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3812 whose name does not start with the host triplet. If you think this
3813 configuration is useful to you, please write to autoconf@gnu.org." >&5
3814 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3815 whose name does not start with the host triplet. If you think this
3816 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3817 ac_tool_warned=yes ;;
3819 RANLIB=$ac_ct_RANLIB
3822 RANLIB="$ac_cv_prog_RANLIB"
3826 # Check whether --enable-largefile was given.
3827 if test "${enable_largefile+set}" = set; then
3828 enableval=$enable_largefile;
3831 if test "$enable_largefile" != no; then
3833 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3834 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3835 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 ac_cv_sys_largefile_CC=no
3839 if test "$GCC" != yes; then
3842 # IRIX 6.2 and later do not support large files by default,
3843 # so use the C compiler's -n32 option if that helps.
3844 cat >conftest.$ac_ext <<_ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3850 #include <sys/types.h>
3851 /* Check that off_t can represent 2**63 - 1 correctly.
3852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3853 since some C++ compilers masquerading as C compilers
3854 incorrectly reject 9223372036854775807. */
3855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3857 && LARGE_OFF_T % 2147483647 == 1)
3867 rm -f conftest.$ac_objext
3868 if { (ac_try="$ac_compile"
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874 (eval "$ac_compile") 2>conftest.er1
3876 grep -v '^ *+' conftest.er1 >conftest.err
3878 cat conftest.err >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); } && {
3881 test -z "$ac_c_werror_flag" ||
3882 test ! -s conftest.err
3883 } && test -s conftest.$ac_objext; then
3886 echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3892 rm -f core conftest.err conftest.$ac_objext
3894 rm -f conftest.$ac_objext
3895 if { (ac_try="$ac_compile"
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901 (eval "$ac_compile") 2>conftest.er1
3903 grep -v '^ *+' conftest.er1 >conftest.err
3905 cat conftest.err >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } && {
3908 test -z "$ac_c_werror_flag" ||
3909 test ! -s conftest.err
3910 } && test -s conftest.$ac_objext; then
3911 ac_cv_sys_largefile_CC=' -n32'; break
3913 echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3919 rm -f core conftest.err conftest.$ac_objext
3923 rm -f conftest.$ac_ext
3926 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3927 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3928 if test "$ac_cv_sys_largefile_CC" != no; then
3929 CC=$CC$ac_cv_sys_largefile_CC
3932 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3933 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3934 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 cat >conftest.$ac_ext <<_ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3944 #include <sys/types.h>
3945 /* Check that off_t can represent 2**63 - 1 correctly.
3946 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3947 since some C++ compilers masquerading as C compilers
3948 incorrectly reject 9223372036854775807. */
3949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3950 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3951 && LARGE_OFF_T % 2147483647 == 1)
3961 rm -f conftest.$ac_objext
3962 if { (ac_try="$ac_compile"
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968 (eval "$ac_compile") 2>conftest.er1
3970 grep -v '^ *+' conftest.er1 >conftest.err
3972 cat conftest.err >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } && {
3975 test -z "$ac_c_werror_flag" ||
3976 test ! -s conftest.err
3977 } && test -s conftest.$ac_objext; then
3978 ac_cv_sys_file_offset_bits=no; break
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987 cat >conftest.$ac_ext <<_ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993 #define _FILE_OFFSET_BITS 64
3994 #include <sys/types.h>
3995 /* Check that off_t can represent 2**63 - 1 correctly.
3996 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3997 since some C++ compilers masquerading as C compilers
3998 incorrectly reject 9223372036854775807. */
3999 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4001 && LARGE_OFF_T % 2147483647 == 1)
4011 rm -f conftest.$ac_objext
4012 if { (ac_try="$ac_compile"
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_compile") 2>conftest.er1
4020 grep -v '^ *+' conftest.er1 >conftest.err
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } && {
4025 test -z "$ac_c_werror_flag" ||
4026 test ! -s conftest.err
4027 } && test -s conftest.$ac_objext; then
4028 ac_cv_sys_file_offset_bits=64; break
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037 ac_cv_sys_file_offset_bits=unknown
4041 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4042 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4043 case $ac_cv_sys_file_offset_bits in #(
4046 cat >>confdefs.h <<_ACEOF
4047 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4052 if test $ac_cv_sys_file_offset_bits = unknown; then
4053 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4054 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4055 if test "${ac_cv_sys_large_files+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 cat >conftest.$ac_ext <<_ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4065 #include <sys/types.h>
4066 /* Check that off_t can represent 2**63 - 1 correctly.
4067 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4068 since some C++ compilers masquerading as C compilers
4069 incorrectly reject 9223372036854775807. */
4070 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4071 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4072 && LARGE_OFF_T % 2147483647 == 1)
4082 rm -f conftest.$ac_objext
4083 if { (ac_try="$ac_compile"
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_compile") 2>conftest.er1
4091 grep -v '^ *+' conftest.er1 >conftest.err
4093 cat conftest.err >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } && {
4096 test -z "$ac_c_werror_flag" ||
4097 test ! -s conftest.err
4098 } && test -s conftest.$ac_objext; then
4099 ac_cv_sys_large_files=no; break
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 cat >conftest.$ac_ext <<_ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4114 #define _LARGE_FILES 1
4115 #include <sys/types.h>
4116 /* Check that off_t can represent 2**63 - 1 correctly.
4117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4118 since some C++ compilers masquerading as C compilers
4119 incorrectly reject 9223372036854775807. */
4120 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4122 && LARGE_OFF_T % 2147483647 == 1)
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_compile") 2>conftest.er1
4141 grep -v '^ *+' conftest.er1 >conftest.err
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } && {
4146 test -z "$ac_c_werror_flag" ||
4147 test ! -s conftest.err
4148 } && test -s conftest.$ac_objext; then
4149 ac_cv_sys_large_files=1; break
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 ac_cv_sys_large_files=unknown
4162 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4163 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4164 case $ac_cv_sys_large_files in #(
4167 cat >>confdefs.h <<_ACEOF
4168 #define _LARGE_FILES $ac_cv_sys_large_files
4177 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4178 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4179 if test "${ac_cv_header_stdc+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 cat >conftest.$ac_ext <<_ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4201 rm -f conftest.$ac_objext
4202 if { (ac_try="$ac_compile"
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208 (eval "$ac_compile") 2>conftest.er1
4210 grep -v '^ *+' conftest.er1 >conftest.err
4212 cat conftest.err >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); } && {
4215 test -z "$ac_c_werror_flag" ||
4216 test ! -s conftest.err
4217 } && test -s conftest.$ac_objext; then
4218 ac_cv_header_stdc=yes
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4223 ac_cv_header_stdc=no
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 if test $ac_cv_header_stdc = yes; then
4229 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4230 cat >conftest.$ac_ext <<_ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4240 $EGREP "memchr" >/dev/null 2>&1; then
4243 ac_cv_header_stdc=no
4249 if test $ac_cv_header_stdc = yes; then
4250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4251 cat >conftest.$ac_ext <<_ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4261 $EGREP "free" >/dev/null 2>&1; then
4264 ac_cv_header_stdc=no
4270 if test $ac_cv_header_stdc = yes; then
4271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4272 if test "$cross_compiling" = yes; then
4275 cat >conftest.$ac_ext <<_ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4283 #if ((' ' & 0x0FF) == 0x020)
4284 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4285 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4287 # define ISLOWER(c) \
4288 (('a' <= (c) && (c) <= 'i') \
4289 || ('j' <= (c) && (c) <= 'r') \
4290 || ('s' <= (c) && (c) <= 'z'))
4291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4299 for (i = 0; i < 256; i++)
4300 if (XOR (islower (i), ISLOWER (i))
4301 || toupper (i) != TOUPPER (i))
4306 rm -f conftest$ac_exeext
4307 if { (ac_try="$ac_link"
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_link") 2>&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4317 { (case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_try") 2>&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4328 echo "$as_me: program exited with status $ac_status" >&5
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4333 ac_cv_header_stdc=no
4335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4341 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4342 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4343 if test $ac_cv_header_stdc = yes; then
4345 cat >>confdefs.h <<\_ACEOF
4346 #define STDC_HEADERS 1
4351 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4361 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4362 inttypes.h stdint.h unistd.h
4364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 cat >conftest.$ac_ext <<_ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h. */
4376 $ac_includes_default
4378 #include <$ac_header>
4380 rm -f conftest.$ac_objext
4381 if { (ac_try="$ac_compile"
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387 (eval "$ac_compile") 2>conftest.er1
4389 grep -v '^ *+' conftest.er1 >conftest.err
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } && {
4394 test -z "$ac_c_werror_flag" ||
4395 test ! -s conftest.err
4396 } && test -s conftest.$ac_objext; then
4397 eval "$as_ac_Header=yes"
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4402 eval "$as_ac_Header=no"
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407 ac_res=`eval echo '${'$as_ac_Header'}'`
4408 { echo "$as_me:$LINENO: result: $ac_res" >&5
4409 echo "${ECHO_T}$ac_res" >&6; }
4410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4411 cat >>confdefs.h <<_ACEOF
4412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4420 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4421 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4422 if test "${ac_cv_c_bigendian+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 # See if sys/param.h defines the BYTE_ORDER macro.
4426 cat >conftest.$ac_ext <<_ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #include <sys/types.h>
4433 #include <sys/param.h>
4438 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4439 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4447 rm -f conftest.$ac_objext
4448 if { (ac_try="$ac_compile"
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454 (eval "$ac_compile") 2>conftest.er1
4456 grep -v '^ *+' conftest.er1 >conftest.err
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } && {
4461 test -z "$ac_c_werror_flag" ||
4462 test ! -s conftest.err
4463 } && test -s conftest.$ac_objext; then
4464 # It does; now see whether it defined to BIG_ENDIAN or not.
4465 cat >conftest.$ac_ext <<_ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h. */
4471 #include <sys/types.h>
4472 #include <sys/param.h>
4477 #if BYTE_ORDER != BIG_ENDIAN
4485 rm -f conftest.$ac_objext
4486 if { (ac_try="$ac_compile"
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4492 (eval "$ac_compile") 2>conftest.er1
4494 grep -v '^ *+' conftest.er1 >conftest.err
4496 cat conftest.err >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } && {
4499 test -z "$ac_c_werror_flag" ||
4500 test ! -s conftest.err
4501 } && test -s conftest.$ac_objext; then
4502 ac_cv_c_bigendian=yes
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4507 ac_cv_c_bigendian=no
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4515 # It does not; compile a test program.
4516 if test "$cross_compiling" = yes; then
4517 # try to guess the endianness by grepping values into an object file
4518 ac_cv_c_bigendian=unknown
4519 cat >conftest.$ac_ext <<_ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h. */
4525 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4526 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4527 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4528 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4529 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4530 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4534 _ascii (); _ebcdic ();
4539 rm -f conftest.$ac_objext
4540 if { (ac_try="$ac_compile"
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546 (eval "$ac_compile") 2>conftest.er1
4548 grep -v '^ *+' conftest.er1 >conftest.err
4550 cat conftest.err >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } && {
4553 test -z "$ac_c_werror_flag" ||
4554 test ! -s conftest.err
4555 } && test -s conftest.$ac_objext; then
4556 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4557 ac_cv_c_bigendian=yes
4559 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4560 if test "$ac_cv_c_bigendian" = unknown; then
4561 ac_cv_c_bigendian=no
4563 # finding both strings is unlikely to happen, but who knows?
4564 ac_cv_c_bigendian=unknown
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 cat >conftest.$ac_ext <<_ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 $ac_includes_default
4587 /* Are we little or big endian? From Harbison&Steele. */
4591 char c[sizeof (long int)];
4594 return u.c[sizeof (long int) - 1] == 1;
4600 rm -f conftest$ac_exeext
4601 if { (ac_try="$ac_link"
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4607 (eval "$ac_link") 2>&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4611 { (case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616 (eval "$ac_try") 2>&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 ac_cv_c_bigendian=no
4622 echo "$as_me: program exited with status $ac_status" >&5
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4627 ac_cv_c_bigendian=yes
4629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4638 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4639 case $ac_cv_c_bigendian in
4642 cat >>confdefs.h <<\_ACEOF
4643 #define WORDS_BIGENDIAN 1
4649 { { echo "$as_me:$LINENO: error: unknown endianness
4650 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4651 echo "$as_me: error: unknown endianness
4652 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4653 { (exit 1); exit 1; }; } ;;
4657 # Extract the first word of "gmake", so it can be a program name with args.
4658 set dummy gmake; ac_word=$2
4659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4661 if test "${ac_cv_prog_GMAKE+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 if test -n "$GMAKE"; then
4665 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674 ac_cv_prog_GMAKE="yes"
4675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4685 GMAKE=$ac_cv_prog_GMAKE
4686 if test -n "$GMAKE"; then
4687 { echo "$as_me:$LINENO: result: $GMAKE" >&5
4688 echo "${ECHO_T}$GMAKE" >&6; }
4690 { echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6; }
4695 if test $GMAKE = no; then
4696 # Extract the first word of "make", so it can be a program name with args.
4697 set dummy make; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_path_MAKE+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4727 MAKE=$ac_cv_path_MAKE
4728 if test -n "$MAKE"; then
4729 { echo "$as_me:$LINENO: result: $MAKE" >&5
4730 echo "${ECHO_T}$MAKE" >&6; }
4732 { echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6; }
4738 # Extract the first word of "gmake", so it can be a program name with args.
4739 set dummy gmake; ac_word=$2
4740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4742 if test "${ac_cv_path_MAKE+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4769 MAKE=$ac_cv_path_MAKE
4770 if test -n "$MAKE"; then
4771 { echo "$as_me:$LINENO: result: $MAKE" >&5
4772 echo "${ECHO_T}$MAKE" >&6; }
4774 { echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6; }
4780 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4781 if test -z "$makever"; then
4782 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
4783 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4784 echo "$as_me: error: GNU Make is not installed. Please download and install it
4785 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4786 { (exit 1); exit 1; }; }
4789 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4790 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4791 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 ac_check_lib_save_LIBS=$LIBS
4796 cat >conftest.$ac_ext <<_ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4803 /* Override any GCC internal prototype to avoid an error.
4804 Use char because int might match the return type of a GCC
4805 builtin and then its argument prototype would still apply. */
4813 return lt_dlinit ();
4818 rm -f conftest.$ac_objext conftest$ac_exeext
4819 if { (ac_try="$ac_link"
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825 (eval "$ac_link") 2>conftest.er1
4827 grep -v '^ *+' conftest.er1 >conftest.err
4829 cat conftest.err >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } && {
4832 test -z "$ac_c_werror_flag" ||
4833 test ! -s conftest.err
4834 } && test -s conftest$ac_exeext &&
4835 $as_test_x conftest$ac_exeext; then
4836 ac_cv_lib_ltdl_lt_dlinit=yes
4838 echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4841 ac_cv_lib_ltdl_lt_dlinit=no
4844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4845 conftest$ac_exeext conftest.$ac_ext
4846 LIBS=$ac_check_lib_save_LIBS
4848 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4849 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4850 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4851 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4853 if test x"$enable_ltdl_install" = xno; then
4854 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4855 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4857 enable_ltdl_install=yes
4862 if test x"$enable_ltdl_install" = x"yes"; then
4863 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4864 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4865 LTDLINCL='-I${top_srcdir}/''libltdl'
4867 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4871 # For backwards non-gettext consistent compatibility...
4875 if test x"$enable_ltdl_install" = x"yes"; then
4876 LTDL_SUBDIRS=libltdl
4880 # Check whether --enable-shared was given.
4881 if test "${enable_shared+set}" = set; then
4882 enableval=$enable_shared; p=${PACKAGE-default}
4884 yes) enable_shared=yes ;;
4885 no) enable_shared=no ;;
4888 # Look at the argument we got. We use all the common list separators.
4889 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4890 for pkg in $enableval; do
4892 if test "X$pkg" = "X$p"; then
4904 # Check whether --enable-static was given.
4905 if test "${enable_static+set}" = set; then
4906 enableval=$enable_static; p=${PACKAGE-default}
4908 yes) enable_static=yes ;;
4909 no) enable_static=no ;;
4912 # Look at the argument we got. We use all the common list separators.
4913 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4914 for pkg in $enableval; do
4916 if test "X$pkg" = "X$p"; then
4928 # Check whether --enable-fast-install was given.
4929 if test "${enable_fast_install+set}" = set; then
4930 enableval=$enable_fast_install; p=${PACKAGE-default}
4932 yes) enable_fast_install=yes ;;
4933 no) enable_fast_install=no ;;
4935 enable_fast_install=no
4936 # Look at the argument we got. We use all the common list separators.
4937 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4938 for pkg in $enableval; do
4940 if test "X$pkg" = "X$p"; then
4941 enable_fast_install=yes
4948 enable_fast_install=yes
4953 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4954 if test -f "$ac_dir/install-sh"; then
4956 ac_install_sh="$ac_aux_dir/install-sh -c"
4958 elif test -f "$ac_dir/install.sh"; then
4960 ac_install_sh="$ac_aux_dir/install.sh -c"
4962 elif test -f "$ac_dir/shtool"; then
4964 ac_install_sh="$ac_aux_dir/shtool install -c"
4968 if test -z "$ac_aux_dir"; then
4969 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4970 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4971 { (exit 1); exit 1; }; }
4974 # These three variables are undocumented and unsupported,
4975 # and are intended to be withdrawn in a future Autoconf release.
4976 # They can cause serious problems if a builder's source tree is in a directory
4977 # whose full name contains unusual characters.
4978 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4979 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4980 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4983 # Make sure we can run config.sub.
4984 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4985 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4986 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4987 { (exit 1); exit 1; }; }
4989 { echo "$as_me:$LINENO: checking build system type" >&5
4990 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4991 if test "${ac_cv_build+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 ac_build_alias=$build_alias
4995 test "x$ac_build_alias" = x &&
4996 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4997 test "x$ac_build_alias" = x &&
4998 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4999 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5000 { (exit 1); exit 1; }; }
5001 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5002 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5003 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5004 { (exit 1); exit 1; }; }
5007 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5008 echo "${ECHO_T}$ac_cv_build" >&6; }
5009 case $ac_cv_build in
5011 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5012 echo "$as_me: error: invalid value of canonical build" >&2;}
5013 { (exit 1); exit 1; }; };;
5016 ac_save_IFS=$IFS; IFS='-'
5022 # Remember, the first character of IFS is used to create $*,
5023 # except with old shells:
5026 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5029 { echo "$as_me:$LINENO: checking host system type" >&5
5030 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5031 if test "${ac_cv_host+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 if test "x$host_alias" = x; then
5035 ac_cv_host=$ac_cv_build
5037 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5038 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5039 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5040 { (exit 1); exit 1; }; }
5044 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5045 echo "${ECHO_T}$ac_cv_host" >&6; }
5048 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5049 echo "$as_me: error: invalid value of canonical host" >&2;}
5050 { (exit 1); exit 1; }; };;
5053 ac_save_IFS=$IFS; IFS='-'
5059 # Remember, the first character of IFS is used to create $*,
5060 # except with old shells:
5063 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5066 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5067 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5068 if test "${lt_cv_path_SED+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 # Loop through the user's path and test for sed and gsed.
5072 # Then use that list of sed's as ones to test for truncation.
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 test -z "$as_dir" && as_dir=.
5078 for lt_ac_prog in sed gsed; do
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5081 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5089 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5090 # along with /bin/sed that truncates output.
5091 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5092 test ! -f $lt_ac_sed && continue
5093 cat /dev/null > conftest.in
5095 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5096 # Check for GNU sed and select it if it is found.
5097 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5098 lt_cv_path_SED=$lt_ac_sed
5102 cat conftest.in conftest.in >conftest.tmp
5103 mv conftest.tmp conftest.in
5104 cp conftest.in conftest.nl
5106 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5107 cmp -s conftest.out conftest.nl || break
5108 # 10000 chars as input seems more than enough
5109 test $lt_ac_count -gt 10 && break
5110 lt_ac_count=`expr $lt_ac_count + 1`
5111 if test $lt_ac_count -gt $lt_ac_max; then
5112 lt_ac_max=$lt_ac_count
5113 lt_cv_path_SED=$lt_ac_sed
5122 { echo "$as_me:$LINENO: result: $SED" >&5
5123 echo "${ECHO_T}$SED" >&6; }
5126 # Check whether --with-gnu-ld was given.
5127 if test "${with_gnu_ld+set}" = set; then
5128 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5134 if test "$GCC" = yes; then
5135 # Check if gcc -print-prog-name=ld gives a path.
5136 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5137 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5140 # gcc leaves a trailing carriage return which upsets mingw
5141 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5143 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5146 # Accept absolute paths.
5148 re_direlt='/[^/][^/]*/\.\./'
5149 # Canonicalize the pathname of ld
5150 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5151 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5152 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5154 test -z "$LD" && LD="$ac_prog"
5157 # If it fails, then pretend we aren't using GCC.
5161 # If it is relative, then search for the first ld in PATH.
5165 elif test "$with_gnu_ld" = yes; then
5166 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5167 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5169 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5170 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5172 if test "${lt_cv_path_LD+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 if test -z "$LD"; then
5176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5177 for ac_dir in $PATH; do
5179 test -z "$ac_dir" && ac_dir=.
5180 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5181 lt_cv_path_LD="$ac_dir/$ac_prog"
5182 # Check to see if the program is GNU ld. I'd rather use --version,
5183 # but apparently some variants of GNU ld only accept -v.
5184 # Break only if it was the GNU/non-GNU ld that we prefer.
5185 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5186 *GNU* | *'with BFD'*)
5187 test "$with_gnu_ld" != no && break
5190 test "$with_gnu_ld" != yes && break
5197 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5202 if test -n "$LD"; then
5203 { echo "$as_me:$LINENO: result: $LD" >&5
5204 echo "${ECHO_T}$LD" >&6; }
5206 { echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6; }
5209 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5210 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5211 { (exit 1); exit 1; }; }
5212 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5213 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5214 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5218 case `$LD -v 2>&1 </dev/null` in
5219 *GNU* | *'with BFD'*)
5220 lt_cv_prog_gnu_ld=yes
5223 lt_cv_prog_gnu_ld=no
5227 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5228 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5229 with_gnu_ld=$lt_cv_prog_gnu_ld
5232 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5233 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5234 if test "${lt_cv_ld_reload_flag+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 lt_cv_ld_reload_flag='-r'
5239 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5240 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5241 reload_flag=$lt_cv_ld_reload_flag
5242 case $reload_flag in
5244 *) reload_flag=" $reload_flag" ;;
5246 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5249 if test "$GCC" = yes; then
5250 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5252 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5257 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5258 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5259 if test "${lt_cv_path_NM+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 if test -n "$NM"; then
5263 # Let the user override the test.
5266 lt_nm_to_check="${ac_tool_prefix}nm"
5267 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5268 lt_nm_to_check="$lt_nm_to_check nm"
5270 for lt_tmp_nm in $lt_nm_to_check; do
5271 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5272 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5274 test -z "$ac_dir" && ac_dir=.
5275 tmp_nm="$ac_dir/$lt_tmp_nm"
5276 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5277 # Check to see if the nm accepts a BSD-compat flag.
5278 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5279 # nm: unknown option "B" ignored
5280 # Tru64's nm complains that /dev/null is an invalid object file
5281 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5282 */dev/null* | *'Invalid file or object type'*)
5283 lt_cv_path_NM="$tmp_nm -B"
5287 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5289 lt_cv_path_NM="$tmp_nm -p"
5293 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5294 continue # so that we can try to find one that supports BSD flags
5303 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5306 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5307 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5310 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5311 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5313 if test "$LN_S" = "ln -s"; then
5314 { echo "$as_me:$LINENO: result: yes" >&5
5315 echo "${ECHO_T}yes" >&6; }
5317 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5318 echo "${ECHO_T}no, using $LN_S" >&6; }
5321 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5322 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5323 if test "${lt_cv_deplibs_check_method+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 lt_cv_file_magic_cmd='$MAGIC_CMD'
5327 lt_cv_file_magic_test_file=
5328 lt_cv_deplibs_check_method='unknown'
5329 # Need to set the preceding variable on all platforms that support
5330 # interlibrary dependencies.
5331 # 'none' -- dependencies not supported.
5332 # `unknown' -- same as none, but documents that we really don't know.
5333 # 'pass_all' -- all dependencies passed with no checks.
5334 # 'test_compile' -- check by making test program.
5335 # 'file_magic [[regex]]' -- check by looking for files in library path
5336 # which responds to the $file_magic_cmd with a given extended regex.
5337 # If you have `file' or equivalent on your system and you're not sure
5338 # whether `pass_all' will *always* work, you probably want this one.
5342 lt_cv_deplibs_check_method=pass_all
5346 lt_cv_deplibs_check_method=pass_all
5350 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5351 lt_cv_file_magic_cmd='/usr/bin/file -L'
5352 lt_cv_file_magic_test_file=/shlib/libc.so
5356 # func_win32_libid is a shell function defined in ltmain.sh
5357 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5358 lt_cv_file_magic_cmd='func_win32_libid'
5362 # Base MSYS/MinGW do not provide the 'file' command needed by
5363 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5364 # unless we find 'file', for example because we are cross-compiling.
5365 if ( file / ) >/dev/null 2>&1; then
5366 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5367 lt_cv_file_magic_cmd='func_win32_libid'
5369 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5370 lt_cv_file_magic_cmd='$OBJDUMP -f'
5374 darwin* | rhapsody*)
5375 lt_cv_deplibs_check_method=pass_all
5378 freebsd* | dragonfly*)
5379 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5382 # Not sure whether the presence of OpenBSD here was a mistake.
5383 # Let's accept both of them until this is cleared up.
5384 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5385 lt_cv_file_magic_cmd=/usr/bin/file
5386 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5390 lt_cv_deplibs_check_method=pass_all
5395 lt_cv_deplibs_check_method=pass_all
5398 hpux10.20* | hpux11*)
5399 lt_cv_file_magic_cmd=/usr/bin/file
5402 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5403 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5406 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]'
5407 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5410 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5411 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5417 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5421 irix5* | irix6* | nonstopux*)
5423 *-32|*"-32 ") libmagic=32-bit;;
5424 *-n32|*"-n32 ") libmagic=N32;;
5425 *-64|*"-64 ") libmagic=64-bit;;
5426 *) libmagic=never-match;;
5428 lt_cv_deplibs_check_method=pass_all
5431 # This must be Linux ELF.
5432 linux* | k*bsd*-gnu)
5433 lt_cv_deplibs_check_method=pass_all
5436 netbsd* | netbsdelf*-gnu)
5437 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5446 lt_cv_file_magic_cmd=/usr/bin/file
5447 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5451 lt_cv_deplibs_check_method=unknown
5455 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5462 osf3* | osf4* | osf5*)
5463 lt_cv_deplibs_check_method=pass_all
5467 lt_cv_deplibs_check_method=pass_all
5471 lt_cv_deplibs_check_method=pass_all
5475 case $host_vendor in
5477 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]'
5478 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5481 lt_cv_deplibs_check_method=pass_all
5484 lt_cv_file_magic_cmd='/bin/file'
5485 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5488 lt_cv_file_magic_cmd='/bin/file'
5489 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5490 lt_cv_file_magic_test_file=/lib/libc.so
5493 lt_cv_deplibs_check_method=pass_all
5496 lt_cv_deplibs_check_method=pass_all
5501 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5502 lt_cv_deplibs_check_method=pass_all
5507 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5508 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5509 file_magic_cmd=$lt_cv_file_magic_cmd
5510 deplibs_check_method=$lt_cv_deplibs_check_method
5511 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5516 # If no C compiler was specified, use CC.
5519 # If no C compiler flags were specified, use CFLAGS.
5520 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5522 # Allow CC to be a program name with arguments.
5525 # Check whether --enable-libtool-lock was given.
5526 if test "${enable_libtool_lock+set}" = set; then
5527 enableval=$enable_libtool_lock;
5530 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5532 # Some flags need to be propagated to the compiler or linker for good
5536 # Find out which ABI we are using.
5537 echo 'int i;' > conftest.$ac_ext
5538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539 (eval $ac_compile) 2>&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; then
5543 case `/usr/bin/file conftest.$ac_objext` in
5555 # Find out which ABI we are using.
5556 echo '#line 5556 "configure"' > conftest.$ac_ext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; then
5562 if test "$lt_cv_prog_gnu_ld" = yes; then
5563 case `/usr/bin/file conftest.$ac_objext` in
5565 LD="${LD-ld} -melf32bsmip"
5568 LD="${LD-ld} -melf32bmipn32"
5571 LD="${LD-ld} -melf64bmip"
5575 case `/usr/bin/file conftest.$ac_objext` in
5591 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5592 s390*-*linux*|sparc*-*linux*)
5593 # Find out which ABI we are using.
5594 echo 'int i;' > conftest.$ac_ext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596 (eval $ac_compile) 2>&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; then
5600 case `/usr/bin/file conftest.o` in
5603 x86_64-*kfreebsd*-gnu)
5604 LD="${LD-ld} -m elf_i386_fbsd"
5607 LD="${LD-ld} -m elf_i386"
5609 ppc64-*linux*|powerpc64-*linux*)
5610 LD="${LD-ld} -m elf32ppclinux"
5613 LD="${LD-ld} -m elf_s390"
5616 LD="${LD-ld} -m elf32_sparc"
5622 x86_64-*kfreebsd*-gnu)
5623 LD="${LD-ld} -m elf_x86_64_fbsd"
5626 LD="${LD-ld} -m elf_x86_64"
5628 ppc*-*linux*|powerpc*-*linux*)
5629 LD="${LD-ld} -m elf64ppc"
5632 LD="${LD-ld} -m elf64_s390"
5635 LD="${LD-ld} -m elf64_sparc"
5645 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5646 SAVE_CFLAGS="$CFLAGS"
5647 CFLAGS="$CFLAGS -belf"
5648 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5649 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5650 if test "${lt_cv_cc_needs_belf+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 ac_cpp='$CPP $CPPFLAGS'
5655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5659 cat >conftest.$ac_ext <<_ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5674 rm -f conftest.$ac_objext conftest$ac_exeext
5675 if { (ac_try="$ac_link"
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_link") 2>conftest.er1
5683 grep -v '^ *+' conftest.er1 >conftest.err
5685 cat conftest.err >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } && {
5688 test -z "$ac_c_werror_flag" ||
5689 test ! -s conftest.err
5690 } && test -s conftest$ac_exeext &&
5691 $as_test_x conftest$ac_exeext; then
5692 lt_cv_cc_needs_belf=yes
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5697 lt_cv_cc_needs_belf=no
5700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5701 conftest$ac_exeext conftest.$ac_ext
5703 ac_cpp='$CPP $CPPFLAGS'
5704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5709 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5710 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5711 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5712 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5713 CFLAGS="$SAVE_CFLAGS"
5717 # Find out which ABI we are using.
5718 echo 'int i;' > conftest.$ac_ext
5719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5720 (eval $ac_compile) 2>&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; then
5724 case `/usr/bin/file conftest.o` in
5726 case $lt_cv_prog_gnu_ld in
5727 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5729 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5743 need_locks="$enable_libtool_lock"
5747 for ac_header in dlfcn.h
5749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 ac_res=`eval echo '${'$as_ac_Header'}'`
5757 { echo "$as_me:$LINENO: result: $ac_res" >&5
5758 echo "${ECHO_T}$ac_res" >&6; }
5760 # Is the header compilable?
5761 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5763 cat >conftest.$ac_ext <<_ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5769 $ac_includes_default
5770 #include <$ac_header>
5772 rm -f conftest.$ac_objext
5773 if { (ac_try="$ac_compile"
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_compile") 2>conftest.er1
5781 grep -v '^ *+' conftest.er1 >conftest.err
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } && {
5786 test -z "$ac_c_werror_flag" ||
5787 test ! -s conftest.err
5788 } && test -s conftest.$ac_objext; then
5789 ac_header_compiler=yes
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5794 ac_header_compiler=no
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5799 echo "${ECHO_T}$ac_header_compiler" >&6; }
5801 # Is the header present?
5802 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5804 cat >conftest.$ac_ext <<_ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 #include <$ac_header>
5812 if { (ac_try="$ac_cpp conftest.$ac_ext"
5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815 *) ac_try_echo=$ac_try;;
5817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5820 grep -v '^ *+' conftest.er1 >conftest.err
5822 cat conftest.err >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } >/dev/null && {
5825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5826 test ! -s conftest.err
5828 ac_header_preproc=yes
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5833 ac_header_preproc=no
5836 rm -f conftest.err conftest.$ac_ext
5837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5838 echo "${ECHO_T}$ac_header_preproc" >&6; }
5840 # So? What about this header?
5841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5847 ac_header_preproc=yes
5850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5865 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 eval "$as_ac_Header=\$ac_header_preproc"
5872 ac_res=`eval echo '${'$as_ac_Header'}'`
5873 { echo "$as_me:$LINENO: result: $ac_res" >&5
5874 echo "${ECHO_T}$ac_res" >&6; }
5877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5878 cat >>confdefs.h <<_ACEOF
5879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5888 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5889 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5890 (test "X$CXX" != "Xg++"))) ; then
5892 ac_cpp='$CXXCPP $CPPFLAGS'
5893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5896 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5897 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5898 if test -z "$CXXCPP"; then
5899 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 # Double quotes because CXXCPP needs to be expanded
5903 for CXXCPP in "$CXX -E" "/lib/cpp"
5906 for ac_cxx_preproc_warn_flag in '' yes
5908 # Use a header file that comes with gcc, so configuring glibc
5909 # with a fresh cross-compiler works.
5910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5911 # <limits.h> exists even on freestanding compilers.
5912 # On the NeXT, cc -E runs the code through the compiler's parser,
5913 # not just through cpp. "Syntax error" is here to catch this case.
5914 cat >conftest.$ac_ext <<_ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5921 # include <limits.h>
5923 # include <assert.h>
5927 if { (ac_try="$ac_cpp conftest.$ac_ext"
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5935 grep -v '^ *+' conftest.er1 >conftest.err
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } >/dev/null && {
5940 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5941 test ! -s conftest.err
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5948 # Broken: fails on valid input.
5952 rm -f conftest.err conftest.$ac_ext
5954 # OK, works on sane cases. Now check whether nonexistent headers
5955 # can be detected and how.
5956 cat >conftest.$ac_ext <<_ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 #include <ac_nonexistent.h>
5964 if { (ac_try="$ac_cpp conftest.$ac_ext"
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5972 grep -v '^ *+' conftest.er1 >conftest.err
5974 cat conftest.err >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } >/dev/null && {
5977 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5978 test ! -s conftest.err
5980 # Broken: success on invalid input.
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5986 # Passes both tests.
5991 rm -f conftest.err conftest.$ac_ext
5994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5995 rm -f conftest.err conftest.$ac_ext
5996 if $ac_preproc_ok; then
6001 ac_cv_prog_CXXCPP=$CXXCPP
6004 CXXCPP=$ac_cv_prog_CXXCPP
6006 ac_cv_prog_CXXCPP=$CXXCPP
6008 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6009 echo "${ECHO_T}$CXXCPP" >&6; }
6011 for ac_cxx_preproc_warn_flag in '' yes
6013 # Use a header file that comes with gcc, so configuring glibc
6014 # with a fresh cross-compiler works.
6015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6016 # <limits.h> exists even on freestanding compilers.
6017 # On the NeXT, cc -E runs the code through the compiler's parser,
6018 # not just through cpp. "Syntax error" is here to catch this case.
6019 cat >conftest.$ac_ext <<_ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h. */
6026 # include <limits.h>
6028 # include <assert.h>
6032 if { (ac_try="$ac_cpp conftest.$ac_ext"
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6040 grep -v '^ *+' conftest.er1 >conftest.err
6042 cat conftest.err >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } >/dev/null && {
6045 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6046 test ! -s conftest.err
6050 echo "$as_me: failed program was:" >&5
6051 sed 's/^/| /' conftest.$ac_ext >&5
6053 # Broken: fails on valid input.
6057 rm -f conftest.err conftest.$ac_ext
6059 # OK, works on sane cases. Now check whether nonexistent headers
6060 # can be detected and how.
6061 cat >conftest.$ac_ext <<_ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6067 #include <ac_nonexistent.h>
6069 if { (ac_try="$ac_cpp conftest.$ac_ext"
6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6077 grep -v '^ *+' conftest.er1 >conftest.err
6079 cat conftest.err >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } >/dev/null && {
6082 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6083 test ! -s conftest.err
6085 # Broken: success on invalid input.
6088 echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6091 # Passes both tests.
6096 rm -f conftest.err conftest.$ac_ext
6099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6100 rm -f conftest.err conftest.$ac_ext
6101 if $ac_preproc_ok; then
6104 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6105 See \`config.log' for more details." >&5
6106 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6107 See \`config.log' for more details." >&2;}
6108 { (exit 1); exit 1; }; }
6112 ac_cpp='$CXXCPP $CPPFLAGS'
6113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6121 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6122 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6123 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6124 if test -n "$ac_tool_prefix"; then
6125 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
6127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6128 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6131 if test "${ac_cv_prog_F77+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 if test -n "$F77"; then
6135 ac_cv_prog_F77="$F77" # Let the user override the test.
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 if test -n "$F77"; then
6156 { echo "$as_me:$LINENO: result: $F77" >&5
6157 echo "${ECHO_T}$F77" >&6; }
6159 { echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6; }
6164 test -n "$F77" && break
6167 if test -z "$F77"; then
6169 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
6171 # Extract the first word of "$ac_prog", so it can be a program name with args.
6172 set dummy $ac_prog; ac_word=$2
6173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6175 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 if test -n "$ac_ct_F77"; then
6179 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6188 ac_cv_prog_ac_ct_F77="$ac_prog"
6189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6199 if test -n "$ac_ct_F77"; then
6200 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6201 echo "${ECHO_T}$ac_ct_F77" >&6; }
6203 { echo "$as_me:$LINENO: result: no" >&5
6204 echo "${ECHO_T}no" >&6; }
6208 test -n "$ac_ct_F77" && break
6211 if test "x$ac_ct_F77" = x; then
6214 case $cross_compiling:$ac_tool_warned in
6216 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6217 whose name does not start with the host triplet. If you think this
6218 configuration is useful to you, please write to autoconf@gnu.org." >&5
6219 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6220 whose name does not start with the host triplet. If you think this
6221 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6222 ac_tool_warned=yes ;;
6229 # Provide some information about the compiler.
6230 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6231 ac_compiler=`set X $ac_compile; echo $2`
6232 { (ac_try="$ac_compiler --version >&5"
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238 (eval "$ac_compiler --version >&5") 2>&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }
6242 { (ac_try="$ac_compiler -v >&5"
6244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245 *) ac_try_echo=$ac_try;;
6247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248 (eval "$ac_compiler -v >&5") 2>&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }
6252 { (ac_try="$ac_compiler -V >&5"
6254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255 *) ac_try_echo=$ac_try;;
6257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6258 (eval "$ac_compiler -V >&5") 2>&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }
6264 # If we don't use `.F' as extension, the preprocessor is not run on the
6265 # input file. (Note that this only needs to work for GNU compilers.)
6268 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6269 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6270 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 cat >conftest.$ac_ext <<_ACEOF
6281 rm -f conftest.$ac_objext
6282 if { (ac_try="$ac_compile"
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288 (eval "$ac_compile") 2>conftest.er1
6290 grep -v '^ *+' conftest.er1 >conftest.err
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } && {
6295 test -z "$ac_f77_werror_flag" ||
6296 test ! -s conftest.err
6297 } && test -s conftest.$ac_objext; then
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6310 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6311 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6313 ac_test_FFLAGS=${FFLAGS+set}
6314 ac_save_FFLAGS=$FFLAGS
6316 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6317 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6318 if test "${ac_cv_prog_f77_g+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 cat >conftest.$ac_ext <<_ACEOF
6327 rm -f conftest.$ac_objext
6328 if { (ac_try="$ac_compile"
6330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331 *) ac_try_echo=$ac_try;;
6333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6334 (eval "$ac_compile") 2>conftest.er1
6336 grep -v '^ *+' conftest.er1 >conftest.err
6338 cat conftest.err >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } && {
6341 test -z "$ac_f77_werror_flag" ||
6342 test ! -s conftest.err
6343 } && test -s conftest.$ac_objext; then
6344 ac_cv_prog_f77_g=yes
6346 echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6356 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6357 if test "$ac_test_FFLAGS" = set; then
6358 FFLAGS=$ac_save_FFLAGS
6359 elif test $ac_cv_prog_f77_g = yes; then
6360 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6366 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6373 G77=`test $ac_compiler_gnu = yes && echo yes`
6375 ac_cpp='$CPP $CPPFLAGS'
6376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6382 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6383 # find the maximum length of command line arguments
6384 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6385 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6386 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 # On DJGPP, this test can blow up pretty badly due to problems in libc
6395 # (any single argument exceeding 2000 bytes causes a buffer overrun
6396 # during glob expansion). Even if it were fixed, the result of this
6397 # check would be larger than it should be.
6398 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6402 # Under GNU Hurd, this test is not required because there is
6403 # no limit to the length of command line arguments.
6404 # Libtool will interpret -1 as no limit whatsoever
6405 lt_cv_sys_max_cmd_len=-1;
6409 # On Win9x/ME, this test blows up -- it succeeds, but takes
6410 # about 5 minutes as the teststring grows exponentially.
6411 # Worse, since 9x/ME are not pre-emptively multitasking,
6412 # you end up with a "frozen" computer, even though with patience
6413 # the test eventually succeeds (with a max line length of 256k).
6414 # Instead, let's just punt: use the minimum linelength reported by
6415 # all of the supported platforms: 8192 (on NT/2K/XP).
6416 lt_cv_sys_max_cmd_len=8192;
6420 # On AmigaOS with pdksh, this test takes hours, literally.
6421 # So we just punt and use a minimum line length of 8192.
6422 lt_cv_sys_max_cmd_len=8192;
6425 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6426 # This has been around since 386BSD, at least. Likely further.
6427 if test -x /sbin/sysctl; then
6428 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6429 elif test -x /usr/sbin/sysctl; then
6430 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6432 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6434 # And add a safety zone
6435 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6440 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6441 lt_cv_sys_max_cmd_len=196608
6445 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6446 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6447 # nice to cause kernel panics so lets avoid the loop below.
6448 # First set a reasonable default.
6449 lt_cv_sys_max_cmd_len=16384
6451 if test -x /sbin/sysconfig; then
6452 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6453 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6458 lt_cv_sys_max_cmd_len=102400
6460 sysv5* | sco5v6* | sysv4.2uw2*)
6461 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6462 if test -n "$kargmax"; then
6463 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6465 lt_cv_sys_max_cmd_len=32768
6469 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6470 if test -n "$lt_cv_sys_max_cmd_len"; then
6471 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6472 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6474 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6475 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6476 = "XX$teststring") >/dev/null 2>&1 &&
6477 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6478 lt_cv_sys_max_cmd_len=$new_result &&
6479 test $i != 17 # 1/2 MB should be enough
6482 teststring=$teststring$teststring
6485 # Add a significant safety factor because C++ compilers can tack on massive
6486 # amounts of additional arguments before passing them to the linker.
6487 # It appears as though 1/2 is a usable value.
6488 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6495 if test -n $lt_cv_sys_max_cmd_len ; then
6496 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6497 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6499 { echo "$as_me:$LINENO: result: none" >&5
6500 echo "${ECHO_T}none" >&6; }
6507 # Check for command to grab the raw symbol name followed by C symbol from nm.
6508 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6509 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6510 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 # These are sane defaults that work on at least a few old systems.
6515 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6517 # Character class describing NM global symbol codes.
6518 symcode='[BCDEGRST]'
6520 # Regexp to match symbols that can be accessed directly from C.
6521 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6523 # Transform an extracted symbol line into a proper C declaration
6524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6526 # Transform an extracted symbol line into symbol name and symbol address
6527 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'"
6529 # Define system-specific variables.
6534 cygwin* | mingw* | pw32*)
6535 symcode='[ABCDGISTW]'
6537 hpux*) # Its linker distinguishes data from code symbols
6538 if test "$host_cpu" = ia64; then
6539 symcode='[ABCDEGRST]'
6541 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6542 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'"
6544 linux* | k*bsd*-gnu)
6545 if test "$host_cpu" = ia64; then
6546 symcode='[ABCDGIRSTW]'
6547 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6548 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'"
6552 symcode='[BCDEGRST]'
6555 symcode='[BCDEGQRST]'
6566 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6574 # Handle CRLF in mingw tool chain
6578 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6582 # If we're using GNU nm, then use its standard symbol codes.
6583 case `$NM -V 2>&1` in
6584 *GNU* | *'with BFD'*)
6585 symcode='[ABCDGIRSTW]' ;;
6588 # Try without a prefix undercore, then with it.
6589 for ac_symprfx in "" "_"; do
6591 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6592 symxfrm="\\1 $ac_symprfx\\2 \\2"
6594 # Write the raw and C identifiers.
6595 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6597 # Check to see that the pipe works correctly.
6601 cat > conftest.$ac_ext <<EOF
6606 void nm_test_func(){}
6610 int main(){nm_test_var='a';nm_test_func();return(0);}
6613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6614 (eval $ac_compile) 2>&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; then
6618 # Now try to grab the symbols.
6620 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6621 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } && test -s "$nlist"; then
6625 # Try sorting and uniquifying the output.
6626 if sort "$nlist" | uniq > "$nlist"T; then
6627 mv -f "$nlist"T "$nlist"
6632 # Make sure that we snagged all the symbols we need.
6633 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6634 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6635 cat <<EOF > conftest.$ac_ext
6641 # Now generate the symbol file.
6642 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6644 cat <<EOF >> conftest.$ac_ext
6645 #if defined (__STDC__) && __STDC__
6646 # define lt_ptr_t void *
6648 # define lt_ptr_t char *
6652 /* The mapping between symbol names and symbols. */
6657 lt_preloaded_symbols[] =
6660 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6661 cat <<\EOF >> conftest.$ac_ext
6669 # Now try linking the two files.
6670 mv conftest.$ac_objext conftstm.$ac_objext
6671 lt_save_LIBS="$LIBS"
6672 lt_save_CFLAGS="$CFLAGS"
6673 LIBS="conftstm.$ac_objext"
6674 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6676 (eval $ac_link) 2>&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6682 LIBS="$lt_save_LIBS"
6683 CFLAGS="$lt_save_CFLAGS"
6685 echo "cannot find nm_test_func in $nlist" >&5
6688 echo "cannot find nm_test_var in $nlist" >&5
6691 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6694 echo "$progname: failed program was:" >&5
6695 cat conftest.$ac_ext >&5
6697 rm -rf conftest* conftst*
6699 # Do not use the global_symbol_pipe unless it works.
6700 if test "$pipe_works" = yes; then
6703 lt_cv_sys_global_symbol_pipe=
6709 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6710 lt_cv_sys_global_symbol_to_cdecl=
6712 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6713 { echo "$as_me:$LINENO: result: failed" >&5
6714 echo "${ECHO_T}failed" >&6; }
6716 { echo "$as_me:$LINENO: result: ok" >&5
6717 echo "${ECHO_T}ok" >&6; }
6720 { echo "$as_me:$LINENO: checking for objdir" >&5
6721 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6722 if test "${lt_cv_objdir+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 rm -f .libs 2>/dev/null
6726 mkdir .libs 2>/dev/null
6727 if test -d .libs; then
6730 # MS-DOS does not allow filenames that begin with a dot.
6733 rmdir .libs 2>/dev/null
6735 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6736 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6737 objdir=$lt_cv_objdir
6745 # AIX sometimes has problems with the GCC collect2 program. For some
6746 # reason, if we set the COLLECT_NAMES environment variable, the problems
6747 # vanish in a puff of smoke.
6748 if test "X${COLLECT_NAMES+set}" != Xset; then
6750 export COLLECT_NAMES
6755 # Sed substitution that helps us do robust quoting. It backslashifies
6756 # metacharacters that are still active within double-quoted strings.
6757 Xsed='sed -e 1s/^X//'
6758 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6760 # Same as above, but do not quote variable references.
6761 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6763 # Sed substitution to delay expansion of an escaped shell variable in a
6764 # double_quote_subst'ed string.
6765 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6767 # Sed substitution to avoid accidental globbing in evaled expressions
6768 no_glob_subst='s/\*/\\\*/g'
6774 default_ofile=libtool
6775 can_build_shared=yes
6777 # All known linkers require a `.a' archive for static linking (except MSVC,
6778 # which needs '.lib').
6780 ltmain="$ac_aux_dir/ltmain.sh"
6781 ofile="$default_ofile"
6782 with_gnu_ld="$lt_cv_prog_gnu_ld"
6784 if test -n "$ac_tool_prefix"; then
6785 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6786 set dummy ${ac_tool_prefix}ar; ac_word=$2
6787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6789 if test "${ac_cv_prog_AR+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 if test -n "$AR"; then
6793 ac_cv_prog_AR="$AR" # Let the user override the test.
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802 ac_cv_prog_AR="${ac_tool_prefix}ar"
6803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 if test -n "$AR"; then
6814 { echo "$as_me:$LINENO: result: $AR" >&5
6815 echo "${ECHO_T}$AR" >&6; }
6817 { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6823 if test -z "$ac_cv_prog_AR"; then
6825 # Extract the first word of "ar", so it can be a program name with args.
6826 set dummy ar; ac_word=$2
6827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6829 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 if test -n "$ac_ct_AR"; then
6833 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6842 ac_cv_prog_ac_ct_AR="ar"
6843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6853 if test -n "$ac_ct_AR"; then
6854 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6855 echo "${ECHO_T}$ac_ct_AR" >&6; }
6857 { echo "$as_me:$LINENO: result: no" >&5
6858 echo "${ECHO_T}no" >&6; }
6861 if test "x$ac_ct_AR" = x; then
6864 case $cross_compiling:$ac_tool_warned in
6866 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6867 whose name does not start with the host triplet. If you think this
6868 configuration is useful to you, please write to autoconf@gnu.org." >&5
6869 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6870 whose name does not start with the host triplet. If you think this
6871 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6872 ac_tool_warned=yes ;;
6880 if test -n "$ac_tool_prefix"; then
6881 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6882 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6885 if test "${ac_cv_prog_RANLIB+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 if test -n "$RANLIB"; then
6889 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6898 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 RANLIB=$ac_cv_prog_RANLIB
6909 if test -n "$RANLIB"; then
6910 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6911 echo "${ECHO_T}$RANLIB" >&6; }
6913 { echo "$as_me:$LINENO: result: no" >&5
6914 echo "${ECHO_T}no" >&6; }
6919 if test -z "$ac_cv_prog_RANLIB"; then
6920 ac_ct_RANLIB=$RANLIB
6921 # Extract the first word of "ranlib", so it can be a program name with args.
6922 set dummy ranlib; ac_word=$2
6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 if test -n "$ac_ct_RANLIB"; then
6929 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6938 ac_cv_prog_ac_ct_RANLIB="ranlib"
6939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6949 if test -n "$ac_ct_RANLIB"; then
6950 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6951 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6953 { echo "$as_me:$LINENO: result: no" >&5
6954 echo "${ECHO_T}no" >&6; }
6957 if test "x$ac_ct_RANLIB" = x; then
6960 case $cross_compiling:$ac_tool_warned in
6962 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6963 whose name does not start with the host triplet. If you think this
6964 configuration is useful to you, please write to autoconf@gnu.org." >&5
6965 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6966 whose name does not start with the host triplet. If you think this
6967 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6968 ac_tool_warned=yes ;;
6970 RANLIB=$ac_ct_RANLIB
6973 RANLIB="$ac_cv_prog_RANLIB"
6976 if test -n "$ac_tool_prefix"; then
6977 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6978 set dummy ${ac_tool_prefix}strip; ac_word=$2
6979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6981 if test "${ac_cv_prog_STRIP+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 if test -n "$STRIP"; then
6985 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 test -z "$as_dir" && as_dir=.
6992 for ac_exec_ext in '' $ac_executable_extensions; do
6993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6994 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 STRIP=$ac_cv_prog_STRIP
7005 if test -n "$STRIP"; then
7006 { echo "$as_me:$LINENO: result: $STRIP" >&5
7007 echo "${ECHO_T}$STRIP" >&6; }
7009 { echo "$as_me:$LINENO: result: no" >&5
7010 echo "${ECHO_T}no" >&6; }
7015 if test -z "$ac_cv_prog_STRIP"; then
7017 # Extract the first word of "strip", so it can be a program name with args.
7018 set dummy strip; ac_word=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7024 if test -n "$ac_ct_STRIP"; then
7025 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7034 ac_cv_prog_ac_ct_STRIP="strip"
7035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7045 if test -n "$ac_ct_STRIP"; then
7046 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7047 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7049 { echo "$as_me:$LINENO: result: no" >&5
7050 echo "${ECHO_T}no" >&6; }
7053 if test "x$ac_ct_STRIP" = x; then
7056 case $cross_compiling:$ac_tool_warned in
7058 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7059 whose name does not start with the host triplet. If you think this
7060 configuration is useful to you, please write to autoconf@gnu.org." >&5
7061 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7062 whose name does not start with the host triplet. If you think this
7063 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7064 ac_tool_warned=yes ;;
7069 STRIP="$ac_cv_prog_STRIP"
7074 old_CFLAGS="$CFLAGS"
7076 # Set sane defaults for various variables
7077 test -z "$AR" && AR=ar
7078 test -z "$AR_FLAGS" && AR_FLAGS=cru
7079 test -z "$AS" && AS=as
7080 test -z "$CC" && CC=cc
7081 test -z "$LTCC" && LTCC=$CC
7082 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7083 test -z "$DLLTOOL" && DLLTOOL=dlltool
7084 test -z "$LD" && LD=ld
7085 test -z "$LN_S" && LN_S="ln -s"
7086 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7087 test -z "$NM" && NM=nm
7088 test -z "$SED" && SED=sed
7089 test -z "$OBJDUMP" && OBJDUMP=objdump
7090 test -z "$RANLIB" && RANLIB=:
7091 test -z "$STRIP" && STRIP=:
7092 test -z "$ac_objext" && ac_objext=o
7094 # Determine commands to create old-style static archives.
7095 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7096 old_postinstall_cmds='chmod 644 $oldlib'
7097 old_postuninstall_cmds=
7099 if test -n "$RANLIB"; then
7102 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7105 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7108 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7111 for cc_temp in $compiler""; do
7113 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7114 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7119 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7122 # Only perform the check for file, if the check method requires it
7123 case $deplibs_check_method in
7125 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7126 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7127 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7128 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7136 lt_save_MAGIC_CMD="$MAGIC_CMD"
7137 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7138 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7139 for ac_dir in $ac_dummy; do
7141 test -z "$ac_dir" && ac_dir=.
7142 if test -f $ac_dir/${ac_tool_prefix}file; then
7143 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7144 if test -n "$file_magic_test_file"; then
7145 case $deplibs_check_method in
7147 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7148 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7149 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7150 $EGREP "$file_magic_regex" > /dev/null; then
7155 *** Warning: the command libtool uses to detect shared libraries,
7156 *** $file_magic_cmd, produces output that libtool cannot recognize.
7157 *** The result is that libtool may fail to recognize shared libraries
7158 *** as such. This will affect the creation of libtool libraries that
7159 *** depend on shared libraries, but programs linked with such libtool
7160 *** libraries will work regardless of this problem. Nevertheless, you
7161 *** may want to report the problem to your system manager and/or to
7162 *** bug-libtool@gnu.org
7172 MAGIC_CMD="$lt_save_MAGIC_CMD"
7177 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7178 if test -n "$MAGIC_CMD"; then
7179 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7180 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7182 { echo "$as_me:$LINENO: result: no" >&5
7183 echo "${ECHO_T}no" >&6; }
7186 if test -z "$lt_cv_path_MAGIC_CMD"; then
7187 if test -n "$ac_tool_prefix"; then
7188 { echo "$as_me:$LINENO: checking for file" >&5
7189 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7190 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7198 lt_save_MAGIC_CMD="$MAGIC_CMD"
7199 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7200 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7201 for ac_dir in $ac_dummy; do
7203 test -z "$ac_dir" && ac_dir=.
7204 if test -f $ac_dir/file; then
7205 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7206 if test -n "$file_magic_test_file"; then
7207 case $deplibs_check_method in
7209 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7210 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7211 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7212 $EGREP "$file_magic_regex" > /dev/null; then
7217 *** Warning: the command libtool uses to detect shared libraries,
7218 *** $file_magic_cmd, produces output that libtool cannot recognize.
7219 *** The result is that libtool may fail to recognize shared libraries
7220 *** as such. This will affect the creation of libtool libraries that
7221 *** depend on shared libraries, but programs linked with such libtool
7222 *** libraries will work regardless of this problem. Nevertheless, you
7223 *** may want to report the problem to your system manager and/or to
7224 *** bug-libtool@gnu.org
7234 MAGIC_CMD="$lt_save_MAGIC_CMD"
7239 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7240 if test -n "$MAGIC_CMD"; then
7241 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7242 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7244 { echo "$as_me:$LINENO: result: no" >&5
7245 echo "${ECHO_T}no" >&6; }
7259 rhapsody* | darwin*)
7260 if test -n "$ac_tool_prefix"; then
7261 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7262 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 if test -n "$DSYMUTIL"; then
7269 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7278 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7289 if test -n "$DSYMUTIL"; then
7290 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7291 echo "${ECHO_T}$DSYMUTIL" >&6; }
7293 { echo "$as_me:$LINENO: result: no" >&5
7294 echo "${ECHO_T}no" >&6; }
7299 if test -z "$ac_cv_prog_DSYMUTIL"; then
7300 ac_ct_DSYMUTIL=$DSYMUTIL
7301 # Extract the first word of "dsymutil", so it can be a program name with args.
7302 set dummy dsymutil; ac_word=$2
7303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 if test -n "$ac_ct_DSYMUTIL"; then
7309 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7329 if test -n "$ac_ct_DSYMUTIL"; then
7330 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7331 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7333 { echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6; }
7337 if test "x$ac_ct_DSYMUTIL" = x; then
7340 case $cross_compiling:$ac_tool_warned in
7342 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7343 whose name does not start with the host triplet. If you think this
7344 configuration is useful to you, please write to autoconf@gnu.org." >&5
7345 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7346 whose name does not start with the host triplet. If you think this
7347 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7348 ac_tool_warned=yes ;;
7350 DSYMUTIL=$ac_ct_DSYMUTIL
7353 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7356 if test -n "$ac_tool_prefix"; then
7357 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7358 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7361 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7364 if test -n "$NMEDIT"; then
7365 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7374 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7384 NMEDIT=$ac_cv_prog_NMEDIT
7385 if test -n "$NMEDIT"; then
7386 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7387 echo "${ECHO_T}$NMEDIT" >&6; }
7389 { echo "$as_me:$LINENO: result: no" >&5
7390 echo "${ECHO_T}no" >&6; }
7395 if test -z "$ac_cv_prog_NMEDIT"; then
7396 ac_ct_NMEDIT=$NMEDIT
7397 # Extract the first word of "nmedit", so it can be a program name with args.
7398 set dummy nmedit; ac_word=$2
7399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7401 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 if test -n "$ac_ct_NMEDIT"; then
7405 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 test -z "$as_dir" && as_dir=.
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7414 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7424 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7425 if test -n "$ac_ct_NMEDIT"; then
7426 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7427 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7429 { echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6; }
7433 if test "x$ac_ct_NMEDIT" = x; then
7436 case $cross_compiling:$ac_tool_warned in
7438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7439 whose name does not start with the host triplet. If you think this
7440 configuration is useful to you, please write to autoconf@gnu.org." >&5
7441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7442 whose name does not start with the host triplet. If you think this
7443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7444 ac_tool_warned=yes ;;
7446 NMEDIT=$ac_ct_NMEDIT
7449 NMEDIT="$ac_cv_prog_NMEDIT"
7453 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7454 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7455 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 lt_cv_apple_cc_single_mod=no
7459 if test -z "${LT_MULTI_MODULE}"; then
7460 # By default we will add the -single_module flag. You can override
7461 # by either setting the environment variable LT_MULTI_MODULE
7462 # non-empty at configure time, or by adding -multi_module to the
7464 echo "int foo(void){return 1;}" > conftest.c
7465 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7466 -dynamiclib ${wl}-single_module conftest.c
7467 if test -f libconftest.dylib; then
7468 lt_cv_apple_cc_single_mod=yes
7469 rm -rf libconftest.dylib*
7474 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7475 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7476 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7477 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7478 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7481 lt_cv_ld_exported_symbols_list=no
7482 save_LDFLAGS=$LDFLAGS
7483 echo "_main" > conftest.sym
7484 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7485 cat >conftest.$ac_ext <<_ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h. */
7500 rm -f conftest.$ac_objext conftest$ac_exeext
7501 if { (ac_try="$ac_link"
7503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504 *) ac_try_echo=$ac_try;;
7506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7507 (eval "$ac_link") 2>conftest.er1
7509 grep -v '^ *+' conftest.er1 >conftest.err
7511 cat conftest.err >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } && {
7514 test -z "$ac_c_werror_flag" ||
7515 test ! -s conftest.err
7516 } && test -s conftest$ac_exeext &&
7517 $as_test_x conftest$ac_exeext; then
7518 lt_cv_ld_exported_symbols_list=yes
7520 echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7523 lt_cv_ld_exported_symbols_list=no
7526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7527 conftest$ac_exeext conftest.$ac_ext
7528 LDFLAGS="$save_LDFLAGS"
7531 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7532 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7534 rhapsody* | darwin1.[0123])
7535 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7537 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7539 # if running on 10.5 or later, the deployment target defaults
7540 # to the OS version, if on x86, and 10.4, the deployment
7541 # target defaults to 10.4. Don't you love it?
7542 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7543 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7544 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7546 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7548 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7552 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7553 _lt_dar_single_mod='$single_module'
7555 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7556 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7558 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7560 if test "$DSYMUTIL" != ":"; then
7561 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7572 # Check whether --enable-libtool-lock was given.
7573 if test "${enable_libtool_lock+set}" = set; then
7574 enableval=$enable_libtool_lock;
7577 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7580 # Check whether --with-pic was given.
7581 if test "${with_pic+set}" = set; then
7582 withval=$with_pic; pic_mode="$withval"
7587 test -z "$pic_mode" && pic_mode=default
7589 # Use C for the default configuration in the libtool script
7593 ac_cpp='$CPP $CPPFLAGS'
7594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7599 # Source file extension for C test sources.
7602 # Object file extension for compiled C test sources.
7606 # Code to be used in simple compile tests
7607 lt_simple_compile_test_code="int some_variable = 0;"
7609 # Code to be used in simple link tests
7610 lt_simple_link_test_code='int main(){return(0);}'
7613 # If no C compiler was specified, use CC.
7616 # If no C compiler flags were specified, use CFLAGS.
7617 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7619 # Allow CC to be a program name with arguments.
7623 # save warnings/boilerplate of simple test code
7624 ac_outfile=conftest.$ac_objext
7625 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7626 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7627 _lt_compiler_boilerplate=`cat conftest.err`
7630 ac_outfile=conftest.$ac_objext
7631 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7632 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7633 _lt_linker_boilerplate=`cat conftest.err`
7638 lt_prog_compiler_no_builtin_flag=
7640 if test "$GCC" = yes; then
7641 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7644 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7645 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7646 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7649 lt_cv_prog_compiler_rtti_exceptions=no
7650 ac_outfile=conftest.$ac_objext
7651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7652 lt_compiler_flag="-fno-rtti -fno-exceptions"
7653 # Insert the option either (1) after the last *FLAGS variable, or
7654 # (2) before a word containing "conftest.", or (3) at the end.
7655 # Note that $ac_compile itself does not contain backslashes and begins
7656 # with a dollar sign (not a hyphen), so the echo should work correctly.
7657 # The option is referenced via a variable to avoid confusing sed.
7658 lt_compile=`echo "$ac_compile" | $SED \
7659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7661 -e 's:$: $lt_compiler_flag:'`
7662 (eval echo "\"\$as_me:7662: $lt_compile\"" >&5)
7663 (eval "$lt_compile" 2>conftest.err)
7665 cat conftest.err >&5
7666 echo "$as_me:7666: \$? = $ac_status" >&5
7667 if (exit $ac_status) && test -s "$ac_outfile"; then
7668 # The compiler can only warn and ignore the option if not recognized
7669 # So say no if there are warnings other than the usual output.
7670 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7672 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7673 lt_cv_prog_compiler_rtti_exceptions=yes
7679 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7680 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7682 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7683 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7690 lt_prog_compiler_wl=
7691 lt_prog_compiler_pic=
7692 lt_prog_compiler_static=
7694 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7695 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7697 if test "$GCC" = yes; then
7698 lt_prog_compiler_wl='-Wl,'
7699 lt_prog_compiler_static='-static'
7703 # All AIX code is PIC.
7704 if test "$host_cpu" = ia64; then
7705 # AIX 5 now supports IA64 processor
7706 lt_prog_compiler_static='-Bstatic'
7711 # FIXME: we need at least 68020 code to build shared libraries, but
7712 # adding the `-m68020' flag to GCC prevents building anything better,
7714 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7717 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7718 # PIC is the default for these OSes.
7721 mingw* | cygwin* | pw32* | os2*)
7722 # This hack is so that the source file can tell whether it is being
7723 # built for inclusion in a dll (and should export symbols for example).
7724 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7725 # (--disable-auto-import) libraries
7726 lt_prog_compiler_pic='-DDLL_EXPORT'
7729 darwin* | rhapsody*)
7730 # PIC is the default on this platform
7731 # Common symbols not allowed in MH_DYLIB files
7732 lt_prog_compiler_pic='-fno-common'
7736 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7737 # Instead, we relocate shared libraries at runtime.
7741 # Just because we use GCC doesn't mean we suddenly get shared libraries
7742 # on systems that don't support them.
7743 lt_prog_compiler_can_build_shared=no
7748 if test -d /usr/nec; then
7749 lt_prog_compiler_pic=-Kconform_pic
7754 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7761 lt_prog_compiler_pic='-fPIC'
7767 lt_prog_compiler_pic='-fPIC'
7771 # PORTME Check for flag to pass linker flags through the system compiler.
7774 lt_prog_compiler_wl='-Wl,'
7775 if test "$host_cpu" = ia64; then
7776 # AIX 5 now supports IA64 processor
7777 lt_prog_compiler_static='-Bstatic'
7779 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7783 # PIC is the default on this platform
7784 # Common symbols not allowed in MH_DYLIB files
7785 case $cc_basename in
7787 lt_prog_compiler_pic='-qnocommon'
7788 lt_prog_compiler_wl='-Wl,'
7793 mingw* | cygwin* | pw32* | os2*)
7794 # This hack is so that the source file can tell whether it is being
7795 # built for inclusion in a dll (and should export symbols for example).
7796 lt_prog_compiler_pic='-DDLL_EXPORT'
7799 hpux9* | hpux10* | hpux11*)
7800 lt_prog_compiler_wl='-Wl,'
7801 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7808 lt_prog_compiler_pic='+Z'
7811 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7812 lt_prog_compiler_static='${wl}-a ${wl}archive'
7815 irix5* | irix6* | nonstopux*)
7816 lt_prog_compiler_wl='-Wl,'
7817 # PIC (with -KPIC) is the default.
7818 lt_prog_compiler_static='-non_shared'
7822 lt_prog_compiler_pic='-KPIC'
7823 lt_prog_compiler_static='-Bstatic'
7826 linux* | k*bsd*-gnu)
7827 case $cc_basename in
7829 lt_prog_compiler_wl='-Wl,'
7830 lt_prog_compiler_pic='-KPIC'
7831 lt_prog_compiler_static='-static'
7833 pgcc* | pgf77* | pgf90* | pgf95*)
7834 # Portland Group compilers (*not* the Pentium gcc compiler,
7835 # which looks to be a dead project)
7836 lt_prog_compiler_wl='-Wl,'
7837 lt_prog_compiler_pic='-fpic'
7838 lt_prog_compiler_static='-Bstatic'
7841 lt_prog_compiler_wl='-Wl,'
7842 # All Alpha code is PIC.
7843 lt_prog_compiler_static='-non_shared'
7846 case `$CC -V 2>&1 | sed 5q` in
7849 lt_prog_compiler_pic='-KPIC'
7850 lt_prog_compiler_static='-Bstatic'
7851 lt_prog_compiler_wl='-Wl,'
7854 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7855 lt_prog_compiler_pic='-KPIC'
7856 lt_prog_compiler_static='-Bstatic'
7857 lt_prog_compiler_wl=''
7864 osf3* | osf4* | osf5*)
7865 lt_prog_compiler_wl='-Wl,'
7866 # All OSF/1 code is PIC.
7867 lt_prog_compiler_static='-non_shared'
7871 lt_prog_compiler_static='-non_shared'
7875 lt_prog_compiler_pic='-KPIC'
7876 lt_prog_compiler_static='-Bstatic'
7877 case $cc_basename in
7879 lt_prog_compiler_wl='-Qoption ld ';;
7881 lt_prog_compiler_wl='-Wl,';;
7886 lt_prog_compiler_wl='-Qoption ld '
7887 lt_prog_compiler_pic='-PIC'
7888 lt_prog_compiler_static='-Bstatic'
7891 sysv4 | sysv4.2uw2* | sysv4.3*)
7892 lt_prog_compiler_wl='-Wl,'
7893 lt_prog_compiler_pic='-KPIC'
7894 lt_prog_compiler_static='-Bstatic'
7898 if test -d /usr/nec ;then
7899 lt_prog_compiler_pic='-Kconform_pic'
7900 lt_prog_compiler_static='-Bstatic'
7904 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7905 lt_prog_compiler_wl='-Wl,'
7906 lt_prog_compiler_pic='-KPIC'
7907 lt_prog_compiler_static='-Bstatic'
7911 lt_prog_compiler_wl='-Wl,'
7912 lt_prog_compiler_can_build_shared=no
7916 lt_prog_compiler_pic='-pic'
7917 lt_prog_compiler_static='-Bstatic'
7921 lt_prog_compiler_can_build_shared=no
7926 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7927 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7930 # Check to make sure the PIC flag actually works.
7932 if test -n "$lt_prog_compiler_pic"; then
7934 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7935 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7936 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 lt_cv_prog_compiler_pic_works=no
7940 ac_outfile=conftest.$ac_objext
7941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7942 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7943 # Insert the option either (1) after the last *FLAGS variable, or
7944 # (2) before a word containing "conftest.", or (3) at the end.
7945 # Note that $ac_compile itself does not contain backslashes and begins
7946 # with a dollar sign (not a hyphen), so the echo should work correctly.
7947 # The option is referenced via a variable to avoid confusing sed.
7948 lt_compile=`echo "$ac_compile" | $SED \
7949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7951 -e 's:$: $lt_compiler_flag:'`
7952 (eval echo "\"\$as_me:7952: $lt_compile\"" >&5)
7953 (eval "$lt_compile" 2>conftest.err)
7955 cat conftest.err >&5
7956 echo "$as_me:7956: \$? = $ac_status" >&5
7957 if (exit $ac_status) && test -s "$ac_outfile"; then
7958 # The compiler can only warn and ignore the option if not recognized
7959 # So say no if there are warnings other than the usual output.
7960 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7961 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7962 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7963 lt_cv_prog_compiler_pic_works=yes
7969 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7970 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7972 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7973 case $lt_prog_compiler_pic in
7975 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7978 lt_prog_compiler_pic=
7979 lt_prog_compiler_can_build_shared=no
7984 # For platforms which do not support PIC, -DPIC is meaningless:
7986 lt_prog_compiler_pic=
7989 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7994 # Check to make sure the static flag actually works.
7996 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7997 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7998 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7999 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8002 lt_cv_prog_compiler_static_works=no
8003 save_LDFLAGS="$LDFLAGS"
8004 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8005 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8006 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8007 # The linker can only warn and ignore the option if not recognized
8008 # So say no if there are warnings
8009 if test -s conftest.err; then
8010 # Append any errors to the config.log.
8011 cat conftest.err 1>&5
8012 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8013 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8014 if diff conftest.exp conftest.er2 >/dev/null; then
8015 lt_cv_prog_compiler_static_works=yes
8018 lt_cv_prog_compiler_static_works=yes
8022 LDFLAGS="$save_LDFLAGS"
8025 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8026 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8028 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8031 lt_prog_compiler_static=
8035 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8036 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8037 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 lt_cv_prog_compiler_c_o=no
8041 $rm -r conftest 2>/dev/null
8045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8047 lt_compiler_flag="-o out/conftest2.$ac_objext"
8048 # Insert the option either (1) after the last *FLAGS variable, or
8049 # (2) before a word containing "conftest.", or (3) at the end.
8050 # Note that $ac_compile itself does not contain backslashes and begins
8051 # with a dollar sign (not a hyphen), so the echo should work correctly.
8052 lt_compile=`echo "$ac_compile" | $SED \
8053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8055 -e 's:$: $lt_compiler_flag:'`
8056 (eval echo "\"\$as_me:8056: $lt_compile\"" >&5)
8057 (eval "$lt_compile" 2>out/conftest.err)
8059 cat out/conftest.err >&5
8060 echo "$as_me:8060: \$? = $ac_status" >&5
8061 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8063 # The compiler can only warn and ignore the option if not recognized
8064 # So say no if there are warnings
8065 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8066 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8067 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8068 lt_cv_prog_compiler_c_o=yes
8073 # SGI C++ compiler will create directory out/ii_files/ for
8074 # template instantiation
8075 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8076 $rm out/* && rmdir out
8082 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8083 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8086 hard_links="nottested"
8087 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8088 # do not overwrite the value of need_locks provided by the user
8089 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8090 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8093 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8095 ln conftest.a conftest.b 2>&5 || hard_links=no
8096 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8097 { echo "$as_me:$LINENO: result: $hard_links" >&5
8098 echo "${ECHO_T}$hard_links" >&6; }
8099 if test "$hard_links" = no; then
8100 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8101 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8108 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8109 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8112 allow_undefined_flag=
8113 enable_shared_with_static_runtimes=no
8115 archive_expsym_cmds=
8116 old_archive_From_new_cmds=
8117 old_archive_from_expsyms_cmds=
8118 export_dynamic_flag_spec=
8119 whole_archive_flag_spec=
8120 thread_safe_flag_spec=
8121 hardcode_libdir_flag_spec=
8122 hardcode_libdir_flag_spec_ld=
8123 hardcode_libdir_separator=
8126 hardcode_shlibpath_var=unsupported
8127 link_all_deplibs=unknown
8128 hardcode_automatic=no
8131 always_export_symbols=no
8132 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8133 # include_expsyms should be a list of space-separated symbols to be *always*
8134 # included in the symbol list
8136 # exclude_expsyms can be an extended regexp of symbols to exclude
8137 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8138 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8139 # as well as any symbol that contains `d'.
8140 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8141 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8142 # platforms (ab)use it in PIC code, but their linkers get confused if
8143 # the symbol is explicitly referenced. Since portable code cannot
8144 # rely on this symbol name, it's probably fine to never include it in
8145 # preloaded symbol tables.
8146 # Exclude shared library initialization/finalization symbols.
8147 extract_expsyms_cmds=
8148 # Just being paranoid about ensuring that cc_basename is set.
8149 for cc_temp in $compiler""; do
8151 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8152 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8157 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8160 cygwin* | mingw* | pw32*)
8161 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8162 # When not using gcc, we currently assume that we are using
8163 # Microsoft Visual C++.
8164 if test "$GCC" != yes; then
8169 # we just hope/assume this is gcc and not c89 (= MSVC++)
8178 if test "$with_gnu_ld" = yes; then
8179 # If archive_cmds runs LD, not CC, wlarc should be empty
8182 # Set some defaults for GNU ld with shared library support. These
8183 # are reset later if shared libraries are not supported. Putting them
8184 # here allows them to be overridden if necessary.
8185 runpath_var=LD_RUN_PATH
8186 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8187 export_dynamic_flag_spec='${wl}--export-dynamic'
8188 # ancient GNU ld didn't support --whole-archive et. al.
8189 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8190 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8192 whole_archive_flag_spec=
8194 supports_anon_versioning=no
8195 case `$LD -v 2>/dev/null` in
8196 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8197 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8198 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8199 *\ 2.11.*) ;; # other 2.11 versions
8200 *) supports_anon_versioning=yes ;;
8203 # See if GNU ld supports shared libraries.
8206 # On AIX/PPC, the GNU linker is very broken
8207 if test "$host_cpu" != ia64; then
8211 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8212 *** to be unable to reliably create shared libraries on AIX.
8213 *** Therefore, libtool is disabling shared libraries support. If you
8214 *** really care for shared libraries, you may want to modify your PATH
8215 *** so that a non-GNU linker is found, and then restart.
8222 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)'
8223 hardcode_libdir_flag_spec='-L$libdir'
8224 hardcode_minus_L=yes
8226 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8227 # that the semantics of dynamic libraries on AmigaOS, at least up
8228 # to version 4, is to share data among multiple programs linked
8229 # with the same dynamic library. Since this doesn't match the
8230 # behavior of shared libraries on other platforms, we can't use
8236 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8237 allow_undefined_flag=unsupported
8238 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8239 # support --undefined. This deserves some investigation. FIXME
8240 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8246 cygwin* | mingw* | pw32*)
8247 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8248 # as there is no search path for DLLs.
8249 hardcode_libdir_flag_spec='-L$libdir'
8250 allow_undefined_flag=unsupported
8251 always_export_symbols=no
8252 enable_shared_with_static_runtimes=yes
8253 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8255 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8257 # If the export-symbols file already is a .def file (1st line
8258 # is EXPORTS), use it as is; otherwise, prepend...
8259 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8260 cp $export_symbols $output_objdir/$soname.def;
8262 echo EXPORTS > $output_objdir/$soname.def;
8263 cat $export_symbols >> $output_objdir/$soname.def;
8265 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8273 hardcode_shlibpath_var=no
8274 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8275 export_dynamic_flag_spec='${wl}-E'
8276 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8277 # Instead, shared libraries are loaded at an image base (0x10000000 by
8278 # default) and relocated if they conflict, which is a slow very memory
8279 # consuming and fragmenting process. To avoid this, we pick a random,
8280 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8281 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8282 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8283 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'
8286 gnu* | linux* | k*bsd*-gnu)
8287 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8289 case $cc_basename,$host_cpu in
8290 pgcc*) # Portland Group C compiler
8291 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'
8292 tmp_addflag=' $pic_flag'
8294 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8295 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'
8296 tmp_addflag=' $pic_flag -Mnomain' ;;
8297 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8298 tmp_addflag=' -i_dynamic' ;;
8299 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8300 tmp_addflag=' -i_dynamic -nofor_main' ;;
8301 ifc* | ifort*) # Intel Fortran compiler
8302 tmp_addflag=' -nofor_main' ;;
8304 case `$CC -V 2>&1 | sed 5q` in
8305 *Sun\ C*) # Sun C 5.9
8306 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'
8307 tmp_sharedflag='-G' ;;
8308 *Sun\ F*) # Sun Fortran 8.3
8309 tmp_sharedflag='-G' ;;
8311 tmp_sharedflag='-shared' ;;
8313 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8315 if test $supports_anon_versioning = yes; then
8316 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8317 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8318 $echo "local: *; };" >> $output_objdir/$libname.ver~
8319 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8327 netbsd* | netbsdelf*-gnu)
8328 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8329 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8333 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8338 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8342 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8343 *** create shared libraries on Solaris systems. Therefore, libtool
8344 *** is disabling shared libraries support. We urge you to upgrade GNU
8345 *** binutils to release 2.9.1 or newer. Another option is to modify
8346 *** your PATH or compiler configuration so that the native linker is
8347 *** used, and then restart.
8350 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8352 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8359 case `$LD -v 2>&1` in
8360 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8364 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8365 *** reliably create shared libraries on SCO systems. Therefore, libtool
8366 *** is disabling shared libraries support. We urge you to upgrade GNU
8367 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8368 *** your PATH or compiler configuration so that the native linker is
8369 *** used, and then restart.
8374 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8375 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8376 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8377 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8386 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8389 hardcode_shlibpath_var=no
8393 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8394 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8395 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8402 if test "$ld_shlibs" = no; then
8404 hardcode_libdir_flag_spec=
8405 export_dynamic_flag_spec=
8406 whole_archive_flag_spec=
8409 # PORTME fill in a description of your system's linker (not GNU ld)
8412 allow_undefined_flag=unsupported
8413 always_export_symbols=yes
8414 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'
8415 # Note: this linker hardcodes the directories in LIBPATH if there
8416 # are no directories specified by -L.
8417 hardcode_minus_L=yes
8418 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8419 # Neither direct hardcoding nor static linking is supported with a
8421 hardcode_direct=unsupported
8426 if test "$host_cpu" = ia64; then
8427 # On IA64, the linker does run time linking by default, so we don't
8428 # have to do anything special.
8429 aix_use_runtimelinking=no
8430 exp_sym_flag='-Bexport'
8433 # If we're using GNU nm, then we don't want the "-C" option.
8434 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8435 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8436 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'
8438 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'
8440 aix_use_runtimelinking=no
8442 # Test if we are trying to use run time linking or normal
8443 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8444 # need to do runtime linking.
8445 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8446 for ld_flag in $LDFLAGS; do
8447 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8448 aix_use_runtimelinking=yes
8455 exp_sym_flag='-bexport'
8456 no_entry_flag='-bnoentry'
8459 # When large executables or shared objects are built, AIX ld can
8460 # have problems creating the table of contents. If linking a library
8461 # or program results in "error TOC overflow" add -mminimal-toc to
8462 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8463 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8467 hardcode_libdir_separator=':'
8468 link_all_deplibs=yes
8470 if test "$GCC" = yes; then
8471 case $host_os in aix4.[012]|aix4.[012].*)
8472 # We only want to do this on AIX 4.2 and lower, the check
8473 # below for broken collect2 doesn't work under 4.3+
8474 collect2name=`${CC} -print-prog-name=collect2`
8475 if test -f "$collect2name" && \
8476 strings "$collect2name" | grep resolve_lib_name >/dev/null
8478 # We have reworked collect2
8481 # We have old collect2
8482 hardcode_direct=unsupported
8483 # It fails to find uninstalled libraries when the uninstalled
8484 # path is not listed in the libpath. Setting hardcode_minus_L
8485 # to unsupported forces relinking
8486 hardcode_minus_L=yes
8487 hardcode_libdir_flag_spec='-L$libdir'
8488 hardcode_libdir_separator=
8492 shared_flag='-shared'
8493 if test "$aix_use_runtimelinking" = yes; then
8494 shared_flag="$shared_flag "'${wl}-G'
8498 if test "$host_cpu" = ia64; then
8499 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8500 # chokes on -Wl,-G. The following line is correct:
8503 if test "$aix_use_runtimelinking" = yes; then
8504 shared_flag='${wl}-G'
8506 shared_flag='${wl}-bM:SRE'
8511 # It seems that -bexpall does not export symbols beginning with
8512 # underscore (_), so it is better to generate a list of symbols to export.
8513 always_export_symbols=yes
8514 if test "$aix_use_runtimelinking" = yes; then
8515 # Warning - without using the other runtime loading flags (-brtl),
8516 # -berok will link without error, but may produce a broken library.
8517 allow_undefined_flag='-berok'
8518 # Determine the default libpath from the value encoded in an empty executable.
8519 cat >conftest.$ac_ext <<_ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h. */
8534 rm -f conftest.$ac_objext conftest$ac_exeext
8535 if { (ac_try="$ac_link"
8537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8538 *) ac_try_echo=$ac_try;;
8540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8541 (eval "$ac_link") 2>conftest.er1
8543 grep -v '^ *+' conftest.er1 >conftest.err
8545 cat conftest.err >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } && {
8548 test -z "$ac_c_werror_flag" ||
8549 test ! -s conftest.err
8550 } && test -s conftest$ac_exeext &&
8551 $as_test_x conftest$ac_exeext; then
8553 lt_aix_libpath_sed='
8554 /Import File Strings/,/^$/ {
8560 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8561 # Check for a 64-bit object if we didn't find anything.
8562 if test -z "$aix_libpath"; then
8563 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8573 conftest$ac_exeext conftest.$ac_ext
8574 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8576 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8577 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"
8579 if test "$host_cpu" = ia64; then
8580 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8581 allow_undefined_flag="-z nodefs"
8582 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"
8584 # Determine the default libpath from the value encoded in an empty executable.
8585 cat >conftest.$ac_ext <<_ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (ac_try="$ac_link"
8603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604 *) ac_try_echo=$ac_try;;
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607 (eval "$ac_link") 2>conftest.er1
8609 grep -v '^ *+' conftest.er1 >conftest.err
8611 cat conftest.err >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } && {
8614 test -z "$ac_c_werror_flag" ||
8615 test ! -s conftest.err
8616 } && test -s conftest$ac_exeext &&
8617 $as_test_x conftest$ac_exeext; then
8619 lt_aix_libpath_sed='
8620 /Import File Strings/,/^$/ {
8626 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8627 # Check for a 64-bit object if we didn't find anything.
8628 if test -z "$aix_libpath"; then
8629 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8639 conftest$ac_exeext conftest.$ac_ext
8640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8642 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8643 # Warning - without using the other run time loading flags,
8644 # -berok will link without error, but may produce a broken library.
8645 no_undefined_flag=' ${wl}-bernotok'
8646 allow_undefined_flag=' ${wl}-berok'
8647 # Exported symbols can be pulled into shared objects from archives
8648 whole_archive_flag_spec='$convenience'
8649 archive_cmds_need_lc=yes
8650 # This is similar to how AIX traditionally builds its shared libraries.
8651 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'
8657 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)'
8658 hardcode_libdir_flag_spec='-L$libdir'
8659 hardcode_minus_L=yes
8660 # see comment about different semantics on the GNU ld section
8665 export_dynamic_flag_spec=-rdynamic
8668 cygwin* | mingw* | pw32*)
8669 # When not using gcc, we currently assume that we are using
8670 # Microsoft Visual C++.
8671 # hardcode_libdir_flag_spec is actually meaningless, as there is
8672 # no search path for DLLs.
8673 hardcode_libdir_flag_spec=' '
8674 allow_undefined_flag=unsupported
8675 # Tell ltmain to make .lib files, not .a files.
8677 # Tell ltmain to make .dll files, not .so files.
8679 # FIXME: Setting linknames here is a bad hack.
8680 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8681 # The linker will automatically build a .lib file if we build a DLL.
8682 old_archive_From_new_cmds='true'
8683 # FIXME: Should let the user specify the lib program.
8684 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8685 fix_srcfile_path='`cygpath -w "$srcfile"`'
8686 enable_shared_with_static_runtimes=yes
8689 darwin* | rhapsody*)
8691 rhapsody* | darwin1.[012])
8692 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8695 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8696 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8698 case ${MACOSX_DEPLOYMENT_TARGET} in
8700 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8703 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8709 archive_cmds_need_lc=no
8711 hardcode_automatic=yes
8712 hardcode_shlibpath_var=unsupported
8713 whole_archive_flag_spec=''
8714 link_all_deplibs=yes
8715 if test "$GCC" = yes ; then
8716 output_verbose_link_cmd='echo'
8717 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8718 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8719 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}"
8720 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}"
8722 case $cc_basename in
8724 output_verbose_link_cmd='echo'
8725 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8726 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8727 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8728 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}'
8729 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}'
8739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740 hardcode_libdir_flag_spec='-L$libdir'
8741 hardcode_shlibpath_var=no
8748 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8749 # support. Future versions do this automatically, but an explicit c++rt0.o
8750 # does not break anything, and helps significantly (at the cost of a little
8753 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8754 hardcode_libdir_flag_spec='-R$libdir'
8756 hardcode_shlibpath_var=no
8759 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8761 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8763 hardcode_minus_L=yes
8764 hardcode_shlibpath_var=no
8767 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8768 freebsd* | dragonfly*)
8769 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8770 hardcode_libdir_flag_spec='-R$libdir'
8772 hardcode_shlibpath_var=no
8776 if test "$GCC" = yes; then
8777 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'
8779 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'
8781 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8782 hardcode_libdir_separator=:
8785 # hardcode_minus_L: Not really in the search PATH,
8786 # but as the default location of the library.
8787 hardcode_minus_L=yes
8788 export_dynamic_flag_spec='${wl}-E'
8792 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8793 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8795 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8797 if test "$with_gnu_ld" = no; then
8798 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8799 hardcode_libdir_separator=:
8802 export_dynamic_flag_spec='${wl}-E'
8804 # hardcode_minus_L: Not really in the search PATH,
8805 # but as the default location of the library.
8806 hardcode_minus_L=yes
8811 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8814 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8817 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8820 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8826 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8829 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8832 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8836 if test "$with_gnu_ld" = no; then
8837 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8838 hardcode_libdir_separator=:
8842 hardcode_libdir_flag_spec_ld='+b $libdir'
8844 hardcode_shlibpath_var=no
8848 export_dynamic_flag_spec='${wl}-E'
8850 # hardcode_minus_L: Not really in the search PATH,
8851 # but as the default location of the library.
8852 hardcode_minus_L=yes
8858 irix5* | irix6* | nonstopux*)
8859 if test "$GCC" = yes; then
8860 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'
8862 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'
8863 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8866 hardcode_libdir_separator=:
8867 link_all_deplibs=yes
8870 netbsd* | netbsdelf*-gnu)
8871 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8872 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8874 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8876 hardcode_libdir_flag_spec='-R$libdir'
8878 hardcode_shlibpath_var=no
8882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8885 hardcode_libdir_separator=:
8886 hardcode_shlibpath_var=no
8890 if test -f /usr/libexec/ld.so; then
8892 hardcode_shlibpath_var=no
8893 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8894 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8895 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8896 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8897 export_dynamic_flag_spec='${wl}-E'
8900 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8902 hardcode_libdir_flag_spec='-R$libdir'
8905 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8906 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8916 hardcode_libdir_flag_spec='-L$libdir'
8917 hardcode_minus_L=yes
8918 allow_undefined_flag=unsupported
8919 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'
8920 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8924 if test "$GCC" = yes; then
8925 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8926 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'
8928 allow_undefined_flag=' -expect_unresolved \*'
8929 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'
8931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8932 hardcode_libdir_separator=:
8935 osf4* | osf5*) # as osf3* with the addition of -msym flag
8936 if test "$GCC" = yes; then
8937 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8938 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'
8939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8941 allow_undefined_flag=' -expect_unresolved \*'
8942 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'
8943 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8944 $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'
8946 # Both c and cxx compiler support -rpath directly
8947 hardcode_libdir_flag_spec='-rpath $libdir'
8949 hardcode_libdir_separator=:
8953 no_undefined_flag=' -z text'
8954 if test "$GCC" = yes; then
8956 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8957 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8958 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8961 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8962 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8963 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8965 hardcode_libdir_flag_spec='-R$libdir'
8966 hardcode_shlibpath_var=no
8968 solaris2.[0-5] | solaris2.[0-5].*) ;;
8970 # The compiler driver will combine and reorder linker options,
8971 # but understands `-z linker_flag'. GCC discards it without `$wl',
8972 # but is careful enough not to reorder.
8973 # Supported since Solaris 2.6 (maybe 2.5.1?)
8974 if test "$GCC" = yes; then
8975 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8977 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8981 link_all_deplibs=yes
8985 if test "x$host_vendor" = xsequent; then
8986 # Use $CC to link under sequent, because it throws in some extra .o
8987 # files that make .init and .fini sections work.
8988 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8990 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8992 hardcode_libdir_flag_spec='-L$libdir'
8994 hardcode_minus_L=yes
8995 hardcode_shlibpath_var=no
8999 case $host_vendor in
9001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9002 hardcode_direct=yes # is this really true???
9005 ## LD is ld it makes a PLAMLIB
9006 ## CC just makes a GrossModule.
9007 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9008 reload_cmds='$CC -r -o $output$reload_objs'
9012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9013 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9016 runpath_var='LD_RUN_PATH'
9017 hardcode_shlibpath_var=no
9021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9022 hardcode_shlibpath_var=no
9023 export_dynamic_flag_spec='-Bexport'
9027 if test -d /usr/nec; then
9028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9029 hardcode_shlibpath_var=no
9030 runpath_var=LD_RUN_PATH
9031 hardcode_runpath_var=yes
9036 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9037 no_undefined_flag='${wl}-z,text'
9038 archive_cmds_need_lc=no
9039 hardcode_shlibpath_var=no
9040 runpath_var='LD_RUN_PATH'
9042 if test "$GCC" = yes; then
9043 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9044 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9046 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9047 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9051 sysv5* | sco3.2v5* | sco5v6*)
9052 # Note: We can NOT use -z defs as we might desire, because we do not
9053 # link with -lc, and that would cause any symbols used from libc to
9054 # always be unresolved, which means just about no library would
9055 # ever link correctly. If we're not using GNU ld we use -z text
9056 # though, which does catch some bad symbols but isn't as heavy-handed
9058 no_undefined_flag='${wl}-z,text'
9059 allow_undefined_flag='${wl}-z,nodefs'
9060 archive_cmds_need_lc=no
9061 hardcode_shlibpath_var=no
9062 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9063 hardcode_libdir_separator=':'
9064 link_all_deplibs=yes
9065 export_dynamic_flag_spec='${wl}-Bexport'
9066 runpath_var='LD_RUN_PATH'
9068 if test "$GCC" = yes; then
9069 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9070 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9072 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9073 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079 hardcode_libdir_flag_spec='-L$libdir'
9080 hardcode_shlibpath_var=no
9089 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9090 echo "${ECHO_T}$ld_shlibs" >&6; }
9091 test "$ld_shlibs" = no && can_build_shared=no
9094 # Do we need to explicitly link libc?
9096 case "x$archive_cmds_need_lc" in
9098 # Assume -lc should be added
9099 archive_cmds_need_lc=yes
9101 if test "$enable_shared" = yes && test "$GCC" = yes; then
9102 case $archive_cmds in
9104 # FIXME: we may have to deal with multi-command sequences.
9107 # Test whether the compiler implicitly links with -lc since on some
9108 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9109 # to ld, don't add -lc before -lgcc.
9110 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9111 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9116 (eval $ac_compile) 2>&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } 2>conftest.err; then
9122 libobjs=conftest.$ac_objext
9124 wl=$lt_prog_compiler_wl
9125 pic_flag=$lt_prog_compiler_pic
9131 lt_save_allow_undefined_flag=$allow_undefined_flag
9132 allow_undefined_flag=
9133 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9134 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }
9139 archive_cmds_need_lc=no
9141 archive_cmds_need_lc=yes
9143 allow_undefined_flag=$lt_save_allow_undefined_flag
9145 cat conftest.err 1>&5
9148 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9149 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9156 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9157 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9159 libname_spec='lib$name'
9167 shlibpath_overrides_runpath=unknown
9169 dynamic_linker="$host_os ld.so"
9170 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9172 if test "$GCC" = yes; then
9174 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9175 *) lt_awk_arg="/^libraries:/" ;;
9177 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9178 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9179 # if the path contains ";" then we assume it to be the separator
9180 # otherwise default to the standard path separator (i.e. ":") - it is
9181 # assumed that no part of a normal pathname contains ";" but that should
9182 # okay in the real world where ";" in dirpaths is itself problematic.
9183 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9185 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9187 # Ok, now we have the path, separated by spaces, we can step through it
9188 # and add multilib dir if necessary.
9189 lt_tmp_lt_search_path_spec=
9190 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9191 for lt_sys_path in $lt_search_path_spec; do
9192 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9193 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9195 test -d "$lt_sys_path" && \
9196 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9199 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9200 BEGIN {RS=" "; FS="/|\n";} {
9203 for (lt_i = NF; lt_i > 0; lt_i--) {
9204 if ($lt_i != "" && $lt_i != ".") {
9205 if ($lt_i == "..") {
9208 if (lt_count == 0) {
9209 lt_foo="/" $lt_i lt_foo;
9216 if (lt_foo != "") { lt_freq[lt_foo]++; }
9217 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9219 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9221 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9223 need_lib_prefix=unknown
9224 hardcode_into_libs=no
9226 # when you set need_version to no, make sure it does not cause -set_version
9227 # flags to be left without arguments
9228 need_version=unknown
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9234 shlibpath_var=LIBPATH
9236 # AIX 3 has no versioning support, so we append a major version to the name.
9237 soname_spec='${libname}${release}${shared_ext}$major'
9244 hardcode_into_libs=yes
9245 if test "$host_cpu" = ia64; then
9246 # AIX 5 supports IA64
9247 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9248 shlibpath_var=LD_LIBRARY_PATH
9250 # With GCC up to 2.95.x, collect2 would create an import file
9251 # for dependence libraries. The import file would start with
9252 # the line `#! .'. This would cause the generated library to
9253 # depend on `.', always an invalid library. This was fixed in
9254 # development snapshots of GCC prior to 3.0.
9256 aix4 | aix4.[01] | aix4.[01].*)
9257 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9259 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9266 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9267 # soname into executable. Probably we can add versioning support to
9268 # collect2, so additional links can be useful in future.
9269 if test "$aix_use_runtimelinking" = yes; then
9270 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9271 # instead of lib<name>.a to let people know that these are not
9272 # typical AIX shared libraries.
9273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9275 # We preserve .a as extension for shared libraries through AIX4.2
9276 # and later when we are not doing run time linking.
9277 library_names_spec='${libname}${release}.a $libname.a'
9278 soname_spec='${libname}${release}${shared_ext}$major'
9280 shlibpath_var=LIBPATH
9285 library_names_spec='$libname.ixlibrary $libname.a'
9286 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9287 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'
9291 library_names_spec='${libname}${shared_ext}'
9292 dynamic_linker="$host_os ld.so"
9293 shlibpath_var=LIBRARY_PATH
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9300 soname_spec='${libname}${release}${shared_ext}$major'
9301 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9304 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9305 # the default ld.so.conf also contains /usr/contrib/lib and
9306 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9307 # libtool to hard-code these into programs
9310 cygwin* | mingw* | pw32*)
9311 version_type=windows
9316 case $GCC,$host_os in
9317 yes,cygwin* | yes,mingw* | yes,pw32*)
9318 library_names_spec='$libname.dll.a'
9319 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9320 postinstall_cmds='base_file=`basename \${file}`~
9321 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9322 dldir=$destdir/`dirname \$dlpath`~
9323 test -d \$dldir || mkdir -p \$dldir~
9324 $install_prog $dir/$dlname \$dldir/$dlname~
9325 chmod a+x \$dldir/$dlname'
9326 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9327 dlpath=$dir/\$dldll~
9329 shlibpath_overrides_runpath=yes
9333 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9334 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9335 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9338 # MinGW DLLs use traditional 'lib' prefix
9339 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9340 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9341 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9342 # It is most probably a Windows format PATH printed by
9343 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9344 # path with ; separators, and with drive letters. We can handle the
9345 # drive letters (cygwin fileutils understands them), so leave them,
9346 # especially as we might pass files found there to a mingw objdump,
9347 # which wouldn't understand a cygwinified path. Ahh.
9348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9354 # pw32 DLLs use 'pw' prefix rather than 'lib'
9355 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9361 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9364 dynamic_linker='Win32 ld.exe'
9365 # FIXME: first we should search . and the directory the executable is in
9369 darwin* | rhapsody*)
9370 dynamic_linker="$host_os dyld"
9374 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9375 soname_spec='${libname}${release}${major}$shared_ext'
9376 shlibpath_overrides_runpath=yes
9377 shlibpath_var=DYLD_LIBRARY_PATH
9378 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9380 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9381 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9389 soname_spec='${libname}${release}${shared_ext}$major'
9390 shlibpath_var=LD_LIBRARY_PATH
9397 freebsd* | dragonfly*)
9398 # DragonFly does not have aout. When/if they implement a new
9399 # versioning mechanism, adjust this.
9400 if test -x /usr/bin/objformat; then
9401 objformat=`/usr/bin/objformat`
9404 freebsd[123]*) objformat=aout ;;
9408 version_type=freebsd-$objformat
9409 case $version_type in
9411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9420 shlibpath_var=LD_LIBRARY_PATH
9423 shlibpath_overrides_runpath=yes
9425 freebsd3.[01]* | freebsdelf3.[01]*)
9426 shlibpath_overrides_runpath=yes
9427 hardcode_into_libs=yes
9429 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9430 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9431 shlibpath_overrides_runpath=no
9432 hardcode_into_libs=yes
9434 *) # from 4.6 on, and DragonFly
9435 shlibpath_overrides_runpath=yes
9436 hardcode_into_libs=yes
9445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9446 soname_spec='${libname}${release}${shared_ext}$major'
9447 shlibpath_var=LD_LIBRARY_PATH
9448 hardcode_into_libs=yes
9451 hpux9* | hpux10* | hpux11*)
9452 # Give a soname corresponding to the major version so that dld.sl refuses to
9453 # link against other versions.
9460 hardcode_into_libs=yes
9461 dynamic_linker="$host_os dld.so"
9462 shlibpath_var=LD_LIBRARY_PATH
9463 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9466 if test "X$HPUX_IA64_MODE" = X32; then
9467 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9469 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9471 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9475 hardcode_into_libs=yes
9476 dynamic_linker="$host_os dld.sl"
9477 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9478 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9480 soname_spec='${libname}${release}${shared_ext}$major'
9481 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9482 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9486 dynamic_linker="$host_os dld.sl"
9487 shlibpath_var=SHLIB_PATH
9488 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9490 soname_spec='${libname}${release}${shared_ext}$major'
9493 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9494 postinstall_cmds='chmod 555 $lib'
9501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9502 soname_spec='${libname}${release}${shared_ext}$major'
9503 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9504 shlibpath_var=LD_LIBRARY_PATH
9505 shlibpath_overrides_runpath=no
9506 hardcode_into_libs=yes
9509 irix5* | irix6* | nonstopux*)
9511 nonstopux*) version_type=nonstopux ;;
9513 if test "$lt_cv_prog_gnu_ld" = yes; then
9521 soname_spec='${libname}${release}${shared_ext}$major'
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9524 irix5* | nonstopux*)
9528 case $LD in # libtool.m4 will add one of these switches to LD
9529 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9530 libsuff= shlibsuff= libmagic=32-bit;;
9531 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9532 libsuff=32 shlibsuff=N32 libmagic=N32;;
9533 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9534 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9535 *) libsuff= shlibsuff= libmagic=never-match;;
9539 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9540 shlibpath_overrides_runpath=no
9541 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9542 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9543 hardcode_into_libs=yes
9546 # No shared lib support for Linux oldld, aout, or coff.
9547 linux*oldld* | linux*aout* | linux*coff*)
9551 # This must be Linux ELF.
9552 linux* | k*bsd*-gnu)
9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9557 soname_spec='${libname}${release}${shared_ext}$major'
9558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9559 shlibpath_var=LD_LIBRARY_PATH
9560 shlibpath_overrides_runpath=no
9561 # This implies no fast_install, which is unacceptable.
9562 # Some rework will be needed to allow for fast_install
9563 # before this can be enabled.
9564 hardcode_into_libs=yes
9566 # Append ld.so.conf contents to the search path
9567 if test -f /etc/ld.so.conf; then
9568 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' ' '`
9569 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9572 # We used to test for /lib/ld.so.1 and disable shared libraries on
9573 # powerpc, because MkLinux only supported shared libraries with the
9574 # GNU dynamic linker. Since this was broken with cross compilers,
9575 # most powerpc-linux boxes support dynamic linking these days and
9576 # people can always --disable-shared, the test was removed, and we
9577 # assume the GNU/Linux dynamic linker is in use.
9578 dynamic_linker='GNU/Linux ld.so'
9585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9586 soname_spec='${libname}${release}${shared_ext}$major'
9587 shlibpath_var=LD_LIBRARY_PATH
9588 shlibpath_overrides_runpath=no
9589 hardcode_into_libs=yes
9590 dynamic_linker='NetBSD ld.elf_so'
9597 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9600 dynamic_linker='NetBSD (a.out) ld.so'
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9603 soname_spec='${libname}${release}${shared_ext}$major'
9604 dynamic_linker='NetBSD ld.elf_so'
9606 shlibpath_var=LD_LIBRARY_PATH
9607 shlibpath_overrides_runpath=yes
9608 hardcode_into_libs=yes
9613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9614 shlibpath_var=LD_LIBRARY_PATH
9615 shlibpath_overrides_runpath=yes
9622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9623 soname_spec='${libname}${release}${shared_ext}$major'
9624 shlibpath_var=LD_LIBRARY_PATH
9625 shlibpath_overrides_runpath=yes
9630 sys_lib_dlsearch_path_spec="/usr/lib"
9632 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9634 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9635 *) need_version=no ;;
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9639 shlibpath_var=LD_LIBRARY_PATH
9640 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9642 openbsd2.[89] | openbsd2.[89].*)
9643 shlibpath_overrides_runpath=no
9646 shlibpath_overrides_runpath=yes
9650 shlibpath_overrides_runpath=yes
9655 libname_spec='$name'
9658 library_names_spec='$libname${shared_ext} $libname.a'
9659 dynamic_linker='OS/2 ld.exe'
9660 shlibpath_var=LIBPATH
9663 osf3* | osf4* | osf5*)
9667 soname_spec='${libname}${release}${shared_ext}$major'
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669 shlibpath_var=LD_LIBRARY_PATH
9670 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9671 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683 soname_spec='${libname}${release}${shared_ext}$major'
9684 shlibpath_var=LD_LIBRARY_PATH
9685 shlibpath_overrides_runpath=yes
9686 hardcode_into_libs=yes
9687 # ldd complains unless libraries are executable
9688 postinstall_cmds='chmod +x $lib'
9693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9694 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9695 shlibpath_var=LD_LIBRARY_PATH
9696 shlibpath_overrides_runpath=yes
9697 if test "$with_gnu_ld" = yes; then
9705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9706 soname_spec='${libname}${release}${shared_ext}$major'
9707 shlibpath_var=LD_LIBRARY_PATH
9708 case $host_vendor in
9710 shlibpath_overrides_runpath=no
9712 export_dynamic_flag_spec='${wl}-Blargedynsym'
9713 runpath_var=LD_RUN_PATH
9721 shlibpath_overrides_runpath=no
9722 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9728 if test -d /usr/nec ;then
9730 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9731 soname_spec='$libname${shared_ext}.$major'
9732 shlibpath_var=LD_LIBRARY_PATH
9736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9737 version_type=freebsd-elf
9740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9741 soname_spec='${libname}${release}${shared_ext}$major'
9742 shlibpath_var=LD_LIBRARY_PATH
9743 hardcode_into_libs=yes
9744 if test "$with_gnu_ld" = yes; then
9745 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9746 shlibpath_overrides_runpath=no
9748 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9749 shlibpath_overrides_runpath=yes
9752 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9756 sys_lib_dlsearch_path_spec='/usr/lib'
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9762 soname_spec='${libname}${release}${shared_ext}$major'
9763 shlibpath_var=LD_LIBRARY_PATH
9770 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9771 echo "${ECHO_T}$dynamic_linker" >&6; }
9772 test "$dynamic_linker" = no && can_build_shared=no
9774 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9777 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9780 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9781 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9784 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9787 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9789 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9790 if test "$GCC" = yes; then
9791 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9794 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9795 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9797 if test -n "$hardcode_libdir_flag_spec" || \
9798 test -n "$runpath_var" || \
9799 test "X$hardcode_automatic" = "Xyes" ; then
9801 # We can hardcode non-existant directories.
9802 if test "$hardcode_direct" != no &&
9803 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9804 # have to relink, otherwise we might link with an installed library
9805 # when we should be linking with a yet-to-be-installed one
9806 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9807 test "$hardcode_minus_L" != no; then
9808 # Linking always hardcodes the temporary library directory.
9809 hardcode_action=relink
9811 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9812 hardcode_action=immediate
9815 # We cannot hardcode anything, or else we can only hardcode existing
9817 hardcode_action=unsupported
9819 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9820 echo "${ECHO_T}$hardcode_action" >&6; }
9822 if test "$hardcode_action" = relink; then
9823 # Fast installation is not supported
9824 enable_fast_install=no
9825 elif test "$shlibpath_overrides_runpath" = yes ||
9826 test "$enable_shared" = no; then
9827 # Fast installation is not necessary
9828 enable_fast_install=needless
9833 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9834 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9835 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9836 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9837 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9838 { echo "$as_me:$LINENO: result: yes" >&5
9839 echo "${ECHO_T}yes" >&6; }
9841 # FIXME - insert some real tests, host_os isn't really good enough
9844 if test -n "$STRIP" ; then
9845 striplib="$STRIP -x"
9846 old_striplib="$STRIP -S"
9847 { echo "$as_me:$LINENO: result: yes" >&5
9848 echo "${ECHO_T}yes" >&6; }
9850 { echo "$as_me:$LINENO: result: no" >&5
9851 echo "${ECHO_T}no" >&6; }
9855 { echo "$as_me:$LINENO: result: no" >&5
9856 echo "${ECHO_T}no" >&6; }
9861 if test "x$enable_dlopen" != xyes; then
9862 enable_dlopen=unknown
9863 enable_dlopen_self=unknown
9864 enable_dlopen_self_static=unknown
9871 lt_cv_dlopen="load_add_on"
9873 lt_cv_dlopen_self=yes
9877 lt_cv_dlopen="LoadLibrary"
9882 lt_cv_dlopen="dlopen"
9887 # if libdl is installed we need to link against it
9888 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9889 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9890 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9893 ac_check_lib_save_LIBS=$LIBS
9895 cat >conftest.$ac_ext <<_ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h. */
9902 /* Override any GCC internal prototype to avoid an error.
9903 Use char because int might match the return type of a GCC
9904 builtin and then its argument prototype would still apply. */
9917 rm -f conftest.$ac_objext conftest$ac_exeext
9918 if { (ac_try="$ac_link"
9920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921 *) ac_try_echo=$ac_try;;
9923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924 (eval "$ac_link") 2>conftest.er1
9926 grep -v '^ *+' conftest.er1 >conftest.err
9928 cat conftest.err >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } && {
9931 test -z "$ac_c_werror_flag" ||
9932 test ! -s conftest.err
9933 } && test -s conftest$ac_exeext &&
9934 $as_test_x conftest$ac_exeext; then
9935 ac_cv_lib_dl_dlopen=yes
9937 echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9940 ac_cv_lib_dl_dlopen=no
9943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9944 conftest$ac_exeext conftest.$ac_ext
9945 LIBS=$ac_check_lib_save_LIBS
9947 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9948 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9949 if test $ac_cv_lib_dl_dlopen = yes; then
9950 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9955 lt_cv_dlopen_self=yes
9962 { echo "$as_me:$LINENO: checking for shl_load" >&5
9963 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9964 if test "${ac_cv_func_shl_load+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 cat >conftest.$ac_ext <<_ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9973 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9975 #define shl_load innocuous_shl_load
9977 /* System header to define __stub macros and hopefully few prototypes,
9978 which can conflict with char shl_load (); below.
9979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9980 <limits.h> exists even on freestanding compilers. */
9983 # include <limits.h>
9985 # include <assert.h>
9990 /* Override any GCC internal prototype to avoid an error.
9991 Use char because int might match the return type of a GCC
9992 builtin and then its argument prototype would still apply. */
9997 /* The GNU C library defines this for functions which it implements
9998 to always fail with ENOSYS. Some functions are actually named
9999 something starting with __ and the normal name is an alias. */
10000 #if defined __stub_shl_load || defined __stub___shl_load
10007 return shl_load ();
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (ac_try="$ac_link"
10014 case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_link") 2>conftest.er1
10021 grep -v '^ *+' conftest.er1 >conftest.err
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } && {
10026 test -z "$ac_c_werror_flag" ||
10027 test ! -s conftest.err
10028 } && test -s conftest$ac_exeext &&
10029 $as_test_x conftest$ac_exeext; then
10030 ac_cv_func_shl_load=yes
10032 echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10035 ac_cv_func_shl_load=no
10038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10039 conftest$ac_exeext conftest.$ac_ext
10041 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10042 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10043 if test $ac_cv_func_shl_load = yes; then
10044 lt_cv_dlopen="shl_load"
10046 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10047 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10048 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 ac_check_lib_save_LIBS=$LIBS
10053 cat >conftest.$ac_ext <<_ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10060 /* Override any GCC internal prototype to avoid an error.
10061 Use char because int might match the return type of a GCC
10062 builtin and then its argument prototype would still apply. */
10070 return shl_load ();
10075 rm -f conftest.$ac_objext conftest$ac_exeext
10076 if { (ac_try="$ac_link"
10077 case "(($ac_try" in
10078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079 *) ac_try_echo=$ac_try;;
10081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082 (eval "$ac_link") 2>conftest.er1
10084 grep -v '^ *+' conftest.er1 >conftest.err
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } && {
10089 test -z "$ac_c_werror_flag" ||
10090 test ! -s conftest.err
10091 } && test -s conftest$ac_exeext &&
10092 $as_test_x conftest$ac_exeext; then
10093 ac_cv_lib_dld_shl_load=yes
10095 echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10098 ac_cv_lib_dld_shl_load=no
10101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10102 conftest$ac_exeext conftest.$ac_ext
10103 LIBS=$ac_check_lib_save_LIBS
10105 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10106 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10107 if test $ac_cv_lib_dld_shl_load = yes; then
10108 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10110 { echo "$as_me:$LINENO: checking for dlopen" >&5
10111 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10112 if test "${ac_cv_func_dlopen+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10115 cat >conftest.$ac_ext <<_ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10123 #define dlopen innocuous_dlopen
10125 /* System header to define __stub macros and hopefully few prototypes,
10126 which can conflict with char dlopen (); below.
10127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10128 <limits.h> exists even on freestanding compilers. */
10131 # include <limits.h>
10133 # include <assert.h>
10138 /* Override any GCC internal prototype to avoid an error.
10139 Use char because int might match the return type of a GCC
10140 builtin and then its argument prototype would still apply. */
10145 /* The GNU C library defines this for functions which it implements
10146 to always fail with ENOSYS. Some functions are actually named
10147 something starting with __ and the normal name is an alias. */
10148 #if defined __stub_dlopen || defined __stub___dlopen
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (ac_try="$ac_link"
10162 case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_link") 2>conftest.er1
10169 grep -v '^ *+' conftest.er1 >conftest.err
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } && {
10174 test -z "$ac_c_werror_flag" ||
10175 test ! -s conftest.err
10176 } && test -s conftest$ac_exeext &&
10177 $as_test_x conftest$ac_exeext; then
10178 ac_cv_func_dlopen=yes
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10183 ac_cv_func_dlopen=no
10186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10187 conftest$ac_exeext conftest.$ac_ext
10189 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10190 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10191 if test $ac_cv_func_dlopen = yes; then
10192 lt_cv_dlopen="dlopen"
10194 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10195 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10196 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 ac_check_lib_save_LIBS=$LIBS
10201 cat >conftest.$ac_ext <<_ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h. */
10208 /* Override any GCC internal prototype to avoid an error.
10209 Use char because int might match the return type of a GCC
10210 builtin and then its argument prototype would still apply. */
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (ac_try="$ac_link"
10225 case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_link") 2>conftest.er1
10232 grep -v '^ *+' conftest.er1 >conftest.err
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } && {
10237 test -z "$ac_c_werror_flag" ||
10238 test ! -s conftest.err
10239 } && test -s conftest$ac_exeext &&
10240 $as_test_x conftest$ac_exeext; then
10241 ac_cv_lib_dl_dlopen=yes
10243 echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.$ac_ext >&5
10246 ac_cv_lib_dl_dlopen=no
10249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10250 conftest$ac_exeext conftest.$ac_ext
10251 LIBS=$ac_check_lib_save_LIBS
10253 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10254 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10255 if test $ac_cv_lib_dl_dlopen = yes; then
10256 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10258 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10259 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10260 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 ac_check_lib_save_LIBS=$LIBS
10264 LIBS="-lsvld $LIBS"
10265 cat >conftest.$ac_ext <<_ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h. */
10272 /* Override any GCC internal prototype to avoid an error.
10273 Use char because int might match the return type of a GCC
10274 builtin and then its argument prototype would still apply. */
10287 rm -f conftest.$ac_objext conftest$ac_exeext
10288 if { (ac_try="$ac_link"
10289 case "(($ac_try" in
10290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10291 *) ac_try_echo=$ac_try;;
10293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10294 (eval "$ac_link") 2>conftest.er1
10296 grep -v '^ *+' conftest.er1 >conftest.err
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } && {
10301 test -z "$ac_c_werror_flag" ||
10302 test ! -s conftest.err
10303 } && test -s conftest$ac_exeext &&
10304 $as_test_x conftest$ac_exeext; then
10305 ac_cv_lib_svld_dlopen=yes
10307 echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10310 ac_cv_lib_svld_dlopen=no
10313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10314 conftest$ac_exeext conftest.$ac_ext
10315 LIBS=$ac_check_lib_save_LIBS
10317 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10318 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10319 if test $ac_cv_lib_svld_dlopen = yes; then
10320 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10322 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10323 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10324 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 ac_check_lib_save_LIBS=$LIBS
10329 cat >conftest.$ac_ext <<_ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h. */
10336 /* Override any GCC internal prototype to avoid an error.
10337 Use char because int might match the return type of a GCC
10338 builtin and then its argument prototype would still apply. */
10346 return dld_link ();
10351 rm -f conftest.$ac_objext conftest$ac_exeext
10352 if { (ac_try="$ac_link"
10353 case "(($ac_try" in
10354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358 (eval "$ac_link") 2>conftest.er1
10360 grep -v '^ *+' conftest.er1 >conftest.err
10362 cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } && {
10365 test -z "$ac_c_werror_flag" ||
10366 test ! -s conftest.err
10367 } && test -s conftest$ac_exeext &&
10368 $as_test_x conftest$ac_exeext; then
10369 ac_cv_lib_dld_dld_link=yes
10371 echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10374 ac_cv_lib_dld_dld_link=no
10377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10378 conftest$ac_exeext conftest.$ac_ext
10379 LIBS=$ac_check_lib_save_LIBS
10381 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10382 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10383 if test $ac_cv_lib_dld_dld_link = yes; then
10384 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10405 if test "x$lt_cv_dlopen" != xno; then
10411 case $lt_cv_dlopen in
10413 save_CPPFLAGS="$CPPFLAGS"
10414 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10416 save_LDFLAGS="$LDFLAGS"
10417 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10420 LIBS="$lt_cv_dlopen_libs $LIBS"
10422 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10423 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10424 if test "${lt_cv_dlopen_self+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 if test "$cross_compiling" = yes; then :
10428 lt_cv_dlopen_self=cross
10430 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10431 lt_status=$lt_dlunknown
10432 cat > conftest.$ac_ext <<EOF
10433 #line 10433 "configure"
10434 #include "confdefs.h"
10443 # define LT_DLGLOBAL RTLD_GLOBAL
10446 # define LT_DLGLOBAL DL_GLOBAL
10448 # define LT_DLGLOBAL 0
10452 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10453 find out it does not work in some platform. */
10454 #ifndef LT_DLLAZY_OR_NOW
10456 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10459 # define LT_DLLAZY_OR_NOW DL_LAZY
10462 # define LT_DLLAZY_OR_NOW RTLD_NOW
10465 # define LT_DLLAZY_OR_NOW DL_NOW
10467 # define LT_DLLAZY_OR_NOW 0
10475 extern "C" void exit (int);
10478 void fnord() { int i=42;}
10481 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10482 int status = $lt_dlunknown;
10486 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10487 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10488 /* dlclose (self); */
10496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10497 (eval $ac_link) 2>&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10501 (./conftest; exit; ) >&5 2>/dev/null
10503 case x$lt_status in
10504 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10505 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10506 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10509 # compilation failed
10510 lt_cv_dlopen_self=no
10517 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10518 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10520 if test "x$lt_cv_dlopen_self" = xyes; then
10521 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10522 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10523 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10524 if test "${lt_cv_dlopen_self_static+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 if test "$cross_compiling" = yes; then :
10528 lt_cv_dlopen_self_static=cross
10530 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10531 lt_status=$lt_dlunknown
10532 cat > conftest.$ac_ext <<EOF
10533 #line 10533 "configure"
10534 #include "confdefs.h"
10543 # define LT_DLGLOBAL RTLD_GLOBAL
10546 # define LT_DLGLOBAL DL_GLOBAL
10548 # define LT_DLGLOBAL 0
10552 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10553 find out it does not work in some platform. */
10554 #ifndef LT_DLLAZY_OR_NOW
10556 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10559 # define LT_DLLAZY_OR_NOW DL_LAZY
10562 # define LT_DLLAZY_OR_NOW RTLD_NOW
10565 # define LT_DLLAZY_OR_NOW DL_NOW
10567 # define LT_DLLAZY_OR_NOW 0
10575 extern "C" void exit (int);
10578 void fnord() { int i=42;}
10581 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10582 int status = $lt_dlunknown;
10586 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10587 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10588 /* dlclose (self); */
10596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10597 (eval $ac_link) 2>&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10601 (./conftest; exit; ) >&5 2>/dev/null
10603 case x$lt_status in
10604 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10605 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10606 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10609 # compilation failed
10610 lt_cv_dlopen_self_static=no
10617 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10618 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10621 CPPFLAGS="$save_CPPFLAGS"
10622 LDFLAGS="$save_LDFLAGS"
10627 case $lt_cv_dlopen_self in
10628 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10629 *) enable_dlopen_self=unknown ;;
10632 case $lt_cv_dlopen_self_static in
10633 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10634 *) enable_dlopen_self_static=unknown ;;
10639 # Report which library types will actually be built
10640 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10641 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10642 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10643 echo "${ECHO_T}$can_build_shared" >&6; }
10645 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10646 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10647 test "$can_build_shared" = "no" && enable_shared=no
10649 # On AIX, shared libraries and static libraries use the same namespace, and
10650 # are all built from PIC.
10653 test "$enable_shared" = yes && enable_static=no
10654 if test -n "$RANLIB"; then
10655 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10656 postinstall_cmds='$RANLIB $lib'
10661 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10662 test "$enable_shared" = yes && enable_static=no
10666 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10667 echo "${ECHO_T}$enable_shared" >&6; }
10669 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10670 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10671 # Make sure either enable_shared or enable_static is yes.
10672 test "$enable_shared" = yes || enable_static=yes
10673 { echo "$as_me:$LINENO: result: $enable_static" >&5
10674 echo "${ECHO_T}$enable_static" >&6; }
10676 # The else clause should only fire when bootstrapping the
10677 # libtool distribution, otherwise you forgot to ship ltmain.sh
10678 # with your package, and you will get complaints that there are
10679 # no rules to generate ltmain.sh.
10680 if test -f "$ltmain"; then
10681 # See if we are running on zsh, and set the options which allow our commands through
10682 # without removal of \ escapes.
10683 if test -n "${ZSH_VERSION+set}" ; then
10684 setopt NO_GLOB_SUBST
10686 # Now quote all the things that may contain metacharacters while being
10687 # careful not to overquote the AC_SUBSTed values. We take copies of the
10688 # variables and quote the copies for generation of the libtool script.
10689 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10691 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10692 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10693 deplibs_check_method reload_flag reload_cmds need_locks \
10694 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10695 lt_cv_sys_global_symbol_to_c_name_address \
10696 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10697 old_postinstall_cmds old_postuninstall_cmds \
10701 lt_prog_compiler_wl \
10702 lt_prog_compiler_pic \
10703 lt_prog_compiler_static \
10704 lt_prog_compiler_no_builtin_flag \
10705 export_dynamic_flag_spec \
10706 thread_safe_flag_spec \
10707 whole_archive_flag_spec \
10708 enable_shared_with_static_runtimes \
10710 old_archive_from_new_cmds \
10715 compiler_lib_search_path \
10716 compiler_lib_search_dirs \
10718 archive_expsym_cmds \
10720 postuninstall_cmds \
10721 old_archive_from_expsyms_cmds \
10722 allow_undefined_flag \
10723 no_undefined_flag \
10724 export_symbols_cmds \
10725 hardcode_libdir_flag_spec \
10726 hardcode_libdir_flag_spec_ld \
10727 hardcode_libdir_separator \
10728 hardcode_automatic \
10730 module_expsym_cmds \
10731 lt_cv_prog_compiler_c_o \
10734 include_expsyms; do
10737 old_archive_cmds | \
10738 old_archive_from_new_cmds | \
10740 archive_expsym_cmds | \
10742 module_expsym_cmds | \
10743 old_archive_from_expsyms_cmds | \
10744 export_symbols_cmds | \
10745 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10746 postinstall_cmds | postuninstall_cmds | \
10747 old_postinstall_cmds | old_postuninstall_cmds | \
10748 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10749 # Double-quote double-evaled strings.
10750 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10753 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10759 *'\$0 --fallback-echo"')
10760 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10764 cfgfile="${ofile}T"
10765 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10767 { echo "$as_me:$LINENO: creating $ofile" >&5
10768 echo "$as_me: creating $ofile" >&6;}
10770 cat <<__EOF__ >> "$cfgfile"
10773 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10774 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10775 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10777 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10778 # Free Software Foundation, Inc.
10780 # This file is part of GNU Libtool:
10781 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10783 # This program is free software; you can redistribute it and/or modify
10784 # it under the terms of the GNU General Public License as published by
10785 # the Free Software Foundation; either version 2 of the License, or
10786 # (at your option) any later version.
10788 # This program is distributed in the hope that it will be useful, but
10789 # WITHOUT ANY WARRANTY; without even the implied warranty of
10790 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10791 # General Public License for more details.
10793 # You should have received a copy of the GNU General Public License
10794 # along with this program; if not, write to the Free Software
10795 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10797 # As a special exception to the GNU General Public License, if you
10798 # distribute this file as part of a program that contains a
10799 # configuration script generated by Autoconf, you may include it under
10800 # the same distribution terms that you use for the rest of that program.
10802 # A sed program that does not truncate output.
10805 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10806 Xsed="$SED -e 1s/^X//"
10808 # The HP-UX ksh and POSIX shell print the target directory to stdout
10809 # if CDPATH is set.
10810 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10812 # The names of the tagged configurations supported by this script.
10815 # ### BEGIN LIBTOOL CONFIG
10817 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10819 # Shell to use when invoking shell scripts.
10822 # Whether or not to build shared libraries.
10823 build_libtool_libs=$enable_shared
10825 # Whether or not to build static libraries.
10826 build_old_libs=$enable_static
10828 # Whether or not to add -lc for building shared libraries.
10829 build_libtool_need_lc=$archive_cmds_need_lc
10831 # Whether or not to disallow shared libs when runtime libs are static
10832 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10834 # Whether or not to optimize for fast installation.
10835 fast_install=$enable_fast_install
10838 host_alias=$host_alias
10842 # The build system.
10843 build_alias=$build_alias
10847 # An echo program that does not interpret backslashes.
10852 AR_FLAGS=$lt_AR_FLAGS
10857 # LTCC compiler flags.
10858 LTCFLAGS=$lt_LTCFLAGS
10860 # A language-specific compiler.
10863 # Is the compiler the GNU C compiler?
10869 # The linker used to build libraries.
10872 # Whether we need hard or soft links.
10875 # A BSD-compatible nm program.
10878 # A symbol stripping program
10881 # Used to examine libraries when file_magic_cmd begins "file"
10882 MAGIC_CMD=$MAGIC_CMD
10884 # Used on cygwin: DLL creation program.
10887 # Used on cygwin: object dumper.
10890 # Used on cygwin: assembler.
10893 # The name of the directory that contains temporary libtool files.
10896 # How to create reloadable object files.
10897 reload_flag=$lt_reload_flag
10898 reload_cmds=$lt_reload_cmds
10900 # How to pass a linker flag through the compiler.
10901 wl=$lt_lt_prog_compiler_wl
10903 # Object file suffix (normally "o").
10904 objext="$ac_objext"
10906 # Old archive suffix (normally "a").
10909 # Shared library suffix (normally ".so").
10910 shrext_cmds='$shrext_cmds'
10912 # Executable file suffix (normally "").
10915 # Additional compiler flags for building library objects.
10916 pic_flag=$lt_lt_prog_compiler_pic
10919 # What is the maximum length of a command?
10920 max_cmd_len=$lt_cv_sys_max_cmd_len
10922 # Does compiler simultaneously support -c and -o options?
10923 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10925 # Must we lock files when doing compilation?
10926 need_locks=$lt_need_locks
10928 # Do we need the lib prefix for modules?
10929 need_lib_prefix=$need_lib_prefix
10931 # Do we need a version for libraries?
10932 need_version=$need_version
10934 # Whether dlopen is supported.
10935 dlopen_support=$enable_dlopen
10937 # Whether dlopen of programs is supported.
10938 dlopen_self=$enable_dlopen_self
10940 # Whether dlopen of statically linked programs is supported.
10941 dlopen_self_static=$enable_dlopen_self_static
10943 # Compiler flag to prevent dynamic linking.
10944 link_static_flag=$lt_lt_prog_compiler_static
10946 # Compiler flag to turn off builtin functions.
10947 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10949 # Compiler flag to allow reflexive dlopens.
10950 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10952 # Compiler flag to generate shared objects directly from archives.
10953 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10955 # Compiler flag to generate thread-safe objects.
10956 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10958 # Library versioning type.
10959 version_type=$version_type
10961 # Format of library name prefix.
10962 libname_spec=$lt_libname_spec
10964 # List of archive names. First name is the real one, the rest are links.
10965 # The last name is the one that the linker finds with -lNAME.
10966 library_names_spec=$lt_library_names_spec
10968 # The coded name of the library, if different from the real name.
10969 soname_spec=$lt_soname_spec
10971 # Commands used to build and install an old-style archive.
10973 old_archive_cmds=$lt_old_archive_cmds
10974 old_postinstall_cmds=$lt_old_postinstall_cmds
10975 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10977 # Create an old-style archive from a shared archive.
10978 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10980 # Create a temporary old-style archive to link instead of a shared archive.
10981 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10983 # Commands used to build and install a shared archive.
10984 archive_cmds=$lt_archive_cmds
10985 archive_expsym_cmds=$lt_archive_expsym_cmds
10986 postinstall_cmds=$lt_postinstall_cmds
10987 postuninstall_cmds=$lt_postuninstall_cmds
10989 # Commands used to build a loadable module (assumed same as above if empty)
10990 module_cmds=$lt_module_cmds
10991 module_expsym_cmds=$lt_module_expsym_cmds
10993 # Commands to strip libraries.
10994 old_striplib=$lt_old_striplib
10995 striplib=$lt_striplib
10997 # Dependencies to place before the objects being linked to create a
10999 predep_objects=$lt_predep_objects
11001 # Dependencies to place after the objects being linked to create a
11003 postdep_objects=$lt_postdep_objects
11005 # Dependencies to place before the objects being linked to create a
11007 predeps=$lt_predeps
11009 # Dependencies to place after the objects being linked to create a
11011 postdeps=$lt_postdeps
11013 # The directories searched by this compiler when creating a shared
11015 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11017 # The library search path used internally by the compiler when linking
11018 # a shared library.
11019 compiler_lib_search_path=$lt_compiler_lib_search_path
11021 # Method to check whether dependent libraries are shared objects.
11022 deplibs_check_method=$lt_deplibs_check_method
11024 # Command to use when deplibs_check_method == file_magic.
11025 file_magic_cmd=$lt_file_magic_cmd
11027 # Flag that allows shared libraries with undefined symbols to be built.
11028 allow_undefined_flag=$lt_allow_undefined_flag
11030 # Flag that forces no undefined symbols.
11031 no_undefined_flag=$lt_no_undefined_flag
11033 # Commands used to finish a libtool library installation in a directory.
11034 finish_cmds=$lt_finish_cmds
11036 # Same as above, but a single script fragment to be evaled but not shown.
11037 finish_eval=$lt_finish_eval
11039 # Take the output of nm and produce a listing of raw symbols and C names.
11040 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11042 # Transform the output of nm in a proper C declaration
11043 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11045 # Transform the output of nm in a C name address pair
11046 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11048 # This is the shared library runtime path variable.
11049 runpath_var=$runpath_var
11051 # This is the shared library path variable.
11052 shlibpath_var=$shlibpath_var
11054 # Is shlibpath searched before the hard-coded library search path?
11055 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11057 # How to hardcode a shared library path into an executable.
11058 hardcode_action=$hardcode_action
11060 # Whether we should hardcode library paths into libraries.
11061 hardcode_into_libs=$hardcode_into_libs
11063 # Flag to hardcode \$libdir into a binary during linking.
11064 # This must work even if \$libdir does not exist.
11065 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11067 # If ld is used when linking, flag to hardcode \$libdir into
11068 # a binary during linking. This must work even if \$libdir does
11070 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11072 # Whether we need a single -rpath flag with a separated argument.
11073 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11075 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11076 # resulting binary.
11077 hardcode_direct=$hardcode_direct
11079 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11080 # resulting binary.
11081 hardcode_minus_L=$hardcode_minus_L
11083 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11084 # the resulting binary.
11085 hardcode_shlibpath_var=$hardcode_shlibpath_var
11087 # Set to yes if building a shared library automatically hardcodes DIR into the library
11088 # and all subsequent libraries and executables linked against it.
11089 hardcode_automatic=$hardcode_automatic
11091 # Variables whose values should be saved in libtool wrapper scripts and
11092 # restored at relink time.
11093 variables_saved_for_relink="$variables_saved_for_relink"
11095 # Whether libtool must link a program against all its dependency libraries.
11096 link_all_deplibs=$link_all_deplibs
11098 # Compile-time system search path for libraries
11099 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11101 # Run-time system search path for libraries
11102 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11104 # Fix the shell variable \$srcfile for the compiler.
11105 fix_srcfile_path=$lt_fix_srcfile_path
11107 # Set to yes if exported symbols are required.
11108 always_export_symbols=$always_export_symbols
11110 # The commands to list exported symbols.
11111 export_symbols_cmds=$lt_export_symbols_cmds
11113 # The commands to extract the exported symbol list from a shared archive.
11114 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11116 # Symbols that should not be listed in the preloaded symbols.
11117 exclude_expsyms=$lt_exclude_expsyms
11119 # Symbols that must always be exported.
11120 include_expsyms=$lt_include_expsyms
11122 # ### END LIBTOOL CONFIG
11129 cat <<\EOF >> "$cfgfile"
11131 # AIX sometimes has problems with the GCC collect2 program. For some
11132 # reason, if we set the COLLECT_NAMES environment variable, the problems
11133 # vanish in a puff of smoke.
11134 if test "X${COLLECT_NAMES+set}" != Xset; then
11136 export COLLECT_NAMES
11142 # We use sed instead of cat because bash on DJGPP gets confused if
11143 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11144 # text mode, it properly converts lines to CR/LF. This bash problem
11145 # is reportedly fixed, but why not run on old versions too?
11146 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11148 mv -f "$cfgfile" "$ofile" || \
11149 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11153 # If there is no Makefile yet, we rely on a make rule to execute
11154 # `config.status --recheck' to rerun these tests and create the
11155 # libtool script then.
11156 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11157 if test -f "$ltmain_in"; then
11158 test -f Makefile && make "$ltmain"
11164 ac_cpp='$CPP $CPPFLAGS'
11165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11172 # Check whether --with-tags was given.
11173 if test "${with_tags+set}" = set; then
11174 withval=$with_tags; tagnames="$withval"
11178 if test -f "$ltmain" && test -n "$tagnames"; then
11179 if test ! -f "${ofile}"; then
11180 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11181 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11184 if test -z "$LTCC"; then
11185 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11186 if test -z "$LTCC"; then
11187 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11188 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11190 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11191 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11194 if test -z "$LTCFLAGS"; then
11195 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11198 # Extract list of available tagged configurations in $ofile.
11199 # Note that this assumes the entire list is on one line.
11200 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11202 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11203 for tagname in $tagnames; do
11205 # Check whether tagname contains only valid characters
11206 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11208 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11209 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11210 { (exit 1); exit 1; }; }
11214 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11216 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11217 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11218 { (exit 1); exit 1; }; }
11221 # Update the list of available tags.
11222 if test -n "$tagname"; then
11223 echo appending configuration tag \"$tagname\" to $ofile
11227 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11228 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11229 (test "X$CXX" != "Xg++"))) ; then
11231 ac_cpp='$CXXCPP $CPPFLAGS'
11232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11239 archive_cmds_need_lc_CXX=no
11240 allow_undefined_flag_CXX=
11241 always_export_symbols_CXX=no
11242 archive_expsym_cmds_CXX=
11243 export_dynamic_flag_spec_CXX=
11244 hardcode_direct_CXX=no
11245 hardcode_libdir_flag_spec_CXX=
11246 hardcode_libdir_flag_spec_ld_CXX=
11247 hardcode_libdir_separator_CXX=
11248 hardcode_minus_L_CXX=no
11249 hardcode_shlibpath_var_CXX=unsupported
11250 hardcode_automatic_CXX=no
11252 module_expsym_cmds_CXX=
11253 link_all_deplibs_CXX=unknown
11254 old_archive_cmds_CXX=$old_archive_cmds
11255 no_undefined_flag_CXX=
11256 whole_archive_flag_spec_CXX=
11257 enable_shared_with_static_runtimes_CXX=no
11259 # Dependencies to place before and after the object being linked:
11260 predep_objects_CXX=
11261 postdep_objects_CXX=
11264 compiler_lib_search_path_CXX=
11265 compiler_lib_search_dirs_CXX=
11267 # Source file extension for C++ test sources.
11270 # Object file extension for compiled C++ test sources.
11274 # Code to be used in simple compile tests
11275 lt_simple_compile_test_code="int some_variable = 0;"
11277 # Code to be used in simple link tests
11278 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11280 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11282 # If no C compiler was specified, use CC.
11285 # If no C compiler flags were specified, use CFLAGS.
11286 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11288 # Allow CC to be a program name with arguments.
11292 # save warnings/boilerplate of simple test code
11293 ac_outfile=conftest.$ac_objext
11294 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11295 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11296 _lt_compiler_boilerplate=`cat conftest.err`
11299 ac_outfile=conftest.$ac_objext
11300 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11301 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11302 _lt_linker_boilerplate=`cat conftest.err`
11306 # Allow CC to be a program name with arguments.
11311 lt_save_with_gnu_ld=$with_gnu_ld
11312 lt_save_path_LD=$lt_cv_path_LD
11313 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11314 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11316 $as_unset lt_cv_prog_gnu_ld
11318 if test -n "${lt_cv_path_LDCXX+set}"; then
11319 lt_cv_path_LD=$lt_cv_path_LDCXX
11321 $as_unset lt_cv_path_LD
11323 test -z "${LDCXX+set}" || LD=$LDCXX
11327 for cc_temp in $compiler""; do
11329 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11330 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11335 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11338 # We don't want -fno-exception wen compiling C++ code, so set the
11339 # no_builtin_flag separately
11340 if test "$GXX" = yes; then
11341 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11343 lt_prog_compiler_no_builtin_flag_CXX=
11346 if test "$GXX" = yes; then
11347 # Set up default GNU C++ configuration
11350 # Check whether --with-gnu-ld was given.
11351 if test "${with_gnu_ld+set}" = set; then
11352 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11358 if test "$GCC" = yes; then
11359 # Check if gcc -print-prog-name=ld gives a path.
11360 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11361 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11364 # gcc leaves a trailing carriage return which upsets mingw
11365 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11367 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11370 # Accept absolute paths.
11372 re_direlt='/[^/][^/]*/\.\./'
11373 # Canonicalize the pathname of ld
11374 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11375 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11376 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11378 test -z "$LD" && LD="$ac_prog"
11381 # If it fails, then pretend we aren't using GCC.
11385 # If it is relative, then search for the first ld in PATH.
11386 with_gnu_ld=unknown
11389 elif test "$with_gnu_ld" = yes; then
11390 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11391 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11393 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11394 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11396 if test "${lt_cv_path_LD+set}" = set; then
11397 echo $ECHO_N "(cached) $ECHO_C" >&6
11399 if test -z "$LD"; then
11400 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11401 for ac_dir in $PATH; do
11403 test -z "$ac_dir" && ac_dir=.
11404 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11405 lt_cv_path_LD="$ac_dir/$ac_prog"
11406 # Check to see if the program is GNU ld. I'd rather use --version,
11407 # but apparently some variants of GNU ld only accept -v.
11408 # Break only if it was the GNU/non-GNU ld that we prefer.
11409 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11410 *GNU* | *'with BFD'*)
11411 test "$with_gnu_ld" != no && break
11414 test "$with_gnu_ld" != yes && break
11421 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11425 LD="$lt_cv_path_LD"
11426 if test -n "$LD"; then
11427 { echo "$as_me:$LINENO: result: $LD" >&5
11428 echo "${ECHO_T}$LD" >&6; }
11430 { echo "$as_me:$LINENO: result: no" >&5
11431 echo "${ECHO_T}no" >&6; }
11433 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11434 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11435 { (exit 1); exit 1; }; }
11436 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11437 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11438 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11441 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11442 case `$LD -v 2>&1 </dev/null` in
11443 *GNU* | *'with BFD'*)
11444 lt_cv_prog_gnu_ld=yes
11447 lt_cv_prog_gnu_ld=no
11451 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11452 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11453 with_gnu_ld=$lt_cv_prog_gnu_ld
11457 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11458 # archiving commands below assume that GNU ld is being used.
11459 if test "$with_gnu_ld" = yes; then
11460 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11461 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'
11463 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11464 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11466 # If archive_cmds runs LD, not CC, wlarc should be empty
11467 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11468 # investigate it a little bit more. (MM)
11471 # ancient GNU ld didn't support --whole-archive et. al.
11472 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11473 grep 'no-whole-archive' > /dev/null; then
11474 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11476 whole_archive_flag_spec_CXX=
11482 # A generic and very simple default shared library creation
11483 # command for GNU C++ for the case where it uses the native
11484 # linker, instead of GNU ld. If possible, this setting should
11485 # overridden to take advantage of the native linker features on
11486 # the platform it is being used on.
11487 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11490 # Commands to make compiler produce verbose output that lists
11491 # what "hidden" libraries, object files and flags are used when
11492 # linking a shared library.
11493 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11501 # PORTME: fill in a description of your system's C++ link characteristics
11502 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11503 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11507 # FIXME: insert proper C++ library support
11511 if test "$host_cpu" = ia64; then
11512 # On IA64, the linker does run time linking by default, so we don't
11513 # have to do anything special.
11514 aix_use_runtimelinking=no
11515 exp_sym_flag='-Bexport'
11518 aix_use_runtimelinking=no
11520 # Test if we are trying to use run time linking or normal
11521 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11522 # need to do runtime linking.
11523 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11524 for ld_flag in $LDFLAGS; do
11527 aix_use_runtimelinking=yes
11535 exp_sym_flag='-bexport'
11536 no_entry_flag='-bnoentry'
11539 # When large executables or shared objects are built, AIX ld can
11540 # have problems creating the table of contents. If linking a library
11541 # or program results in "error TOC overflow" add -mminimal-toc to
11542 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11543 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11545 archive_cmds_CXX=''
11546 hardcode_direct_CXX=yes
11547 hardcode_libdir_separator_CXX=':'
11548 link_all_deplibs_CXX=yes
11550 if test "$GXX" = yes; then
11551 case $host_os in aix4.[012]|aix4.[012].*)
11552 # We only want to do this on AIX 4.2 and lower, the check
11553 # below for broken collect2 doesn't work under 4.3+
11554 collect2name=`${CC} -print-prog-name=collect2`
11555 if test -f "$collect2name" && \
11556 strings "$collect2name" | grep resolve_lib_name >/dev/null
11558 # We have reworked collect2
11561 # We have old collect2
11562 hardcode_direct_CXX=unsupported
11563 # It fails to find uninstalled libraries when the uninstalled
11564 # path is not listed in the libpath. Setting hardcode_minus_L
11565 # to unsupported forces relinking
11566 hardcode_minus_L_CXX=yes
11567 hardcode_libdir_flag_spec_CXX='-L$libdir'
11568 hardcode_libdir_separator_CXX=
11572 shared_flag='-shared'
11573 if test "$aix_use_runtimelinking" = yes; then
11574 shared_flag="$shared_flag "'${wl}-G'
11578 if test "$host_cpu" = ia64; then
11579 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11580 # chokes on -Wl,-G. The following line is correct:
11583 if test "$aix_use_runtimelinking" = yes; then
11584 shared_flag='${wl}-G'
11586 shared_flag='${wl}-bM:SRE'
11591 # It seems that -bexpall does not export symbols beginning with
11592 # underscore (_), so it is better to generate a list of symbols to export.
11593 always_export_symbols_CXX=yes
11594 if test "$aix_use_runtimelinking" = yes; then
11595 # Warning - without using the other runtime loading flags (-brtl),
11596 # -berok will link without error, but may produce a broken library.
11597 allow_undefined_flag_CXX='-berok'
11598 # Determine the default libpath from the value encoded in an empty executable.
11599 cat >conftest.$ac_ext <<_ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11614 rm -f conftest.$ac_objext conftest$ac_exeext
11615 if { (ac_try="$ac_link"
11616 case "(($ac_try" in
11617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618 *) ac_try_echo=$ac_try;;
11620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621 (eval "$ac_link") 2>conftest.er1
11623 grep -v '^ *+' conftest.er1 >conftest.err
11625 cat conftest.err >&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); } && {
11628 test -z "$ac_cxx_werror_flag" ||
11629 test ! -s conftest.err
11630 } && test -s conftest$ac_exeext &&
11631 $as_test_x conftest$ac_exeext; then
11633 lt_aix_libpath_sed='
11634 /Import File Strings/,/^$/ {
11640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11641 # Check for a 64-bit object if we didn't find anything.
11642 if test -z "$aix_libpath"; then
11643 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11646 echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11653 conftest$ac_exeext conftest.$ac_ext
11654 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11656 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11658 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"
11660 if test "$host_cpu" = ia64; then
11661 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11662 allow_undefined_flag_CXX="-z nodefs"
11663 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"
11665 # Determine the default libpath from the value encoded in an empty executable.
11666 cat >conftest.$ac_ext <<_ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h. */
11681 rm -f conftest.$ac_objext conftest$ac_exeext
11682 if { (ac_try="$ac_link"
11683 case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688 (eval "$ac_link") 2>conftest.er1
11690 grep -v '^ *+' conftest.er1 >conftest.err
11692 cat conftest.err >&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } && {
11695 test -z "$ac_cxx_werror_flag" ||
11696 test ! -s conftest.err
11697 } && test -s conftest$ac_exeext &&
11698 $as_test_x conftest$ac_exeext; then
11700 lt_aix_libpath_sed='
11701 /Import File Strings/,/^$/ {
11707 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11708 # Check for a 64-bit object if we didn't find anything.
11709 if test -z "$aix_libpath"; then
11710 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11713 echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.$ac_ext >&5
11719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11720 conftest$ac_exeext conftest.$ac_ext
11721 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11723 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11724 # Warning - without using the other run time loading flags,
11725 # -berok will link without error, but may produce a broken library.
11726 no_undefined_flag_CXX=' ${wl}-bernotok'
11727 allow_undefined_flag_CXX=' ${wl}-berok'
11728 # Exported symbols can be pulled into shared objects from archives
11729 whole_archive_flag_spec_CXX='$convenience'
11730 archive_cmds_need_lc_CXX=yes
11731 # This is similar to how AIX traditionally builds its shared libraries.
11732 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'
11738 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11739 allow_undefined_flag_CXX=unsupported
11740 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11741 # support --undefined. This deserves some investigation. FIXME
11742 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11749 case $cc_basename in
11751 # FIXME: insert proper C++ library support
11757 cygwin* | mingw* | pw32*)
11758 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11759 # as there is no search path for DLLs.
11760 hardcode_libdir_flag_spec_CXX='-L$libdir'
11761 allow_undefined_flag_CXX=unsupported
11762 always_export_symbols_CXX=no
11763 enable_shared_with_static_runtimes_CXX=yes
11765 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11766 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'
11767 # If the export-symbols file already is a .def file (1st line
11768 # is EXPORTS), use it as is; otherwise, prepend...
11769 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11770 cp $export_symbols $output_objdir/$soname.def;
11772 echo EXPORTS > $output_objdir/$soname.def;
11773 cat $export_symbols >> $output_objdir/$soname.def;
11775 $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'
11780 darwin* | rhapsody*)
11781 archive_cmds_need_lc_CXX=no
11782 hardcode_direct_CXX=no
11783 hardcode_automatic_CXX=yes
11784 hardcode_shlibpath_var_CXX=unsupported
11785 whole_archive_flag_spec_CXX=''
11786 link_all_deplibs_CXX=yes
11787 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11788 if test "$GXX" = yes ; then
11789 output_verbose_link_cmd='echo'
11790 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}"
11791 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11792 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}"
11793 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}"
11794 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11795 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}"
11796 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}"
11799 case $cc_basename in
11801 output_verbose_link_cmd='echo'
11802 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'
11803 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11804 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11805 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}'
11806 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}'
11816 case $cc_basename in
11818 # FIXME: insert proper C++ library support
11822 # Green Hills C++ Compiler
11823 # FIXME: insert proper C++ library support
11827 # FIXME: insert proper C++ library support
11833 # C++ shared libraries reported to be fairly broken before switch to ELF
11837 archive_cmds_need_lc_CXX=no
11839 freebsd* | dragonfly*)
11840 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11847 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11848 hardcode_libdir_separator_CXX=:
11849 export_dynamic_flag_spec_CXX='${wl}-E'
11850 hardcode_direct_CXX=yes
11851 hardcode_minus_L_CXX=yes # Not in the search PATH,
11852 # but as the default
11853 # location of the library.
11855 case $cc_basename in
11857 # FIXME: insert proper C++ library support
11861 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'
11862 # Commands to make compiler produce verbose output that lists
11863 # what "hidden" libraries, object files and flags are used when
11864 # linking a shared library.
11866 # There doesn't appear to be a way to prevent this compiler from
11867 # explicitly linking system object files so we need to strip them
11868 # from the output so that they don't get included in the library
11870 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'
11873 if test "$GXX" = yes; then
11874 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'
11876 # FIXME: insert proper C++ library support
11883 if test $with_gnu_ld = no; then
11884 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11885 hardcode_libdir_separator_CXX=:
11890 export_dynamic_flag_spec_CXX='${wl}-E'
11896 hardcode_direct_CXX=no
11897 hardcode_shlibpath_var_CXX=no
11900 hardcode_direct_CXX=yes
11901 hardcode_minus_L_CXX=yes # Not in the search PATH,
11902 # but as the default
11903 # location of the library.
11907 case $cc_basename in
11909 # FIXME: insert proper C++ library support
11915 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11918 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11921 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11924 # Commands to make compiler produce verbose output that lists
11925 # what "hidden" libraries, object files and flags are used when
11926 # linking a shared library.
11928 # There doesn't appear to be a way to prevent this compiler from
11929 # explicitly linking system object files so we need to strip them
11930 # from the output so that they don't get included in the library
11932 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'
11935 if test "$GXX" = yes; then
11936 if test $with_gnu_ld = no; then
11939 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11942 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11945 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'
11950 # FIXME: insert proper C++ library support
11957 hardcode_direct_CXX=no
11958 hardcode_shlibpath_var_CXX=no
11959 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11960 export_dynamic_flag_spec_CXX='${wl}-E'
11961 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11962 # Instead, shared libraries are loaded at an image base (0x10000000 by
11963 # default) and relocated if they conflict, which is a slow very memory
11964 # consuming and fragmenting process. To avoid this, we pick a random,
11965 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11966 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11967 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'
11968 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'
11971 case $cc_basename in
11974 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'
11976 # Archives containing C++ object files must be created using
11977 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11978 # necessary to make sure instantiated templates are included
11980 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11983 if test "$GXX" = yes; then
11984 if test "$with_gnu_ld" = no; then
11985 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'
11987 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'
11990 link_all_deplibs_CXX=yes
11993 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11994 hardcode_libdir_separator_CXX=:
11996 linux* | k*bsd*-gnu)
11997 case $cc_basename in
11999 # Kuck and Associates, Inc. (KAI) C++ Compiler
12001 # KCC will only create a shared library if the output file
12002 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12003 # to its proper name (with version) after linking.
12004 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'
12005 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'
12006 # Commands to make compiler produce verbose output that lists
12007 # what "hidden" libraries, object files and flags are used when
12008 # linking a shared library.
12010 # There doesn't appear to be a way to prevent this compiler from
12011 # explicitly linking system object files so we need to strip them
12012 # from the output so that they don't get included in the library
12014 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'
12016 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12017 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12019 # Archives containing C++ object files must be created using
12020 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12021 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12026 # version 8.0 and above of icpc choke on multiply defined symbols
12027 # if we add $predep_objects and $postdep_objects, however 7.1 and
12028 # earlier do not add the objects themselves.
12029 case `$CC -V 2>&1` in
12031 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12032 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'
12034 *) # Version 8.0 or newer
12037 ia64*) tmp_idyn=' -i_dynamic';;
12039 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12040 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'
12043 archive_cmds_need_lc_CXX=no
12044 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12045 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12046 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12049 # Portland Group C++ compiler
12050 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12051 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'
12053 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12054 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12055 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'
12059 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12060 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'
12062 runpath_var=LD_RUN_PATH
12063 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12064 hardcode_libdir_separator_CXX=:
12066 # Commands to make compiler produce verbose output that lists
12067 # what "hidden" libraries, object files and flags are used when
12068 # linking a shared library.
12070 # There doesn't appear to be a way to prevent this compiler from
12071 # explicitly linking system object files so we need to strip them
12072 # from the output so that they don't get included in the library
12074 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'
12077 case `$CC -V 2>&1 | sed 5q` in
12080 no_undefined_flag_CXX=' -zdefs'
12081 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12082 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'
12083 hardcode_libdir_flag_spec_CXX='-R$libdir'
12084 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'
12086 # Not sure whether something based on
12087 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12089 output_verbose_link_cmd='echo'
12091 # Archives containing C++ object files must be created using
12092 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12093 # necessary to make sure instantiated templates are included
12095 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12102 # FIXME: insert proper C++ library support
12106 # FIXME: insert proper C++ library support
12110 case $cc_basename in
12112 # FIXME: insert proper C++ library support
12116 # FIXME: insert proper C++ library support
12121 netbsd* | netbsdelf*-gnu)
12122 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12123 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12125 hardcode_libdir_flag_spec_CXX='-R$libdir'
12126 hardcode_direct_CXX=yes
12127 hardcode_shlibpath_var_CXX=no
12129 # Workaround some broken pre-1.5 toolchains
12130 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12133 # C++ shared libraries are fairly broken
12137 if test -f /usr/libexec/ld.so; then
12138 hardcode_direct_CXX=yes
12139 hardcode_shlibpath_var_CXX=no
12140 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12141 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12142 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12143 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12144 export_dynamic_flag_spec_CXX='${wl}-E'
12145 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12147 output_verbose_link_cmd='echo'
12153 case $cc_basename in
12155 # Kuck and Associates, Inc. (KAI) C++ Compiler
12157 # KCC will only create a shared library if the output file
12158 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12159 # to its proper name (with version) after linking.
12160 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'
12162 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12163 hardcode_libdir_separator_CXX=:
12165 # Archives containing C++ object files must be created using
12166 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12167 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12171 # Rational C++ 2.4.1
12172 # FIXME: insert proper C++ library support
12176 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12177 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'
12179 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12180 hardcode_libdir_separator_CXX=:
12182 # Commands to make compiler produce verbose output that lists
12183 # what "hidden" libraries, object files and flags are used when
12184 # linking a shared library.
12186 # There doesn't appear to be a way to prevent this compiler from
12187 # explicitly linking system object files so we need to strip them
12188 # from the output so that they don't get included in the library
12190 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'
12193 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12194 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12195 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'
12197 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12198 hardcode_libdir_separator_CXX=:
12200 # Commands to make compiler produce verbose output that lists
12201 # what "hidden" libraries, object files and flags are used when
12202 # linking a shared library.
12203 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12206 # FIXME: insert proper C++ library support
12213 case $cc_basename in
12215 # Kuck and Associates, Inc. (KAI) C++ Compiler
12217 # KCC will only create a shared library if the output file
12218 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12219 # to its proper name (with version) after linking.
12220 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'
12222 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12223 hardcode_libdir_separator_CXX=:
12225 # Archives containing C++ object files must be created using
12226 # the KAI C++ compiler.
12227 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12230 # Rational C++ 2.4.1
12231 # FIXME: insert proper C++ library support
12235 allow_undefined_flag_CXX=' -expect_unresolved \*'
12236 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'
12237 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12238 echo "-hidden">> $lib.exp~
12239 $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~
12242 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12243 hardcode_libdir_separator_CXX=:
12245 # Commands to make compiler produce verbose output that lists
12246 # what "hidden" libraries, object files and flags are used when
12247 # linking a shared library.
12249 # There doesn't appear to be a way to prevent this compiler from
12250 # explicitly linking system object files so we need to strip them
12251 # from the output so that they don't get included in the library
12253 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'
12256 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12257 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12258 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'
12260 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12261 hardcode_libdir_separator_CXX=:
12263 # Commands to make compiler produce verbose output that lists
12264 # what "hidden" libraries, object files and flags are used when
12265 # linking a shared library.
12266 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12269 # FIXME: insert proper C++ library support
12276 # FIXME: insert proper C++ library support
12280 case $cc_basename in
12283 # FIXME: insert proper C++ library support
12288 # FIXME: insert proper C++ library support
12292 # FIXME: insert proper C++ library support
12298 case $cc_basename in
12300 # Sun C++ 4.2, 5.x and Centerline C++
12301 archive_cmds_need_lc_CXX=yes
12302 no_undefined_flag_CXX=' -zdefs'
12303 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12304 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12305 $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'
12307 hardcode_libdir_flag_spec_CXX='-R$libdir'
12308 hardcode_shlibpath_var_CXX=no
12310 solaris2.[0-5] | solaris2.[0-5].*) ;;
12312 # The compiler driver will combine and reorder linker options,
12313 # but understands `-z linker_flag'.
12314 # Supported since Solaris 2.6 (maybe 2.5.1?)
12315 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12318 link_all_deplibs_CXX=yes
12320 output_verbose_link_cmd='echo'
12322 # Archives containing C++ object files must be created using
12323 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12324 # necessary to make sure instantiated templates are included
12326 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12329 # Green Hills C++ Compiler
12330 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12332 # The C++ compiler must be used to create the archive.
12333 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12336 # GNU C++ compiler with Solaris linker
12337 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12338 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12339 if $CC --version | grep -v '^2\.7' > /dev/null; then
12340 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12341 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12342 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12344 # Commands to make compiler produce verbose output that lists
12345 # what "hidden" libraries, object files and flags are used when
12346 # linking a shared library.
12347 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12349 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12351 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12352 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12353 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12355 # Commands to make compiler produce verbose output that lists
12356 # what "hidden" libraries, object files and flags are used when
12357 # linking a shared library.
12358 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12361 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12363 solaris2.[0-5] | solaris2.[0-5].*) ;;
12365 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12372 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12373 no_undefined_flag_CXX='${wl}-z,text'
12374 archive_cmds_need_lc_CXX=no
12375 hardcode_shlibpath_var_CXX=no
12376 runpath_var='LD_RUN_PATH'
12378 case $cc_basename in
12380 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12381 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12384 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12385 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12389 sysv5* | sco3.2v5* | sco5v6*)
12390 # Note: We can NOT use -z defs as we might desire, because we do not
12391 # link with -lc, and that would cause any symbols used from libc to
12392 # always be unresolved, which means just about no library would
12393 # ever link correctly. If we're not using GNU ld we use -z text
12394 # though, which does catch some bad symbols but isn't as heavy-handed
12396 # For security reasons, it is highly recommended that you always
12397 # use absolute paths for naming shared libraries, and exclude the
12398 # DT_RUNPATH tag from executables and libraries. But doing so
12399 # requires that you compile everything twice, which is a pain.
12400 # So that behaviour is only enabled if SCOABSPATH is set to a
12401 # non-empty value in the environment. Most likely only useful for
12402 # creating official distributions of packages.
12403 # This is a hack until libtool officially supports absolute path
12404 # names for shared libraries.
12405 no_undefined_flag_CXX='${wl}-z,text'
12406 allow_undefined_flag_CXX='${wl}-z,nodefs'
12407 archive_cmds_need_lc_CXX=no
12408 hardcode_shlibpath_var_CXX=no
12409 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12410 hardcode_libdir_separator_CXX=':'
12411 link_all_deplibs_CXX=yes
12412 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12413 runpath_var='LD_RUN_PATH'
12415 case $cc_basename in
12417 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12418 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12421 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12422 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12427 case $cc_basename in
12429 # NonStop-UX NCC 3.20
12430 # FIXME: insert proper C++ library support
12434 # FIXME: insert proper C++ library support
12440 # FIXME: insert proper C++ library support
12444 # FIXME: insert proper C++ library support
12448 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12449 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12450 test "$ld_shlibs_CXX" = no && can_build_shared=no
12455 cat > conftest.$ac_ext <<EOF
12459 Foo (void) { a = 0; }
12465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12466 (eval $ac_compile) 2>&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; then
12470 # Parse the compiler output and extract the necessary
12471 # objects, libraries and library flags.
12473 # Sentinel used to keep track of whether or not we are before
12474 # the conftest object file.
12475 pre_test_object_deps_done=no
12477 # The `*' in the case matches for architectures that use `case' in
12478 # $output_verbose_cmd can trigger glob expansion during the loop
12479 # eval without this substitution.
12480 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12482 for p in `eval $output_verbose_link_cmd`; do
12486 # Some compilers place space between "-{L,R}" and the path.
12487 # Remove the space.
12488 if test $p = "-L" \
12489 || test $p = "-R"; then
12496 if test "$pre_test_object_deps_done" = no; then
12499 # Internal compiler library paths should come after those
12500 # provided the user. The postdeps already come after the
12501 # user supplied libs so there is no need to process them.
12502 if test -z "$compiler_lib_search_path_CXX"; then
12503 compiler_lib_search_path_CXX="${prev}${p}"
12505 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12508 # The "-l" case would never come before the object being
12509 # linked, so don't bother handling this case.
12512 if test -z "$postdeps_CXX"; then
12513 postdeps_CXX="${prev}${p}"
12515 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12521 # This assumes that the test object file only shows up
12522 # once in the compiler output.
12523 if test "$p" = "conftest.$objext"; then
12524 pre_test_object_deps_done=yes
12528 if test "$pre_test_object_deps_done" = no; then
12529 if test -z "$predep_objects_CXX"; then
12530 predep_objects_CXX="$p"
12532 predep_objects_CXX="$predep_objects_CXX $p"
12535 if test -z "$postdep_objects_CXX"; then
12536 postdep_objects_CXX="$p"
12538 postdep_objects_CXX="$postdep_objects_CXX $p"
12543 *) ;; # Ignore the rest.
12551 echo "libtool.m4: error: problem compiling CXX test program"
12554 $rm -f confest.$objext
12556 compiler_lib_search_dirs_CXX=
12557 if test -n "$compiler_lib_search_path_CXX"; then
12558 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12561 # PORTME: override above test on systems where it is broken
12564 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12565 # hack all around it, let's just trust "g++" to DTRT.
12566 predep_objects_CXX=
12567 postdep_objects_CXX=
12572 case `$CC -V 2>&1 | sed 5q` in
12576 # The more standards-conforming stlport4 library is
12577 # incompatible with the Cstd library. Avoid specifying
12578 # it if it's in CXXFLAGS. Ignore libCrun as
12579 # -library=stlport4 depends on it.
12580 case " $CXX $CXXFLAGS " in
12581 *" -library=stlport4 "*)
12582 solaris_use_stlport4=yes
12585 if test "$solaris_use_stlport4" != yes; then
12586 postdeps_CXX='-library=Cstd -library=Crun'
12593 case $cc_basename in
12595 # The more standards-conforming stlport4 library is
12596 # incompatible with the Cstd library. Avoid specifying
12597 # it if it's in CXXFLAGS. Ignore libCrun as
12598 # -library=stlport4 depends on it.
12599 case " $CXX $CXXFLAGS " in
12600 *" -library=stlport4 "*)
12601 solaris_use_stlport4=yes
12605 # Adding this requires a known-good setup of shared libraries for
12606 # Sun compiler versions before 5.6, else PIC objects from an old
12607 # archive will be linked into the output, leading to subtle bugs.
12608 if test "$solaris_use_stlport4" != yes; then
12609 postdeps_CXX='-library=Cstd -library=Crun'
12616 case " $postdeps_CXX " in
12617 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12620 lt_prog_compiler_wl_CXX=
12621 lt_prog_compiler_pic_CXX=
12622 lt_prog_compiler_static_CXX=
12624 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12625 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12627 # C++ specific cases for pic, static, wl, etc.
12628 if test "$GXX" = yes; then
12629 lt_prog_compiler_wl_CXX='-Wl,'
12630 lt_prog_compiler_static_CXX='-static'
12634 # All AIX code is PIC.
12635 if test "$host_cpu" = ia64; then
12636 # AIX 5 now supports IA64 processor
12637 lt_prog_compiler_static_CXX='-Bstatic'
12641 # FIXME: we need at least 68020 code to build shared libraries, but
12642 # adding the `-m68020' flag to GCC prevents building anything better,
12644 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12646 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12647 # PIC is the default for these OSes.
12649 mingw* | cygwin* | os2* | pw32*)
12650 # This hack is so that the source file can tell whether it is being
12651 # built for inclusion in a dll (and should export symbols for example).
12652 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12653 # (--disable-auto-import) libraries
12654 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12656 darwin* | rhapsody*)
12657 # PIC is the default on this platform
12658 # Common symbols not allowed in MH_DYLIB files
12659 lt_prog_compiler_pic_CXX='-fno-common'
12662 # DJGPP does not support shared libraries at all
12663 lt_prog_compiler_pic_CXX=
12666 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12667 # Instead, we relocate shared libraries at runtime.
12670 if test -d /usr/nec; then
12671 lt_prog_compiler_pic_CXX=-Kconform_pic
12675 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12676 # not for PA HP-UX.
12681 lt_prog_compiler_pic_CXX='-fPIC'
12686 lt_prog_compiler_pic_CXX='-fPIC'
12692 # All AIX code is PIC.
12693 if test "$host_cpu" = ia64; then
12694 # AIX 5 now supports IA64 processor
12695 lt_prog_compiler_static_CXX='-Bstatic'
12697 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12701 case $cc_basename in
12703 # Green Hills C++ Compiler
12704 # _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"
12709 # PIC is the default on this platform
12710 # Common symbols not allowed in MH_DYLIB files
12711 case $cc_basename in
12713 lt_prog_compiler_pic_CXX='-qnocommon'
12714 lt_prog_compiler_wl_CXX='-Wl,'
12719 case $cc_basename in
12721 lt_prog_compiler_pic_CXX='-KPIC'
12724 # Green Hills C++ Compiler
12725 lt_prog_compiler_pic_CXX='-pic'
12731 freebsd* | dragonfly*)
12732 # FreeBSD uses GNU C++
12734 hpux9* | hpux10* | hpux11*)
12735 case $cc_basename in
12737 lt_prog_compiler_wl_CXX='-Wl,'
12738 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12739 if test "$host_cpu" != ia64; then
12740 lt_prog_compiler_pic_CXX='+Z'
12744 lt_prog_compiler_wl_CXX='-Wl,'
12745 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12751 lt_prog_compiler_pic_CXX='+Z'
12760 # This is c89, which is MS Visual C++ (no shared libs)
12761 # Anyone wants to do a port?
12763 irix5* | irix6* | nonstopux*)
12764 case $cc_basename in
12766 lt_prog_compiler_wl_CXX='-Wl,'
12767 lt_prog_compiler_static_CXX='-non_shared'
12768 # CC pic flag -KPIC is the default.
12774 linux* | k*bsd*-gnu)
12775 case $cc_basename in
12778 lt_prog_compiler_wl_CXX='--backend -Wl,'
12779 lt_prog_compiler_pic_CXX='-fPIC'
12783 lt_prog_compiler_wl_CXX='-Wl,'
12784 lt_prog_compiler_pic_CXX='-KPIC'
12785 lt_prog_compiler_static_CXX='-static'
12788 # Portland Group C++ compiler.
12789 lt_prog_compiler_wl_CXX='-Wl,'
12790 lt_prog_compiler_pic_CXX='-fpic'
12791 lt_prog_compiler_static_CXX='-Bstatic'
12795 # Make sure the PIC flag is empty. It appears that all Alpha
12796 # Linux and Compaq Tru64 Unix objects are PIC.
12797 lt_prog_compiler_pic_CXX=
12798 lt_prog_compiler_static_CXX='-non_shared'
12801 case `$CC -V 2>&1 | sed 5q` in
12804 lt_prog_compiler_pic_CXX='-KPIC'
12805 lt_prog_compiler_static_CXX='-Bstatic'
12806 lt_prog_compiler_wl_CXX='-Qoption ld '
12817 case $cc_basename in
12819 lt_prog_compiler_pic_CXX='-W c,exportall'
12825 netbsd* | netbsdelf*-gnu)
12827 osf3* | osf4* | osf5*)
12828 case $cc_basename in
12830 lt_prog_compiler_wl_CXX='--backend -Wl,'
12833 # Rational C++ 2.4.1
12834 lt_prog_compiler_pic_CXX='-pic'
12837 # Digital/Compaq C++
12838 lt_prog_compiler_wl_CXX='-Wl,'
12839 # Make sure the PIC flag is empty. It appears that all Alpha
12840 # Linux and Compaq Tru64 Unix objects are PIC.
12841 lt_prog_compiler_pic_CXX=
12842 lt_prog_compiler_static_CXX='-non_shared'
12851 case $cc_basename in
12853 # Sun C++ 4.2, 5.x and Centerline C++
12854 lt_prog_compiler_pic_CXX='-KPIC'
12855 lt_prog_compiler_static_CXX='-Bstatic'
12856 lt_prog_compiler_wl_CXX='-Qoption ld '
12859 # Green Hills C++ Compiler
12860 lt_prog_compiler_pic_CXX='-PIC'
12867 case $cc_basename in
12870 lt_prog_compiler_pic_CXX='-pic'
12871 lt_prog_compiler_static_CXX='-Bstatic'
12875 lt_prog_compiler_pic_CXX='-pic'
12882 case $cc_basename in
12884 # NonStop-UX NCC 3.20
12885 lt_prog_compiler_pic_CXX='-KPIC'
12891 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12892 case $cc_basename in
12894 lt_prog_compiler_wl_CXX='-Wl,'
12895 lt_prog_compiler_pic_CXX='-KPIC'
12896 lt_prog_compiler_static_CXX='-Bstatic'
12903 lt_prog_compiler_can_build_shared_CXX=no
12908 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12909 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12912 # Check to make sure the PIC flag actually works.
12914 if test -n "$lt_prog_compiler_pic_CXX"; then
12916 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12917 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12918 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12919 echo $ECHO_N "(cached) $ECHO_C" >&6
12921 lt_cv_prog_compiler_pic_works_CXX=no
12922 ac_outfile=conftest.$ac_objext
12923 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12924 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12925 # Insert the option either (1) after the last *FLAGS variable, or
12926 # (2) before a word containing "conftest.", or (3) at the end.
12927 # Note that $ac_compile itself does not contain backslashes and begins
12928 # with a dollar sign (not a hyphen), so the echo should work correctly.
12929 # The option is referenced via a variable to avoid confusing sed.
12930 lt_compile=`echo "$ac_compile" | $SED \
12931 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12932 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12933 -e 's:$: $lt_compiler_flag:'`
12934 (eval echo "\"\$as_me:12934: $lt_compile\"" >&5)
12935 (eval "$lt_compile" 2>conftest.err)
12937 cat conftest.err >&5
12938 echo "$as_me:12938: \$? = $ac_status" >&5
12939 if (exit $ac_status) && test -s "$ac_outfile"; then
12940 # The compiler can only warn and ignore the option if not recognized
12941 # So say no if there are warnings other than the usual output.
12942 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12943 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12944 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12945 lt_cv_prog_compiler_pic_works_CXX=yes
12951 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12952 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12954 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12955 case $lt_prog_compiler_pic_CXX in
12957 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12960 lt_prog_compiler_pic_CXX=
12961 lt_prog_compiler_can_build_shared_CXX=no
12966 # For platforms which do not support PIC, -DPIC is meaningless:
12968 lt_prog_compiler_pic_CXX=
12971 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12976 # Check to make sure the static flag actually works.
12978 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12979 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12980 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12981 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12982 echo $ECHO_N "(cached) $ECHO_C" >&6
12984 lt_cv_prog_compiler_static_works_CXX=no
12985 save_LDFLAGS="$LDFLAGS"
12986 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12987 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12988 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12989 # The linker can only warn and ignore the option if not recognized
12990 # So say no if there are warnings
12991 if test -s conftest.err; then
12992 # Append any errors to the config.log.
12993 cat conftest.err 1>&5
12994 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12996 if diff conftest.exp conftest.er2 >/dev/null; then
12997 lt_cv_prog_compiler_static_works_CXX=yes
13000 lt_cv_prog_compiler_static_works_CXX=yes
13004 LDFLAGS="$save_LDFLAGS"
13007 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13008 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13010 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13013 lt_prog_compiler_static_CXX=
13017 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13018 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13019 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 lt_cv_prog_compiler_c_o_CXX=no
13023 $rm -r conftest 2>/dev/null
13027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13029 lt_compiler_flag="-o out/conftest2.$ac_objext"
13030 # Insert the option either (1) after the last *FLAGS variable, or
13031 # (2) before a word containing "conftest.", or (3) at the end.
13032 # Note that $ac_compile itself does not contain backslashes and begins
13033 # with a dollar sign (not a hyphen), so the echo should work correctly.
13034 lt_compile=`echo "$ac_compile" | $SED \
13035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13037 -e 's:$: $lt_compiler_flag:'`
13038 (eval echo "\"\$as_me:13038: $lt_compile\"" >&5)
13039 (eval "$lt_compile" 2>out/conftest.err)
13041 cat out/conftest.err >&5
13042 echo "$as_me:13042: \$? = $ac_status" >&5
13043 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13045 # The compiler can only warn and ignore the option if not recognized
13046 # So say no if there are warnings
13047 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13048 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13049 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13050 lt_cv_prog_compiler_c_o_CXX=yes
13055 # SGI C++ compiler will create directory out/ii_files/ for
13056 # template instantiation
13057 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13058 $rm out/* && rmdir out
13064 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13065 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13068 hard_links="nottested"
13069 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13070 # do not overwrite the value of need_locks provided by the user
13071 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13072 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13077 ln conftest.a conftest.b 2>&5 || hard_links=no
13078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13079 { echo "$as_me:$LINENO: result: $hard_links" >&5
13080 echo "${ECHO_T}$hard_links" >&6; }
13081 if test "$hard_links" = no; then
13082 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13083 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13090 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13091 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13093 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13096 # If we're using GNU nm, then we don't want the "-C" option.
13097 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13098 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13099 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'
13101 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'
13105 export_symbols_cmds_CXX="$ltdll_cmds"
13108 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'
13110 linux* | k*bsd*-gnu)
13111 link_all_deplibs_CXX=no
13114 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13117 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13119 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13120 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13121 test "$ld_shlibs_CXX" = no && can_build_shared=no
13124 # Do we need to explicitly link libc?
13126 case "x$archive_cmds_need_lc_CXX" in
13128 # Assume -lc should be added
13129 archive_cmds_need_lc_CXX=yes
13131 if test "$enable_shared" = yes && test "$GCC" = yes; then
13132 case $archive_cmds_CXX in
13134 # FIXME: we may have to deal with multi-command sequences.
13137 # Test whether the compiler implicitly links with -lc since on some
13138 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13139 # to ld, don't add -lc before -lgcc.
13140 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13141 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13146 (eval $ac_compile) 2>&5
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } 2>conftest.err; then
13152 libobjs=conftest.$ac_objext
13154 wl=$lt_prog_compiler_wl_CXX
13155 pic_flag=$lt_prog_compiler_pic_CXX
13161 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13162 allow_undefined_flag_CXX=
13163 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13164 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }
13169 archive_cmds_need_lc_CXX=no
13171 archive_cmds_need_lc_CXX=yes
13173 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13175 cat conftest.err 1>&5
13178 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13179 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13186 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13187 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13188 library_names_spec=
13189 libname_spec='lib$name'
13193 postuninstall_cmds=
13197 shlibpath_overrides_runpath=unknown
13199 dynamic_linker="$host_os ld.so"
13200 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13202 need_lib_prefix=unknown
13203 hardcode_into_libs=no
13205 # when you set need_version to no, make sure it does not cause -set_version
13206 # flags to be left without arguments
13207 need_version=unknown
13212 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13213 shlibpath_var=LIBPATH
13215 # AIX 3 has no versioning support, so we append a major version to the name.
13216 soname_spec='${libname}${release}${shared_ext}$major'
13223 hardcode_into_libs=yes
13224 if test "$host_cpu" = ia64; then
13225 # AIX 5 supports IA64
13226 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13227 shlibpath_var=LD_LIBRARY_PATH
13229 # With GCC up to 2.95.x, collect2 would create an import file
13230 # for dependence libraries. The import file would start with
13231 # the line `#! .'. This would cause the generated library to
13232 # depend on `.', always an invalid library. This was fixed in
13233 # development snapshots of GCC prior to 3.0.
13235 aix4 | aix4.[01] | aix4.[01].*)
13236 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13238 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13241 can_build_shared=no
13245 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13246 # soname into executable. Probably we can add versioning support to
13247 # collect2, so additional links can be useful in future.
13248 if test "$aix_use_runtimelinking" = yes; then
13249 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13250 # instead of lib<name>.a to let people know that these are not
13251 # typical AIX shared libraries.
13252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13254 # We preserve .a as extension for shared libraries through AIX4.2
13255 # and later when we are not doing run time linking.
13256 library_names_spec='${libname}${release}.a $libname.a'
13257 soname_spec='${libname}${release}${shared_ext}$major'
13259 shlibpath_var=LIBPATH
13264 library_names_spec='$libname.ixlibrary $libname.a'
13265 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13266 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'
13270 library_names_spec='${libname}${shared_ext}'
13271 dynamic_linker="$host_os ld.so"
13272 shlibpath_var=LIBRARY_PATH
13278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13279 soname_spec='${libname}${release}${shared_ext}$major'
13280 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13281 shlibpath_var=LD_LIBRARY_PATH
13282 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13283 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13284 # the default ld.so.conf also contains /usr/contrib/lib and
13285 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13286 # libtool to hard-code these into programs
13289 cygwin* | mingw* | pw32*)
13290 version_type=windows
13295 case $GCC,$host_os in
13296 yes,cygwin* | yes,mingw* | yes,pw32*)
13297 library_names_spec='$libname.dll.a'
13298 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13299 postinstall_cmds='base_file=`basename \${file}`~
13300 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13301 dldir=$destdir/`dirname \$dlpath`~
13302 test -d \$dldir || mkdir -p \$dldir~
13303 $install_prog $dir/$dlname \$dldir/$dlname~
13304 chmod a+x \$dldir/$dlname'
13305 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13306 dlpath=$dir/\$dldll~
13308 shlibpath_overrides_runpath=yes
13312 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13313 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13314 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13317 # MinGW DLLs use traditional 'lib' prefix
13318 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13319 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13320 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13321 # It is most probably a Windows format PATH printed by
13322 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13323 # path with ; separators, and with drive letters. We can handle the
13324 # drive letters (cygwin fileutils understands them), so leave them,
13325 # especially as we might pass files found there to a mingw objdump,
13326 # which wouldn't understand a cygwinified path. Ahh.
13327 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13333 # pw32 DLLs use 'pw' prefix rather than 'lib'
13334 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13340 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13343 dynamic_linker='Win32 ld.exe'
13344 # FIXME: first we should search . and the directory the executable is in
13348 darwin* | rhapsody*)
13349 dynamic_linker="$host_os dyld"
13350 version_type=darwin
13353 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13354 soname_spec='${libname}${release}${major}$shared_ext'
13355 shlibpath_overrides_runpath=yes
13356 shlibpath_var=DYLD_LIBRARY_PATH
13357 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13359 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13367 soname_spec='${libname}${release}${shared_ext}$major'
13368 shlibpath_var=LD_LIBRARY_PATH
13375 freebsd* | dragonfly*)
13376 # DragonFly does not have aout. When/if they implement a new
13377 # versioning mechanism, adjust this.
13378 if test -x /usr/bin/objformat; then
13379 objformat=`/usr/bin/objformat`
13382 freebsd[123]*) objformat=aout ;;
13383 *) objformat=elf ;;
13386 version_type=freebsd-$objformat
13387 case $version_type in
13389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13394 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13398 shlibpath_var=LD_LIBRARY_PATH
13401 shlibpath_overrides_runpath=yes
13403 freebsd3.[01]* | freebsdelf3.[01]*)
13404 shlibpath_overrides_runpath=yes
13405 hardcode_into_libs=yes
13407 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13408 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13409 shlibpath_overrides_runpath=no
13410 hardcode_into_libs=yes
13412 *) # from 4.6 on, and DragonFly
13413 shlibpath_overrides_runpath=yes
13414 hardcode_into_libs=yes
13423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13424 soname_spec='${libname}${release}${shared_ext}$major'
13425 shlibpath_var=LD_LIBRARY_PATH
13426 hardcode_into_libs=yes
13429 hpux9* | hpux10* | hpux11*)
13430 # Give a soname corresponding to the major version so that dld.sl refuses to
13431 # link against other versions.
13438 hardcode_into_libs=yes
13439 dynamic_linker="$host_os dld.so"
13440 shlibpath_var=LD_LIBRARY_PATH
13441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13443 soname_spec='${libname}${release}${shared_ext}$major'
13444 if test "X$HPUX_IA64_MODE" = X32; then
13445 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13447 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13449 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13453 hardcode_into_libs=yes
13454 dynamic_linker="$host_os dld.sl"
13455 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13456 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13458 soname_spec='${libname}${release}${shared_ext}$major'
13459 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13464 dynamic_linker="$host_os dld.sl"
13465 shlibpath_var=SHLIB_PATH
13466 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13468 soname_spec='${libname}${release}${shared_ext}$major'
13471 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13472 postinstall_cmds='chmod 555 $lib'
13479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13480 soname_spec='${libname}${release}${shared_ext}$major'
13481 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13482 shlibpath_var=LD_LIBRARY_PATH
13483 shlibpath_overrides_runpath=no
13484 hardcode_into_libs=yes
13487 irix5* | irix6* | nonstopux*)
13489 nonstopux*) version_type=nonstopux ;;
13491 if test "$lt_cv_prog_gnu_ld" = yes; then
13499 soname_spec='${libname}${release}${shared_ext}$major'
13500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13502 irix5* | nonstopux*)
13503 libsuff= shlibsuff=
13506 case $LD in # libtool.m4 will add one of these switches to LD
13507 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13508 libsuff= shlibsuff= libmagic=32-bit;;
13509 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13510 libsuff=32 shlibsuff=N32 libmagic=N32;;
13511 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13512 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13513 *) libsuff= shlibsuff= libmagic=never-match;;
13517 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13518 shlibpath_overrides_runpath=no
13519 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13520 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13521 hardcode_into_libs=yes
13524 # No shared lib support for Linux oldld, aout, or coff.
13525 linux*oldld* | linux*aout* | linux*coff*)
13529 # This must be Linux ELF.
13530 linux* | k*bsd*-gnu)
13534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13535 soname_spec='${libname}${release}${shared_ext}$major'
13536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13537 shlibpath_var=LD_LIBRARY_PATH
13538 shlibpath_overrides_runpath=no
13539 # This implies no fast_install, which is unacceptable.
13540 # Some rework will be needed to allow for fast_install
13541 # before this can be enabled.
13542 hardcode_into_libs=yes
13544 # Append ld.so.conf contents to the search path
13545 if test -f /etc/ld.so.conf; then
13546 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' ' '`
13547 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13550 # We used to test for /lib/ld.so.1 and disable shared libraries on
13551 # powerpc, because MkLinux only supported shared libraries with the
13552 # GNU dynamic linker. Since this was broken with cross compilers,
13553 # most powerpc-linux boxes support dynamic linking these days and
13554 # people can always --disable-shared, the test was removed, and we
13555 # assume the GNU/Linux dynamic linker is in use.
13556 dynamic_linker='GNU/Linux ld.so'
13563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13564 soname_spec='${libname}${release}${shared_ext}$major'
13565 shlibpath_var=LD_LIBRARY_PATH
13566 shlibpath_overrides_runpath=no
13567 hardcode_into_libs=yes
13568 dynamic_linker='NetBSD ld.elf_so'
13575 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13578 dynamic_linker='NetBSD (a.out) ld.so'
13580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13581 soname_spec='${libname}${release}${shared_ext}$major'
13582 dynamic_linker='NetBSD ld.elf_so'
13584 shlibpath_var=LD_LIBRARY_PATH
13585 shlibpath_overrides_runpath=yes
13586 hardcode_into_libs=yes
13591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13592 shlibpath_var=LD_LIBRARY_PATH
13593 shlibpath_overrides_runpath=yes
13600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13601 soname_spec='${libname}${release}${shared_ext}$major'
13602 shlibpath_var=LD_LIBRARY_PATH
13603 shlibpath_overrides_runpath=yes
13608 sys_lib_dlsearch_path_spec="/usr/lib"
13610 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13612 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13613 *) need_version=no ;;
13615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13617 shlibpath_var=LD_LIBRARY_PATH
13618 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13620 openbsd2.[89] | openbsd2.[89].*)
13621 shlibpath_overrides_runpath=no
13624 shlibpath_overrides_runpath=yes
13628 shlibpath_overrides_runpath=yes
13633 libname_spec='$name'
13636 library_names_spec='$libname${shared_ext} $libname.a'
13637 dynamic_linker='OS/2 ld.exe'
13638 shlibpath_var=LIBPATH
13641 osf3* | osf4* | osf5*)
13645 soname_spec='${libname}${release}${shared_ext}$major'
13646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13647 shlibpath_var=LD_LIBRARY_PATH
13648 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13649 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13661 soname_spec='${libname}${release}${shared_ext}$major'
13662 shlibpath_var=LD_LIBRARY_PATH
13663 shlibpath_overrides_runpath=yes
13664 hardcode_into_libs=yes
13665 # ldd complains unless libraries are executable
13666 postinstall_cmds='chmod +x $lib'
13671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13672 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13673 shlibpath_var=LD_LIBRARY_PATH
13674 shlibpath_overrides_runpath=yes
13675 if test "$with_gnu_ld" = yes; then
13683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13684 soname_spec='${libname}${release}${shared_ext}$major'
13685 shlibpath_var=LD_LIBRARY_PATH
13686 case $host_vendor in
13688 shlibpath_overrides_runpath=no
13690 export_dynamic_flag_spec='${wl}-Blargedynsym'
13691 runpath_var=LD_RUN_PATH
13699 shlibpath_overrides_runpath=no
13700 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13706 if test -d /usr/nec ;then
13708 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13709 soname_spec='$libname${shared_ext}.$major'
13710 shlibpath_var=LD_LIBRARY_PATH
13714 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13715 version_type=freebsd-elf
13718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13719 soname_spec='${libname}${release}${shared_ext}$major'
13720 shlibpath_var=LD_LIBRARY_PATH
13721 hardcode_into_libs=yes
13722 if test "$with_gnu_ld" = yes; then
13723 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13724 shlibpath_overrides_runpath=no
13726 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13727 shlibpath_overrides_runpath=yes
13730 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13734 sys_lib_dlsearch_path_spec='/usr/lib'
13739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13740 soname_spec='${libname}${release}${shared_ext}$major'
13741 shlibpath_var=LD_LIBRARY_PATH
13748 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13749 echo "${ECHO_T}$dynamic_linker" >&6; }
13750 test "$dynamic_linker" = no && can_build_shared=no
13752 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13753 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13758 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13759 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13760 echo $ECHO_N "(cached) $ECHO_C" >&6
13762 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13765 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13767 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13768 if test "$GCC" = yes; then
13769 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13772 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13773 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13774 hardcode_action_CXX=
13775 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13776 test -n "$runpath_var_CXX" || \
13777 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13779 # We can hardcode non-existant directories.
13780 if test "$hardcode_direct_CXX" != no &&
13781 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13782 # have to relink, otherwise we might link with an installed library
13783 # when we should be linking with a yet-to-be-installed one
13784 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13785 test "$hardcode_minus_L_CXX" != no; then
13786 # Linking always hardcodes the temporary library directory.
13787 hardcode_action_CXX=relink
13789 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13790 hardcode_action_CXX=immediate
13793 # We cannot hardcode anything, or else we can only hardcode existing
13795 hardcode_action_CXX=unsupported
13797 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13798 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13800 if test "$hardcode_action_CXX" = relink; then
13801 # Fast installation is not supported
13802 enable_fast_install=no
13803 elif test "$shlibpath_overrides_runpath" = yes ||
13804 test "$enable_shared" = no; then
13805 # Fast installation is not necessary
13806 enable_fast_install=needless
13810 # The else clause should only fire when bootstrapping the
13811 # libtool distribution, otherwise you forgot to ship ltmain.sh
13812 # with your package, and you will get complaints that there are
13813 # no rules to generate ltmain.sh.
13814 if test -f "$ltmain"; then
13815 # See if we are running on zsh, and set the options which allow our commands through
13816 # without removal of \ escapes.
13817 if test -n "${ZSH_VERSION+set}" ; then
13818 setopt NO_GLOB_SUBST
13820 # Now quote all the things that may contain metacharacters while being
13821 # careful not to overquote the AC_SUBSTed values. We take copies of the
13822 # variables and quote the copies for generation of the libtool script.
13823 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13825 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13826 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13827 deplibs_check_method reload_flag reload_cmds need_locks \
13828 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13829 lt_cv_sys_global_symbol_to_c_name_address \
13830 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13831 old_postinstall_cmds old_postuninstall_cmds \
13835 lt_prog_compiler_wl_CXX \
13836 lt_prog_compiler_pic_CXX \
13837 lt_prog_compiler_static_CXX \
13838 lt_prog_compiler_no_builtin_flag_CXX \
13839 export_dynamic_flag_spec_CXX \
13840 thread_safe_flag_spec_CXX \
13841 whole_archive_flag_spec_CXX \
13842 enable_shared_with_static_runtimes_CXX \
13843 old_archive_cmds_CXX \
13844 old_archive_from_new_cmds_CXX \
13845 predep_objects_CXX \
13846 postdep_objects_CXX \
13849 compiler_lib_search_path_CXX \
13850 compiler_lib_search_dirs_CXX \
13852 archive_expsym_cmds_CXX \
13853 postinstall_cmds_CXX \
13854 postuninstall_cmds_CXX \
13855 old_archive_from_expsyms_cmds_CXX \
13856 allow_undefined_flag_CXX \
13857 no_undefined_flag_CXX \
13858 export_symbols_cmds_CXX \
13859 hardcode_libdir_flag_spec_CXX \
13860 hardcode_libdir_flag_spec_ld_CXX \
13861 hardcode_libdir_separator_CXX \
13862 hardcode_automatic_CXX \
13864 module_expsym_cmds_CXX \
13865 lt_cv_prog_compiler_c_o_CXX \
13866 fix_srcfile_path_CXX \
13867 exclude_expsyms_CXX \
13868 include_expsyms_CXX; do
13871 old_archive_cmds_CXX | \
13872 old_archive_from_new_cmds_CXX | \
13873 archive_cmds_CXX | \
13874 archive_expsym_cmds_CXX | \
13875 module_cmds_CXX | \
13876 module_expsym_cmds_CXX | \
13877 old_archive_from_expsyms_cmds_CXX | \
13878 export_symbols_cmds_CXX | \
13879 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13880 postinstall_cmds | postuninstall_cmds | \
13881 old_postinstall_cmds | old_postuninstall_cmds | \
13882 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13883 # Double-quote double-evaled strings.
13884 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13887 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13893 *'\$0 --fallback-echo"')
13894 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13900 cat <<__EOF__ >> "$cfgfile"
13901 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13903 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13905 # Shell to use when invoking shell scripts.
13908 # Whether or not to build shared libraries.
13909 build_libtool_libs=$enable_shared
13911 # Whether or not to build static libraries.
13912 build_old_libs=$enable_static
13914 # Whether or not to add -lc for building shared libraries.
13915 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13917 # Whether or not to disallow shared libs when runtime libs are static
13918 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13920 # Whether or not to optimize for fast installation.
13921 fast_install=$enable_fast_install
13924 host_alias=$host_alias
13928 # The build system.
13929 build_alias=$build_alias
13933 # An echo program that does not interpret backslashes.
13938 AR_FLAGS=$lt_AR_FLAGS
13943 # LTCC compiler flags.
13944 LTCFLAGS=$lt_LTCFLAGS
13946 # A language-specific compiler.
13947 CC=$lt_compiler_CXX
13949 # Is the compiler the GNU C compiler?
13955 # The linker used to build libraries.
13958 # Whether we need hard or soft links.
13961 # A BSD-compatible nm program.
13964 # A symbol stripping program
13967 # Used to examine libraries when file_magic_cmd begins "file"
13968 MAGIC_CMD=$MAGIC_CMD
13970 # Used on cygwin: DLL creation program.
13973 # Used on cygwin: object dumper.
13976 # Used on cygwin: assembler.
13979 # The name of the directory that contains temporary libtool files.
13982 # How to create reloadable object files.
13983 reload_flag=$lt_reload_flag
13984 reload_cmds=$lt_reload_cmds
13986 # How to pass a linker flag through the compiler.
13987 wl=$lt_lt_prog_compiler_wl_CXX
13989 # Object file suffix (normally "o").
13990 objext="$ac_objext"
13992 # Old archive suffix (normally "a").
13995 # Shared library suffix (normally ".so").
13996 shrext_cmds='$shrext_cmds'
13998 # Executable file suffix (normally "").
14001 # Additional compiler flags for building library objects.
14002 pic_flag=$lt_lt_prog_compiler_pic_CXX
14005 # What is the maximum length of a command?
14006 max_cmd_len=$lt_cv_sys_max_cmd_len
14008 # Does compiler simultaneously support -c and -o options?
14009 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14011 # Must we lock files when doing compilation?
14012 need_locks=$lt_need_locks
14014 # Do we need the lib prefix for modules?
14015 need_lib_prefix=$need_lib_prefix
14017 # Do we need a version for libraries?
14018 need_version=$need_version
14020 # Whether dlopen is supported.
14021 dlopen_support=$enable_dlopen
14023 # Whether dlopen of programs is supported.
14024 dlopen_self=$enable_dlopen_self
14026 # Whether dlopen of statically linked programs is supported.
14027 dlopen_self_static=$enable_dlopen_self_static
14029 # Compiler flag to prevent dynamic linking.
14030 link_static_flag=$lt_lt_prog_compiler_static_CXX
14032 # Compiler flag to turn off builtin functions.
14033 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14035 # Compiler flag to allow reflexive dlopens.
14036 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14038 # Compiler flag to generate shared objects directly from archives.
14039 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14041 # Compiler flag to generate thread-safe objects.
14042 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14044 # Library versioning type.
14045 version_type=$version_type
14047 # Format of library name prefix.
14048 libname_spec=$lt_libname_spec
14050 # List of archive names. First name is the real one, the rest are links.
14051 # The last name is the one that the linker finds with -lNAME.
14052 library_names_spec=$lt_library_names_spec
14054 # The coded name of the library, if different from the real name.
14055 soname_spec=$lt_soname_spec
14057 # Commands used to build and install an old-style archive.
14059 old_archive_cmds=$lt_old_archive_cmds_CXX
14060 old_postinstall_cmds=$lt_old_postinstall_cmds
14061 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14063 # Create an old-style archive from a shared archive.
14064 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14066 # Create a temporary old-style archive to link instead of a shared archive.
14067 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14069 # Commands used to build and install a shared archive.
14070 archive_cmds=$lt_archive_cmds_CXX
14071 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14072 postinstall_cmds=$lt_postinstall_cmds
14073 postuninstall_cmds=$lt_postuninstall_cmds
14075 # Commands used to build a loadable module (assumed same as above if empty)
14076 module_cmds=$lt_module_cmds_CXX
14077 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14079 # Commands to strip libraries.
14080 old_striplib=$lt_old_striplib
14081 striplib=$lt_striplib
14083 # Dependencies to place before the objects being linked to create a
14085 predep_objects=$lt_predep_objects_CXX
14087 # Dependencies to place after the objects being linked to create a
14089 postdep_objects=$lt_postdep_objects_CXX
14091 # Dependencies to place before the objects being linked to create a
14093 predeps=$lt_predeps_CXX
14095 # Dependencies to place after the objects being linked to create a
14097 postdeps=$lt_postdeps_CXX
14099 # The directories searched by this compiler when creating a shared
14101 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14103 # The library search path used internally by the compiler when linking
14104 # a shared library.
14105 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14107 # Method to check whether dependent libraries are shared objects.
14108 deplibs_check_method=$lt_deplibs_check_method
14110 # Command to use when deplibs_check_method == file_magic.
14111 file_magic_cmd=$lt_file_magic_cmd
14113 # Flag that allows shared libraries with undefined symbols to be built.
14114 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14116 # Flag that forces no undefined symbols.
14117 no_undefined_flag=$lt_no_undefined_flag_CXX
14119 # Commands used to finish a libtool library installation in a directory.
14120 finish_cmds=$lt_finish_cmds
14122 # Same as above, but a single script fragment to be evaled but not shown.
14123 finish_eval=$lt_finish_eval
14125 # Take the output of nm and produce a listing of raw symbols and C names.
14126 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14128 # Transform the output of nm in a proper C declaration
14129 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14131 # Transform the output of nm in a C name address pair
14132 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14134 # This is the shared library runtime path variable.
14135 runpath_var=$runpath_var
14137 # This is the shared library path variable.
14138 shlibpath_var=$shlibpath_var
14140 # Is shlibpath searched before the hard-coded library search path?
14141 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14143 # How to hardcode a shared library path into an executable.
14144 hardcode_action=$hardcode_action_CXX
14146 # Whether we should hardcode library paths into libraries.
14147 hardcode_into_libs=$hardcode_into_libs
14149 # Flag to hardcode \$libdir into a binary during linking.
14150 # This must work even if \$libdir does not exist.
14151 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14153 # If ld is used when linking, flag to hardcode \$libdir into
14154 # a binary during linking. This must work even if \$libdir does
14156 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14158 # Whether we need a single -rpath flag with a separated argument.
14159 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14161 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14162 # resulting binary.
14163 hardcode_direct=$hardcode_direct_CXX
14165 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14166 # resulting binary.
14167 hardcode_minus_L=$hardcode_minus_L_CXX
14169 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14170 # the resulting binary.
14171 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14173 # Set to yes if building a shared library automatically hardcodes DIR into the library
14174 # and all subsequent libraries and executables linked against it.
14175 hardcode_automatic=$hardcode_automatic_CXX
14177 # Variables whose values should be saved in libtool wrapper scripts and
14178 # restored at relink time.
14179 variables_saved_for_relink="$variables_saved_for_relink"
14181 # Whether libtool must link a program against all its dependency libraries.
14182 link_all_deplibs=$link_all_deplibs_CXX
14184 # Compile-time system search path for libraries
14185 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14187 # Run-time system search path for libraries
14188 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14190 # Fix the shell variable \$srcfile for the compiler.
14191 fix_srcfile_path=$lt_fix_srcfile_path
14193 # Set to yes if exported symbols are required.
14194 always_export_symbols=$always_export_symbols_CXX
14196 # The commands to list exported symbols.
14197 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14199 # The commands to extract the exported symbol list from a shared archive.
14200 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14202 # Symbols that should not be listed in the preloaded symbols.
14203 exclude_expsyms=$lt_exclude_expsyms_CXX
14205 # Symbols that must always be exported.
14206 include_expsyms=$lt_include_expsyms_CXX
14208 # ### END LIBTOOL TAG CONFIG: $tagname
14214 # If there is no Makefile yet, we rely on a make rule to execute
14215 # `config.status --recheck' to rerun these tests and create the
14216 # libtool script then.
14217 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14218 if test -f "$ltmain_in"; then
14219 test -f Makefile && make "$ltmain"
14225 ac_cpp='$CPP $CPPFLAGS'
14226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14234 with_gnu_ldcxx=$with_gnu_ld
14235 with_gnu_ld=$lt_save_with_gnu_ld
14236 lt_cv_path_LDCXX=$lt_cv_path_LD
14237 lt_cv_path_LD=$lt_save_path_LD
14238 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14239 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14247 if test -n "$F77" && test "X$F77" != "Xno"; then
14250 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14251 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14252 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14255 archive_cmds_need_lc_F77=no
14256 allow_undefined_flag_F77=
14257 always_export_symbols_F77=no
14258 archive_expsym_cmds_F77=
14259 export_dynamic_flag_spec_F77=
14260 hardcode_direct_F77=no
14261 hardcode_libdir_flag_spec_F77=
14262 hardcode_libdir_flag_spec_ld_F77=
14263 hardcode_libdir_separator_F77=
14264 hardcode_minus_L_F77=no
14265 hardcode_automatic_F77=no
14267 module_expsym_cmds_F77=
14268 link_all_deplibs_F77=unknown
14269 old_archive_cmds_F77=$old_archive_cmds
14270 no_undefined_flag_F77=
14271 whole_archive_flag_spec_F77=
14272 enable_shared_with_static_runtimes_F77=no
14274 # Source file extension for f77 test sources.
14277 # Object file extension for compiled f77 test sources.
14281 # Code to be used in simple compile tests
14282 lt_simple_compile_test_code="\
14288 # Code to be used in simple link tests
14289 lt_simple_link_test_code="\
14294 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14296 # If no C compiler was specified, use CC.
14299 # If no C compiler flags were specified, use CFLAGS.
14300 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14302 # Allow CC to be a program name with arguments.
14306 # save warnings/boilerplate of simple test code
14307 ac_outfile=conftest.$ac_objext
14308 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14309 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14310 _lt_compiler_boilerplate=`cat conftest.err`
14313 ac_outfile=conftest.$ac_objext
14314 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14315 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14316 _lt_linker_boilerplate=`cat conftest.err`
14320 # Allow CC to be a program name with arguments.
14325 for cc_temp in $compiler""; do
14327 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14328 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14333 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14336 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14337 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14338 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14339 echo "${ECHO_T}$can_build_shared" >&6; }
14341 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14342 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14343 test "$can_build_shared" = "no" && enable_shared=no
14345 # On AIX, shared libraries and static libraries use the same namespace, and
14346 # are all built from PIC.
14349 test "$enable_shared" = yes && enable_static=no
14350 if test -n "$RANLIB"; then
14351 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14352 postinstall_cmds='$RANLIB $lib'
14356 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14357 test "$enable_shared" = yes && enable_static=no
14361 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14362 echo "${ECHO_T}$enable_shared" >&6; }
14364 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14365 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14366 # Make sure either enable_shared or enable_static is yes.
14367 test "$enable_shared" = yes || enable_static=yes
14368 { echo "$as_me:$LINENO: result: $enable_static" >&5
14369 echo "${ECHO_T}$enable_static" >&6; }
14374 lt_prog_compiler_wl_F77=
14375 lt_prog_compiler_pic_F77=
14376 lt_prog_compiler_static_F77=
14378 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14379 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14381 if test "$GCC" = yes; then
14382 lt_prog_compiler_wl_F77='-Wl,'
14383 lt_prog_compiler_static_F77='-static'
14387 # All AIX code is PIC.
14388 if test "$host_cpu" = ia64; then
14389 # AIX 5 now supports IA64 processor
14390 lt_prog_compiler_static_F77='-Bstatic'
14395 # FIXME: we need at least 68020 code to build shared libraries, but
14396 # adding the `-m68020' flag to GCC prevents building anything better,
14398 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14401 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14402 # PIC is the default for these OSes.
14405 mingw* | cygwin* | pw32* | os2*)
14406 # This hack is so that the source file can tell whether it is being
14407 # built for inclusion in a dll (and should export symbols for example).
14408 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14409 # (--disable-auto-import) libraries
14410 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14413 darwin* | rhapsody*)
14414 # PIC is the default on this platform
14415 # Common symbols not allowed in MH_DYLIB files
14416 lt_prog_compiler_pic_F77='-fno-common'
14420 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14421 # Instead, we relocate shared libraries at runtime.
14425 # Just because we use GCC doesn't mean we suddenly get shared libraries
14426 # on systems that don't support them.
14427 lt_prog_compiler_can_build_shared_F77=no
14432 if test -d /usr/nec; then
14433 lt_prog_compiler_pic_F77=-Kconform_pic
14438 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14439 # not for PA HP-UX.
14445 lt_prog_compiler_pic_F77='-fPIC'
14451 lt_prog_compiler_pic_F77='-fPIC'
14455 # PORTME Check for flag to pass linker flags through the system compiler.
14458 lt_prog_compiler_wl_F77='-Wl,'
14459 if test "$host_cpu" = ia64; then
14460 # AIX 5 now supports IA64 processor
14461 lt_prog_compiler_static_F77='-Bstatic'
14463 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14467 # PIC is the default on this platform
14468 # Common symbols not allowed in MH_DYLIB files
14469 case $cc_basename in
14471 lt_prog_compiler_pic_F77='-qnocommon'
14472 lt_prog_compiler_wl_F77='-Wl,'
14477 mingw* | cygwin* | pw32* | os2*)
14478 # This hack is so that the source file can tell whether it is being
14479 # built for inclusion in a dll (and should export symbols for example).
14480 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14483 hpux9* | hpux10* | hpux11*)
14484 lt_prog_compiler_wl_F77='-Wl,'
14485 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14486 # not for PA HP-UX.
14492 lt_prog_compiler_pic_F77='+Z'
14495 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14496 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14499 irix5* | irix6* | nonstopux*)
14500 lt_prog_compiler_wl_F77='-Wl,'
14501 # PIC (with -KPIC) is the default.
14502 lt_prog_compiler_static_F77='-non_shared'
14506 lt_prog_compiler_pic_F77='-KPIC'
14507 lt_prog_compiler_static_F77='-Bstatic'
14510 linux* | k*bsd*-gnu)
14511 case $cc_basename in
14513 lt_prog_compiler_wl_F77='-Wl,'
14514 lt_prog_compiler_pic_F77='-KPIC'
14515 lt_prog_compiler_static_F77='-static'
14517 pgcc* | pgf77* | pgf90* | pgf95*)
14518 # Portland Group compilers (*not* the Pentium gcc compiler,
14519 # which looks to be a dead project)
14520 lt_prog_compiler_wl_F77='-Wl,'
14521 lt_prog_compiler_pic_F77='-fpic'
14522 lt_prog_compiler_static_F77='-Bstatic'
14525 lt_prog_compiler_wl_F77='-Wl,'
14526 # All Alpha code is PIC.
14527 lt_prog_compiler_static_F77='-non_shared'
14530 case `$CC -V 2>&1 | sed 5q` in
14533 lt_prog_compiler_pic_F77='-KPIC'
14534 lt_prog_compiler_static_F77='-Bstatic'
14535 lt_prog_compiler_wl_F77='-Wl,'
14538 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14539 lt_prog_compiler_pic_F77='-KPIC'
14540 lt_prog_compiler_static_F77='-Bstatic'
14541 lt_prog_compiler_wl_F77=''
14548 osf3* | osf4* | osf5*)
14549 lt_prog_compiler_wl_F77='-Wl,'
14550 # All OSF/1 code is PIC.
14551 lt_prog_compiler_static_F77='-non_shared'
14555 lt_prog_compiler_static_F77='-non_shared'
14559 lt_prog_compiler_pic_F77='-KPIC'
14560 lt_prog_compiler_static_F77='-Bstatic'
14561 case $cc_basename in
14562 f77* | f90* | f95*)
14563 lt_prog_compiler_wl_F77='-Qoption ld ';;
14565 lt_prog_compiler_wl_F77='-Wl,';;
14570 lt_prog_compiler_wl_F77='-Qoption ld '
14571 lt_prog_compiler_pic_F77='-PIC'
14572 lt_prog_compiler_static_F77='-Bstatic'
14575 sysv4 | sysv4.2uw2* | sysv4.3*)
14576 lt_prog_compiler_wl_F77='-Wl,'
14577 lt_prog_compiler_pic_F77='-KPIC'
14578 lt_prog_compiler_static_F77='-Bstatic'
14582 if test -d /usr/nec ;then
14583 lt_prog_compiler_pic_F77='-Kconform_pic'
14584 lt_prog_compiler_static_F77='-Bstatic'
14588 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14589 lt_prog_compiler_wl_F77='-Wl,'
14590 lt_prog_compiler_pic_F77='-KPIC'
14591 lt_prog_compiler_static_F77='-Bstatic'
14595 lt_prog_compiler_wl_F77='-Wl,'
14596 lt_prog_compiler_can_build_shared_F77=no
14600 lt_prog_compiler_pic_F77='-pic'
14601 lt_prog_compiler_static_F77='-Bstatic'
14605 lt_prog_compiler_can_build_shared_F77=no
14610 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14611 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14614 # Check to make sure the PIC flag actually works.
14616 if test -n "$lt_prog_compiler_pic_F77"; then
14618 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14619 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14620 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14621 echo $ECHO_N "(cached) $ECHO_C" >&6
14623 lt_cv_prog_compiler_pic_works_F77=no
14624 ac_outfile=conftest.$ac_objext
14625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14626 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14627 # Insert the option either (1) after the last *FLAGS variable, or
14628 # (2) before a word containing "conftest.", or (3) at the end.
14629 # Note that $ac_compile itself does not contain backslashes and begins
14630 # with a dollar sign (not a hyphen), so the echo should work correctly.
14631 # The option is referenced via a variable to avoid confusing sed.
14632 lt_compile=`echo "$ac_compile" | $SED \
14633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14635 -e 's:$: $lt_compiler_flag:'`
14636 (eval echo "\"\$as_me:14636: $lt_compile\"" >&5)
14637 (eval "$lt_compile" 2>conftest.err)
14639 cat conftest.err >&5
14640 echo "$as_me:14640: \$? = $ac_status" >&5
14641 if (exit $ac_status) && test -s "$ac_outfile"; then
14642 # The compiler can only warn and ignore the option if not recognized
14643 # So say no if there are warnings other than the usual output.
14644 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14646 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14647 lt_cv_prog_compiler_pic_works_F77=yes
14653 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14654 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14656 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14657 case $lt_prog_compiler_pic_F77 in
14659 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14662 lt_prog_compiler_pic_F77=
14663 lt_prog_compiler_can_build_shared_F77=no
14668 # For platforms which do not support PIC, -DPIC is meaningless:
14670 lt_prog_compiler_pic_F77=
14673 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14678 # Check to make sure the static flag actually works.
14680 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14681 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14682 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14683 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14686 lt_cv_prog_compiler_static_works_F77=no
14687 save_LDFLAGS="$LDFLAGS"
14688 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14689 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14690 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14691 # The linker can only warn and ignore the option if not recognized
14692 # So say no if there are warnings
14693 if test -s conftest.err; then
14694 # Append any errors to the config.log.
14695 cat conftest.err 1>&5
14696 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14697 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14698 if diff conftest.exp conftest.er2 >/dev/null; then
14699 lt_cv_prog_compiler_static_works_F77=yes
14702 lt_cv_prog_compiler_static_works_F77=yes
14706 LDFLAGS="$save_LDFLAGS"
14709 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14710 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14712 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14715 lt_prog_compiler_static_F77=
14719 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14720 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14721 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14724 lt_cv_prog_compiler_c_o_F77=no
14725 $rm -r conftest 2>/dev/null
14729 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14731 lt_compiler_flag="-o out/conftest2.$ac_objext"
14732 # Insert the option either (1) after the last *FLAGS variable, or
14733 # (2) before a word containing "conftest.", or (3) at the end.
14734 # Note that $ac_compile itself does not contain backslashes and begins
14735 # with a dollar sign (not a hyphen), so the echo should work correctly.
14736 lt_compile=`echo "$ac_compile" | $SED \
14737 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14739 -e 's:$: $lt_compiler_flag:'`
14740 (eval echo "\"\$as_me:14740: $lt_compile\"" >&5)
14741 (eval "$lt_compile" 2>out/conftest.err)
14743 cat out/conftest.err >&5
14744 echo "$as_me:14744: \$? = $ac_status" >&5
14745 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14747 # The compiler can only warn and ignore the option if not recognized
14748 # So say no if there are warnings
14749 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14750 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14751 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14752 lt_cv_prog_compiler_c_o_F77=yes
14757 # SGI C++ compiler will create directory out/ii_files/ for
14758 # template instantiation
14759 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14760 $rm out/* && rmdir out
14766 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14767 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14770 hard_links="nottested"
14771 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14772 # do not overwrite the value of need_locks provided by the user
14773 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14774 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14779 ln conftest.a conftest.b 2>&5 || hard_links=no
14780 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14781 { echo "$as_me:$LINENO: result: $hard_links" >&5
14782 echo "${ECHO_T}$hard_links" >&6; }
14783 if test "$hard_links" = no; then
14784 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14785 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14792 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14793 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14796 allow_undefined_flag_F77=
14797 enable_shared_with_static_runtimes_F77=no
14799 archive_expsym_cmds_F77=
14800 old_archive_From_new_cmds_F77=
14801 old_archive_from_expsyms_cmds_F77=
14802 export_dynamic_flag_spec_F77=
14803 whole_archive_flag_spec_F77=
14804 thread_safe_flag_spec_F77=
14805 hardcode_libdir_flag_spec_F77=
14806 hardcode_libdir_flag_spec_ld_F77=
14807 hardcode_libdir_separator_F77=
14808 hardcode_direct_F77=no
14809 hardcode_minus_L_F77=no
14810 hardcode_shlibpath_var_F77=unsupported
14811 link_all_deplibs_F77=unknown
14812 hardcode_automatic_F77=no
14814 module_expsym_cmds_F77=
14815 always_export_symbols_F77=no
14816 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14817 # include_expsyms should be a list of space-separated symbols to be *always*
14818 # included in the symbol list
14819 include_expsyms_F77=
14820 # exclude_expsyms can be an extended regexp of symbols to exclude
14821 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14822 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14823 # as well as any symbol that contains `d'.
14824 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14825 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14826 # platforms (ab)use it in PIC code, but their linkers get confused if
14827 # the symbol is explicitly referenced. Since portable code cannot
14828 # rely on this symbol name, it's probably fine to never include it in
14829 # preloaded symbol tables.
14830 # Exclude shared library initialization/finalization symbols.
14831 extract_expsyms_cmds=
14832 # Just being paranoid about ensuring that cc_basename is set.
14833 for cc_temp in $compiler""; do
14835 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14836 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14841 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14844 cygwin* | mingw* | pw32*)
14845 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14846 # When not using gcc, we currently assume that we are using
14847 # Microsoft Visual C++.
14848 if test "$GCC" != yes; then
14853 # we just hope/assume this is gcc and not c89 (= MSVC++)
14862 if test "$with_gnu_ld" = yes; then
14863 # If archive_cmds runs LD, not CC, wlarc should be empty
14866 # Set some defaults for GNU ld with shared library support. These
14867 # are reset later if shared libraries are not supported. Putting them
14868 # here allows them to be overridden if necessary.
14869 runpath_var=LD_RUN_PATH
14870 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14871 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14872 # ancient GNU ld didn't support --whole-archive et. al.
14873 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14874 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14876 whole_archive_flag_spec_F77=
14878 supports_anon_versioning=no
14879 case `$LD -v 2>/dev/null` in
14880 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14881 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14882 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14883 *\ 2.11.*) ;; # other 2.11 versions
14884 *) supports_anon_versioning=yes ;;
14887 # See if GNU ld supports shared libraries.
14890 # On AIX/PPC, the GNU linker is very broken
14891 if test "$host_cpu" != ia64; then
14895 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14896 *** to be unable to reliably create shared libraries on AIX.
14897 *** Therefore, libtool is disabling shared libraries support. If you
14898 *** really care for shared libraries, you may want to modify your PATH
14899 *** so that a non-GNU linker is found, and then restart.
14906 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)'
14907 hardcode_libdir_flag_spec_F77='-L$libdir'
14908 hardcode_minus_L_F77=yes
14910 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14911 # that the semantics of dynamic libraries on AmigaOS, at least up
14912 # to version 4, is to share data among multiple programs linked
14913 # with the same dynamic library. Since this doesn't match the
14914 # behavior of shared libraries on other platforms, we can't use
14920 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14921 allow_undefined_flag_F77=unsupported
14922 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14923 # support --undefined. This deserves some investigation. FIXME
14924 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14930 cygwin* | mingw* | pw32*)
14931 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14932 # as there is no search path for DLLs.
14933 hardcode_libdir_flag_spec_F77='-L$libdir'
14934 allow_undefined_flag_F77=unsupported
14935 always_export_symbols_F77=no
14936 enable_shared_with_static_runtimes_F77=yes
14937 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14939 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14940 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14941 # If the export-symbols file already is a .def file (1st line
14942 # is EXPORTS), use it as is; otherwise, prepend...
14943 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14944 cp $export_symbols $output_objdir/$soname.def;
14946 echo EXPORTS > $output_objdir/$soname.def;
14947 cat $export_symbols >> $output_objdir/$soname.def;
14949 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14956 hardcode_direct_F77=no
14957 hardcode_shlibpath_var_F77=no
14958 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14959 export_dynamic_flag_spec_F77='${wl}-E'
14960 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14961 # Instead, shared libraries are loaded at an image base (0x10000000 by
14962 # default) and relocated if they conflict, which is a slow very memory
14963 # consuming and fragmenting process. To avoid this, we pick a random,
14964 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14965 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14966 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'
14967 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'
14970 gnu* | linux* | k*bsd*-gnu)
14971 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14973 case $cc_basename,$host_cpu in
14974 pgcc*) # Portland Group C compiler
14975 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'
14976 tmp_addflag=' $pic_flag'
14978 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14979 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'
14980 tmp_addflag=' $pic_flag -Mnomain' ;;
14981 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14982 tmp_addflag=' -i_dynamic' ;;
14983 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14984 tmp_addflag=' -i_dynamic -nofor_main' ;;
14985 ifc* | ifort*) # Intel Fortran compiler
14986 tmp_addflag=' -nofor_main' ;;
14988 case `$CC -V 2>&1 | sed 5q` in
14989 *Sun\ C*) # Sun C 5.9
14990 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'
14991 tmp_sharedflag='-G' ;;
14992 *Sun\ F*) # Sun Fortran 8.3
14993 tmp_sharedflag='-G' ;;
14995 tmp_sharedflag='-shared' ;;
14997 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14999 if test $supports_anon_versioning = yes; then
15000 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15001 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15002 $echo "local: *; };" >> $output_objdir/$libname.ver~
15003 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15005 link_all_deplibs_F77=no
15011 netbsd* | netbsdelf*-gnu)
15012 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15013 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15016 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15017 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15022 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15026 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15027 *** create shared libraries on Solaris systems. Therefore, libtool
15028 *** is disabling shared libraries support. We urge you to upgrade GNU
15029 *** binutils to release 2.9.1 or newer. Another option is to modify
15030 *** your PATH or compiler configuration so that the native linker is
15031 *** used, and then restart.
15034 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15035 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15036 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15042 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15043 case `$LD -v 2>&1` in
15044 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15048 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15049 *** reliably create shared libraries on SCO systems. Therefore, libtool
15050 *** is disabling shared libraries support. We urge you to upgrade GNU
15051 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15052 *** your PATH or compiler configuration so that the native linker is
15053 *** used, and then restart.
15058 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15059 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15060 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15061 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15070 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15072 hardcode_direct_F77=yes
15073 hardcode_shlibpath_var_F77=no
15077 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15078 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15079 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15086 if test "$ld_shlibs_F77" = no; then
15088 hardcode_libdir_flag_spec_F77=
15089 export_dynamic_flag_spec_F77=
15090 whole_archive_flag_spec_F77=
15093 # PORTME fill in a description of your system's linker (not GNU ld)
15096 allow_undefined_flag_F77=unsupported
15097 always_export_symbols_F77=yes
15098 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'
15099 # Note: this linker hardcodes the directories in LIBPATH if there
15100 # are no directories specified by -L.
15101 hardcode_minus_L_F77=yes
15102 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15103 # Neither direct hardcoding nor static linking is supported with a
15105 hardcode_direct_F77=unsupported
15110 if test "$host_cpu" = ia64; then
15111 # On IA64, the linker does run time linking by default, so we don't
15112 # have to do anything special.
15113 aix_use_runtimelinking=no
15114 exp_sym_flag='-Bexport'
15117 # If we're using GNU nm, then we don't want the "-C" option.
15118 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15119 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15120 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'
15122 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'
15124 aix_use_runtimelinking=no
15126 # Test if we are trying to use run time linking or normal
15127 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15128 # need to do runtime linking.
15129 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15130 for ld_flag in $LDFLAGS; do
15131 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15132 aix_use_runtimelinking=yes
15139 exp_sym_flag='-bexport'
15140 no_entry_flag='-bnoentry'
15143 # When large executables or shared objects are built, AIX ld can
15144 # have problems creating the table of contents. If linking a library
15145 # or program results in "error TOC overflow" add -mminimal-toc to
15146 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15147 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15149 archive_cmds_F77=''
15150 hardcode_direct_F77=yes
15151 hardcode_libdir_separator_F77=':'
15152 link_all_deplibs_F77=yes
15154 if test "$GCC" = yes; then
15155 case $host_os in aix4.[012]|aix4.[012].*)
15156 # We only want to do this on AIX 4.2 and lower, the check
15157 # below for broken collect2 doesn't work under 4.3+
15158 collect2name=`${CC} -print-prog-name=collect2`
15159 if test -f "$collect2name" && \
15160 strings "$collect2name" | grep resolve_lib_name >/dev/null
15162 # We have reworked collect2
15165 # We have old collect2
15166 hardcode_direct_F77=unsupported
15167 # It fails to find uninstalled libraries when the uninstalled
15168 # path is not listed in the libpath. Setting hardcode_minus_L
15169 # to unsupported forces relinking
15170 hardcode_minus_L_F77=yes
15171 hardcode_libdir_flag_spec_F77='-L$libdir'
15172 hardcode_libdir_separator_F77=
15176 shared_flag='-shared'
15177 if test "$aix_use_runtimelinking" = yes; then
15178 shared_flag="$shared_flag "'${wl}-G'
15182 if test "$host_cpu" = ia64; then
15183 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15184 # chokes on -Wl,-G. The following line is correct:
15187 if test "$aix_use_runtimelinking" = yes; then
15188 shared_flag='${wl}-G'
15190 shared_flag='${wl}-bM:SRE'
15195 # It seems that -bexpall does not export symbols beginning with
15196 # underscore (_), so it is better to generate a list of symbols to export.
15197 always_export_symbols_F77=yes
15198 if test "$aix_use_runtimelinking" = yes; then
15199 # Warning - without using the other runtime loading flags (-brtl),
15200 # -berok will link without error, but may produce a broken library.
15201 allow_undefined_flag_F77='-berok'
15202 # Determine the default libpath from the value encoded in an empty executable.
15203 cat >conftest.$ac_ext <<_ACEOF
15208 rm -f conftest.$ac_objext conftest$ac_exeext
15209 if { (ac_try="$ac_link"
15210 case "(($ac_try" in
15211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212 *) ac_try_echo=$ac_try;;
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_link") 2>conftest.er1
15217 grep -v '^ *+' conftest.er1 >conftest.err
15219 cat conftest.err >&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); } && {
15222 test -z "$ac_f77_werror_flag" ||
15223 test ! -s conftest.err
15224 } && test -s conftest$ac_exeext &&
15225 $as_test_x conftest$ac_exeext; then
15227 lt_aix_libpath_sed='
15228 /Import File Strings/,/^$/ {
15234 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15235 # Check for a 64-bit object if we didn't find anything.
15236 if test -z "$aix_libpath"; then
15237 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15240 echo "$as_me: failed program was:" >&5
15241 sed 's/^/| /' conftest.$ac_ext >&5
15246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15247 conftest$ac_exeext conftest.$ac_ext
15248 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15250 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15251 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"
15253 if test "$host_cpu" = ia64; then
15254 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15255 allow_undefined_flag_F77="-z nodefs"
15256 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"
15258 # Determine the default libpath from the value encoded in an empty executable.
15259 cat >conftest.$ac_ext <<_ACEOF
15264 rm -f conftest.$ac_objext conftest$ac_exeext
15265 if { (ac_try="$ac_link"
15266 case "(($ac_try" in
15267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268 *) ac_try_echo=$ac_try;;
15270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271 (eval "$ac_link") 2>conftest.er1
15273 grep -v '^ *+' conftest.er1 >conftest.err
15275 cat conftest.err >&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } && {
15278 test -z "$ac_f77_werror_flag" ||
15279 test ! -s conftest.err
15280 } && test -s conftest$ac_exeext &&
15281 $as_test_x conftest$ac_exeext; then
15283 lt_aix_libpath_sed='
15284 /Import File Strings/,/^$/ {
15290 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15291 # Check for a 64-bit object if we didn't find anything.
15292 if test -z "$aix_libpath"; then
15293 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15296 echo "$as_me: failed program was:" >&5
15297 sed 's/^/| /' conftest.$ac_ext >&5
15302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15303 conftest$ac_exeext conftest.$ac_ext
15304 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15306 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15307 # Warning - without using the other run time loading flags,
15308 # -berok will link without error, but may produce a broken library.
15309 no_undefined_flag_F77=' ${wl}-bernotok'
15310 allow_undefined_flag_F77=' ${wl}-berok'
15311 # Exported symbols can be pulled into shared objects from archives
15312 whole_archive_flag_spec_F77='$convenience'
15313 archive_cmds_need_lc_F77=yes
15314 # This is similar to how AIX traditionally builds its shared libraries.
15315 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'
15321 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)'
15322 hardcode_libdir_flag_spec_F77='-L$libdir'
15323 hardcode_minus_L_F77=yes
15324 # see comment about different semantics on the GNU ld section
15329 export_dynamic_flag_spec_F77=-rdynamic
15332 cygwin* | mingw* | pw32*)
15333 # When not using gcc, we currently assume that we are using
15334 # Microsoft Visual C++.
15335 # hardcode_libdir_flag_spec is actually meaningless, as there is
15336 # no search path for DLLs.
15337 hardcode_libdir_flag_spec_F77=' '
15338 allow_undefined_flag_F77=unsupported
15339 # Tell ltmain to make .lib files, not .a files.
15341 # Tell ltmain to make .dll files, not .so files.
15343 # FIXME: Setting linknames here is a bad hack.
15344 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15345 # The linker will automatically build a .lib file if we build a DLL.
15346 old_archive_From_new_cmds_F77='true'
15347 # FIXME: Should let the user specify the lib program.
15348 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15349 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15350 enable_shared_with_static_runtimes_F77=yes
15353 darwin* | rhapsody*)
15355 rhapsody* | darwin1.[012])
15356 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15359 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15360 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15362 case ${MACOSX_DEPLOYMENT_TARGET} in
15364 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15367 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15373 archive_cmds_need_lc_F77=no
15374 hardcode_direct_F77=no
15375 hardcode_automatic_F77=yes
15376 hardcode_shlibpath_var_F77=unsupported
15377 whole_archive_flag_spec_F77=''
15378 link_all_deplibs_F77=yes
15379 if test "$GCC" = yes ; then
15380 output_verbose_link_cmd='echo'
15381 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}"
15382 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15383 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}"
15384 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}"
15386 case $cc_basename in
15388 output_verbose_link_cmd='echo'
15389 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15390 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15391 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15392 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}'
15393 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}'
15403 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15404 hardcode_libdir_flag_spec_F77='-L$libdir'
15405 hardcode_shlibpath_var_F77=no
15412 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15413 # support. Future versions do this automatically, but an explicit c++rt0.o
15414 # does not break anything, and helps significantly (at the cost of a little
15417 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15418 hardcode_libdir_flag_spec_F77='-R$libdir'
15419 hardcode_direct_F77=yes
15420 hardcode_shlibpath_var_F77=no
15423 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15425 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15426 hardcode_direct_F77=yes
15427 hardcode_minus_L_F77=yes
15428 hardcode_shlibpath_var_F77=no
15431 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15432 freebsd* | dragonfly*)
15433 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15434 hardcode_libdir_flag_spec_F77='-R$libdir'
15435 hardcode_direct_F77=yes
15436 hardcode_shlibpath_var_F77=no
15440 if test "$GCC" = yes; then
15441 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'
15443 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'
15445 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15446 hardcode_libdir_separator_F77=:
15447 hardcode_direct_F77=yes
15449 # hardcode_minus_L: Not really in the search PATH,
15450 # but as the default location of the library.
15451 hardcode_minus_L_F77=yes
15452 export_dynamic_flag_spec_F77='${wl}-E'
15456 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15457 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15459 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15461 if test "$with_gnu_ld" = no; then
15462 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15463 hardcode_libdir_separator_F77=:
15465 hardcode_direct_F77=yes
15466 export_dynamic_flag_spec_F77='${wl}-E'
15468 # hardcode_minus_L: Not really in the search PATH,
15469 # but as the default location of the library.
15470 hardcode_minus_L_F77=yes
15475 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15478 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15481 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15484 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15490 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15493 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15496 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15500 if test "$with_gnu_ld" = no; then
15501 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15502 hardcode_libdir_separator_F77=:
15506 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15507 hardcode_direct_F77=no
15508 hardcode_shlibpath_var_F77=no
15511 hardcode_direct_F77=yes
15512 export_dynamic_flag_spec_F77='${wl}-E'
15514 # hardcode_minus_L: Not really in the search PATH,
15515 # but as the default location of the library.
15516 hardcode_minus_L_F77=yes
15522 irix5* | irix6* | nonstopux*)
15523 if test "$GCC" = yes; then
15524 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'
15526 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'
15527 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15529 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15530 hardcode_libdir_separator_F77=:
15531 link_all_deplibs_F77=yes
15534 netbsd* | netbsdelf*-gnu)
15535 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15536 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15538 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15540 hardcode_libdir_flag_spec_F77='-R$libdir'
15541 hardcode_direct_F77=yes
15542 hardcode_shlibpath_var_F77=no
15546 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15547 hardcode_direct_F77=yes
15548 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15549 hardcode_libdir_separator_F77=:
15550 hardcode_shlibpath_var_F77=no
15554 if test -f /usr/libexec/ld.so; then
15555 hardcode_direct_F77=yes
15556 hardcode_shlibpath_var_F77=no
15557 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15558 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15559 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15560 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15561 export_dynamic_flag_spec_F77='${wl}-E'
15564 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15565 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15566 hardcode_libdir_flag_spec_F77='-R$libdir'
15569 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15570 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15580 hardcode_libdir_flag_spec_F77='-L$libdir'
15581 hardcode_minus_L_F77=yes
15582 allow_undefined_flag_F77=unsupported
15583 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'
15584 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15588 if test "$GCC" = yes; then
15589 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15590 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'
15592 allow_undefined_flag_F77=' -expect_unresolved \*'
15593 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'
15595 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15596 hardcode_libdir_separator_F77=:
15599 osf4* | osf5*) # as osf3* with the addition of -msym flag
15600 if test "$GCC" = yes; then
15601 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15602 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'
15603 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15605 allow_undefined_flag_F77=' -expect_unresolved \*'
15606 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'
15607 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~
15608 $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'
15610 # Both c and cxx compiler support -rpath directly
15611 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15613 hardcode_libdir_separator_F77=:
15617 no_undefined_flag_F77=' -z text'
15618 if test "$GCC" = yes; then
15620 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15621 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15622 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15625 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15626 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15627 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15629 hardcode_libdir_flag_spec_F77='-R$libdir'
15630 hardcode_shlibpath_var_F77=no
15632 solaris2.[0-5] | solaris2.[0-5].*) ;;
15634 # The compiler driver will combine and reorder linker options,
15635 # but understands `-z linker_flag'. GCC discards it without `$wl',
15636 # but is careful enough not to reorder.
15637 # Supported since Solaris 2.6 (maybe 2.5.1?)
15638 if test "$GCC" = yes; then
15639 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15641 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15645 link_all_deplibs_F77=yes
15649 if test "x$host_vendor" = xsequent; then
15650 # Use $CC to link under sequent, because it throws in some extra .o
15651 # files that make .init and .fini sections work.
15652 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15654 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15656 hardcode_libdir_flag_spec_F77='-L$libdir'
15657 hardcode_direct_F77=yes
15658 hardcode_minus_L_F77=yes
15659 hardcode_shlibpath_var_F77=no
15663 case $host_vendor in
15665 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15666 hardcode_direct_F77=yes # is this really true???
15669 ## LD is ld it makes a PLAMLIB
15670 ## CC just makes a GrossModule.
15671 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15672 reload_cmds_F77='$CC -r -o $output$reload_objs'
15673 hardcode_direct_F77=no
15676 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15677 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15680 runpath_var='LD_RUN_PATH'
15681 hardcode_shlibpath_var_F77=no
15685 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15686 hardcode_shlibpath_var_F77=no
15687 export_dynamic_flag_spec_F77='-Bexport'
15691 if test -d /usr/nec; then
15692 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15693 hardcode_shlibpath_var_F77=no
15694 runpath_var=LD_RUN_PATH
15695 hardcode_runpath_var=yes
15700 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15701 no_undefined_flag_F77='${wl}-z,text'
15702 archive_cmds_need_lc_F77=no
15703 hardcode_shlibpath_var_F77=no
15704 runpath_var='LD_RUN_PATH'
15706 if test "$GCC" = yes; then
15707 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15708 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15710 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15711 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15715 sysv5* | sco3.2v5* | sco5v6*)
15716 # Note: We can NOT use -z defs as we might desire, because we do not
15717 # link with -lc, and that would cause any symbols used from libc to
15718 # always be unresolved, which means just about no library would
15719 # ever link correctly. If we're not using GNU ld we use -z text
15720 # though, which does catch some bad symbols but isn't as heavy-handed
15722 no_undefined_flag_F77='${wl}-z,text'
15723 allow_undefined_flag_F77='${wl}-z,nodefs'
15724 archive_cmds_need_lc_F77=no
15725 hardcode_shlibpath_var_F77=no
15726 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15727 hardcode_libdir_separator_F77=':'
15728 link_all_deplibs_F77=yes
15729 export_dynamic_flag_spec_F77='${wl}-Bexport'
15730 runpath_var='LD_RUN_PATH'
15732 if test "$GCC" = yes; then
15733 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15734 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15736 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15737 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15742 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15743 hardcode_libdir_flag_spec_F77='-L$libdir'
15744 hardcode_shlibpath_var_F77=no
15753 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15754 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15755 test "$ld_shlibs_F77" = no && can_build_shared=no
15758 # Do we need to explicitly link libc?
15760 case "x$archive_cmds_need_lc_F77" in
15762 # Assume -lc should be added
15763 archive_cmds_need_lc_F77=yes
15765 if test "$enable_shared" = yes && test "$GCC" = yes; then
15766 case $archive_cmds_F77 in
15768 # FIXME: we may have to deal with multi-command sequences.
15771 # Test whether the compiler implicitly links with -lc since on some
15772 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15773 # to ld, don't add -lc before -lgcc.
15774 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15775 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15780 (eval $ac_compile) 2>&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); } 2>conftest.err; then
15786 libobjs=conftest.$ac_objext
15788 wl=$lt_prog_compiler_wl_F77
15789 pic_flag=$lt_prog_compiler_pic_F77
15795 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15796 allow_undefined_flag_F77=
15797 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15798 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }
15803 archive_cmds_need_lc_F77=no
15805 archive_cmds_need_lc_F77=yes
15807 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15809 cat conftest.err 1>&5
15812 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15813 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15820 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15821 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15822 library_names_spec=
15823 libname_spec='lib$name'
15827 postuninstall_cmds=
15831 shlibpath_overrides_runpath=unknown
15833 dynamic_linker="$host_os ld.so"
15834 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15836 need_lib_prefix=unknown
15837 hardcode_into_libs=no
15839 # when you set need_version to no, make sure it does not cause -set_version
15840 # flags to be left without arguments
15841 need_version=unknown
15846 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15847 shlibpath_var=LIBPATH
15849 # AIX 3 has no versioning support, so we append a major version to the name.
15850 soname_spec='${libname}${release}${shared_ext}$major'
15857 hardcode_into_libs=yes
15858 if test "$host_cpu" = ia64; then
15859 # AIX 5 supports IA64
15860 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15861 shlibpath_var=LD_LIBRARY_PATH
15863 # With GCC up to 2.95.x, collect2 would create an import file
15864 # for dependence libraries. The import file would start with
15865 # the line `#! .'. This would cause the generated library to
15866 # depend on `.', always an invalid library. This was fixed in
15867 # development snapshots of GCC prior to 3.0.
15869 aix4 | aix4.[01] | aix4.[01].*)
15870 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15872 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15875 can_build_shared=no
15879 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15880 # soname into executable. Probably we can add versioning support to
15881 # collect2, so additional links can be useful in future.
15882 if test "$aix_use_runtimelinking" = yes; then
15883 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15884 # instead of lib<name>.a to let people know that these are not
15885 # typical AIX shared libraries.
15886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15888 # We preserve .a as extension for shared libraries through AIX4.2
15889 # and later when we are not doing run time linking.
15890 library_names_spec='${libname}${release}.a $libname.a'
15891 soname_spec='${libname}${release}${shared_ext}$major'
15893 shlibpath_var=LIBPATH
15898 library_names_spec='$libname.ixlibrary $libname.a'
15899 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15900 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'
15904 library_names_spec='${libname}${shared_ext}'
15905 dynamic_linker="$host_os ld.so"
15906 shlibpath_var=LIBRARY_PATH
15912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15913 soname_spec='${libname}${release}${shared_ext}$major'
15914 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15915 shlibpath_var=LD_LIBRARY_PATH
15916 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15917 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15918 # the default ld.so.conf also contains /usr/contrib/lib and
15919 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15920 # libtool to hard-code these into programs
15923 cygwin* | mingw* | pw32*)
15924 version_type=windows
15929 case $GCC,$host_os in
15930 yes,cygwin* | yes,mingw* | yes,pw32*)
15931 library_names_spec='$libname.dll.a'
15932 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15933 postinstall_cmds='base_file=`basename \${file}`~
15934 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15935 dldir=$destdir/`dirname \$dlpath`~
15936 test -d \$dldir || mkdir -p \$dldir~
15937 $install_prog $dir/$dlname \$dldir/$dlname~
15938 chmod a+x \$dldir/$dlname'
15939 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15940 dlpath=$dir/\$dldll~
15942 shlibpath_overrides_runpath=yes
15946 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15947 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15948 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15951 # MinGW DLLs use traditional 'lib' prefix
15952 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15953 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15954 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15955 # It is most probably a Windows format PATH printed by
15956 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15957 # path with ; separators, and with drive letters. We can handle the
15958 # drive letters (cygwin fileutils understands them), so leave them,
15959 # especially as we might pass files found there to a mingw objdump,
15960 # which wouldn't understand a cygwinified path. Ahh.
15961 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15963 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15967 # pw32 DLLs use 'pw' prefix rather than 'lib'
15968 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15974 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15977 dynamic_linker='Win32 ld.exe'
15978 # FIXME: first we should search . and the directory the executable is in
15982 darwin* | rhapsody*)
15983 dynamic_linker="$host_os dyld"
15984 version_type=darwin
15987 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15988 soname_spec='${libname}${release}${major}$shared_ext'
15989 shlibpath_overrides_runpath=yes
15990 shlibpath_var=DYLD_LIBRARY_PATH
15991 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15993 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16001 soname_spec='${libname}${release}${shared_ext}$major'
16002 shlibpath_var=LD_LIBRARY_PATH
16009 freebsd* | dragonfly*)
16010 # DragonFly does not have aout. When/if they implement a new
16011 # versioning mechanism, adjust this.
16012 if test -x /usr/bin/objformat; then
16013 objformat=`/usr/bin/objformat`
16016 freebsd[123]*) objformat=aout ;;
16017 *) objformat=elf ;;
16020 version_type=freebsd-$objformat
16021 case $version_type in
16023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16032 shlibpath_var=LD_LIBRARY_PATH
16035 shlibpath_overrides_runpath=yes
16037 freebsd3.[01]* | freebsdelf3.[01]*)
16038 shlibpath_overrides_runpath=yes
16039 hardcode_into_libs=yes
16041 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16042 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16043 shlibpath_overrides_runpath=no
16044 hardcode_into_libs=yes
16046 *) # from 4.6 on, and DragonFly
16047 shlibpath_overrides_runpath=yes
16048 hardcode_into_libs=yes
16057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16058 soname_spec='${libname}${release}${shared_ext}$major'
16059 shlibpath_var=LD_LIBRARY_PATH
16060 hardcode_into_libs=yes
16063 hpux9* | hpux10* | hpux11*)
16064 # Give a soname corresponding to the major version so that dld.sl refuses to
16065 # link against other versions.
16072 hardcode_into_libs=yes
16073 dynamic_linker="$host_os dld.so"
16074 shlibpath_var=LD_LIBRARY_PATH
16075 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16077 soname_spec='${libname}${release}${shared_ext}$major'
16078 if test "X$HPUX_IA64_MODE" = X32; then
16079 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16081 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16083 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16087 hardcode_into_libs=yes
16088 dynamic_linker="$host_os dld.sl"
16089 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16092 soname_spec='${libname}${release}${shared_ext}$major'
16093 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16094 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16098 dynamic_linker="$host_os dld.sl"
16099 shlibpath_var=SHLIB_PATH
16100 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16102 soname_spec='${libname}${release}${shared_ext}$major'
16105 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16106 postinstall_cmds='chmod 555 $lib'
16113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16114 soname_spec='${libname}${release}${shared_ext}$major'
16115 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16116 shlibpath_var=LD_LIBRARY_PATH
16117 shlibpath_overrides_runpath=no
16118 hardcode_into_libs=yes
16121 irix5* | irix6* | nonstopux*)
16123 nonstopux*) version_type=nonstopux ;;
16125 if test "$lt_cv_prog_gnu_ld" = yes; then
16133 soname_spec='${libname}${release}${shared_ext}$major'
16134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16136 irix5* | nonstopux*)
16137 libsuff= shlibsuff=
16140 case $LD in # libtool.m4 will add one of these switches to LD
16141 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16142 libsuff= shlibsuff= libmagic=32-bit;;
16143 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16144 libsuff=32 shlibsuff=N32 libmagic=N32;;
16145 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16146 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16147 *) libsuff= shlibsuff= libmagic=never-match;;
16151 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16152 shlibpath_overrides_runpath=no
16153 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16154 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16155 hardcode_into_libs=yes
16158 # No shared lib support for Linux oldld, aout, or coff.
16159 linux*oldld* | linux*aout* | linux*coff*)
16163 # This must be Linux ELF.
16164 linux* | k*bsd*-gnu)
16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16169 soname_spec='${libname}${release}${shared_ext}$major'
16170 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16171 shlibpath_var=LD_LIBRARY_PATH
16172 shlibpath_overrides_runpath=no
16173 # This implies no fast_install, which is unacceptable.
16174 # Some rework will be needed to allow for fast_install
16175 # before this can be enabled.
16176 hardcode_into_libs=yes
16178 # Append ld.so.conf contents to the search path
16179 if test -f /etc/ld.so.conf; then
16180 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' ' '`
16181 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16184 # We used to test for /lib/ld.so.1 and disable shared libraries on
16185 # powerpc, because MkLinux only supported shared libraries with the
16186 # GNU dynamic linker. Since this was broken with cross compilers,
16187 # most powerpc-linux boxes support dynamic linking these days and
16188 # people can always --disable-shared, the test was removed, and we
16189 # assume the GNU/Linux dynamic linker is in use.
16190 dynamic_linker='GNU/Linux ld.so'
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16198 soname_spec='${libname}${release}${shared_ext}$major'
16199 shlibpath_var=LD_LIBRARY_PATH
16200 shlibpath_overrides_runpath=no
16201 hardcode_into_libs=yes
16202 dynamic_linker='NetBSD ld.elf_so'
16209 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16212 dynamic_linker='NetBSD (a.out) ld.so'
16214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16215 soname_spec='${libname}${release}${shared_ext}$major'
16216 dynamic_linker='NetBSD ld.elf_so'
16218 shlibpath_var=LD_LIBRARY_PATH
16219 shlibpath_overrides_runpath=yes
16220 hardcode_into_libs=yes
16225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16226 shlibpath_var=LD_LIBRARY_PATH
16227 shlibpath_overrides_runpath=yes
16234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16235 soname_spec='${libname}${release}${shared_ext}$major'
16236 shlibpath_var=LD_LIBRARY_PATH
16237 shlibpath_overrides_runpath=yes
16242 sys_lib_dlsearch_path_spec="/usr/lib"
16244 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16246 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16247 *) need_version=no ;;
16249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16251 shlibpath_var=LD_LIBRARY_PATH
16252 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16254 openbsd2.[89] | openbsd2.[89].*)
16255 shlibpath_overrides_runpath=no
16258 shlibpath_overrides_runpath=yes
16262 shlibpath_overrides_runpath=yes
16267 libname_spec='$name'
16270 library_names_spec='$libname${shared_ext} $libname.a'
16271 dynamic_linker='OS/2 ld.exe'
16272 shlibpath_var=LIBPATH
16275 osf3* | osf4* | osf5*)
16279 soname_spec='${libname}${release}${shared_ext}$major'
16280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16281 shlibpath_var=LD_LIBRARY_PATH
16282 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16283 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16295 soname_spec='${libname}${release}${shared_ext}$major'
16296 shlibpath_var=LD_LIBRARY_PATH
16297 shlibpath_overrides_runpath=yes
16298 hardcode_into_libs=yes
16299 # ldd complains unless libraries are executable
16300 postinstall_cmds='chmod +x $lib'
16305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16306 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16307 shlibpath_var=LD_LIBRARY_PATH
16308 shlibpath_overrides_runpath=yes
16309 if test "$with_gnu_ld" = yes; then
16317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16318 soname_spec='${libname}${release}${shared_ext}$major'
16319 shlibpath_var=LD_LIBRARY_PATH
16320 case $host_vendor in
16322 shlibpath_overrides_runpath=no
16324 export_dynamic_flag_spec='${wl}-Blargedynsym'
16325 runpath_var=LD_RUN_PATH
16333 shlibpath_overrides_runpath=no
16334 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16340 if test -d /usr/nec ;then
16342 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16343 soname_spec='$libname${shared_ext}.$major'
16344 shlibpath_var=LD_LIBRARY_PATH
16348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16349 version_type=freebsd-elf
16352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16353 soname_spec='${libname}${release}${shared_ext}$major'
16354 shlibpath_var=LD_LIBRARY_PATH
16355 hardcode_into_libs=yes
16356 if test "$with_gnu_ld" = yes; then
16357 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16358 shlibpath_overrides_runpath=no
16360 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16361 shlibpath_overrides_runpath=yes
16364 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16368 sys_lib_dlsearch_path_spec='/usr/lib'
16373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16374 soname_spec='${libname}${release}${shared_ext}$major'
16375 shlibpath_var=LD_LIBRARY_PATH
16382 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16383 echo "${ECHO_T}$dynamic_linker" >&6; }
16384 test "$dynamic_linker" = no && can_build_shared=no
16386 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16387 echo $ECHO_N "(cached) $ECHO_C" >&6
16389 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16392 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16393 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16396 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16399 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16401 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16402 if test "$GCC" = yes; then
16403 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16406 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16407 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16408 hardcode_action_F77=
16409 if test -n "$hardcode_libdir_flag_spec_F77" || \
16410 test -n "$runpath_var_F77" || \
16411 test "X$hardcode_automatic_F77" = "Xyes" ; then
16413 # We can hardcode non-existant directories.
16414 if test "$hardcode_direct_F77" != no &&
16415 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16416 # have to relink, otherwise we might link with an installed library
16417 # when we should be linking with a yet-to-be-installed one
16418 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16419 test "$hardcode_minus_L_F77" != no; then
16420 # Linking always hardcodes the temporary library directory.
16421 hardcode_action_F77=relink
16423 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16424 hardcode_action_F77=immediate
16427 # We cannot hardcode anything, or else we can only hardcode existing
16429 hardcode_action_F77=unsupported
16431 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16432 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16434 if test "$hardcode_action_F77" = relink; then
16435 # Fast installation is not supported
16436 enable_fast_install=no
16437 elif test "$shlibpath_overrides_runpath" = yes ||
16438 test "$enable_shared" = no; then
16439 # Fast installation is not necessary
16440 enable_fast_install=needless
16444 # The else clause should only fire when bootstrapping the
16445 # libtool distribution, otherwise you forgot to ship ltmain.sh
16446 # with your package, and you will get complaints that there are
16447 # no rules to generate ltmain.sh.
16448 if test -f "$ltmain"; then
16449 # See if we are running on zsh, and set the options which allow our commands through
16450 # without removal of \ escapes.
16451 if test -n "${ZSH_VERSION+set}" ; then
16452 setopt NO_GLOB_SUBST
16454 # Now quote all the things that may contain metacharacters while being
16455 # careful not to overquote the AC_SUBSTed values. We take copies of the
16456 # variables and quote the copies for generation of the libtool script.
16457 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16459 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16460 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16461 deplibs_check_method reload_flag reload_cmds need_locks \
16462 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16463 lt_cv_sys_global_symbol_to_c_name_address \
16464 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16465 old_postinstall_cmds old_postuninstall_cmds \
16469 lt_prog_compiler_wl_F77 \
16470 lt_prog_compiler_pic_F77 \
16471 lt_prog_compiler_static_F77 \
16472 lt_prog_compiler_no_builtin_flag_F77 \
16473 export_dynamic_flag_spec_F77 \
16474 thread_safe_flag_spec_F77 \
16475 whole_archive_flag_spec_F77 \
16476 enable_shared_with_static_runtimes_F77 \
16477 old_archive_cmds_F77 \
16478 old_archive_from_new_cmds_F77 \
16479 predep_objects_F77 \
16480 postdep_objects_F77 \
16483 compiler_lib_search_path_F77 \
16484 compiler_lib_search_dirs_F77 \
16486 archive_expsym_cmds_F77 \
16487 postinstall_cmds_F77 \
16488 postuninstall_cmds_F77 \
16489 old_archive_from_expsyms_cmds_F77 \
16490 allow_undefined_flag_F77 \
16491 no_undefined_flag_F77 \
16492 export_symbols_cmds_F77 \
16493 hardcode_libdir_flag_spec_F77 \
16494 hardcode_libdir_flag_spec_ld_F77 \
16495 hardcode_libdir_separator_F77 \
16496 hardcode_automatic_F77 \
16498 module_expsym_cmds_F77 \
16499 lt_cv_prog_compiler_c_o_F77 \
16500 fix_srcfile_path_F77 \
16501 exclude_expsyms_F77 \
16502 include_expsyms_F77; do
16505 old_archive_cmds_F77 | \
16506 old_archive_from_new_cmds_F77 | \
16507 archive_cmds_F77 | \
16508 archive_expsym_cmds_F77 | \
16509 module_cmds_F77 | \
16510 module_expsym_cmds_F77 | \
16511 old_archive_from_expsyms_cmds_F77 | \
16512 export_symbols_cmds_F77 | \
16513 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16514 postinstall_cmds | postuninstall_cmds | \
16515 old_postinstall_cmds | old_postuninstall_cmds | \
16516 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16517 # Double-quote double-evaled strings.
16518 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16521 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16527 *'\$0 --fallback-echo"')
16528 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16534 cat <<__EOF__ >> "$cfgfile"
16535 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16537 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16539 # Shell to use when invoking shell scripts.
16542 # Whether or not to build shared libraries.
16543 build_libtool_libs=$enable_shared
16545 # Whether or not to build static libraries.
16546 build_old_libs=$enable_static
16548 # Whether or not to add -lc for building shared libraries.
16549 build_libtool_need_lc=$archive_cmds_need_lc_F77
16551 # Whether or not to disallow shared libs when runtime libs are static
16552 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16554 # Whether or not to optimize for fast installation.
16555 fast_install=$enable_fast_install
16558 host_alias=$host_alias
16562 # The build system.
16563 build_alias=$build_alias
16567 # An echo program that does not interpret backslashes.
16572 AR_FLAGS=$lt_AR_FLAGS
16577 # LTCC compiler flags.
16578 LTCFLAGS=$lt_LTCFLAGS
16580 # A language-specific compiler.
16581 CC=$lt_compiler_F77
16583 # Is the compiler the GNU C compiler?
16589 # The linker used to build libraries.
16592 # Whether we need hard or soft links.
16595 # A BSD-compatible nm program.
16598 # A symbol stripping program
16601 # Used to examine libraries when file_magic_cmd begins "file"
16602 MAGIC_CMD=$MAGIC_CMD
16604 # Used on cygwin: DLL creation program.
16607 # Used on cygwin: object dumper.
16610 # Used on cygwin: assembler.
16613 # The name of the directory that contains temporary libtool files.
16616 # How to create reloadable object files.
16617 reload_flag=$lt_reload_flag
16618 reload_cmds=$lt_reload_cmds
16620 # How to pass a linker flag through the compiler.
16621 wl=$lt_lt_prog_compiler_wl_F77
16623 # Object file suffix (normally "o").
16624 objext="$ac_objext"
16626 # Old archive suffix (normally "a").
16629 # Shared library suffix (normally ".so").
16630 shrext_cmds='$shrext_cmds'
16632 # Executable file suffix (normally "").
16635 # Additional compiler flags for building library objects.
16636 pic_flag=$lt_lt_prog_compiler_pic_F77
16639 # What is the maximum length of a command?
16640 max_cmd_len=$lt_cv_sys_max_cmd_len
16642 # Does compiler simultaneously support -c and -o options?
16643 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16645 # Must we lock files when doing compilation?
16646 need_locks=$lt_need_locks
16648 # Do we need the lib prefix for modules?
16649 need_lib_prefix=$need_lib_prefix
16651 # Do we need a version for libraries?
16652 need_version=$need_version
16654 # Whether dlopen is supported.
16655 dlopen_support=$enable_dlopen
16657 # Whether dlopen of programs is supported.
16658 dlopen_self=$enable_dlopen_self
16660 # Whether dlopen of statically linked programs is supported.
16661 dlopen_self_static=$enable_dlopen_self_static
16663 # Compiler flag to prevent dynamic linking.
16664 link_static_flag=$lt_lt_prog_compiler_static_F77
16666 # Compiler flag to turn off builtin functions.
16667 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16669 # Compiler flag to allow reflexive dlopens.
16670 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16672 # Compiler flag to generate shared objects directly from archives.
16673 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16675 # Compiler flag to generate thread-safe objects.
16676 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16678 # Library versioning type.
16679 version_type=$version_type
16681 # Format of library name prefix.
16682 libname_spec=$lt_libname_spec
16684 # List of archive names. First name is the real one, the rest are links.
16685 # The last name is the one that the linker finds with -lNAME.
16686 library_names_spec=$lt_library_names_spec
16688 # The coded name of the library, if different from the real name.
16689 soname_spec=$lt_soname_spec
16691 # Commands used to build and install an old-style archive.
16693 old_archive_cmds=$lt_old_archive_cmds_F77
16694 old_postinstall_cmds=$lt_old_postinstall_cmds
16695 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16697 # Create an old-style archive from a shared archive.
16698 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16700 # Create a temporary old-style archive to link instead of a shared archive.
16701 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16703 # Commands used to build and install a shared archive.
16704 archive_cmds=$lt_archive_cmds_F77
16705 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16706 postinstall_cmds=$lt_postinstall_cmds
16707 postuninstall_cmds=$lt_postuninstall_cmds
16709 # Commands used to build a loadable module (assumed same as above if empty)
16710 module_cmds=$lt_module_cmds_F77
16711 module_expsym_cmds=$lt_module_expsym_cmds_F77
16713 # Commands to strip libraries.
16714 old_striplib=$lt_old_striplib
16715 striplib=$lt_striplib
16717 # Dependencies to place before the objects being linked to create a
16719 predep_objects=$lt_predep_objects_F77
16721 # Dependencies to place after the objects being linked to create a
16723 postdep_objects=$lt_postdep_objects_F77
16725 # Dependencies to place before the objects being linked to create a
16727 predeps=$lt_predeps_F77
16729 # Dependencies to place after the objects being linked to create a
16731 postdeps=$lt_postdeps_F77
16733 # The directories searched by this compiler when creating a shared
16735 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16737 # The library search path used internally by the compiler when linking
16738 # a shared library.
16739 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16741 # Method to check whether dependent libraries are shared objects.
16742 deplibs_check_method=$lt_deplibs_check_method
16744 # Command to use when deplibs_check_method == file_magic.
16745 file_magic_cmd=$lt_file_magic_cmd
16747 # Flag that allows shared libraries with undefined symbols to be built.
16748 allow_undefined_flag=$lt_allow_undefined_flag_F77
16750 # Flag that forces no undefined symbols.
16751 no_undefined_flag=$lt_no_undefined_flag_F77
16753 # Commands used to finish a libtool library installation in a directory.
16754 finish_cmds=$lt_finish_cmds
16756 # Same as above, but a single script fragment to be evaled but not shown.
16757 finish_eval=$lt_finish_eval
16759 # Take the output of nm and produce a listing of raw symbols and C names.
16760 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16762 # Transform the output of nm in a proper C declaration
16763 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16765 # Transform the output of nm in a C name address pair
16766 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16768 # This is the shared library runtime path variable.
16769 runpath_var=$runpath_var
16771 # This is the shared library path variable.
16772 shlibpath_var=$shlibpath_var
16774 # Is shlibpath searched before the hard-coded library search path?
16775 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16777 # How to hardcode a shared library path into an executable.
16778 hardcode_action=$hardcode_action_F77
16780 # Whether we should hardcode library paths into libraries.
16781 hardcode_into_libs=$hardcode_into_libs
16783 # Flag to hardcode \$libdir into a binary during linking.
16784 # This must work even if \$libdir does not exist.
16785 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16787 # If ld is used when linking, flag to hardcode \$libdir into
16788 # a binary during linking. This must work even if \$libdir does
16790 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16792 # Whether we need a single -rpath flag with a separated argument.
16793 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16795 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16796 # resulting binary.
16797 hardcode_direct=$hardcode_direct_F77
16799 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16800 # resulting binary.
16801 hardcode_minus_L=$hardcode_minus_L_F77
16803 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16804 # the resulting binary.
16805 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16807 # Set to yes if building a shared library automatically hardcodes DIR into the library
16808 # and all subsequent libraries and executables linked against it.
16809 hardcode_automatic=$hardcode_automatic_F77
16811 # Variables whose values should be saved in libtool wrapper scripts and
16812 # restored at relink time.
16813 variables_saved_for_relink="$variables_saved_for_relink"
16815 # Whether libtool must link a program against all its dependency libraries.
16816 link_all_deplibs=$link_all_deplibs_F77
16818 # Compile-time system search path for libraries
16819 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16821 # Run-time system search path for libraries
16822 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16824 # Fix the shell variable \$srcfile for the compiler.
16825 fix_srcfile_path=$lt_fix_srcfile_path
16827 # Set to yes if exported symbols are required.
16828 always_export_symbols=$always_export_symbols_F77
16830 # The commands to list exported symbols.
16831 export_symbols_cmds=$lt_export_symbols_cmds_F77
16833 # The commands to extract the exported symbol list from a shared archive.
16834 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16836 # Symbols that should not be listed in the preloaded symbols.
16837 exclude_expsyms=$lt_exclude_expsyms_F77
16839 # Symbols that must always be exported.
16840 include_expsyms=$lt_include_expsyms_F77
16842 # ### END LIBTOOL TAG CONFIG: $tagname
16848 # If there is no Makefile yet, we rely on a make rule to execute
16849 # `config.status --recheck' to rerun these tests and create the
16850 # libtool script then.
16851 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16852 if test -f "$ltmain_in"; then
16853 test -f Makefile && make "$ltmain"
16859 ac_cpp='$CPP $CPPFLAGS'
16860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16872 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16875 # Source file extension for Java test sources.
16878 # Object file extension for compiled Java test sources.
16882 # Code to be used in simple compile tests
16883 lt_simple_compile_test_code="class foo {}"
16885 # Code to be used in simple link tests
16886 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16888 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16890 # If no C compiler was specified, use CC.
16893 # If no C compiler flags were specified, use CFLAGS.
16894 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16896 # Allow CC to be a program name with arguments.
16900 # save warnings/boilerplate of simple test code
16901 ac_outfile=conftest.$ac_objext
16902 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16903 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16904 _lt_compiler_boilerplate=`cat conftest.err`
16907 ac_outfile=conftest.$ac_objext
16908 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16909 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16910 _lt_linker_boilerplate=`cat conftest.err`
16914 # Allow CC to be a program name with arguments.
16919 for cc_temp in $compiler""; do
16921 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16922 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16927 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16930 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16931 archive_cmds_need_lc_GCJ=no
16933 old_archive_cmds_GCJ=$old_archive_cmds
16936 lt_prog_compiler_no_builtin_flag_GCJ=
16938 if test "$GCC" = yes; then
16939 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16942 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16943 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16944 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16945 echo $ECHO_N "(cached) $ECHO_C" >&6
16947 lt_cv_prog_compiler_rtti_exceptions=no
16948 ac_outfile=conftest.$ac_objext
16949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16950 lt_compiler_flag="-fno-rtti -fno-exceptions"
16951 # Insert the option either (1) after the last *FLAGS variable, or
16952 # (2) before a word containing "conftest.", or (3) at the end.
16953 # Note that $ac_compile itself does not contain backslashes and begins
16954 # with a dollar sign (not a hyphen), so the echo should work correctly.
16955 # The option is referenced via a variable to avoid confusing sed.
16956 lt_compile=`echo "$ac_compile" | $SED \
16957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16959 -e 's:$: $lt_compiler_flag:'`
16960 (eval echo "\"\$as_me:16960: $lt_compile\"" >&5)
16961 (eval "$lt_compile" 2>conftest.err)
16963 cat conftest.err >&5
16964 echo "$as_me:16964: \$? = $ac_status" >&5
16965 if (exit $ac_status) && test -s "$ac_outfile"; then
16966 # The compiler can only warn and ignore the option if not recognized
16967 # So say no if there are warnings other than the usual output.
16968 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16970 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16971 lt_cv_prog_compiler_rtti_exceptions=yes
16977 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16978 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16980 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16981 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16988 lt_prog_compiler_wl_GCJ=
16989 lt_prog_compiler_pic_GCJ=
16990 lt_prog_compiler_static_GCJ=
16992 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16993 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16995 if test "$GCC" = yes; then
16996 lt_prog_compiler_wl_GCJ='-Wl,'
16997 lt_prog_compiler_static_GCJ='-static'
17001 # All AIX code is PIC.
17002 if test "$host_cpu" = ia64; then
17003 # AIX 5 now supports IA64 processor
17004 lt_prog_compiler_static_GCJ='-Bstatic'
17009 # FIXME: we need at least 68020 code to build shared libraries, but
17010 # adding the `-m68020' flag to GCC prevents building anything better,
17012 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17015 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17016 # PIC is the default for these OSes.
17019 mingw* | cygwin* | pw32* | os2*)
17020 # This hack is so that the source file can tell whether it is being
17021 # built for inclusion in a dll (and should export symbols for example).
17022 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17023 # (--disable-auto-import) libraries
17027 darwin* | rhapsody*)
17028 # PIC is the default on this platform
17029 # Common symbols not allowed in MH_DYLIB files
17030 lt_prog_compiler_pic_GCJ='-fno-common'
17034 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17035 # Instead, we relocate shared libraries at runtime.
17039 # Just because we use GCC doesn't mean we suddenly get shared libraries
17040 # on systems that don't support them.
17041 lt_prog_compiler_can_build_shared_GCJ=no
17046 if test -d /usr/nec; then
17047 lt_prog_compiler_pic_GCJ=-Kconform_pic
17052 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17053 # not for PA HP-UX.
17059 lt_prog_compiler_pic_GCJ='-fPIC'
17065 lt_prog_compiler_pic_GCJ='-fPIC'
17069 # PORTME Check for flag to pass linker flags through the system compiler.
17072 lt_prog_compiler_wl_GCJ='-Wl,'
17073 if test "$host_cpu" = ia64; then
17074 # AIX 5 now supports IA64 processor
17075 lt_prog_compiler_static_GCJ='-Bstatic'
17077 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17081 # PIC is the default on this platform
17082 # Common symbols not allowed in MH_DYLIB files
17083 case $cc_basename in
17085 lt_prog_compiler_pic_GCJ='-qnocommon'
17086 lt_prog_compiler_wl_GCJ='-Wl,'
17091 mingw* | cygwin* | pw32* | os2*)
17092 # This hack is so that the source file can tell whether it is being
17093 # built for inclusion in a dll (and should export symbols for example).
17097 hpux9* | hpux10* | hpux11*)
17098 lt_prog_compiler_wl_GCJ='-Wl,'
17099 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17100 # not for PA HP-UX.
17106 lt_prog_compiler_pic_GCJ='+Z'
17109 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17110 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17113 irix5* | irix6* | nonstopux*)
17114 lt_prog_compiler_wl_GCJ='-Wl,'
17115 # PIC (with -KPIC) is the default.
17116 lt_prog_compiler_static_GCJ='-non_shared'
17120 lt_prog_compiler_pic_GCJ='-KPIC'
17121 lt_prog_compiler_static_GCJ='-Bstatic'
17124 linux* | k*bsd*-gnu)
17125 case $cc_basename in
17127 lt_prog_compiler_wl_GCJ='-Wl,'
17128 lt_prog_compiler_pic_GCJ='-KPIC'
17129 lt_prog_compiler_static_GCJ='-static'
17131 pgcc* | pgf77* | pgf90* | pgf95*)
17132 # Portland Group compilers (*not* the Pentium gcc compiler,
17133 # which looks to be a dead project)
17134 lt_prog_compiler_wl_GCJ='-Wl,'
17135 lt_prog_compiler_pic_GCJ='-fpic'
17136 lt_prog_compiler_static_GCJ='-Bstatic'
17139 lt_prog_compiler_wl_GCJ='-Wl,'
17140 # All Alpha code is PIC.
17141 lt_prog_compiler_static_GCJ='-non_shared'
17144 case `$CC -V 2>&1 | sed 5q` in
17147 lt_prog_compiler_pic_GCJ='-KPIC'
17148 lt_prog_compiler_static_GCJ='-Bstatic'
17149 lt_prog_compiler_wl_GCJ='-Wl,'
17152 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17153 lt_prog_compiler_pic_GCJ='-KPIC'
17154 lt_prog_compiler_static_GCJ='-Bstatic'
17155 lt_prog_compiler_wl_GCJ=''
17162 osf3* | osf4* | osf5*)
17163 lt_prog_compiler_wl_GCJ='-Wl,'
17164 # All OSF/1 code is PIC.
17165 lt_prog_compiler_static_GCJ='-non_shared'
17169 lt_prog_compiler_static_GCJ='-non_shared'
17173 lt_prog_compiler_pic_GCJ='-KPIC'
17174 lt_prog_compiler_static_GCJ='-Bstatic'
17175 case $cc_basename in
17176 f77* | f90* | f95*)
17177 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17179 lt_prog_compiler_wl_GCJ='-Wl,';;
17184 lt_prog_compiler_wl_GCJ='-Qoption ld '
17185 lt_prog_compiler_pic_GCJ='-PIC'
17186 lt_prog_compiler_static_GCJ='-Bstatic'
17189 sysv4 | sysv4.2uw2* | sysv4.3*)
17190 lt_prog_compiler_wl_GCJ='-Wl,'
17191 lt_prog_compiler_pic_GCJ='-KPIC'
17192 lt_prog_compiler_static_GCJ='-Bstatic'
17196 if test -d /usr/nec ;then
17197 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17198 lt_prog_compiler_static_GCJ='-Bstatic'
17202 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17203 lt_prog_compiler_wl_GCJ='-Wl,'
17204 lt_prog_compiler_pic_GCJ='-KPIC'
17205 lt_prog_compiler_static_GCJ='-Bstatic'
17209 lt_prog_compiler_wl_GCJ='-Wl,'
17210 lt_prog_compiler_can_build_shared_GCJ=no
17214 lt_prog_compiler_pic_GCJ='-pic'
17215 lt_prog_compiler_static_GCJ='-Bstatic'
17219 lt_prog_compiler_can_build_shared_GCJ=no
17224 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17225 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17228 # Check to make sure the PIC flag actually works.
17230 if test -n "$lt_prog_compiler_pic_GCJ"; then
17232 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17233 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17234 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17235 echo $ECHO_N "(cached) $ECHO_C" >&6
17237 lt_cv_prog_compiler_pic_works_GCJ=no
17238 ac_outfile=conftest.$ac_objext
17239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17240 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17241 # Insert the option either (1) after the last *FLAGS variable, or
17242 # (2) before a word containing "conftest.", or (3) at the end.
17243 # Note that $ac_compile itself does not contain backslashes and begins
17244 # with a dollar sign (not a hyphen), so the echo should work correctly.
17245 # The option is referenced via a variable to avoid confusing sed.
17246 lt_compile=`echo "$ac_compile" | $SED \
17247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17249 -e 's:$: $lt_compiler_flag:'`
17250 (eval echo "\"\$as_me:17250: $lt_compile\"" >&5)
17251 (eval "$lt_compile" 2>conftest.err)
17253 cat conftest.err >&5
17254 echo "$as_me:17254: \$? = $ac_status" >&5
17255 if (exit $ac_status) && test -s "$ac_outfile"; then
17256 # The compiler can only warn and ignore the option if not recognized
17257 # So say no if there are warnings other than the usual output.
17258 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17259 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17260 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17261 lt_cv_prog_compiler_pic_works_GCJ=yes
17267 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17268 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17270 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17271 case $lt_prog_compiler_pic_GCJ in
17273 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17276 lt_prog_compiler_pic_GCJ=
17277 lt_prog_compiler_can_build_shared_GCJ=no
17282 # For platforms which do not support PIC, -DPIC is meaningless:
17284 lt_prog_compiler_pic_GCJ=
17287 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17292 # Check to make sure the static flag actually works.
17294 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17295 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17296 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17297 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17298 echo $ECHO_N "(cached) $ECHO_C" >&6
17300 lt_cv_prog_compiler_static_works_GCJ=no
17301 save_LDFLAGS="$LDFLAGS"
17302 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17303 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17304 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17305 # The linker can only warn and ignore the option if not recognized
17306 # So say no if there are warnings
17307 if test -s conftest.err; then
17308 # Append any errors to the config.log.
17309 cat conftest.err 1>&5
17310 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17311 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17312 if diff conftest.exp conftest.er2 >/dev/null; then
17313 lt_cv_prog_compiler_static_works_GCJ=yes
17316 lt_cv_prog_compiler_static_works_GCJ=yes
17320 LDFLAGS="$save_LDFLAGS"
17323 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17324 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17326 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17329 lt_prog_compiler_static_GCJ=
17333 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17334 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17335 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17336 echo $ECHO_N "(cached) $ECHO_C" >&6
17338 lt_cv_prog_compiler_c_o_GCJ=no
17339 $rm -r conftest 2>/dev/null
17343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17345 lt_compiler_flag="-o out/conftest2.$ac_objext"
17346 # Insert the option either (1) after the last *FLAGS variable, or
17347 # (2) before a word containing "conftest.", or (3) at the end.
17348 # Note that $ac_compile itself does not contain backslashes and begins
17349 # with a dollar sign (not a hyphen), so the echo should work correctly.
17350 lt_compile=`echo "$ac_compile" | $SED \
17351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17353 -e 's:$: $lt_compiler_flag:'`
17354 (eval echo "\"\$as_me:17354: $lt_compile\"" >&5)
17355 (eval "$lt_compile" 2>out/conftest.err)
17357 cat out/conftest.err >&5
17358 echo "$as_me:17358: \$? = $ac_status" >&5
17359 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17361 # The compiler can only warn and ignore the option if not recognized
17362 # So say no if there are warnings
17363 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17364 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17365 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17366 lt_cv_prog_compiler_c_o_GCJ=yes
17371 # SGI C++ compiler will create directory out/ii_files/ for
17372 # template instantiation
17373 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17374 $rm out/* && rmdir out
17380 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17381 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17384 hard_links="nottested"
17385 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17386 # do not overwrite the value of need_locks provided by the user
17387 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17388 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17391 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17393 ln conftest.a conftest.b 2>&5 || hard_links=no
17394 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17395 { echo "$as_me:$LINENO: result: $hard_links" >&5
17396 echo "${ECHO_T}$hard_links" >&6; }
17397 if test "$hard_links" = no; then
17398 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17399 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17406 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17407 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17410 allow_undefined_flag_GCJ=
17411 enable_shared_with_static_runtimes_GCJ=no
17413 archive_expsym_cmds_GCJ=
17414 old_archive_From_new_cmds_GCJ=
17415 old_archive_from_expsyms_cmds_GCJ=
17416 export_dynamic_flag_spec_GCJ=
17417 whole_archive_flag_spec_GCJ=
17418 thread_safe_flag_spec_GCJ=
17419 hardcode_libdir_flag_spec_GCJ=
17420 hardcode_libdir_flag_spec_ld_GCJ=
17421 hardcode_libdir_separator_GCJ=
17422 hardcode_direct_GCJ=no
17423 hardcode_minus_L_GCJ=no
17424 hardcode_shlibpath_var_GCJ=unsupported
17425 link_all_deplibs_GCJ=unknown
17426 hardcode_automatic_GCJ=no
17428 module_expsym_cmds_GCJ=
17429 always_export_symbols_GCJ=no
17430 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17431 # include_expsyms should be a list of space-separated symbols to be *always*
17432 # included in the symbol list
17433 include_expsyms_GCJ=
17434 # exclude_expsyms can be an extended regexp of symbols to exclude
17435 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17436 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17437 # as well as any symbol that contains `d'.
17438 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17439 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17440 # platforms (ab)use it in PIC code, but their linkers get confused if
17441 # the symbol is explicitly referenced. Since portable code cannot
17442 # rely on this symbol name, it's probably fine to never include it in
17443 # preloaded symbol tables.
17444 # Exclude shared library initialization/finalization symbols.
17445 extract_expsyms_cmds=
17446 # Just being paranoid about ensuring that cc_basename is set.
17447 for cc_temp in $compiler""; do
17449 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17450 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17455 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17458 cygwin* | mingw* | pw32*)
17459 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17460 # When not using gcc, we currently assume that we are using
17461 # Microsoft Visual C++.
17462 if test "$GCC" != yes; then
17467 # we just hope/assume this is gcc and not c89 (= MSVC++)
17476 if test "$with_gnu_ld" = yes; then
17477 # If archive_cmds runs LD, not CC, wlarc should be empty
17480 # Set some defaults for GNU ld with shared library support. These
17481 # are reset later if shared libraries are not supported. Putting them
17482 # here allows them to be overridden if necessary.
17483 runpath_var=LD_RUN_PATH
17484 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17485 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17486 # ancient GNU ld didn't support --whole-archive et. al.
17487 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17488 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17490 whole_archive_flag_spec_GCJ=
17492 supports_anon_versioning=no
17493 case `$LD -v 2>/dev/null` in
17494 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17495 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17496 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17497 *\ 2.11.*) ;; # other 2.11 versions
17498 *) supports_anon_versioning=yes ;;
17501 # See if GNU ld supports shared libraries.
17504 # On AIX/PPC, the GNU linker is very broken
17505 if test "$host_cpu" != ia64; then
17509 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17510 *** to be unable to reliably create shared libraries on AIX.
17511 *** Therefore, libtool is disabling shared libraries support. If you
17512 *** really care for shared libraries, you may want to modify your PATH
17513 *** so that a non-GNU linker is found, and then restart.
17520 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)'
17521 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17522 hardcode_minus_L_GCJ=yes
17524 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17525 # that the semantics of dynamic libraries on AmigaOS, at least up
17526 # to version 4, is to share data among multiple programs linked
17527 # with the same dynamic library. Since this doesn't match the
17528 # behavior of shared libraries on other platforms, we can't use
17534 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17535 allow_undefined_flag_GCJ=unsupported
17536 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17537 # support --undefined. This deserves some investigation. FIXME
17538 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17544 cygwin* | mingw* | pw32*)
17545 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17546 # as there is no search path for DLLs.
17547 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17548 allow_undefined_flag_GCJ=unsupported
17549 always_export_symbols_GCJ=no
17550 enable_shared_with_static_runtimes_GCJ=yes
17551 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17553 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17554 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17555 # If the export-symbols file already is a .def file (1st line
17556 # is EXPORTS), use it as is; otherwise, prepend...
17557 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17558 cp $export_symbols $output_objdir/$soname.def;
17560 echo EXPORTS > $output_objdir/$soname.def;
17561 cat $export_symbols >> $output_objdir/$soname.def;
17563 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17570 hardcode_direct_GCJ=no
17571 hardcode_shlibpath_var_GCJ=no
17572 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17573 export_dynamic_flag_spec_GCJ='${wl}-E'
17574 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17575 # Instead, shared libraries are loaded at an image base (0x10000000 by
17576 # default) and relocated if they conflict, which is a slow very memory
17577 # consuming and fragmenting process. To avoid this, we pick a random,
17578 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17579 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17580 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'
17581 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'
17584 gnu* | linux* | k*bsd*-gnu)
17585 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17587 case $cc_basename,$host_cpu in
17588 pgcc*) # Portland Group C compiler
17589 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'
17590 tmp_addflag=' $pic_flag'
17592 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17593 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'
17594 tmp_addflag=' $pic_flag -Mnomain' ;;
17595 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17596 tmp_addflag=' -i_dynamic' ;;
17597 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17598 tmp_addflag=' -i_dynamic -nofor_main' ;;
17599 ifc* | ifort*) # Intel Fortran compiler
17600 tmp_addflag=' -nofor_main' ;;
17602 case `$CC -V 2>&1 | sed 5q` in
17603 *Sun\ C*) # Sun C 5.9
17604 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'
17605 tmp_sharedflag='-G' ;;
17606 *Sun\ F*) # Sun Fortran 8.3
17607 tmp_sharedflag='-G' ;;
17609 tmp_sharedflag='-shared' ;;
17611 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17613 if test $supports_anon_versioning = yes; then
17614 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17615 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17616 $echo "local: *; };" >> $output_objdir/$libname.ver~
17617 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17619 link_all_deplibs_GCJ=no
17625 netbsd* | netbsdelf*-gnu)
17626 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17627 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17630 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17631 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17636 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17640 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17641 *** create shared libraries on Solaris systems. Therefore, libtool
17642 *** is disabling shared libraries support. We urge you to upgrade GNU
17643 *** binutils to release 2.9.1 or newer. Another option is to modify
17644 *** your PATH or compiler configuration so that the native linker is
17645 *** used, and then restart.
17648 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17649 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17650 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17656 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17657 case `$LD -v 2>&1` in
17658 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17662 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17663 *** reliably create shared libraries on SCO systems. Therefore, libtool
17664 *** is disabling shared libraries support. We urge you to upgrade GNU
17665 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17666 *** your PATH or compiler configuration so that the native linker is
17667 *** used, and then restart.
17672 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17673 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17674 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17675 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17684 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17686 hardcode_direct_GCJ=yes
17687 hardcode_shlibpath_var_GCJ=no
17691 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17692 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17693 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17700 if test "$ld_shlibs_GCJ" = no; then
17702 hardcode_libdir_flag_spec_GCJ=
17703 export_dynamic_flag_spec_GCJ=
17704 whole_archive_flag_spec_GCJ=
17707 # PORTME fill in a description of your system's linker (not GNU ld)
17710 allow_undefined_flag_GCJ=unsupported
17711 always_export_symbols_GCJ=yes
17712 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'
17713 # Note: this linker hardcodes the directories in LIBPATH if there
17714 # are no directories specified by -L.
17715 hardcode_minus_L_GCJ=yes
17716 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17717 # Neither direct hardcoding nor static linking is supported with a
17719 hardcode_direct_GCJ=unsupported
17724 if test "$host_cpu" = ia64; then
17725 # On IA64, the linker does run time linking by default, so we don't
17726 # have to do anything special.
17727 aix_use_runtimelinking=no
17728 exp_sym_flag='-Bexport'
17731 # If we're using GNU nm, then we don't want the "-C" option.
17732 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17733 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17734 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'
17736 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'
17738 aix_use_runtimelinking=no
17740 # Test if we are trying to use run time linking or normal
17741 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17742 # need to do runtime linking.
17743 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17744 for ld_flag in $LDFLAGS; do
17745 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17746 aix_use_runtimelinking=yes
17753 exp_sym_flag='-bexport'
17754 no_entry_flag='-bnoentry'
17757 # When large executables or shared objects are built, AIX ld can
17758 # have problems creating the table of contents. If linking a library
17759 # or program results in "error TOC overflow" add -mminimal-toc to
17760 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17761 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17763 archive_cmds_GCJ=''
17764 hardcode_direct_GCJ=yes
17765 hardcode_libdir_separator_GCJ=':'
17766 link_all_deplibs_GCJ=yes
17768 if test "$GCC" = yes; then
17769 case $host_os in aix4.[012]|aix4.[012].*)
17770 # We only want to do this on AIX 4.2 and lower, the check
17771 # below for broken collect2 doesn't work under 4.3+
17772 collect2name=`${CC} -print-prog-name=collect2`
17773 if test -f "$collect2name" && \
17774 strings "$collect2name" | grep resolve_lib_name >/dev/null
17776 # We have reworked collect2
17779 # We have old collect2
17780 hardcode_direct_GCJ=unsupported
17781 # It fails to find uninstalled libraries when the uninstalled
17782 # path is not listed in the libpath. Setting hardcode_minus_L
17783 # to unsupported forces relinking
17784 hardcode_minus_L_GCJ=yes
17785 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17786 hardcode_libdir_separator_GCJ=
17790 shared_flag='-shared'
17791 if test "$aix_use_runtimelinking" = yes; then
17792 shared_flag="$shared_flag "'${wl}-G'
17796 if test "$host_cpu" = ia64; then
17797 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17798 # chokes on -Wl,-G. The following line is correct:
17801 if test "$aix_use_runtimelinking" = yes; then
17802 shared_flag='${wl}-G'
17804 shared_flag='${wl}-bM:SRE'
17809 # It seems that -bexpall does not export symbols beginning with
17810 # underscore (_), so it is better to generate a list of symbols to export.
17811 always_export_symbols_GCJ=yes
17812 if test "$aix_use_runtimelinking" = yes; then
17813 # Warning - without using the other runtime loading flags (-brtl),
17814 # -berok will link without error, but may produce a broken library.
17815 allow_undefined_flag_GCJ='-berok'
17816 # Determine the default libpath from the value encoded in an empty executable.
17817 cat >conftest.$ac_ext <<_ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h. */
17832 rm -f conftest.$ac_objext conftest$ac_exeext
17833 if { (ac_try="$ac_link"
17834 case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_link") 2>conftest.er1
17841 grep -v '^ *+' conftest.er1 >conftest.err
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } && {
17846 test -z "$ac_c_werror_flag" ||
17847 test ! -s conftest.err
17848 } && test -s conftest$ac_exeext &&
17849 $as_test_x conftest$ac_exeext; then
17851 lt_aix_libpath_sed='
17852 /Import File Strings/,/^$/ {
17858 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17859 # Check for a 64-bit object if we didn't find anything.
17860 if test -z "$aix_libpath"; then
17861 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17864 echo "$as_me: failed program was:" >&5
17865 sed 's/^/| /' conftest.$ac_ext >&5
17870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17871 conftest$ac_exeext conftest.$ac_ext
17872 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17874 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17875 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"
17877 if test "$host_cpu" = ia64; then
17878 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17879 allow_undefined_flag_GCJ="-z nodefs"
17880 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"
17882 # Determine the default libpath from the value encoded in an empty executable.
17883 cat >conftest.$ac_ext <<_ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h. */
17898 rm -f conftest.$ac_objext conftest$ac_exeext
17899 if { (ac_try="$ac_link"
17900 case "(($ac_try" in
17901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905 (eval "$ac_link") 2>conftest.er1
17907 grep -v '^ *+' conftest.er1 >conftest.err
17909 cat conftest.err >&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } && {
17912 test -z "$ac_c_werror_flag" ||
17913 test ! -s conftest.err
17914 } && test -s conftest$ac_exeext &&
17915 $as_test_x conftest$ac_exeext; then
17917 lt_aix_libpath_sed='
17918 /Import File Strings/,/^$/ {
17924 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17925 # Check for a 64-bit object if we didn't find anything.
17926 if test -z "$aix_libpath"; then
17927 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17930 echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17937 conftest$ac_exeext conftest.$ac_ext
17938 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17940 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17941 # Warning - without using the other run time loading flags,
17942 # -berok will link without error, but may produce a broken library.
17943 no_undefined_flag_GCJ=' ${wl}-bernotok'
17944 allow_undefined_flag_GCJ=' ${wl}-berok'
17945 # Exported symbols can be pulled into shared objects from archives
17946 whole_archive_flag_spec_GCJ='$convenience'
17947 archive_cmds_need_lc_GCJ=yes
17948 # This is similar to how AIX traditionally builds its shared libraries.
17949 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'
17955 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)'
17956 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17957 hardcode_minus_L_GCJ=yes
17958 # see comment about different semantics on the GNU ld section
17963 export_dynamic_flag_spec_GCJ=-rdynamic
17966 cygwin* | mingw* | pw32*)
17967 # When not using gcc, we currently assume that we are using
17968 # Microsoft Visual C++.
17969 # hardcode_libdir_flag_spec is actually meaningless, as there is
17970 # no search path for DLLs.
17971 hardcode_libdir_flag_spec_GCJ=' '
17972 allow_undefined_flag_GCJ=unsupported
17973 # Tell ltmain to make .lib files, not .a files.
17975 # Tell ltmain to make .dll files, not .so files.
17977 # FIXME: Setting linknames here is a bad hack.
17978 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17979 # The linker will automatically build a .lib file if we build a DLL.
17980 old_archive_From_new_cmds_GCJ='true'
17981 # FIXME: Should let the user specify the lib program.
17982 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17983 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17984 enable_shared_with_static_runtimes_GCJ=yes
17987 darwin* | rhapsody*)
17989 rhapsody* | darwin1.[012])
17990 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17993 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17994 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17996 case ${MACOSX_DEPLOYMENT_TARGET} in
17998 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18001 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18007 archive_cmds_need_lc_GCJ=no
18008 hardcode_direct_GCJ=no
18009 hardcode_automatic_GCJ=yes
18010 hardcode_shlibpath_var_GCJ=unsupported
18011 whole_archive_flag_spec_GCJ=''
18012 link_all_deplibs_GCJ=yes
18013 if test "$GCC" = yes ; then
18014 output_verbose_link_cmd='echo'
18015 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}"
18016 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18017 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}"
18018 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}"
18020 case $cc_basename in
18022 output_verbose_link_cmd='echo'
18023 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18024 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18025 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18026 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}'
18027 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}'
18037 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18038 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18039 hardcode_shlibpath_var_GCJ=no
18046 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18047 # support. Future versions do this automatically, but an explicit c++rt0.o
18048 # does not break anything, and helps significantly (at the cost of a little
18051 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18052 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18053 hardcode_direct_GCJ=yes
18054 hardcode_shlibpath_var_GCJ=no
18057 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18059 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18060 hardcode_direct_GCJ=yes
18061 hardcode_minus_L_GCJ=yes
18062 hardcode_shlibpath_var_GCJ=no
18065 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18066 freebsd* | dragonfly*)
18067 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18068 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18069 hardcode_direct_GCJ=yes
18070 hardcode_shlibpath_var_GCJ=no
18074 if test "$GCC" = yes; then
18075 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'
18077 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'
18079 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18080 hardcode_libdir_separator_GCJ=:
18081 hardcode_direct_GCJ=yes
18083 # hardcode_minus_L: Not really in the search PATH,
18084 # but as the default location of the library.
18085 hardcode_minus_L_GCJ=yes
18086 export_dynamic_flag_spec_GCJ='${wl}-E'
18090 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18091 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18093 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18095 if test "$with_gnu_ld" = no; then
18096 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18097 hardcode_libdir_separator_GCJ=:
18099 hardcode_direct_GCJ=yes
18100 export_dynamic_flag_spec_GCJ='${wl}-E'
18102 # hardcode_minus_L: Not really in the search PATH,
18103 # but as the default location of the library.
18104 hardcode_minus_L_GCJ=yes
18109 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18112 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18115 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18118 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18124 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18127 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18130 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18134 if test "$with_gnu_ld" = no; then
18135 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18136 hardcode_libdir_separator_GCJ=:
18140 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18141 hardcode_direct_GCJ=no
18142 hardcode_shlibpath_var_GCJ=no
18145 hardcode_direct_GCJ=yes
18146 export_dynamic_flag_spec_GCJ='${wl}-E'
18148 # hardcode_minus_L: Not really in the search PATH,
18149 # but as the default location of the library.
18150 hardcode_minus_L_GCJ=yes
18156 irix5* | irix6* | nonstopux*)
18157 if test "$GCC" = yes; then
18158 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'
18160 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'
18161 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18163 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18164 hardcode_libdir_separator_GCJ=:
18165 link_all_deplibs_GCJ=yes
18168 netbsd* | netbsdelf*-gnu)
18169 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18170 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18172 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18174 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18175 hardcode_direct_GCJ=yes
18176 hardcode_shlibpath_var_GCJ=no
18180 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18181 hardcode_direct_GCJ=yes
18182 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18183 hardcode_libdir_separator_GCJ=:
18184 hardcode_shlibpath_var_GCJ=no
18188 if test -f /usr/libexec/ld.so; then
18189 hardcode_direct_GCJ=yes
18190 hardcode_shlibpath_var_GCJ=no
18191 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18192 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18193 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18194 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18195 export_dynamic_flag_spec_GCJ='${wl}-E'
18198 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18199 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18200 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18203 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18204 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18214 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18215 hardcode_minus_L_GCJ=yes
18216 allow_undefined_flag_GCJ=unsupported
18217 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'
18218 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18222 if test "$GCC" = yes; then
18223 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18224 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'
18226 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18227 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'
18229 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18230 hardcode_libdir_separator_GCJ=:
18233 osf4* | osf5*) # as osf3* with the addition of -msym flag
18234 if test "$GCC" = yes; then
18235 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18236 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'
18237 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18239 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18240 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'
18241 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~
18242 $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'
18244 # Both c and cxx compiler support -rpath directly
18245 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18247 hardcode_libdir_separator_GCJ=:
18251 no_undefined_flag_GCJ=' -z text'
18252 if test "$GCC" = yes; then
18254 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18255 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18256 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18259 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18260 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18261 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18263 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18264 hardcode_shlibpath_var_GCJ=no
18266 solaris2.[0-5] | solaris2.[0-5].*) ;;
18268 # The compiler driver will combine and reorder linker options,
18269 # but understands `-z linker_flag'. GCC discards it without `$wl',
18270 # but is careful enough not to reorder.
18271 # Supported since Solaris 2.6 (maybe 2.5.1?)
18272 if test "$GCC" = yes; then
18273 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18275 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18279 link_all_deplibs_GCJ=yes
18283 if test "x$host_vendor" = xsequent; then
18284 # Use $CC to link under sequent, because it throws in some extra .o
18285 # files that make .init and .fini sections work.
18286 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18288 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18290 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18291 hardcode_direct_GCJ=yes
18292 hardcode_minus_L_GCJ=yes
18293 hardcode_shlibpath_var_GCJ=no
18297 case $host_vendor in
18299 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18300 hardcode_direct_GCJ=yes # is this really true???
18303 ## LD is ld it makes a PLAMLIB
18304 ## CC just makes a GrossModule.
18305 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18306 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18307 hardcode_direct_GCJ=no
18310 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18311 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18314 runpath_var='LD_RUN_PATH'
18315 hardcode_shlibpath_var_GCJ=no
18319 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18320 hardcode_shlibpath_var_GCJ=no
18321 export_dynamic_flag_spec_GCJ='-Bexport'
18325 if test -d /usr/nec; then
18326 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18327 hardcode_shlibpath_var_GCJ=no
18328 runpath_var=LD_RUN_PATH
18329 hardcode_runpath_var=yes
18334 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18335 no_undefined_flag_GCJ='${wl}-z,text'
18336 archive_cmds_need_lc_GCJ=no
18337 hardcode_shlibpath_var_GCJ=no
18338 runpath_var='LD_RUN_PATH'
18340 if test "$GCC" = yes; then
18341 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18342 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18344 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18345 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18349 sysv5* | sco3.2v5* | sco5v6*)
18350 # Note: We can NOT use -z defs as we might desire, because we do not
18351 # link with -lc, and that would cause any symbols used from libc to
18352 # always be unresolved, which means just about no library would
18353 # ever link correctly. If we're not using GNU ld we use -z text
18354 # though, which does catch some bad symbols but isn't as heavy-handed
18356 no_undefined_flag_GCJ='${wl}-z,text'
18357 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18358 archive_cmds_need_lc_GCJ=no
18359 hardcode_shlibpath_var_GCJ=no
18360 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18361 hardcode_libdir_separator_GCJ=':'
18362 link_all_deplibs_GCJ=yes
18363 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18364 runpath_var='LD_RUN_PATH'
18366 if test "$GCC" = yes; then
18367 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18368 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18370 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18371 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18376 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18377 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18378 hardcode_shlibpath_var_GCJ=no
18387 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18388 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18389 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18392 # Do we need to explicitly link libc?
18394 case "x$archive_cmds_need_lc_GCJ" in
18396 # Assume -lc should be added
18397 archive_cmds_need_lc_GCJ=yes
18399 if test "$enable_shared" = yes && test "$GCC" = yes; then
18400 case $archive_cmds_GCJ in
18402 # FIXME: we may have to deal with multi-command sequences.
18405 # Test whether the compiler implicitly links with -lc since on some
18406 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18407 # to ld, don't add -lc before -lgcc.
18408 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18409 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18414 (eval $ac_compile) 2>&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } 2>conftest.err; then
18420 libobjs=conftest.$ac_objext
18422 wl=$lt_prog_compiler_wl_GCJ
18423 pic_flag=$lt_prog_compiler_pic_GCJ
18429 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18430 allow_undefined_flag_GCJ=
18431 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18432 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }
18437 archive_cmds_need_lc_GCJ=no
18439 archive_cmds_need_lc_GCJ=yes
18441 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18443 cat conftest.err 1>&5
18446 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18447 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18454 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18455 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18456 library_names_spec=
18457 libname_spec='lib$name'
18461 postuninstall_cmds=
18465 shlibpath_overrides_runpath=unknown
18467 dynamic_linker="$host_os ld.so"
18468 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18470 need_lib_prefix=unknown
18471 hardcode_into_libs=no
18473 # when you set need_version to no, make sure it does not cause -set_version
18474 # flags to be left without arguments
18475 need_version=unknown
18480 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18481 shlibpath_var=LIBPATH
18483 # AIX 3 has no versioning support, so we append a major version to the name.
18484 soname_spec='${libname}${release}${shared_ext}$major'
18491 hardcode_into_libs=yes
18492 if test "$host_cpu" = ia64; then
18493 # AIX 5 supports IA64
18494 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18495 shlibpath_var=LD_LIBRARY_PATH
18497 # With GCC up to 2.95.x, collect2 would create an import file
18498 # for dependence libraries. The import file would start with
18499 # the line `#! .'. This would cause the generated library to
18500 # depend on `.', always an invalid library. This was fixed in
18501 # development snapshots of GCC prior to 3.0.
18503 aix4 | aix4.[01] | aix4.[01].*)
18504 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18506 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18509 can_build_shared=no
18513 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18514 # soname into executable. Probably we can add versioning support to
18515 # collect2, so additional links can be useful in future.
18516 if test "$aix_use_runtimelinking" = yes; then
18517 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18518 # instead of lib<name>.a to let people know that these are not
18519 # typical AIX shared libraries.
18520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18522 # We preserve .a as extension for shared libraries through AIX4.2
18523 # and later when we are not doing run time linking.
18524 library_names_spec='${libname}${release}.a $libname.a'
18525 soname_spec='${libname}${release}${shared_ext}$major'
18527 shlibpath_var=LIBPATH
18532 library_names_spec='$libname.ixlibrary $libname.a'
18533 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18534 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'
18538 library_names_spec='${libname}${shared_ext}'
18539 dynamic_linker="$host_os ld.so"
18540 shlibpath_var=LIBRARY_PATH
18546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18547 soname_spec='${libname}${release}${shared_ext}$major'
18548 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18549 shlibpath_var=LD_LIBRARY_PATH
18550 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18551 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18552 # the default ld.so.conf also contains /usr/contrib/lib and
18553 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18554 # libtool to hard-code these into programs
18557 cygwin* | mingw* | pw32*)
18558 version_type=windows
18563 case $GCC,$host_os in
18564 yes,cygwin* | yes,mingw* | yes,pw32*)
18565 library_names_spec='$libname.dll.a'
18566 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18567 postinstall_cmds='base_file=`basename \${file}`~
18568 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18569 dldir=$destdir/`dirname \$dlpath`~
18570 test -d \$dldir || mkdir -p \$dldir~
18571 $install_prog $dir/$dlname \$dldir/$dlname~
18572 chmod a+x \$dldir/$dlname'
18573 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18574 dlpath=$dir/\$dldll~
18576 shlibpath_overrides_runpath=yes
18580 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18581 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18582 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18585 # MinGW DLLs use traditional 'lib' prefix
18586 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18587 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18588 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18589 # It is most probably a Windows format PATH printed by
18590 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18591 # path with ; separators, and with drive letters. We can handle the
18592 # drive letters (cygwin fileutils understands them), so leave them,
18593 # especially as we might pass files found there to a mingw objdump,
18594 # which wouldn't understand a cygwinified path. Ahh.
18595 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18597 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18601 # pw32 DLLs use 'pw' prefix rather than 'lib'
18602 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18608 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18611 dynamic_linker='Win32 ld.exe'
18612 # FIXME: first we should search . and the directory the executable is in
18616 darwin* | rhapsody*)
18617 dynamic_linker="$host_os dyld"
18618 version_type=darwin
18621 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18622 soname_spec='${libname}${release}${major}$shared_ext'
18623 shlibpath_overrides_runpath=yes
18624 shlibpath_var=DYLD_LIBRARY_PATH
18625 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18627 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18635 soname_spec='${libname}${release}${shared_ext}$major'
18636 shlibpath_var=LD_LIBRARY_PATH
18643 freebsd* | dragonfly*)
18644 # DragonFly does not have aout. When/if they implement a new
18645 # versioning mechanism, adjust this.
18646 if test -x /usr/bin/objformat; then
18647 objformat=`/usr/bin/objformat`
18650 freebsd[123]*) objformat=aout ;;
18651 *) objformat=elf ;;
18654 version_type=freebsd-$objformat
18655 case $version_type in
18657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18666 shlibpath_var=LD_LIBRARY_PATH
18669 shlibpath_overrides_runpath=yes
18671 freebsd3.[01]* | freebsdelf3.[01]*)
18672 shlibpath_overrides_runpath=yes
18673 hardcode_into_libs=yes
18675 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18676 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18677 shlibpath_overrides_runpath=no
18678 hardcode_into_libs=yes
18680 *) # from 4.6 on, and DragonFly
18681 shlibpath_overrides_runpath=yes
18682 hardcode_into_libs=yes
18691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18692 soname_spec='${libname}${release}${shared_ext}$major'
18693 shlibpath_var=LD_LIBRARY_PATH
18694 hardcode_into_libs=yes
18697 hpux9* | hpux10* | hpux11*)
18698 # Give a soname corresponding to the major version so that dld.sl refuses to
18699 # link against other versions.
18706 hardcode_into_libs=yes
18707 dynamic_linker="$host_os dld.so"
18708 shlibpath_var=LD_LIBRARY_PATH
18709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18711 soname_spec='${libname}${release}${shared_ext}$major'
18712 if test "X$HPUX_IA64_MODE" = X32; then
18713 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18715 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18721 hardcode_into_libs=yes
18722 dynamic_linker="$host_os dld.sl"
18723 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18726 soname_spec='${libname}${release}${shared_ext}$major'
18727 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18732 dynamic_linker="$host_os dld.sl"
18733 shlibpath_var=SHLIB_PATH
18734 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18736 soname_spec='${libname}${release}${shared_ext}$major'
18739 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18740 postinstall_cmds='chmod 555 $lib'
18747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18748 soname_spec='${libname}${release}${shared_ext}$major'
18749 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18750 shlibpath_var=LD_LIBRARY_PATH
18751 shlibpath_overrides_runpath=no
18752 hardcode_into_libs=yes
18755 irix5* | irix6* | nonstopux*)
18757 nonstopux*) version_type=nonstopux ;;
18759 if test "$lt_cv_prog_gnu_ld" = yes; then
18767 soname_spec='${libname}${release}${shared_ext}$major'
18768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18770 irix5* | nonstopux*)
18771 libsuff= shlibsuff=
18774 case $LD in # libtool.m4 will add one of these switches to LD
18775 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18776 libsuff= shlibsuff= libmagic=32-bit;;
18777 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18778 libsuff=32 shlibsuff=N32 libmagic=N32;;
18779 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18780 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18781 *) libsuff= shlibsuff= libmagic=never-match;;
18785 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18786 shlibpath_overrides_runpath=no
18787 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18788 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18789 hardcode_into_libs=yes
18792 # No shared lib support for Linux oldld, aout, or coff.
18793 linux*oldld* | linux*aout* | linux*coff*)
18797 # This must be Linux ELF.
18798 linux* | k*bsd*-gnu)
18802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18803 soname_spec='${libname}${release}${shared_ext}$major'
18804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18805 shlibpath_var=LD_LIBRARY_PATH
18806 shlibpath_overrides_runpath=no
18807 # This implies no fast_install, which is unacceptable.
18808 # Some rework will be needed to allow for fast_install
18809 # before this can be enabled.
18810 hardcode_into_libs=yes
18812 # Append ld.so.conf contents to the search path
18813 if test -f /etc/ld.so.conf; then
18814 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' ' '`
18815 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18818 # We used to test for /lib/ld.so.1 and disable shared libraries on
18819 # powerpc, because MkLinux only supported shared libraries with the
18820 # GNU dynamic linker. Since this was broken with cross compilers,
18821 # most powerpc-linux boxes support dynamic linking these days and
18822 # people can always --disable-shared, the test was removed, and we
18823 # assume the GNU/Linux dynamic linker is in use.
18824 dynamic_linker='GNU/Linux ld.so'
18831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18832 soname_spec='${libname}${release}${shared_ext}$major'
18833 shlibpath_var=LD_LIBRARY_PATH
18834 shlibpath_overrides_runpath=no
18835 hardcode_into_libs=yes
18836 dynamic_linker='NetBSD ld.elf_so'
18843 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18846 dynamic_linker='NetBSD (a.out) ld.so'
18848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18849 soname_spec='${libname}${release}${shared_ext}$major'
18850 dynamic_linker='NetBSD ld.elf_so'
18852 shlibpath_var=LD_LIBRARY_PATH
18853 shlibpath_overrides_runpath=yes
18854 hardcode_into_libs=yes
18859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18860 shlibpath_var=LD_LIBRARY_PATH
18861 shlibpath_overrides_runpath=yes
18868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18869 soname_spec='${libname}${release}${shared_ext}$major'
18870 shlibpath_var=LD_LIBRARY_PATH
18871 shlibpath_overrides_runpath=yes
18876 sys_lib_dlsearch_path_spec="/usr/lib"
18878 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18880 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18881 *) need_version=no ;;
18883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18885 shlibpath_var=LD_LIBRARY_PATH
18886 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18888 openbsd2.[89] | openbsd2.[89].*)
18889 shlibpath_overrides_runpath=no
18892 shlibpath_overrides_runpath=yes
18896 shlibpath_overrides_runpath=yes
18901 libname_spec='$name'
18904 library_names_spec='$libname${shared_ext} $libname.a'
18905 dynamic_linker='OS/2 ld.exe'
18906 shlibpath_var=LIBPATH
18909 osf3* | osf4* | osf5*)
18913 soname_spec='${libname}${release}${shared_ext}$major'
18914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18915 shlibpath_var=LD_LIBRARY_PATH
18916 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18917 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18929 soname_spec='${libname}${release}${shared_ext}$major'
18930 shlibpath_var=LD_LIBRARY_PATH
18931 shlibpath_overrides_runpath=yes
18932 hardcode_into_libs=yes
18933 # ldd complains unless libraries are executable
18934 postinstall_cmds='chmod +x $lib'
18939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18940 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18941 shlibpath_var=LD_LIBRARY_PATH
18942 shlibpath_overrides_runpath=yes
18943 if test "$with_gnu_ld" = yes; then
18951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18952 soname_spec='${libname}${release}${shared_ext}$major'
18953 shlibpath_var=LD_LIBRARY_PATH
18954 case $host_vendor in
18956 shlibpath_overrides_runpath=no
18958 export_dynamic_flag_spec='${wl}-Blargedynsym'
18959 runpath_var=LD_RUN_PATH
18967 shlibpath_overrides_runpath=no
18968 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18974 if test -d /usr/nec ;then
18976 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18977 soname_spec='$libname${shared_ext}.$major'
18978 shlibpath_var=LD_LIBRARY_PATH
18982 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18983 version_type=freebsd-elf
18986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18987 soname_spec='${libname}${release}${shared_ext}$major'
18988 shlibpath_var=LD_LIBRARY_PATH
18989 hardcode_into_libs=yes
18990 if test "$with_gnu_ld" = yes; then
18991 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18992 shlibpath_overrides_runpath=no
18994 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18995 shlibpath_overrides_runpath=yes
18998 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19002 sys_lib_dlsearch_path_spec='/usr/lib'
19007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19008 soname_spec='${libname}${release}${shared_ext}$major'
19009 shlibpath_var=LD_LIBRARY_PATH
19016 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19017 echo "${ECHO_T}$dynamic_linker" >&6; }
19018 test "$dynamic_linker" = no && can_build_shared=no
19020 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19021 echo $ECHO_N "(cached) $ECHO_C" >&6
19023 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19026 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19027 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19028 echo $ECHO_N "(cached) $ECHO_C" >&6
19030 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19033 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19035 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19036 if test "$GCC" = yes; then
19037 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19040 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19041 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19042 hardcode_action_GCJ=
19043 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19044 test -n "$runpath_var_GCJ" || \
19045 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19047 # We can hardcode non-existant directories.
19048 if test "$hardcode_direct_GCJ" != no &&
19049 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19050 # have to relink, otherwise we might link with an installed library
19051 # when we should be linking with a yet-to-be-installed one
19052 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19053 test "$hardcode_minus_L_GCJ" != no; then
19054 # Linking always hardcodes the temporary library directory.
19055 hardcode_action_GCJ=relink
19057 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19058 hardcode_action_GCJ=immediate
19061 # We cannot hardcode anything, or else we can only hardcode existing
19063 hardcode_action_GCJ=unsupported
19065 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19066 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19068 if test "$hardcode_action_GCJ" = relink; then
19069 # Fast installation is not supported
19070 enable_fast_install=no
19071 elif test "$shlibpath_overrides_runpath" = yes ||
19072 test "$enable_shared" = no; then
19073 # Fast installation is not necessary
19074 enable_fast_install=needless
19078 # The else clause should only fire when bootstrapping the
19079 # libtool distribution, otherwise you forgot to ship ltmain.sh
19080 # with your package, and you will get complaints that there are
19081 # no rules to generate ltmain.sh.
19082 if test -f "$ltmain"; then
19083 # See if we are running on zsh, and set the options which allow our commands through
19084 # without removal of \ escapes.
19085 if test -n "${ZSH_VERSION+set}" ; then
19086 setopt NO_GLOB_SUBST
19088 # Now quote all the things that may contain metacharacters while being
19089 # careful not to overquote the AC_SUBSTed values. We take copies of the
19090 # variables and quote the copies for generation of the libtool script.
19091 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19093 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19094 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19095 deplibs_check_method reload_flag reload_cmds need_locks \
19096 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19097 lt_cv_sys_global_symbol_to_c_name_address \
19098 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19099 old_postinstall_cmds old_postuninstall_cmds \
19103 lt_prog_compiler_wl_GCJ \
19104 lt_prog_compiler_pic_GCJ \
19105 lt_prog_compiler_static_GCJ \
19106 lt_prog_compiler_no_builtin_flag_GCJ \
19107 export_dynamic_flag_spec_GCJ \
19108 thread_safe_flag_spec_GCJ \
19109 whole_archive_flag_spec_GCJ \
19110 enable_shared_with_static_runtimes_GCJ \
19111 old_archive_cmds_GCJ \
19112 old_archive_from_new_cmds_GCJ \
19113 predep_objects_GCJ \
19114 postdep_objects_GCJ \
19117 compiler_lib_search_path_GCJ \
19118 compiler_lib_search_dirs_GCJ \
19120 archive_expsym_cmds_GCJ \
19121 postinstall_cmds_GCJ \
19122 postuninstall_cmds_GCJ \
19123 old_archive_from_expsyms_cmds_GCJ \
19124 allow_undefined_flag_GCJ \
19125 no_undefined_flag_GCJ \
19126 export_symbols_cmds_GCJ \
19127 hardcode_libdir_flag_spec_GCJ \
19128 hardcode_libdir_flag_spec_ld_GCJ \
19129 hardcode_libdir_separator_GCJ \
19130 hardcode_automatic_GCJ \
19132 module_expsym_cmds_GCJ \
19133 lt_cv_prog_compiler_c_o_GCJ \
19134 fix_srcfile_path_GCJ \
19135 exclude_expsyms_GCJ \
19136 include_expsyms_GCJ; do
19139 old_archive_cmds_GCJ | \
19140 old_archive_from_new_cmds_GCJ | \
19141 archive_cmds_GCJ | \
19142 archive_expsym_cmds_GCJ | \
19143 module_cmds_GCJ | \
19144 module_expsym_cmds_GCJ | \
19145 old_archive_from_expsyms_cmds_GCJ | \
19146 export_symbols_cmds_GCJ | \
19147 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19148 postinstall_cmds | postuninstall_cmds | \
19149 old_postinstall_cmds | old_postuninstall_cmds | \
19150 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19151 # Double-quote double-evaled strings.
19152 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19155 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19161 *'\$0 --fallback-echo"')
19162 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19168 cat <<__EOF__ >> "$cfgfile"
19169 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19171 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19173 # Shell to use when invoking shell scripts.
19176 # Whether or not to build shared libraries.
19177 build_libtool_libs=$enable_shared
19179 # Whether or not to build static libraries.
19180 build_old_libs=$enable_static
19182 # Whether or not to add -lc for building shared libraries.
19183 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19185 # Whether or not to disallow shared libs when runtime libs are static
19186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19188 # Whether or not to optimize for fast installation.
19189 fast_install=$enable_fast_install
19192 host_alias=$host_alias
19196 # The build system.
19197 build_alias=$build_alias
19201 # An echo program that does not interpret backslashes.
19206 AR_FLAGS=$lt_AR_FLAGS
19211 # LTCC compiler flags.
19212 LTCFLAGS=$lt_LTCFLAGS
19214 # A language-specific compiler.
19215 CC=$lt_compiler_GCJ
19217 # Is the compiler the GNU C compiler?
19223 # The linker used to build libraries.
19226 # Whether we need hard or soft links.
19229 # A BSD-compatible nm program.
19232 # A symbol stripping program
19235 # Used to examine libraries when file_magic_cmd begins "file"
19236 MAGIC_CMD=$MAGIC_CMD
19238 # Used on cygwin: DLL creation program.
19241 # Used on cygwin: object dumper.
19244 # Used on cygwin: assembler.
19247 # The name of the directory that contains temporary libtool files.
19250 # How to create reloadable object files.
19251 reload_flag=$lt_reload_flag
19252 reload_cmds=$lt_reload_cmds
19254 # How to pass a linker flag through the compiler.
19255 wl=$lt_lt_prog_compiler_wl_GCJ
19257 # Object file suffix (normally "o").
19258 objext="$ac_objext"
19260 # Old archive suffix (normally "a").
19263 # Shared library suffix (normally ".so").
19264 shrext_cmds='$shrext_cmds'
19266 # Executable file suffix (normally "").
19269 # Additional compiler flags for building library objects.
19270 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19273 # What is the maximum length of a command?
19274 max_cmd_len=$lt_cv_sys_max_cmd_len
19276 # Does compiler simultaneously support -c and -o options?
19277 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19279 # Must we lock files when doing compilation?
19280 need_locks=$lt_need_locks
19282 # Do we need the lib prefix for modules?
19283 need_lib_prefix=$need_lib_prefix
19285 # Do we need a version for libraries?
19286 need_version=$need_version
19288 # Whether dlopen is supported.
19289 dlopen_support=$enable_dlopen
19291 # Whether dlopen of programs is supported.
19292 dlopen_self=$enable_dlopen_self
19294 # Whether dlopen of statically linked programs is supported.
19295 dlopen_self_static=$enable_dlopen_self_static
19297 # Compiler flag to prevent dynamic linking.
19298 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19300 # Compiler flag to turn off builtin functions.
19301 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19303 # Compiler flag to allow reflexive dlopens.
19304 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19306 # Compiler flag to generate shared objects directly from archives.
19307 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19309 # Compiler flag to generate thread-safe objects.
19310 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19312 # Library versioning type.
19313 version_type=$version_type
19315 # Format of library name prefix.
19316 libname_spec=$lt_libname_spec
19318 # List of archive names. First name is the real one, the rest are links.
19319 # The last name is the one that the linker finds with -lNAME.
19320 library_names_spec=$lt_library_names_spec
19322 # The coded name of the library, if different from the real name.
19323 soname_spec=$lt_soname_spec
19325 # Commands used to build and install an old-style archive.
19327 old_archive_cmds=$lt_old_archive_cmds_GCJ
19328 old_postinstall_cmds=$lt_old_postinstall_cmds
19329 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19331 # Create an old-style archive from a shared archive.
19332 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19334 # Create a temporary old-style archive to link instead of a shared archive.
19335 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19337 # Commands used to build and install a shared archive.
19338 archive_cmds=$lt_archive_cmds_GCJ
19339 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19340 postinstall_cmds=$lt_postinstall_cmds
19341 postuninstall_cmds=$lt_postuninstall_cmds
19343 # Commands used to build a loadable module (assumed same as above if empty)
19344 module_cmds=$lt_module_cmds_GCJ
19345 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19347 # Commands to strip libraries.
19348 old_striplib=$lt_old_striplib
19349 striplib=$lt_striplib
19351 # Dependencies to place before the objects being linked to create a
19353 predep_objects=$lt_predep_objects_GCJ
19355 # Dependencies to place after the objects being linked to create a
19357 postdep_objects=$lt_postdep_objects_GCJ
19359 # Dependencies to place before the objects being linked to create a
19361 predeps=$lt_predeps_GCJ
19363 # Dependencies to place after the objects being linked to create a
19365 postdeps=$lt_postdeps_GCJ
19367 # The directories searched by this compiler when creating a shared
19369 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19371 # The library search path used internally by the compiler when linking
19372 # a shared library.
19373 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19375 # Method to check whether dependent libraries are shared objects.
19376 deplibs_check_method=$lt_deplibs_check_method
19378 # Command to use when deplibs_check_method == file_magic.
19379 file_magic_cmd=$lt_file_magic_cmd
19381 # Flag that allows shared libraries with undefined symbols to be built.
19382 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19384 # Flag that forces no undefined symbols.
19385 no_undefined_flag=$lt_no_undefined_flag_GCJ
19387 # Commands used to finish a libtool library installation in a directory.
19388 finish_cmds=$lt_finish_cmds
19390 # Same as above, but a single script fragment to be evaled but not shown.
19391 finish_eval=$lt_finish_eval
19393 # Take the output of nm and produce a listing of raw symbols and C names.
19394 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19396 # Transform the output of nm in a proper C declaration
19397 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19399 # Transform the output of nm in a C name address pair
19400 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19402 # This is the shared library runtime path variable.
19403 runpath_var=$runpath_var
19405 # This is the shared library path variable.
19406 shlibpath_var=$shlibpath_var
19408 # Is shlibpath searched before the hard-coded library search path?
19409 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19411 # How to hardcode a shared library path into an executable.
19412 hardcode_action=$hardcode_action_GCJ
19414 # Whether we should hardcode library paths into libraries.
19415 hardcode_into_libs=$hardcode_into_libs
19417 # Flag to hardcode \$libdir into a binary during linking.
19418 # This must work even if \$libdir does not exist.
19419 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19421 # If ld is used when linking, flag to hardcode \$libdir into
19422 # a binary during linking. This must work even if \$libdir does
19424 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19426 # Whether we need a single -rpath flag with a separated argument.
19427 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19429 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19430 # resulting binary.
19431 hardcode_direct=$hardcode_direct_GCJ
19433 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19434 # resulting binary.
19435 hardcode_minus_L=$hardcode_minus_L_GCJ
19437 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19438 # the resulting binary.
19439 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19441 # Set to yes if building a shared library automatically hardcodes DIR into the library
19442 # and all subsequent libraries and executables linked against it.
19443 hardcode_automatic=$hardcode_automatic_GCJ
19445 # Variables whose values should be saved in libtool wrapper scripts and
19446 # restored at relink time.
19447 variables_saved_for_relink="$variables_saved_for_relink"
19449 # Whether libtool must link a program against all its dependency libraries.
19450 link_all_deplibs=$link_all_deplibs_GCJ
19452 # Compile-time system search path for libraries
19453 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19455 # Run-time system search path for libraries
19456 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19458 # Fix the shell variable \$srcfile for the compiler.
19459 fix_srcfile_path=$lt_fix_srcfile_path
19461 # Set to yes if exported symbols are required.
19462 always_export_symbols=$always_export_symbols_GCJ
19464 # The commands to list exported symbols.
19465 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19467 # The commands to extract the exported symbol list from a shared archive.
19468 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19470 # Symbols that should not be listed in the preloaded symbols.
19471 exclude_expsyms=$lt_exclude_expsyms_GCJ
19473 # Symbols that must always be exported.
19474 include_expsyms=$lt_include_expsyms_GCJ
19476 # ### END LIBTOOL TAG CONFIG: $tagname
19482 # If there is no Makefile yet, we rely on a make rule to execute
19483 # `config.status --recheck' to rerun these tests and create the
19484 # libtool script then.
19485 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19486 if test -f "$ltmain_in"; then
19487 test -f Makefile && make "$ltmain"
19493 ac_cpp='$CPP $CPPFLAGS'
19494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19508 # Source file extension for RC test sources.
19511 # Object file extension for compiled RC test sources.
19515 # Code to be used in simple compile tests
19516 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19518 # Code to be used in simple link tests
19519 lt_simple_link_test_code="$lt_simple_compile_test_code"
19521 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19523 # If no C compiler was specified, use CC.
19526 # If no C compiler flags were specified, use CFLAGS.
19527 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19529 # Allow CC to be a program name with arguments.
19533 # save warnings/boilerplate of simple test code
19534 ac_outfile=conftest.$ac_objext
19535 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19536 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19537 _lt_compiler_boilerplate=`cat conftest.err`
19540 ac_outfile=conftest.$ac_objext
19541 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19542 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19543 _lt_linker_boilerplate=`cat conftest.err`
19547 # Allow CC to be a program name with arguments.
19552 for cc_temp in $compiler""; do
19554 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19555 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19560 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19562 lt_cv_prog_compiler_c_o_RC=yes
19564 # The else clause should only fire when bootstrapping the
19565 # libtool distribution, otherwise you forgot to ship ltmain.sh
19566 # with your package, and you will get complaints that there are
19567 # no rules to generate ltmain.sh.
19568 if test -f "$ltmain"; then
19569 # See if we are running on zsh, and set the options which allow our commands through
19570 # without removal of \ escapes.
19571 if test -n "${ZSH_VERSION+set}" ; then
19572 setopt NO_GLOB_SUBST
19574 # Now quote all the things that may contain metacharacters while being
19575 # careful not to overquote the AC_SUBSTed values. We take copies of the
19576 # variables and quote the copies for generation of the libtool script.
19577 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19579 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19580 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19581 deplibs_check_method reload_flag reload_cmds need_locks \
19582 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19583 lt_cv_sys_global_symbol_to_c_name_address \
19584 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19585 old_postinstall_cmds old_postuninstall_cmds \
19589 lt_prog_compiler_wl_RC \
19590 lt_prog_compiler_pic_RC \
19591 lt_prog_compiler_static_RC \
19592 lt_prog_compiler_no_builtin_flag_RC \
19593 export_dynamic_flag_spec_RC \
19594 thread_safe_flag_spec_RC \
19595 whole_archive_flag_spec_RC \
19596 enable_shared_with_static_runtimes_RC \
19597 old_archive_cmds_RC \
19598 old_archive_from_new_cmds_RC \
19599 predep_objects_RC \
19600 postdep_objects_RC \
19603 compiler_lib_search_path_RC \
19604 compiler_lib_search_dirs_RC \
19606 archive_expsym_cmds_RC \
19607 postinstall_cmds_RC \
19608 postuninstall_cmds_RC \
19609 old_archive_from_expsyms_cmds_RC \
19610 allow_undefined_flag_RC \
19611 no_undefined_flag_RC \
19612 export_symbols_cmds_RC \
19613 hardcode_libdir_flag_spec_RC \
19614 hardcode_libdir_flag_spec_ld_RC \
19615 hardcode_libdir_separator_RC \
19616 hardcode_automatic_RC \
19618 module_expsym_cmds_RC \
19619 lt_cv_prog_compiler_c_o_RC \
19620 fix_srcfile_path_RC \
19621 exclude_expsyms_RC \
19622 include_expsyms_RC; do
19625 old_archive_cmds_RC | \
19626 old_archive_from_new_cmds_RC | \
19627 archive_cmds_RC | \
19628 archive_expsym_cmds_RC | \
19630 module_expsym_cmds_RC | \
19631 old_archive_from_expsyms_cmds_RC | \
19632 export_symbols_cmds_RC | \
19633 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19634 postinstall_cmds | postuninstall_cmds | \
19635 old_postinstall_cmds | old_postuninstall_cmds | \
19636 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19637 # Double-quote double-evaled strings.
19638 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19641 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19647 *'\$0 --fallback-echo"')
19648 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19654 cat <<__EOF__ >> "$cfgfile"
19655 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19657 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19659 # Shell to use when invoking shell scripts.
19662 # Whether or not to build shared libraries.
19663 build_libtool_libs=$enable_shared
19665 # Whether or not to build static libraries.
19666 build_old_libs=$enable_static
19668 # Whether or not to add -lc for building shared libraries.
19669 build_libtool_need_lc=$archive_cmds_need_lc_RC
19671 # Whether or not to disallow shared libs when runtime libs are static
19672 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19674 # Whether or not to optimize for fast installation.
19675 fast_install=$enable_fast_install
19678 host_alias=$host_alias
19682 # The build system.
19683 build_alias=$build_alias
19687 # An echo program that does not interpret backslashes.
19692 AR_FLAGS=$lt_AR_FLAGS
19697 # LTCC compiler flags.
19698 LTCFLAGS=$lt_LTCFLAGS
19700 # A language-specific compiler.
19703 # Is the compiler the GNU C compiler?
19709 # The linker used to build libraries.
19712 # Whether we need hard or soft links.
19715 # A BSD-compatible nm program.
19718 # A symbol stripping program
19721 # Used to examine libraries when file_magic_cmd begins "file"
19722 MAGIC_CMD=$MAGIC_CMD
19724 # Used on cygwin: DLL creation program.
19727 # Used on cygwin: object dumper.
19730 # Used on cygwin: assembler.
19733 # The name of the directory that contains temporary libtool files.
19736 # How to create reloadable object files.
19737 reload_flag=$lt_reload_flag
19738 reload_cmds=$lt_reload_cmds
19740 # How to pass a linker flag through the compiler.
19741 wl=$lt_lt_prog_compiler_wl_RC
19743 # Object file suffix (normally "o").
19744 objext="$ac_objext"
19746 # Old archive suffix (normally "a").
19749 # Shared library suffix (normally ".so").
19750 shrext_cmds='$shrext_cmds'
19752 # Executable file suffix (normally "").
19755 # Additional compiler flags for building library objects.
19756 pic_flag=$lt_lt_prog_compiler_pic_RC
19759 # What is the maximum length of a command?
19760 max_cmd_len=$lt_cv_sys_max_cmd_len
19762 # Does compiler simultaneously support -c and -o options?
19763 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19765 # Must we lock files when doing compilation?
19766 need_locks=$lt_need_locks
19768 # Do we need the lib prefix for modules?
19769 need_lib_prefix=$need_lib_prefix
19771 # Do we need a version for libraries?
19772 need_version=$need_version
19774 # Whether dlopen is supported.
19775 dlopen_support=$enable_dlopen
19777 # Whether dlopen of programs is supported.
19778 dlopen_self=$enable_dlopen_self
19780 # Whether dlopen of statically linked programs is supported.
19781 dlopen_self_static=$enable_dlopen_self_static
19783 # Compiler flag to prevent dynamic linking.
19784 link_static_flag=$lt_lt_prog_compiler_static_RC
19786 # Compiler flag to turn off builtin functions.
19787 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19789 # Compiler flag to allow reflexive dlopens.
19790 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19792 # Compiler flag to generate shared objects directly from archives.
19793 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19795 # Compiler flag to generate thread-safe objects.
19796 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19798 # Library versioning type.
19799 version_type=$version_type
19801 # Format of library name prefix.
19802 libname_spec=$lt_libname_spec
19804 # List of archive names. First name is the real one, the rest are links.
19805 # The last name is the one that the linker finds with -lNAME.
19806 library_names_spec=$lt_library_names_spec
19808 # The coded name of the library, if different from the real name.
19809 soname_spec=$lt_soname_spec
19811 # Commands used to build and install an old-style archive.
19813 old_archive_cmds=$lt_old_archive_cmds_RC
19814 old_postinstall_cmds=$lt_old_postinstall_cmds
19815 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19817 # Create an old-style archive from a shared archive.
19818 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19820 # Create a temporary old-style archive to link instead of a shared archive.
19821 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19823 # Commands used to build and install a shared archive.
19824 archive_cmds=$lt_archive_cmds_RC
19825 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19826 postinstall_cmds=$lt_postinstall_cmds
19827 postuninstall_cmds=$lt_postuninstall_cmds
19829 # Commands used to build a loadable module (assumed same as above if empty)
19830 module_cmds=$lt_module_cmds_RC
19831 module_expsym_cmds=$lt_module_expsym_cmds_RC
19833 # Commands to strip libraries.
19834 old_striplib=$lt_old_striplib
19835 striplib=$lt_striplib
19837 # Dependencies to place before the objects being linked to create a
19839 predep_objects=$lt_predep_objects_RC
19841 # Dependencies to place after the objects being linked to create a
19843 postdep_objects=$lt_postdep_objects_RC
19845 # Dependencies to place before the objects being linked to create a
19847 predeps=$lt_predeps_RC
19849 # Dependencies to place after the objects being linked to create a
19851 postdeps=$lt_postdeps_RC
19853 # The directories searched by this compiler when creating a shared
19855 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19857 # The library search path used internally by the compiler when linking
19858 # a shared library.
19859 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19861 # Method to check whether dependent libraries are shared objects.
19862 deplibs_check_method=$lt_deplibs_check_method
19864 # Command to use when deplibs_check_method == file_magic.
19865 file_magic_cmd=$lt_file_magic_cmd
19867 # Flag that allows shared libraries with undefined symbols to be built.
19868 allow_undefined_flag=$lt_allow_undefined_flag_RC
19870 # Flag that forces no undefined symbols.
19871 no_undefined_flag=$lt_no_undefined_flag_RC
19873 # Commands used to finish a libtool library installation in a directory.
19874 finish_cmds=$lt_finish_cmds
19876 # Same as above, but a single script fragment to be evaled but not shown.
19877 finish_eval=$lt_finish_eval
19879 # Take the output of nm and produce a listing of raw symbols and C names.
19880 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19882 # Transform the output of nm in a proper C declaration
19883 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19885 # Transform the output of nm in a C name address pair
19886 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19888 # This is the shared library runtime path variable.
19889 runpath_var=$runpath_var
19891 # This is the shared library path variable.
19892 shlibpath_var=$shlibpath_var
19894 # Is shlibpath searched before the hard-coded library search path?
19895 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19897 # How to hardcode a shared library path into an executable.
19898 hardcode_action=$hardcode_action_RC
19900 # Whether we should hardcode library paths into libraries.
19901 hardcode_into_libs=$hardcode_into_libs
19903 # Flag to hardcode \$libdir into a binary during linking.
19904 # This must work even if \$libdir does not exist.
19905 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19907 # If ld is used when linking, flag to hardcode \$libdir into
19908 # a binary during linking. This must work even if \$libdir does
19910 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19912 # Whether we need a single -rpath flag with a separated argument.
19913 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19915 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19916 # resulting binary.
19917 hardcode_direct=$hardcode_direct_RC
19919 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19920 # resulting binary.
19921 hardcode_minus_L=$hardcode_minus_L_RC
19923 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19924 # the resulting binary.
19925 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19927 # Set to yes if building a shared library automatically hardcodes DIR into the library
19928 # and all subsequent libraries and executables linked against it.
19929 hardcode_automatic=$hardcode_automatic_RC
19931 # Variables whose values should be saved in libtool wrapper scripts and
19932 # restored at relink time.
19933 variables_saved_for_relink="$variables_saved_for_relink"
19935 # Whether libtool must link a program against all its dependency libraries.
19936 link_all_deplibs=$link_all_deplibs_RC
19938 # Compile-time system search path for libraries
19939 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19941 # Run-time system search path for libraries
19942 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19944 # Fix the shell variable \$srcfile for the compiler.
19945 fix_srcfile_path=$lt_fix_srcfile_path
19947 # Set to yes if exported symbols are required.
19948 always_export_symbols=$always_export_symbols_RC
19950 # The commands to list exported symbols.
19951 export_symbols_cmds=$lt_export_symbols_cmds_RC
19953 # The commands to extract the exported symbol list from a shared archive.
19954 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19956 # Symbols that should not be listed in the preloaded symbols.
19957 exclude_expsyms=$lt_exclude_expsyms_RC
19959 # Symbols that must always be exported.
19960 include_expsyms=$lt_include_expsyms_RC
19962 # ### END LIBTOOL TAG CONFIG: $tagname
19968 # If there is no Makefile yet, we rely on a make rule to execute
19969 # `config.status --recheck' to rerun these tests and create the
19970 # libtool script then.
19971 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19972 if test -f "$ltmain_in"; then
19973 test -f Makefile && make "$ltmain"
19979 ac_cpp='$CPP $CPPFLAGS'
19980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19989 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19990 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19991 { (exit 1); exit 1; }; }
19995 # Append the new tag name to the list of available tags.
19996 if test -n "$tagname" ; then
19997 available_tags="$available_tags $tagname"
20003 # Now substitute the updated list of available tags.
20004 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20005 mv "${ofile}T" "$ofile"
20009 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20010 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20011 { (exit 1); exit 1; }; }
20017 # This can be used to rebuild libtool when needed
20018 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20020 # Always use our own libtool.
20021 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20023 # Prevent multiple expansion
20036 # Check whether --with-system-libtool was given.
20037 if test "${with_system_libtool+set}" = set; then
20038 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
20039 set dummy libtool; ac_word=$2
20040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20042 if test "${ac_cv_path_LIBTOOL+set}" = set; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20047 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
20050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20051 as_dummy="$PATH:/usr/local/bin"
20052 for as_dir in $as_dummy
20055 test -z "$as_dir" && as_dir=.
20056 for ac_exec_ext in '' $ac_executable_extensions; do
20057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20058 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
20059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20069 LIBTOOL=$ac_cv_path_LIBTOOL
20070 if test -n "$LIBTOOL"; then
20071 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
20072 echo "${ECHO_T}$LIBTOOL" >&6; }
20074 { echo "$as_me:$LINENO: result: no" >&5
20075 echo "${ECHO_T}no" >&6; }
20081 LIBTOOL="`pwd`/libtool"
20101 # Check whether --enable-strict-dependencies was given.
20102 if test "${enable_strict_dependencies+set}" = set; then
20103 enableval=$enable_strict_dependencies;
20107 docdir='${datadir}/doc/freeradius'
20108 { echo "$as_me:$LINENO: checking docdir" >&5
20109 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
20111 # Check whether --with-docdir was given.
20112 if test "${with_docdir+set}" = set; then
20113 withval=$with_docdir; case "$withval" in
20119 [\\/$]* | ?:[\\/]* )
20123 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
20124 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
20125 { (exit 1); exit 1; }; }
20132 { echo "$as_me:$LINENO: result: $docdir" >&5
20133 echo "${ECHO_T}$docdir" >&6; }
20134 if test "x$docdir" = xno; then
20135 { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
20136 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
20139 logdir='${localstatedir}/log/radius'
20140 { echo "$as_me:$LINENO: checking logdir" >&5
20141 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
20143 # Check whether --with-logdir was given.
20144 if test "${with_logdir+set}" = set; then
20145 withval=$with_logdir; case "$withval" in
20147 { { echo "$as_me:$LINENO: error: Need logdir" >&5
20148 echo "$as_me: error: Need logdir" >&2;}
20149 { (exit 1); exit 1; }; }
20153 [\\/$]* | ?:[\\/]* )
20157 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
20158 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
20159 { (exit 1); exit 1; }; }
20166 { echo "$as_me:$LINENO: result: $logdir" >&5
20167 echo "${ECHO_T}$logdir" >&6; }
20169 radacctdir='${logdir}/radacct'
20170 { echo "$as_me:$LINENO: checking radacctdir" >&5
20171 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
20173 # Check whether --with-radacctdir was given.
20174 if test "${with_radacctdir+set}" = set; then
20175 withval=$with_radacctdir; case "$withval" in
20177 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
20178 echo "$as_me: error: Need radacctdir" >&2;}
20179 { (exit 1); exit 1; }; }
20183 [\\/$]* | ?:[\\/]* )
20184 radacctdir="$withval"
20187 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
20188 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
20189 { (exit 1); exit 1; }; }
20196 { echo "$as_me:$LINENO: result: $radacctdir" >&5
20197 echo "${ECHO_T}$radacctdir" >&6; }
20199 raddbdir='${sysconfdir}/raddb'
20200 { echo "$as_me:$LINENO: checking raddbdir" >&5
20201 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
20203 # Check whether --with-raddbdir was given.
20204 if test "${with_raddbdir+set}" = set; then
20205 withval=$with_raddbdir; case "$withval" in
20207 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
20208 echo "$as_me: error: Need raddbdir" >&2;}
20209 { (exit 1); exit 1; }; }
20213 [\\/$]* | ?:[\\/]* )
20214 raddbdir="$withval"
20217 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
20218 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
20219 { (exit 1); exit 1; }; }
20226 { echo "$as_me:$LINENO: result: $raddbdir" >&5
20227 echo "${ECHO_T}$raddbdir" >&6; }
20231 # Check whether --with-ascend-binary was given.
20232 if test "${with_ascend_binary+set}" = set; then
20233 withval=$with_ascend_binary; case "$withval" in
20242 if test "X$ASCEND_BINARY" = "Xyes"; then
20244 cat >>confdefs.h <<\_ACEOF
20245 #define ASCEND_BINARY
20252 # Check whether --with-threads was given.
20253 if test "${with_threads+set}" = set; then
20254 withval=$with_threads; case "$withval" in
20266 # Check whether --with-vmps was given.
20267 if test "${with_vmps+set}" = set; then
20268 withval=$with_vmps; case "$withval" in
20277 if test "x$WITH_VMPS" = "xyes"; then
20279 cat >>confdefs.h <<\_ACEOF
20280 #define WITH_VMPS 1
20286 # Check whether --with-dhcp was given.
20287 if test "${with_dhcp+set}" = set; then
20288 withval=$with_dhcp; case "$withval" in
20291 cat >>confdefs.h <<\_ACEOF
20292 #define WITH_DHCP 1
20306 # Check whether --with-static_modules was given.
20307 if test "${with_static_modules+set}" = set; then
20308 withval=$with_static_modules;
20309 for i in $withval; do
20310 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
20318 # Check whether --with-modules was given.
20319 if test "${with_modules+set}" = set; then
20320 withval=$with_modules;
20321 for i in $withval; do
20322 MODULES="$MODULES $i"
20328 # Check whether --enable-developer was given.
20329 if test "${enable_developer+set}" = set; then
20330 enableval=$enable_developer; case "$enableval" in
20341 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
20345 if test "x$developer" != "xno" -a -d $srcdir/.git; then
20351 # Check whether --with-experimental-modules was given.
20352 if test "${with_experimental_modules+set}" = set; then
20353 withval=$with_experimental_modules; case "$withval" in
20365 # Check whether --with-openssl was given.
20366 if test "${with_openssl+set}" = set; then
20367 withval=$with_openssl; case "$withval" in
20379 OPENSSL_INCLUDE_DIR=
20381 # Check whether --with-openssl-includes was given.
20382 if test "${with_openssl_includes+set}" = set; then
20383 withval=$with_openssl_includes; case "$withval" in
20384 *) OPENSSL_INCLUDE_DIR="$withval"
20393 # Check whether --with-openssl-libraries was given.
20394 if test "${with_openssl_libraries+set}" = set; then
20395 withval=$with_openssl_libraries; case "$withval" in
20396 *) OPENSSL_LIB_DIR="$withval"
20405 # Check whether --with-rlm-FOO-lib-dir was given.
20406 if test "${with_rlm_FOO_lib_dir+set}" = set; then
20407 withval=$with_rlm_FOO_lib_dir; case "$withval" in
20416 # Check whether --with-rlm-FOO-include-dir was given.
20417 if test "${with_rlm_FOO_include_dir+set}" = set; then
20418 withval=$with_rlm_FOO_include_dir; case "$withval" in
20429 # Check whether --with-udpfromto was given.
20430 if test "${with_udpfromto+set}" = set; then
20431 withval=$with_udpfromto; case "$withval" in
20442 if test "x$WITH_UDPFROMTO" = "xyes"; then
20444 cat >>confdefs.h <<\_ACEOF
20445 #define WITH_UDPFROMTO
20451 CHECKRAD=checkrad.pl
20452 # Extract the first word of "perl", so it can be a program name with args.
20453 set dummy perl; ac_word=$2
20454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20456 if test "${ac_cv_path_PERL+set}" = set; then
20457 echo $ECHO_N "(cached) $ECHO_C" >&6
20461 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20465 for as_dir in $PATH
20468 test -z "$as_dir" && as_dir=.
20469 for ac_exec_ext in '' $ac_executable_extensions; do
20470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20471 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
20472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20479 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
20483 PERL=$ac_cv_path_PERL
20484 if test -n "$PERL"; then
20485 { echo "$as_me:$LINENO: result: $PERL" >&5
20486 echo "${ECHO_T}$PERL" >&6; }
20488 { echo "$as_me:$LINENO: result: no" >&5
20489 echo "${ECHO_T}no" >&6; }
20493 if test "x$ac_cv_path_PERL" = "x"; then
20494 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
20495 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20497 # Extract the first word of "snmpget", so it can be a program name with args.
20498 set dummy snmpget; ac_word=$2
20499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20501 if test "${ac_cv_path_SNMPGET+set}" = set; then
20502 echo $ECHO_N "(cached) $ECHO_C" >&6
20506 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
20509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20510 for as_dir in $PATH
20513 test -z "$as_dir" && as_dir=.
20514 for ac_exec_ext in '' $ac_executable_extensions; do
20515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20516 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
20517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20527 SNMPGET=$ac_cv_path_SNMPGET
20528 if test -n "$SNMPGET"; then
20529 { echo "$as_me:$LINENO: result: $SNMPGET" >&5
20530 echo "${ECHO_T}$SNMPGET" >&6; }
20532 { echo "$as_me:$LINENO: result: no" >&5
20533 echo "${ECHO_T}no" >&6; }
20537 if test "x$ac_cv_path_SNMPGET" = "x"; then
20538 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
20539 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20542 # Extract the first word of "snmpwalk", so it can be a program name with args.
20543 set dummy snmpwalk; ac_word=$2
20544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20546 if test "${ac_cv_path_SNMPWALK+set}" = set; then
20547 echo $ECHO_N "(cached) $ECHO_C" >&6
20551 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
20554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20555 for as_dir in $PATH
20558 test -z "$as_dir" && as_dir=.
20559 for ac_exec_ext in '' $ac_executable_extensions; do
20560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20561 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20572 SNMPWALK=$ac_cv_path_SNMPWALK
20573 if test -n "$SNMPWALK"; then
20574 { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
20575 echo "${ECHO_T}$SNMPWALK" >&6; }
20577 { echo "$as_me:$LINENO: result: no" >&5
20578 echo "${ECHO_T}no" >&6; }
20582 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20583 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20584 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20587 # Extract the first word of "rusers", so it can be a program name with args.
20588 set dummy rusers; ac_word=$2
20589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20591 if test "${ac_cv_path_RUSERS+set}" = set; then
20592 echo $ECHO_N "(cached) $ECHO_C" >&6
20596 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20600 for as_dir in $PATH
20603 test -z "$as_dir" && as_dir=.
20604 for ac_exec_ext in '' $ac_executable_extensions; do
20605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20606 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20614 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20618 RUSERS=$ac_cv_path_RUSERS
20619 if test -n "$RUSERS"; then
20620 { echo "$as_me:$LINENO: result: $RUSERS" >&5
20621 echo "${ECHO_T}$RUSERS" >&6; }
20623 { echo "$as_me:$LINENO: result: no" >&5
20624 echo "${ECHO_T}no" >&6; }
20629 missing_dir=`cd $ac_aux_dir && pwd`
20630 # expand $ac_aux_dir to an absolute path
20631 am_aux_dir=`cd $ac_aux_dir && pwd`
20633 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20634 # Use eval to expand $SHELL
20635 if eval "$MISSING --run true"; then
20636 am_missing_run="$MISSING --run "
20639 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20640 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20644 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20647 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20650 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20653 # Extract the first word of "locate", so it can be a program name with args.
20654 set dummy locate; ac_word=$2
20655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20657 if test "${ac_cv_path_LOCATE+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20662 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20666 for as_dir in $PATH
20669 test -z "$as_dir" && as_dir=.
20670 for ac_exec_ext in '' $ac_executable_extensions; do
20671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20672 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20683 LOCATE=$ac_cv_path_LOCATE
20684 if test -n "$LOCATE"; then
20685 { echo "$as_me:$LINENO: result: $LOCATE" >&5
20686 echo "${ECHO_T}$LOCATE" >&6; }
20688 { echo "$as_me:$LINENO: result: no" >&5
20689 echo "${ECHO_T}no" >&6; }
20693 # Extract the first word of "dirname", so it can be a program name with args.
20694 set dummy dirname; ac_word=$2
20695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20697 if test "${ac_cv_path_DIRNAME+set}" = set; then
20698 echo $ECHO_N "(cached) $ECHO_C" >&6
20702 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20706 for as_dir in $PATH
20709 test -z "$as_dir" && as_dir=.
20710 for ac_exec_ext in '' $ac_executable_extensions; do
20711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20712 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20723 DIRNAME=$ac_cv_path_DIRNAME
20724 if test -n "$DIRNAME"; then
20725 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20726 echo "${ECHO_T}$DIRNAME" >&6; }
20728 { echo "$as_me:$LINENO: result: no" >&5
20729 echo "${ECHO_T}no" >&6; }
20733 # Extract the first word of "grep", so it can be a program name with args.
20734 set dummy grep; ac_word=$2
20735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20737 if test "${ac_cv_path_GREP+set}" = set; then
20738 echo $ECHO_N "(cached) $ECHO_C" >&6
20742 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20746 for as_dir in $PATH
20749 test -z "$as_dir" && as_dir=.
20750 for ac_exec_ext in '' $ac_executable_extensions; do
20751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20752 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20763 GREP=$ac_cv_path_GREP
20764 if test -n "$GREP"; then
20765 { echo "$as_me:$LINENO: result: $GREP" >&5
20766 echo "${ECHO_T}$GREP" >&6; }
20768 { echo "$as_me:$LINENO: result: no" >&5
20769 echo "${ECHO_T}no" >&6; }
20776 if test "x$WITH_THREADS" = "xyes"; then
20777 if test $ac_cv_prog_suncc = "yes"; then
20778 CFLAGS="$CFLAGS -mt"
20782 for ac_header in pthread.h
20784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20789 echo $ECHO_N "(cached) $ECHO_C" >&6
20791 ac_res=`eval echo '${'$as_ac_Header'}'`
20792 { echo "$as_me:$LINENO: result: $ac_res" >&5
20793 echo "${ECHO_T}$ac_res" >&6; }
20795 # Is the header compilable?
20796 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20798 cat >conftest.$ac_ext <<_ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h. */
20804 $ac_includes_default
20805 #include <$ac_header>
20807 rm -f conftest.$ac_objext
20808 if { (ac_try="$ac_compile"
20809 case "(($ac_try" in
20810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811 *) ac_try_echo=$ac_try;;
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814 (eval "$ac_compile") 2>conftest.er1
20816 grep -v '^ *+' conftest.er1 >conftest.err
20818 cat conftest.err >&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); } && {
20821 test -z "$ac_c_werror_flag" ||
20822 test ! -s conftest.err
20823 } && test -s conftest.$ac_objext; then
20824 ac_header_compiler=yes
20826 echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20829 ac_header_compiler=no
20832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20834 echo "${ECHO_T}$ac_header_compiler" >&6; }
20836 # Is the header present?
20837 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20839 cat >conftest.$ac_ext <<_ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h. */
20845 #include <$ac_header>
20847 if { (ac_try="$ac_cpp conftest.$ac_ext"
20848 case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20855 grep -v '^ *+' conftest.er1 >conftest.err
20857 cat conftest.err >&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } >/dev/null && {
20860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20861 test ! -s conftest.err
20863 ac_header_preproc=yes
20865 echo "$as_me: failed program was:" >&5
20866 sed 's/^/| /' conftest.$ac_ext >&5
20868 ac_header_preproc=no
20871 rm -f conftest.err conftest.$ac_ext
20872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20873 echo "${ECHO_T}$ac_header_preproc" >&6; }
20875 # So? What about this header?
20876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20882 ac_header_preproc=yes
20885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20903 echo $ECHO_N "(cached) $ECHO_C" >&6
20905 eval "$as_ac_Header=\$ac_header_preproc"
20907 ac_res=`eval echo '${'$as_ac_Header'}'`
20908 { echo "$as_me:$LINENO: result: $ac_res" >&5
20909 echo "${ECHO_T}$ac_res" >&6; }
20912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20913 cat >>confdefs.h <<_ACEOF
20914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20924 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20925 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20926 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20927 echo $ECHO_N "(cached) $ECHO_C" >&6
20929 ac_check_lib_save_LIBS=$LIBS
20930 LIBS="-lpthread $LIBS"
20931 cat >conftest.$ac_ext <<_ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h. */
20938 /* Override any GCC internal prototype to avoid an error.
20939 Use char because int might match the return type of a GCC
20940 builtin and then its argument prototype would still apply. */
20944 char pthread_create ();
20948 return pthread_create ();
20953 rm -f conftest.$ac_objext conftest$ac_exeext
20954 if { (ac_try="$ac_link"
20955 case "(($ac_try" in
20956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20957 *) ac_try_echo=$ac_try;;
20959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20960 (eval "$ac_link") 2>conftest.er1
20962 grep -v '^ *+' conftest.er1 >conftest.err
20964 cat conftest.err >&5
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); } && {
20967 test -z "$ac_c_werror_flag" ||
20968 test ! -s conftest.err
20969 } && test -s conftest$ac_exeext &&
20970 $as_test_x conftest$ac_exeext; then
20971 ac_cv_lib_pthread_pthread_create=yes
20973 echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20976 ac_cv_lib_pthread_pthread_create=no
20979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20980 conftest$ac_exeext conftest.$ac_ext
20981 LIBS=$ac_check_lib_save_LIBS
20983 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20984 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20985 if test $ac_cv_lib_pthread_pthread_create = yes; then
20986 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20987 LIBS="$LIBS -lpthread"
20989 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20990 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20991 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20992 echo $ECHO_N "(cached) $ECHO_C" >&6
20994 ac_check_lib_save_LIBS=$LIBS
20996 cat >conftest.$ac_ext <<_ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h. */
21003 /* Override any GCC internal prototype to avoid an error.
21004 Use char because int might match the return type of a GCC
21005 builtin and then its argument prototype would still apply. */
21009 char pthread_create ();
21013 return pthread_create ();
21018 rm -f conftest.$ac_objext conftest$ac_exeext
21019 if { (ac_try="$ac_link"
21020 case "(($ac_try" in
21021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022 *) ac_try_echo=$ac_try;;
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025 (eval "$ac_link") 2>conftest.er1
21027 grep -v '^ *+' conftest.er1 >conftest.err
21029 cat conftest.err >&5
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); } && {
21032 test -z "$ac_c_werror_flag" ||
21033 test ! -s conftest.err
21034 } && test -s conftest$ac_exeext &&
21035 $as_test_x conftest$ac_exeext; then
21036 ac_cv_lib_c_r_pthread_create=yes
21038 echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21041 ac_cv_lib_c_r_pthread_create=no
21044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21045 conftest$ac_exeext conftest.$ac_ext
21046 LIBS=$ac_check_lib_save_LIBS
21048 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21049 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
21050 if test $ac_cv_lib_c_r_pthread_create = yes; then
21051 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
21062 if test "x$WITH_THREADS" != "xyes"; then
21064 ac_cv_header_pthread_h="no"
21068 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
21069 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
21070 if test "${ac_cv_search_sem_init+set}" = set; then
21071 echo $ECHO_N "(cached) $ECHO_C" >&6
21073 ac_func_search_save_LIBS=$LIBS
21074 cat >conftest.$ac_ext <<_ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21081 /* Override any GCC internal prototype to avoid an error.
21082 Use char because int might match the return type of a GCC
21083 builtin and then its argument prototype would still apply. */
21091 return sem_init ();
21096 for ac_lib in '' pthread sem posix4 rt semaphore; do
21097 if test -z "$ac_lib"; then
21098 ac_res="none required"
21101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21103 rm -f conftest.$ac_objext conftest$ac_exeext
21104 if { (ac_try="$ac_link"
21105 case "(($ac_try" in
21106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21107 *) ac_try_echo=$ac_try;;
21109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21110 (eval "$ac_link") 2>conftest.er1
21112 grep -v '^ *+' conftest.er1 >conftest.err
21114 cat conftest.err >&5
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); } && {
21117 test -z "$ac_c_werror_flag" ||
21118 test ! -s conftest.err
21119 } && test -s conftest$ac_exeext &&
21120 $as_test_x conftest$ac_exeext; then
21121 ac_cv_search_sem_init=$ac_res
21123 echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21131 if test "${ac_cv_search_sem_init+set}" = set; then
21135 if test "${ac_cv_search_sem_init+set}" = set; then
21138 ac_cv_search_sem_init=no
21140 rm conftest.$ac_ext
21141 LIBS=$ac_func_search_save_LIBS
21143 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
21144 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
21145 ac_res=$ac_cv_search_sem_init
21146 if test "$ac_res" != no; then
21147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21150 { { 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
21151 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;}
21152 { (exit 1); exit 1; }; }
21159 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
21160 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
21161 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
21162 echo $ECHO_N "(cached) $ECHO_C" >&6
21164 ac_check_lib_save_LIBS=$LIBS
21165 LIBS="-lsocket $LIBS"
21166 cat >conftest.$ac_ext <<_ACEOF
21169 cat confdefs.h >>conftest.$ac_ext
21170 cat >>conftest.$ac_ext <<_ACEOF
21171 /* end confdefs.h. */
21173 /* Override any GCC internal prototype to avoid an error.
21174 Use char because int might match the return type of a GCC
21175 builtin and then its argument prototype would still apply. */
21179 char getsockname ();
21183 return getsockname ();
21188 rm -f conftest.$ac_objext conftest$ac_exeext
21189 if { (ac_try="$ac_link"
21190 case "(($ac_try" in
21191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192 *) ac_try_echo=$ac_try;;
21194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21195 (eval "$ac_link") 2>conftest.er1
21197 grep -v '^ *+' conftest.er1 >conftest.err
21199 cat conftest.err >&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); } && {
21202 test -z "$ac_c_werror_flag" ||
21203 test ! -s conftest.err
21204 } && test -s conftest$ac_exeext &&
21205 $as_test_x conftest$ac_exeext; then
21206 ac_cv_lib_socket_getsockname=yes
21208 echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21211 ac_cv_lib_socket_getsockname=no
21214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21215 conftest$ac_exeext conftest.$ac_ext
21216 LIBS=$ac_check_lib_save_LIBS
21218 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
21219 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
21220 if test $ac_cv_lib_socket_getsockname = yes; then
21221 cat >>confdefs.h <<_ACEOF
21222 #define HAVE_LIBSOCKET 1
21225 LIBS="-lsocket $LIBS"
21231 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
21232 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
21233 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
21234 echo $ECHO_N "(cached) $ECHO_C" >&6
21236 ac_check_lib_save_LIBS=$LIBS
21237 LIBS="-lresolv $LIBS"
21238 cat >conftest.$ac_ext <<_ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h. */
21245 /* Override any GCC internal prototype to avoid an error.
21246 Use char because int might match the return type of a GCC
21247 builtin and then its argument prototype would still apply. */
21255 return inet_aton ();
21260 rm -f conftest.$ac_objext conftest$ac_exeext
21261 if { (ac_try="$ac_link"
21262 case "(($ac_try" in
21263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264 *) ac_try_echo=$ac_try;;
21266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267 (eval "$ac_link") 2>conftest.er1
21269 grep -v '^ *+' conftest.er1 >conftest.err
21271 cat conftest.err >&5
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); } && {
21274 test -z "$ac_c_werror_flag" ||
21275 test ! -s conftest.err
21276 } && test -s conftest$ac_exeext &&
21277 $as_test_x conftest$ac_exeext; then
21278 ac_cv_lib_resolv_inet_aton=yes
21280 echo "$as_me: failed program was:" >&5
21281 sed 's/^/| /' conftest.$ac_ext >&5
21283 ac_cv_lib_resolv_inet_aton=no
21286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21287 conftest$ac_exeext conftest.$ac_ext
21288 LIBS=$ac_check_lib_save_LIBS
21290 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
21291 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
21292 if test $ac_cv_lib_resolv_inet_aton = yes; then
21293 cat >>confdefs.h <<_ACEOF
21294 #define HAVE_LIBRESOLV 1
21297 LIBS="-lresolv $LIBS"
21303 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
21304 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
21305 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
21306 echo $ECHO_N "(cached) $ECHO_C" >&6
21308 ac_check_lib_save_LIBS=$LIBS
21310 cat >conftest.$ac_ext <<_ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h. */
21317 /* Override any GCC internal prototype to avoid an error.
21318 Use char because int might match the return type of a GCC
21319 builtin and then its argument prototype would still apply. */
21327 return inet_ntoa ();
21332 rm -f conftest.$ac_objext conftest$ac_exeext
21333 if { (ac_try="$ac_link"
21334 case "(($ac_try" in
21335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21336 *) ac_try_echo=$ac_try;;
21338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21339 (eval "$ac_link") 2>conftest.er1
21341 grep -v '^ *+' conftest.er1 >conftest.err
21343 cat conftest.err >&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); } && {
21346 test -z "$ac_c_werror_flag" ||
21347 test ! -s conftest.err
21348 } && test -s conftest$ac_exeext &&
21349 $as_test_x conftest$ac_exeext; then
21350 ac_cv_lib_nsl_inet_ntoa=yes
21352 echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21355 ac_cv_lib_nsl_inet_ntoa=no
21358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21359 conftest$ac_exeext conftest.$ac_ext
21360 LIBS=$ac_check_lib_save_LIBS
21362 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
21363 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
21364 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
21365 cat >>confdefs.h <<_ACEOF
21366 #define HAVE_LIBNSL 1
21375 if test "x$WITH_OPENSSL" = xyes; then
21377 if test "x$OPENSSL_LIB_DIR" != "x"; then
21378 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
21380 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21381 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
21382 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
21383 echo $ECHO_N "(cached) $ECHO_C" >&6
21385 ac_check_lib_save_LIBS=$LIBS
21386 LIBS="-lcrypto $LIBS"
21387 cat >conftest.$ac_ext <<_ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h. */
21394 /* Override any GCC internal prototype to avoid an error.
21395 Use char because int might match the return type of a GCC
21396 builtin and then its argument prototype would still apply. */
21409 rm -f conftest.$ac_objext conftest$ac_exeext
21410 if { (ac_try="$ac_link"
21411 case "(($ac_try" in
21412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413 *) ac_try_echo=$ac_try;;
21415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21416 (eval "$ac_link") 2>conftest.er1
21418 grep -v '^ *+' conftest.er1 >conftest.err
21420 cat conftest.err >&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } && {
21423 test -z "$ac_c_werror_flag" ||
21424 test ! -s conftest.err
21425 } && test -s conftest$ac_exeext &&
21426 $as_test_x conftest$ac_exeext; then
21427 ac_cv_lib_crypto_DH_new=yes
21429 echo "$as_me: failed program was:" >&5
21430 sed 's/^/| /' conftest.$ac_ext >&5
21432 ac_cv_lib_crypto_DH_new=no
21435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21436 conftest$ac_exeext conftest.$ac_ext
21437 LIBS=$ac_check_lib_save_LIBS
21439 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
21440 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
21441 if test $ac_cv_lib_crypto_DH_new = yes; then
21443 LIBS="-lcrypto $LIBS"
21445 cat >>confdefs.h <<\_ACEOF
21446 #define HAVE_LIBCRYPTO 1
21449 { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21450 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
21451 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
21452 echo $ECHO_N "(cached) $ECHO_C" >&6
21454 ac_check_lib_save_LIBS=$LIBS
21456 cat >conftest.$ac_ext <<_ACEOF
21459 cat confdefs.h >>conftest.$ac_ext
21460 cat >>conftest.$ac_ext <<_ACEOF
21461 /* end confdefs.h. */
21463 /* Override any GCC internal prototype to avoid an error.
21464 Use char because int might match the return type of a GCC
21465 builtin and then its argument prototype would still apply. */
21478 rm -f conftest.$ac_objext conftest$ac_exeext
21479 if { (ac_try="$ac_link"
21480 case "(($ac_try" in
21481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482 *) ac_try_echo=$ac_try;;
21484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21485 (eval "$ac_link") 2>conftest.er1
21487 grep -v '^ *+' conftest.er1 >conftest.err
21489 cat conftest.err >&5
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); } && {
21492 test -z "$ac_c_werror_flag" ||
21493 test ! -s conftest.err
21494 } && test -s conftest$ac_exeext &&
21495 $as_test_x conftest$ac_exeext; then
21496 ac_cv_lib_ssl_SSL_new=yes
21498 echo "$as_me: failed program was:" >&5
21499 sed 's/^/| /' conftest.$ac_ext >&5
21501 ac_cv_lib_ssl_SSL_new=no
21504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21505 conftest$ac_exeext conftest.$ac_ext
21506 LIBS=$ac_check_lib_save_LIBS
21508 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
21509 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
21510 if test $ac_cv_lib_ssl_SSL_new = yes; then
21513 cat >>confdefs.h <<\_ACEOF
21514 #define HAVE_LIBSSL 1
21517 if test "x$OPENSSL_LIB_DIR" != "x"; then
21518 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21520 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21531 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
21532 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
21533 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
21534 echo $ECHO_N "(cached) $ECHO_C" >&6
21536 ac_check_lib_save_LIBS=$LIBS
21537 LIBS="-lws2_32 $LIBS"
21538 cat >conftest.$ac_ext <<_ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h. */
21545 /* Override any GCC internal prototype to avoid an error.
21546 Use char because int might match the return type of a GCC
21547 builtin and then its argument prototype would still apply. */
21560 rm -f conftest.$ac_objext conftest$ac_exeext
21561 if { (ac_try="$ac_link"
21562 case "(($ac_try" in
21563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564 *) ac_try_echo=$ac_try;;
21566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21567 (eval "$ac_link") 2>conftest.er1
21569 grep -v '^ *+' conftest.er1 >conftest.err
21571 cat conftest.err >&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } && {
21574 test -z "$ac_c_werror_flag" ||
21575 test ! -s conftest.err
21576 } && test -s conftest$ac_exeext &&
21577 $as_test_x conftest$ac_exeext; then
21578 ac_cv_lib_ws2_32_htonl=yes
21580 echo "$as_me: failed program was:" >&5
21581 sed 's/^/| /' conftest.$ac_ext >&5
21583 ac_cv_lib_ws2_32_htonl=no
21586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21587 conftest$ac_exeext conftest.$ac_ext
21588 LIBS=$ac_check_lib_save_LIBS
21590 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21591 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21592 if test $ac_cv_lib_ws2_32_htonl = yes; then
21593 cat >>confdefs.h <<_ACEOF
21594 #define HAVE_LIBWS2_32 1
21597 LIBS="-lws2_32 $LIBS"
21603 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21604 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21605 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21606 echo $ECHO_N "(cached) $ECHO_C" >&6
21608 ac_check_lib_save_LIBS=$LIBS
21609 LIBS="-lpcap $LIBS"
21610 cat >conftest.$ac_ext <<_ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h. */
21617 /* Override any GCC internal prototype to avoid an error.
21618 Use char because int might match the return type of a GCC
21619 builtin and then its argument prototype would still apply. */
21623 char pcap_open_live ();
21627 return pcap_open_live ();
21632 rm -f conftest.$ac_objext conftest$ac_exeext
21633 if { (ac_try="$ac_link"
21634 case "(($ac_try" in
21635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21636 *) ac_try_echo=$ac_try;;
21638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21639 (eval "$ac_link") 2>conftest.er1
21641 grep -v '^ *+' conftest.er1 >conftest.err
21643 cat conftest.err >&5
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); } && {
21646 test -z "$ac_c_werror_flag" ||
21647 test ! -s conftest.err
21648 } && test -s conftest$ac_exeext &&
21649 $as_test_x conftest$ac_exeext; then
21650 ac_cv_lib_pcap_pcap_open_live=yes
21652 echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21655 ac_cv_lib_pcap_pcap_open_live=no
21658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21659 conftest$ac_exeext conftest.$ac_ext
21660 LIBS=$ac_check_lib_save_LIBS
21662 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21663 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21664 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21667 cat >>confdefs.h <<\_ACEOF
21668 #define HAVE_LIBPCAP 1
21673 { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21674 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21679 { echo "$as_me:$LINENO: checking for a readline compatible library" >&5
21680 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6; }
21681 if test "${ac_cv_lib_readline+set}" = set; then
21682 echo $ECHO_N "(cached) $ECHO_C" >&6
21686 for readline_lib in readline edit editline; do
21687 for termcap_lib in "" termcap curses ncurses; do
21688 if test -z "$termcap_lib"; then
21689 TRY_LIB="-l$readline_lib"
21691 TRY_LIB="-l$readline_lib -l$termcap_lib"
21693 LIBS="$ORIG_LIBS $TRY_LIB"
21694 cat >conftest.$ac_ext <<_ACEOF
21697 cat confdefs.h >>conftest.$ac_ext
21698 cat >>conftest.$ac_ext <<_ACEOF
21699 /* end confdefs.h. */
21701 /* Override any GCC internal prototype to avoid an error.
21702 Use char because int might match the return type of a GCC
21703 builtin and then its argument prototype would still apply. */
21711 return readline ();
21716 rm -f conftest.$ac_objext conftest$ac_exeext
21717 if { (ac_try="$ac_link"
21718 case "(($ac_try" in
21719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21720 *) ac_try_echo=$ac_try;;
21722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21723 (eval "$ac_link") 2>conftest.er1
21725 grep -v '^ *+' conftest.er1 >conftest.err
21727 cat conftest.err >&5
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); } && {
21730 test -z "$ac_c_werror_flag" ||
21731 test ! -s conftest.err
21732 } && test -s conftest$ac_exeext &&
21733 $as_test_x conftest$ac_exeext; then
21734 ac_cv_lib_readline="$TRY_LIB"
21736 echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21743 conftest$ac_exeext conftest.$ac_ext
21744 if test -n "$ac_cv_lib_readline"; then
21745 LIBREADLINE="$TRY_LIB"
21750 if test -n "$ac_cv_lib_readline"; then
21754 if test -z "$ac_cv_lib_readline"; then
21755 ac_cv_lib_readline="no"
21760 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
21761 echo "${ECHO_T}$ac_cv_lib_readline" >&6; }
21763 if test "$ac_cv_lib_readline" != "no"; then
21765 cat >>confdefs.h <<\_ACEOF
21766 #define HAVE_LIBREADLINE 1
21771 for ac_header in readline.h readline/readline.h
21773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21778 echo $ECHO_N "(cached) $ECHO_C" >&6
21780 ac_res=`eval echo '${'$as_ac_Header'}'`
21781 { echo "$as_me:$LINENO: result: $ac_res" >&5
21782 echo "${ECHO_T}$ac_res" >&6; }
21784 # Is the header compilable?
21785 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21787 cat >conftest.$ac_ext <<_ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h. */
21793 $ac_includes_default
21794 #include <$ac_header>
21796 rm -f conftest.$ac_objext
21797 if { (ac_try="$ac_compile"
21798 case "(($ac_try" in
21799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800 *) ac_try_echo=$ac_try;;
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803 (eval "$ac_compile") 2>conftest.er1
21805 grep -v '^ *+' conftest.er1 >conftest.err
21807 cat conftest.err >&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); } && {
21810 test -z "$ac_c_werror_flag" ||
21811 test ! -s conftest.err
21812 } && test -s conftest.$ac_objext; then
21813 ac_header_compiler=yes
21815 echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.$ac_ext >&5
21818 ac_header_compiler=no
21821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21823 echo "${ECHO_T}$ac_header_compiler" >&6; }
21825 # Is the header present?
21826 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21828 cat >conftest.$ac_ext <<_ACEOF
21831 cat confdefs.h >>conftest.$ac_ext
21832 cat >>conftest.$ac_ext <<_ACEOF
21833 /* end confdefs.h. */
21834 #include <$ac_header>
21836 if { (ac_try="$ac_cpp conftest.$ac_ext"
21837 case "(($ac_try" in
21838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21839 *) ac_try_echo=$ac_try;;
21841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21844 grep -v '^ *+' conftest.er1 >conftest.err
21846 cat conftest.err >&5
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); } >/dev/null && {
21849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21850 test ! -s conftest.err
21852 ac_header_preproc=yes
21854 echo "$as_me: failed program was:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21857 ac_header_preproc=no
21860 rm -f conftest.err conftest.$ac_ext
21861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21862 echo "${ECHO_T}$ac_header_preproc" >&6; }
21864 # So? What about this header?
21865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21871 ac_header_preproc=yes
21874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21881 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21892 echo $ECHO_N "(cached) $ECHO_C" >&6
21894 eval "$as_ac_Header=\$ac_header_preproc"
21896 ac_res=`eval echo '${'$as_ac_Header'}'`
21897 { echo "$as_me:$LINENO: result: $ac_res" >&5
21898 echo "${ECHO_T}$ac_res" >&6; }
21901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21902 cat >>confdefs.h <<_ACEOF
21903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21910 { echo "$as_me:$LINENO: checking whether readline supports history" >&5
21911 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6; }
21912 if test "${ac_cv_lib_readline_history+set}" = set; then
21913 echo $ECHO_N "(cached) $ECHO_C" >&6
21916 ac_cv_lib_readline_history="no"
21917 cat >conftest.$ac_ext <<_ACEOF
21920 cat confdefs.h >>conftest.$ac_ext
21921 cat >>conftest.$ac_ext <<_ACEOF
21922 /* end confdefs.h. */
21924 /* Override any GCC internal prototype to avoid an error.
21925 Use char because int might match the return type of a GCC
21926 builtin and then its argument prototype would still apply. */
21930 char add_history ();
21934 return add_history ();
21939 rm -f conftest.$ac_objext conftest$ac_exeext
21940 if { (ac_try="$ac_link"
21941 case "(($ac_try" in
21942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21943 *) ac_try_echo=$ac_try;;
21945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21946 (eval "$ac_link") 2>conftest.er1
21948 grep -v '^ *+' conftest.er1 >conftest.err
21950 cat conftest.err >&5
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); } && {
21953 test -z "$ac_c_werror_flag" ||
21954 test ! -s conftest.err
21955 } && test -s conftest$ac_exeext &&
21956 $as_test_x conftest$ac_exeext; then
21957 ac_cv_lib_readline_history="yes"
21959 echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21966 conftest$ac_exeext conftest.$ac_ext
21969 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
21970 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6; }
21971 if test "$ac_cv_lib_readline_history" = "yes"; then
21973 cat >>confdefs.h <<\_ACEOF
21974 #define HAVE_READLINE_HISTORY 1
21979 for ac_header in history.h readline/history.h
21981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21986 echo $ECHO_N "(cached) $ECHO_C" >&6
21988 ac_res=`eval echo '${'$as_ac_Header'}'`
21989 { echo "$as_me:$LINENO: result: $ac_res" >&5
21990 echo "${ECHO_T}$ac_res" >&6; }
21992 # Is the header compilable?
21993 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21995 cat >conftest.$ac_ext <<_ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22001 $ac_includes_default
22002 #include <$ac_header>
22004 rm -f conftest.$ac_objext
22005 if { (ac_try="$ac_compile"
22006 case "(($ac_try" in
22007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22008 *) ac_try_echo=$ac_try;;
22010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22011 (eval "$ac_compile") 2>conftest.er1
22013 grep -v '^ *+' conftest.er1 >conftest.err
22015 cat conftest.err >&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); } && {
22018 test -z "$ac_c_werror_flag" ||
22019 test ! -s conftest.err
22020 } && test -s conftest.$ac_objext; then
22021 ac_header_compiler=yes
22023 echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22026 ac_header_compiler=no
22029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22031 echo "${ECHO_T}$ac_header_compiler" >&6; }
22033 # Is the header present?
22034 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22036 cat >conftest.$ac_ext <<_ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h. */
22042 #include <$ac_header>
22044 if { (ac_try="$ac_cpp conftest.$ac_ext"
22045 case "(($ac_try" in
22046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047 *) ac_try_echo=$ac_try;;
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22052 grep -v '^ *+' conftest.er1 >conftest.err
22054 cat conftest.err >&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); } >/dev/null && {
22057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22058 test ! -s conftest.err
22060 ac_header_preproc=yes
22062 echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22065 ac_header_preproc=no
22068 rm -f conftest.err conftest.$ac_ext
22069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22070 echo "${ECHO_T}$ac_header_preproc" >&6; }
22072 # So? What about this header?
22073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22079 ac_header_preproc=yes
22082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22085 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22086 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22087 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22088 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22089 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22092 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22093 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22100 echo $ECHO_N "(cached) $ECHO_C" >&6
22102 eval "$as_ac_Header=\$ac_header_preproc"
22104 ac_res=`eval echo '${'$as_ac_Header'}'`
22105 { echo "$as_me:$LINENO: result: $ac_res" >&5
22106 echo "${ECHO_T}$ac_res" >&6; }
22109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22110 cat >>confdefs.h <<_ACEOF
22111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22125 CFLAGS="$CFLAGS -D_ALL_SOURCE"
22128 CFLAGS="$CFLAGS -DDARWIN"
22129 LIBS="-framework DirectoryService $LIBS"
22138 ac_header_dirent=no
22139 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22140 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22141 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22142 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22144 echo $ECHO_N "(cached) $ECHO_C" >&6
22146 cat >conftest.$ac_ext <<_ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h. */
22152 #include <sys/types.h>
22164 rm -f conftest.$ac_objext
22165 if { (ac_try="$ac_compile"
22166 case "(($ac_try" in
22167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22168 *) ac_try_echo=$ac_try;;
22170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22171 (eval "$ac_compile") 2>conftest.er1
22173 grep -v '^ *+' conftest.er1 >conftest.err
22175 cat conftest.err >&5
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); } && {
22178 test -z "$ac_c_werror_flag" ||
22179 test ! -s conftest.err
22180 } && test -s conftest.$ac_objext; then
22181 eval "$as_ac_Header=yes"
22183 echo "$as_me: failed program was:" >&5
22184 sed 's/^/| /' conftest.$ac_ext >&5
22186 eval "$as_ac_Header=no"
22189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22191 ac_res=`eval echo '${'$as_ac_Header'}'`
22192 { echo "$as_me:$LINENO: result: $ac_res" >&5
22193 echo "${ECHO_T}$ac_res" >&6; }
22194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22195 cat >>confdefs.h <<_ACEOF
22196 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22199 ac_header_dirent=$ac_hdr; break
22203 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22204 if test $ac_header_dirent = dirent.h; then
22205 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22206 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22207 if test "${ac_cv_search_opendir+set}" = set; then
22208 echo $ECHO_N "(cached) $ECHO_C" >&6
22210 ac_func_search_save_LIBS=$LIBS
22211 cat >conftest.$ac_ext <<_ACEOF
22214 cat confdefs.h >>conftest.$ac_ext
22215 cat >>conftest.$ac_ext <<_ACEOF
22216 /* end confdefs.h. */
22218 /* Override any GCC internal prototype to avoid an error.
22219 Use char because int might match the return type of a GCC
22220 builtin and then its argument prototype would still apply. */
22233 for ac_lib in '' dir; do
22234 if test -z "$ac_lib"; then
22235 ac_res="none required"
22238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22240 rm -f conftest.$ac_objext conftest$ac_exeext
22241 if { (ac_try="$ac_link"
22242 case "(($ac_try" in
22243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22244 *) ac_try_echo=$ac_try;;
22246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22247 (eval "$ac_link") 2>conftest.er1
22249 grep -v '^ *+' conftest.er1 >conftest.err
22251 cat conftest.err >&5
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); } && {
22254 test -z "$ac_c_werror_flag" ||
22255 test ! -s conftest.err
22256 } && test -s conftest$ac_exeext &&
22257 $as_test_x conftest$ac_exeext; then
22258 ac_cv_search_opendir=$ac_res
22260 echo "$as_me: failed program was:" >&5
22261 sed 's/^/| /' conftest.$ac_ext >&5
22266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22268 if test "${ac_cv_search_opendir+set}" = set; then
22272 if test "${ac_cv_search_opendir+set}" = set; then
22275 ac_cv_search_opendir=no
22277 rm conftest.$ac_ext
22278 LIBS=$ac_func_search_save_LIBS
22280 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22281 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22282 ac_res=$ac_cv_search_opendir
22283 if test "$ac_res" != no; then
22284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22289 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22290 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22291 if test "${ac_cv_search_opendir+set}" = set; then
22292 echo $ECHO_N "(cached) $ECHO_C" >&6
22294 ac_func_search_save_LIBS=$LIBS
22295 cat >conftest.$ac_ext <<_ACEOF
22298 cat confdefs.h >>conftest.$ac_ext
22299 cat >>conftest.$ac_ext <<_ACEOF
22300 /* end confdefs.h. */
22302 /* Override any GCC internal prototype to avoid an error.
22303 Use char because int might match the return type of a GCC
22304 builtin and then its argument prototype would still apply. */
22317 for ac_lib in '' x; do
22318 if test -z "$ac_lib"; then
22319 ac_res="none required"
22322 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22324 rm -f conftest.$ac_objext conftest$ac_exeext
22325 if { (ac_try="$ac_link"
22326 case "(($ac_try" in
22327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22328 *) ac_try_echo=$ac_try;;
22330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22331 (eval "$ac_link") 2>conftest.er1
22333 grep -v '^ *+' conftest.er1 >conftest.err
22335 cat conftest.err >&5
22336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337 (exit $ac_status); } && {
22338 test -z "$ac_c_werror_flag" ||
22339 test ! -s conftest.err
22340 } && test -s conftest$ac_exeext &&
22341 $as_test_x conftest$ac_exeext; then
22342 ac_cv_search_opendir=$ac_res
22344 echo "$as_me: failed program was:" >&5
22345 sed 's/^/| /' conftest.$ac_ext >&5
22350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22352 if test "${ac_cv_search_opendir+set}" = set; then
22356 if test "${ac_cv_search_opendir+set}" = set; then
22359 ac_cv_search_opendir=no
22361 rm conftest.$ac_ext
22362 LIBS=$ac_func_search_save_LIBS
22364 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22365 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22366 ac_res=$ac_cv_search_opendir
22367 if test "$ac_res" != no; then
22368 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22374 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22375 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22376 if test "${ac_cv_header_stdc+set}" = set; then
22377 echo $ECHO_N "(cached) $ECHO_C" >&6
22379 cat >conftest.$ac_ext <<_ACEOF
22382 cat confdefs.h >>conftest.$ac_ext
22383 cat >>conftest.$ac_ext <<_ACEOF
22384 /* end confdefs.h. */
22385 #include <stdlib.h>
22386 #include <stdarg.h>
22387 #include <string.h>
22398 rm -f conftest.$ac_objext
22399 if { (ac_try="$ac_compile"
22400 case "(($ac_try" in
22401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22402 *) ac_try_echo=$ac_try;;
22404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22405 (eval "$ac_compile") 2>conftest.er1
22407 grep -v '^ *+' conftest.er1 >conftest.err
22409 cat conftest.err >&5
22410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411 (exit $ac_status); } && {
22412 test -z "$ac_c_werror_flag" ||
22413 test ! -s conftest.err
22414 } && test -s conftest.$ac_objext; then
22415 ac_cv_header_stdc=yes
22417 echo "$as_me: failed program was:" >&5
22418 sed 's/^/| /' conftest.$ac_ext >&5
22420 ac_cv_header_stdc=no
22423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22425 if test $ac_cv_header_stdc = yes; then
22426 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22427 cat >conftest.$ac_ext <<_ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h. */
22433 #include <string.h>
22436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22437 $EGREP "memchr" >/dev/null 2>&1; then
22440 ac_cv_header_stdc=no
22446 if test $ac_cv_header_stdc = yes; then
22447 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22448 cat >conftest.$ac_ext <<_ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h. */
22454 #include <stdlib.h>
22457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22458 $EGREP "free" >/dev/null 2>&1; then
22461 ac_cv_header_stdc=no
22467 if test $ac_cv_header_stdc = yes; then
22468 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22469 if test "$cross_compiling" = yes; then
22472 cat >conftest.$ac_ext <<_ACEOF
22475 cat confdefs.h >>conftest.$ac_ext
22476 cat >>conftest.$ac_ext <<_ACEOF
22477 /* end confdefs.h. */
22479 #include <stdlib.h>
22480 #if ((' ' & 0x0FF) == 0x020)
22481 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22482 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22484 # define ISLOWER(c) \
22485 (('a' <= (c) && (c) <= 'i') \
22486 || ('j' <= (c) && (c) <= 'r') \
22487 || ('s' <= (c) && (c) <= 'z'))
22488 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22491 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22496 for (i = 0; i < 256; i++)
22497 if (XOR (islower (i), ISLOWER (i))
22498 || toupper (i) != TOUPPER (i))
22503 rm -f conftest$ac_exeext
22504 if { (ac_try="$ac_link"
22505 case "(($ac_try" in
22506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22507 *) ac_try_echo=$ac_try;;
22509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22510 (eval "$ac_link") 2>&5
22512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22514 { (case "(($ac_try" in
22515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516 *) ac_try_echo=$ac_try;;
22518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22519 (eval "$ac_try") 2>&5
22521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 (exit $ac_status); }; }; then
22525 echo "$as_me: program exited with status $ac_status" >&5
22526 echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22529 ( exit $ac_status )
22530 ac_cv_header_stdc=no
22532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22538 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22539 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22540 if test $ac_cv_header_stdc = yes; then
22542 cat >>confdefs.h <<\_ACEOF
22543 #define STDC_HEADERS 1
22548 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22549 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22550 if test "${ac_cv_header_time+set}" = set; then
22551 echo $ECHO_N "(cached) $ECHO_C" >&6
22553 cat >conftest.$ac_ext <<_ACEOF
22556 cat confdefs.h >>conftest.$ac_ext
22557 cat >>conftest.$ac_ext <<_ACEOF
22558 /* end confdefs.h. */
22559 #include <sys/types.h>
22560 #include <sys/time.h>
22566 if ((struct tm *) 0)
22572 rm -f conftest.$ac_objext
22573 if { (ac_try="$ac_compile"
22574 case "(($ac_try" in
22575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22576 *) ac_try_echo=$ac_try;;
22578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22579 (eval "$ac_compile") 2>conftest.er1
22581 grep -v '^ *+' conftest.er1 >conftest.err
22583 cat conftest.err >&5
22584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585 (exit $ac_status); } && {
22586 test -z "$ac_c_werror_flag" ||
22587 test ! -s conftest.err
22588 } && test -s conftest.$ac_objext; then
22589 ac_cv_header_time=yes
22591 echo "$as_me: failed program was:" >&5
22592 sed 's/^/| /' conftest.$ac_ext >&5
22594 ac_cv_header_time=no
22597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22599 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22600 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22601 if test $ac_cv_header_time = yes; then
22603 cat >>confdefs.h <<\_ACEOF
22604 #define TIME_WITH_SYS_TIME 1
22609 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22610 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22611 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22612 echo $ECHO_N "(cached) $ECHO_C" >&6
22614 cat >conftest.$ac_ext <<_ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h. */
22620 #include <sys/types.h>
22621 #include <sys/wait.h>
22622 #ifndef WEXITSTATUS
22623 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22626 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22634 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22639 rm -f conftest.$ac_objext
22640 if { (ac_try="$ac_compile"
22641 case "(($ac_try" in
22642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22643 *) ac_try_echo=$ac_try;;
22645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22646 (eval "$ac_compile") 2>conftest.er1
22648 grep -v '^ *+' conftest.er1 >conftest.err
22650 cat conftest.err >&5
22651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652 (exit $ac_status); } && {
22653 test -z "$ac_c_werror_flag" ||
22654 test ! -s conftest.err
22655 } && test -s conftest.$ac_objext; then
22656 ac_cv_header_sys_wait_h=yes
22658 echo "$as_me: failed program was:" >&5
22659 sed 's/^/| /' conftest.$ac_ext >&5
22661 ac_cv_header_sys_wait_h=no
22664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22666 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22667 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22668 if test $ac_cv_header_sys_wait_h = yes; then
22670 cat >>confdefs.h <<\_ACEOF
22671 #define HAVE_SYS_WAIT_H 1
22750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22755 echo $ECHO_N "(cached) $ECHO_C" >&6
22757 ac_res=`eval echo '${'$as_ac_Header'}'`
22758 { echo "$as_me:$LINENO: result: $ac_res" >&5
22759 echo "${ECHO_T}$ac_res" >&6; }
22761 # Is the header compilable?
22762 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22764 cat >conftest.$ac_ext <<_ACEOF
22767 cat confdefs.h >>conftest.$ac_ext
22768 cat >>conftest.$ac_ext <<_ACEOF
22769 /* end confdefs.h. */
22770 $ac_includes_default
22771 #include <$ac_header>
22773 rm -f conftest.$ac_objext
22774 if { (ac_try="$ac_compile"
22775 case "(($ac_try" in
22776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22777 *) ac_try_echo=$ac_try;;
22779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22780 (eval "$ac_compile") 2>conftest.er1
22782 grep -v '^ *+' conftest.er1 >conftest.err
22784 cat conftest.err >&5
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); } && {
22787 test -z "$ac_c_werror_flag" ||
22788 test ! -s conftest.err
22789 } && test -s conftest.$ac_objext; then
22790 ac_header_compiler=yes
22792 echo "$as_me: failed program was:" >&5
22793 sed 's/^/| /' conftest.$ac_ext >&5
22795 ac_header_compiler=no
22798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22800 echo "${ECHO_T}$ac_header_compiler" >&6; }
22802 # Is the header present?
22803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22805 cat >conftest.$ac_ext <<_ACEOF
22808 cat confdefs.h >>conftest.$ac_ext
22809 cat >>conftest.$ac_ext <<_ACEOF
22810 /* end confdefs.h. */
22811 #include <$ac_header>
22813 if { (ac_try="$ac_cpp conftest.$ac_ext"
22814 case "(($ac_try" in
22815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816 *) ac_try_echo=$ac_try;;
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22821 grep -v '^ *+' conftest.er1 >conftest.err
22823 cat conftest.err >&5
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); } >/dev/null && {
22826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22827 test ! -s conftest.err
22829 ac_header_preproc=yes
22831 echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22834 ac_header_preproc=no
22837 rm -f conftest.err conftest.$ac_ext
22838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22839 echo "${ECHO_T}$ac_header_preproc" >&6; }
22841 # So? What about this header?
22842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22848 ac_header_preproc=yes
22851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22869 echo $ECHO_N "(cached) $ECHO_C" >&6
22871 eval "$as_ac_Header=\$ac_header_preproc"
22873 ac_res=`eval echo '${'$as_ac_Header'}'`
22874 { echo "$as_me:$LINENO: result: $ac_res" >&5
22875 echo "${ECHO_T}$ac_res" >&6; }
22878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22879 cat >>confdefs.h <<_ACEOF
22880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22889 for ac_header in net/if.h
22891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22895 echo $ECHO_N "(cached) $ECHO_C" >&6
22897 cat >conftest.$ac_ext <<_ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h. */
22903 #ifdef HAVE_SYS_SOCKET_H
22904 # include <sys/socket.h>
22908 #include <$ac_header>
22910 rm -f conftest.$ac_objext
22911 if { (ac_try="$ac_compile"
22912 case "(($ac_try" in
22913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22914 *) ac_try_echo=$ac_try;;
22916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22917 (eval "$ac_compile") 2>conftest.er1
22919 grep -v '^ *+' conftest.er1 >conftest.err
22921 cat conftest.err >&5
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); } && {
22924 test -z "$ac_c_werror_flag" ||
22925 test ! -s conftest.err
22926 } && test -s conftest.$ac_objext; then
22927 eval "$as_ac_Header=yes"
22929 echo "$as_me: failed program was:" >&5
22930 sed 's/^/| /' conftest.$ac_ext >&5
22932 eval "$as_ac_Header=no"
22935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22937 ac_res=`eval echo '${'$as_ac_Header'}'`
22938 { echo "$as_me:$LINENO: result: $ac_res" >&5
22939 echo "${ECHO_T}$ac_res" >&6; }
22940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22941 cat >>confdefs.h <<_ACEOF
22942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22951 if test "${ac_cv_header_regex_h+set}" = set; then
22952 { echo "$as_me:$LINENO: checking for regex.h" >&5
22953 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22954 if test "${ac_cv_header_regex_h+set}" = set; then
22955 echo $ECHO_N "(cached) $ECHO_C" >&6
22957 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22958 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22960 # Is the header compilable?
22961 { echo "$as_me:$LINENO: checking regex.h usability" >&5
22962 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
22963 cat >conftest.$ac_ext <<_ACEOF
22966 cat confdefs.h >>conftest.$ac_ext
22967 cat >>conftest.$ac_ext <<_ACEOF
22968 /* end confdefs.h. */
22969 $ac_includes_default
22972 rm -f conftest.$ac_objext
22973 if { (ac_try="$ac_compile"
22974 case "(($ac_try" in
22975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22976 *) ac_try_echo=$ac_try;;
22978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22979 (eval "$ac_compile") 2>conftest.er1
22981 grep -v '^ *+' conftest.er1 >conftest.err
22983 cat conftest.err >&5
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); } && {
22986 test -z "$ac_c_werror_flag" ||
22987 test ! -s conftest.err
22988 } && test -s conftest.$ac_objext; then
22989 ac_header_compiler=yes
22991 echo "$as_me: failed program was:" >&5
22992 sed 's/^/| /' conftest.$ac_ext >&5
22994 ac_header_compiler=no
22997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22999 echo "${ECHO_T}$ac_header_compiler" >&6; }
23001 # Is the header present?
23002 { echo "$as_me:$LINENO: checking regex.h presence" >&5
23003 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
23004 cat >conftest.$ac_ext <<_ACEOF
23007 cat confdefs.h >>conftest.$ac_ext
23008 cat >>conftest.$ac_ext <<_ACEOF
23009 /* end confdefs.h. */
23012 if { (ac_try="$ac_cpp conftest.$ac_ext"
23013 case "(($ac_try" in
23014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23015 *) ac_try_echo=$ac_try;;
23017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23020 grep -v '^ *+' conftest.er1 >conftest.err
23022 cat conftest.err >&5
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); } >/dev/null && {
23025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23026 test ! -s conftest.err
23028 ac_header_preproc=yes
23030 echo "$as_me: failed program was:" >&5
23031 sed 's/^/| /' conftest.$ac_ext >&5
23033 ac_header_preproc=no
23036 rm -f conftest.err conftest.$ac_ext
23037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23038 echo "${ECHO_T}$ac_header_preproc" >&6; }
23040 # So? What about this header?
23041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23043 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23044 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23045 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23046 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23047 ac_header_preproc=yes
23050 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23051 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
23052 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
23053 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
23054 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23055 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23056 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
23057 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
23058 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23059 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
23060 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23061 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
23065 { echo "$as_me:$LINENO: checking for regex.h" >&5
23066 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
23067 if test "${ac_cv_header_regex_h+set}" = set; then
23068 echo $ECHO_N "(cached) $ECHO_C" >&6
23070 ac_cv_header_regex_h=$ac_header_preproc
23072 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23073 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
23076 if test $ac_cv_header_regex_h = yes; then
23078 cat >>confdefs.h <<\_ACEOF
23079 #define HAVE_REGEX_H
23085 if test "x$ac_cv_header_regex_h" = "xyes"; then
23088 cat >conftest.$ac_ext <<_ACEOF
23091 cat confdefs.h >>conftest.$ac_ext
23092 cat >>conftest.$ac_ext <<_ACEOF
23093 /* end confdefs.h. */
23095 #ifdef REG_EXTENDED
23100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23101 $EGREP "yes" >/dev/null 2>&1; then
23103 cat >>confdefs.h <<\_ACEOF
23104 #define HAVE_REG_EXTENDED
23114 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
23117 cat >>confdefs.h <<\_ACEOF
23123 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
23126 cat >>confdefs.h <<\_ACEOF
23132 OPENSSL_INCLUDE="-DNO_OPENSSL"
23133 if test "x$WITH_OPENSSL" = xyes; then
23134 if test "x$OPENSSL_LIBS" = "x"; then
23135 { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
23136 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
23138 old_CPPFLAGS=$CPPFLAGS
23139 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23140 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
23142 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
23155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23160 echo $ECHO_N "(cached) $ECHO_C" >&6
23162 ac_res=`eval echo '${'$as_ac_Header'}'`
23163 { echo "$as_me:$LINENO: result: $ac_res" >&5
23164 echo "${ECHO_T}$ac_res" >&6; }
23166 # Is the header compilable?
23167 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23169 cat >conftest.$ac_ext <<_ACEOF
23172 cat confdefs.h >>conftest.$ac_ext
23173 cat >>conftest.$ac_ext <<_ACEOF
23174 /* end confdefs.h. */
23175 $ac_includes_default
23176 #include <$ac_header>
23178 rm -f conftest.$ac_objext
23179 if { (ac_try="$ac_compile"
23180 case "(($ac_try" in
23181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23182 *) ac_try_echo=$ac_try;;
23184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23185 (eval "$ac_compile") 2>conftest.er1
23187 grep -v '^ *+' conftest.er1 >conftest.err
23189 cat conftest.err >&5
23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191 (exit $ac_status); } && {
23192 test -z "$ac_c_werror_flag" ||
23193 test ! -s conftest.err
23194 } && test -s conftest.$ac_objext; then
23195 ac_header_compiler=yes
23197 echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23200 ac_header_compiler=no
23203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23205 echo "${ECHO_T}$ac_header_compiler" >&6; }
23207 # Is the header present?
23208 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23210 cat >conftest.$ac_ext <<_ACEOF
23213 cat confdefs.h >>conftest.$ac_ext
23214 cat >>conftest.$ac_ext <<_ACEOF
23215 /* end confdefs.h. */
23216 #include <$ac_header>
23218 if { (ac_try="$ac_cpp conftest.$ac_ext"
23219 case "(($ac_try" in
23220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221 *) ac_try_echo=$ac_try;;
23223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23226 grep -v '^ *+' conftest.er1 >conftest.err
23228 cat conftest.err >&5
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); } >/dev/null && {
23231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23232 test ! -s conftest.err
23234 ac_header_preproc=yes
23236 echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23239 ac_header_preproc=no
23242 rm -f conftest.err conftest.$ac_ext
23243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23244 echo "${ECHO_T}$ac_header_preproc" >&6; }
23246 # So? What about this header?
23247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23253 ac_header_preproc=yes
23256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23263 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23274 echo $ECHO_N "(cached) $ECHO_C" >&6
23276 eval "$as_ac_Header=\$ac_header_preproc"
23278 ac_res=`eval echo '${'$as_ac_Header'}'`
23279 { echo "$as_me:$LINENO: result: $ac_res" >&5
23280 echo "${ECHO_T}$ac_res" >&6; }
23283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23284 cat >>confdefs.h <<_ACEOF
23285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23295 if test "x$OPENSSL_LIBS" != "x"; then
23296 { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
23297 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
23298 cat >conftest.$ac_ext <<_ACEOF
23301 cat confdefs.h >>conftest.$ac_ext
23302 cat >>conftest.$ac_ext <<_ACEOF
23303 /* end confdefs.h. */
23304 #include <openssl/crypto.h>
23305 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
23310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23311 $EGREP "yes" >/dev/null 2>&1; then
23316 if test "x$goodssl" != "xyes"; then
23317 { echo "$as_me:$LINENO: result: no" >&5
23318 echo "${ECHO_T}no" >&6; }
23321 { echo "$as_me:$LINENO: result: yes" >&5
23322 echo "${ECHO_T}yes" >&6; }
23323 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23324 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
23326 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
23330 CPPFLAGS=$old_CPPFLAGS
23335 export OPENSSL_LIBS
23337 if test "x$PCAP_LIBS" = x; then
23338 { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
23339 echo "$as_me: skipping test for pcap.h." >&6;}
23341 if test "${ac_cv_header_pcap_h+set}" = set; then
23342 { echo "$as_me:$LINENO: checking for pcap.h" >&5
23343 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23344 if test "${ac_cv_header_pcap_h+set}" = set; then
23345 echo $ECHO_N "(cached) $ECHO_C" >&6
23347 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23348 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23350 # Is the header compilable?
23351 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
23352 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
23353 cat >conftest.$ac_ext <<_ACEOF
23356 cat confdefs.h >>conftest.$ac_ext
23357 cat >>conftest.$ac_ext <<_ACEOF
23358 /* end confdefs.h. */
23359 $ac_includes_default
23362 rm -f conftest.$ac_objext
23363 if { (ac_try="$ac_compile"
23364 case "(($ac_try" in
23365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23366 *) ac_try_echo=$ac_try;;
23368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23369 (eval "$ac_compile") 2>conftest.er1
23371 grep -v '^ *+' conftest.er1 >conftest.err
23373 cat conftest.err >&5
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); } && {
23376 test -z "$ac_c_werror_flag" ||
23377 test ! -s conftest.err
23378 } && test -s conftest.$ac_objext; then
23379 ac_header_compiler=yes
23381 echo "$as_me: failed program was:" >&5
23382 sed 's/^/| /' conftest.$ac_ext >&5
23384 ac_header_compiler=no
23387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23389 echo "${ECHO_T}$ac_header_compiler" >&6; }
23391 # Is the header present?
23392 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
23393 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
23394 cat >conftest.$ac_ext <<_ACEOF
23397 cat confdefs.h >>conftest.$ac_ext
23398 cat >>conftest.$ac_ext <<_ACEOF
23399 /* end confdefs.h. */
23402 if { (ac_try="$ac_cpp conftest.$ac_ext"
23403 case "(($ac_try" in
23404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405 *) ac_try_echo=$ac_try;;
23407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23410 grep -v '^ *+' conftest.er1 >conftest.err
23412 cat conftest.err >&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } >/dev/null && {
23415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23416 test ! -s conftest.err
23418 ac_header_preproc=yes
23420 echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23423 ac_header_preproc=no
23426 rm -f conftest.err conftest.$ac_ext
23427 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23428 echo "${ECHO_T}$ac_header_preproc" >&6; }
23430 # So? What about this header?
23431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23433 { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
23434 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23435 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
23436 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
23437 ac_header_preproc=yes
23440 { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
23441 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
23442 { echo "$as_me:$LINENO: WARNING: pcap.h: check for missing prerequisite headers?" >&5
23443 echo "$as_me: WARNING: pcap.h: check for missing prerequisite headers?" >&2;}
23444 { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
23445 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
23446 { echo "$as_me:$LINENO: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&5
23447 echo "$as_me: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
23448 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
23449 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
23450 { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
23451 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
23455 { echo "$as_me:$LINENO: checking for pcap.h" >&5
23456 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23457 if test "${ac_cv_header_pcap_h+set}" = set; then
23458 echo $ECHO_N "(cached) $ECHO_C" >&6
23460 ac_cv_header_pcap_h=$ac_header_preproc
23462 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23463 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23466 if test $ac_cv_header_pcap_h = yes; then
23468 cat >>confdefs.h <<\_ACEOF
23469 #define HAVE_PCAP_H 1
23474 { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
23475 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
23484 { echo "$as_me:$LINENO: checking for off_t" >&5
23485 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23486 if test "${ac_cv_type_off_t+set}" = set; then
23487 echo $ECHO_N "(cached) $ECHO_C" >&6
23489 cat >conftest.$ac_ext <<_ACEOF
23492 cat confdefs.h >>conftest.$ac_ext
23493 cat >>conftest.$ac_ext <<_ACEOF
23494 /* end confdefs.h. */
23495 $ac_includes_default
23496 typedef off_t ac__type_new_;
23500 if ((ac__type_new_ *) 0)
23502 if (sizeof (ac__type_new_))
23508 rm -f conftest.$ac_objext
23509 if { (ac_try="$ac_compile"
23510 case "(($ac_try" in
23511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23512 *) ac_try_echo=$ac_try;;
23514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23515 (eval "$ac_compile") 2>conftest.er1
23517 grep -v '^ *+' conftest.er1 >conftest.err
23519 cat conftest.err >&5
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); } && {
23522 test -z "$ac_c_werror_flag" ||
23523 test ! -s conftest.err
23524 } && test -s conftest.$ac_objext; then
23525 ac_cv_type_off_t=yes
23527 echo "$as_me: failed program was:" >&5
23528 sed 's/^/| /' conftest.$ac_ext >&5
23530 ac_cv_type_off_t=no
23533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23535 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23536 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23537 if test $ac_cv_type_off_t = yes; then
23541 cat >>confdefs.h <<_ACEOF
23542 #define off_t long int
23547 { echo "$as_me:$LINENO: checking for pid_t" >&5
23548 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23549 if test "${ac_cv_type_pid_t+set}" = set; then
23550 echo $ECHO_N "(cached) $ECHO_C" >&6
23552 cat >conftest.$ac_ext <<_ACEOF
23555 cat confdefs.h >>conftest.$ac_ext
23556 cat >>conftest.$ac_ext <<_ACEOF
23557 /* end confdefs.h. */
23558 $ac_includes_default
23559 typedef pid_t ac__type_new_;
23563 if ((ac__type_new_ *) 0)
23565 if (sizeof (ac__type_new_))
23571 rm -f conftest.$ac_objext
23572 if { (ac_try="$ac_compile"
23573 case "(($ac_try" in
23574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23575 *) ac_try_echo=$ac_try;;
23577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23578 (eval "$ac_compile") 2>conftest.er1
23580 grep -v '^ *+' conftest.er1 >conftest.err
23582 cat conftest.err >&5
23583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584 (exit $ac_status); } && {
23585 test -z "$ac_c_werror_flag" ||
23586 test ! -s conftest.err
23587 } && test -s conftest.$ac_objext; then
23588 ac_cv_type_pid_t=yes
23590 echo "$as_me: failed program was:" >&5
23591 sed 's/^/| /' conftest.$ac_ext >&5
23593 ac_cv_type_pid_t=no
23596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23598 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23599 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23600 if test $ac_cv_type_pid_t = yes; then
23604 cat >>confdefs.h <<_ACEOF
23610 { echo "$as_me:$LINENO: checking for size_t" >&5
23611 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23612 if test "${ac_cv_type_size_t+set}" = set; then
23613 echo $ECHO_N "(cached) $ECHO_C" >&6
23615 cat >conftest.$ac_ext <<_ACEOF
23618 cat confdefs.h >>conftest.$ac_ext
23619 cat >>conftest.$ac_ext <<_ACEOF
23620 /* end confdefs.h. */
23621 $ac_includes_default
23622 typedef size_t ac__type_new_;
23626 if ((ac__type_new_ *) 0)
23628 if (sizeof (ac__type_new_))
23634 rm -f conftest.$ac_objext
23635 if { (ac_try="$ac_compile"
23636 case "(($ac_try" in
23637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23638 *) ac_try_echo=$ac_try;;
23640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23641 (eval "$ac_compile") 2>conftest.er1
23643 grep -v '^ *+' conftest.er1 >conftest.err
23645 cat conftest.err >&5
23646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647 (exit $ac_status); } && {
23648 test -z "$ac_c_werror_flag" ||
23649 test ! -s conftest.err
23650 } && test -s conftest.$ac_objext; then
23651 ac_cv_type_size_t=yes
23653 echo "$as_me: failed program was:" >&5
23654 sed 's/^/| /' conftest.$ac_ext >&5
23656 ac_cv_type_size_t=no
23659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23661 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23662 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23663 if test $ac_cv_type_size_t = yes; then
23667 cat >>confdefs.h <<_ACEOF
23668 #define size_t unsigned int
23673 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23674 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23675 if test "${ac_cv_type_uid_t+set}" = set; then
23676 echo $ECHO_N "(cached) $ECHO_C" >&6
23678 cat >conftest.$ac_ext <<_ACEOF
23681 cat confdefs.h >>conftest.$ac_ext
23682 cat >>conftest.$ac_ext <<_ACEOF
23683 /* end confdefs.h. */
23684 #include <sys/types.h>
23687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23688 $EGREP "uid_t" >/dev/null 2>&1; then
23689 ac_cv_type_uid_t=yes
23691 ac_cv_type_uid_t=no
23696 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23697 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23698 if test $ac_cv_type_uid_t = no; then
23700 cat >>confdefs.h <<\_ACEOF
23705 cat >>confdefs.h <<\_ACEOF
23713 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23714 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23715 if test "${ac_cv_type_socklen_t+set}" = set; then
23716 echo $ECHO_N "(cached) $ECHO_C" >&6
23718 ac_cv_type_socklen_t=no
23719 cat >conftest.$ac_ext <<_ACEOF
23722 cat confdefs.h >>conftest.$ac_ext
23723 cat >>conftest.$ac_ext <<_ACEOF
23724 /* end confdefs.h. */
23725 #ifdef HAVE_SYS_TYPES_H
23726 #include <sys/types.h>
23728 #ifdef HAVE_SYS_SOCKET_H
23729 #include <sys/socket.h>
23740 rm -f conftest.$ac_objext
23741 if { (ac_try="$ac_compile"
23742 case "(($ac_try" in
23743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23744 *) ac_try_echo=$ac_try;;
23746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23747 (eval "$ac_compile") 2>conftest.er1
23749 grep -v '^ *+' conftest.er1 >conftest.err
23751 cat conftest.err >&5
23752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753 (exit $ac_status); } && {
23754 test -z "$ac_c_werror_flag" ||
23755 test ! -s conftest.err
23756 } && test -s conftest.$ac_objext; then
23757 ac_cv_type_socklen_t=yes
23759 echo "$as_me: failed program was:" >&5
23760 sed 's/^/| /' conftest.$ac_ext >&5
23765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23769 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23770 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23772 if test "$ac_cv_type_socklen_t" != "yes"; then
23774 cat >>confdefs.h <<\_ACEOF
23775 #define socklen_t int
23782 { echo "$as_me:$LINENO: checking for uint8_t" >&5
23783 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23784 if test "${ac_cv_type_uint8_t+set}" = set; then
23785 echo $ECHO_N "(cached) $ECHO_C" >&6
23787 ac_cv_type_uint8_t=no
23788 cat >conftest.$ac_ext <<_ACEOF
23791 cat confdefs.h >>conftest.$ac_ext
23792 cat >>conftest.$ac_ext <<_ACEOF
23793 /* end confdefs.h. */
23794 #ifdef HAVE_INTTYPES_H
23795 #include <inttypes.h>
23797 #ifdef HAVE_STDINT_H
23798 #include <stdint.h>
23809 rm -f conftest.$ac_objext
23810 if { (ac_try="$ac_compile"
23811 case "(($ac_try" in
23812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23813 *) ac_try_echo=$ac_try;;
23815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23816 (eval "$ac_compile") 2>conftest.er1
23818 grep -v '^ *+' conftest.er1 >conftest.err
23820 cat conftest.err >&5
23821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); } && {
23823 test -z "$ac_c_werror_flag" ||
23824 test ! -s conftest.err
23825 } && test -s conftest.$ac_objext; then
23826 ac_cv_type_uint8_t=yes
23828 echo "$as_me: failed program was:" >&5
23829 sed 's/^/| /' conftest.$ac_ext >&5
23834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23838 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23839 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
23841 if test "$ac_cv_type_uint8_t" != "yes"; then
23843 cat >>confdefs.h <<\_ACEOF
23844 #define uint8_t unsigned char
23851 { echo "$as_me:$LINENO: checking for uint16_t" >&5
23852 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
23853 if test "${ac_cv_type_uint16_t+set}" = set; then
23854 echo $ECHO_N "(cached) $ECHO_C" >&6
23856 ac_cv_type_uint16_t=no
23857 cat >conftest.$ac_ext <<_ACEOF
23860 cat confdefs.h >>conftest.$ac_ext
23861 cat >>conftest.$ac_ext <<_ACEOF
23862 /* end confdefs.h. */
23863 #ifdef HAVE_INTTYPES_H
23864 #include <inttypes.h>
23866 #ifdef HAVE_STDINT_H
23867 #include <stdint.h>
23878 rm -f conftest.$ac_objext
23879 if { (ac_try="$ac_compile"
23880 case "(($ac_try" in
23881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23882 *) ac_try_echo=$ac_try;;
23884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23885 (eval "$ac_compile") 2>conftest.er1
23887 grep -v '^ *+' conftest.er1 >conftest.err
23889 cat conftest.err >&5
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); } && {
23892 test -z "$ac_c_werror_flag" ||
23893 test ! -s conftest.err
23894 } && test -s conftest.$ac_objext; then
23895 ac_cv_type_uint16_t=yes
23897 echo "$as_me: failed program was:" >&5
23898 sed 's/^/| /' conftest.$ac_ext >&5
23903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23907 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
23908 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
23910 if test "$ac_cv_type_uint16_t" != "yes"; then
23912 cat >>confdefs.h <<\_ACEOF
23913 #define uint16_t unsigned short
23920 { echo "$as_me:$LINENO: checking for uint32_t" >&5
23921 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
23922 if test "${ac_cv_type_uint32_t+set}" = set; then
23923 echo $ECHO_N "(cached) $ECHO_C" >&6
23925 ac_cv_type_uint32_t=no
23926 cat >conftest.$ac_ext <<_ACEOF
23929 cat confdefs.h >>conftest.$ac_ext
23930 cat >>conftest.$ac_ext <<_ACEOF
23931 /* end confdefs.h. */
23932 #ifdef HAVE_INTTYPES_H
23933 #include <inttypes.h>
23935 #ifdef HAVE_STDINT_H
23936 #include <stdint.h>
23947 rm -f conftest.$ac_objext
23948 if { (ac_try="$ac_compile"
23949 case "(($ac_try" in
23950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23951 *) ac_try_echo=$ac_try;;
23953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23954 (eval "$ac_compile") 2>conftest.er1
23956 grep -v '^ *+' conftest.er1 >conftest.err
23958 cat conftest.err >&5
23959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960 (exit $ac_status); } && {
23961 test -z "$ac_c_werror_flag" ||
23962 test ! -s conftest.err
23963 } && test -s conftest.$ac_objext; then
23964 ac_cv_type_uint32_t=yes
23966 echo "$as_me: failed program was:" >&5
23967 sed 's/^/| /' conftest.$ac_ext >&5
23972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23976 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
23977 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
23979 if test "$ac_cv_type_uint32_t" != "yes"; then
23981 cat >>confdefs.h <<\_ACEOF
23982 #define uint32_t unsigned int
23988 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
23989 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
23990 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
23991 echo $ECHO_N "(cached) $ECHO_C" >&6
23993 cat >conftest.$ac_ext <<_ACEOF
23996 cat confdefs.h >>conftest.$ac_ext
23997 cat >>conftest.$ac_ext <<_ACEOF
23998 /* end confdefs.h. */
24000 #ifdef HAVE_NETINET_IN_H
24001 #include <netinet/in.h>
24005 typedef struct in6_addr ac__type_new_;
24009 if ((ac__type_new_ *) 0)
24011 if (sizeof (ac__type_new_))
24017 rm -f conftest.$ac_objext
24018 if { (ac_try="$ac_compile"
24019 case "(($ac_try" in
24020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24021 *) ac_try_echo=$ac_try;;
24023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24024 (eval "$ac_compile") 2>conftest.er1
24026 grep -v '^ *+' conftest.er1 >conftest.err
24028 cat conftest.err >&5
24029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030 (exit $ac_status); } && {
24031 test -z "$ac_c_werror_flag" ||
24032 test ! -s conftest.err
24033 } && test -s conftest.$ac_objext; then
24034 ac_cv_type_struct_in6_addr=yes
24036 echo "$as_me: failed program was:" >&5
24037 sed 's/^/| /' conftest.$ac_ext >&5
24039 ac_cv_type_struct_in6_addr=no
24042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24044 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
24045 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
24046 if test $ac_cv_type_struct_in6_addr = yes; then
24048 cat >>confdefs.h <<\_ACEOF
24049 #define HAVE_STRUCT_IN6_ADDR 1
24055 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
24056 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
24057 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
24058 echo $ECHO_N "(cached) $ECHO_C" >&6
24060 cat >conftest.$ac_ext <<_ACEOF
24063 cat confdefs.h >>conftest.$ac_ext
24064 cat >>conftest.$ac_ext <<_ACEOF
24065 /* end confdefs.h. */
24067 #ifdef HAVE_NETINET_IN_H
24068 #include <netinet/in.h>
24070 #ifdef HAVE_SYS_SOCKET_H
24071 #include <sys/socket.h>
24075 typedef struct sockaddr_storage ac__type_new_;
24079 if ((ac__type_new_ *) 0)
24081 if (sizeof (ac__type_new_))
24087 rm -f conftest.$ac_objext
24088 if { (ac_try="$ac_compile"
24089 case "(($ac_try" in
24090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24091 *) ac_try_echo=$ac_try;;
24093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24094 (eval "$ac_compile") 2>conftest.er1
24096 grep -v '^ *+' conftest.er1 >conftest.err
24098 cat conftest.err >&5
24099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100 (exit $ac_status); } && {
24101 test -z "$ac_c_werror_flag" ||
24102 test ! -s conftest.err
24103 } && test -s conftest.$ac_objext; then
24104 ac_cv_type_struct_sockaddr_storage=yes
24106 echo "$as_me: failed program was:" >&5
24107 sed 's/^/| /' conftest.$ac_ext >&5
24109 ac_cv_type_struct_sockaddr_storage=no
24112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24114 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
24115 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
24116 if test $ac_cv_type_struct_sockaddr_storage = yes; then
24118 cat >>confdefs.h <<\_ACEOF
24119 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
24125 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
24126 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
24127 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
24128 echo $ECHO_N "(cached) $ECHO_C" >&6
24130 cat >conftest.$ac_ext <<_ACEOF
24133 cat confdefs.h >>conftest.$ac_ext
24134 cat >>conftest.$ac_ext <<_ACEOF
24135 /* end confdefs.h. */
24137 #ifdef HAVE_NETINET_IN_H
24138 #include <netinet/in.h>
24142 typedef struct sockaddr_in6 ac__type_new_;
24146 if ((ac__type_new_ *) 0)
24148 if (sizeof (ac__type_new_))
24154 rm -f conftest.$ac_objext
24155 if { (ac_try="$ac_compile"
24156 case "(($ac_try" in
24157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24158 *) ac_try_echo=$ac_try;;
24160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24161 (eval "$ac_compile") 2>conftest.er1
24163 grep -v '^ *+' conftest.er1 >conftest.err
24165 cat conftest.err >&5
24166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167 (exit $ac_status); } && {
24168 test -z "$ac_c_werror_flag" ||
24169 test ! -s conftest.err
24170 } && test -s conftest.$ac_objext; then
24171 ac_cv_type_struct_sockaddr_in6=yes
24173 echo "$as_me: failed program was:" >&5
24174 sed 's/^/| /' conftest.$ac_ext >&5
24176 ac_cv_type_struct_sockaddr_in6=no
24179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24181 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
24182 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
24183 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
24185 cat >>confdefs.h <<\_ACEOF
24186 #define HAVE_STRUCT_SOCKADDR_IN6 1
24192 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
24193 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
24194 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
24195 echo $ECHO_N "(cached) $ECHO_C" >&6
24197 cat >conftest.$ac_ext <<_ACEOF
24200 cat confdefs.h >>conftest.$ac_ext
24201 cat >>conftest.$ac_ext <<_ACEOF
24202 /* end confdefs.h. */
24204 #ifdef HAVE_SYS_TYPES_H
24205 #include <sys/types.h>
24207 #ifdef HAVE_SYS_SOCKET_H
24208 #include <sys/socket.h>
24210 #ifdef HAVE_NETDB_H
24215 typedef struct addrinfo ac__type_new_;
24219 if ((ac__type_new_ *) 0)
24221 if (sizeof (ac__type_new_))
24227 rm -f conftest.$ac_objext
24228 if { (ac_try="$ac_compile"
24229 case "(($ac_try" in
24230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24231 *) ac_try_echo=$ac_try;;
24233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24234 (eval "$ac_compile") 2>conftest.er1
24236 grep -v '^ *+' conftest.er1 >conftest.err
24238 cat conftest.err >&5
24239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240 (exit $ac_status); } && {
24241 test -z "$ac_c_werror_flag" ||
24242 test ! -s conftest.err
24243 } && test -s conftest.$ac_objext; then
24244 ac_cv_type_struct_addrinfo=yes
24246 echo "$as_me: failed program was:" >&5
24247 sed 's/^/| /' conftest.$ac_ext >&5
24249 ac_cv_type_struct_addrinfo=no
24252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24254 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
24255 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
24256 if test $ac_cv_type_struct_addrinfo = yes; then
24258 cat >>confdefs.h <<\_ACEOF
24259 #define HAVE_STRUCT_ADDRINFO 1
24332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24333 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24336 echo $ECHO_N "(cached) $ECHO_C" >&6
24338 cat >conftest.$ac_ext <<_ACEOF
24341 cat confdefs.h >>conftest.$ac_ext
24342 cat >>conftest.$ac_ext <<_ACEOF
24343 /* end confdefs.h. */
24344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24346 #define $ac_func innocuous_$ac_func
24348 /* System header to define __stub macros and hopefully few prototypes,
24349 which can conflict with char $ac_func (); below.
24350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24351 <limits.h> exists even on freestanding compilers. */
24354 # include <limits.h>
24356 # include <assert.h>
24361 /* Override any GCC internal prototype to avoid an error.
24362 Use char because int might match the return type of a GCC
24363 builtin and then its argument prototype would still apply. */
24368 /* The GNU C library defines this for functions which it implements
24369 to always fail with ENOSYS. Some functions are actually named
24370 something starting with __ and the normal name is an alias. */
24371 #if defined __stub_$ac_func || defined __stub___$ac_func
24378 return $ac_func ();
24383 rm -f conftest.$ac_objext conftest$ac_exeext
24384 if { (ac_try="$ac_link"
24385 case "(($ac_try" in
24386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387 *) ac_try_echo=$ac_try;;
24389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24390 (eval "$ac_link") 2>conftest.er1
24392 grep -v '^ *+' conftest.er1 >conftest.err
24394 cat conftest.err >&5
24395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396 (exit $ac_status); } && {
24397 test -z "$ac_c_werror_flag" ||
24398 test ! -s conftest.err
24399 } && test -s conftest$ac_exeext &&
24400 $as_test_x conftest$ac_exeext; then
24401 eval "$as_ac_var=yes"
24403 echo "$as_me: failed program was:" >&5
24404 sed 's/^/| /' conftest.$ac_ext >&5
24406 eval "$as_ac_var=no"
24409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24410 conftest$ac_exeext conftest.$ac_ext
24412 ac_res=`eval echo '${'$as_ac_var'}'`
24413 { echo "$as_me:$LINENO: result: $ac_res" >&5
24414 echo "${ECHO_T}$ac_res" >&6; }
24415 if test `eval echo '${'$as_ac_var'}'` = yes; then
24416 cat >>confdefs.h <<_ACEOF
24417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24433 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
24434 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
24435 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
24436 echo $ECHO_N "(cached) $ECHO_C" >&6
24438 cat >conftest.$ac_ext <<_ACEOF
24441 cat confdefs.h >>conftest.$ac_ext
24442 cat >>conftest.$ac_ext <<_ACEOF
24443 /* end confdefs.h. */
24446 #include <string.h>
24447 #ifdef HAVE_UNISTD_H
24448 #include <unistd.h>
24450 #ifdef HAVE_CRYPT_H
24453 #ifdef HAVE_ERRNO_H
24456 #ifdef HAVE_RESOURCE_H
24457 #include <resource.h>
24459 #ifdef HAVE_GETOPT_H
24460 #include <getopt.h>
24462 #ifdef HAVE_MALLOC_H
24463 #include <malloc.h>
24468 #ifdef HAVE_UTMPX_H
24471 #ifdef HAVE_SYS_SELECT_H
24472 #include <sys/select.h>
24474 #ifdef HAVE_DLFCN_H
24477 #ifdef HAVE_REGEX_H
24480 #ifdef HAVE_SYSLOG_H
24481 #include <syslog.h>
24483 #ifdef HAVE_INTTYPES_H
24484 #include <inttypes.h>
24486 #ifdef HAVE_STDINT_H
24487 #include <stdint.h>
24489 #ifdef HAVE_ARPA_INET_H
24490 #include <arpa/inet.h>
24496 char *(*pfn) = (char *(*)) $ac_func
24501 rm -f conftest.$ac_objext
24502 if { (ac_try="$ac_compile"
24503 case "(($ac_try" in
24504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24505 *) ac_try_echo=$ac_try;;
24507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24508 (eval "$ac_compile") 2>conftest.er1
24510 grep -v '^ *+' conftest.er1 >conftest.err
24512 cat conftest.err >&5
24513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24514 (exit $ac_status); } && {
24515 test -z "$ac_c_werror_flag" ||
24516 test ! -s conftest.err
24517 } && test -s conftest.$ac_objext; then
24518 eval "radius_cv_decl_needed_$ac_func=no"
24520 echo "$as_me: failed program was:" >&5
24521 sed 's/^/| /' conftest.$ac_ext >&5
24523 eval "radius_cv_decl_needed_$ac_func=yes"
24526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24529 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
24530 { echo "$as_me:$LINENO: result: yes" >&5
24531 echo "${ECHO_T}yes" >&6; }
24532 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24533 cat >>confdefs.h <<_ACEOF
24534 #define $radius_tr_decl 1
24538 { echo "$as_me:$LINENO: result: no" >&5
24539 echo "${ECHO_T}no" >&6; }
24545 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24546 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24547 if test "${ac_cv_type_signal+set}" = set; then
24548 echo $ECHO_N "(cached) $ECHO_C" >&6
24550 cat >conftest.$ac_ext <<_ACEOF
24553 cat confdefs.h >>conftest.$ac_ext
24554 cat >>conftest.$ac_ext <<_ACEOF
24555 /* end confdefs.h. */
24556 #include <sys/types.h>
24557 #include <signal.h>
24562 return *(signal (0, 0)) (0) == 1;
24567 rm -f conftest.$ac_objext
24568 if { (ac_try="$ac_compile"
24569 case "(($ac_try" in
24570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24571 *) ac_try_echo=$ac_try;;
24573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24574 (eval "$ac_compile") 2>conftest.er1
24576 grep -v '^ *+' conftest.er1 >conftest.err
24578 cat conftest.err >&5
24579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580 (exit $ac_status); } && {
24581 test -z "$ac_c_werror_flag" ||
24582 test ! -s conftest.err
24583 } && test -s conftest.$ac_objext; then
24584 ac_cv_type_signal=int
24586 echo "$as_me: failed program was:" >&5
24587 sed 's/^/| /' conftest.$ac_ext >&5
24589 ac_cv_type_signal=void
24592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24594 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24595 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24597 cat >>confdefs.h <<_ACEOF
24598 #define RETSIGTYPE $ac_cv_type_signal
24603 if test "x$ac_cv_header_utmpx_h" = "xyes"
24606 { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
24607 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
24610 cat >conftest.$ac_ext <<_ACEOF
24613 cat confdefs.h >>conftest.$ac_ext
24614 cat >>conftest.$ac_ext <<_ACEOF
24615 /* end confdefs.h. */
24619 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24625 int foo = offsetof(struct utmpx, ut_xtime)
24630 rm -f conftest.$ac_objext
24631 if { (ac_try="$ac_compile"
24632 case "(($ac_try" in
24633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24634 *) ac_try_echo=$ac_try;;
24636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24637 (eval "$ac_compile") 2>conftest.er1
24639 grep -v '^ *+' conftest.er1 >conftest.err
24641 cat conftest.err >&5
24642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643 (exit $ac_status); } && {
24644 test -z "$ac_c_werror_flag" ||
24645 test ! -s conftest.err
24646 } && test -s conftest.$ac_objext; then
24649 echo "$as_me: failed program was:" >&5
24650 sed 's/^/| /' conftest.$ac_ext >&5
24655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24657 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
24658 if test "x$has_element" != "x"; then
24659 { echo "$as_me:$LINENO: result: yes" >&5
24660 echo "${ECHO_T}yes" >&6; }
24661 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
24663 { echo "$as_me:$LINENO: result: no" >&5
24664 echo "${ECHO_T}no" >&6; }
24665 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
24668 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
24671 cat >>confdefs.h <<\_ACEOF
24672 #define ut_xtime ut_tv.tv_sec
24679 { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
24680 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
24683 cat >conftest.$ac_ext <<_ACEOF
24686 cat confdefs.h >>conftest.$ac_ext
24687 cat >>conftest.$ac_ext <<_ACEOF
24688 /* end confdefs.h. */
24690 #include <netinet/in.h>
24692 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24698 int foo = offsetof(struct in_pktinfo, ipi_addr)
24703 rm -f conftest.$ac_objext
24704 if { (ac_try="$ac_compile"
24705 case "(($ac_try" in
24706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24707 *) ac_try_echo=$ac_try;;
24709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24710 (eval "$ac_compile") 2>conftest.er1
24712 grep -v '^ *+' conftest.er1 >conftest.err
24714 cat conftest.err >&5
24715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716 (exit $ac_status); } && {
24717 test -z "$ac_c_werror_flag" ||
24718 test ! -s conftest.err
24719 } && test -s conftest.$ac_objext; then
24722 echo "$as_me: failed program was:" >&5
24723 sed 's/^/| /' conftest.$ac_ext >&5
24728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24730 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
24731 if test "x$has_element" != "x"; then
24732 { echo "$as_me:$LINENO: result: yes" >&5
24733 echo "${ECHO_T}yes" >&6; }
24734 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
24736 { echo "$as_me:$LINENO: result: no" >&5
24737 echo "${ECHO_T}no" >&6; }
24738 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
24741 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
24744 cat >>confdefs.h <<\_ACEOF
24745 #define HAVE_IP_PKTINFO
24751 { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
24752 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
24755 cat >conftest.$ac_ext <<_ACEOF
24758 cat confdefs.h >>conftest.$ac_ext
24759 cat >>conftest.$ac_ext <<_ACEOF
24760 /* end confdefs.h. */
24762 #include <netinet/in.h>
24764 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24770 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
24775 rm -f conftest.$ac_objext
24776 if { (ac_try="$ac_compile"
24777 case "(($ac_try" in
24778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24779 *) ac_try_echo=$ac_try;;
24781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24782 (eval "$ac_compile") 2>conftest.er1
24784 grep -v '^ *+' conftest.er1 >conftest.err
24786 cat conftest.err >&5
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); } && {
24789 test -z "$ac_c_werror_flag" ||
24790 test ! -s conftest.err
24791 } && test -s conftest.$ac_objext; then
24794 echo "$as_me: failed program was:" >&5
24795 sed 's/^/| /' conftest.$ac_ext >&5
24800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24802 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
24803 if test "x$has_element" != "x"; then
24804 { echo "$as_me:$LINENO: result: yes" >&5
24805 echo "${ECHO_T}yes" >&6; }
24806 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
24808 { echo "$as_me:$LINENO: result: no" >&5
24809 echo "${ECHO_T}no" >&6; }
24810 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
24813 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
24816 cat >>confdefs.h <<\_ACEOF
24817 #define HAVE_IN6_PKTINFO
24823 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24824 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24825 if test "${ac_cv_c_const+set}" = set; then
24826 echo $ECHO_N "(cached) $ECHO_C" >&6
24828 cat >conftest.$ac_ext <<_ACEOF
24831 cat confdefs.h >>conftest.$ac_ext
24832 cat >>conftest.$ac_ext <<_ACEOF
24833 /* end confdefs.h. */
24838 /* FIXME: Include the comments suggested by Paul. */
24839 #ifndef __cplusplus
24840 /* Ultrix mips cc rejects this. */
24841 typedef int charset[2];
24843 /* SunOS 4.1.1 cc rejects this. */
24844 char const *const *pcpcc;
24846 /* NEC SVR4.0.2 mips cc rejects this. */
24847 struct point {int x, y;};
24848 static struct point const zero = {0,0};
24849 /* AIX XL C 1.02.0.0 rejects this.
24850 It does not let you subtract one const X* pointer from another in
24851 an arm of an if-expression whose if-part is not a constant
24853 const char *g = "string";
24854 pcpcc = &g + (g ? g-g : 0);
24855 /* HPUX 7.0 cc rejects these. */
24857 ppc = (char**) pcpcc;
24858 pcpcc = (char const *const *) ppc;
24859 { /* SCO 3.2v4 cc rejects this. */
24861 char const *s = 0 ? (char *) 0 : (char const *) 0;
24866 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24867 int x[] = {25, 17};
24868 const int *foo = &x[0];
24871 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24872 typedef const int *iptr;
24876 { /* AIX XL C 1.02.0.0 rejects this saying
24877 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24878 struct s { int j; const int *ap[3]; };
24879 struct s *b; b->j = 5;
24881 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24882 const int foo = 10;
24883 if (!foo) return 0;
24885 return !cs[0] && !zero.x;
24892 rm -f conftest.$ac_objext
24893 if { (ac_try="$ac_compile"
24894 case "(($ac_try" in
24895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24896 *) ac_try_echo=$ac_try;;
24898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24899 (eval "$ac_compile") 2>conftest.er1
24901 grep -v '^ *+' conftest.er1 >conftest.err
24903 cat conftest.err >&5
24904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905 (exit $ac_status); } && {
24906 test -z "$ac_c_werror_flag" ||
24907 test ! -s conftest.err
24908 } && test -s conftest.$ac_objext; then
24911 echo "$as_me: failed program was:" >&5
24912 sed 's/^/| /' conftest.$ac_ext >&5
24917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24919 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24920 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24921 if test $ac_cv_c_const = no; then
24923 cat >>confdefs.h <<\_ACEOF
24930 { echo "$as_me:$LINENO: checking type of OS" >&5
24931 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
24933 { echo "$as_me:$LINENO: result: $OS" >&5
24934 echo "${ECHO_T}$OS" >&6; }
24935 if test "$OS" = "OS/2"; then
24942 if test "x$GCC" = "xyes"; then
24943 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
24946 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
24947 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
24948 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
24949 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
24950 CFLAGS="$CFLAGS $devflags"
24952 { echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
24953 echo "${ECHO_T}yes. Using $devflags" >&6; }
24956 CFLAGS="$CFLAGS -DNDEBUG"
24958 { echo "$as_me:$LINENO: result: no." >&5
24959 echo "${ECHO_T}no." >&6; }
24963 { echo "$as_me:$LINENO: checking for TLS" >&5
24964 echo $ECHO_N "checking for TLS... $ECHO_C" >&6; }
24965 if test "$cross_compiling" = yes; then
24968 cat >conftest.$ac_ext <<_ACEOF
24971 cat confdefs.h >>conftest.$ac_ext
24972 cat >>conftest.$ac_ext <<_ACEOF
24973 /* end confdefs.h. */
24974 static __thread int val; int main() { return 0; }
24976 rm -f conftest$ac_exeext
24977 if { (ac_try="$ac_link"
24978 case "(($ac_try" in
24979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24980 *) ac_try_echo=$ac_try;;
24982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24983 (eval "$ac_link") 2>&5
24985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24987 { (case "(($ac_try" in
24988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24989 *) ac_try_echo=$ac_try;;
24991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24992 (eval "$ac_try") 2>&5
24994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24995 (exit $ac_status); }; }; then
24998 echo "$as_me: program exited with status $ac_status" >&5
24999 echo "$as_me: failed program was:" >&5
25000 sed 's/^/| /' conftest.$ac_ext >&5
25002 ( exit $ac_status )
25005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25009 { echo "$as_me:$LINENO: result: $have_tls" >&5
25010 echo "${ECHO_T}$have_tls" >&6; }
25011 if test "$have_tls" = "yes"; then
25013 cat >>confdefs.h <<\_ACEOF
25014 #define HAVE_THREAD_TLS 1
25021 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
25022 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
25023 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
25024 echo $ECHO_N "(cached) $ECHO_C" >&6
25026 ac_check_lib_save_LIBS=$LIBS
25027 LIBS="-lcrypt $LIBS"
25028 cat >conftest.$ac_ext <<_ACEOF
25031 cat confdefs.h >>conftest.$ac_ext
25032 cat >>conftest.$ac_ext <<_ACEOF
25033 /* end confdefs.h. */
25035 /* Override any GCC internal prototype to avoid an error.
25036 Use char because int might match the return type of a GCC
25037 builtin and then its argument prototype would still apply. */
25050 rm -f conftest.$ac_objext conftest$ac_exeext
25051 if { (ac_try="$ac_link"
25052 case "(($ac_try" in
25053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25054 *) ac_try_echo=$ac_try;;
25056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25057 (eval "$ac_link") 2>conftest.er1
25059 grep -v '^ *+' conftest.er1 >conftest.err
25061 cat conftest.err >&5
25062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063 (exit $ac_status); } && {
25064 test -z "$ac_c_werror_flag" ||
25065 test ! -s conftest.err
25066 } && test -s conftest$ac_exeext &&
25067 $as_test_x conftest$ac_exeext; then
25068 ac_cv_lib_crypt_crypt=yes
25070 echo "$as_me: failed program was:" >&5
25071 sed 's/^/| /' conftest.$ac_ext >&5
25073 ac_cv_lib_crypt_crypt=no
25076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25077 conftest$ac_exeext conftest.$ac_ext
25078 LIBS=$ac_check_lib_save_LIBS
25080 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
25081 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
25082 if test $ac_cv_lib_crypt_crypt = yes; then
25087 if test "$CRYPTLIB" != ""; then
25089 cat >>confdefs.h <<\_ACEOF
25094 { echo "$as_me:$LINENO: checking for crypt" >&5
25095 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
25096 if test "${ac_cv_func_crypt+set}" = set; then
25097 echo $ECHO_N "(cached) $ECHO_C" >&6
25099 cat >conftest.$ac_ext <<_ACEOF
25102 cat confdefs.h >>conftest.$ac_ext
25103 cat >>conftest.$ac_ext <<_ACEOF
25104 /* end confdefs.h. */
25105 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
25106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25107 #define crypt innocuous_crypt
25109 /* System header to define __stub macros and hopefully few prototypes,
25110 which can conflict with char crypt (); below.
25111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25112 <limits.h> exists even on freestanding compilers. */
25115 # include <limits.h>
25117 # include <assert.h>
25122 /* Override any GCC internal prototype to avoid an error.
25123 Use char because int might match the return type of a GCC
25124 builtin and then its argument prototype would still apply. */
25129 /* The GNU C library defines this for functions which it implements
25130 to always fail with ENOSYS. Some functions are actually named
25131 something starting with __ and the normal name is an alias. */
25132 #if defined __stub_crypt || defined __stub___crypt
25144 rm -f conftest.$ac_objext conftest$ac_exeext
25145 if { (ac_try="$ac_link"
25146 case "(($ac_try" in
25147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25148 *) ac_try_echo=$ac_try;;
25150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25151 (eval "$ac_link") 2>conftest.er1
25153 grep -v '^ *+' conftest.er1 >conftest.err
25155 cat conftest.err >&5
25156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157 (exit $ac_status); } && {
25158 test -z "$ac_c_werror_flag" ||
25159 test ! -s conftest.err
25160 } && test -s conftest$ac_exeext &&
25161 $as_test_x conftest$ac_exeext; then
25162 ac_cv_func_crypt=yes
25164 echo "$as_me: failed program was:" >&5
25165 sed 's/^/| /' conftest.$ac_ext >&5
25167 ac_cv_func_crypt=no
25170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25171 conftest$ac_exeext conftest.$ac_ext
25173 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
25174 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
25175 if test $ac_cv_func_crypt = yes; then
25177 cat >>confdefs.h <<\_ACEOF
25185 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
25186 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
25187 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
25188 echo $ECHO_N "(cached) $ECHO_C" >&6
25190 ac_check_lib_save_LIBS=$LIBS
25191 LIBS="-lcipher $LIBS"
25192 cat >conftest.$ac_ext <<_ACEOF
25195 cat confdefs.h >>conftest.$ac_ext
25196 cat >>conftest.$ac_ext <<_ACEOF
25197 /* end confdefs.h. */
25199 /* Override any GCC internal prototype to avoid an error.
25200 Use char because int might match the return type of a GCC
25201 builtin and then its argument prototype would still apply. */
25214 rm -f conftest.$ac_objext conftest$ac_exeext
25215 if { (ac_try="$ac_link"
25216 case "(($ac_try" in
25217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25218 *) ac_try_echo=$ac_try;;
25220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25221 (eval "$ac_link") 2>conftest.er1
25223 grep -v '^ *+' conftest.er1 >conftest.err
25225 cat conftest.err >&5
25226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); } && {
25228 test -z "$ac_c_werror_flag" ||
25229 test ! -s conftest.err
25230 } && test -s conftest$ac_exeext &&
25231 $as_test_x conftest$ac_exeext; then
25232 ac_cv_lib_cipher_setkey=yes
25234 echo "$as_me: failed program was:" >&5
25235 sed 's/^/| /' conftest.$ac_ext >&5
25237 ac_cv_lib_cipher_setkey=no
25240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25241 conftest$ac_exeext conftest.$ac_ext
25242 LIBS=$ac_check_lib_save_LIBS
25244 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
25245 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
25246 if test $ac_cv_lib_cipher_setkey = yes; then
25247 CRYPTLIB="${CRYPTLIB} -lcipher"
25254 cat >>confdefs.h <<\_ACEOF
25259 cat >>confdefs.h <<\_ACEOF
25260 #define SYSVSTYLE 2
25264 cat >>confdefs.h <<\_ACEOF
25268 gethostbyaddrrstyle=""
25269 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
25270 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
25273 { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
25274 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
25275 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
25276 echo $ECHO_N "(cached) $ECHO_C" >&6
25278 cat >conftest.$ac_ext <<_ACEOF
25281 cat confdefs.h >>conftest.$ac_ext
25282 cat >>conftest.$ac_ext <<_ACEOF
25283 /* end confdefs.h. */
25285 #ifdef HAVE_NETDB_H
25293 #ifndef gethostbyaddr_r
25294 (void) gethostbyaddr_r;
25301 rm -f conftest.$ac_objext
25302 if { (ac_try="$ac_compile"
25303 case "(($ac_try" in
25304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25305 *) ac_try_echo=$ac_try;;
25307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25308 (eval "$ac_compile") 2>conftest.er1
25310 grep -v '^ *+' conftest.er1 >conftest.err
25312 cat conftest.err >&5
25313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314 (exit $ac_status); } && {
25315 test -z "$ac_c_werror_flag" ||
25316 test ! -s conftest.err
25317 } && test -s conftest.$ac_objext; then
25318 ac_cv_have_decl_gethostbyaddr_r=yes
25320 echo "$as_me: failed program was:" >&5
25321 sed 's/^/| /' conftest.$ac_ext >&5
25323 ac_cv_have_decl_gethostbyaddr_r=no
25326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25328 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
25329 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
25330 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
25332 cat >>confdefs.h <<_ACEOF
25333 #define HAVE_DECL_GETHOSTBYADDR_R 1
25338 cat >>confdefs.h <<_ACEOF
25339 #define HAVE_DECL_GETHOSTBYADDR_R 0
25344 cat >>confdefs.h <<\_ACEOF
25345 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25348 gethostbyaddrrstyle=BSD
25349 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
25350 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
25357 if test "x$gethostbyaddrrstyle" = "x"; then
25358 cat >conftest.$ac_ext <<_ACEOF
25361 cat confdefs.h >>conftest.$ac_ext
25362 cat >>conftest.$ac_ext <<_ACEOF
25363 /* end confdefs.h. */
25371 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
25376 rm -f conftest.$ac_objext conftest$ac_exeext
25377 if { (ac_try="$ac_link"
25378 case "(($ac_try" in
25379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25380 *) ac_try_echo=$ac_try;;
25382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25383 (eval "$ac_link") 2>conftest.er1
25385 grep -v '^ *+' conftest.er1 >conftest.err
25387 cat conftest.err >&5
25388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389 (exit $ac_status); } && {
25390 test -z "$ac_c_werror_flag" ||
25391 test ! -s conftest.err
25392 } && test -s conftest$ac_exeext &&
25393 $as_test_x conftest$ac_exeext; then
25396 cat >>confdefs.h <<\_ACEOF
25397 #define GETHOSTBYADDRRSTYLE GNUSTYLE
25400 gethostbyaddrrstyle=GNU
25403 echo "$as_me: failed program was:" >&5
25404 sed 's/^/| /' conftest.$ac_ext >&5
25409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25410 conftest$ac_exeext conftest.$ac_ext
25412 if test "x$gethostbyaddrrstyle" = "x"; then
25413 cat >conftest.$ac_ext <<_ACEOF
25416 cat confdefs.h >>conftest.$ac_ext
25417 cat >>conftest.$ac_ext <<_ACEOF
25418 /* end confdefs.h. */
25426 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
25431 rm -f conftest.$ac_objext conftest$ac_exeext
25432 if { (ac_try="$ac_link"
25433 case "(($ac_try" in
25434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25435 *) ac_try_echo=$ac_try;;
25437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25438 (eval "$ac_link") 2>conftest.er1
25440 grep -v '^ *+' conftest.er1 >conftest.err
25442 cat conftest.err >&5
25443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444 (exit $ac_status); } && {
25445 test -z "$ac_c_werror_flag" ||
25446 test ! -s conftest.err
25447 } && test -s conftest$ac_exeext &&
25448 $as_test_x conftest$ac_exeext; then
25451 cat >>confdefs.h <<\_ACEOF
25452 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
25455 gethostbyaddrrstyle=SYSV
25458 echo "$as_me: failed program was:" >&5
25459 sed 's/^/| /' conftest.$ac_ext >&5
25464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25465 conftest$ac_exeext conftest.$ac_ext
25467 if test "x$gethostbyaddrrstyle" = "x"; then
25468 cat >conftest.$ac_ext <<_ACEOF
25471 cat confdefs.h >>conftest.$ac_ext
25472 cat >>conftest.$ac_ext <<_ACEOF
25473 /* end confdefs.h. */
25481 gethostbyaddr(NULL, 0, 0)
25486 rm -f conftest.$ac_objext conftest$ac_exeext
25487 if { (ac_try="$ac_link"
25488 case "(($ac_try" in
25489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25490 *) ac_try_echo=$ac_try;;
25492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25493 (eval "$ac_link") 2>conftest.er1
25495 grep -v '^ *+' conftest.er1 >conftest.err
25497 cat conftest.err >&5
25498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499 (exit $ac_status); } && {
25500 test -z "$ac_c_werror_flag" ||
25501 test ! -s conftest.err
25502 } && test -s conftest$ac_exeext &&
25503 $as_test_x conftest$ac_exeext; then
25506 cat >>confdefs.h <<\_ACEOF
25507 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25510 gethostbyaddrrstyle=BSD
25513 echo "$as_me: failed program was:" >&5
25514 sed 's/^/| /' conftest.$ac_ext >&5
25519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25520 conftest$ac_exeext conftest.$ac_ext
25523 if test "x$gethostbyaddrrstyle" = "x"; then
25524 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25525 echo "${ECHO_T}none! It must not exist, here." >&6; }
25527 { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
25528 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
25531 if test "x$gethostbyaddrrstyle" = "xBSD"; then
25532 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
25533 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
25536 gethostbynamerstyle=""
25537 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
25538 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
25539 cat >conftest.$ac_ext <<_ACEOF
25542 cat confdefs.h >>conftest.$ac_ext
25543 cat >>conftest.$ac_ext <<_ACEOF
25544 /* end confdefs.h. */
25552 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
25557 rm -f conftest.$ac_objext conftest$ac_exeext
25558 if { (ac_try="$ac_link"
25559 case "(($ac_try" in
25560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25561 *) ac_try_echo=$ac_try;;
25563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25564 (eval "$ac_link") 2>conftest.er1
25566 grep -v '^ *+' conftest.er1 >conftest.err
25568 cat conftest.err >&5
25569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25570 (exit $ac_status); } && {
25571 test -z "$ac_c_werror_flag" ||
25572 test ! -s conftest.err
25573 } && test -s conftest$ac_exeext &&
25574 $as_test_x conftest$ac_exeext; then
25577 cat >>confdefs.h <<\_ACEOF
25578 #define GETHOSTBYNAMERSTYLE GNUSTYLE
25581 gethostbynamerstyle=GNU
25584 echo "$as_me: failed program was:" >&5
25585 sed 's/^/| /' conftest.$ac_ext >&5
25590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25591 conftest$ac_exeext conftest.$ac_ext
25592 if test "x$gethostbynamerstyle" = "x"; then
25593 cat >conftest.$ac_ext <<_ACEOF
25596 cat confdefs.h >>conftest.$ac_ext
25597 cat >>conftest.$ac_ext <<_ACEOF
25598 /* end confdefs.h. */
25606 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25611 rm -f conftest.$ac_objext conftest$ac_exeext
25612 if { (ac_try="$ac_link"
25613 case "(($ac_try" in
25614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25615 *) ac_try_echo=$ac_try;;
25617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25618 (eval "$ac_link") 2>conftest.er1
25620 grep -v '^ *+' conftest.er1 >conftest.err
25622 cat conftest.err >&5
25623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25624 (exit $ac_status); } && {
25625 test -z "$ac_c_werror_flag" ||
25626 test ! -s conftest.err
25627 } && test -s conftest$ac_exeext &&
25628 $as_test_x conftest$ac_exeext; then
25631 cat >>confdefs.h <<\_ACEOF
25632 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25635 gethostbynamerstyle=SYSV
25638 echo "$as_me: failed program was:" >&5
25639 sed 's/^/| /' conftest.$ac_ext >&5
25644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25645 conftest$ac_exeext conftest.$ac_ext
25647 if test "x$gethostbynamerstyle" = "x"; then
25648 cat >conftest.$ac_ext <<_ACEOF
25651 cat confdefs.h >>conftest.$ac_ext
25652 cat >>conftest.$ac_ext <<_ACEOF
25653 /* end confdefs.h. */
25661 gethostbyname(NULL)
25666 rm -f conftest.$ac_objext conftest$ac_exeext
25667 if { (ac_try="$ac_link"
25668 case "(($ac_try" in
25669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25670 *) ac_try_echo=$ac_try;;
25672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25673 (eval "$ac_link") 2>conftest.er1
25675 grep -v '^ *+' conftest.er1 >conftest.err
25677 cat conftest.err >&5
25678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679 (exit $ac_status); } && {
25680 test -z "$ac_c_werror_flag" ||
25681 test ! -s conftest.err
25682 } && test -s conftest$ac_exeext &&
25683 $as_test_x conftest$ac_exeext; then
25686 cat >>confdefs.h <<\_ACEOF
25687 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25690 gethostbynamerstyle=BSD
25693 echo "$as_me: failed program was:" >&5
25694 sed 's/^/| /' conftest.$ac_ext >&5
25699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25700 conftest$ac_exeext conftest.$ac_ext
25703 if test "x$gethostbynamerstyle" = "x"; then
25704 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25705 echo "${ECHO_T}none! It must not exist, here." >&6; }
25707 { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25708 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25711 if test "x$gethostbynamerstyle" = "xBSD"; then
25712 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25713 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25717 cat >>confdefs.h <<\_ACEOF
25718 #define POSIXSTYLE 1
25722 cat >>confdefs.h <<\_ACEOF
25723 #define SOLARISSTYLE 2
25727 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25728 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
25729 cat >conftest.$ac_ext <<_ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h. */
25741 ctime_r(NULL, NULL, 0)
25746 rm -f conftest.$ac_objext conftest$ac_exeext
25747 if { (ac_try="$ac_link"
25748 case "(($ac_try" in
25749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25750 *) ac_try_echo=$ac_try;;
25752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25753 (eval "$ac_link") 2>conftest.er1
25755 grep -v '^ *+' conftest.er1 >conftest.err
25757 cat conftest.err >&5
25758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759 (exit $ac_status); } && {
25760 test -z "$ac_c_werror_flag" ||
25761 test ! -s conftest.err
25762 } && test -s conftest$ac_exeext &&
25763 $as_test_x conftest$ac_exeext; then
25766 cat >>confdefs.h <<\_ACEOF
25767 #define CTIMERSTYLE SOLARISSTYLE
25770 ctimerstyle="SOLARIS"
25773 echo "$as_me: failed program was:" >&5
25774 sed 's/^/| /' conftest.$ac_ext >&5
25779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25780 conftest$ac_exeext conftest.$ac_ext
25781 if test "x$ctimerstyle" = "x"; then
25782 cat >conftest.$ac_ext <<_ACEOF
25785 cat confdefs.h >>conftest.$ac_ext
25786 cat >>conftest.$ac_ext <<_ACEOF
25787 /* end confdefs.h. */
25794 ctime_r(NULL, NULL)
25799 rm -f conftest.$ac_objext conftest$ac_exeext
25800 if { (ac_try="$ac_link"
25801 case "(($ac_try" in
25802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25803 *) ac_try_echo=$ac_try;;
25805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25806 (eval "$ac_link") 2>conftest.er1
25808 grep -v '^ *+' conftest.er1 >conftest.err
25810 cat conftest.err >&5
25811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812 (exit $ac_status); } && {
25813 test -z "$ac_c_werror_flag" ||
25814 test ! -s conftest.err
25815 } && test -s conftest$ac_exeext &&
25816 $as_test_x conftest$ac_exeext; then
25819 cat >>confdefs.h <<\_ACEOF
25820 #define CTIMERSTYLE POSIXSTYLE
25823 ctimerstyle="POSIX"
25826 echo "$as_me: failed program was:" >&5
25827 sed 's/^/| /' conftest.$ac_ext >&5
25832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25833 conftest$ac_exeext conftest.$ac_ext
25836 if test "x$ctimerstyle" = "x"; then
25837 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25838 echo "${ECHO_T}none! It must not exist, here." >&6; }
25840 { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25841 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
25849 export top_builddir
25850 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25851 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
25857 mysubdirs="$LIBLTDLPATH"
25858 if test "x$EXPERIMENTAL" = "xyes"; then
25859 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
25860 mysubdirs=`echo $mysubdirs $bar`
25862 for bar in `cat "${srcdir}"/src/modules/stable`; do
25863 if test -f "${srcdir}"/src/modules/$bar/configure; then
25864 mysubdirs="$mysubdirs src/modules/$bar"
25869 if test "x$EXPERIMENTAL" = "xyes"; then
25870 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
25871 MODULES="$MODULES $foo"
25874 for foo in `cat "${srcdir}"/src/modules/stable`; do
25875 MODULES="$MODULES $foo"
25879 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
25884 ac_config_commands="$ac_config_commands stamp-h"
25886 ac_config_commands="$ac_config_commands build-radpaths-h"
25888 ac_config_commands="$ac_config_commands main-chmod"
25890 ac_config_commands="$ac_config_commands scripts-chmod"
25896 USE_SHARED_LIBS=$enable_shared
25898 USE_STATIC_LIBS=$enable_static
25906 unset ac_cv_env_LIBS_set
25907 unset ac_cv_env_LIBS_value
25909 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radiusd.conf"
25911 cat >confcache <<\_ACEOF
25912 # This file is a shell script that caches the results of configure
25913 # tests run on this system so they can be shared between configure
25914 # scripts and configure runs, see configure's option --config-cache.
25915 # It is not useful on other systems. If it contains results you don't
25916 # want to keep, you may remove or edit it.
25918 # config.status only pays attention to the cache file if you give it
25919 # the --recheck option to rerun configure.
25921 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25922 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25923 # following values.
25927 # The following way of writing the cache mishandles newlines in values,
25928 # but we know of no workaround that is simple, portable, and efficient.
25929 # So, we kill variables containing newlines.
25930 # Ultrix sh set writes to stderr and can't be redirected directly,
25931 # and sets the high bit in the cache file unless we assign to the vars.
25933 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25934 eval ac_val=\$$ac_var
25938 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25939 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25942 _ | IFS | as_nl) ;; #(
25943 *) $as_unset $ac_var ;;
25949 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25950 *${as_nl}ac_space=\ *)
25951 # `set' does not quote correctly, so add quotes (double-quote
25952 # substitution turns \\\\ into \\, and sed turns \\ into \).
25955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25958 # `set' quotes correctly as required by POSIX, so do not add quotes.
25959 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25968 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25970 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25972 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25973 if test -w "$cache_file"; then
25974 test "x$cache_file" != "x/dev/null" &&
25975 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25976 echo "$as_me: updating cache $cache_file" >&6;}
25977 cat confcache >$cache_file
25979 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25980 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25985 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25986 # Let make expand exec_prefix.
25987 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25989 DEFS=-DHAVE_CONFIG_H
25993 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25994 # 1. Remove the extension, and $U if already installed.
25995 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25996 ac_i=`echo "$ac_i" | sed "$ac_script"`
25997 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25998 # will be set to the directory where LIBOBJS objects are built.
25999 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26000 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26002 LIBOBJS=$ac_libobjs
26004 LTLIBOBJS=$ac_ltlibobjs
26008 : ${CONFIG_STATUS=./config.status}
26009 ac_clean_files_save=$ac_clean_files
26010 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26011 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26012 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26013 cat >$CONFIG_STATUS <<_ACEOF
26015 # Generated by $as_me.
26016 # Run this file to recreate the current configuration.
26017 # Compiler output produced by configure, useful for debugging
26018 # configure, is in config.log if it exists.
26021 ac_cs_recheck=false
26023 SHELL=\${CONFIG_SHELL-$SHELL}
26026 cat >>$CONFIG_STATUS <<\_ACEOF
26027 ## --------------------- ##
26028 ## M4sh Initialization. ##
26029 ## --------------------- ##
26031 # Be more Bourne compatible
26032 DUALCASE=1; export DUALCASE # for MKS sh
26033 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26036 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26037 # is contrary to our usage. Disable this feature.
26038 alias -g '${1+"$@"}'='"$@"'
26039 setopt NO_GLOB_SUBST
26041 case `(set -o) 2>/dev/null` in
26042 *posix*) set -o posix ;;
26051 # Avoid depending upon Character Ranges.
26052 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26053 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26054 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26055 as_cr_digits='0123456789'
26056 as_cr_alnum=$as_cr_Letters$as_cr_digits
26058 # The user is always right.
26059 if test "${PATH_SEPARATOR+set}" != set; then
26060 echo "#! /bin/sh" >conf$$.sh
26061 echo "exit 0" >>conf$$.sh
26063 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26071 # Support unset when possible.
26072 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26080 # We need space, tab and new line, in precisely that order. Quoting is
26081 # there to prevent editors from complaining about space-tab.
26082 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26083 # splitting by setting IFS to empty value.)
26088 # Find who we are. Look in the path if we contain no directory separator.
26090 *[\\/]* ) as_myself=$0 ;;
26091 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26092 for as_dir in $PATH
26095 test -z "$as_dir" && as_dir=.
26096 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26102 # We did not find ourselves, most probably we were run as `sh COMMAND'
26103 # in which case we are not to be found in the path.
26104 if test "x$as_myself" = x; then
26107 if test ! -f "$as_myself"; then
26108 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26109 { (exit 1); exit 1; }
26112 # Work around bugs in pre-3.0 UWIN ksh.
26113 for as_var in ENV MAIL MAILPATH
26114 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26122 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26123 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26124 LC_TELEPHONE LC_TIME
26126 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26127 eval $as_var=C; export $as_var
26129 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26133 # Required to use basename.
26134 if expr a : '\(a\)' >/dev/null 2>&1 &&
26135 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26141 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26142 as_basename=basename
26148 # Name of the executable.
26149 as_me=`$as_basename -- "$0" ||
26150 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26151 X"$0" : 'X\(//\)$' \| \
26152 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26154 sed '/^.*\/\([^/][^/]*\)\/*$/{
26173 as_lineno_1=$LINENO
26174 as_lineno_2=$LINENO
26175 test "x$as_lineno_1" != "x$as_lineno_2" &&
26176 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26178 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26179 # uniformly replaced by the line number. The first 'sed' inserts a
26180 # line-number line after each line using $LINENO; the second 'sed'
26181 # does the real work. The second script uses 'N' to pair each
26182 # line-number line with the line containing $LINENO, and appends
26183 # trailing '-' during substitution so that $LINENO is not a special
26184 # case at line end.
26185 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26186 # scripts with optimization help from Paolo Bonzini. Blame Lee
26187 # E. McMahon (1931-1989) for sed's syntax. :-)
26199 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26202 ' >$as_me.lineno &&
26203 chmod +x "$as_me.lineno" ||
26204 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26205 { (exit 1); exit 1; }; }
26207 # Don't try to exec as it changes $[0], causing all sort of problems
26208 # (the dirname of $[0] is not the place where we might find the
26209 # original and so on. Autoconf is especially sensitive to this).
26210 . "./$as_me.lineno"
26211 # Exit status is that of the last command.
26216 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26222 ECHO_C= ECHO_N= ECHO_T=
26223 case `echo -n x` in
26225 case `echo 'x\c'` in
26226 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26233 if expr a : '\(a\)' >/dev/null 2>&1 &&
26234 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26240 rm -f conf$$ conf$$.exe conf$$.file
26241 if test -d conf$$.dir; then
26242 rm -f conf$$.dir/conf$$.file
26248 if ln -s conf$$.file conf$$ 2>/dev/null; then
26250 # ... but there are two gotchas:
26251 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26252 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26253 # In both cases, we have to default to `cp -p'.
26254 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26256 elif ln conf$$.file conf$$ 2>/dev/null; then
26261 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26262 rmdir conf$$.dir 2>/dev/null
26264 if mkdir -p . 2>/dev/null; then
26267 test -d ./-p && rmdir ./-p
26271 if test -x / >/dev/null 2>&1; then
26272 as_test_x='test -x'
26274 if ls -dL / >/dev/null 2>&1; then
26281 if test -d "$1"; then
26287 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26288 ???[sx]*):;;*)false;;esac;fi
26292 as_executable_p=$as_test_x
26294 # Sed expression to map a string onto a valid CPP name.
26295 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26297 # Sed expression to map a string onto a valid variable name.
26298 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26303 # Save the log message, to keep $[0] and so on meaningful, and to
26304 # report actual input values of CONFIG_FILES etc. instead of their
26305 # values after options handling.
26307 This file was extended by $as_me, which was
26308 generated by GNU Autoconf 2.61. Invocation command line was
26310 CONFIG_FILES = $CONFIG_FILES
26311 CONFIG_HEADERS = $CONFIG_HEADERS
26312 CONFIG_LINKS = $CONFIG_LINKS
26313 CONFIG_COMMANDS = $CONFIG_COMMANDS
26316 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26321 cat >>$CONFIG_STATUS <<_ACEOF
26322 # Files that config.status was made for.
26323 config_files="$ac_config_files"
26324 config_headers="$ac_config_headers"
26325 config_commands="$ac_config_commands"
26329 cat >>$CONFIG_STATUS <<\_ACEOF
26331 \`$as_me' instantiates files from templates according to the
26332 current configuration.
26334 Usage: $0 [OPTIONS] [FILE]...
26336 -h, --help print this help, then exit
26337 -V, --version print version number and configuration settings, then exit
26338 -q, --quiet do not print progress messages
26339 -d, --debug don't remove temporary files
26340 --recheck update $as_me by reconfiguring in the same conditions
26341 --file=FILE[:TEMPLATE]
26342 instantiate the configuration file FILE
26343 --header=FILE[:TEMPLATE]
26344 instantiate the configuration header FILE
26346 Configuration files:
26349 Configuration headers:
26352 Configuration commands:
26355 Report bugs to <bug-autoconf@gnu.org>."
26358 cat >>$CONFIG_STATUS <<_ACEOF
26361 configured by $0, generated by GNU Autoconf 2.61,
26362 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26364 Copyright (C) 2006 Free Software Foundation, Inc.
26365 This config.status script is free software; the Free Software Foundation
26366 gives unlimited permission to copy, distribute and modify it."
26372 cat >>$CONFIG_STATUS <<\_ACEOF
26373 # If no file are specified by the user, then we need to provide default
26374 # value. By we need to know if files were specified by the user.
26380 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26381 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26392 # Handling of the options.
26393 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26395 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26396 echo "$ac_cs_version"; exit ;;
26397 --debug | --debu | --deb | --de | --d | -d )
26399 --file | --fil | --fi | --f )
26401 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26402 ac_need_defaults=false;;
26403 --header | --heade | --head | --hea )
26405 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26406 ac_need_defaults=false;;
26408 # Conflict between --help and --header
26409 { echo "$as_me: error: ambiguous option: $1
26410 Try \`$0 --help' for more information." >&2
26411 { (exit 1); exit 1; }; };;
26412 --help | --hel | -h )
26413 echo "$ac_cs_usage"; exit ;;
26414 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26415 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26418 # This is an error.
26419 -*) { echo "$as_me: error: unrecognized option: $1
26420 Try \`$0 --help' for more information." >&2
26421 { (exit 1); exit 1; }; } ;;
26423 *) ac_config_targets="$ac_config_targets $1"
26424 ac_need_defaults=false ;;
26430 ac_configure_extra_args=
26432 if $ac_cs_silent; then
26434 ac_configure_extra_args="$ac_configure_extra_args --silent"
26438 cat >>$CONFIG_STATUS <<_ACEOF
26439 if \$ac_cs_recheck; then
26440 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26441 CONFIG_SHELL=$SHELL
26442 export CONFIG_SHELL
26443 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26447 cat >>$CONFIG_STATUS <<\_ACEOF
26451 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26452 ## Running $as_me. ##
26458 cat >>$CONFIG_STATUS <<_ACEOF
26461 cat >>$CONFIG_STATUS <<\_ACEOF
26463 # Handling of arguments.
26464 for ac_config_target in $ac_config_targets
26466 case $ac_config_target in
26467 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
26468 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
26469 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
26470 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
26471 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
26472 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
26473 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
26474 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
26475 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
26476 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
26477 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
26478 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
26479 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
26480 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
26481 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
26482 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
26483 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
26484 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
26486 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26487 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26488 { (exit 1); exit 1; }; };;
26493 # If the user did not use the arguments to specify the items to instantiate,
26494 # then the envvar interface is used. Set only those that are not.
26495 # We use the long form for the default assignment because of an extremely
26496 # bizarre bug on SunOS 4.1.3.
26497 if $ac_need_defaults; then
26498 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26499 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26500 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26503 # Have a temporary directory for convenience. Make it in the build tree
26504 # simply because there is no reason against having it here, and in addition,
26505 # creating and moving files from /tmp can sometimes cause problems.
26506 # Hook for its removal unless debugging.
26507 # Note that there is a small window in which the directory will not be cleaned:
26508 # after its creation but before its name has been assigned to `$tmp'.
26512 trap 'exit_status=$?
26513 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26515 trap '{ (exit 1); exit 1; }' 1 2 13 15
26517 # Create a (secure) tmp directory for tmp files.
26520 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26521 test -n "$tmp" && test -d "$tmp"
26524 tmp=./conf$$-$RANDOM
26525 (umask 077 && mkdir "$tmp")
26528 echo "$me: cannot create a temporary directory in ." >&2
26529 { (exit 1); exit 1; }
26533 # Set up the sed scripts for CONFIG_FILES section.
26536 # No need to generate the scripts if there are no CONFIG_FILES.
26537 # This happens for instance when ./config.status config.h
26538 if test -n "$CONFIG_FILES"; then
26545 for ac_last_try in false false false false false :; do
26546 cat >conf$$subs.sed <<_ACEOF
26547 SHELL!$SHELL$ac_delim
26548 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26549 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26550 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26551 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26552 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26553 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26554 exec_prefix!$exec_prefix$ac_delim
26555 prefix!$prefix$ac_delim
26556 program_transform_name!$program_transform_name$ac_delim
26557 bindir!$bindir$ac_delim
26558 sbindir!$sbindir$ac_delim
26559 libexecdir!$libexecdir$ac_delim
26560 datarootdir!$datarootdir$ac_delim
26561 datadir!$datadir$ac_delim
26562 sysconfdir!$sysconfdir$ac_delim
26563 sharedstatedir!$sharedstatedir$ac_delim
26564 localstatedir!$localstatedir$ac_delim
26565 includedir!$includedir$ac_delim
26566 oldincludedir!$oldincludedir$ac_delim
26567 docdir!$docdir$ac_delim
26568 infodir!$infodir$ac_delim
26569 htmldir!$htmldir$ac_delim
26570 dvidir!$dvidir$ac_delim
26571 pdfdir!$pdfdir$ac_delim
26572 psdir!$psdir$ac_delim
26573 libdir!$libdir$ac_delim
26574 localedir!$localedir$ac_delim
26575 mandir!$mandir$ac_delim
26576 DEFS!$DEFS$ac_delim
26577 ECHO_C!$ECHO_C$ac_delim
26578 ECHO_N!$ECHO_N$ac_delim
26579 ECHO_T!$ECHO_T$ac_delim
26580 LIBS!$LIBS$ac_delim
26581 build_alias!$build_alias$ac_delim
26582 host_alias!$host_alias$ac_delim
26583 target_alias!$target_alias$ac_delim
26585 CFLAGS!$CFLAGS$ac_delim
26586 LDFLAGS!$LDFLAGS$ac_delim
26587 CPPFLAGS!$CPPFLAGS$ac_delim
26588 ac_ct_CC!$ac_ct_CC$ac_delim
26589 EXEEXT!$EXEEXT$ac_delim
26590 OBJEXT!$OBJEXT$ac_delim
26592 CXXFLAGS!$CXXFLAGS$ac_delim
26593 ac_ct_CXX!$ac_ct_CXX$ac_delim
26595 GREP!$GREP$ac_delim
26596 EGREP!$EGREP$ac_delim
26597 RANLIB!$RANLIB$ac_delim
26598 GMAKE!$GMAKE$ac_delim
26599 MAKE!$MAKE$ac_delim
26600 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
26601 LIBTOOL!$LIBTOOL$ac_delim
26602 build!$build$ac_delim
26603 build_cpu!$build_cpu$ac_delim
26604 build_vendor!$build_vendor$ac_delim
26605 build_os!$build_os$ac_delim
26606 host!$host$ac_delim
26607 host_cpu!$host_cpu$ac_delim
26608 host_vendor!$host_vendor$ac_delim
26609 host_os!$host_os$ac_delim
26611 LN_S!$LN_S$ac_delim
26612 ECHO!$ECHO$ac_delim
26614 STRIP!$STRIP$ac_delim
26615 DSYMUTIL!$DSYMUTIL$ac_delim
26616 NMEDIT!$NMEDIT$ac_delim
26617 CXXCPP!$CXXCPP$ac_delim
26619 FFLAGS!$FFLAGS$ac_delim
26620 ac_ct_F77!$ac_ct_F77$ac_delim
26621 logdir!$logdir$ac_delim
26622 radacctdir!$radacctdir$ac_delim
26623 raddbdir!$raddbdir$ac_delim
26624 PERL!$PERL$ac_delim
26625 SNMPGET!$SNMPGET$ac_delim
26626 SNMPWALK!$SNMPWALK$ac_delim
26627 RUSERS!$RUSERS$ac_delim
26628 ACLOCAL!$ACLOCAL$ac_delim
26629 AUTOCONF!$AUTOCONF$ac_delim
26630 AUTOHEADER!$AUTOHEADER$ac_delim
26631 LOCATE!$LOCATE$ac_delim
26632 DIRNAME!$DIRNAME$ac_delim
26633 LIBREADLINE!$LIBREADLINE$ac_delim
26634 REGEX!$REGEX$ac_delim
26635 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26636 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26637 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26638 PCAP_LIBS!$PCAP_LIBS$ac_delim
26639 LIBPREFIX!$LIBPREFIX$ac_delim
26640 CRYPTLIB!$CRYPTLIB$ac_delim
26641 HOSTINFO!$HOSTINFO$ac_delim
26642 LIBLTDL!$LIBLTDL$ac_delim
26643 INCLTDL!$INCLTDL$ac_delim
26646 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26648 elif $ac_last_try; then
26649 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26650 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26651 { (exit 1); exit 1; }; }
26653 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26657 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26658 if test -n "$ac_eof"; then
26659 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26660 ac_eof=`expr $ac_eof + 1`
26663 cat >>$CONFIG_STATUS <<_ACEOF
26664 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26665 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26668 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26669 s/^/s,@/; s/!/@,|#_!!_#|/
26672 s/'"$ac_delim"'$/,g/; t
26674 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26675 ' >>$CONFIG_STATUS <conf$$subs.sed
26676 rm -f conf$$subs.sed
26677 cat >>$CONFIG_STATUS <<_ACEOF
26683 for ac_last_try in false false false false false :; do
26684 cat >conf$$subs.sed <<_ACEOF
26685 subdirs!$subdirs$ac_delim
26686 MODULES!$MODULES$ac_delim
26687 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26688 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26689 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26690 STATIC_MODULES!$STATIC_MODULES$ac_delim
26691 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26692 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26693 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26694 LIBOBJS!$LIBOBJS$ac_delim
26695 LTLIBOBJS!$LTLIBOBJS$ac_delim
26698 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
26700 elif $ac_last_try; then
26701 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26702 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26703 { (exit 1); exit 1; }; }
26705 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26709 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26710 if test -n "$ac_eof"; then
26711 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26712 ac_eof=`expr $ac_eof + 1`
26715 cat >>$CONFIG_STATUS <<_ACEOF
26716 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26717 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26720 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26721 s/^/s,@/; s/!/@,|#_!!_#|/
26724 s/'"$ac_delim"'$/,g/; t
26726 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26727 ' >>$CONFIG_STATUS <conf$$subs.sed
26728 rm -f conf$$subs.sed
26729 cat >>$CONFIG_STATUS <<_ACEOF
26736 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26737 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26738 # trailing colons and then remove the whole line if VPATH becomes empty
26739 # (actually we leave an empty line to preserve line numbers).
26740 if test "x$srcdir" = x.; then
26741 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26742 s/:*\$(srcdir):*/:/
26743 s/:*\${srcdir}:*/:/
26745 s/^\([^=]*=[ ]*\):*/\1/
26751 cat >>$CONFIG_STATUS <<\_ACEOF
26752 fi # test -n "$CONFIG_FILES"
26755 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26758 :[FHLC]) ac_mode=$ac_tag; continue;;
26760 case $ac_mode$ac_tag in
26762 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26763 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26764 { (exit 1); exit 1; }; };;
26765 :[FH]-) ac_tag=-:-;;
26766 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26783 -) ac_f="$tmp/stdin";;
26784 *) # Look for the file first in the build tree, then in the source tree
26785 # (if the path is not absolute). The absolute path cannot be DOS-style,
26786 # because $ac_f cannot contain `:'.
26790 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26792 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26793 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26794 { (exit 1); exit 1; }; };;
26796 ac_file_inputs="$ac_file_inputs $ac_f"
26799 # Let's still pretend it is `configure' which instantiates (i.e., don't
26800 # use $as_me), people would be surprised to read:
26801 # /* config.h. Generated by config.status. */
26802 configure_input="Generated from "`IFS=:
26803 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26804 if test x"$ac_file" != x-; then
26805 configure_input="$ac_file. $configure_input"
26806 { echo "$as_me:$LINENO: creating $ac_file" >&5
26807 echo "$as_me: creating $ac_file" >&6;}
26811 *:-:* | *:-) cat >"$tmp/stdin";;
26816 ac_dir=`$as_dirname -- "$ac_file" ||
26817 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26818 X"$ac_file" : 'X\(//\)[^/]' \| \
26819 X"$ac_file" : 'X\(//\)$' \| \
26820 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26826 /^X\(\/\/\)[^/].*/{
26841 -*) as_dir=./$as_dir;;
26843 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26847 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26848 *) as_qdir=$as_dir;;
26850 as_dirs="'$as_qdir' $as_dirs"
26851 as_dir=`$as_dirname -- "$as_dir" ||
26852 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26853 X"$as_dir" : 'X\(//\)[^/]' \| \
26854 X"$as_dir" : 'X\(//\)$' \| \
26855 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26861 /^X\(\/\/\)[^/].*/{
26874 test -d "$as_dir" && break
26876 test -z "$as_dirs" || eval "mkdir $as_dirs"
26877 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26878 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26879 { (exit 1); exit 1; }; }; }
26883 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26886 # A ".." for each directory in $ac_dir_suffix.
26887 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26888 case $ac_top_builddir_sub in
26889 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26890 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26893 ac_abs_top_builddir=$ac_pwd
26894 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26895 # for backward compatibility:
26896 ac_top_builddir=$ac_top_build_prefix
26899 .) # We are building in place.
26901 ac_top_srcdir=$ac_top_builddir_sub
26902 ac_abs_top_srcdir=$ac_pwd ;;
26903 [\\/]* | ?:[\\/]* ) # Absolute name.
26904 ac_srcdir=$srcdir$ac_dir_suffix;
26905 ac_top_srcdir=$srcdir
26906 ac_abs_top_srcdir=$srcdir ;;
26907 *) # Relative name.
26908 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26909 ac_top_srcdir=$ac_top_build_prefix$srcdir
26910 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26912 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26923 cat >>$CONFIG_STATUS <<\_ACEOF
26924 # If the template does not know about datarootdir, expand it.
26925 # FIXME: This hack should be removed a few years after 2.60.
26926 ac_datarootdir_hack=; ac_datarootdir_seen=
26928 case `sed -n '/datarootdir/ {
26937 ' $ac_file_inputs` in
26938 *datarootdir*) ac_datarootdir_seen=yes;;
26939 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26940 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26941 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26943 cat >>$CONFIG_STATUS <<_ACEOF
26944 ac_datarootdir_hack='
26945 s&@datadir@&$datadir&g
26946 s&@docdir@&$docdir&g
26947 s&@infodir@&$infodir&g
26948 s&@localedir@&$localedir&g
26949 s&@mandir@&$mandir&g
26950 s&\\\${datarootdir}&$datarootdir&g' ;;
26954 # Neutralize VPATH when `$srcdir' = `.'.
26955 # Shell code in configure.ac might set extrasub.
26956 # FIXME: do we really want to maintain this feature?
26957 cat >>$CONFIG_STATUS <<_ACEOF
26961 cat >>$CONFIG_STATUS <<\_ACEOF
26963 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26964 s&@configure_input@&$configure_input&;t t
26965 s&@top_builddir@&$ac_top_builddir_sub&;t t
26966 s&@srcdir@&$ac_srcdir&;t t
26967 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26968 s&@top_srcdir@&$ac_top_srcdir&;t t
26969 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26970 s&@builddir@&$ac_builddir&;t t
26971 s&@abs_builddir@&$ac_abs_builddir&;t t
26972 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26973 $ac_datarootdir_hack
26974 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26976 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26977 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26978 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26979 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26980 which seems to be undefined. Please make sure it is defined." >&5
26981 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26982 which seems to be undefined. Please make sure it is defined." >&2;}
26986 -) cat "$tmp/out"; rm -f "$tmp/out";;
26987 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26996 # Transform confdefs.h into a sed script `conftest.defines', that
26997 # substitutes the proper values into config.h.in to produce config.h.
26998 rm -f conftest.defines conftest.tail
26999 # First, append a space to every undef/define line, to ease matching.
27000 echo 's/$/ /' >conftest.defines
27001 # Then, protect against being on the right side of a sed subst, or in
27002 # an unquoted here document, in config.status. If some macros were
27003 # called several times there might be several #defines for the same
27004 # symbol, which is useless. But do not sort them, since the last
27005 # AC_DEFINE must be honored.
27006 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27007 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27008 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27009 # PARAMS is the parameter list in the macro definition--in most cases, it's
27010 # just an empty string.
27011 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27012 ac_dB='\\)[ (].*,\\1define\\2'
27020 s/^[ ]*#[ ]*define[ ][ ]*//
27025 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27026 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27027 ' >>conftest.defines
27029 # Remove the space that was appended to ease matching.
27030 # Then replace #undef with comments. This is necessary, for
27031 # example, in the case of _POSIX_SOURCE, which is predefined and required
27032 # on some systems where configure will not decide to define it.
27033 # (The regexp can be short, since the line contains either #define or #undef.)
27035 s,^[ #]*u.*,/* & */,' >>conftest.defines
27037 # Break up conftest.defines:
27038 ac_max_sed_lines=50
27040 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27041 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27042 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27044 ac_in='$ac_file_inputs'
27045 ac_out='"$tmp/out1"'
27046 ac_nxt='"$tmp/out2"'
27050 # Write a here document:
27051 cat >>$CONFIG_STATUS <<_ACEOF
27052 # First, check the format of the line:
27053 cat >"\$tmp/defines.sed" <<\\CEOF
27054 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27055 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27059 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27061 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27062 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27063 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27064 grep . conftest.tail >/dev/null || break
27065 rm -f conftest.defines
27066 mv conftest.tail conftest.defines
27068 rm -f conftest.defines conftest.tail
27070 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27071 cat >>$CONFIG_STATUS <<\_ACEOF
27072 if test x"$ac_file" != x-; then
27073 echo "/* $configure_input */" >"$tmp/config.h"
27074 cat "$ac_result" >>"$tmp/config.h"
27075 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27076 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27077 echo "$as_me: $ac_file is unchanged" >&6;}
27080 mv "$tmp/config.h" $ac_file
27083 echo "/* $configure_input */"
27089 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27090 echo "$as_me: executing $ac_file commands" >&6;}
27095 case $ac_file$ac_mode in
27096 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
27097 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
27098 "main-chmod":C) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
27099 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
27105 { (exit 0); exit 0; }
27107 chmod +x $CONFIG_STATUS
27108 ac_clean_files=$ac_clean_files_save
27111 # configure is writing to config.log, and then calls config.status.
27112 # config.status does its own redirection, appending to config.log.
27113 # Unfortunately, on DOS this fails, as config.log is still kept open
27114 # by configure, so config.status won't be able to write to it; its
27115 # output is simply discarded. So we exec the FD to /dev/null,
27116 # effectively closing config.log, so it can be properly (re)opened and
27117 # appended to by config.status. When coming back to configure, we
27118 # need to make the FD available again.
27119 if test "$no_create" != yes; then
27121 ac_config_status_args=
27122 test "$silent" = yes &&
27123 ac_config_status_args="$ac_config_status_args --quiet"
27125 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27127 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27128 # would make configure fail if this is the last instruction.
27129 $ac_cs_success || { (exit 1); exit 1; }
27133 # CONFIG_SUBDIRS section.
27135 if test "$no_recursion" != yes; then
27137 # Remove --cache-file and --srcdir arguments so they do not pile up.
27138 ac_sub_configure_args=
27140 eval "set x $ac_configure_args"
27144 if test -n "$ac_prev"; then
27149 -cache-file | --cache-file | --cache-fil | --cache-fi \
27150 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27151 ac_prev=cache_file ;;
27152 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27153 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27156 --config-cache | -C)
27158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27168 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27170 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27174 # Always prepend --prefix to ensure using the same prefix
27175 # in subdir configurations.
27176 ac_arg="--prefix=$prefix"
27178 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27180 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27183 if test "$silent" = yes; then
27184 ac_sub_configure_args="--silent $ac_sub_configure_args"
27188 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27190 # Do not complain, so a configure script can configure whichever
27191 # parts of a large source tree are present.
27192 test -d "$srcdir/$ac_dir" || continue
27194 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27195 echo "$as_me:$LINENO: $ac_msg" >&5
27199 -*) as_dir=./$as_dir;;
27201 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27205 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27206 *) as_qdir=$as_dir;;
27208 as_dirs="'$as_qdir' $as_dirs"
27209 as_dir=`$as_dirname -- "$as_dir" ||
27210 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27211 X"$as_dir" : 'X\(//\)[^/]' \| \
27212 X"$as_dir" : 'X\(//\)$' \| \
27213 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27219 /^X\(\/\/\)[^/].*/{
27232 test -d "$as_dir" && break
27234 test -z "$as_dirs" || eval "mkdir $as_dirs"
27235 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27236 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27237 { (exit 1); exit 1; }; }; }
27241 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27243 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27244 # A ".." for each directory in $ac_dir_suffix.
27245 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27246 case $ac_top_builddir_sub in
27247 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27248 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27251 ac_abs_top_builddir=$ac_pwd
27252 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27253 # for backward compatibility:
27254 ac_top_builddir=$ac_top_build_prefix
27257 .) # We are building in place.
27259 ac_top_srcdir=$ac_top_builddir_sub
27260 ac_abs_top_srcdir=$ac_pwd ;;
27261 [\\/]* | ?:[\\/]* ) # Absolute name.
27262 ac_srcdir=$srcdir$ac_dir_suffix;
27263 ac_top_srcdir=$srcdir
27264 ac_abs_top_srcdir=$srcdir ;;
27265 *) # Relative name.
27266 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27267 ac_top_srcdir=$ac_top_build_prefix$srcdir
27268 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27270 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27275 # Check for guested configure; otherwise get Cygnus style configure.
27276 if test -f "$ac_srcdir/configure.gnu"; then
27277 ac_sub_configure=$ac_srcdir/configure.gnu
27278 elif test -f "$ac_srcdir/configure"; then
27279 ac_sub_configure=$ac_srcdir/configure
27280 elif test -f "$ac_srcdir/configure.in"; then
27281 # This should be Cygnus configure.
27282 ac_sub_configure=$ac_aux_dir/configure
27284 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27285 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27289 # The recursion is here.
27290 if test -n "$ac_sub_configure"; then
27291 # Make the cache file name correct relative to the subdirectory.
27292 case $cache_file in
27293 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27294 *) # Relative name.
27295 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27298 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27299 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27300 # The eval makes quoting arguments work.
27301 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27302 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27303 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27304 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27305 { (exit 1); exit 1; }; }