2 # From configure.in Revision: 1.198.2.15.2.12 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60.
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 Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 BIN_SH=xpg4; export BIN_SH # for Tru64
26 DUALCASE=1; export DUALCASE # for MKS sh
30 # Avoid depending upon Character Ranges.
31 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34 as_cr_digits='0123456789'
35 as_cr_alnum=$as_cr_Letters$as_cr_digits
37 # The user is always right.
38 if test "${PATH_SEPARATOR+set}" != set; then
39 echo "#! /bin/sh" >conf$$.sh
40 echo "exit 0" >>conf$$.sh
42 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50 # Support unset when possible.
51 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59 # We need space, tab and new line, in precisely that order. Quoting is
60 # there to prevent editors from complaining about space-tab.
61 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
62 # splitting by setting IFS to empty value.)
67 # Find who we are. Look in the path if we contain no directory separator.
69 *[\\/]* ) as_myself=$0 ;;
70 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 test -z "$as_dir" && as_dir=.
75 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 # We did not find ourselves, most probably we were run as `sh COMMAND'
82 # in which case we are not to be found in the path.
83 if test "x$as_myself" = x; then
86 if test ! -f "$as_myself"; then
87 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 # Work around bugs in pre-3.0 UWIN ksh.
92 for as_var in ENV MAIL MAILPATH
93 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
102 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
106 eval $as_var=C; export $as_var
108 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 # Required to use basename.
113 if expr a : '\(a\)' >/dev/null 2>&1 &&
114 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 # Name of the executable.
128 as_me=`$as_basename -- "$0" ||
129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
130 X"$0" : 'X\(//\)$' \| \
131 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 sed '/^.*\/\([^/][^/]*\)\/*$/{
151 if test "x$CONFIG_SHELL" = x; then
152 if (eval ":") 2>/dev/null; then
158 if test $as_have_required = yes && (eval ":
168 as_func_ret_success () {
171 as_func_ret_failure () {
176 if as_func_success; then
180 echo as_func_success failed.
183 if as_func_failure; then
185 echo as_func_failure succeeded.
188 if as_func_ret_success; then
192 echo as_func_ret_success failed.
195 if as_func_ret_failure; then
197 echo as_func_ret_failure succeeded.
200 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 echo positional parameters were not saved.
207 test \$exitcode = 0) || { (exit 1); exit 1; }
212 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
213 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
214 ") 2> /dev/null; then
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 for as_shell in $as_candidate_shells $SHELL; do
234 # Try only shells that exist, to save several forks.
235 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
236 { ("$as_shell") 2> /dev/null <<\_ASEOF
237 # Be Bourne compatible
238 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
242 # is contrary to our usage. Disable this feature.
243 alias -g '${1+"$@"}'='"$@"'
246 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 BIN_SH=xpg4; export BIN_SH # for Tru64
249 DUALCASE=1; export DUALCASE # for MKS sh
254 CONFIG_SHELL=$as_shell
256 if { "$as_shell" 2> /dev/null <<\_ASEOF
257 # Be Bourne compatible
258 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
262 # is contrary to our usage. Disable this feature.
263 alias -g '${1+"$@"}'='"$@"'
266 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 BIN_SH=xpg4; export BIN_SH # for Tru64
269 DUALCASE=1; export DUALCASE # for MKS sh
281 as_func_ret_success () {
284 as_func_ret_failure () {
289 if as_func_success; then
293 echo as_func_success failed.
296 if as_func_failure; then
298 echo as_func_failure succeeded.
301 if as_func_ret_success; then
305 echo as_func_ret_success failed.
308 if as_func_ret_failure; then
310 echo as_func_ret_failure succeeded.
313 if ( set x; as_func_ret_success y && test x = "$1" ); then
317 echo positional parameters were not saved.
320 test $exitcode = 0) || { (exit 1); exit 1; }
325 test "x$as_lineno_1" != "x$as_lineno_2" &&
326 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
337 if test "x$CONFIG_SHELL" != x; then
338 for as_var in BASH_ENV ENV
339 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
342 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 if test $as_have_required = no; then
347 echo This script requires a shell more modern than all the
348 echo shells that I found on your system. Please install a
349 echo modern shell, or manually run the script under such a
350 echo shell if you do have one.
351 { (exit 1); exit 1; }
361 (eval "as_func_return () {
370 as_func_ret_success () {
373 as_func_ret_failure () {
378 if as_func_success; then
382 echo as_func_success failed.
385 if as_func_failure; then
387 echo as_func_failure succeeded.
390 if as_func_ret_success; then
394 echo as_func_ret_success failed.
397 if as_func_ret_failure; then
399 echo as_func_ret_failure succeeded.
402 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 echo positional parameters were not saved.
409 test \$exitcode = 0") || {
410 echo No shell found that supports shell functions.
411 echo Please tell autoconf@gnu.org about your system,
412 echo including any error possibly output before this
420 test "x$as_lineno_1" != "x$as_lineno_2" &&
421 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
424 # uniformly replaced by the line number. The first 'sed' inserts a
425 # line-number line after each line using $LINENO; the second 'sed'
426 # does the real work. The second script uses 'N' to pair each
427 # line-number line with the line containing $LINENO, and appends
428 # trailing '-' during substitution so that $LINENO is not a special
430 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
431 # scripts with optimization help from Paolo Bonzini. Blame Lee
432 # E. McMahon (1931-1989) for sed's syntax. :-)
444 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 chmod +x "$as_me.lineno" ||
449 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
450 { (exit 1); exit 1; }; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
461 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 ECHO_C= ECHO_N= ECHO_T=
471 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 if expr a : '\(a\)' >/dev/null 2>&1 &&
479 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
506 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
507 rmdir conf$$.dir 2>/dev/null
509 if mkdir -p . 2>/dev/null; then
512 test -d ./-p && rmdir ./-p
516 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
517 # systems may use methods other than mode bits to determine executability.
518 cat >conf$$.file <<_ASEOF
523 if test -x conf$$.file >/dev/null 2>&1; then
524 as_executable_p="test -x"
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 # Check that we are running under the correct shell.
540 SHELL=${CONFIG_SHELL-/bin/sh}
544 # Remove one level of quotation (which was required for Make).
545 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
550 if test "X$1" = X--no-reexec; then
551 # Discard the --no-reexec flag, and continue.
553 elif test "X$1" = X--fallback-echo; then
554 # Avoid inline document here, it may be left over
556 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
557 # Yippee, $echo works!
560 # Restart under the correct shell.
561 exec $SHELL "$0" --no-reexec ${1+"$@"}
564 if test "X$1" = X--fallback-echo; then
565 # used as fallback echo
573 # The HP-UX ksh and POSIX shell print the target directory to stdout
575 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
577 if test -z "$ECHO"; then
578 if test "X${echo_test_string+set}" != Xset; then
579 # find a string as large as possible, as long as the shell can cope with it
580 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
581 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
582 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
583 echo_test_string=`eval $cmd` &&
584 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
591 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
592 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
593 test "X$echo_testing_string" = "X$echo_test_string"; then
596 # The Solaris, AIX, and Digital Unix default echo programs unquote
597 # backslashes. This makes it impossible to quote backslashes using
598 # echo "$something" | sed 's/\\/\\\\/g'
600 # So, first we look for a working echo in the user's PATH.
602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
603 for dir in $PATH /usr/ucb; do
605 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
606 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
615 if test "X$echo" = Xecho; then
616 # We didn't find a better echo, so look for alternatives.
617 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
618 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
619 test "X$echo_testing_string" = "X$echo_test_string"; then
620 # This shell has a builtin print -r that does the trick.
622 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
623 test "X$CONFIG_SHELL" != X/bin/ksh; then
624 # If we have ksh, try running configure again with it.
625 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
626 export ORIGINAL_CONFIG_SHELL
627 CONFIG_SHELL=/bin/ksh
629 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
638 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644 SHELL="$CONFIG_SHELL"
646 echo="$CONFIG_SHELL $0 --fallback-echo"
647 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
648 test "X$echo_testing_string" = 'X\t' &&
649 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
651 echo="$CONFIG_SHELL $0 --fallback-echo"
653 # maybe with a smaller string...
656 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
657 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
664 if test "$prev" != 'sed 50q "$0"'; then
665 echo_test_string=`eval $prev`
666 export echo_test_string
667 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669 # Oops. We lost completely, so just stick with echo.
678 # Copy echo and quote the copy suitably for passing to libtool from
679 # the Makefile, instead of quoting the original, which is used later.
681 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
682 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
688 tagnames=${tagnames+${tagnames},}CXX
690 tagnames=${tagnames+${tagnames},}F77
692 exec 7<&0 </dev/null 6>&1
695 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
696 # so uname gets run too.
697 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
702 ac_default_prefix=/usr/local
704 ac_config_libobj_dir=.
710 SHELL=${CONFIG_SHELL-/bin/sh}
712 # Identity of this package.
719 ac_unique_file="src/main/radiusd.c"
720 # Factoring default headers for most tests.
721 ac_includes_default="\
724 # include <sys/types.h>
727 # include <sys/stat.h>
738 # if !STDC_HEADERS && HAVE_MEMORY_H
744 # include <strings.h>
747 # include <inttypes.h>
765 program_transform_name
861 RADIUSD_MAJOR_VERSION
862 RADIUSD_MINOR_VERSION
867 ac_precious_vars='build_alias
881 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
883 # Initialize some variables set by options.
885 ac_init_version=false
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
895 program_transform_name=s,x,x,
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir='${exec_prefix}/bin'
910 sbindir='${exec_prefix}/sbin'
911 libexecdir='${exec_prefix}/libexec'
912 datarootdir='${prefix}/share'
913 datadir='${datarootdir}'
914 sysconfdir='${prefix}/etc'
915 sharedstatedir='${prefix}/com'
916 localstatedir='${prefix}/var'
917 includedir='${prefix}/include'
918 oldincludedir='/usr/include'
919 docdir='${datarootdir}/doc/${PACKAGE}'
920 infodir='${datarootdir}/info'
925 libdir='${exec_prefix}/lib'
926 localedir='${datarootdir}/locale'
927 mandir='${datarootdir}/man'
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
935 eval $ac_prev=\$ac_option
941 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 # Accept the important Cygnus configure options, so we can diagnose typos.
947 case $ac_dashdash$ac_option in
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
956 -build | --build | --buil | --bui | --bu)
957 ac_prev=build_alias ;;
958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959 build_alias=$ac_optarg ;;
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966 cache_file=$ac_optarg ;;
969 cache_file=config.cache ;;
971 -datadir | --datadir | --datadi | --datad)
973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
974 datadir=$ac_optarg ;;
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
983 -disable-* | --disable-*)
984 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
987 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
988 { (exit 1); exit 1; }; }
989 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
990 eval enable_$ac_feature=no ;;
992 -docdir | --docdir | --docdi | --doc | --do)
994 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
997 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000 dvidir=$ac_optarg ;;
1002 -enable-* | --enable-*)
1003 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1006 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007 { (exit 1); exit 1; }; }
1008 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1009 eval enable_$ac_feature=\$ac_optarg ;;
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 htmldir=$ac_optarg ;;
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1054 -libdir | --libdir | --libdi | --libd)
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1145 -psdir | --psdir | --psdi | --psd | --ps)
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 sbindir=$ac_optarg ;;
1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162 | --sharedst | --shareds | --shared | --share | --shar \
1164 ac_prev=sharedstatedir ;;
1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 sharedstatedir=$ac_optarg ;;
1171 -site | --site | --sit)
1173 -site=* | --site=* | --sit=*)
1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179 srcdir=$ac_optarg ;;
1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182 | --syscon | --sysco | --sysc | --sys | --sy)
1183 ac_prev=sysconfdir ;;
1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186 sysconfdir=$ac_optarg ;;
1188 -target | --target | --targe | --targ | --tar | --ta | --t)
1189 ac_prev=target_alias ;;
1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191 target_alias=$ac_optarg ;;
1193 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1196 -version | --version | --versio | --versi | --vers | -V)
1197 ac_init_version=: ;;
1200 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1203 { echo "$as_me: error: invalid package name: $ac_package" >&2
1204 { (exit 1); exit 1; }; }
1205 ac_package=`echo $ac_package| sed 's/-/_/g'`
1206 eval with_$ac_package=\$ac_optarg ;;
1208 -without-* | --without-*)
1209 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1212 { echo "$as_me: error: invalid package name: $ac_package" >&2
1213 { (exit 1); exit 1; }; }
1214 ac_package=`echo $ac_package | sed 's/-/_/g'`
1215 eval with_$ac_package=no ;;
1218 # Obsolete; use --with-x.
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1235 -*) { echo "$as_me: error: unrecognized option: $ac_option
1236 Try \`$0 --help' for more information." >&2
1237 { (exit 1); exit 1; }; }
1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1244 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1245 { (exit 1); exit 1; }; }
1246 eval $ac_envvar=\$ac_optarg
1247 export $ac_envvar ;;
1250 # FIXME: should be removed in autoconf 3.0.
1251 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1260 if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262 { echo "$as_me: error: missing argument to $ac_option" >&2
1263 { (exit 1); exit 1; }; }
1266 # Be sure to have absolute directory names.
1267 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
1272 eval ac_val=\$$ac_var
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1278 { (exit 1); exit 1; }; }
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1286 target=$target_alias
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1293 If a cross compiler is detected then cross compile mode will be used." >&2
1294 elif test "x$build_alias" != "x$host_alias"; then
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302 test "$silent" = yes && exec 6>/dev/null
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 { echo "$as_me: error: Working directory cannot be determined" >&2
1309 { (exit 1); exit 1; }; }
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 { echo "$as_me: error: pwd does not report name of working directory" >&2
1312 { (exit 1); exit 1; }; }
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$0" ||
1320 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$0" : 'X\(//\)[^/]' \| \
1322 X"$0" : 'X\(//\)$' \| \
1323 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1347 ac_srcdir_defaulted=no
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1352 { (exit 1); exit 1; }; }
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1357 { (exit 1); exit 1; }; }
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 # Report the --help message.
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1383 \`configure' configures this package to adapt to many kinds of systems.
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1390 Defaults for the options are specified in brackets.
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1414 For better control, use the options below.
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1446 if test -n "$ac_init_help"; then
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-shared[=PKGS] build shared libraries [default=yes]
1454 --enable-static[=PKGS] build static libraries [default=yes]
1455 --enable-fast-install[=PKGS]
1456 optimize for fast installation [default=yes]
1457 --disable-libtool-lock avoid locking (might break parallel builds)
1458 --enable-strict-dependencies Fail configure on lack of module dependancy.
1459 --enable-developer Enables features of interest to developers.
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1464 --with-system-libtool try to use libtool installed in your system default=use our own
1465 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1466 --with-pic try to use only PIC/non-PIC objects [default=use
1468 --with-tags[=TAGS] include additional configurations [automatic]
1469 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1470 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1471 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1472 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1473 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1474 --with-threads Use threads, if available. (default=yes)
1475 --with-snmp Compile in SNMP support. (default=yes)
1476 --with-large-files Compile in large (2G+) file support. (default=no)
1477 --with-static-modules=QUOTED-MODULE-LIST
1478 --with-modules=QUOTED-MODULE-LIST
1479 --with-experimental-modules Use experimental and unstable modules. (default=no)
1480 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1481 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1482 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1483 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1484 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1485 --with-edir Enable Novell eDirectory integration. (default=no)
1487 Some influential environment variables:
1488 CC C compiler command
1489 CFLAGS C compiler flags
1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
1492 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1495 CXX C++ compiler command
1496 CXXFLAGS C++ compiler flags
1497 CXXCPP C++ preprocessor
1498 F77 Fortran 77 compiler command
1499 FFLAGS Fortran 77 compiler flags
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" || continue
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1531 .) # We are building in place.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1555 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1565 generated by GNU Autoconf 2.60
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1574 cat >config.log <<_ACEOF
1575 This file contains any messages produced by compilers while
1576 running configure, to aid debugging if configure makes a mistake.
1578 It was created by $as_me, which was
1579 generated by GNU Autoconf 2.60. Invocation command line was
1591 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1597 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1600 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1601 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1602 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1603 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1604 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1605 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1606 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 test -z "$as_dir" && as_dir=.
1615 echo "PATH: $as_dir"
1631 # Keep a trace of the command line.
1632 # Strip out --no-create and --no-recursion so they do not pile up.
1633 # Strip out --silent because we don't want to record it for future runs.
1634 # Also quote any args containing shell meta-characters.
1635 # Make two passes to allow for proper duplicate-argument suppression.
1639 ac_must_keep_next=false
1645 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647 | -silent | --silent | --silen | --sile | --sil)
1650 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1653 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1655 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1656 if test $ac_must_keep_next = true; then
1657 ac_must_keep_next=false # Got value, back to normal.
1660 *=* | --config-cache | -C | -disable-* | --disable-* \
1661 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663 | -with-* | --with-* | -without-* | --without-* | --x)
1664 case "$ac_configure_args0 " in
1665 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1668 -* ) ac_must_keep_next=true ;;
1671 ac_configure_args="$ac_configure_args '$ac_arg'"
1676 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1679 # When interrupted or exit'd, cleanup temporary files, and complete
1680 # config.log. We remove comments because anyway the quotes in there
1681 # would cause problems or look ugly.
1682 # WARNING: Use '\'' to represent an apostrophe within the trap.
1683 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1684 trap 'exit_status=$?
1685 # Save into config.log some information that might help in debugging.
1690 ## ---------------- ##
1691 ## Cache variables. ##
1692 ## ---------------- ##
1695 # The following way of writing the cache mishandles newlines in values,
1697 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698 eval ac_val=\$$ac_var
1702 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1706 _ | IFS | as_nl) ;; #(
1707 *) $as_unset $ac_var ;;
1712 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713 *${as_nl}ac_space=\ *)
1715 "s/'\''/'\''\\\\'\'''\''/g;
1716 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1719 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1727 ## ----------------- ##
1728 ## Output variables. ##
1729 ## ----------------- ##
1732 for ac_var in $ac_subst_vars
1734 eval ac_val=\$$ac_var
1736 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1738 echo "$ac_var='\''$ac_val'\''"
1742 if test -n "$ac_subst_files"; then
1744 ## ------------------- ##
1745 ## File substitutions. ##
1746 ## ------------------- ##
1749 for ac_var in $ac_subst_files
1751 eval ac_val=\$$ac_var
1753 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755 echo "$ac_var='\''$ac_val'\''"
1760 if test -s confdefs.h; then
1770 test "$ac_signal" != 0 &&
1771 echo "$as_me: caught signal $ac_signal"
1772 echo "$as_me: exit $exit_status"
1774 rm -f core *.core core.conftest.* &&
1775 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1778 for ac_signal in 1 2 13 15; do
1779 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1783 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1784 rm -f -r conftest* confdefs.h
1786 # Predefined preprocessor variables.
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_NAME "$PACKAGE_NAME"
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_STRING "$PACKAGE_STRING"
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1813 # Let the site file select an alternate cache file if it wants to.
1814 # Prefer explicitly selected file to automatically selected ones.
1815 if test -n "$CONFIG_SITE"; then
1816 set x "$CONFIG_SITE"
1817 elif test "x$prefix" != xNONE; then
1818 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1820 set x "$ac_default_prefix/share/config.site" \
1821 "$ac_default_prefix/etc/config.site"
1826 if test -r "$ac_site_file"; then
1827 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828 echo "$as_me: loading site script $ac_site_file" >&6;}
1829 sed 's/^/| /' "$ac_site_file" >&5
1834 if test -r "$cache_file"; then
1835 # Some versions of bash will fail to source /dev/null (special
1836 # files actually), so we avoid doing that.
1837 if test -f "$cache_file"; then
1838 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839 echo "$as_me: loading cache $cache_file" >&6;}
1841 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842 *) . "./$cache_file";;
1846 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847 echo "$as_me: creating cache $cache_file" >&6;}
1851 # Check that the precious variables saved in the cache have kept the same
1853 ac_cache_corrupted=false
1854 for ac_var in $ac_precious_vars; do
1855 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856 eval ac_new_set=\$ac_env_${ac_var}_set
1857 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858 eval ac_new_val=\$ac_env_${ac_var}_value
1859 case $ac_old_set,$ac_new_set in
1861 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863 ac_cache_corrupted=: ;;
1865 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867 ac_cache_corrupted=: ;;
1870 if test "x$ac_old_val" != "x$ac_new_val"; then
1871 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1874 echo "$as_me: former value: $ac_old_val" >&2;}
1875 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1876 echo "$as_me: current value: $ac_new_val" >&2;}
1877 ac_cache_corrupted=:
1880 # Pass precious variables to config.status.
1881 if test "$ac_new_set" = set; then
1883 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884 *) ac_arg=$ac_var=$ac_new_val ;;
1886 case " $ac_configure_args " in
1887 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1888 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1892 if $ac_cache_corrupted; then
1893 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897 { (exit 1); exit 1; }; }
1917 ac_cpp='$CPP $CPPFLAGS'
1918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1927 RADIUSD_MAJOR_VERSION=1
1928 RADIUSD_MINOR_VERSION=1.6
1929 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
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
1937 if test -n "$ac_tool_prefix"; then
1938 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1939 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1942 if test "${ac_cv_prog_CC+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 if test -n "$CC"; then
1946 ac_cv_prog_CC="$CC" # Let the user override the test.
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 test -z "$as_dir" && as_dir=.
1953 for ac_exec_ext in '' $ac_executable_extensions; do
1954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1955 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966 if test -n "$CC"; then
1967 { echo "$as_me:$LINENO: result: $CC" >&5
1968 echo "${ECHO_T}$CC" >&6; }
1970 { echo "$as_me:$LINENO: result: no" >&5
1971 echo "${ECHO_T}no" >&6; }
1976 if test -z "$ac_cv_prog_CC"; then
1978 # Extract the first word of "gcc", so it can be a program name with args.
1979 set dummy gcc; ac_word=$2
1980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 if test -n "$ac_ct_CC"; then
1986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1995 ac_cv_prog_ac_ct_CC="gcc"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2006 if test -n "$ac_ct_CC"; then
2007 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2008 echo "${ECHO_T}$ac_ct_CC" >&6; }
2010 { echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6; }
2014 if test "x$ac_ct_CC" = x; then
2017 case $cross_compiling:$ac_tool_warned in
2019 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2020 whose name does not start with the host triplet. If you think this
2021 configuration is useful to you, please write to autoconf@gnu.org." >&5
2022 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2023 whose name does not start with the host triplet. If you think this
2024 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2025 ac_tool_warned=yes ;;
2033 if test -z "$CC"; then
2034 if test -n "$ac_tool_prefix"; then
2035 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2036 set dummy ${ac_tool_prefix}cc; ac_word=$2
2037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2039 if test "${ac_cv_prog_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 if test -n "$CC"; then
2043 ac_cv_prog_CC="$CC" # Let the user override the test.
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2052 ac_cv_prog_CC="${ac_tool_prefix}cc"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 if test -n "$CC"; then
2064 { echo "$as_me:$LINENO: result: $CC" >&5
2065 echo "${ECHO_T}$CC" >&6; }
2067 { echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6; }
2074 if test -z "$CC"; then
2075 # Extract the first word of "cc", so it can be a program name with args.
2076 set dummy cc; ac_word=$2
2077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2079 if test "${ac_cv_prog_CC+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 if test -n "$CC"; then
2083 ac_cv_prog_CC="$CC" # Let the user override the test.
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2093 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2094 ac_prog_rejected=yes
2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 if test $ac_prog_rejected = yes; then
2106 # We found a bogon in the path, so make sure we never use it.
2107 set dummy $ac_cv_prog_CC
2109 if test $# != 0; then
2110 # We chose a different compiler from the bogus one.
2111 # However, it has the same basename, so the bogon will be chosen
2112 # first if we set CC to just the basename; use the full file name.
2114 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2120 if test -n "$CC"; then
2121 { echo "$as_me:$LINENO: result: $CC" >&5
2122 echo "${ECHO_T}$CC" >&6; }
2124 { echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6; }
2130 if test -z "$CC"; then
2131 if test -n "$ac_tool_prefix"; then
2132 for ac_prog in cl.exe
2134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2135 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2138 if test "${ac_cv_prog_CC+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 if test -n "$CC"; then
2142 ac_cv_prog_CC="$CC" # Let the user override the test.
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2151 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2162 if test -n "$CC"; then
2163 { echo "$as_me:$LINENO: result: $CC" >&5
2164 echo "${ECHO_T}$CC" >&6; }
2166 { echo "$as_me:$LINENO: result: no" >&5
2167 echo "${ECHO_T}no" >&6; }
2171 test -n "$CC" && break
2174 if test -z "$CC"; then
2176 for ac_prog in cl.exe
2178 # Extract the first word of "$ac_prog", so it can be a program name with args.
2179 set dummy $ac_prog; ac_word=$2
2180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2182 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 if test -n "$ac_ct_CC"; then
2186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 test -z "$as_dir" && as_dir=.
2193 for ac_exec_ext in '' $ac_executable_extensions; do
2194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2195 ac_cv_prog_ac_ct_CC="$ac_prog"
2196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2206 if test -n "$ac_ct_CC"; then
2207 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2208 echo "${ECHO_T}$ac_ct_CC" >&6; }
2210 { echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6; }
2215 test -n "$ac_ct_CC" && break
2218 if test "x$ac_ct_CC" = x; then
2221 case $cross_compiling:$ac_tool_warned in
2223 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2224 whose name does not start with the host triplet. If you think this
2225 configuration is useful to you, please write to autoconf@gnu.org." >&5
2226 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2227 whose name does not start with the host triplet. If you think this
2228 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2229 ac_tool_warned=yes ;;
2238 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: no acceptable C compiler found in \$PATH
2241 See \`config.log' for more details." >&2;}
2242 { (exit 1); exit 1; }; }
2244 # Provide some information about the compiler.
2245 echo "$as_me:$LINENO: checking for C compiler version" >&5
2246 ac_compiler=`set X $ac_compile; echo $2`
2247 { (ac_try="$ac_compiler --version >&5"
2249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2250 *) ac_try_echo=$ac_try;;
2252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2253 (eval "$ac_compiler --version >&5") 2>&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }
2257 { (ac_try="$ac_compiler -v >&5"
2259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2263 (eval "$ac_compiler -v >&5") 2>&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }
2267 { (ac_try="$ac_compiler -V >&5"
2269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270 *) ac_try_echo=$ac_try;;
2272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2273 (eval "$ac_compiler -V >&5") 2>&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }
2278 cat >conftest.$ac_ext <<_ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2293 ac_clean_files_save=$ac_clean_files
2294 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2295 # Try to create an executable without -o first, disregard a.out.
2296 # It will help us diagnose broken compilers, and finding out an intuition
2298 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2299 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2300 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2302 # List of possible output files, starting from the most likely.
2303 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2304 # only as a last resort. b.out is created by i960 compilers.
2305 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2307 # The IRIX 6 linker writes into existing files which may not be
2308 # executable, retaining their permissions. Remove them first so a
2309 # subsequent execution test works.
2311 for ac_file in $ac_files
2314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2315 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2320 if { (ac_try="$ac_link_default"
2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2326 (eval "$ac_link_default") 2>&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; then
2330 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2331 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2332 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2333 # so that the user can short-circuit this test for compilers unknown to
2335 for ac_file in $ac_files
2337 test -f "$ac_file" || continue
2339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2342 # We found the default executable, but exeext='' is most
2346 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2348 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2350 # We set ac_cv_exeext here because the later test for it is not
2351 # safe: cross compilers may not add the suffix if given an `-o'
2352 # argument, so we may need to know it at that point already.
2353 # Even if this section looks crufty: it has the advantage of
2360 test "$ac_cv_exeext" = no && ac_cv_exeext=
2363 echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2366 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2367 See \`config.log' for more details." >&5
2368 echo "$as_me: error: C compiler cannot create executables
2369 See \`config.log' for more details." >&2;}
2370 { (exit 77); exit 77; }; }
2373 ac_exeext=$ac_cv_exeext
2374 { echo "$as_me:$LINENO: result: $ac_file" >&5
2375 echo "${ECHO_T}$ac_file" >&6; }
2377 # Check that the compiler produces executables we can run. If not, either
2378 # the compiler is broken, or we cross compile.
2379 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2380 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2381 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2382 # If not cross compiling, check that we can run a simple program.
2383 if test "$cross_compiling" != yes; then
2384 if { ac_try='./$ac_file'
2385 { (case "(($ac_try" in
2386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387 *) ac_try_echo=$ac_try;;
2389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2390 (eval "$ac_try") 2>&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; }; then
2396 if test "$cross_compiling" = maybe; then
2399 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2400 If you meant to cross compile, use \`--host'.
2401 See \`config.log' for more details." >&5
2402 echo "$as_me: error: cannot run C compiled programs.
2403 If you meant to cross compile, use \`--host'.
2404 See \`config.log' for more details." >&2;}
2405 { (exit 1); exit 1; }; }
2409 { echo "$as_me:$LINENO: result: yes" >&5
2410 echo "${ECHO_T}yes" >&6; }
2412 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2413 ac_clean_files=$ac_clean_files_save
2414 # Check that the compiler produces executables we can run. If not, either
2415 # the compiler is broken, or we cross compile.
2416 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2417 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2418 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2419 echo "${ECHO_T}$cross_compiling" >&6; }
2421 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2422 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2423 if { (ac_try="$ac_link"
2425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426 *) ac_try_echo=$ac_try;;
2428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2429 (eval "$ac_link") 2>&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; then
2433 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2434 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2435 # work properly (i.e., refer to `conftest.exe'), while it won't with
2437 for ac_file in conftest.exe conftest conftest.*; do
2438 test -f "$ac_file" || continue
2440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2441 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2447 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2448 See \`config.log' for more details." >&5
2449 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2450 See \`config.log' for more details." >&2;}
2451 { (exit 1); exit 1; }; }
2454 rm -f conftest$ac_cv_exeext
2455 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2456 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2458 rm -f conftest.$ac_ext
2459 EXEEXT=$ac_cv_exeext
2461 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2462 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2463 if test "${ac_cv_objext+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 cat >conftest.$ac_ext <<_ACEOF
2469 cat confdefs.h >>conftest.$ac_ext
2470 cat >>conftest.$ac_ext <<_ACEOF
2471 /* end confdefs.h. */
2481 rm -f conftest.o conftest.obj
2482 if { (ac_try="$ac_compile"
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488 (eval "$ac_compile") 2>&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; then
2492 for ac_file in conftest.o conftest.obj conftest.*; do
2493 test -f "$ac_file" || continue;
2495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2496 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2501 echo "$as_me: failed program was:" >&5
2502 sed 's/^/| /' conftest.$ac_ext >&5
2504 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2505 See \`config.log' for more details." >&5
2506 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2507 See \`config.log' for more details." >&2;}
2508 { (exit 1); exit 1; }; }
2511 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2513 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2514 echo "${ECHO_T}$ac_cv_objext" >&6; }
2515 OBJEXT=$ac_cv_objext
2517 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2518 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2519 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 cat >conftest.$ac_ext <<_ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2540 rm -f conftest.$ac_objext
2541 if { (ac_try="$ac_compile"
2543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544 *) ac_try_echo=$ac_try;;
2546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2547 (eval "$ac_compile") 2>conftest.er1
2549 grep -v '^ *+' conftest.er1 >conftest.err
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2555 { (case "(($ac_try" in
2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2560 (eval "$ac_try") 2>&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; } &&
2564 { ac_try='test -s conftest.$ac_objext'
2565 { (case "(($ac_try" in
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570 (eval "$ac_try") 2>&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2576 echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2586 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2587 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2588 GCC=`test $ac_compiler_gnu = yes && echo yes`
2589 ac_test_CFLAGS=${CFLAGS+set}
2590 ac_save_CFLAGS=$CFLAGS
2591 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2592 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2593 if test "${ac_cv_prog_cc_g+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 ac_save_c_werror_flag=$ac_c_werror_flag
2597 ac_c_werror_flag=yes
2600 cat >conftest.$ac_ext <<_ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2615 rm -f conftest.$ac_objext
2616 if { (ac_try="$ac_compile"
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_compile") 2>conftest.er1
2624 grep -v '^ *+' conftest.er1 >conftest.err
2626 cat conftest.err >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } &&
2629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2630 { (case "(($ac_try" in
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2635 (eval "$ac_try") 2>&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; } &&
2639 { ac_try='test -s conftest.$ac_objext'
2640 { (case "(($ac_try" in
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645 (eval "$ac_try") 2>&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2655 cat >conftest.$ac_ext <<_ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h. */
2670 rm -f conftest.$ac_objext
2671 if { (ac_try="$ac_compile"
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677 (eval "$ac_compile") 2>conftest.er1
2679 grep -v '^ *+' conftest.er1 >conftest.err
2681 cat conftest.err >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); } &&
2684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2685 { (case "(($ac_try" in
2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690 (eval "$ac_try") 2>&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; } &&
2694 { ac_try='test -s conftest.$ac_objext'
2695 { (case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_try") 2>&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; }; then
2706 echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2709 ac_c_werror_flag=$ac_save_c_werror_flag
2711 cat >conftest.$ac_ext <<_ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2726 rm -f conftest.$ac_objext
2727 if { (ac_try="$ac_compile"
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_compile") 2>conftest.er1
2735 grep -v '^ *+' conftest.er1 >conftest.err
2737 cat conftest.err >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2741 { (case "(($ac_try" in
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746 (eval "$ac_try") 2>&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; } &&
2750 { ac_try='test -s conftest.$ac_objext'
2751 { (case "(($ac_try" in
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756 (eval "$ac_try") 2>&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; }; then
2762 echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2775 ac_c_werror_flag=$ac_save_c_werror_flag
2777 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2778 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2779 if test "$ac_test_CFLAGS" = set; then
2780 CFLAGS=$ac_save_CFLAGS
2781 elif test $ac_cv_prog_cc_g = yes; then
2782 if test "$GCC" = yes; then
2788 if test "$GCC" = yes; then
2794 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2795 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2796 if test "${ac_cv_prog_cc_c89+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 ac_cv_prog_cc_c89=no
2801 cat >conftest.$ac_ext <<_ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h. */
2809 #include <sys/types.h>
2810 #include <sys/stat.h>
2811 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2812 struct buf { int x; };
2813 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2814 static char *e (p, i)
2820 static char *f (char * (*g) (char **, int), char **p, ...)
2825 s = g (p, va_arg (v,int));
2830 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2831 function prototypes and stuff, but not '\xHH' hex character constants.
2832 These don't provoke an error unfortunately, instead are silently treated
2833 as 'x'. The following induces an error, until -std is added to get
2834 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2835 array size at least. It's necessary to write '\x00'==0 to get something
2836 that's true only with -std. */
2837 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2839 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2840 inside strings and character constants. */
2842 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2844 int test (int i, double x);
2845 struct s1 {int (*f) (int a);};
2846 struct s2 {int (*f) (double a);};
2847 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2853 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2858 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2859 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2861 CC="$ac_save_CC $ac_arg"
2862 rm -f conftest.$ac_objext
2863 if { (ac_try="$ac_compile"
2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2869 (eval "$ac_compile") 2>conftest.er1
2871 grep -v '^ *+' conftest.er1 >conftest.err
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } &&
2876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2877 { (case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_try") 2>&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; } &&
2886 { ac_try='test -s conftest.$ac_objext'
2887 { (case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_try") 2>&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2896 ac_cv_prog_cc_c89=$ac_arg
2898 echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2904 rm -f core conftest.err conftest.$ac_objext
2905 test "x$ac_cv_prog_cc_c89" != "xno" && break
2907 rm -f conftest.$ac_ext
2912 case "x$ac_cv_prog_cc_c89" in
2914 { echo "$as_me:$LINENO: result: none needed" >&5
2915 echo "${ECHO_T}none needed" >&6; } ;;
2917 { echo "$as_me:$LINENO: result: unsupported" >&5
2918 echo "${ECHO_T}unsupported" >&6; } ;;
2920 CC="$CC $ac_cv_prog_cc_c89"
2921 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2922 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2927 ac_cpp='$CPP $CPPFLAGS'
2928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2935 ac_cpp='$CPP $CPPFLAGS'
2936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2940 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2941 # On Suns, sometimes $CPP names a directory.
2942 if test -n "$CPP" && test -d "$CPP"; then
2945 if test -z "$CPP"; then
2946 if test "${ac_cv_prog_CPP+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 # Double quotes because CPP needs to be expanded
2950 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2953 for ac_c_preproc_warn_flag in '' yes
2955 # Use a header file that comes with gcc, so configuring glibc
2956 # with a fresh cross-compiler works.
2957 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2958 # <limits.h> exists even on freestanding compilers.
2959 # On the NeXT, cc -E runs the code through the compiler's parser,
2960 # not just through cpp. "Syntax error" is here to catch this case.
2961 cat >conftest.$ac_ext <<_ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2968 # include <limits.h>
2970 # include <assert.h>
2974 if { (ac_try="$ac_cpp conftest.$ac_ext"
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2982 grep -v '^ *+' conftest.er1 >conftest.err
2984 cat conftest.err >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); } >/dev/null; then
2987 if test -s conftest.err; then
2988 ac_cpp_err=$ac_c_preproc_warn_flag
2989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2996 if test -z "$ac_cpp_err"; then
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3002 # Broken: fails on valid input.
3006 rm -f conftest.err conftest.$ac_ext
3008 # OK, works on sane cases. Now check whether nonexistent headers
3009 # can be detected and how.
3010 cat >conftest.$ac_ext <<_ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3016 #include <ac_nonexistent.h>
3018 if { (ac_try="$ac_cpp conftest.$ac_ext"
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3026 grep -v '^ *+' conftest.er1 >conftest.err
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } >/dev/null; then
3031 if test -s conftest.err; then
3032 ac_cpp_err=$ac_c_preproc_warn_flag
3033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3040 if test -z "$ac_cpp_err"; then
3041 # Broken: success on invalid input.
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3047 # Passes both tests.
3052 rm -f conftest.err conftest.$ac_ext
3055 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3056 rm -f conftest.err conftest.$ac_ext
3057 if $ac_preproc_ok; then
3069 { echo "$as_me:$LINENO: result: $CPP" >&5
3070 echo "${ECHO_T}$CPP" >&6; }
3072 for ac_c_preproc_warn_flag in '' yes
3074 # Use a header file that comes with gcc, so configuring glibc
3075 # with a fresh cross-compiler works.
3076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3077 # <limits.h> exists even on freestanding compilers.
3078 # On the NeXT, cc -E runs the code through the compiler's parser,
3079 # not just through cpp. "Syntax error" is here to catch this case.
3080 cat >conftest.$ac_ext <<_ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3087 # include <limits.h>
3089 # include <assert.h>
3093 if { (ac_try="$ac_cpp conftest.$ac_ext"
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3101 grep -v '^ *+' conftest.er1 >conftest.err
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } >/dev/null; then
3106 if test -s conftest.err; then
3107 ac_cpp_err=$ac_c_preproc_warn_flag
3108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3115 if test -z "$ac_cpp_err"; then
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3121 # Broken: fails on valid input.
3125 rm -f conftest.err conftest.$ac_ext
3127 # OK, works on sane cases. Now check whether nonexistent headers
3128 # can be detected and how.
3129 cat >conftest.$ac_ext <<_ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3135 #include <ac_nonexistent.h>
3137 if { (ac_try="$ac_cpp conftest.$ac_ext"
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3145 grep -v '^ *+' conftest.er1 >conftest.err
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } >/dev/null; then
3150 if test -s conftest.err; then
3151 ac_cpp_err=$ac_c_preproc_warn_flag
3152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3159 if test -z "$ac_cpp_err"; then
3160 # Broken: success on invalid input.
3163 echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3166 # Passes both tests.
3171 rm -f conftest.err conftest.$ac_ext
3174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3175 rm -f conftest.err conftest.$ac_ext
3176 if $ac_preproc_ok; then
3179 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3180 See \`config.log' for more details." >&5
3181 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3182 See \`config.log' for more details." >&2;}
3183 { (exit 1); exit 1; }; }
3187 ac_cpp='$CPP $CPPFLAGS'
3188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3193 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3194 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3195 if test "${ac_cv_path_GREP+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 # Extract the first word of "grep ggrep" to use in msg output
3199 if test -z "$GREP"; then
3200 set dummy grep ggrep; ac_prog_name=$2
3201 if test "${ac_cv_path_GREP+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 ac_path_GREP_found=false
3205 # Loop through the user's path and test for each of PROGNAME-LIST
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3210 test -z "$as_dir" && as_dir=.
3211 for ac_prog in grep ggrep; do
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3214 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3215 # Check for GNU ac_path_GREP and select it if it is found.
3216 # Check for GNU $ac_path_GREP
3217 case `"$ac_path_GREP" --version 2>&1` in
3219 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3222 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3225 cat "conftest.in" "conftest.in" >"conftest.tmp"
3226 mv "conftest.tmp" "conftest.in"
3227 cp "conftest.in" "conftest.nl"
3228 echo 'GREP' >> "conftest.nl"
3229 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3231 ac_count=`expr $ac_count + 1`
3232 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3233 # Best one so far, save it but keep looking for a better one
3234 ac_cv_path_GREP="$ac_path_GREP"
3235 ac_path_GREP_max=$ac_count
3237 # 10*(2^10) chars as input seems more than enough
3238 test $ac_count -gt 10 && break
3240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3244 $ac_path_GREP_found && break 3
3254 GREP="$ac_cv_path_GREP"
3255 if test -z "$GREP"; then
3256 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3257 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3258 { (exit 1); exit 1; }; }
3262 ac_cv_path_GREP=$GREP
3267 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3268 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3269 GREP="$ac_cv_path_GREP"
3272 { echo "$as_me:$LINENO: checking for egrep" >&5
3273 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3274 if test "${ac_cv_path_EGREP+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3278 then ac_cv_path_EGREP="$GREP -E"
3280 # Extract the first word of "egrep" to use in msg output
3281 if test -z "$EGREP"; then
3282 set dummy egrep; ac_prog_name=$2
3283 if test "${ac_cv_path_EGREP+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 ac_path_EGREP_found=false
3287 # Loop through the user's path and test for each of PROGNAME-LIST
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3292 test -z "$as_dir" && as_dir=.
3293 for ac_prog in egrep; do
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3296 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3297 # Check for GNU ac_path_EGREP and select it if it is found.
3298 # Check for GNU $ac_path_EGREP
3299 case `"$ac_path_EGREP" --version 2>&1` in
3301 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3304 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3307 cat "conftest.in" "conftest.in" >"conftest.tmp"
3308 mv "conftest.tmp" "conftest.in"
3309 cp "conftest.in" "conftest.nl"
3310 echo 'EGREP' >> "conftest.nl"
3311 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3312 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3313 ac_count=`expr $ac_count + 1`
3314 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3315 # Best one so far, save it but keep looking for a better one
3316 ac_cv_path_EGREP="$ac_path_EGREP"
3317 ac_path_EGREP_max=$ac_count
3319 # 10*(2^10) chars as input seems more than enough
3320 test $ac_count -gt 10 && break
3322 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3326 $ac_path_EGREP_found && break 3
3336 EGREP="$ac_cv_path_EGREP"
3337 if test -z "$EGREP"; then
3338 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3339 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3340 { (exit 1); exit 1; }; }
3344 ac_cv_path_EGREP=$EGREP
3350 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3351 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3352 EGREP="$ac_cv_path_EGREP"
3356 { echo "$as_me:$LINENO: checking for AIX" >&5
3357 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3358 cat >conftest.$ac_ext <<_ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3370 $EGREP "yes" >/dev/null 2>&1; then
3371 { echo "$as_me:$LINENO: result: yes" >&5
3372 echo "${ECHO_T}yes" >&6; }
3373 cat >>confdefs.h <<\_ACEOF
3374 #define _ALL_SOURCE 1
3378 { echo "$as_me:$LINENO: result: no" >&5
3379 echo "${ECHO_T}no" >&6; }
3385 if test $ac_cv_c_compiler_gnu = yes; then
3386 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3387 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3388 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3391 ac_pattern="Autoconf.*'x'"
3392 cat >conftest.$ac_ext <<_ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h. */
3401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3402 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3403 ac_cv_prog_gcc_traditional=yes
3405 ac_cv_prog_gcc_traditional=no
3410 if test $ac_cv_prog_gcc_traditional = no; then
3411 cat >conftest.$ac_ext <<_ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3421 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3422 ac_cv_prog_gcc_traditional=yes
3428 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3429 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3430 if test $ac_cv_prog_gcc_traditional = yes; then
3431 CC="$CC -traditional"
3435 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3436 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3437 if test "${ac_cv_prog_suncc+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 cat > conftest.c <<EOF
3445 if { ac_try='${CC-cc} -E conftest.c'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3451 ac_cv_prog_suncc=yes
3456 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3457 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3458 if test -n "$ac_tool_prefix"; then
3459 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3460 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3463 if test "${ac_cv_prog_RANLIB+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 if test -n "$RANLIB"; then
3467 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3476 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 RANLIB=$ac_cv_prog_RANLIB
3487 if test -n "$RANLIB"; then
3488 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3489 echo "${ECHO_T}$RANLIB" >&6; }
3491 { echo "$as_me:$LINENO: result: no" >&5
3492 echo "${ECHO_T}no" >&6; }
3497 if test -z "$ac_cv_prog_RANLIB"; then
3498 ac_ct_RANLIB=$RANLIB
3499 # Extract the first word of "ranlib", so it can be a program name with args.
3500 set dummy ranlib; ac_word=$2
3501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3503 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 if test -n "$ac_ct_RANLIB"; then
3507 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3516 ac_cv_prog_ac_ct_RANLIB="ranlib"
3517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3527 if test -n "$ac_ct_RANLIB"; then
3528 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3529 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3531 { echo "$as_me:$LINENO: result: no" >&5
3532 echo "${ECHO_T}no" >&6; }
3535 if test "x$ac_ct_RANLIB" = x; then
3538 case $cross_compiling:$ac_tool_warned in
3540 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3541 whose name does not start with the host triplet. If you think this
3542 configuration is useful to you, please write to autoconf@gnu.org." >&5
3543 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3544 whose name does not start with the host triplet. If you think this
3545 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3546 ac_tool_warned=yes ;;
3548 RANLIB=$ac_ct_RANLIB
3551 RANLIB="$ac_cv_prog_RANLIB"
3555 abs_top_builddir=`pwd`
3561 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3562 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3563 if test "${ac_cv_header_stdc+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 cat >conftest.$ac_ext <<_ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3585 rm -f conftest.$ac_objext
3586 if { (ac_try="$ac_compile"
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592 (eval "$ac_compile") 2>conftest.er1
3594 grep -v '^ *+' conftest.er1 >conftest.err
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } &&
3599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3600 { (case "(($ac_try" in
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605 (eval "$ac_try") 2>&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }; } &&
3609 { ac_try='test -s conftest.$ac_objext'
3610 { (case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_try") 2>&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; }; then
3619 ac_cv_header_stdc=yes
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3624 ac_cv_header_stdc=no
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629 if test $ac_cv_header_stdc = yes; then
3630 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3631 cat >conftest.$ac_ext <<_ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3641 $EGREP "memchr" >/dev/null 2>&1; then
3644 ac_cv_header_stdc=no
3650 if test $ac_cv_header_stdc = yes; then
3651 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3652 cat >conftest.$ac_ext <<_ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3662 $EGREP "free" >/dev/null 2>&1; then
3665 ac_cv_header_stdc=no
3671 if test $ac_cv_header_stdc = yes; then
3672 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3673 if test "$cross_compiling" = yes; then
3676 cat >conftest.$ac_ext <<_ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h. */
3684 #if ((' ' & 0x0FF) == 0x020)
3685 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3686 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3688 # define ISLOWER(c) \
3689 (('a' <= (c) && (c) <= 'i') \
3690 || ('j' <= (c) && (c) <= 'r') \
3691 || ('s' <= (c) && (c) <= 'z'))
3692 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3695 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3700 for (i = 0; i < 256; i++)
3701 if (XOR (islower (i), ISLOWER (i))
3702 || toupper (i) != TOUPPER (i))
3707 rm -f conftest$ac_exeext
3708 if { (ac_try="$ac_link"
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3714 (eval "$ac_link") 2>&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3718 { (case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723 (eval "$ac_try") 2>&5
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; }; then
3729 echo "$as_me: program exited with status $ac_status" >&5
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3734 ac_cv_header_stdc=no
3736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3742 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3743 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3744 if test $ac_cv_header_stdc = yes; then
3746 cat >>confdefs.h <<\_ACEOF
3747 #define STDC_HEADERS 1
3752 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3762 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3763 inttypes.h stdint.h unistd.h
3765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 cat >conftest.$ac_ext <<_ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h. */
3777 $ac_includes_default
3779 #include <$ac_header>
3781 rm -f conftest.$ac_objext
3782 if { (ac_try="$ac_compile"
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788 (eval "$ac_compile") 2>conftest.er1
3790 grep -v '^ *+' conftest.er1 >conftest.err
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
3795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3796 { (case "(($ac_try" in
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3801 (eval "$ac_try") 2>&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; } &&
3805 { ac_try='test -s conftest.$ac_objext'
3806 { (case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3811 (eval "$ac_try") 2>&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; }; then
3815 eval "$as_ac_Header=yes"
3817 echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3820 eval "$as_ac_Header=no"
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 ac_res=`eval echo '${'$as_ac_Header'}'`
3826 { echo "$as_me:$LINENO: result: $ac_res" >&5
3827 echo "${ECHO_T}$ac_res" >&6; }
3828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3829 cat >>confdefs.h <<_ACEOF
3830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3838 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3839 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3840 if test "${ac_cv_c_bigendian+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 # See if sys/param.h defines the BYTE_ORDER macro.
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 #include <sys/param.h>
3856 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3864 rm -f conftest.$ac_objext
3865 if { (ac_try="$ac_compile"
3867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868 *) ac_try_echo=$ac_try;;
3870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3871 (eval "$ac_compile") 2>conftest.er1
3873 grep -v '^ *+' conftest.er1 >conftest.err
3875 cat conftest.err >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } &&
3878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3879 { (case "(($ac_try" in
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3884 (eval "$ac_try") 2>&5
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); }; } &&
3888 { ac_try='test -s conftest.$ac_objext'
3889 { (case "(($ac_try" in
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3894 (eval "$ac_try") 2>&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; }; then
3898 # It does; now see whether it defined to BIG_ENDIAN or not.
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3905 #include <sys/types.h>
3906 #include <sys/param.h>
3911 #if BYTE_ORDER != BIG_ENDIAN
3919 rm -f conftest.$ac_objext
3920 if { (ac_try="$ac_compile"
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3926 (eval "$ac_compile") 2>conftest.er1
3928 grep -v '^ *+' conftest.er1 >conftest.err
3930 cat conftest.err >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } &&
3933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3934 { (case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3939 (eval "$ac_try") 2>&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; } &&
3943 { ac_try='test -s conftest.$ac_objext'
3944 { (case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949 (eval "$ac_try") 2>&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }; }; then
3953 ac_cv_c_bigendian=yes
3955 echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.$ac_ext >&5
3958 ac_cv_c_bigendian=no
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3966 # It does not; compile a test program.
3967 if test "$cross_compiling" = yes; then
3968 # try to guess the endianness by grepping values into an object file
3969 ac_cv_c_bigendian=unknown
3970 cat >conftest.$ac_ext <<_ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3976 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3977 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3978 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3979 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3980 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3981 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3985 _ascii (); _ebcdic ();
3990 rm -f conftest.$ac_objext
3991 if { (ac_try="$ac_compile"
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3997 (eval "$ac_compile") 2>conftest.er1
3999 grep -v '^ *+' conftest.er1 >conftest.err
4001 cat conftest.err >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } &&
4004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4005 { (case "(($ac_try" in
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4010 (eval "$ac_try") 2>&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; } &&
4014 { ac_try='test -s conftest.$ac_objext'
4015 { (case "(($ac_try" in
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020 (eval "$ac_try") 2>&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
4024 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4025 ac_cv_c_bigendian=yes
4027 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4028 if test "$ac_cv_c_bigendian" = unknown; then
4029 ac_cv_c_bigendian=no
4031 # finding both strings is unlikely to happen, but who knows?
4032 ac_cv_c_bigendian=unknown
4036 echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 cat >conftest.$ac_ext <<_ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4050 $ac_includes_default
4055 /* Are we little or big endian? From Harbison&Steele. */
4059 char c[sizeof (long int)];
4062 return u.c[sizeof (long int) - 1] == 1;
4068 rm -f conftest$ac_exeext
4069 if { (ac_try="$ac_link"
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075 (eval "$ac_link") 2>&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4079 { (case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084 (eval "$ac_try") 2>&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; }; then
4088 ac_cv_c_bigendian=no
4090 echo "$as_me: program exited with status $ac_status" >&5
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4095 ac_cv_c_bigendian=yes
4097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4106 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4107 case $ac_cv_c_bigendian in
4110 cat >>confdefs.h <<\_ACEOF
4111 #define WORDS_BIGENDIAN 1
4117 { { echo "$as_me:$LINENO: error: unknown endianness
4118 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4119 echo "$as_me: error: unknown endianness
4120 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4121 { (exit 1); exit 1; }; } ;;
4125 # Extract the first word of "gmake", so it can be a program name with args.
4126 set dummy gmake; ac_word=$2
4127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4129 if test "${ac_cv_prog_GMAKE+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 if test -n "$GMAKE"; then
4133 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4142 ac_cv_prog_GMAKE="yes"
4143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4150 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4153 GMAKE=$ac_cv_prog_GMAKE
4154 if test -n "$GMAKE"; then
4155 { echo "$as_me:$LINENO: result: $GMAKE" >&5
4156 echo "${ECHO_T}$GMAKE" >&6; }
4158 { echo "$as_me:$LINENO: result: no" >&5
4159 echo "${ECHO_T}no" >&6; }
4163 if test $GMAKE = no; then
4164 # Extract the first word of "make", so it can be a program name with args.
4165 set dummy make; ac_word=$2
4166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4168 if test "${ac_cv_path_MAKE+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4195 MAKE=$ac_cv_path_MAKE
4196 if test -n "$MAKE"; then
4197 { echo "$as_me:$LINENO: result: $MAKE" >&5
4198 echo "${ECHO_T}$MAKE" >&6; }
4200 { echo "$as_me:$LINENO: result: no" >&5
4201 echo "${ECHO_T}no" >&6; }
4206 # Extract the first word of "gmake", so it can be a program name with args.
4207 set dummy gmake; ac_word=$2
4208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4210 if test "${ac_cv_path_MAKE+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4225 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4237 MAKE=$ac_cv_path_MAKE
4238 if test -n "$MAKE"; then
4239 { echo "$as_me:$LINENO: result: $MAKE" >&5
4240 echo "${ECHO_T}$MAKE" >&6; }
4242 { echo "$as_me:$LINENO: result: no" >&5
4243 echo "${ECHO_T}no" >&6; }
4248 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4249 if test -z "$makever"; then
4250 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
4251 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4252 echo "$as_me: error: GNU Make is not installed. Please download and install it
4253 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4254 { (exit 1); exit 1; }; }
4257 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4258 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4259 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 ac_check_lib_save_LIBS=$LIBS
4264 cat >conftest.$ac_ext <<_ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4271 /* Override any GCC internal prototype to avoid an error.
4272 Use char because int might match the return type of a GCC
4273 builtin and then its argument prototype would still apply. */
4281 return lt_dlinit ();
4286 rm -f conftest.$ac_objext conftest$ac_exeext
4287 if { (ac_try="$ac_link"
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_link") 2>conftest.er1
4295 grep -v '^ *+' conftest.er1 >conftest.err
4297 cat conftest.err >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } &&
4300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4301 { (case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_try") 2>&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; } &&
4310 { ac_try='test -s conftest$ac_exeext'
4311 { (case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316 (eval "$ac_try") 2>&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; }; then
4320 ac_cv_lib_ltdl_lt_dlinit=yes
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4325 ac_cv_lib_ltdl_lt_dlinit=no
4328 rm -f core conftest.err conftest.$ac_objext \
4329 conftest$ac_exeext conftest.$ac_ext
4330 LIBS=$ac_check_lib_save_LIBS
4332 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4333 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4334 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4335 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4337 if test x"$enable_ltdl_install" = xno; then
4338 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4339 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4341 enable_ltdl_install=yes
4346 if test x"$enable_ltdl_install" = x"yes"; then
4347 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4348 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4349 LTDLINCL='-I${top_srcdir}/''libltdl'
4351 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4355 # For backwards non-gettext consistent compatibility...
4359 if test x"$enable_ltdl_install" = x"yes"; then
4360 LTDL_SUBDIRS=libltdl
4364 # Check whether --enable-shared was given.
4365 if test "${enable_shared+set}" = set; then
4366 enableval=$enable_shared; p=${PACKAGE-default}
4368 yes) enable_shared=yes ;;
4369 no) enable_shared=no ;;
4372 # Look at the argument we got. We use all the common list separators.
4373 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4374 for pkg in $enableval; do
4376 if test "X$pkg" = "X$p"; then
4388 # Check whether --enable-static was given.
4389 if test "${enable_static+set}" = set; then
4390 enableval=$enable_static; p=${PACKAGE-default}
4392 yes) enable_static=yes ;;
4393 no) enable_static=no ;;
4396 # Look at the argument we got. We use all the common list separators.
4397 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4398 for pkg in $enableval; do
4400 if test "X$pkg" = "X$p"; then
4412 # Check whether --enable-fast-install was given.
4413 if test "${enable_fast_install+set}" = set; then
4414 enableval=$enable_fast_install; p=${PACKAGE-default}
4416 yes) enable_fast_install=yes ;;
4417 no) enable_fast_install=no ;;
4419 enable_fast_install=no
4420 # Look at the argument we got. We use all the common list separators.
4421 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4422 for pkg in $enableval; do
4424 if test "X$pkg" = "X$p"; then
4425 enable_fast_install=yes
4432 enable_fast_install=yes
4437 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4438 if test -f "$ac_dir/install-sh"; then
4440 ac_install_sh="$ac_aux_dir/install-sh -c"
4442 elif test -f "$ac_dir/install.sh"; then
4444 ac_install_sh="$ac_aux_dir/install.sh -c"
4446 elif test -f "$ac_dir/shtool"; then
4448 ac_install_sh="$ac_aux_dir/shtool install -c"
4452 if test -z "$ac_aux_dir"; then
4453 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4454 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4455 { (exit 1); exit 1; }; }
4458 # These three variables are undocumented and unsupported,
4459 # and are intended to be withdrawn in a future Autoconf release.
4460 # They can cause serious problems if a builder's source tree is in a directory
4461 # whose full name contains unusual characters.
4462 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4463 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4464 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4467 # Make sure we can run config.sub.
4468 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4469 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4470 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4471 { (exit 1); exit 1; }; }
4473 { echo "$as_me:$LINENO: checking build system type" >&5
4474 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4475 if test "${ac_cv_build+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 ac_build_alias=$build_alias
4479 test "x$ac_build_alias" = x &&
4480 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4481 test "x$ac_build_alias" = x &&
4482 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4483 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4484 { (exit 1); exit 1; }; }
4485 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4486 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4487 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4488 { (exit 1); exit 1; }; }
4491 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4492 echo "${ECHO_T}$ac_cv_build" >&6; }
4493 case $ac_cv_build in
4495 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4496 echo "$as_me: error: invalid value of canonical build" >&2;}
4497 { (exit 1); exit 1; }; };;
4500 ac_save_IFS=$IFS; IFS='-'
4506 # Remember, the first character of IFS is used to create $*,
4507 # except with old shells:
4510 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4513 { echo "$as_me:$LINENO: checking host system type" >&5
4514 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4515 if test "${ac_cv_host+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 if test "x$host_alias" = x; then
4519 ac_cv_host=$ac_cv_build
4521 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4522 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4523 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4524 { (exit 1); exit 1; }; }
4528 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4529 echo "${ECHO_T}$ac_cv_host" >&6; }
4532 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4533 echo "$as_me: error: invalid value of canonical host" >&2;}
4534 { (exit 1); exit 1; }; };;
4537 ac_save_IFS=$IFS; IFS='-'
4543 # Remember, the first character of IFS is used to create $*,
4544 # except with old shells:
4547 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4550 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4551 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4552 if test "${lt_cv_path_SED+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 # Loop through the user's path and test for sed and gsed.
4556 # Then use that list of sed's as ones to test for truncation.
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 test -z "$as_dir" && as_dir=.
4562 for lt_ac_prog in sed gsed; do
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4565 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4572 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4573 # along with /bin/sed that truncates output.
4574 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4575 test ! -f $lt_ac_sed && continue
4576 cat /dev/null > conftest.in
4578 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4579 # Check for GNU sed and select it if it is found.
4580 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4581 lt_cv_path_SED=$lt_ac_sed
4585 cat conftest.in conftest.in >conftest.tmp
4586 mv conftest.tmp conftest.in
4587 cp conftest.in conftest.nl
4589 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4590 cmp -s conftest.out conftest.nl || break
4591 # 10000 chars as input seems more than enough
4592 test $lt_ac_count -gt 10 && break
4593 lt_ac_count=`expr $lt_ac_count + 1`
4594 if test $lt_ac_count -gt $lt_ac_max; then
4595 lt_ac_max=$lt_ac_count
4596 lt_cv_path_SED=$lt_ac_sed
4604 { echo "$as_me:$LINENO: result: $SED" >&5
4605 echo "${ECHO_T}$SED" >&6; }
4608 # Check whether --with-gnu-ld was given.
4609 if test "${with_gnu_ld+set}" = set; then
4610 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4616 if test "$GCC" = yes; then
4617 # Check if gcc -print-prog-name=ld gives a path.
4618 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4619 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4622 # gcc leaves a trailing carriage return which upsets mingw
4623 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4625 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4628 # Accept absolute paths.
4630 re_direlt='/[^/][^/]*/\.\./'
4631 # Canonicalize the pathname of ld
4632 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4633 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4634 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4636 test -z "$LD" && LD="$ac_prog"
4639 # If it fails, then pretend we aren't using GCC.
4643 # If it is relative, then search for the first ld in PATH.
4647 elif test "$with_gnu_ld" = yes; then
4648 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4649 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4651 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4652 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4654 if test "${lt_cv_path_LD+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 if test -z "$LD"; then
4658 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4659 for ac_dir in $PATH; do
4661 test -z "$ac_dir" && ac_dir=.
4662 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4663 lt_cv_path_LD="$ac_dir/$ac_prog"
4664 # Check to see if the program is GNU ld. I'd rather use --version,
4665 # but apparently some variants of GNU ld only accept -v.
4666 # Break only if it was the GNU/non-GNU ld that we prefer.
4667 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4668 *GNU* | *'with BFD'*)
4669 test "$with_gnu_ld" != no && break
4672 test "$with_gnu_ld" != yes && break
4679 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4684 if test -n "$LD"; then
4685 { echo "$as_me:$LINENO: result: $LD" >&5
4686 echo "${ECHO_T}$LD" >&6; }
4688 { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4691 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4692 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4693 { (exit 1); exit 1; }; }
4694 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4695 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4696 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4700 case `$LD -v 2>&1 </dev/null` in
4701 *GNU* | *'with BFD'*)
4702 lt_cv_prog_gnu_ld=yes
4705 lt_cv_prog_gnu_ld=no
4709 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4710 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4711 with_gnu_ld=$lt_cv_prog_gnu_ld
4714 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4715 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4716 if test "${lt_cv_ld_reload_flag+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 lt_cv_ld_reload_flag='-r'
4721 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4722 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4723 reload_flag=$lt_cv_ld_reload_flag
4724 case $reload_flag in
4726 *) reload_flag=" $reload_flag" ;;
4728 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4731 if test "$GCC" = yes; then
4732 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4734 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4739 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4740 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4741 if test "${lt_cv_path_NM+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 if test -n "$NM"; then
4745 # Let the user override the test.
4748 lt_nm_to_check="${ac_tool_prefix}nm"
4749 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4750 lt_nm_to_check="$lt_nm_to_check nm"
4752 for lt_tmp_nm in $lt_nm_to_check; do
4753 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4754 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4756 test -z "$ac_dir" && ac_dir=.
4757 tmp_nm="$ac_dir/$lt_tmp_nm"
4758 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4759 # Check to see if the nm accepts a BSD-compat flag.
4760 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4761 # nm: unknown option "B" ignored
4762 # Tru64's nm complains that /dev/null is an invalid object file
4763 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4764 */dev/null* | *'Invalid file or object type'*)
4765 lt_cv_path_NM="$tmp_nm -B"
4769 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4771 lt_cv_path_NM="$tmp_nm -p"
4775 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4776 continue # so that we can try to find one that supports BSD flags
4785 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4788 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4789 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4792 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4793 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4795 if test "$LN_S" = "ln -s"; then
4796 { echo "$as_me:$LINENO: result: yes" >&5
4797 echo "${ECHO_T}yes" >&6; }
4799 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4800 echo "${ECHO_T}no, using $LN_S" >&6; }
4803 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4804 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4805 if test "${lt_cv_deplibs_check_method+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 lt_cv_file_magic_cmd='$MAGIC_CMD'
4809 lt_cv_file_magic_test_file=
4810 lt_cv_deplibs_check_method='unknown'
4811 # Need to set the preceding variable on all platforms that support
4812 # interlibrary dependencies.
4813 # 'none' -- dependencies not supported.
4814 # `unknown' -- same as none, but documents that we really don't know.
4815 # 'pass_all' -- all dependencies passed with no checks.
4816 # 'test_compile' -- check by making test program.
4817 # 'file_magic [[regex]]' -- check by looking for files in library path
4818 # which responds to the $file_magic_cmd with a given extended regex.
4819 # If you have `file' or equivalent on your system and you're not sure
4820 # whether `pass_all' will *always* work, you probably want this one.
4824 lt_cv_deplibs_check_method=pass_all
4828 lt_cv_deplibs_check_method=pass_all
4832 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4833 lt_cv_file_magic_cmd='/usr/bin/file -L'
4834 lt_cv_file_magic_test_file=/shlib/libc.so
4838 # func_win32_libid is a shell function defined in ltmain.sh
4839 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4840 lt_cv_file_magic_cmd='func_win32_libid'
4844 # Base MSYS/MinGW do not provide the 'file' command needed by
4845 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4846 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4847 lt_cv_file_magic_cmd='$OBJDUMP -f'
4850 darwin* | rhapsody*)
4851 lt_cv_deplibs_check_method=pass_all
4854 freebsd* | kfreebsd*-gnu | dragonfly*)
4855 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4858 # Not sure whether the presence of OpenBSD here was a mistake.
4859 # Let's accept both of them until this is cleared up.
4860 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4861 lt_cv_file_magic_cmd=/usr/bin/file
4862 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4866 lt_cv_deplibs_check_method=pass_all
4871 lt_cv_deplibs_check_method=pass_all
4874 hpux10.20* | hpux11*)
4875 lt_cv_file_magic_cmd=/usr/bin/file
4878 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4879 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4882 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]'
4883 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4886 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4887 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4893 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4897 irix5* | irix6* | nonstopux*)
4899 *-32|*"-32 ") libmagic=32-bit;;
4900 *-n32|*"-n32 ") libmagic=N32;;
4901 *-64|*"-64 ") libmagic=64-bit;;
4902 *) libmagic=never-match;;
4904 lt_cv_deplibs_check_method=pass_all
4907 # This must be Linux ELF.
4909 lt_cv_deplibs_check_method=pass_all
4913 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4914 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4921 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4922 lt_cv_file_magic_cmd=/usr/bin/file
4923 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4927 lt_cv_deplibs_check_method=unknown
4931 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4932 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4934 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4938 osf3* | osf4* | osf5*)
4939 lt_cv_deplibs_check_method=pass_all
4943 lt_cv_deplibs_check_method=pass_all
4947 case $host_vendor in
4949 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]'
4950 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4953 lt_cv_deplibs_check_method=pass_all
4956 lt_cv_file_magic_cmd='/bin/file'
4957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4960 lt_cv_file_magic_cmd='/bin/file'
4961 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4962 lt_cv_file_magic_test_file=/lib/libc.so
4965 lt_cv_deplibs_check_method=pass_all
4968 lt_cv_deplibs_check_method=pass_all
4973 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4974 lt_cv_deplibs_check_method=pass_all
4979 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4980 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4981 file_magic_cmd=$lt_cv_file_magic_cmd
4982 deplibs_check_method=$lt_cv_deplibs_check_method
4983 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4988 # If no C compiler was specified, use CC.
4991 # If no C compiler flags were specified, use CFLAGS.
4992 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4994 # Allow CC to be a program name with arguments.
4997 # Check whether --enable-libtool-lock was given.
4998 if test "${enable_libtool_lock+set}" = set; then
4999 enableval=$enable_libtool_lock;
5002 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5004 # Some flags need to be propagated to the compiler or linker for good
5008 # Find out which ABI we are using.
5009 echo 'int i;' > conftest.$ac_ext
5010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5011 (eval $ac_compile) 2>&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; then
5015 case `/usr/bin/file conftest.$ac_objext` in
5027 # Find out which ABI we are using.
5028 echo '#line 5028 "configure"' > conftest.$ac_ext
5029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5030 (eval $ac_compile) 2>&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; then
5034 if test "$lt_cv_prog_gnu_ld" = yes; then
5035 case `/usr/bin/file conftest.$ac_objext` in
5037 LD="${LD-ld} -melf32bsmip"
5040 LD="${LD-ld} -melf32bmipn32"
5043 LD="${LD-ld} -melf64bmip"
5047 case `/usr/bin/file conftest.$ac_objext` in
5063 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5064 # Find out which ABI we are using.
5065 echo 'int i;' > conftest.$ac_ext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067 (eval $ac_compile) 2>&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; then
5071 case `/usr/bin/file conftest.o` in
5075 LD="${LD-ld} -m elf_i386"
5077 ppc64-*linux*|powerpc64-*linux*)
5078 LD="${LD-ld} -m elf32ppclinux"
5081 LD="${LD-ld} -m elf_s390"
5084 LD="${LD-ld} -m elf32_sparc"
5091 LD="${LD-ld} -m elf_x86_64"
5093 ppc*-*linux*|powerpc*-*linux*)
5094 LD="${LD-ld} -m elf64ppc"
5097 LD="${LD-ld} -m elf64_s390"
5100 LD="${LD-ld} -m elf64_sparc"
5110 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5111 SAVE_CFLAGS="$CFLAGS"
5112 CFLAGS="$CFLAGS -belf"
5113 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5114 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5115 if test "${lt_cv_cc_needs_belf+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 ac_cpp='$CPP $CPPFLAGS'
5120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5124 cat >conftest.$ac_ext <<_ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h. */
5139 rm -f conftest.$ac_objext conftest$ac_exeext
5140 if { (ac_try="$ac_link"
5142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143 *) ac_try_echo=$ac_try;;
5145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146 (eval "$ac_link") 2>conftest.er1
5148 grep -v '^ *+' conftest.er1 >conftest.err
5150 cat conftest.err >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } &&
5153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5154 { (case "(($ac_try" in
5155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5156 *) ac_try_echo=$ac_try;;
5158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5159 (eval "$ac_try") 2>&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; } &&
5163 { ac_try='test -s conftest$ac_exeext'
5164 { (case "(($ac_try" in
5165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5166 *) ac_try_echo=$ac_try;;
5168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5169 (eval "$ac_try") 2>&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5173 lt_cv_cc_needs_belf=yes
5175 echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5178 lt_cv_cc_needs_belf=no
5181 rm -f core conftest.err conftest.$ac_objext \
5182 conftest$ac_exeext conftest.$ac_ext
5184 ac_cpp='$CPP $CPPFLAGS'
5185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5190 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5191 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5192 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5193 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5194 CFLAGS="$SAVE_CFLAGS"
5198 # Find out which ABI we are using.
5199 echo 'int i;' > conftest.$ac_ext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201 (eval $ac_compile) 2>&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; then
5205 case `/usr/bin/file conftest.o` in
5207 case $lt_cv_prog_gnu_ld in
5208 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5209 *) LD="${LD-ld} -64" ;;
5220 need_locks="$enable_libtool_lock"
5224 for ac_header in dlfcn.h
5226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 ac_res=`eval echo '${'$as_ac_Header'}'`
5234 { echo "$as_me:$LINENO: result: $ac_res" >&5
5235 echo "${ECHO_T}$ac_res" >&6; }
5237 # Is the header compilable?
5238 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5240 cat >conftest.$ac_ext <<_ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5246 $ac_includes_default
5247 #include <$ac_header>
5249 rm -f conftest.$ac_objext
5250 if { (ac_try="$ac_compile"
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256 (eval "$ac_compile") 2>conftest.er1
5258 grep -v '^ *+' conftest.er1 >conftest.err
5260 cat conftest.err >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); } &&
5263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5264 { (case "(($ac_try" in
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269 (eval "$ac_try") 2>&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; } &&
5273 { ac_try='test -s conftest.$ac_objext'
5274 { (case "(($ac_try" in
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279 (eval "$ac_try") 2>&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 ac_header_compiler=yes
5285 echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5288 ac_header_compiler=no
5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5293 echo "${ECHO_T}$ac_header_compiler" >&6; }
5295 # Is the header present?
5296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5298 cat >conftest.$ac_ext <<_ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5304 #include <$ac_header>
5306 if { (ac_try="$ac_cpp conftest.$ac_ext"
5308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309 *) ac_try_echo=$ac_try;;
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5314 grep -v '^ *+' conftest.er1 >conftest.err
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } >/dev/null; then
5319 if test -s conftest.err; then
5320 ac_cpp_err=$ac_c_preproc_warn_flag
5321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5328 if test -z "$ac_cpp_err"; then
5329 ac_header_preproc=yes
5331 echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5334 ac_header_preproc=no
5337 rm -f conftest.err conftest.$ac_ext
5338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5339 echo "${ECHO_T}$ac_header_preproc" >&6; }
5341 # So? What about this header?
5342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5348 ac_header_preproc=yes
5351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 eval "$as_ac_Header=\$ac_header_preproc"
5373 ac_res=`eval echo '${'$as_ac_Header'}'`
5374 { echo "$as_me:$LINENO: result: $ac_res" >&5
5375 echo "${ECHO_T}$ac_res" >&6; }
5378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5379 cat >>confdefs.h <<_ACEOF
5380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5388 ac_cpp='$CXXCPP $CPPFLAGS'
5389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5392 if test -z "$CXX"; then
5393 if test -n "$CCC"; then
5396 if test -n "$ac_tool_prefix"; then
5397 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5403 if test "${ac_cv_prog_CXX+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 if test -n "$CXX"; then
5407 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 test -z "$as_dir" && as_dir=.
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5416 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 if test -n "$CXX"; then
5428 { echo "$as_me:$LINENO: result: $CXX" >&5
5429 echo "${ECHO_T}$CXX" >&6; }
5431 { echo "$as_me:$LINENO: result: no" >&5
5432 echo "${ECHO_T}no" >&6; }
5436 test -n "$CXX" && break
5439 if test -z "$CXX"; then
5441 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5443 # Extract the first word of "$ac_prog", so it can be a program name with args.
5444 set dummy $ac_prog; ac_word=$2
5445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5447 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 if test -n "$ac_ct_CXX"; then
5451 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 test -z "$as_dir" && as_dir=.
5458 for ac_exec_ext in '' $ac_executable_extensions; do
5459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5460 ac_cv_prog_ac_ct_CXX="$ac_prog"
5461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5471 if test -n "$ac_ct_CXX"; then
5472 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5473 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5475 { echo "$as_me:$LINENO: result: no" >&5
5476 echo "${ECHO_T}no" >&6; }
5480 test -n "$ac_ct_CXX" && break
5483 if test "x$ac_ct_CXX" = x; then
5486 case $cross_compiling:$ac_tool_warned in
5488 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5489 whose name does not start with the host triplet. If you think this
5490 configuration is useful to you, please write to autoconf@gnu.org." >&5
5491 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5492 whose name does not start with the host triplet. If you think this
5493 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5494 ac_tool_warned=yes ;;
5502 # Provide some information about the compiler.
5503 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5504 ac_compiler=`set X $ac_compile; echo $2`
5505 { (ac_try="$ac_compiler --version >&5"
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 (eval "$ac_compiler --version >&5") 2>&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }
5515 { (ac_try="$ac_compiler -v >&5"
5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521 (eval "$ac_compiler -v >&5") 2>&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }
5525 { (ac_try="$ac_compiler -V >&5"
5527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528 *) ac_try_echo=$ac_try;;
5530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5531 (eval "$ac_compiler -V >&5") 2>&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); }
5536 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5537 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5538 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 cat >conftest.$ac_ext <<_ACEOF
5544 cat confdefs.h >>conftest.$ac_ext
5545 cat >>conftest.$ac_ext <<_ACEOF
5546 /* end confdefs.h. */
5559 rm -f conftest.$ac_objext
5560 if { (ac_try="$ac_compile"
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566 (eval "$ac_compile") 2>conftest.er1
5568 grep -v '^ *+' conftest.er1 >conftest.err
5570 cat conftest.err >&5
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); } &&
5573 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5574 { (case "(($ac_try" in
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579 (eval "$ac_try") 2>&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; } &&
5583 { ac_try='test -s conftest.$ac_objext'
5584 { (case "(($ac_try" in
5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586 *) ac_try_echo=$ac_try;;
5588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589 (eval "$ac_try") 2>&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; }; then
5595 echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5602 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5605 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5606 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5607 GXX=`test $ac_compiler_gnu = yes && echo yes`
5608 ac_test_CXXFLAGS=${CXXFLAGS+set}
5609 ac_save_CXXFLAGS=$CXXFLAGS
5610 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5611 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5612 if test "${ac_cv_prog_cxx_g+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5616 ac_cxx_werror_flag=yes
5619 cat >conftest.$ac_ext <<_ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h. */
5634 rm -f conftest.$ac_objext
5635 if { (ac_try="$ac_compile"
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641 (eval "$ac_compile") 2>conftest.er1
5643 grep -v '^ *+' conftest.er1 >conftest.err
5645 cat conftest.err >&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } &&
5648 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5649 { (case "(($ac_try" in
5650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5651 *) ac_try_echo=$ac_try;;
5653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5654 (eval "$ac_try") 2>&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; } &&
5658 { ac_try='test -s conftest.$ac_objext'
5659 { (case "(($ac_try" in
5660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661 *) ac_try_echo=$ac_try;;
5663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5664 (eval "$ac_try") 2>&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; }; then
5668 ac_cv_prog_cxx_g=yes
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5674 cat >conftest.$ac_ext <<_ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5689 rm -f conftest.$ac_objext
5690 if { (ac_try="$ac_compile"
5692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693 *) ac_try_echo=$ac_try;;
5695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5696 (eval "$ac_compile") 2>conftest.er1
5698 grep -v '^ *+' conftest.er1 >conftest.err
5700 cat conftest.err >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } &&
5703 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5704 { (case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_try") 2>&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; } &&
5713 { ac_try='test -s conftest.$ac_objext'
5714 { (case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_try") 2>&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5728 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5730 cat >conftest.$ac_ext <<_ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5745 rm -f conftest.$ac_objext
5746 if { (ac_try="$ac_compile"
5748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5749 *) ac_try_echo=$ac_try;;
5751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5752 (eval "$ac_compile") 2>conftest.er1
5754 grep -v '^ *+' conftest.er1 >conftest.err
5756 cat conftest.err >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); } &&
5759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5760 { (case "(($ac_try" in
5761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762 *) ac_try_echo=$ac_try;;
5764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765 (eval "$ac_try") 2>&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; } &&
5769 { ac_try='test -s conftest.$ac_objext'
5770 { (case "(($ac_try" in
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_try") 2>&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 ac_cv_prog_cxx_g=yes
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5796 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5797 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5798 if test "$ac_test_CXXFLAGS" = set; then
5799 CXXFLAGS=$ac_save_CXXFLAGS
5800 elif test $ac_cv_prog_cxx_g = yes; then
5801 if test "$GXX" = yes; then
5807 if test "$GXX" = yes; then
5814 ac_cpp='$CXXCPP $CPPFLAGS'
5815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5821 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5822 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5823 (test "X$CXX" != "Xg++"))) ; then
5825 ac_cpp='$CXXCPP $CPPFLAGS'
5826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5829 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5830 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5831 if test -z "$CXXCPP"; then
5832 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 # Double quotes because CXXCPP needs to be expanded
5836 for CXXCPP in "$CXX -E" "/lib/cpp"
5839 for ac_cxx_preproc_warn_flag in '' yes
5841 # Use a header file that comes with gcc, so configuring glibc
5842 # with a fresh cross-compiler works.
5843 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5844 # <limits.h> exists even on freestanding compilers.
5845 # On the NeXT, cc -E runs the code through the compiler's parser,
5846 # not just through cpp. "Syntax error" is here to catch this case.
5847 cat >conftest.$ac_ext <<_ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5854 # include <limits.h>
5856 # include <assert.h>
5860 if { (ac_try="$ac_cpp conftest.$ac_ext"
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5868 grep -v '^ *+' conftest.er1 >conftest.err
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } >/dev/null; then
5873 if test -s conftest.err; then
5874 ac_cpp_err=$ac_cxx_preproc_warn_flag
5875 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5882 if test -z "$ac_cpp_err"; then
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5888 # Broken: fails on valid input.
5892 rm -f conftest.err conftest.$ac_ext
5894 # OK, works on sane cases. Now check whether nonexistent headers
5895 # can be detected and how.
5896 cat >conftest.$ac_ext <<_ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5902 #include <ac_nonexistent.h>
5904 if { (ac_try="$ac_cpp conftest.$ac_ext"
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5912 grep -v '^ *+' conftest.er1 >conftest.err
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } >/dev/null; then
5917 if test -s conftest.err; then
5918 ac_cpp_err=$ac_cxx_preproc_warn_flag
5919 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5926 if test -z "$ac_cpp_err"; then
5927 # Broken: success on invalid input.
5930 echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5933 # Passes both tests.
5938 rm -f conftest.err conftest.$ac_ext
5941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5942 rm -f conftest.err conftest.$ac_ext
5943 if $ac_preproc_ok; then
5948 ac_cv_prog_CXXCPP=$CXXCPP
5951 CXXCPP=$ac_cv_prog_CXXCPP
5953 ac_cv_prog_CXXCPP=$CXXCPP
5955 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5956 echo "${ECHO_T}$CXXCPP" >&6; }
5958 for ac_cxx_preproc_warn_flag in '' yes
5960 # Use a header file that comes with gcc, so configuring glibc
5961 # with a fresh cross-compiler works.
5962 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5963 # <limits.h> exists even on freestanding compilers.
5964 # On the NeXT, cc -E runs the code through the compiler's parser,
5965 # not just through cpp. "Syntax error" is here to catch this case.
5966 cat >conftest.$ac_ext <<_ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5973 # include <limits.h>
5975 # include <assert.h>
5979 if { (ac_try="$ac_cpp conftest.$ac_ext"
5981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982 *) ac_try_echo=$ac_try;;
5984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5987 grep -v '^ *+' conftest.er1 >conftest.err
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } >/dev/null; then
5992 if test -s conftest.err; then
5993 ac_cpp_err=$ac_cxx_preproc_warn_flag
5994 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6001 if test -z "$ac_cpp_err"; then
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6007 # Broken: fails on valid input.
6011 rm -f conftest.err conftest.$ac_ext
6013 # OK, works on sane cases. Now check whether nonexistent headers
6014 # can be detected and how.
6015 cat >conftest.$ac_ext <<_ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h. */
6021 #include <ac_nonexistent.h>
6023 if { (ac_try="$ac_cpp conftest.$ac_ext"
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6031 grep -v '^ *+' conftest.er1 >conftest.err
6033 cat conftest.err >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); } >/dev/null; then
6036 if test -s conftest.err; then
6037 ac_cpp_err=$ac_cxx_preproc_warn_flag
6038 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6045 if test -z "$ac_cpp_err"; then
6046 # Broken: success on invalid input.
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6052 # Passes both tests.
6057 rm -f conftest.err conftest.$ac_ext
6060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6061 rm -f conftest.err conftest.$ac_ext
6062 if $ac_preproc_ok; then
6065 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6066 See \`config.log' for more details." >&5
6067 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6068 See \`config.log' for more details." >&2;}
6069 { (exit 1); exit 1; }; }
6073 ac_cpp='$CXXCPP $CPPFLAGS'
6074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6082 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6083 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6084 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6085 if test -n "$ac_tool_prefix"; then
6086 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6092 if test "${ac_cv_prog_F77+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 if test -n "$F77"; then
6096 ac_cv_prog_F77="$F77" # Let the user override the test.
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6105 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 if test -n "$F77"; then
6117 { echo "$as_me:$LINENO: result: $F77" >&5
6118 echo "${ECHO_T}$F77" >&6; }
6120 { echo "$as_me:$LINENO: result: no" >&5
6121 echo "${ECHO_T}no" >&6; }
6125 test -n "$F77" && break
6128 if test -z "$F77"; then
6130 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6132 # Extract the first word of "$ac_prog", so it can be a program name with args.
6133 set dummy $ac_prog; ac_word=$2
6134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6136 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 if test -n "$ac_ct_F77"; then
6140 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 test -z "$as_dir" && as_dir=.
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6149 ac_cv_prog_ac_ct_F77="$ac_prog"
6150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6159 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6160 if test -n "$ac_ct_F77"; then
6161 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6162 echo "${ECHO_T}$ac_ct_F77" >&6; }
6164 { echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6; }
6169 test -n "$ac_ct_F77" && break
6172 if test "x$ac_ct_F77" = x; then
6175 case $cross_compiling:$ac_tool_warned in
6177 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6178 whose name does not start with the host triplet. If you think this
6179 configuration is useful to you, please write to autoconf@gnu.org." >&5
6180 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6181 whose name does not start with the host triplet. If you think this
6182 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6183 ac_tool_warned=yes ;;
6190 # Provide some information about the compiler.
6191 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6192 ac_compiler=`set X $ac_compile; echo $2`
6193 { (ac_try="$ac_compiler --version >&5"
6195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196 *) ac_try_echo=$ac_try;;
6198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6199 (eval "$ac_compiler --version >&5") 2>&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }
6203 { (ac_try="$ac_compiler -v >&5"
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209 (eval "$ac_compiler -v >&5") 2>&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }
6213 { (ac_try="$ac_compiler -V >&5"
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6219 (eval "$ac_compiler -V >&5") 2>&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }
6225 # If we don't use `.F' as extension, the preprocessor is not run on the
6226 # input file. (Note that this only needs to work for GNU compilers.)
6229 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6230 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6231 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 cat >conftest.$ac_ext <<_ACEOF
6242 rm -f conftest.$ac_objext
6243 if { (ac_try="$ac_compile"
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_compile") 2>conftest.er1
6251 grep -v '^ *+' conftest.er1 >conftest.err
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } &&
6256 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6257 { (case "(($ac_try" in
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_try") 2>&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; } &&
6266 { ac_try='test -s conftest.$ac_objext'
6267 { (case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_try") 2>&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6288 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6289 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6291 ac_test_FFLAGS=${FFLAGS+set}
6292 ac_save_FFLAGS=$FFLAGS
6294 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6295 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6296 if test "${ac_cv_prog_f77_g+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 cat >conftest.$ac_ext <<_ACEOF
6305 rm -f conftest.$ac_objext
6306 if { (ac_try="$ac_compile"
6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312 (eval "$ac_compile") 2>conftest.er1
6314 grep -v '^ *+' conftest.er1 >conftest.err
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } &&
6319 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6320 { (case "(($ac_try" in
6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322 *) ac_try_echo=$ac_try;;
6324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325 (eval "$ac_try") 2>&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try='test -s conftest.$ac_objext'
6330 { (case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_try") 2>&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6339 ac_cv_prog_f77_g=yes
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6351 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6352 if test "$ac_test_FFLAGS" = set; then
6353 FFLAGS=$ac_save_FFLAGS
6354 elif test $ac_cv_prog_f77_g = yes; then
6355 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6361 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6368 G77=`test $ac_compiler_gnu = yes && echo yes`
6370 ac_cpp='$CPP $CPPFLAGS'
6371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6377 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6379 # find the maximum length of command line arguments
6380 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6381 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6382 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 # On DJGPP, this test can blow up pretty badly due to problems in libc
6391 # (any single argument exceeding 2000 bytes causes a buffer overrun
6392 # during glob expansion). Even if it were fixed, the result of this
6393 # check would be larger than it should be.
6394 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6398 # Under GNU Hurd, this test is not required because there is
6399 # no limit to the length of command line arguments.
6400 # Libtool will interpret -1 as no limit whatsoever
6401 lt_cv_sys_max_cmd_len=-1;
6405 # On Win9x/ME, this test blows up -- it succeeds, but takes
6406 # about 5 minutes as the teststring grows exponentially.
6407 # Worse, since 9x/ME are not pre-emptively multitasking,
6408 # you end up with a "frozen" computer, even though with patience
6409 # the test eventually succeeds (with a max line length of 256k).
6410 # Instead, let's just punt: use the minimum linelength reported by
6411 # all of the supported platforms: 8192 (on NT/2K/XP).
6412 lt_cv_sys_max_cmd_len=8192;
6416 # On AmigaOS with pdksh, this test takes hours, literally.
6417 # So we just punt and use a minimum line length of 8192.
6418 lt_cv_sys_max_cmd_len=8192;
6421 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6422 # This has been around since 386BSD, at least. Likely further.
6423 if test -x /sbin/sysctl; then
6424 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6425 elif test -x /usr/sbin/sysctl; then
6426 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6428 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6430 # And add a safety zone
6431 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6432 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6436 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6437 lt_cv_sys_max_cmd_len=196608
6441 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6442 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6443 # nice to cause kernel panics so lets avoid the loop below.
6444 # First set a reasonable default.
6445 lt_cv_sys_max_cmd_len=16384
6447 if test -x /sbin/sysconfig; then
6448 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6449 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6454 lt_cv_sys_max_cmd_len=102400
6456 sysv5* | sco5v6* | sysv4.2uw2*)
6457 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6458 if test -n "$kargmax"; then
6459 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6461 lt_cv_sys_max_cmd_len=32768
6465 # If test is not a shell built-in, we'll probably end up computing a
6466 # maximum length that is only half of the actual maximum length, but
6468 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6469 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6470 = "XX$teststring") >/dev/null 2>&1 &&
6471 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6472 lt_cv_sys_max_cmd_len=$new_result &&
6473 test $i != 17 # 1/2 MB should be enough
6476 teststring=$teststring$teststring
6479 # Add a significant safety factor because C++ compilers can tack on massive
6480 # amounts of additional arguments before passing them to the linker.
6481 # It appears as though 1/2 is a usable value.
6482 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6488 if test -n $lt_cv_sys_max_cmd_len ; then
6489 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6490 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6492 { echo "$as_me:$LINENO: result: none" >&5
6493 echo "${ECHO_T}none" >&6; }
6499 # Check for command to grab the raw symbol name followed by C symbol from nm.
6500 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6501 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6502 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 # These are sane defaults that work on at least a few old systems.
6507 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6509 # Character class describing NM global symbol codes.
6510 symcode='[BCDEGRST]'
6512 # Regexp to match symbols that can be accessed directly from C.
6513 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6515 # Transform an extracted symbol line into a proper C declaration
6516 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6518 # Transform an extracted symbol line into symbol name and symbol address
6519 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6521 # Define system-specific variables.
6526 cygwin* | mingw* | pw32*)
6527 symcode='[ABCDGISTW]'
6529 hpux*) # Its linker distinguishes data from code symbols
6530 if test "$host_cpu" = ia64; then
6531 symcode='[ABCDEGRST]'
6533 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6534 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'"
6537 if test "$host_cpu" = ia64; then
6538 symcode='[ABCDGIRSTW]'
6539 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6540 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 symcode='[BCDEGRST]'
6547 symcode='[BCDEGQRST]'
6558 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6566 # Handle CRLF in mingw tool chain
6570 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6574 # If we're using GNU nm, then use its standard symbol codes.
6575 case `$NM -V 2>&1` in
6576 *GNU* | *'with BFD'*)
6577 symcode='[ABCDGIRSTW]' ;;
6580 # Try without a prefix undercore, then with it.
6581 for ac_symprfx in "" "_"; do
6583 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6584 symxfrm="\\1 $ac_symprfx\\2 \\2"
6586 # Write the raw and C identifiers.
6587 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6589 # Check to see that the pipe works correctly.
6593 cat > conftest.$ac_ext <<EOF
6598 void nm_test_func(){}
6602 int main(){nm_test_var='a';nm_test_func();return(0);}
6605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6606 (eval $ac_compile) 2>&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; then
6610 # Now try to grab the symbols.
6612 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6613 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } && test -s "$nlist"; then
6617 # Try sorting and uniquifying the output.
6618 if sort "$nlist" | uniq > "$nlist"T; then
6619 mv -f "$nlist"T "$nlist"
6624 # Make sure that we snagged all the symbols we need.
6625 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6626 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6627 cat <<EOF > conftest.$ac_ext
6633 # Now generate the symbol file.
6634 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6636 cat <<EOF >> conftest.$ac_ext
6637 #if defined (__STDC__) && __STDC__
6638 # define lt_ptr_t void *
6640 # define lt_ptr_t char *
6644 /* The mapping between symbol names and symbols. */
6649 lt_preloaded_symbols[] =
6652 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6653 cat <<\EOF >> conftest.$ac_ext
6661 # Now try linking the two files.
6662 mv conftest.$ac_objext conftstm.$ac_objext
6663 lt_save_LIBS="$LIBS"
6664 lt_save_CFLAGS="$CFLAGS"
6665 LIBS="conftstm.$ac_objext"
6666 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6668 (eval $ac_link) 2>&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6674 LIBS="$lt_save_LIBS"
6675 CFLAGS="$lt_save_CFLAGS"
6677 echo "cannot find nm_test_func in $nlist" >&5
6680 echo "cannot find nm_test_var in $nlist" >&5
6683 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6686 echo "$progname: failed program was:" >&5
6687 cat conftest.$ac_ext >&5
6689 rm -f conftest* conftst*
6691 # Do not use the global_symbol_pipe unless it works.
6692 if test "$pipe_works" = yes; then
6695 lt_cv_sys_global_symbol_pipe=
6701 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6702 lt_cv_sys_global_symbol_to_cdecl=
6704 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6705 { echo "$as_me:$LINENO: result: failed" >&5
6706 echo "${ECHO_T}failed" >&6; }
6708 { echo "$as_me:$LINENO: result: ok" >&5
6709 echo "${ECHO_T}ok" >&6; }
6712 { echo "$as_me:$LINENO: checking for objdir" >&5
6713 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6714 if test "${lt_cv_objdir+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 rm -f .libs 2>/dev/null
6718 mkdir .libs 2>/dev/null
6719 if test -d .libs; then
6722 # MS-DOS does not allow filenames that begin with a dot.
6725 rmdir .libs 2>/dev/null
6727 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6728 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6729 objdir=$lt_cv_objdir
6737 # AIX sometimes has problems with the GCC collect2 program. For some
6738 # reason, if we set the COLLECT_NAMES environment variable, the problems
6739 # vanish in a puff of smoke.
6740 if test "X${COLLECT_NAMES+set}" != Xset; then
6742 export COLLECT_NAMES
6747 # Sed substitution that helps us do robust quoting. It backslashifies
6748 # metacharacters that are still active within double-quoted strings.
6749 Xsed='sed -e 1s/^X//'
6750 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6752 # Same as above, but do not quote variable references.
6753 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6755 # Sed substitution to delay expansion of an escaped shell variable in a
6756 # double_quote_subst'ed string.
6757 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6759 # Sed substitution to avoid accidental globbing in evaled expressions
6760 no_glob_subst='s/\*/\\\*/g'
6766 default_ofile=libtool
6767 can_build_shared=yes
6769 # All known linkers require a `.a' archive for static linking (except MSVC,
6770 # which needs '.lib').
6772 ltmain="$ac_aux_dir/ltmain.sh"
6773 ofile="$default_ofile"
6774 with_gnu_ld="$lt_cv_prog_gnu_ld"
6776 if test -n "$ac_tool_prefix"; then
6777 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6778 set dummy ${ac_tool_prefix}ar; ac_word=$2
6779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6781 if test "${ac_cv_prog_AR+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 if test -n "$AR"; then
6785 ac_cv_prog_AR="$AR" # Let the user override the test.
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_prog_AR="${ac_tool_prefix}ar"
6795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 if test -n "$AR"; then
6806 { echo "$as_me:$LINENO: result: $AR" >&5
6807 echo "${ECHO_T}$AR" >&6; }
6809 { echo "$as_me:$LINENO: result: no" >&5
6810 echo "${ECHO_T}no" >&6; }
6815 if test -z "$ac_cv_prog_AR"; then
6817 # Extract the first word of "ar", so it can be a program name with args.
6818 set dummy ar; ac_word=$2
6819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 if test -n "$ac_ct_AR"; then
6825 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_prog_ac_ct_AR="ar"
6835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6845 if test -n "$ac_ct_AR"; then
6846 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6847 echo "${ECHO_T}$ac_ct_AR" >&6; }
6849 { echo "$as_me:$LINENO: result: no" >&5
6850 echo "${ECHO_T}no" >&6; }
6853 if test "x$ac_ct_AR" = x; then
6856 case $cross_compiling:$ac_tool_warned in
6858 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6859 whose name does not start with the host triplet. If you think this
6860 configuration is useful to you, please write to autoconf@gnu.org." >&5
6861 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6862 whose name does not start with the host triplet. If you think this
6863 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6864 ac_tool_warned=yes ;;
6872 if test -n "$ac_tool_prefix"; then
6873 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6874 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6877 if test "${ac_cv_prog_RANLIB+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 if test -n "$RANLIB"; then
6881 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6890 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 RANLIB=$ac_cv_prog_RANLIB
6901 if test -n "$RANLIB"; then
6902 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6903 echo "${ECHO_T}$RANLIB" >&6; }
6905 { echo "$as_me:$LINENO: result: no" >&5
6906 echo "${ECHO_T}no" >&6; }
6911 if test -z "$ac_cv_prog_RANLIB"; then
6912 ac_ct_RANLIB=$RANLIB
6913 # Extract the first word of "ranlib", so it can be a program name with args.
6914 set dummy ranlib; ac_word=$2
6915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6917 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 if test -n "$ac_ct_RANLIB"; then
6921 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6930 ac_cv_prog_ac_ct_RANLIB="ranlib"
6931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6941 if test -n "$ac_ct_RANLIB"; then
6942 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6943 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6945 { echo "$as_me:$LINENO: result: no" >&5
6946 echo "${ECHO_T}no" >&6; }
6949 if test "x$ac_ct_RANLIB" = x; then
6952 case $cross_compiling:$ac_tool_warned in
6954 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6955 whose name does not start with the host triplet. If you think this
6956 configuration is useful to you, please write to autoconf@gnu.org." >&5
6957 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6958 whose name does not start with the host triplet. If you think this
6959 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6960 ac_tool_warned=yes ;;
6962 RANLIB=$ac_ct_RANLIB
6965 RANLIB="$ac_cv_prog_RANLIB"
6968 if test -n "$ac_tool_prefix"; then
6969 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6970 set dummy ${ac_tool_prefix}strip; ac_word=$2
6971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6973 if test "${ac_cv_prog_STRIP+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 if test -n "$STRIP"; then
6977 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 test -z "$as_dir" && as_dir=.
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6986 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6996 STRIP=$ac_cv_prog_STRIP
6997 if test -n "$STRIP"; then
6998 { echo "$as_me:$LINENO: result: $STRIP" >&5
6999 echo "${ECHO_T}$STRIP" >&6; }
7001 { echo "$as_me:$LINENO: result: no" >&5
7002 echo "${ECHO_T}no" >&6; }
7007 if test -z "$ac_cv_prog_STRIP"; then
7009 # Extract the first word of "strip", so it can be a program name with args.
7010 set dummy strip; ac_word=$2
7011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7013 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 if test -n "$ac_ct_STRIP"; then
7017 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 test -z "$as_dir" && as_dir=.
7024 for ac_exec_ext in '' $ac_executable_extensions; do
7025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7026 ac_cv_prog_ac_ct_STRIP="strip"
7027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7037 if test -n "$ac_ct_STRIP"; then
7038 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7039 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7041 { echo "$as_me:$LINENO: result: no" >&5
7042 echo "${ECHO_T}no" >&6; }
7045 if test "x$ac_ct_STRIP" = x; then
7048 case $cross_compiling:$ac_tool_warned in
7050 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7051 whose name does not start with the host triplet. If you think this
7052 configuration is useful to you, please write to autoconf@gnu.org." >&5
7053 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7054 whose name does not start with the host triplet. If you think this
7055 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7056 ac_tool_warned=yes ;;
7061 STRIP="$ac_cv_prog_STRIP"
7066 old_CFLAGS="$CFLAGS"
7068 # Set sane defaults for various variables
7069 test -z "$AR" && AR=ar
7070 test -z "$AR_FLAGS" && AR_FLAGS=cru
7071 test -z "$AS" && AS=as
7072 test -z "$CC" && CC=cc
7073 test -z "$LTCC" && LTCC=$CC
7074 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7075 test -z "$DLLTOOL" && DLLTOOL=dlltool
7076 test -z "$LD" && LD=ld
7077 test -z "$LN_S" && LN_S="ln -s"
7078 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7079 test -z "$NM" && NM=nm
7080 test -z "$SED" && SED=sed
7081 test -z "$OBJDUMP" && OBJDUMP=objdump
7082 test -z "$RANLIB" && RANLIB=:
7083 test -z "$STRIP" && STRIP=:
7084 test -z "$ac_objext" && ac_objext=o
7086 # Determine commands to create old-style static archives.
7087 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7088 old_postinstall_cmds='chmod 644 $oldlib'
7089 old_postuninstall_cmds=
7091 if test -n "$RANLIB"; then
7094 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7097 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7100 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7103 for cc_temp in $compiler""; do
7105 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7106 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7111 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7114 # Only perform the check for file, if the check method requires it
7115 case $deplibs_check_method in
7117 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7118 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7119 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7120 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7128 lt_save_MAGIC_CMD="$MAGIC_CMD"
7129 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7130 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7131 for ac_dir in $ac_dummy; do
7133 test -z "$ac_dir" && ac_dir=.
7134 if test -f $ac_dir/${ac_tool_prefix}file; then
7135 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7136 if test -n "$file_magic_test_file"; then
7137 case $deplibs_check_method in
7139 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7140 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7141 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7142 $EGREP "$file_magic_regex" > /dev/null; then
7147 *** Warning: the command libtool uses to detect shared libraries,
7148 *** $file_magic_cmd, produces output that libtool cannot recognize.
7149 *** The result is that libtool may fail to recognize shared libraries
7150 *** as such. This will affect the creation of libtool libraries that
7151 *** depend on shared libraries, but programs linked with such libtool
7152 *** libraries will work regardless of this problem. Nevertheless, you
7153 *** may want to report the problem to your system manager and/or to
7154 *** bug-libtool@gnu.org
7164 MAGIC_CMD="$lt_save_MAGIC_CMD"
7169 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7170 if test -n "$MAGIC_CMD"; then
7171 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7172 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7174 { echo "$as_me:$LINENO: result: no" >&5
7175 echo "${ECHO_T}no" >&6; }
7178 if test -z "$lt_cv_path_MAGIC_CMD"; then
7179 if test -n "$ac_tool_prefix"; then
7180 { echo "$as_me:$LINENO: checking for file" >&5
7181 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7182 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7190 lt_save_MAGIC_CMD="$MAGIC_CMD"
7191 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7192 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7193 for ac_dir in $ac_dummy; do
7195 test -z "$ac_dir" && ac_dir=.
7196 if test -f $ac_dir/file; then
7197 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7198 if test -n "$file_magic_test_file"; then
7199 case $deplibs_check_method in
7201 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7202 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7203 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7204 $EGREP "$file_magic_regex" > /dev/null; then
7209 *** Warning: the command libtool uses to detect shared libraries,
7210 *** $file_magic_cmd, produces output that libtool cannot recognize.
7211 *** The result is that libtool may fail to recognize shared libraries
7212 *** as such. This will affect the creation of libtool libraries that
7213 *** depend on shared libraries, but programs linked with such libtool
7214 *** libraries will work regardless of this problem. Nevertheless, you
7215 *** may want to report the problem to your system manager and/or to
7216 *** bug-libtool@gnu.org
7226 MAGIC_CMD="$lt_save_MAGIC_CMD"
7231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7232 if test -n "$MAGIC_CMD"; then
7233 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7234 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7236 { echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6; }
7252 # Check whether --enable-libtool-lock was given.
7253 if test "${enable_libtool_lock+set}" = set; then
7254 enableval=$enable_libtool_lock;
7257 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7260 # Check whether --with-pic was given.
7261 if test "${with_pic+set}" = set; then
7262 withval=$with_pic; pic_mode="$withval"
7267 test -z "$pic_mode" && pic_mode=default
7269 # Use C for the default configuration in the libtool script
7273 ac_cpp='$CPP $CPPFLAGS'
7274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7279 # Source file extension for C test sources.
7282 # Object file extension for compiled C test sources.
7286 # Code to be used in simple compile tests
7287 lt_simple_compile_test_code="int some_variable = 0;\n"
7289 # Code to be used in simple link tests
7290 lt_simple_link_test_code='int main(){return(0);}\n'
7293 # If no C compiler was specified, use CC.
7296 # If no C compiler flags were specified, use CFLAGS.
7297 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7299 # Allow CC to be a program name with arguments.
7303 # save warnings/boilerplate of simple test code
7304 ac_outfile=conftest.$ac_objext
7305 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7306 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7307 _lt_compiler_boilerplate=`cat conftest.err`
7310 ac_outfile=conftest.$ac_objext
7311 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7312 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7313 _lt_linker_boilerplate=`cat conftest.err`
7318 ## There is no encapsulation within the following macros, do not change
7319 ## the running order or otherwise move them around unless you know exactly
7320 ## what you are doing...
7322 lt_prog_compiler_no_builtin_flag=
7324 if test "$GCC" = yes; then
7325 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7328 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7329 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7330 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 lt_cv_prog_compiler_rtti_exceptions=no
7334 ac_outfile=conftest.$ac_objext
7335 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7336 lt_compiler_flag="-fno-rtti -fno-exceptions"
7337 # Insert the option either (1) after the last *FLAGS variable, or
7338 # (2) before a word containing "conftest.", or (3) at the end.
7339 # Note that $ac_compile itself does not contain backslashes and begins
7340 # with a dollar sign (not a hyphen), so the echo should work correctly.
7341 # The option is referenced via a variable to avoid confusing sed.
7342 lt_compile=`echo "$ac_compile" | $SED \
7343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7345 -e 's:$: $lt_compiler_flag:'`
7346 (eval echo "\"\$as_me:7346: $lt_compile\"" >&5)
7347 (eval "$lt_compile" 2>conftest.err)
7349 cat conftest.err >&5
7350 echo "$as_me:7350: \$? = $ac_status" >&5
7351 if (exit $ac_status) && test -s "$ac_outfile"; then
7352 # The compiler can only warn and ignore the option if not recognized
7353 # So say no if there are warnings other than the usual output.
7354 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7356 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7357 lt_cv_prog_compiler_rtti_exceptions=yes
7363 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7364 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7366 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7367 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7374 lt_prog_compiler_wl=
7375 lt_prog_compiler_pic=
7376 lt_prog_compiler_static=
7378 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7379 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7381 if test "$GCC" = yes; then
7382 lt_prog_compiler_wl='-Wl,'
7383 lt_prog_compiler_static='-static'
7387 # All AIX code is PIC.
7388 if test "$host_cpu" = ia64; then
7389 # AIX 5 now supports IA64 processor
7390 lt_prog_compiler_static='-Bstatic'
7395 # FIXME: we need at least 68020 code to build shared libraries, but
7396 # adding the `-m68020' flag to GCC prevents building anything better,
7398 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7401 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7402 # PIC is the default for these OSes.
7405 mingw* | pw32* | os2*)
7406 # This hack is so that the source file can tell whether it is being
7407 # built for inclusion in a dll (and should export symbols for example).
7408 lt_prog_compiler_pic='-DDLL_EXPORT'
7411 darwin* | rhapsody*)
7412 # PIC is the default on this platform
7413 # Common symbols not allowed in MH_DYLIB files
7414 lt_prog_compiler_pic='-fno-common'
7418 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7419 # Instead, we relocate shared libraries at runtime.
7423 # Just because we use GCC doesn't mean we suddenly get shared libraries
7424 # on systems that don't support them.
7425 lt_prog_compiler_can_build_shared=no
7430 if test -d /usr/nec; then
7431 lt_prog_compiler_pic=-Kconform_pic
7436 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7443 lt_prog_compiler_pic='-fPIC'
7449 lt_prog_compiler_pic='-fPIC'
7453 # PORTME Check for flag to pass linker flags through the system compiler.
7456 lt_prog_compiler_wl='-Wl,'
7457 if test "$host_cpu" = ia64; then
7458 # AIX 5 now supports IA64 processor
7459 lt_prog_compiler_static='-Bstatic'
7461 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7465 # PIC is the default on this platform
7466 # Common symbols not allowed in MH_DYLIB files
7467 case $cc_basename in
7469 lt_prog_compiler_pic='-qnocommon'
7470 lt_prog_compiler_wl='-Wl,'
7475 mingw* | pw32* | os2*)
7476 # This hack is so that the source file can tell whether it is being
7477 # built for inclusion in a dll (and should export symbols for example).
7478 lt_prog_compiler_pic='-DDLL_EXPORT'
7481 hpux9* | hpux10* | hpux11*)
7482 lt_prog_compiler_wl='-Wl,'
7483 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7490 lt_prog_compiler_pic='+Z'
7493 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7494 lt_prog_compiler_static='${wl}-a ${wl}archive'
7497 irix5* | irix6* | nonstopux*)
7498 lt_prog_compiler_wl='-Wl,'
7499 # PIC (with -KPIC) is the default.
7500 lt_prog_compiler_static='-non_shared'
7504 lt_prog_compiler_pic='-KPIC'
7505 lt_prog_compiler_static='-Bstatic'
7509 case $cc_basename in
7511 lt_prog_compiler_wl='-Wl,'
7512 lt_prog_compiler_pic='-KPIC'
7513 lt_prog_compiler_static='-static'
7515 pgcc* | pgf77* | pgf90* | pgf95*)
7516 # Portland Group compilers (*not* the Pentium gcc compiler,
7517 # which looks to be a dead project)
7518 lt_prog_compiler_wl='-Wl,'
7519 lt_prog_compiler_pic='-fpic'
7520 lt_prog_compiler_static='-Bstatic'
7523 lt_prog_compiler_wl='-Wl,'
7524 # All Alpha code is PIC.
7525 lt_prog_compiler_static='-non_shared'
7530 osf3* | osf4* | osf5*)
7531 lt_prog_compiler_wl='-Wl,'
7532 # All OSF/1 code is PIC.
7533 lt_prog_compiler_static='-non_shared'
7537 lt_prog_compiler_pic='-KPIC'
7538 lt_prog_compiler_static='-Bstatic'
7539 case $cc_basename in
7541 lt_prog_compiler_wl='-Qoption ld ';;
7543 lt_prog_compiler_wl='-Wl,';;
7548 lt_prog_compiler_wl='-Qoption ld '
7549 lt_prog_compiler_pic='-PIC'
7550 lt_prog_compiler_static='-Bstatic'
7553 sysv4 | sysv4.2uw2* | sysv4.3*)
7554 lt_prog_compiler_wl='-Wl,'
7555 lt_prog_compiler_pic='-KPIC'
7556 lt_prog_compiler_static='-Bstatic'
7560 if test -d /usr/nec ;then
7561 lt_prog_compiler_pic='-Kconform_pic'
7562 lt_prog_compiler_static='-Bstatic'
7566 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7567 lt_prog_compiler_wl='-Wl,'
7568 lt_prog_compiler_pic='-KPIC'
7569 lt_prog_compiler_static='-Bstatic'
7573 lt_prog_compiler_wl='-Wl,'
7574 lt_prog_compiler_can_build_shared=no
7578 lt_prog_compiler_pic='-pic'
7579 lt_prog_compiler_static='-Bstatic'
7583 lt_prog_compiler_can_build_shared=no
7588 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7589 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7592 # Check to make sure the PIC flag actually works.
7594 if test -n "$lt_prog_compiler_pic"; then
7596 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7597 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7598 if test "${lt_prog_compiler_pic_works+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 lt_prog_compiler_pic_works=no
7602 ac_outfile=conftest.$ac_objext
7603 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7604 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7605 # Insert the option either (1) after the last *FLAGS variable, or
7606 # (2) before a word containing "conftest.", or (3) at the end.
7607 # Note that $ac_compile itself does not contain backslashes and begins
7608 # with a dollar sign (not a hyphen), so the echo should work correctly.
7609 # The option is referenced via a variable to avoid confusing sed.
7610 lt_compile=`echo "$ac_compile" | $SED \
7611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7613 -e 's:$: $lt_compiler_flag:'`
7614 (eval echo "\"\$as_me:7614: $lt_compile\"" >&5)
7615 (eval "$lt_compile" 2>conftest.err)
7617 cat conftest.err >&5
7618 echo "$as_me:7618: \$? = $ac_status" >&5
7619 if (exit $ac_status) && test -s "$ac_outfile"; then
7620 # The compiler can only warn and ignore the option if not recognized
7621 # So say no if there are warnings other than the usual output.
7622 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7623 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7624 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7625 lt_prog_compiler_pic_works=yes
7631 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7632 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7634 if test x"$lt_prog_compiler_pic_works" = xyes; then
7635 case $lt_prog_compiler_pic in
7637 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7640 lt_prog_compiler_pic=
7641 lt_prog_compiler_can_build_shared=no
7646 # For platforms which do not support PIC, -DPIC is meaningless:
7648 lt_prog_compiler_pic=
7651 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7656 # Check to make sure the static flag actually works.
7658 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7659 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7660 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7661 if test "${lt_prog_compiler_static_works+set}" = set; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 lt_prog_compiler_static_works=no
7665 save_LDFLAGS="$LDFLAGS"
7666 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7667 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7668 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7669 # The linker can only warn and ignore the option if not recognized
7670 # So say no if there are warnings
7671 if test -s conftest.err; then
7672 # Append any errors to the config.log.
7673 cat conftest.err 1>&5
7674 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7675 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7676 if diff conftest.exp conftest.er2 >/dev/null; then
7677 lt_prog_compiler_static_works=yes
7680 lt_prog_compiler_static_works=yes
7684 LDFLAGS="$save_LDFLAGS"
7687 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7688 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7690 if test x"$lt_prog_compiler_static_works" = xyes; then
7693 lt_prog_compiler_static=
7697 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7698 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7699 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 lt_cv_prog_compiler_c_o=no
7703 $rm -r conftest 2>/dev/null
7707 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7709 lt_compiler_flag="-o out/conftest2.$ac_objext"
7710 # Insert the option either (1) after the last *FLAGS variable, or
7711 # (2) before a word containing "conftest.", or (3) at the end.
7712 # Note that $ac_compile itself does not contain backslashes and begins
7713 # with a dollar sign (not a hyphen), so the echo should work correctly.
7714 lt_compile=`echo "$ac_compile" | $SED \
7715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7717 -e 's:$: $lt_compiler_flag:'`
7718 (eval echo "\"\$as_me:7718: $lt_compile\"" >&5)
7719 (eval "$lt_compile" 2>out/conftest.err)
7721 cat out/conftest.err >&5
7722 echo "$as_me:7722: \$? = $ac_status" >&5
7723 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7725 # The compiler can only warn and ignore the option if not recognized
7726 # So say no if there are warnings
7727 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7728 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7729 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7730 lt_cv_prog_compiler_c_o=yes
7735 # SGI C++ compiler will create directory out/ii_files/ for
7736 # template instantiation
7737 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7738 $rm out/* && rmdir out
7744 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7745 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7748 hard_links="nottested"
7749 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7750 # do not overwrite the value of need_locks provided by the user
7751 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7752 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7755 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7757 ln conftest.a conftest.b 2>&5 || hard_links=no
7758 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7759 { echo "$as_me:$LINENO: result: $hard_links" >&5
7760 echo "${ECHO_T}$hard_links" >&6; }
7761 if test "$hard_links" = no; then
7762 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7763 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7770 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7771 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7774 allow_undefined_flag=
7775 enable_shared_with_static_runtimes=no
7777 archive_expsym_cmds=
7778 old_archive_From_new_cmds=
7779 old_archive_from_expsyms_cmds=
7780 export_dynamic_flag_spec=
7781 whole_archive_flag_spec=
7782 thread_safe_flag_spec=
7783 hardcode_libdir_flag_spec=
7784 hardcode_libdir_flag_spec_ld=
7785 hardcode_libdir_separator=
7788 hardcode_shlibpath_var=unsupported
7789 link_all_deplibs=unknown
7790 hardcode_automatic=no
7793 always_export_symbols=no
7794 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7795 # include_expsyms should be a list of space-separated symbols to be *always*
7796 # included in the symbol list
7798 # exclude_expsyms can be an extended regexp of symbols to exclude
7799 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7800 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7801 # as well as any symbol that contains `d'.
7802 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7803 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7804 # platforms (ab)use it in PIC code, but their linkers get confused if
7805 # the symbol is explicitly referenced. Since portable code cannot
7806 # rely on this symbol name, it's probably fine to never include it in
7807 # preloaded symbol tables.
7808 extract_expsyms_cmds=
7809 # Just being paranoid about ensuring that cc_basename is set.
7810 for cc_temp in $compiler""; do
7812 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7813 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7818 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7821 cygwin* | mingw* | pw32*)
7822 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7823 # When not using gcc, we currently assume that we are using
7824 # Microsoft Visual C++.
7825 if test "$GCC" != yes; then
7830 # we just hope/assume this is gcc and not c89 (= MSVC++)
7839 if test "$with_gnu_ld" = yes; then
7840 # If archive_cmds runs LD, not CC, wlarc should be empty
7843 # Set some defaults for GNU ld with shared library support. These
7844 # are reset later if shared libraries are not supported. Putting them
7845 # here allows them to be overridden if necessary.
7846 runpath_var=LD_RUN_PATH
7847 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7848 export_dynamic_flag_spec='${wl}--export-dynamic'
7849 # ancient GNU ld didn't support --whole-archive et. al.
7850 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7851 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7853 whole_archive_flag_spec=
7855 supports_anon_versioning=no
7856 case `$LD -v 2>/dev/null` in
7857 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7858 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7859 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7860 *\ 2.11.*) ;; # other 2.11 versions
7861 *) supports_anon_versioning=yes ;;
7864 # See if GNU ld supports shared libraries.
7866 aix3* | aix4* | aix5*)
7867 # On AIX/PPC, the GNU linker is very broken
7868 if test "$host_cpu" != ia64; then
7872 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7873 *** to be unable to reliably create shared libraries on AIX.
7874 *** Therefore, libtool is disabling shared libraries support. If you
7875 *** really care for shared libraries, you may want to modify your PATH
7876 *** so that a non-GNU linker is found, and then restart.
7883 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)'
7884 hardcode_libdir_flag_spec='-L$libdir'
7885 hardcode_minus_L=yes
7887 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7888 # that the semantics of dynamic libraries on AmigaOS, at least up
7889 # to version 4, is to share data among multiple programs linked
7890 # with the same dynamic library. Since this doesn't match the
7891 # behavior of shared libraries on other platforms, we can't use
7897 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7898 allow_undefined_flag=unsupported
7899 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7900 # support --undefined. This deserves some investigation. FIXME
7901 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7907 cygwin* | mingw* | pw32*)
7908 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7909 # as there is no search path for DLLs.
7910 hardcode_libdir_flag_spec='-L$libdir'
7911 allow_undefined_flag=unsupported
7912 always_export_symbols=no
7913 enable_shared_with_static_runtimes=yes
7914 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7916 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7917 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7918 # If the export-symbols file already is a .def file (1st line
7919 # is EXPORTS), use it as is; otherwise, prepend...
7920 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7921 cp $export_symbols $output_objdir/$soname.def;
7923 echo EXPORTS > $output_objdir/$soname.def;
7924 cat $export_symbols >> $output_objdir/$soname.def;
7926 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7934 hardcode_shlibpath_var=no
7935 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7936 export_dynamic_flag_spec='${wl}-E'
7937 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7938 # Instead, shared libraries are loaded at an image base (0x10000000 by
7939 # default) and relocated if they conflict, which is a slow very memory
7940 # consuming and fragmenting process. To avoid this, we pick a random,
7941 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7942 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7943 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7944 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'
7948 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7950 case $cc_basename,$host_cpu in
7951 pgcc*) # Portland Group C compiler
7952 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'
7953 tmp_addflag=' $pic_flag'
7955 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7956 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'
7957 tmp_addflag=' $pic_flag -Mnomain' ;;
7958 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7959 tmp_addflag=' -i_dynamic' ;;
7960 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7961 tmp_addflag=' -i_dynamic -nofor_main' ;;
7962 ifc* | ifort*) # Intel Fortran compiler
7963 tmp_addflag=' -nofor_main' ;;
7965 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7967 if test $supports_anon_versioning = yes; then
7968 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7969 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7970 $echo "local: *; };" >> $output_objdir/$libname.ver~
7971 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7980 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7984 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7989 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7993 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7994 *** create shared libraries on Solaris systems. Therefore, libtool
7995 *** is disabling shared libraries support. We urge you to upgrade GNU
7996 *** binutils to release 2.9.1 or newer. Another option is to modify
7997 *** your PATH or compiler configuration so that the native linker is
7998 *** used, and then restart.
8001 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8002 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8003 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8009 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8010 case `$LD -v 2>&1` in
8011 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8015 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8016 *** reliably create shared libraries on SCO systems. Therefore, libtool
8017 *** is disabling shared libraries support. We urge you to upgrade GNU
8018 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8019 *** your PATH or compiler configuration so that the native linker is
8020 *** used, and then restart.
8025 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8026 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8028 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8037 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8040 hardcode_shlibpath_var=no
8044 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8046 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8053 if test "$ld_shlibs" = no; then
8055 hardcode_libdir_flag_spec=
8056 export_dynamic_flag_spec=
8057 whole_archive_flag_spec=
8060 # PORTME fill in a description of your system's linker (not GNU ld)
8063 allow_undefined_flag=unsupported
8064 always_export_symbols=yes
8065 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'
8066 # Note: this linker hardcodes the directories in LIBPATH if there
8067 # are no directories specified by -L.
8068 hardcode_minus_L=yes
8069 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8070 # Neither direct hardcoding nor static linking is supported with a
8072 hardcode_direct=unsupported
8077 if test "$host_cpu" = ia64; then
8078 # On IA64, the linker does run time linking by default, so we don't
8079 # have to do anything special.
8080 aix_use_runtimelinking=no
8081 exp_sym_flag='-Bexport'
8084 # If we're using GNU nm, then we don't want the "-C" option.
8085 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8086 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8087 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'
8089 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'
8091 aix_use_runtimelinking=no
8093 # Test if we are trying to use run time linking or normal
8094 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8095 # need to do runtime linking.
8096 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8097 for ld_flag in $LDFLAGS; do
8098 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8099 aix_use_runtimelinking=yes
8106 exp_sym_flag='-bexport'
8107 no_entry_flag='-bnoentry'
8110 # When large executables or shared objects are built, AIX ld can
8111 # have problems creating the table of contents. If linking a library
8112 # or program results in "error TOC overflow" add -mminimal-toc to
8113 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8114 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8118 hardcode_libdir_separator=':'
8119 link_all_deplibs=yes
8121 if test "$GCC" = yes; then
8122 case $host_os in aix4.[012]|aix4.[012].*)
8123 # We only want to do this on AIX 4.2 and lower, the check
8124 # below for broken collect2 doesn't work under 4.3+
8125 collect2name=`${CC} -print-prog-name=collect2`
8126 if test -f "$collect2name" && \
8127 strings "$collect2name" | grep resolve_lib_name >/dev/null
8129 # We have reworked collect2
8132 # We have old collect2
8133 hardcode_direct=unsupported
8134 # It fails to find uninstalled libraries when the uninstalled
8135 # path is not listed in the libpath. Setting hardcode_minus_L
8136 # to unsupported forces relinking
8137 hardcode_minus_L=yes
8138 hardcode_libdir_flag_spec='-L$libdir'
8139 hardcode_libdir_separator=
8143 shared_flag='-shared'
8144 if test "$aix_use_runtimelinking" = yes; then
8145 shared_flag="$shared_flag "'${wl}-G'
8149 if test "$host_cpu" = ia64; then
8150 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8151 # chokes on -Wl,-G. The following line is correct:
8154 if test "$aix_use_runtimelinking" = yes; then
8155 shared_flag='${wl}-G'
8157 shared_flag='${wl}-bM:SRE'
8162 # It seems that -bexpall does not export symbols beginning with
8163 # underscore (_), so it is better to generate a list of symbols to export.
8164 always_export_symbols=yes
8165 if test "$aix_use_runtimelinking" = yes; then
8166 # Warning - without using the other runtime loading flags (-brtl),
8167 # -berok will link without error, but may produce a broken library.
8168 allow_undefined_flag='-berok'
8169 # Determine the default libpath from the value encoded in an empty executable.
8170 cat >conftest.$ac_ext <<_ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8185 rm -f conftest.$ac_objext conftest$ac_exeext
8186 if { (ac_try="$ac_link"
8188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189 *) ac_try_echo=$ac_try;;
8191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8192 (eval "$ac_link") 2>conftest.er1
8194 grep -v '^ *+' conftest.er1 >conftest.err
8196 cat conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } &&
8199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8200 { (case "(($ac_try" in
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205 (eval "$ac_try") 2>&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; } &&
8209 { ac_try='test -s conftest$ac_exeext'
8210 { (case "(($ac_try" in
8211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215 (eval "$ac_try") 2>&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); }; }; then
8220 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8222 # Check for a 64-bit object if we didn't find anything.
8223 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8232 rm -f core conftest.err conftest.$ac_objext \
8233 conftest$ac_exeext conftest.$ac_ext
8234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8236 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8237 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"
8239 if test "$host_cpu" = ia64; then
8240 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8241 allow_undefined_flag="-z nodefs"
8242 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"
8244 # Determine the default libpath from the value encoded in an empty executable.
8245 cat >conftest.$ac_ext <<_ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8260 rm -f conftest.$ac_objext conftest$ac_exeext
8261 if { (ac_try="$ac_link"
8263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264 *) ac_try_echo=$ac_try;;
8266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8267 (eval "$ac_link") 2>conftest.er1
8269 grep -v '^ *+' conftest.er1 >conftest.err
8271 cat conftest.err >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } &&
8274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8275 { (case "(($ac_try" in
8276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280 (eval "$ac_try") 2>&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; } &&
8284 { ac_try='test -s conftest$ac_exeext'
8285 { (case "(($ac_try" in
8286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290 (eval "$ac_try") 2>&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; }; then
8295 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8297 # Check for a 64-bit object if we didn't find anything.
8298 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8307 rm -f core conftest.err conftest.$ac_objext \
8308 conftest$ac_exeext conftest.$ac_ext
8309 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8311 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8312 # Warning - without using the other run time loading flags,
8313 # -berok will link without error, but may produce a broken library.
8314 no_undefined_flag=' ${wl}-bernotok'
8315 allow_undefined_flag=' ${wl}-berok'
8316 # Exported symbols can be pulled into shared objects from archives
8317 whole_archive_flag_spec='$convenience'
8318 archive_cmds_need_lc=yes
8319 # This is similar to how AIX traditionally builds its shared libraries.
8320 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'
8326 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)'
8327 hardcode_libdir_flag_spec='-L$libdir'
8328 hardcode_minus_L=yes
8329 # see comment about different semantics on the GNU ld section
8334 export_dynamic_flag_spec=-rdynamic
8337 cygwin* | mingw* | pw32*)
8338 # When not using gcc, we currently assume that we are using
8339 # Microsoft Visual C++.
8340 # hardcode_libdir_flag_spec is actually meaningless, as there is
8341 # no search path for DLLs.
8342 hardcode_libdir_flag_spec=' '
8343 allow_undefined_flag=unsupported
8344 # Tell ltmain to make .lib files, not .a files.
8346 # Tell ltmain to make .dll files, not .so files.
8348 # FIXME: Setting linknames here is a bad hack.
8349 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8350 # The linker will automatically build a .lib file if we build a DLL.
8351 old_archive_From_new_cmds='true'
8352 # FIXME: Should let the user specify the lib program.
8353 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8354 fix_srcfile_path='`cygpath -w "$srcfile"`'
8355 enable_shared_with_static_runtimes=yes
8358 darwin* | rhapsody*)
8360 rhapsody* | darwin1.[012])
8361 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8364 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8365 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8367 case ${MACOSX_DEPLOYMENT_TARGET} in
8369 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8372 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8378 archive_cmds_need_lc=no
8380 hardcode_automatic=yes
8381 hardcode_shlibpath_var=unsupported
8382 whole_archive_flag_spec=''
8383 link_all_deplibs=yes
8384 if test "$GCC" = yes ; then
8385 output_verbose_link_cmd='echo'
8386 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8387 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8388 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8389 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8390 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}'
8392 case $cc_basename in
8394 output_verbose_link_cmd='echo'
8395 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8396 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8397 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8398 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8399 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}'
8409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8410 hardcode_libdir_flag_spec='-L$libdir'
8411 hardcode_shlibpath_var=no
8418 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8419 # support. Future versions do this automatically, but an explicit c++rt0.o
8420 # does not break anything, and helps significantly (at the cost of a little
8423 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8424 hardcode_libdir_flag_spec='-R$libdir'
8426 hardcode_shlibpath_var=no
8429 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8431 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8433 hardcode_minus_L=yes
8434 hardcode_shlibpath_var=no
8437 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8438 freebsd* | kfreebsd*-gnu | dragonfly*)
8439 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8440 hardcode_libdir_flag_spec='-R$libdir'
8442 hardcode_shlibpath_var=no
8446 if test "$GCC" = yes; then
8447 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'
8449 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'
8451 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8452 hardcode_libdir_separator=:
8455 # hardcode_minus_L: Not really in the search PATH,
8456 # but as the default location of the library.
8457 hardcode_minus_L=yes
8458 export_dynamic_flag_spec='${wl}-E'
8462 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8463 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8465 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8467 if test "$with_gnu_ld" = no; then
8468 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8469 hardcode_libdir_separator=:
8472 export_dynamic_flag_spec='${wl}-E'
8474 # hardcode_minus_L: Not really in the search PATH,
8475 # but as the default location of the library.
8476 hardcode_minus_L=yes
8481 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8484 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8487 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8490 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8496 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8499 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8502 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8506 if test "$with_gnu_ld" = no; then
8507 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8508 hardcode_libdir_separator=:
8512 hardcode_libdir_flag_spec_ld='+b $libdir'
8514 hardcode_shlibpath_var=no
8518 export_dynamic_flag_spec='${wl}-E'
8520 # hardcode_minus_L: Not really in the search PATH,
8521 # but as the default location of the library.
8522 hardcode_minus_L=yes
8528 irix5* | irix6* | nonstopux*)
8529 if test "$GCC" = yes; then
8530 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'
8532 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'
8533 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8536 hardcode_libdir_separator=:
8537 link_all_deplibs=yes
8541 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8542 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8544 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8546 hardcode_libdir_flag_spec='-R$libdir'
8548 hardcode_shlibpath_var=no
8552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8555 hardcode_libdir_separator=:
8556 hardcode_shlibpath_var=no
8561 hardcode_shlibpath_var=no
8562 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8563 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8564 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8565 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8566 export_dynamic_flag_spec='${wl}-E'
8569 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8571 hardcode_libdir_flag_spec='-R$libdir'
8574 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8575 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8582 hardcode_libdir_flag_spec='-L$libdir'
8583 hardcode_minus_L=yes
8584 allow_undefined_flag=unsupported
8585 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'
8586 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8590 if test "$GCC" = yes; then
8591 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8592 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'
8594 allow_undefined_flag=' -expect_unresolved \*'
8595 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'
8597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8598 hardcode_libdir_separator=:
8601 osf4* | osf5*) # as osf3* with the addition of -msym flag
8602 if test "$GCC" = yes; then
8603 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8604 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'
8605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8607 allow_undefined_flag=' -expect_unresolved \*'
8608 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'
8609 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8610 $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'
8612 # Both c and cxx compiler support -rpath directly
8613 hardcode_libdir_flag_spec='-rpath $libdir'
8615 hardcode_libdir_separator=:
8619 no_undefined_flag=' -z text'
8620 if test "$GCC" = yes; then
8622 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8623 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8624 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8627 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8628 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8629 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8631 hardcode_libdir_flag_spec='-R$libdir'
8632 hardcode_shlibpath_var=no
8634 solaris2.[0-5] | solaris2.[0-5].*) ;;
8636 # The compiler driver will combine linker options so we
8637 # cannot just pass the convience library names through
8638 # without $wl, iff we do not link with $LD.
8639 # Luckily, gcc supports the same syntax we need for Sun Studio.
8640 # Supported since Solaris 2.6 (maybe 2.5.1?)
8643 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8645 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8648 link_all_deplibs=yes
8652 if test "x$host_vendor" = xsequent; then
8653 # Use $CC to link under sequent, because it throws in some extra .o
8654 # files that make .init and .fini sections work.
8655 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8657 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8659 hardcode_libdir_flag_spec='-L$libdir'
8661 hardcode_minus_L=yes
8662 hardcode_shlibpath_var=no
8666 case $host_vendor in
8668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8669 hardcode_direct=yes # is this really true???
8672 ## LD is ld it makes a PLAMLIB
8673 ## CC just makes a GrossModule.
8674 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8675 reload_cmds='$CC -r -o $output$reload_objs'
8679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8680 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8683 runpath_var='LD_RUN_PATH'
8684 hardcode_shlibpath_var=no
8688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8689 hardcode_shlibpath_var=no
8690 export_dynamic_flag_spec='-Bexport'
8694 if test -d /usr/nec; then
8695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8696 hardcode_shlibpath_var=no
8697 runpath_var=LD_RUN_PATH
8698 hardcode_runpath_var=yes
8703 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8704 no_undefined_flag='${wl}-z,text'
8705 archive_cmds_need_lc=no
8706 hardcode_shlibpath_var=no
8707 runpath_var='LD_RUN_PATH'
8709 if test "$GCC" = yes; then
8710 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8711 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8713 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8714 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8718 sysv5* | sco3.2v5* | sco5v6*)
8719 # Note: We can NOT use -z defs as we might desire, because we do not
8720 # link with -lc, and that would cause any symbols used from libc to
8721 # always be unresolved, which means just about no library would
8722 # ever link correctly. If we're not using GNU ld we use -z text
8723 # though, which does catch some bad symbols but isn't as heavy-handed
8725 no_undefined_flag='${wl}-z,text'
8726 allow_undefined_flag='${wl}-z,nodefs'
8727 archive_cmds_need_lc=no
8728 hardcode_shlibpath_var=no
8729 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8730 hardcode_libdir_separator=':'
8731 link_all_deplibs=yes
8732 export_dynamic_flag_spec='${wl}-Bexport'
8733 runpath_var='LD_RUN_PATH'
8735 if test "$GCC" = yes; then
8736 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8737 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8739 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8740 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8746 hardcode_libdir_flag_spec='-L$libdir'
8747 hardcode_shlibpath_var=no
8756 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8757 echo "${ECHO_T}$ld_shlibs" >&6; }
8758 test "$ld_shlibs" = no && can_build_shared=no
8761 # Do we need to explicitly link libc?
8763 case "x$archive_cmds_need_lc" in
8765 # Assume -lc should be added
8766 archive_cmds_need_lc=yes
8768 if test "$enable_shared" = yes && test "$GCC" = yes; then
8769 case $archive_cmds in
8771 # FIXME: we may have to deal with multi-command sequences.
8774 # Test whether the compiler implicitly links with -lc since on some
8775 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8776 # to ld, don't add -lc before -lgcc.
8777 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8778 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8780 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8783 (eval $ac_compile) 2>&5
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); } 2>conftest.err; then
8789 libobjs=conftest.$ac_objext
8791 wl=$lt_prog_compiler_wl
8792 pic_flag=$lt_prog_compiler_pic
8798 lt_save_allow_undefined_flag=$allow_undefined_flag
8799 allow_undefined_flag=
8800 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8801 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }
8806 archive_cmds_need_lc=no
8808 archive_cmds_need_lc=yes
8810 allow_undefined_flag=$lt_save_allow_undefined_flag
8812 cat conftest.err 1>&5
8815 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8816 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8823 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8824 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8826 libname_spec='lib$name'
8834 shlibpath_overrides_runpath=unknown
8836 dynamic_linker="$host_os ld.so"
8837 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8838 if test "$GCC" = yes; then
8839 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8840 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8841 # if the path contains ";" then we assume it to be the separator
8842 # otherwise default to the standard path separator (i.e. ":") - it is
8843 # assumed that no part of a normal pathname contains ";" but that should
8844 # okay in the real world where ";" in dirpaths is itself problematic.
8845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8850 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8852 need_lib_prefix=unknown
8853 hardcode_into_libs=no
8855 # when you set need_version to no, make sure it does not cause -set_version
8856 # flags to be left without arguments
8857 need_version=unknown
8862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8863 shlibpath_var=LIBPATH
8865 # AIX 3 has no versioning support, so we append a major version to the name.
8866 soname_spec='${libname}${release}${shared_ext}$major'
8873 hardcode_into_libs=yes
8874 if test "$host_cpu" = ia64; then
8875 # AIX 5 supports IA64
8876 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8877 shlibpath_var=LD_LIBRARY_PATH
8879 # With GCC up to 2.95.x, collect2 would create an import file
8880 # for dependence libraries. The import file would start with
8881 # the line `#! .'. This would cause the generated library to
8882 # depend on `.', always an invalid library. This was fixed in
8883 # development snapshots of GCC prior to 3.0.
8885 aix4 | aix4.[01] | aix4.[01].*)
8886 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8888 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8895 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8896 # soname into executable. Probably we can add versioning support to
8897 # collect2, so additional links can be useful in future.
8898 if test "$aix_use_runtimelinking" = yes; then
8899 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8900 # instead of lib<name>.a to let people know that these are not
8901 # typical AIX shared libraries.
8902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8904 # We preserve .a as extension for shared libraries through AIX4.2
8905 # and later when we are not doing run time linking.
8906 library_names_spec='${libname}${release}.a $libname.a'
8907 soname_spec='${libname}${release}${shared_ext}$major'
8909 shlibpath_var=LIBPATH
8914 library_names_spec='$libname.ixlibrary $libname.a'
8915 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8916 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'
8920 library_names_spec='${libname}${shared_ext}'
8921 dynamic_linker="$host_os ld.so"
8922 shlibpath_var=LIBRARY_PATH
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8929 soname_spec='${libname}${release}${shared_ext}$major'
8930 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8931 shlibpath_var=LD_LIBRARY_PATH
8932 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8933 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8934 # the default ld.so.conf also contains /usr/contrib/lib and
8935 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8936 # libtool to hard-code these into programs
8939 cygwin* | mingw* | pw32*)
8940 version_type=windows
8945 case $GCC,$host_os in
8946 yes,cygwin* | yes,mingw* | yes,pw32*)
8947 library_names_spec='$libname.dll.a'
8948 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8949 postinstall_cmds='base_file=`basename \${file}`~
8950 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8951 dldir=$destdir/`dirname \$dlpath`~
8952 test -d \$dldir || mkdir -p \$dldir~
8953 $install_prog $dir/$dlname \$dldir/$dlname~
8954 chmod a+x \$dldir/$dlname'
8955 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8956 dlpath=$dir/\$dldll~
8958 shlibpath_overrides_runpath=yes
8962 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8963 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8964 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8967 # MinGW DLLs use traditional 'lib' prefix
8968 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8969 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8970 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8971 # It is most probably a Windows format PATH printed by
8972 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8973 # path with ; separators, and with drive letters. We can handle the
8974 # drive letters (cygwin fileutils understands them), so leave them,
8975 # especially as we might pass files found there to a mingw objdump,
8976 # which wouldn't understand a cygwinified path. Ahh.
8977 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8979 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8983 # pw32 DLLs use 'pw' prefix rather than 'lib'
8984 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8990 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8993 dynamic_linker='Win32 ld.exe'
8994 # FIXME: first we should search . and the directory the executable is in
8998 darwin* | rhapsody*)
8999 dynamic_linker="$host_os dyld"
9003 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9004 soname_spec='${libname}${release}${major}$shared_ext'
9005 shlibpath_overrides_runpath=yes
9006 shlibpath_var=DYLD_LIBRARY_PATH
9007 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9008 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9009 if test "$GCC" = yes; then
9010 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9012 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9014 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9022 soname_spec='${libname}${release}${shared_ext}$major'
9023 shlibpath_var=LD_LIBRARY_PATH
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9035 soname_spec='${libname}${release}${shared_ext}$major'
9036 shlibpath_var=LD_LIBRARY_PATH
9037 shlibpath_overrides_runpath=no
9038 hardcode_into_libs=yes
9039 dynamic_linker='GNU ld.so'
9042 freebsd* | dragonfly*)
9043 # DragonFly does not have aout. When/if they implement a new
9044 # versioning mechanism, adjust this.
9045 if test -x /usr/bin/objformat; then
9046 objformat=`/usr/bin/objformat`
9049 freebsd[123]*) objformat=aout ;;
9053 version_type=freebsd-$objformat
9054 case $version_type in
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9061 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9065 shlibpath_var=LD_LIBRARY_PATH
9068 shlibpath_overrides_runpath=yes
9070 freebsd3.[01]* | freebsdelf3.[01]*)
9071 shlibpath_overrides_runpath=yes
9072 hardcode_into_libs=yes
9074 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9075 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9076 shlibpath_overrides_runpath=no
9077 hardcode_into_libs=yes
9079 freebsd*) # from 4.6 on
9080 shlibpath_overrides_runpath=yes
9081 hardcode_into_libs=yes
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9091 soname_spec='${libname}${release}${shared_ext}$major'
9092 shlibpath_var=LD_LIBRARY_PATH
9093 hardcode_into_libs=yes
9096 hpux9* | hpux10* | hpux11*)
9097 # Give a soname corresponding to the major version so that dld.sl refuses to
9098 # link against other versions.
9105 hardcode_into_libs=yes
9106 dynamic_linker="$host_os dld.so"
9107 shlibpath_var=LD_LIBRARY_PATH
9108 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9110 soname_spec='${libname}${release}${shared_ext}$major'
9111 if test "X$HPUX_IA64_MODE" = X32; then
9112 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9114 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9116 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9120 hardcode_into_libs=yes
9121 dynamic_linker="$host_os dld.sl"
9122 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9123 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9125 soname_spec='${libname}${release}${shared_ext}$major'
9126 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9127 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9131 dynamic_linker="$host_os dld.sl"
9132 shlibpath_var=SHLIB_PATH
9133 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135 soname_spec='${libname}${release}${shared_ext}$major'
9138 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9139 postinstall_cmds='chmod 555 $lib'
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9147 soname_spec='${libname}${release}${shared_ext}$major'
9148 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9149 shlibpath_var=LD_LIBRARY_PATH
9150 shlibpath_overrides_runpath=no
9151 hardcode_into_libs=yes
9154 irix5* | irix6* | nonstopux*)
9156 nonstopux*) version_type=nonstopux ;;
9158 if test "$lt_cv_prog_gnu_ld" = yes; then
9166 soname_spec='${libname}${release}${shared_ext}$major'
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9169 irix5* | nonstopux*)
9173 case $LD in # libtool.m4 will add one of these switches to LD
9174 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9175 libsuff= shlibsuff= libmagic=32-bit;;
9176 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9177 libsuff=32 shlibsuff=N32 libmagic=N32;;
9178 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9179 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9180 *) libsuff= shlibsuff= libmagic=never-match;;
9184 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9185 shlibpath_overrides_runpath=no
9186 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9187 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9188 hardcode_into_libs=yes
9191 # No shared lib support for Linux oldld, aout, or coff.
9192 linux*oldld* | linux*aout* | linux*coff*)
9196 # This must be Linux ELF.
9201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9202 soname_spec='${libname}${release}${shared_ext}$major'
9203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9204 shlibpath_var=LD_LIBRARY_PATH
9205 shlibpath_overrides_runpath=no
9206 # This implies no fast_install, which is unacceptable.
9207 # Some rework will be needed to allow for fast_install
9208 # before this can be enabled.
9209 hardcode_into_libs=yes
9211 # Append ld.so.conf contents to the search path
9212 if test -f /etc/ld.so.conf; then
9213 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9214 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9217 # We used to test for /lib/ld.so.1 and disable shared libraries on
9218 # powerpc, because MkLinux only supported shared libraries with the
9219 # GNU dynamic linker. Since this was broken with cross compilers,
9220 # most powerpc-linux boxes support dynamic linking these days and
9221 # people can always --disable-shared, the test was removed, and we
9222 # assume the GNU/Linux dynamic linker is in use.
9223 dynamic_linker='GNU/Linux ld.so'
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9231 soname_spec='${libname}${release}${shared_ext}$major'
9232 shlibpath_var=LD_LIBRARY_PATH
9233 shlibpath_overrides_runpath=no
9234 hardcode_into_libs=yes
9235 dynamic_linker='GNU ld.so'
9242 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9245 dynamic_linker='NetBSD (a.out) ld.so'
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9248 soname_spec='${libname}${release}${shared_ext}$major'
9249 dynamic_linker='NetBSD ld.elf_so'
9251 shlibpath_var=LD_LIBRARY_PATH
9252 shlibpath_overrides_runpath=yes
9253 hardcode_into_libs=yes
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9259 shlibpath_var=LD_LIBRARY_PATH
9260 shlibpath_overrides_runpath=yes
9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9268 soname_spec='${libname}${release}${shared_ext}$major'
9269 shlibpath_var=LD_LIBRARY_PATH
9270 shlibpath_overrides_runpath=yes
9275 sys_lib_dlsearch_path_spec="/usr/lib"
9277 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9279 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9280 *) need_version=no ;;
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9287 openbsd2.[89] | openbsd2.[89].*)
9288 shlibpath_overrides_runpath=no
9291 shlibpath_overrides_runpath=yes
9295 shlibpath_overrides_runpath=yes
9300 libname_spec='$name'
9303 library_names_spec='$libname${shared_ext} $libname.a'
9304 dynamic_linker='OS/2 ld.exe'
9305 shlibpath_var=LIBPATH
9308 osf3* | osf4* | osf5*)
9312 soname_spec='${libname}${release}${shared_ext}$major'
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314 shlibpath_var=LD_LIBRARY_PATH
9315 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9316 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9324 soname_spec='${libname}${release}${shared_ext}$major'
9325 shlibpath_var=LD_LIBRARY_PATH
9326 shlibpath_overrides_runpath=yes
9327 hardcode_into_libs=yes
9328 # ldd complains unless libraries are executable
9329 postinstall_cmds='chmod +x $lib'
9334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9335 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9336 shlibpath_var=LD_LIBRARY_PATH
9337 shlibpath_overrides_runpath=yes
9338 if test "$with_gnu_ld" = yes; then
9346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9347 soname_spec='${libname}${release}${shared_ext}$major'
9348 shlibpath_var=LD_LIBRARY_PATH
9349 case $host_vendor in
9351 shlibpath_overrides_runpath=no
9353 export_dynamic_flag_spec='${wl}-Blargedynsym'
9354 runpath_var=LD_RUN_PATH
9362 shlibpath_overrides_runpath=no
9363 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9369 if test -d /usr/nec ;then
9371 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9372 soname_spec='$libname${shared_ext}.$major'
9373 shlibpath_var=LD_LIBRARY_PATH
9377 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9378 version_type=freebsd-elf
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9382 soname_spec='${libname}${release}${shared_ext}$major'
9383 shlibpath_var=LD_LIBRARY_PATH
9384 hardcode_into_libs=yes
9385 if test "$with_gnu_ld" = yes; then
9386 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9387 shlibpath_overrides_runpath=no
9389 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9390 shlibpath_overrides_runpath=yes
9393 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9397 sys_lib_dlsearch_path_spec='/usr/lib'
9402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9403 soname_spec='${libname}${release}${shared_ext}$major'
9404 shlibpath_var=LD_LIBRARY_PATH
9411 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9412 echo "${ECHO_T}$dynamic_linker" >&6; }
9413 test "$dynamic_linker" = no && can_build_shared=no
9415 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9416 if test "$GCC" = yes; then
9417 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9420 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9421 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9423 if test -n "$hardcode_libdir_flag_spec" || \
9424 test -n "$runpath_var" || \
9425 test "X$hardcode_automatic" = "Xyes" ; then
9427 # We can hardcode non-existant directories.
9428 if test "$hardcode_direct" != no &&
9429 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9430 # have to relink, otherwise we might link with an installed library
9431 # when we should be linking with a yet-to-be-installed one
9432 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9433 test "$hardcode_minus_L" != no; then
9434 # Linking always hardcodes the temporary library directory.
9435 hardcode_action=relink
9437 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9438 hardcode_action=immediate
9441 # We cannot hardcode anything, or else we can only hardcode existing
9443 hardcode_action=unsupported
9445 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9446 echo "${ECHO_T}$hardcode_action" >&6; }
9448 if test "$hardcode_action" = relink; then
9449 # Fast installation is not supported
9450 enable_fast_install=no
9451 elif test "$shlibpath_overrides_runpath" = yes ||
9452 test "$enable_shared" = no; then
9453 # Fast installation is not necessary
9454 enable_fast_install=needless
9459 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9460 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9461 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9462 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9463 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9464 { echo "$as_me:$LINENO: result: yes" >&5
9465 echo "${ECHO_T}yes" >&6; }
9467 # FIXME - insert some real tests, host_os isn't really good enough
9470 if test -n "$STRIP" ; then
9471 striplib="$STRIP -x"
9472 { echo "$as_me:$LINENO: result: yes" >&5
9473 echo "${ECHO_T}yes" >&6; }
9475 { echo "$as_me:$LINENO: result: no" >&5
9476 echo "${ECHO_T}no" >&6; }
9480 { echo "$as_me:$LINENO: result: no" >&5
9481 echo "${ECHO_T}no" >&6; }
9486 if test "x$enable_dlopen" != xyes; then
9487 enable_dlopen=unknown
9488 enable_dlopen_self=unknown
9489 enable_dlopen_self_static=unknown
9496 lt_cv_dlopen="load_add_on"
9498 lt_cv_dlopen_self=yes
9502 lt_cv_dlopen="LoadLibrary"
9507 lt_cv_dlopen="dlopen"
9512 # if libdl is installed we need to link against it
9513 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9514 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9515 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
9518 ac_check_lib_save_LIBS=$LIBS
9520 cat >conftest.$ac_ext <<_ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9527 /* Override any GCC internal prototype to avoid an error.
9528 Use char because int might match the return type of a GCC
9529 builtin and then its argument prototype would still apply. */
9542 rm -f conftest.$ac_objext conftest$ac_exeext
9543 if { (ac_try="$ac_link"
9545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546 *) ac_try_echo=$ac_try;;
9548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549 (eval "$ac_link") 2>conftest.er1
9551 grep -v '^ *+' conftest.er1 >conftest.err
9553 cat conftest.err >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } &&
9556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9557 { (case "(($ac_try" in
9558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559 *) ac_try_echo=$ac_try;;
9561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9562 (eval "$ac_try") 2>&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; } &&
9566 { ac_try='test -s conftest$ac_exeext'
9567 { (case "(($ac_try" in
9568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569 *) ac_try_echo=$ac_try;;
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572 (eval "$ac_try") 2>&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; }; then
9576 ac_cv_lib_dl_dlopen=yes
9578 echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9581 ac_cv_lib_dl_dlopen=no
9584 rm -f core conftest.err conftest.$ac_objext \
9585 conftest$ac_exeext conftest.$ac_ext
9586 LIBS=$ac_check_lib_save_LIBS
9588 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9589 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9590 if test $ac_cv_lib_dl_dlopen = yes; then
9591 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9596 lt_cv_dlopen_self=yes
9603 { echo "$as_me:$LINENO: checking for shl_load" >&5
9604 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9605 if test "${ac_cv_func_shl_load+set}" = set; then
9606 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 cat >conftest.$ac_ext <<_ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h. */
9614 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9616 #define shl_load innocuous_shl_load
9618 /* System header to define __stub macros and hopefully few prototypes,
9619 which can conflict with char shl_load (); below.
9620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9621 <limits.h> exists even on freestanding compilers. */
9624 # include <limits.h>
9626 # include <assert.h>
9631 /* Override any GCC internal prototype to avoid an error.
9632 Use char because int might match the return type of a GCC
9633 builtin and then its argument prototype would still apply. */
9638 /* The GNU C library defines this for functions which it implements
9639 to always fail with ENOSYS. Some functions are actually named
9640 something starting with __ and the normal name is an alias. */
9641 #if defined __stub_shl_load || defined __stub___shl_load
9653 rm -f conftest.$ac_objext conftest$ac_exeext
9654 if { (ac_try="$ac_link"
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_link") 2>conftest.er1
9662 grep -v '^ *+' conftest.er1 >conftest.err
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } &&
9667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9668 { (case "(($ac_try" in
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_try") 2>&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; } &&
9677 { ac_try='test -s conftest$ac_exeext'
9678 { (case "(($ac_try" in
9679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680 *) ac_try_echo=$ac_try;;
9682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683 (eval "$ac_try") 2>&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; }; then
9687 ac_cv_func_shl_load=yes
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9692 ac_cv_func_shl_load=no
9695 rm -f core conftest.err conftest.$ac_objext \
9696 conftest$ac_exeext conftest.$ac_ext
9698 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9699 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9700 if test $ac_cv_func_shl_load = yes; then
9701 lt_cv_dlopen="shl_load"
9703 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9704 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9705 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 ac_check_lib_save_LIBS=$LIBS
9710 cat >conftest.$ac_ext <<_ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9717 /* Override any GCC internal prototype to avoid an error.
9718 Use char because int might match the return type of a GCC
9719 builtin and then its argument prototype would still apply. */
9732 rm -f conftest.$ac_objext conftest$ac_exeext
9733 if { (ac_try="$ac_link"
9735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736 *) ac_try_echo=$ac_try;;
9738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739 (eval "$ac_link") 2>conftest.er1
9741 grep -v '^ *+' conftest.er1 >conftest.err
9743 cat conftest.err >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } &&
9746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9747 { (case "(($ac_try" in
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_try") 2>&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; } &&
9756 { ac_try='test -s conftest$ac_exeext'
9757 { (case "(($ac_try" in
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762 (eval "$ac_try") 2>&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; }; then
9766 ac_cv_lib_dld_shl_load=yes
9768 echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9771 ac_cv_lib_dld_shl_load=no
9774 rm -f core conftest.err conftest.$ac_objext \
9775 conftest$ac_exeext conftest.$ac_ext
9776 LIBS=$ac_check_lib_save_LIBS
9778 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9779 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9780 if test $ac_cv_lib_dld_shl_load = yes; then
9781 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9783 { echo "$as_me:$LINENO: checking for dlopen" >&5
9784 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9785 if test "${ac_cv_func_dlopen+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 cat >conftest.$ac_ext <<_ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9794 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9796 #define dlopen innocuous_dlopen
9798 /* System header to define __stub macros and hopefully few prototypes,
9799 which can conflict with char dlopen (); below.
9800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801 <limits.h> exists even on freestanding compilers. */
9804 # include <limits.h>
9806 # include <assert.h>
9811 /* Override any GCC internal prototype to avoid an error.
9812 Use char because int might match the return type of a GCC
9813 builtin and then its argument prototype would still apply. */
9818 /* The GNU C library defines this for functions which it implements
9819 to always fail with ENOSYS. Some functions are actually named
9820 something starting with __ and the normal name is an alias. */
9821 #if defined __stub_dlopen || defined __stub___dlopen
9833 rm -f conftest.$ac_objext conftest$ac_exeext
9834 if { (ac_try="$ac_link"
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_link") 2>conftest.er1
9842 grep -v '^ *+' conftest.er1 >conftest.err
9844 cat conftest.err >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } &&
9847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9848 { (case "(($ac_try" in
9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850 *) ac_try_echo=$ac_try;;
9852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853 (eval "$ac_try") 2>&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; } &&
9857 { ac_try='test -s conftest$ac_exeext'
9858 { (case "(($ac_try" in
9859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860 *) ac_try_echo=$ac_try;;
9862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9863 (eval "$ac_try") 2>&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; }; then
9867 ac_cv_func_dlopen=yes
9869 echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9872 ac_cv_func_dlopen=no
9875 rm -f core conftest.err conftest.$ac_objext \
9876 conftest$ac_exeext conftest.$ac_ext
9878 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9879 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9880 if test $ac_cv_func_dlopen = yes; then
9881 lt_cv_dlopen="dlopen"
9883 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9884 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9885 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9886 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 ac_check_lib_save_LIBS=$LIBS
9890 cat >conftest.$ac_ext <<_ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9897 /* Override any GCC internal prototype to avoid an error.
9898 Use char because int might match the return type of a GCC
9899 builtin and then its argument prototype would still apply. */
9912 rm -f conftest.$ac_objext conftest$ac_exeext
9913 if { (ac_try="$ac_link"
9915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916 *) ac_try_echo=$ac_try;;
9918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9919 (eval "$ac_link") 2>conftest.er1
9921 grep -v '^ *+' conftest.er1 >conftest.err
9923 cat conftest.err >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); } &&
9926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9927 { (case "(($ac_try" in
9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929 *) ac_try_echo=$ac_try;;
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932 (eval "$ac_try") 2>&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; } &&
9936 { ac_try='test -s conftest$ac_exeext'
9937 { (case "(($ac_try" in
9938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939 *) ac_try_echo=$ac_try;;
9941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942 (eval "$ac_try") 2>&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; }; then
9946 ac_cv_lib_dl_dlopen=yes
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9951 ac_cv_lib_dl_dlopen=no
9954 rm -f core conftest.err conftest.$ac_objext \
9955 conftest$ac_exeext conftest.$ac_ext
9956 LIBS=$ac_check_lib_save_LIBS
9958 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9959 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9960 if test $ac_cv_lib_dl_dlopen = yes; then
9961 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9963 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9964 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9965 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9968 ac_check_lib_save_LIBS=$LIBS
9970 cat >conftest.$ac_ext <<_ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9977 /* Override any GCC internal prototype to avoid an error.
9978 Use char because int might match the return type of a GCC
9979 builtin and then its argument prototype would still apply. */
9992 rm -f conftest.$ac_objext conftest$ac_exeext
9993 if { (ac_try="$ac_link"
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999 (eval "$ac_link") 2>conftest.er1
10001 grep -v '^ *+' conftest.er1 >conftest.err
10003 cat conftest.err >&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } &&
10006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10007 { (case "(($ac_try" in
10008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009 *) ac_try_echo=$ac_try;;
10011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10012 (eval "$ac_try") 2>&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); }; } &&
10016 { ac_try='test -s conftest$ac_exeext'
10017 { (case "(($ac_try" in
10018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10019 *) ac_try_echo=$ac_try;;
10021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10022 (eval "$ac_try") 2>&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; }; then
10026 ac_cv_lib_svld_dlopen=yes
10028 echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10031 ac_cv_lib_svld_dlopen=no
10034 rm -f core conftest.err conftest.$ac_objext \
10035 conftest$ac_exeext conftest.$ac_ext
10036 LIBS=$ac_check_lib_save_LIBS
10038 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10039 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10040 if test $ac_cv_lib_svld_dlopen = yes; then
10041 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10043 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10044 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10045 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
10048 ac_check_lib_save_LIBS=$LIBS
10050 cat >conftest.$ac_ext <<_ACEOF
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10057 /* Override any GCC internal prototype to avoid an error.
10058 Use char because int might match the return type of a GCC
10059 builtin and then its argument prototype would still apply. */
10067 return dld_link ();
10072 rm -f conftest.$ac_objext conftest$ac_exeext
10073 if { (ac_try="$ac_link"
10074 case "(($ac_try" in
10075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076 *) ac_try_echo=$ac_try;;
10078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079 (eval "$ac_link") 2>conftest.er1
10081 grep -v '^ *+' conftest.er1 >conftest.err
10083 cat conftest.err >&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } &&
10086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10087 { (case "(($ac_try" in
10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089 *) ac_try_echo=$ac_try;;
10091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092 (eval "$ac_try") 2>&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; } &&
10096 { ac_try='test -s conftest$ac_exeext'
10097 { (case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102 (eval "$ac_try") 2>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; }; then
10106 ac_cv_lib_dld_dld_link=yes
10108 echo "$as_me: failed program was:" >&5
10109 sed 's/^/| /' conftest.$ac_ext >&5
10111 ac_cv_lib_dld_dld_link=no
10114 rm -f core conftest.err conftest.$ac_objext \
10115 conftest$ac_exeext conftest.$ac_ext
10116 LIBS=$ac_check_lib_save_LIBS
10118 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10119 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10120 if test $ac_cv_lib_dld_dld_link = yes; then
10121 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10142 if test "x$lt_cv_dlopen" != xno; then
10148 case $lt_cv_dlopen in
10150 save_CPPFLAGS="$CPPFLAGS"
10151 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10153 save_LDFLAGS="$LDFLAGS"
10154 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10157 LIBS="$lt_cv_dlopen_libs $LIBS"
10159 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10160 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10161 if test "${lt_cv_dlopen_self+set}" = set; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 if test "$cross_compiling" = yes; then :
10165 lt_cv_dlopen_self=cross
10167 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10168 lt_status=$lt_dlunknown
10169 cat > conftest.$ac_ext <<EOF
10170 #line 10170 "configure"
10171 #include "confdefs.h"
10180 # define LT_DLGLOBAL RTLD_GLOBAL
10183 # define LT_DLGLOBAL DL_GLOBAL
10185 # define LT_DLGLOBAL 0
10189 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10190 find out it does not work in some platform. */
10191 #ifndef LT_DLLAZY_OR_NOW
10193 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10196 # define LT_DLLAZY_OR_NOW DL_LAZY
10199 # define LT_DLLAZY_OR_NOW RTLD_NOW
10202 # define LT_DLLAZY_OR_NOW DL_NOW
10204 # define LT_DLLAZY_OR_NOW 0
10212 extern "C" void exit (int);
10215 void fnord() { int i=42;}
10218 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10219 int status = $lt_dlunknown;
10223 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10224 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10225 /* dlclose (self); */
10233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10234 (eval $ac_link) 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10238 (./conftest; exit; ) >&5 2>/dev/null
10240 case x$lt_status in
10241 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10242 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10243 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10246 # compilation failed
10247 lt_cv_dlopen_self=no
10254 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10255 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10257 if test "x$lt_cv_dlopen_self" = xyes; then
10258 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10259 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10260 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10261 if test "${lt_cv_dlopen_self_static+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
10264 if test "$cross_compiling" = yes; then :
10265 lt_cv_dlopen_self_static=cross
10267 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10268 lt_status=$lt_dlunknown
10269 cat > conftest.$ac_ext <<EOF
10270 #line 10270 "configure"
10271 #include "confdefs.h"
10280 # define LT_DLGLOBAL RTLD_GLOBAL
10283 # define LT_DLGLOBAL DL_GLOBAL
10285 # define LT_DLGLOBAL 0
10289 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10290 find out it does not work in some platform. */
10291 #ifndef LT_DLLAZY_OR_NOW
10293 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10296 # define LT_DLLAZY_OR_NOW DL_LAZY
10299 # define LT_DLLAZY_OR_NOW RTLD_NOW
10302 # define LT_DLLAZY_OR_NOW DL_NOW
10304 # define LT_DLLAZY_OR_NOW 0
10312 extern "C" void exit (int);
10315 void fnord() { int i=42;}
10318 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10319 int status = $lt_dlunknown;
10323 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10324 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10325 /* dlclose (self); */
10333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10334 (eval $ac_link) 2>&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10338 (./conftest; exit; ) >&5 2>/dev/null
10340 case x$lt_status in
10341 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10342 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10343 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10346 # compilation failed
10347 lt_cv_dlopen_self_static=no
10354 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10355 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10358 CPPFLAGS="$save_CPPFLAGS"
10359 LDFLAGS="$save_LDFLAGS"
10364 case $lt_cv_dlopen_self in
10365 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10366 *) enable_dlopen_self=unknown ;;
10369 case $lt_cv_dlopen_self_static in
10370 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10371 *) enable_dlopen_self_static=unknown ;;
10376 # Report which library types will actually be built
10377 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10378 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10379 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10380 echo "${ECHO_T}$can_build_shared" >&6; }
10382 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10383 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10384 test "$can_build_shared" = "no" && enable_shared=no
10386 # On AIX, shared libraries and static libraries use the same namespace, and
10387 # are all built from PIC.
10390 test "$enable_shared" = yes && enable_static=no
10391 if test -n "$RANLIB"; then
10392 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10393 postinstall_cmds='$RANLIB $lib'
10398 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10399 test "$enable_shared" = yes && enable_static=no
10403 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10404 echo "${ECHO_T}$enable_shared" >&6; }
10406 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10407 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10408 # Make sure either enable_shared or enable_static is yes.
10409 test "$enable_shared" = yes || enable_static=yes
10410 { echo "$as_me:$LINENO: result: $enable_static" >&5
10411 echo "${ECHO_T}$enable_static" >&6; }
10413 # The else clause should only fire when bootstrapping the
10414 # libtool distribution, otherwise you forgot to ship ltmain.sh
10415 # with your package, and you will get complaints that there are
10416 # no rules to generate ltmain.sh.
10417 if test -f "$ltmain"; then
10418 # See if we are running on zsh, and set the options which allow our commands through
10419 # without removal of \ escapes.
10420 if test -n "${ZSH_VERSION+set}" ; then
10421 setopt NO_GLOB_SUBST
10423 # Now quote all the things that may contain metacharacters while being
10424 # careful not to overquote the AC_SUBSTed values. We take copies of the
10425 # variables and quote the copies for generation of the libtool script.
10426 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10428 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10429 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10430 deplibs_check_method reload_flag reload_cmds need_locks \
10431 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10432 lt_cv_sys_global_symbol_to_c_name_address \
10433 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10434 old_postinstall_cmds old_postuninstall_cmds \
10438 lt_prog_compiler_wl \
10439 lt_prog_compiler_pic \
10440 lt_prog_compiler_static \
10441 lt_prog_compiler_no_builtin_flag \
10442 export_dynamic_flag_spec \
10443 thread_safe_flag_spec \
10444 whole_archive_flag_spec \
10445 enable_shared_with_static_runtimes \
10447 old_archive_from_new_cmds \
10452 compiler_lib_search_path \
10454 archive_expsym_cmds \
10456 postuninstall_cmds \
10457 old_archive_from_expsyms_cmds \
10458 allow_undefined_flag \
10459 no_undefined_flag \
10460 export_symbols_cmds \
10461 hardcode_libdir_flag_spec \
10462 hardcode_libdir_flag_spec_ld \
10463 hardcode_libdir_separator \
10464 hardcode_automatic \
10466 module_expsym_cmds \
10467 lt_cv_prog_compiler_c_o \
10469 include_expsyms; do
10472 old_archive_cmds | \
10473 old_archive_from_new_cmds | \
10475 archive_expsym_cmds | \
10477 module_expsym_cmds | \
10478 old_archive_from_expsyms_cmds | \
10479 export_symbols_cmds | \
10480 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10481 postinstall_cmds | postuninstall_cmds | \
10482 old_postinstall_cmds | old_postuninstall_cmds | \
10483 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10484 # Double-quote double-evaled strings.
10485 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10488 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10494 *'\$0 --fallback-echo"')
10495 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10499 cfgfile="${ofile}T"
10500 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10502 { echo "$as_me:$LINENO: creating $ofile" >&5
10503 echo "$as_me: creating $ofile" >&6;}
10505 cat <<__EOF__ >> "$cfgfile"
10508 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10509 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10510 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10512 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10513 # Free Software Foundation, Inc.
10515 # This file is part of GNU Libtool:
10516 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10518 # This program is free software; you can redistribute it and/or modify
10519 # it under the terms of the GNU General Public License as published by
10520 # the Free Software Foundation; either version 2 of the License, or
10521 # (at your option) any later version.
10523 # This program is distributed in the hope that it will be useful, but
10524 # WITHOUT ANY WARRANTY; without even the implied warranty of
10525 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10526 # General Public License for more details.
10528 # You should have received a copy of the GNU General Public License
10529 # along with this program; if not, write to the Free Software
10530 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10532 # As a special exception to the GNU General Public License, if you
10533 # distribute this file as part of a program that contains a
10534 # configuration script generated by Autoconf, you may include it under
10535 # the same distribution terms that you use for the rest of that program.
10537 # A sed program that does not truncate output.
10540 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10541 Xsed="$SED -e 1s/^X//"
10543 # The HP-UX ksh and POSIX shell print the target directory to stdout
10544 # if CDPATH is set.
10545 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10547 # The names of the tagged configurations supported by this script.
10550 # ### BEGIN LIBTOOL CONFIG
10552 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10554 # Shell to use when invoking shell scripts.
10557 # Whether or not to build shared libraries.
10558 build_libtool_libs=$enable_shared
10560 # Whether or not to build static libraries.
10561 build_old_libs=$enable_static
10563 # Whether or not to add -lc for building shared libraries.
10564 build_libtool_need_lc=$archive_cmds_need_lc
10566 # Whether or not to disallow shared libs when runtime libs are static
10567 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10569 # Whether or not to optimize for fast installation.
10570 fast_install=$enable_fast_install
10573 host_alias=$host_alias
10577 # The build system.
10578 build_alias=$build_alias
10582 # An echo program that does not interpret backslashes.
10587 AR_FLAGS=$lt_AR_FLAGS
10592 # LTCC compiler flags.
10593 LTCFLAGS=$lt_LTCFLAGS
10595 # A language-specific compiler.
10598 # Is the compiler the GNU C compiler?
10604 # The linker used to build libraries.
10607 # Whether we need hard or soft links.
10610 # A BSD-compatible nm program.
10613 # A symbol stripping program
10616 # Used to examine libraries when file_magic_cmd begins "file"
10617 MAGIC_CMD=$MAGIC_CMD
10619 # Used on cygwin: DLL creation program.
10622 # Used on cygwin: object dumper.
10625 # Used on cygwin: assembler.
10628 # The name of the directory that contains temporary libtool files.
10631 # How to create reloadable object files.
10632 reload_flag=$lt_reload_flag
10633 reload_cmds=$lt_reload_cmds
10635 # How to pass a linker flag through the compiler.
10636 wl=$lt_lt_prog_compiler_wl
10638 # Object file suffix (normally "o").
10639 objext="$ac_objext"
10641 # Old archive suffix (normally "a").
10644 # Shared library suffix (normally ".so").
10645 shrext_cmds='$shrext_cmds'
10647 # Executable file suffix (normally "").
10650 # Additional compiler flags for building library objects.
10651 pic_flag=$lt_lt_prog_compiler_pic
10654 # What is the maximum length of a command?
10655 max_cmd_len=$lt_cv_sys_max_cmd_len
10657 # Does compiler simultaneously support -c and -o options?
10658 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10660 # Must we lock files when doing compilation?
10661 need_locks=$lt_need_locks
10663 # Do we need the lib prefix for modules?
10664 need_lib_prefix=$need_lib_prefix
10666 # Do we need a version for libraries?
10667 need_version=$need_version
10669 # Whether dlopen is supported.
10670 dlopen_support=$enable_dlopen
10672 # Whether dlopen of programs is supported.
10673 dlopen_self=$enable_dlopen_self
10675 # Whether dlopen of statically linked programs is supported.
10676 dlopen_self_static=$enable_dlopen_self_static
10678 # Compiler flag to prevent dynamic linking.
10679 link_static_flag=$lt_lt_prog_compiler_static
10681 # Compiler flag to turn off builtin functions.
10682 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10684 # Compiler flag to allow reflexive dlopens.
10685 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10687 # Compiler flag to generate shared objects directly from archives.
10688 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10690 # Compiler flag to generate thread-safe objects.
10691 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10693 # Library versioning type.
10694 version_type=$version_type
10696 # Format of library name prefix.
10697 libname_spec=$lt_libname_spec
10699 # List of archive names. First name is the real one, the rest are links.
10700 # The last name is the one that the linker finds with -lNAME.
10701 library_names_spec=$lt_library_names_spec
10703 # The coded name of the library, if different from the real name.
10704 soname_spec=$lt_soname_spec
10706 # Commands used to build and install an old-style archive.
10708 old_archive_cmds=$lt_old_archive_cmds
10709 old_postinstall_cmds=$lt_old_postinstall_cmds
10710 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10712 # Create an old-style archive from a shared archive.
10713 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10715 # Create a temporary old-style archive to link instead of a shared archive.
10716 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10718 # Commands used to build and install a shared archive.
10719 archive_cmds=$lt_archive_cmds
10720 archive_expsym_cmds=$lt_archive_expsym_cmds
10721 postinstall_cmds=$lt_postinstall_cmds
10722 postuninstall_cmds=$lt_postuninstall_cmds
10724 # Commands used to build a loadable module (assumed same as above if empty)
10725 module_cmds=$lt_module_cmds
10726 module_expsym_cmds=$lt_module_expsym_cmds
10728 # Commands to strip libraries.
10729 old_striplib=$lt_old_striplib
10730 striplib=$lt_striplib
10732 # Dependencies to place before the objects being linked to create a
10734 predep_objects=$lt_predep_objects
10736 # Dependencies to place after the objects being linked to create a
10738 postdep_objects=$lt_postdep_objects
10740 # Dependencies to place before the objects being linked to create a
10742 predeps=$lt_predeps
10744 # Dependencies to place after the objects being linked to create a
10746 postdeps=$lt_postdeps
10748 # The library search path used internally by the compiler when linking
10749 # a shared library.
10750 compiler_lib_search_path=$lt_compiler_lib_search_path
10752 # Method to check whether dependent libraries are shared objects.
10753 deplibs_check_method=$lt_deplibs_check_method
10755 # Command to use when deplibs_check_method == file_magic.
10756 file_magic_cmd=$lt_file_magic_cmd
10758 # Flag that allows shared libraries with undefined symbols to be built.
10759 allow_undefined_flag=$lt_allow_undefined_flag
10761 # Flag that forces no undefined symbols.
10762 no_undefined_flag=$lt_no_undefined_flag
10764 # Commands used to finish a libtool library installation in a directory.
10765 finish_cmds=$lt_finish_cmds
10767 # Same as above, but a single script fragment to be evaled but not shown.
10768 finish_eval=$lt_finish_eval
10770 # Take the output of nm and produce a listing of raw symbols and C names.
10771 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10773 # Transform the output of nm in a proper C declaration
10774 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10776 # Transform the output of nm in a C name address pair
10777 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10779 # This is the shared library runtime path variable.
10780 runpath_var=$runpath_var
10782 # This is the shared library path variable.
10783 shlibpath_var=$shlibpath_var
10785 # Is shlibpath searched before the hard-coded library search path?
10786 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10788 # How to hardcode a shared library path into an executable.
10789 hardcode_action=$hardcode_action
10791 # Whether we should hardcode library paths into libraries.
10792 hardcode_into_libs=$hardcode_into_libs
10794 # Flag to hardcode \$libdir into a binary during linking.
10795 # This must work even if \$libdir does not exist.
10796 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10798 # If ld is used when linking, flag to hardcode \$libdir into
10799 # a binary during linking. This must work even if \$libdir does
10801 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10803 # Whether we need a single -rpath flag with a separated argument.
10804 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10806 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10807 # resulting binary.
10808 hardcode_direct=$hardcode_direct
10810 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10811 # resulting binary.
10812 hardcode_minus_L=$hardcode_minus_L
10814 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10815 # the resulting binary.
10816 hardcode_shlibpath_var=$hardcode_shlibpath_var
10818 # Set to yes if building a shared library automatically hardcodes DIR into the library
10819 # and all subsequent libraries and executables linked against it.
10820 hardcode_automatic=$hardcode_automatic
10822 # Variables whose values should be saved in libtool wrapper scripts and
10823 # restored at relink time.
10824 variables_saved_for_relink="$variables_saved_for_relink"
10826 # Whether libtool must link a program against all its dependency libraries.
10827 link_all_deplibs=$link_all_deplibs
10829 # Compile-time system search path for libraries
10830 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10832 # Run-time system search path for libraries
10833 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10835 # Fix the shell variable \$srcfile for the compiler.
10836 fix_srcfile_path="$fix_srcfile_path"
10838 # Set to yes if exported symbols are required.
10839 always_export_symbols=$always_export_symbols
10841 # The commands to list exported symbols.
10842 export_symbols_cmds=$lt_export_symbols_cmds
10844 # The commands to extract the exported symbol list from a shared archive.
10845 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10847 # Symbols that should not be listed in the preloaded symbols.
10848 exclude_expsyms=$lt_exclude_expsyms
10850 # Symbols that must always be exported.
10851 include_expsyms=$lt_include_expsyms
10853 # ### END LIBTOOL CONFIG
10860 cat <<\EOF >> "$cfgfile"
10862 # AIX sometimes has problems with the GCC collect2 program. For some
10863 # reason, if we set the COLLECT_NAMES environment variable, the problems
10864 # vanish in a puff of smoke.
10865 if test "X${COLLECT_NAMES+set}" != Xset; then
10867 export COLLECT_NAMES
10873 # We use sed instead of cat because bash on DJGPP gets confused if
10874 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10875 # text mode, it properly converts lines to CR/LF. This bash problem
10876 # is reportedly fixed, but why not run on old versions too?
10877 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10879 mv -f "$cfgfile" "$ofile" || \
10880 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10884 # If there is no Makefile yet, we rely on a make rule to execute
10885 # `config.status --recheck' to rerun these tests and create the
10886 # libtool script then.
10887 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10888 if test -f "$ltmain_in"; then
10889 test -f Makefile && make "$ltmain"
10895 ac_cpp='$CPP $CPPFLAGS'
10896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10903 # Check whether --with-tags was given.
10904 if test "${with_tags+set}" = set; then
10905 withval=$with_tags; tagnames="$withval"
10909 if test -f "$ltmain" && test -n "$tagnames"; then
10910 if test ! -f "${ofile}"; then
10911 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10912 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10915 if test -z "$LTCC"; then
10916 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10917 if test -z "$LTCC"; then
10918 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10919 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10921 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10922 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10925 if test -z "$LTCFLAGS"; then
10926 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10929 # Extract list of available tagged configurations in $ofile.
10930 # Note that this assumes the entire list is on one line.
10931 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10933 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10934 for tagname in $tagnames; do
10936 # Check whether tagname contains only valid characters
10937 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10939 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10940 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10941 { (exit 1); exit 1; }; }
10945 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10947 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10948 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10949 { (exit 1); exit 1; }; }
10952 # Update the list of available tags.
10953 if test -n "$tagname"; then
10954 echo appending configuration tag \"$tagname\" to $ofile
10958 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10959 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10960 (test "X$CXX" != "Xg++"))) ; then
10962 ac_cpp='$CXXCPP $CPPFLAGS'
10963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10970 archive_cmds_need_lc_CXX=no
10971 allow_undefined_flag_CXX=
10972 always_export_symbols_CXX=no
10973 archive_expsym_cmds_CXX=
10974 export_dynamic_flag_spec_CXX=
10975 hardcode_direct_CXX=no
10976 hardcode_libdir_flag_spec_CXX=
10977 hardcode_libdir_flag_spec_ld_CXX=
10978 hardcode_libdir_separator_CXX=
10979 hardcode_minus_L_CXX=no
10980 hardcode_shlibpath_var_CXX=unsupported
10981 hardcode_automatic_CXX=no
10983 module_expsym_cmds_CXX=
10984 link_all_deplibs_CXX=unknown
10985 old_archive_cmds_CXX=$old_archive_cmds
10986 no_undefined_flag_CXX=
10987 whole_archive_flag_spec_CXX=
10988 enable_shared_with_static_runtimes_CXX=no
10990 # Dependencies to place before and after the object being linked:
10991 predep_objects_CXX=
10992 postdep_objects_CXX=
10995 compiler_lib_search_path_CXX=
10997 # Source file extension for C++ test sources.
11000 # Object file extension for compiled C++ test sources.
11004 # Code to be used in simple compile tests
11005 lt_simple_compile_test_code="int some_variable = 0;\n"
11007 # Code to be used in simple link tests
11008 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11010 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11012 # If no C compiler was specified, use CC.
11015 # If no C compiler flags were specified, use CFLAGS.
11016 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11018 # Allow CC to be a program name with arguments.
11022 # save warnings/boilerplate of simple test code
11023 ac_outfile=conftest.$ac_objext
11024 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11025 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11026 _lt_compiler_boilerplate=`cat conftest.err`
11029 ac_outfile=conftest.$ac_objext
11030 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11031 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11032 _lt_linker_boilerplate=`cat conftest.err`
11036 # Allow CC to be a program name with arguments.
11041 lt_save_with_gnu_ld=$with_gnu_ld
11042 lt_save_path_LD=$lt_cv_path_LD
11043 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11044 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11046 $as_unset lt_cv_prog_gnu_ld
11048 if test -n "${lt_cv_path_LDCXX+set}"; then
11049 lt_cv_path_LD=$lt_cv_path_LDCXX
11051 $as_unset lt_cv_path_LD
11053 test -z "${LDCXX+set}" || LD=$LDCXX
11057 for cc_temp in $compiler""; do
11059 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11060 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11065 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11068 # We don't want -fno-exception wen compiling C++ code, so set the
11069 # no_builtin_flag separately
11070 if test "$GXX" = yes; then
11071 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11073 lt_prog_compiler_no_builtin_flag_CXX=
11076 if test "$GXX" = yes; then
11077 # Set up default GNU C++ configuration
11080 # Check whether --with-gnu-ld was given.
11081 if test "${with_gnu_ld+set}" = set; then
11082 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11088 if test "$GCC" = yes; then
11089 # Check if gcc -print-prog-name=ld gives a path.
11090 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11091 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11094 # gcc leaves a trailing carriage return which upsets mingw
11095 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11097 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11100 # Accept absolute paths.
11102 re_direlt='/[^/][^/]*/\.\./'
11103 # Canonicalize the pathname of ld
11104 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11105 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11106 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11108 test -z "$LD" && LD="$ac_prog"
11111 # If it fails, then pretend we aren't using GCC.
11115 # If it is relative, then search for the first ld in PATH.
11116 with_gnu_ld=unknown
11119 elif test "$with_gnu_ld" = yes; then
11120 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11121 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11123 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11124 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11126 if test "${lt_cv_path_LD+set}" = set; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11129 if test -z "$LD"; then
11130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11131 for ac_dir in $PATH; do
11133 test -z "$ac_dir" && ac_dir=.
11134 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11135 lt_cv_path_LD="$ac_dir/$ac_prog"
11136 # Check to see if the program is GNU ld. I'd rather use --version,
11137 # but apparently some variants of GNU ld only accept -v.
11138 # Break only if it was the GNU/non-GNU ld that we prefer.
11139 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11140 *GNU* | *'with BFD'*)
11141 test "$with_gnu_ld" != no && break
11144 test "$with_gnu_ld" != yes && break
11151 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11155 LD="$lt_cv_path_LD"
11156 if test -n "$LD"; then
11157 { echo "$as_me:$LINENO: result: $LD" >&5
11158 echo "${ECHO_T}$LD" >&6; }
11160 { echo "$as_me:$LINENO: result: no" >&5
11161 echo "${ECHO_T}no" >&6; }
11163 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11164 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11165 { (exit 1); exit 1; }; }
11166 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11167 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11168 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11169 echo $ECHO_N "(cached) $ECHO_C" >&6
11171 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11172 case `$LD -v 2>&1 </dev/null` in
11173 *GNU* | *'with BFD'*)
11174 lt_cv_prog_gnu_ld=yes
11177 lt_cv_prog_gnu_ld=no
11181 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11182 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11183 with_gnu_ld=$lt_cv_prog_gnu_ld
11187 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11188 # archiving commands below assume that GNU ld is being used.
11189 if test "$with_gnu_ld" = yes; then
11190 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11191 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'
11193 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11194 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11196 # If archive_cmds runs LD, not CC, wlarc should be empty
11197 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11198 # investigate it a little bit more. (MM)
11201 # ancient GNU ld didn't support --whole-archive et. al.
11202 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11203 grep 'no-whole-archive' > /dev/null; then
11204 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11206 whole_archive_flag_spec_CXX=
11212 # A generic and very simple default shared library creation
11213 # command for GNU C++ for the case where it uses the native
11214 # linker, instead of GNU ld. If possible, this setting should
11215 # overridden to take advantage of the native linker features on
11216 # the platform it is being used on.
11217 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11220 # Commands to make compiler produce verbose output that lists
11221 # what "hidden" libraries, object files and flags are used when
11222 # linking a shared library.
11223 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11231 # PORTME: fill in a description of your system's C++ link characteristics
11232 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11233 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11237 # FIXME: insert proper C++ library support
11241 if test "$host_cpu" = ia64; then
11242 # On IA64, the linker does run time linking by default, so we don't
11243 # have to do anything special.
11244 aix_use_runtimelinking=no
11245 exp_sym_flag='-Bexport'
11248 aix_use_runtimelinking=no
11250 # Test if we are trying to use run time linking or normal
11251 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11252 # need to do runtime linking.
11253 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11254 for ld_flag in $LDFLAGS; do
11257 aix_use_runtimelinking=yes
11265 exp_sym_flag='-bexport'
11266 no_entry_flag='-bnoentry'
11269 # When large executables or shared objects are built, AIX ld can
11270 # have problems creating the table of contents. If linking a library
11271 # or program results in "error TOC overflow" add -mminimal-toc to
11272 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11273 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11275 archive_cmds_CXX=''
11276 hardcode_direct_CXX=yes
11277 hardcode_libdir_separator_CXX=':'
11278 link_all_deplibs_CXX=yes
11280 if test "$GXX" = yes; then
11281 case $host_os in aix4.[012]|aix4.[012].*)
11282 # We only want to do this on AIX 4.2 and lower, the check
11283 # below for broken collect2 doesn't work under 4.3+
11284 collect2name=`${CC} -print-prog-name=collect2`
11285 if test -f "$collect2name" && \
11286 strings "$collect2name" | grep resolve_lib_name >/dev/null
11288 # We have reworked collect2
11289 hardcode_direct_CXX=yes
11291 # We have old collect2
11292 hardcode_direct_CXX=unsupported
11293 # It fails to find uninstalled libraries when the uninstalled
11294 # path is not listed in the libpath. Setting hardcode_minus_L
11295 # to unsupported forces relinking
11296 hardcode_minus_L_CXX=yes
11297 hardcode_libdir_flag_spec_CXX='-L$libdir'
11298 hardcode_libdir_separator_CXX=
11302 shared_flag='-shared'
11303 if test "$aix_use_runtimelinking" = yes; then
11304 shared_flag="$shared_flag "'${wl}-G'
11308 if test "$host_cpu" = ia64; then
11309 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11310 # chokes on -Wl,-G. The following line is correct:
11313 if test "$aix_use_runtimelinking" = yes; then
11314 shared_flag='${wl}-G'
11316 shared_flag='${wl}-bM:SRE'
11321 # It seems that -bexpall does not export symbols beginning with
11322 # underscore (_), so it is better to generate a list of symbols to export.
11323 always_export_symbols_CXX=yes
11324 if test "$aix_use_runtimelinking" = yes; then
11325 # Warning - without using the other runtime loading flags (-brtl),
11326 # -berok will link without error, but may produce a broken library.
11327 allow_undefined_flag_CXX='-berok'
11328 # Determine the default libpath from the value encoded in an empty executable.
11329 cat >conftest.$ac_ext <<_ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11344 rm -f conftest.$ac_objext conftest$ac_exeext
11345 if { (ac_try="$ac_link"
11346 case "(($ac_try" in
11347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348 *) ac_try_echo=$ac_try;;
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351 (eval "$ac_link") 2>conftest.er1
11353 grep -v '^ *+' conftest.er1 >conftest.err
11355 cat conftest.err >&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } &&
11358 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11359 { (case "(($ac_try" in
11360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11361 *) ac_try_echo=$ac_try;;
11363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11364 (eval "$ac_try") 2>&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); }; } &&
11368 { ac_try='test -s conftest$ac_exeext'
11369 { (case "(($ac_try" in
11370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11371 *) ac_try_echo=$ac_try;;
11373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11374 (eval "$ac_try") 2>&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; }; then
11379 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11381 # Check for a 64-bit object if we didn't find anything.
11382 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11391 rm -f core conftest.err conftest.$ac_objext \
11392 conftest$ac_exeext conftest.$ac_ext
11393 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11395 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11397 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"
11399 if test "$host_cpu" = ia64; then
11400 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11401 allow_undefined_flag_CXX="-z nodefs"
11402 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"
11404 # Determine the default libpath from the value encoded in an empty executable.
11405 cat >conftest.$ac_ext <<_ACEOF
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h. */
11420 rm -f conftest.$ac_objext conftest$ac_exeext
11421 if { (ac_try="$ac_link"
11422 case "(($ac_try" in
11423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11424 *) ac_try_echo=$ac_try;;
11426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11427 (eval "$ac_link") 2>conftest.er1
11429 grep -v '^ *+' conftest.er1 >conftest.err
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } &&
11434 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11435 { (case "(($ac_try" in
11436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11437 *) ac_try_echo=$ac_try;;
11439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11440 (eval "$ac_try") 2>&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; } &&
11444 { ac_try='test -s conftest$ac_exeext'
11445 { (case "(($ac_try" in
11446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447 *) ac_try_echo=$ac_try;;
11449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450 (eval "$ac_try") 2>&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; }; then
11455 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11457 # Check for a 64-bit object if we didn't find anything.
11458 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11461 echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11467 rm -f core conftest.err conftest.$ac_objext \
11468 conftest$ac_exeext conftest.$ac_ext
11469 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11471 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11472 # Warning - without using the other run time loading flags,
11473 # -berok will link without error, but may produce a broken library.
11474 no_undefined_flag_CXX=' ${wl}-bernotok'
11475 allow_undefined_flag_CXX=' ${wl}-berok'
11476 # Exported symbols can be pulled into shared objects from archives
11477 whole_archive_flag_spec_CXX='$convenience'
11478 archive_cmds_need_lc_CXX=yes
11479 # This is similar to how AIX traditionally builds its shared libraries.
11480 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'
11486 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11487 allow_undefined_flag_CXX=unsupported
11488 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11489 # support --undefined. This deserves some investigation. FIXME
11490 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11497 case $cc_basename in
11499 # FIXME: insert proper C++ library support
11505 cygwin* | mingw* | pw32*)
11506 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11507 # as there is no search path for DLLs.
11508 hardcode_libdir_flag_spec_CXX='-L$libdir'
11509 allow_undefined_flag_CXX=unsupported
11510 always_export_symbols_CXX=no
11511 enable_shared_with_static_runtimes_CXX=yes
11513 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11514 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'
11515 # If the export-symbols file already is a .def file (1st line
11516 # is EXPORTS), use it as is; otherwise, prepend...
11517 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11518 cp $export_symbols $output_objdir/$soname.def;
11520 echo EXPORTS > $output_objdir/$soname.def;
11521 cat $export_symbols >> $output_objdir/$soname.def;
11523 $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'
11528 darwin* | rhapsody*)
11530 rhapsody* | darwin1.[012])
11531 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11534 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11535 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11537 case ${MACOSX_DEPLOYMENT_TARGET} in
11539 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11542 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11548 archive_cmds_need_lc_CXX=no
11549 hardcode_direct_CXX=no
11550 hardcode_automatic_CXX=yes
11551 hardcode_shlibpath_var_CXX=unsupported
11552 whole_archive_flag_spec_CXX=''
11553 link_all_deplibs_CXX=yes
11555 if test "$GXX" = yes ; then
11556 lt_int_apple_cc_single_mod=no
11557 output_verbose_link_cmd='echo'
11558 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11559 lt_int_apple_cc_single_mod=yes
11561 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11562 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11564 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'
11566 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11567 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11568 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11569 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11571 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11573 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}'
11575 case $cc_basename in
11577 output_verbose_link_cmd='echo'
11578 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11579 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11580 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11581 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11582 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}'
11592 case $cc_basename in
11594 # FIXME: insert proper C++ library support
11598 # Green Hills C++ Compiler
11599 # FIXME: insert proper C++ library support
11603 # FIXME: insert proper C++ library support
11609 # C++ shared libraries reported to be fairly broken before switch to ELF
11613 archive_cmds_need_lc_CXX=no
11615 freebsd* | kfreebsd*-gnu | dragonfly*)
11616 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11623 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11624 hardcode_libdir_separator_CXX=:
11625 export_dynamic_flag_spec_CXX='${wl}-E'
11626 hardcode_direct_CXX=yes
11627 hardcode_minus_L_CXX=yes # Not in the search PATH,
11628 # but as the default
11629 # location of the library.
11631 case $cc_basename in
11633 # FIXME: insert proper C++ library support
11637 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'
11638 # Commands to make compiler produce verbose output that lists
11639 # what "hidden" libraries, object files and flags are used when
11640 # linking a shared library.
11642 # There doesn't appear to be a way to prevent this compiler from
11643 # explicitly linking system object files so we need to strip them
11644 # from the output so that they don't get included in the library
11646 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'
11649 if test "$GXX" = yes; then
11650 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'
11652 # FIXME: insert proper C++ library support
11659 if test $with_gnu_ld = no; then
11660 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11661 hardcode_libdir_separator_CXX=:
11665 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11668 export_dynamic_flag_spec_CXX='${wl}-E'
11674 hardcode_direct_CXX=no
11675 hardcode_shlibpath_var_CXX=no
11678 hardcode_direct_CXX=yes
11679 hardcode_minus_L_CXX=yes # Not in the search PATH,
11680 # but as the default
11681 # location of the library.
11685 case $cc_basename in
11687 # FIXME: insert proper C++ library support
11693 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11696 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11699 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11702 # Commands to make compiler produce verbose output that lists
11703 # what "hidden" libraries, object files and flags are used when
11704 # linking a shared library.
11706 # There doesn't appear to be a way to prevent this compiler from
11707 # explicitly linking system object files so we need to strip them
11708 # from the output so that they don't get included in the library
11710 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'
11713 if test "$GXX" = yes; then
11714 if test $with_gnu_ld = no; then
11717 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11720 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11723 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'
11728 # FIXME: insert proper C++ library support
11735 hardcode_direct_CXX=no
11736 hardcode_shlibpath_var_CXX=no
11737 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11738 export_dynamic_flag_spec_CXX='${wl}-E'
11739 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11740 # Instead, shared libraries are loaded at an image base (0x10000000 by
11741 # default) and relocated if they conflict, which is a slow very memory
11742 # consuming and fragmenting process. To avoid this, we pick a random,
11743 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11744 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11745 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'
11746 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'
11749 case $cc_basename in
11752 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'
11754 # Archives containing C++ object files must be created using
11755 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11756 # necessary to make sure instantiated templates are included
11758 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11761 if test "$GXX" = yes; then
11762 if test "$with_gnu_ld" = no; then
11763 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'
11765 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'
11768 link_all_deplibs_CXX=yes
11771 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11772 hardcode_libdir_separator_CXX=:
11775 case $cc_basename in
11777 # Kuck and Associates, Inc. (KAI) C++ Compiler
11779 # KCC will only create a shared library if the output file
11780 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11781 # to its proper name (with version) after linking.
11782 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'
11783 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'
11784 # Commands to make compiler produce verbose output that lists
11785 # what "hidden" libraries, object files and flags are used when
11786 # linking a shared library.
11788 # There doesn't appear to be a way to prevent this compiler from
11789 # explicitly linking system object files so we need to strip them
11790 # from the output so that they don't get included in the library
11792 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'
11794 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11795 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11797 # Archives containing C++ object files must be created using
11798 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11799 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11804 # version 8.0 and above of icpc choke on multiply defined symbols
11805 # if we add $predep_objects and $postdep_objects, however 7.1 and
11806 # earlier do not add the objects themselves.
11807 case `$CC -V 2>&1` in
11809 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11810 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'
11812 *) # Version 8.0 or newer
11815 ia64*) tmp_idyn=' -i_dynamic';;
11817 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11818 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'
11821 archive_cmds_need_lc_CXX=no
11822 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11823 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11824 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11827 # Portland Group C++ compiler
11828 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11829 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'
11831 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11832 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11833 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'
11837 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11838 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'
11840 runpath_var=LD_RUN_PATH
11841 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11842 hardcode_libdir_separator_CXX=:
11844 # Commands to make compiler produce verbose output that lists
11845 # what "hidden" libraries, object files and flags are used when
11846 # linking a shared library.
11848 # There doesn't appear to be a way to prevent this compiler from
11849 # explicitly linking system object files so we need to strip them
11850 # from the output so that they don't get included in the library
11852 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'
11857 # FIXME: insert proper C++ library support
11861 # FIXME: insert proper C++ library support
11865 case $cc_basename in
11867 # FIXME: insert proper C++ library support
11871 # FIXME: insert proper C++ library support
11877 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11878 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11880 hardcode_libdir_flag_spec_CXX='-R$libdir'
11881 hardcode_direct_CXX=yes
11882 hardcode_shlibpath_var_CXX=no
11884 # Workaround some broken pre-1.5 toolchains
11885 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11888 # C++ shared libraries are fairly broken
11892 hardcode_direct_CXX=yes
11893 hardcode_shlibpath_var_CXX=no
11894 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11895 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11896 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11897 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11898 export_dynamic_flag_spec_CXX='${wl}-E'
11899 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11901 output_verbose_link_cmd='echo'
11904 case $cc_basename in
11906 # Kuck and Associates, Inc. (KAI) C++ Compiler
11908 # KCC will only create a shared library if the output file
11909 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11910 # to its proper name (with version) after linking.
11911 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'
11913 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11914 hardcode_libdir_separator_CXX=:
11916 # Archives containing C++ object files must be created using
11917 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11918 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11922 # Rational C++ 2.4.1
11923 # FIXME: insert proper C++ library support
11927 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11928 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'
11930 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11931 hardcode_libdir_separator_CXX=:
11933 # Commands to make compiler produce verbose output that lists
11934 # what "hidden" libraries, object files and flags are used when
11935 # linking a shared library.
11937 # There doesn't appear to be a way to prevent this compiler from
11938 # explicitly linking system object files so we need to strip them
11939 # from the output so that they don't get included in the library
11941 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'
11944 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11945 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11946 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'
11948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11949 hardcode_libdir_separator_CXX=:
11951 # Commands to make compiler produce verbose output that lists
11952 # what "hidden" libraries, object files and flags are used when
11953 # linking a shared library.
11954 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11957 # FIXME: insert proper C++ library support
11964 case $cc_basename in
11966 # Kuck and Associates, Inc. (KAI) C++ Compiler
11968 # KCC will only create a shared library if the output file
11969 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11970 # to its proper name (with version) after linking.
11971 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'
11973 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11974 hardcode_libdir_separator_CXX=:
11976 # Archives containing C++ object files must be created using
11977 # the KAI C++ compiler.
11978 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11981 # Rational C++ 2.4.1
11982 # FIXME: insert proper C++ library support
11986 allow_undefined_flag_CXX=' -expect_unresolved \*'
11987 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'
11988 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11989 echo "-hidden">> $lib.exp~
11990 $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~
11993 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11994 hardcode_libdir_separator_CXX=:
11996 # Commands to make compiler produce verbose output that lists
11997 # what "hidden" libraries, object files and flags are used when
11998 # linking a shared library.
12000 # There doesn't appear to be a way to prevent this compiler from
12001 # explicitly linking system object files so we need to strip them
12002 # from the output so that they don't get included in the library
12004 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'
12007 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12008 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12009 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'
12011 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12012 hardcode_libdir_separator_CXX=:
12014 # Commands to make compiler produce verbose output that lists
12015 # what "hidden" libraries, object files and flags are used when
12016 # linking a shared library.
12017 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12020 # FIXME: insert proper C++ library support
12027 # FIXME: insert proper C++ library support
12031 case $cc_basename in
12034 # FIXME: insert proper C++ library support
12039 # FIXME: insert proper C++ library support
12043 # FIXME: insert proper C++ library support
12049 case $cc_basename in
12051 # Sun C++ 4.2, 5.x and Centerline C++
12052 archive_cmds_need_lc_CXX=yes
12053 no_undefined_flag_CXX=' -zdefs'
12054 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12055 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12056 $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'
12058 hardcode_libdir_flag_spec_CXX='-R$libdir'
12059 hardcode_shlibpath_var_CXX=no
12061 solaris2.[0-5] | solaris2.[0-5].*) ;;
12063 # The C++ compiler is used as linker so we must use $wl
12064 # flag to pass the commands to the underlying system
12065 # linker. We must also pass each convience library through
12066 # to the system linker between allextract/defaultextract.
12067 # The C++ compiler will combine linker options so we
12068 # cannot just pass the convience library names through
12070 # Supported since Solaris 2.6 (maybe 2.5.1?)
12071 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12074 link_all_deplibs_CXX=yes
12076 output_verbose_link_cmd='echo'
12078 # Archives containing C++ object files must be created using
12079 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12080 # necessary to make sure instantiated templates are included
12082 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12085 # Green Hills C++ Compiler
12086 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12088 # The C++ compiler must be used to create the archive.
12089 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12092 # GNU C++ compiler with Solaris linker
12093 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12094 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12095 if $CC --version | grep -v '^2\.7' > /dev/null; then
12096 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12097 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12098 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12100 # Commands to make compiler produce verbose output that lists
12101 # what "hidden" libraries, object files and flags are used when
12102 # linking a shared library.
12103 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12105 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12107 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12108 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12109 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12111 # Commands to make compiler produce verbose output that lists
12112 # what "hidden" libraries, object files and flags are used when
12113 # linking a shared library.
12114 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12117 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12122 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12123 no_undefined_flag_CXX='${wl}-z,text'
12124 archive_cmds_need_lc_CXX=no
12125 hardcode_shlibpath_var_CXX=no
12126 runpath_var='LD_RUN_PATH'
12128 case $cc_basename in
12130 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12131 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12134 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12135 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12139 sysv5* | sco3.2v5* | sco5v6*)
12140 # Note: We can NOT use -z defs as we might desire, because we do not
12141 # link with -lc, and that would cause any symbols used from libc to
12142 # always be unresolved, which means just about no library would
12143 # ever link correctly. If we're not using GNU ld we use -z text
12144 # though, which does catch some bad symbols but isn't as heavy-handed
12146 # For security reasons, it is highly recommended that you always
12147 # use absolute paths for naming shared libraries, and exclude the
12148 # DT_RUNPATH tag from executables and libraries. But doing so
12149 # requires that you compile everything twice, which is a pain.
12150 # So that behaviour is only enabled if SCOABSPATH is set to a
12151 # non-empty value in the environment. Most likely only useful for
12152 # creating official distributions of packages.
12153 # This is a hack until libtool officially supports absolute path
12154 # names for shared libraries.
12155 no_undefined_flag_CXX='${wl}-z,text'
12156 allow_undefined_flag_CXX='${wl}-z,nodefs'
12157 archive_cmds_need_lc_CXX=no
12158 hardcode_shlibpath_var_CXX=no
12159 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12160 hardcode_libdir_separator_CXX=':'
12161 link_all_deplibs_CXX=yes
12162 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12163 runpath_var='LD_RUN_PATH'
12165 case $cc_basename in
12167 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12168 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12171 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12172 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12177 case $cc_basename in
12179 # NonStop-UX NCC 3.20
12180 # FIXME: insert proper C++ library support
12184 # FIXME: insert proper C++ library support
12190 # FIXME: insert proper C++ library support
12194 # FIXME: insert proper C++ library support
12198 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12199 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12200 test "$ld_shlibs_CXX" = no && can_build_shared=no
12206 ## There is no encapsulation within the following macros, do not change
12207 ## the running order or otherwise move them around unless you know exactly
12208 ## what you are doing...
12210 cat > conftest.$ac_ext <<EOF
12214 Foo (void) { a = 0; }
12220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12221 (eval $ac_compile) 2>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; then
12225 # Parse the compiler output and extract the necessary
12226 # objects, libraries and library flags.
12228 # Sentinel used to keep track of whether or not we are before
12229 # the conftest object file.
12230 pre_test_object_deps_done=no
12232 # The `*' in the case matches for architectures that use `case' in
12233 # $output_verbose_cmd can trigger glob expansion during the loop
12234 # eval without this substitution.
12235 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12237 for p in `eval $output_verbose_link_cmd`; do
12241 # Some compilers place space between "-{L,R}" and the path.
12242 # Remove the space.
12243 if test $p = "-L" \
12244 || test $p = "-R"; then
12251 if test "$pre_test_object_deps_done" = no; then
12254 # Internal compiler library paths should come after those
12255 # provided the user. The postdeps already come after the
12256 # user supplied libs so there is no need to process them.
12257 if test -z "$compiler_lib_search_path_CXX"; then
12258 compiler_lib_search_path_CXX="${prev}${p}"
12260 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12263 # The "-l" case would never come before the object being
12264 # linked, so don't bother handling this case.
12267 if test -z "$postdeps_CXX"; then
12268 postdeps_CXX="${prev}${p}"
12270 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12276 # This assumes that the test object file only shows up
12277 # once in the compiler output.
12278 if test "$p" = "conftest.$objext"; then
12279 pre_test_object_deps_done=yes
12283 if test "$pre_test_object_deps_done" = no; then
12284 if test -z "$predep_objects_CXX"; then
12285 predep_objects_CXX="$p"
12287 predep_objects_CXX="$predep_objects_CXX $p"
12290 if test -z "$postdep_objects_CXX"; then
12291 postdep_objects_CXX="$p"
12293 postdep_objects_CXX="$postdep_objects_CXX $p"
12298 *) ;; # Ignore the rest.
12306 echo "libtool.m4: error: problem compiling CXX test program"
12309 $rm -f confest.$objext
12311 # PORTME: override above test on systems where it is broken
12314 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12315 # hack all around it, let's just trust "g++" to DTRT.
12316 predep_objects_CXX=
12317 postdep_objects_CXX=
12322 case $cc_basename in
12324 # Adding this requires a known-good setup of shared libraries for
12325 # Sun compiler versions before 5.6, else PIC objects from an old
12326 # archive will be linked into the output, leading to subtle bugs.
12327 postdeps_CXX='-lCstd -lCrun'
12334 case " $postdeps_CXX " in
12335 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12338 lt_prog_compiler_wl_CXX=
12339 lt_prog_compiler_pic_CXX=
12340 lt_prog_compiler_static_CXX=
12342 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12343 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12345 # C++ specific cases for pic, static, wl, etc.
12346 if test "$GXX" = yes; then
12347 lt_prog_compiler_wl_CXX='-Wl,'
12348 lt_prog_compiler_static_CXX='-static'
12352 # All AIX code is PIC.
12353 if test "$host_cpu" = ia64; then
12354 # AIX 5 now supports IA64 processor
12355 lt_prog_compiler_static_CXX='-Bstatic'
12359 # FIXME: we need at least 68020 code to build shared libraries, but
12360 # adding the `-m68020' flag to GCC prevents building anything better,
12362 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12364 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12365 # PIC is the default for these OSes.
12367 mingw* | os2* | pw32*)
12368 # This hack is so that the source file can tell whether it is being
12369 # built for inclusion in a dll (and should export symbols for example).
12370 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12372 darwin* | rhapsody*)
12373 # PIC is the default on this platform
12374 # Common symbols not allowed in MH_DYLIB files
12375 lt_prog_compiler_pic_CXX='-fno-common'
12378 # DJGPP does not support shared libraries at all
12379 lt_prog_compiler_pic_CXX=
12382 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12383 # Instead, we relocate shared libraries at runtime.
12386 if test -d /usr/nec; then
12387 lt_prog_compiler_pic_CXX=-Kconform_pic
12391 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12392 # not for PA HP-UX.
12397 lt_prog_compiler_pic_CXX='-fPIC'
12402 lt_prog_compiler_pic_CXX='-fPIC'
12408 # All AIX code is PIC.
12409 if test "$host_cpu" = ia64; then
12410 # AIX 5 now supports IA64 processor
12411 lt_prog_compiler_static_CXX='-Bstatic'
12413 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12417 case $cc_basename in
12419 # Green Hills C++ Compiler
12420 # _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"
12425 # PIC is the default on this platform
12426 # Common symbols not allowed in MH_DYLIB files
12427 case $cc_basename in
12429 lt_prog_compiler_pic_CXX='-qnocommon'
12430 lt_prog_compiler_wl_CXX='-Wl,'
12435 case $cc_basename in
12437 lt_prog_compiler_pic_CXX='-KPIC'
12440 # Green Hills C++ Compiler
12441 lt_prog_compiler_pic_CXX='-pic'
12447 freebsd* | kfreebsd*-gnu | dragonfly*)
12448 # FreeBSD uses GNU C++
12450 hpux9* | hpux10* | hpux11*)
12451 case $cc_basename in
12453 lt_prog_compiler_wl_CXX='-Wl,'
12454 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12455 if test "$host_cpu" != ia64; then
12456 lt_prog_compiler_pic_CXX='+Z'
12460 lt_prog_compiler_wl_CXX='-Wl,'
12461 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12467 lt_prog_compiler_pic_CXX='+Z'
12476 # This is c89, which is MS Visual C++ (no shared libs)
12477 # Anyone wants to do a port?
12479 irix5* | irix6* | nonstopux*)
12480 case $cc_basename in
12482 lt_prog_compiler_wl_CXX='-Wl,'
12483 lt_prog_compiler_static_CXX='-non_shared'
12484 # CC pic flag -KPIC is the default.
12491 case $cc_basename in
12494 lt_prog_compiler_wl_CXX='--backend -Wl,'
12495 lt_prog_compiler_pic_CXX='-fPIC'
12499 lt_prog_compiler_wl_CXX='-Wl,'
12500 lt_prog_compiler_pic_CXX='-KPIC'
12501 lt_prog_compiler_static_CXX='-static'
12504 # Portland Group C++ compiler.
12505 lt_prog_compiler_wl_CXX='-Wl,'
12506 lt_prog_compiler_pic_CXX='-fpic'
12507 lt_prog_compiler_static_CXX='-Bstatic'
12511 # Make sure the PIC flag is empty. It appears that all Alpha
12512 # Linux and Compaq Tru64 Unix objects are PIC.
12513 lt_prog_compiler_pic_CXX=
12514 lt_prog_compiler_static_CXX='-non_shared'
12525 case $cc_basename in
12527 lt_prog_compiler_pic_CXX='-W c,exportall'
12535 osf3* | osf4* | osf5*)
12536 case $cc_basename in
12538 lt_prog_compiler_wl_CXX='--backend -Wl,'
12541 # Rational C++ 2.4.1
12542 lt_prog_compiler_pic_CXX='-pic'
12545 # Digital/Compaq C++
12546 lt_prog_compiler_wl_CXX='-Wl,'
12547 # Make sure the PIC flag is empty. It appears that all Alpha
12548 # Linux and Compaq Tru64 Unix objects are PIC.
12549 lt_prog_compiler_pic_CXX=
12550 lt_prog_compiler_static_CXX='-non_shared'
12559 case $cc_basename in
12561 # Sun C++ 4.2, 5.x and Centerline C++
12562 lt_prog_compiler_pic_CXX='-KPIC'
12563 lt_prog_compiler_static_CXX='-Bstatic'
12564 lt_prog_compiler_wl_CXX='-Qoption ld '
12567 # Green Hills C++ Compiler
12568 lt_prog_compiler_pic_CXX='-PIC'
12575 case $cc_basename in
12578 lt_prog_compiler_pic_CXX='-pic'
12579 lt_prog_compiler_static_CXX='-Bstatic'
12583 lt_prog_compiler_pic_CXX='-pic'
12590 case $cc_basename in
12592 # NonStop-UX NCC 3.20
12593 lt_prog_compiler_pic_CXX='-KPIC'
12599 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12600 case $cc_basename in
12602 lt_prog_compiler_wl_CXX='-Wl,'
12603 lt_prog_compiler_pic_CXX='-KPIC'
12604 lt_prog_compiler_static_CXX='-Bstatic'
12611 lt_prog_compiler_can_build_shared_CXX=no
12616 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12617 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12620 # Check to make sure the PIC flag actually works.
12622 if test -n "$lt_prog_compiler_pic_CXX"; then
12624 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12625 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12626 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12627 echo $ECHO_N "(cached) $ECHO_C" >&6
12629 lt_prog_compiler_pic_works_CXX=no
12630 ac_outfile=conftest.$ac_objext
12631 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12632 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12633 # Insert the option either (1) after the last *FLAGS variable, or
12634 # (2) before a word containing "conftest.", or (3) at the end.
12635 # Note that $ac_compile itself does not contain backslashes and begins
12636 # with a dollar sign (not a hyphen), so the echo should work correctly.
12637 # The option is referenced via a variable to avoid confusing sed.
12638 lt_compile=`echo "$ac_compile" | $SED \
12639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12641 -e 's:$: $lt_compiler_flag:'`
12642 (eval echo "\"\$as_me:12642: $lt_compile\"" >&5)
12643 (eval "$lt_compile" 2>conftest.err)
12645 cat conftest.err >&5
12646 echo "$as_me:12646: \$? = $ac_status" >&5
12647 if (exit $ac_status) && test -s "$ac_outfile"; then
12648 # The compiler can only warn and ignore the option if not recognized
12649 # So say no if there are warnings other than the usual output.
12650 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12652 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12653 lt_prog_compiler_pic_works_CXX=yes
12659 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12660 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12662 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12663 case $lt_prog_compiler_pic_CXX in
12665 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12668 lt_prog_compiler_pic_CXX=
12669 lt_prog_compiler_can_build_shared_CXX=no
12674 # For platforms which do not support PIC, -DPIC is meaningless:
12676 lt_prog_compiler_pic_CXX=
12679 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12684 # Check to make sure the static flag actually works.
12686 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12687 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12688 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12689 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12692 lt_prog_compiler_static_works_CXX=no
12693 save_LDFLAGS="$LDFLAGS"
12694 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12695 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12696 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12697 # The linker can only warn and ignore the option if not recognized
12698 # So say no if there are warnings
12699 if test -s conftest.err; then
12700 # Append any errors to the config.log.
12701 cat conftest.err 1>&5
12702 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12704 if diff conftest.exp conftest.er2 >/dev/null; then
12705 lt_prog_compiler_static_works_CXX=yes
12708 lt_prog_compiler_static_works_CXX=yes
12712 LDFLAGS="$save_LDFLAGS"
12715 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12716 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12718 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12721 lt_prog_compiler_static_CXX=
12725 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12726 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12727 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12728 echo $ECHO_N "(cached) $ECHO_C" >&6
12730 lt_cv_prog_compiler_c_o_CXX=no
12731 $rm -r conftest 2>/dev/null
12735 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12737 lt_compiler_flag="-o out/conftest2.$ac_objext"
12738 # Insert the option either (1) after the last *FLAGS variable, or
12739 # (2) before a word containing "conftest.", or (3) at the end.
12740 # Note that $ac_compile itself does not contain backslashes and begins
12741 # with a dollar sign (not a hyphen), so the echo should work correctly.
12742 lt_compile=`echo "$ac_compile" | $SED \
12743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12745 -e 's:$: $lt_compiler_flag:'`
12746 (eval echo "\"\$as_me:12746: $lt_compile\"" >&5)
12747 (eval "$lt_compile" 2>out/conftest.err)
12749 cat out/conftest.err >&5
12750 echo "$as_me:12750: \$? = $ac_status" >&5
12751 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12753 # The compiler can only warn and ignore the option if not recognized
12754 # So say no if there are warnings
12755 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12756 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12757 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12758 lt_cv_prog_compiler_c_o_CXX=yes
12763 # SGI C++ compiler will create directory out/ii_files/ for
12764 # template instantiation
12765 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12766 $rm out/* && rmdir out
12772 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12773 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12776 hard_links="nottested"
12777 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12778 # do not overwrite the value of need_locks provided by the user
12779 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12780 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12783 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12785 ln conftest.a conftest.b 2>&5 || hard_links=no
12786 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12787 { echo "$as_me:$LINENO: result: $hard_links" >&5
12788 echo "${ECHO_T}$hard_links" >&6; }
12789 if test "$hard_links" = no; then
12790 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12791 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12798 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12799 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12801 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12804 # If we're using GNU nm, then we don't want the "-C" option.
12805 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12806 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12807 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'
12809 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'
12813 export_symbols_cmds_CXX="$ltdll_cmds"
12816 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'
12819 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12823 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12824 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12825 test "$ld_shlibs_CXX" = no && can_build_shared=no
12828 # Do we need to explicitly link libc?
12830 case "x$archive_cmds_need_lc_CXX" in
12832 # Assume -lc should be added
12833 archive_cmds_need_lc_CXX=yes
12835 if test "$enable_shared" = yes && test "$GCC" = yes; then
12836 case $archive_cmds_CXX in
12838 # FIXME: we may have to deal with multi-command sequences.
12841 # Test whether the compiler implicitly links with -lc since on some
12842 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12843 # to ld, don't add -lc before -lgcc.
12844 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12845 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12847 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12850 (eval $ac_compile) 2>&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } 2>conftest.err; then
12856 libobjs=conftest.$ac_objext
12858 wl=$lt_prog_compiler_wl_CXX
12859 pic_flag=$lt_prog_compiler_pic_CXX
12865 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12866 allow_undefined_flag_CXX=
12867 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12868 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }
12873 archive_cmds_need_lc_CXX=no
12875 archive_cmds_need_lc_CXX=yes
12877 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12879 cat conftest.err 1>&5
12882 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12883 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12890 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12891 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12892 library_names_spec=
12893 libname_spec='lib$name'
12897 postuninstall_cmds=
12901 shlibpath_overrides_runpath=unknown
12903 dynamic_linker="$host_os ld.so"
12904 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12905 if test "$GCC" = yes; then
12906 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12907 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12908 # if the path contains ";" then we assume it to be the separator
12909 # otherwise default to the standard path separator (i.e. ":") - it is
12910 # assumed that no part of a normal pathname contains ";" but that should
12911 # okay in the real world where ";" in dirpaths is itself problematic.
12912 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12914 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12917 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12919 need_lib_prefix=unknown
12920 hardcode_into_libs=no
12922 # when you set need_version to no, make sure it does not cause -set_version
12923 # flags to be left without arguments
12924 need_version=unknown
12929 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12930 shlibpath_var=LIBPATH
12932 # AIX 3 has no versioning support, so we append a major version to the name.
12933 soname_spec='${libname}${release}${shared_ext}$major'
12940 hardcode_into_libs=yes
12941 if test "$host_cpu" = ia64; then
12942 # AIX 5 supports IA64
12943 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12944 shlibpath_var=LD_LIBRARY_PATH
12946 # With GCC up to 2.95.x, collect2 would create an import file
12947 # for dependence libraries. The import file would start with
12948 # the line `#! .'. This would cause the generated library to
12949 # depend on `.', always an invalid library. This was fixed in
12950 # development snapshots of GCC prior to 3.0.
12952 aix4 | aix4.[01] | aix4.[01].*)
12953 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12955 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12958 can_build_shared=no
12962 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12963 # soname into executable. Probably we can add versioning support to
12964 # collect2, so additional links can be useful in future.
12965 if test "$aix_use_runtimelinking" = yes; then
12966 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12967 # instead of lib<name>.a to let people know that these are not
12968 # typical AIX shared libraries.
12969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12971 # We preserve .a as extension for shared libraries through AIX4.2
12972 # and later when we are not doing run time linking.
12973 library_names_spec='${libname}${release}.a $libname.a'
12974 soname_spec='${libname}${release}${shared_ext}$major'
12976 shlibpath_var=LIBPATH
12981 library_names_spec='$libname.ixlibrary $libname.a'
12982 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12983 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'
12987 library_names_spec='${libname}${shared_ext}'
12988 dynamic_linker="$host_os ld.so"
12989 shlibpath_var=LIBRARY_PATH
12995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12996 soname_spec='${libname}${release}${shared_ext}$major'
12997 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12998 shlibpath_var=LD_LIBRARY_PATH
12999 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13000 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13001 # the default ld.so.conf also contains /usr/contrib/lib and
13002 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13003 # libtool to hard-code these into programs
13006 cygwin* | mingw* | pw32*)
13007 version_type=windows
13012 case $GCC,$host_os in
13013 yes,cygwin* | yes,mingw* | yes,pw32*)
13014 library_names_spec='$libname.dll.a'
13015 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13016 postinstall_cmds='base_file=`basename \${file}`~
13017 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13018 dldir=$destdir/`dirname \$dlpath`~
13019 test -d \$dldir || mkdir -p \$dldir~
13020 $install_prog $dir/$dlname \$dldir/$dlname~
13021 chmod a+x \$dldir/$dlname'
13022 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13023 dlpath=$dir/\$dldll~
13025 shlibpath_overrides_runpath=yes
13029 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13030 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13031 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13034 # MinGW DLLs use traditional 'lib' prefix
13035 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13036 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13037 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13038 # It is most probably a Windows format PATH printed by
13039 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13040 # path with ; separators, and with drive letters. We can handle the
13041 # drive letters (cygwin fileutils understands them), so leave them,
13042 # especially as we might pass files found there to a mingw objdump,
13043 # which wouldn't understand a cygwinified path. Ahh.
13044 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13046 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13050 # pw32 DLLs use 'pw' prefix rather than 'lib'
13051 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13057 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13060 dynamic_linker='Win32 ld.exe'
13061 # FIXME: first we should search . and the directory the executable is in
13065 darwin* | rhapsody*)
13066 dynamic_linker="$host_os dyld"
13067 version_type=darwin
13070 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13071 soname_spec='${libname}${release}${major}$shared_ext'
13072 shlibpath_overrides_runpath=yes
13073 shlibpath_var=DYLD_LIBRARY_PATH
13074 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13075 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13076 if test "$GCC" = yes; then
13077 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13079 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13081 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13089 soname_spec='${libname}${release}${shared_ext}$major'
13090 shlibpath_var=LD_LIBRARY_PATH
13101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13102 soname_spec='${libname}${release}${shared_ext}$major'
13103 shlibpath_var=LD_LIBRARY_PATH
13104 shlibpath_overrides_runpath=no
13105 hardcode_into_libs=yes
13106 dynamic_linker='GNU ld.so'
13109 freebsd* | dragonfly*)
13110 # DragonFly does not have aout. When/if they implement a new
13111 # versioning mechanism, adjust this.
13112 if test -x /usr/bin/objformat; then
13113 objformat=`/usr/bin/objformat`
13116 freebsd[123]*) objformat=aout ;;
13117 *) objformat=elf ;;
13120 version_type=freebsd-$objformat
13121 case $version_type in
13123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13128 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13132 shlibpath_var=LD_LIBRARY_PATH
13135 shlibpath_overrides_runpath=yes
13137 freebsd3.[01]* | freebsdelf3.[01]*)
13138 shlibpath_overrides_runpath=yes
13139 hardcode_into_libs=yes
13141 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13142 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13143 shlibpath_overrides_runpath=no
13144 hardcode_into_libs=yes
13146 freebsd*) # from 4.6 on
13147 shlibpath_overrides_runpath=yes
13148 hardcode_into_libs=yes
13157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13158 soname_spec='${libname}${release}${shared_ext}$major'
13159 shlibpath_var=LD_LIBRARY_PATH
13160 hardcode_into_libs=yes
13163 hpux9* | hpux10* | hpux11*)
13164 # Give a soname corresponding to the major version so that dld.sl refuses to
13165 # link against other versions.
13172 hardcode_into_libs=yes
13173 dynamic_linker="$host_os dld.so"
13174 shlibpath_var=LD_LIBRARY_PATH
13175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13177 soname_spec='${libname}${release}${shared_ext}$major'
13178 if test "X$HPUX_IA64_MODE" = X32; then
13179 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13181 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13183 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13187 hardcode_into_libs=yes
13188 dynamic_linker="$host_os dld.sl"
13189 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13190 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13192 soname_spec='${libname}${release}${shared_ext}$major'
13193 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13194 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13198 dynamic_linker="$host_os dld.sl"
13199 shlibpath_var=SHLIB_PATH
13200 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13202 soname_spec='${libname}${release}${shared_ext}$major'
13205 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13206 postinstall_cmds='chmod 555 $lib'
13213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13214 soname_spec='${libname}${release}${shared_ext}$major'
13215 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13216 shlibpath_var=LD_LIBRARY_PATH
13217 shlibpath_overrides_runpath=no
13218 hardcode_into_libs=yes
13221 irix5* | irix6* | nonstopux*)
13223 nonstopux*) version_type=nonstopux ;;
13225 if test "$lt_cv_prog_gnu_ld" = yes; then
13233 soname_spec='${libname}${release}${shared_ext}$major'
13234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13236 irix5* | nonstopux*)
13237 libsuff= shlibsuff=
13240 case $LD in # libtool.m4 will add one of these switches to LD
13241 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13242 libsuff= shlibsuff= libmagic=32-bit;;
13243 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13244 libsuff=32 shlibsuff=N32 libmagic=N32;;
13245 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13246 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13247 *) libsuff= shlibsuff= libmagic=never-match;;
13251 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13252 shlibpath_overrides_runpath=no
13253 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13254 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13255 hardcode_into_libs=yes
13258 # No shared lib support for Linux oldld, aout, or coff.
13259 linux*oldld* | linux*aout* | linux*coff*)
13263 # This must be Linux ELF.
13268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13269 soname_spec='${libname}${release}${shared_ext}$major'
13270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13271 shlibpath_var=LD_LIBRARY_PATH
13272 shlibpath_overrides_runpath=no
13273 # This implies no fast_install, which is unacceptable.
13274 # Some rework will be needed to allow for fast_install
13275 # before this can be enabled.
13276 hardcode_into_libs=yes
13278 # Append ld.so.conf contents to the search path
13279 if test -f /etc/ld.so.conf; then
13280 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13281 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13284 # We used to test for /lib/ld.so.1 and disable shared libraries on
13285 # powerpc, because MkLinux only supported shared libraries with the
13286 # GNU dynamic linker. Since this was broken with cross compilers,
13287 # most powerpc-linux boxes support dynamic linking these days and
13288 # people can always --disable-shared, the test was removed, and we
13289 # assume the GNU/Linux dynamic linker is in use.
13290 dynamic_linker='GNU/Linux ld.so'
13297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13298 soname_spec='${libname}${release}${shared_ext}$major'
13299 shlibpath_var=LD_LIBRARY_PATH
13300 shlibpath_overrides_runpath=no
13301 hardcode_into_libs=yes
13302 dynamic_linker='GNU ld.so'
13309 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13312 dynamic_linker='NetBSD (a.out) ld.so'
13314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13315 soname_spec='${libname}${release}${shared_ext}$major'
13316 dynamic_linker='NetBSD ld.elf_so'
13318 shlibpath_var=LD_LIBRARY_PATH
13319 shlibpath_overrides_runpath=yes
13320 hardcode_into_libs=yes
13325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13326 shlibpath_var=LD_LIBRARY_PATH
13327 shlibpath_overrides_runpath=yes
13334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13335 soname_spec='${libname}${release}${shared_ext}$major'
13336 shlibpath_var=LD_LIBRARY_PATH
13337 shlibpath_overrides_runpath=yes
13342 sys_lib_dlsearch_path_spec="/usr/lib"
13344 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13346 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13347 *) need_version=no ;;
13349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13351 shlibpath_var=LD_LIBRARY_PATH
13352 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13354 openbsd2.[89] | openbsd2.[89].*)
13355 shlibpath_overrides_runpath=no
13358 shlibpath_overrides_runpath=yes
13362 shlibpath_overrides_runpath=yes
13367 libname_spec='$name'
13370 library_names_spec='$libname${shared_ext} $libname.a'
13371 dynamic_linker='OS/2 ld.exe'
13372 shlibpath_var=LIBPATH
13375 osf3* | osf4* | osf5*)
13379 soname_spec='${libname}${release}${shared_ext}$major'
13380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13381 shlibpath_var=LD_LIBRARY_PATH
13382 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13383 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13391 soname_spec='${libname}${release}${shared_ext}$major'
13392 shlibpath_var=LD_LIBRARY_PATH
13393 shlibpath_overrides_runpath=yes
13394 hardcode_into_libs=yes
13395 # ldd complains unless libraries are executable
13396 postinstall_cmds='chmod +x $lib'
13401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13402 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13403 shlibpath_var=LD_LIBRARY_PATH
13404 shlibpath_overrides_runpath=yes
13405 if test "$with_gnu_ld" = yes; then
13413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13414 soname_spec='${libname}${release}${shared_ext}$major'
13415 shlibpath_var=LD_LIBRARY_PATH
13416 case $host_vendor in
13418 shlibpath_overrides_runpath=no
13420 export_dynamic_flag_spec='${wl}-Blargedynsym'
13421 runpath_var=LD_RUN_PATH
13429 shlibpath_overrides_runpath=no
13430 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13436 if test -d /usr/nec ;then
13438 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13439 soname_spec='$libname${shared_ext}.$major'
13440 shlibpath_var=LD_LIBRARY_PATH
13444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13445 version_type=freebsd-elf
13448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13449 soname_spec='${libname}${release}${shared_ext}$major'
13450 shlibpath_var=LD_LIBRARY_PATH
13451 hardcode_into_libs=yes
13452 if test "$with_gnu_ld" = yes; then
13453 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13454 shlibpath_overrides_runpath=no
13456 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13457 shlibpath_overrides_runpath=yes
13460 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13464 sys_lib_dlsearch_path_spec='/usr/lib'
13469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13470 soname_spec='${libname}${release}${shared_ext}$major'
13471 shlibpath_var=LD_LIBRARY_PATH
13478 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13479 echo "${ECHO_T}$dynamic_linker" >&6; }
13480 test "$dynamic_linker" = no && can_build_shared=no
13482 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13483 if test "$GCC" = yes; then
13484 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13487 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13488 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13489 hardcode_action_CXX=
13490 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13491 test -n "$runpath_var_CXX" || \
13492 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13494 # We can hardcode non-existant directories.
13495 if test "$hardcode_direct_CXX" != no &&
13496 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13497 # have to relink, otherwise we might link with an installed library
13498 # when we should be linking with a yet-to-be-installed one
13499 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13500 test "$hardcode_minus_L_CXX" != no; then
13501 # Linking always hardcodes the temporary library directory.
13502 hardcode_action_CXX=relink
13504 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13505 hardcode_action_CXX=immediate
13508 # We cannot hardcode anything, or else we can only hardcode existing
13510 hardcode_action_CXX=unsupported
13512 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13513 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13515 if test "$hardcode_action_CXX" = relink; then
13516 # Fast installation is not supported
13517 enable_fast_install=no
13518 elif test "$shlibpath_overrides_runpath" = yes ||
13519 test "$enable_shared" = no; then
13520 # Fast installation is not necessary
13521 enable_fast_install=needless
13525 # The else clause should only fire when bootstrapping the
13526 # libtool distribution, otherwise you forgot to ship ltmain.sh
13527 # with your package, and you will get complaints that there are
13528 # no rules to generate ltmain.sh.
13529 if test -f "$ltmain"; then
13530 # See if we are running on zsh, and set the options which allow our commands through
13531 # without removal of \ escapes.
13532 if test -n "${ZSH_VERSION+set}" ; then
13533 setopt NO_GLOB_SUBST
13535 # Now quote all the things that may contain metacharacters while being
13536 # careful not to overquote the AC_SUBSTed values. We take copies of the
13537 # variables and quote the copies for generation of the libtool script.
13538 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13540 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13541 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13542 deplibs_check_method reload_flag reload_cmds need_locks \
13543 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13544 lt_cv_sys_global_symbol_to_c_name_address \
13545 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13546 old_postinstall_cmds old_postuninstall_cmds \
13550 lt_prog_compiler_wl_CXX \
13551 lt_prog_compiler_pic_CXX \
13552 lt_prog_compiler_static_CXX \
13553 lt_prog_compiler_no_builtin_flag_CXX \
13554 export_dynamic_flag_spec_CXX \
13555 thread_safe_flag_spec_CXX \
13556 whole_archive_flag_spec_CXX \
13557 enable_shared_with_static_runtimes_CXX \
13558 old_archive_cmds_CXX \
13559 old_archive_from_new_cmds_CXX \
13560 predep_objects_CXX \
13561 postdep_objects_CXX \
13564 compiler_lib_search_path_CXX \
13566 archive_expsym_cmds_CXX \
13567 postinstall_cmds_CXX \
13568 postuninstall_cmds_CXX \
13569 old_archive_from_expsyms_cmds_CXX \
13570 allow_undefined_flag_CXX \
13571 no_undefined_flag_CXX \
13572 export_symbols_cmds_CXX \
13573 hardcode_libdir_flag_spec_CXX \
13574 hardcode_libdir_flag_spec_ld_CXX \
13575 hardcode_libdir_separator_CXX \
13576 hardcode_automatic_CXX \
13578 module_expsym_cmds_CXX \
13579 lt_cv_prog_compiler_c_o_CXX \
13580 exclude_expsyms_CXX \
13581 include_expsyms_CXX; do
13584 old_archive_cmds_CXX | \
13585 old_archive_from_new_cmds_CXX | \
13586 archive_cmds_CXX | \
13587 archive_expsym_cmds_CXX | \
13588 module_cmds_CXX | \
13589 module_expsym_cmds_CXX | \
13590 old_archive_from_expsyms_cmds_CXX | \
13591 export_symbols_cmds_CXX | \
13592 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13593 postinstall_cmds | postuninstall_cmds | \
13594 old_postinstall_cmds | old_postuninstall_cmds | \
13595 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13596 # Double-quote double-evaled strings.
13597 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13600 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13606 *'\$0 --fallback-echo"')
13607 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13613 cat <<__EOF__ >> "$cfgfile"
13614 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13616 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13618 # Shell to use when invoking shell scripts.
13621 # Whether or not to build shared libraries.
13622 build_libtool_libs=$enable_shared
13624 # Whether or not to build static libraries.
13625 build_old_libs=$enable_static
13627 # Whether or not to add -lc for building shared libraries.
13628 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13630 # Whether or not to disallow shared libs when runtime libs are static
13631 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13633 # Whether or not to optimize for fast installation.
13634 fast_install=$enable_fast_install
13637 host_alias=$host_alias
13641 # The build system.
13642 build_alias=$build_alias
13646 # An echo program that does not interpret backslashes.
13651 AR_FLAGS=$lt_AR_FLAGS
13656 # LTCC compiler flags.
13657 LTCFLAGS=$lt_LTCFLAGS
13659 # A language-specific compiler.
13660 CC=$lt_compiler_CXX
13662 # Is the compiler the GNU C compiler?
13668 # The linker used to build libraries.
13671 # Whether we need hard or soft links.
13674 # A BSD-compatible nm program.
13677 # A symbol stripping program
13680 # Used to examine libraries when file_magic_cmd begins "file"
13681 MAGIC_CMD=$MAGIC_CMD
13683 # Used on cygwin: DLL creation program.
13686 # Used on cygwin: object dumper.
13689 # Used on cygwin: assembler.
13692 # The name of the directory that contains temporary libtool files.
13695 # How to create reloadable object files.
13696 reload_flag=$lt_reload_flag
13697 reload_cmds=$lt_reload_cmds
13699 # How to pass a linker flag through the compiler.
13700 wl=$lt_lt_prog_compiler_wl_CXX
13702 # Object file suffix (normally "o").
13703 objext="$ac_objext"
13705 # Old archive suffix (normally "a").
13708 # Shared library suffix (normally ".so").
13709 shrext_cmds='$shrext_cmds'
13711 # Executable file suffix (normally "").
13714 # Additional compiler flags for building library objects.
13715 pic_flag=$lt_lt_prog_compiler_pic_CXX
13718 # What is the maximum length of a command?
13719 max_cmd_len=$lt_cv_sys_max_cmd_len
13721 # Does compiler simultaneously support -c and -o options?
13722 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13724 # Must we lock files when doing compilation?
13725 need_locks=$lt_need_locks
13727 # Do we need the lib prefix for modules?
13728 need_lib_prefix=$need_lib_prefix
13730 # Do we need a version for libraries?
13731 need_version=$need_version
13733 # Whether dlopen is supported.
13734 dlopen_support=$enable_dlopen
13736 # Whether dlopen of programs is supported.
13737 dlopen_self=$enable_dlopen_self
13739 # Whether dlopen of statically linked programs is supported.
13740 dlopen_self_static=$enable_dlopen_self_static
13742 # Compiler flag to prevent dynamic linking.
13743 link_static_flag=$lt_lt_prog_compiler_static_CXX
13745 # Compiler flag to turn off builtin functions.
13746 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13748 # Compiler flag to allow reflexive dlopens.
13749 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13751 # Compiler flag to generate shared objects directly from archives.
13752 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13754 # Compiler flag to generate thread-safe objects.
13755 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13757 # Library versioning type.
13758 version_type=$version_type
13760 # Format of library name prefix.
13761 libname_spec=$lt_libname_spec
13763 # List of archive names. First name is the real one, the rest are links.
13764 # The last name is the one that the linker finds with -lNAME.
13765 library_names_spec=$lt_library_names_spec
13767 # The coded name of the library, if different from the real name.
13768 soname_spec=$lt_soname_spec
13770 # Commands used to build and install an old-style archive.
13772 old_archive_cmds=$lt_old_archive_cmds_CXX
13773 old_postinstall_cmds=$lt_old_postinstall_cmds
13774 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13776 # Create an old-style archive from a shared archive.
13777 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13779 # Create a temporary old-style archive to link instead of a shared archive.
13780 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13782 # Commands used to build and install a shared archive.
13783 archive_cmds=$lt_archive_cmds_CXX
13784 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13785 postinstall_cmds=$lt_postinstall_cmds
13786 postuninstall_cmds=$lt_postuninstall_cmds
13788 # Commands used to build a loadable module (assumed same as above if empty)
13789 module_cmds=$lt_module_cmds_CXX
13790 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13792 # Commands to strip libraries.
13793 old_striplib=$lt_old_striplib
13794 striplib=$lt_striplib
13796 # Dependencies to place before the objects being linked to create a
13798 predep_objects=$lt_predep_objects_CXX
13800 # Dependencies to place after the objects being linked to create a
13802 postdep_objects=$lt_postdep_objects_CXX
13804 # Dependencies to place before the objects being linked to create a
13806 predeps=$lt_predeps_CXX
13808 # Dependencies to place after the objects being linked to create a
13810 postdeps=$lt_postdeps_CXX
13812 # The library search path used internally by the compiler when linking
13813 # a shared library.
13814 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13816 # Method to check whether dependent libraries are shared objects.
13817 deplibs_check_method=$lt_deplibs_check_method
13819 # Command to use when deplibs_check_method == file_magic.
13820 file_magic_cmd=$lt_file_magic_cmd
13822 # Flag that allows shared libraries with undefined symbols to be built.
13823 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13825 # Flag that forces no undefined symbols.
13826 no_undefined_flag=$lt_no_undefined_flag_CXX
13828 # Commands used to finish a libtool library installation in a directory.
13829 finish_cmds=$lt_finish_cmds
13831 # Same as above, but a single script fragment to be evaled but not shown.
13832 finish_eval=$lt_finish_eval
13834 # Take the output of nm and produce a listing of raw symbols and C names.
13835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13837 # Transform the output of nm in a proper C declaration
13838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13840 # Transform the output of nm in a C name address pair
13841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13843 # This is the shared library runtime path variable.
13844 runpath_var=$runpath_var
13846 # This is the shared library path variable.
13847 shlibpath_var=$shlibpath_var
13849 # Is shlibpath searched before the hard-coded library search path?
13850 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13852 # How to hardcode a shared library path into an executable.
13853 hardcode_action=$hardcode_action_CXX
13855 # Whether we should hardcode library paths into libraries.
13856 hardcode_into_libs=$hardcode_into_libs
13858 # Flag to hardcode \$libdir into a binary during linking.
13859 # This must work even if \$libdir does not exist.
13860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13862 # If ld is used when linking, flag to hardcode \$libdir into
13863 # a binary during linking. This must work even if \$libdir does
13865 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13867 # Whether we need a single -rpath flag with a separated argument.
13868 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13870 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13871 # resulting binary.
13872 hardcode_direct=$hardcode_direct_CXX
13874 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13875 # resulting binary.
13876 hardcode_minus_L=$hardcode_minus_L_CXX
13878 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13879 # the resulting binary.
13880 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13882 # Set to yes if building a shared library automatically hardcodes DIR into the library
13883 # and all subsequent libraries and executables linked against it.
13884 hardcode_automatic=$hardcode_automatic_CXX
13886 # Variables whose values should be saved in libtool wrapper scripts and
13887 # restored at relink time.
13888 variables_saved_for_relink="$variables_saved_for_relink"
13890 # Whether libtool must link a program against all its dependency libraries.
13891 link_all_deplibs=$link_all_deplibs_CXX
13893 # Compile-time system search path for libraries
13894 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13896 # Run-time system search path for libraries
13897 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13899 # Fix the shell variable \$srcfile for the compiler.
13900 fix_srcfile_path="$fix_srcfile_path_CXX"
13902 # Set to yes if exported symbols are required.
13903 always_export_symbols=$always_export_symbols_CXX
13905 # The commands to list exported symbols.
13906 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13908 # The commands to extract the exported symbol list from a shared archive.
13909 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13911 # Symbols that should not be listed in the preloaded symbols.
13912 exclude_expsyms=$lt_exclude_expsyms_CXX
13914 # Symbols that must always be exported.
13915 include_expsyms=$lt_include_expsyms_CXX
13917 # ### END LIBTOOL TAG CONFIG: $tagname
13923 # If there is no Makefile yet, we rely on a make rule to execute
13924 # `config.status --recheck' to rerun these tests and create the
13925 # libtool script then.
13926 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13927 if test -f "$ltmain_in"; then
13928 test -f Makefile && make "$ltmain"
13934 ac_cpp='$CPP $CPPFLAGS'
13935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13943 with_gnu_ldcxx=$with_gnu_ld
13944 with_gnu_ld=$lt_save_with_gnu_ld
13945 lt_cv_path_LDCXX=$lt_cv_path_LD
13946 lt_cv_path_LD=$lt_save_path_LD
13947 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13948 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13956 if test -n "$F77" && test "X$F77" != "Xno"; then
13959 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13960 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13961 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13964 archive_cmds_need_lc_F77=no
13965 allow_undefined_flag_F77=
13966 always_export_symbols_F77=no
13967 archive_expsym_cmds_F77=
13968 export_dynamic_flag_spec_F77=
13969 hardcode_direct_F77=no
13970 hardcode_libdir_flag_spec_F77=
13971 hardcode_libdir_flag_spec_ld_F77=
13972 hardcode_libdir_separator_F77=
13973 hardcode_minus_L_F77=no
13974 hardcode_automatic_F77=no
13976 module_expsym_cmds_F77=
13977 link_all_deplibs_F77=unknown
13978 old_archive_cmds_F77=$old_archive_cmds
13979 no_undefined_flag_F77=
13980 whole_archive_flag_spec_F77=
13981 enable_shared_with_static_runtimes_F77=no
13983 # Source file extension for f77 test sources.
13986 # Object file extension for compiled f77 test sources.
13990 # Code to be used in simple compile tests
13991 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13993 # Code to be used in simple link tests
13994 lt_simple_link_test_code=" program t\n end\n"
13996 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13998 # If no C compiler was specified, use CC.
14001 # If no C compiler flags were specified, use CFLAGS.
14002 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14004 # Allow CC to be a program name with arguments.
14008 # save warnings/boilerplate of simple test code
14009 ac_outfile=conftest.$ac_objext
14010 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14011 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14012 _lt_compiler_boilerplate=`cat conftest.err`
14015 ac_outfile=conftest.$ac_objext
14016 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14017 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14018 _lt_linker_boilerplate=`cat conftest.err`
14022 # Allow CC to be a program name with arguments.
14027 for cc_temp in $compiler""; do
14029 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14030 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14035 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14038 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14039 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14040 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14041 echo "${ECHO_T}$can_build_shared" >&6; }
14043 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14044 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14045 test "$can_build_shared" = "no" && enable_shared=no
14047 # On AIX, shared libraries and static libraries use the same namespace, and
14048 # are all built from PIC.
14051 test "$enable_shared" = yes && enable_static=no
14052 if test -n "$RANLIB"; then
14053 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14054 postinstall_cmds='$RANLIB $lib'
14058 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14059 test "$enable_shared" = yes && enable_static=no
14063 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14064 echo "${ECHO_T}$enable_shared" >&6; }
14066 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14067 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14068 # Make sure either enable_shared or enable_static is yes.
14069 test "$enable_shared" = yes || enable_static=yes
14070 { echo "$as_me:$LINENO: result: $enable_static" >&5
14071 echo "${ECHO_T}$enable_static" >&6; }
14076 lt_prog_compiler_wl_F77=
14077 lt_prog_compiler_pic_F77=
14078 lt_prog_compiler_static_F77=
14080 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14081 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14083 if test "$GCC" = yes; then
14084 lt_prog_compiler_wl_F77='-Wl,'
14085 lt_prog_compiler_static_F77='-static'
14089 # All AIX code is PIC.
14090 if test "$host_cpu" = ia64; then
14091 # AIX 5 now supports IA64 processor
14092 lt_prog_compiler_static_F77='-Bstatic'
14097 # FIXME: we need at least 68020 code to build shared libraries, but
14098 # adding the `-m68020' flag to GCC prevents building anything better,
14100 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14103 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14104 # PIC is the default for these OSes.
14107 mingw* | pw32* | os2*)
14108 # This hack is so that the source file can tell whether it is being
14109 # built for inclusion in a dll (and should export symbols for example).
14110 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14113 darwin* | rhapsody*)
14114 # PIC is the default on this platform
14115 # Common symbols not allowed in MH_DYLIB files
14116 lt_prog_compiler_pic_F77='-fno-common'
14120 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14121 # Instead, we relocate shared libraries at runtime.
14125 # Just because we use GCC doesn't mean we suddenly get shared libraries
14126 # on systems that don't support them.
14127 lt_prog_compiler_can_build_shared_F77=no
14132 if test -d /usr/nec; then
14133 lt_prog_compiler_pic_F77=-Kconform_pic
14138 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14139 # not for PA HP-UX.
14145 lt_prog_compiler_pic_F77='-fPIC'
14151 lt_prog_compiler_pic_F77='-fPIC'
14155 # PORTME Check for flag to pass linker flags through the system compiler.
14158 lt_prog_compiler_wl_F77='-Wl,'
14159 if test "$host_cpu" = ia64; then
14160 # AIX 5 now supports IA64 processor
14161 lt_prog_compiler_static_F77='-Bstatic'
14163 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14167 # PIC is the default on this platform
14168 # Common symbols not allowed in MH_DYLIB files
14169 case $cc_basename in
14171 lt_prog_compiler_pic_F77='-qnocommon'
14172 lt_prog_compiler_wl_F77='-Wl,'
14177 mingw* | pw32* | os2*)
14178 # This hack is so that the source file can tell whether it is being
14179 # built for inclusion in a dll (and should export symbols for example).
14180 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14183 hpux9* | hpux10* | hpux11*)
14184 lt_prog_compiler_wl_F77='-Wl,'
14185 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14186 # not for PA HP-UX.
14192 lt_prog_compiler_pic_F77='+Z'
14195 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14196 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14199 irix5* | irix6* | nonstopux*)
14200 lt_prog_compiler_wl_F77='-Wl,'
14201 # PIC (with -KPIC) is the default.
14202 lt_prog_compiler_static_F77='-non_shared'
14206 lt_prog_compiler_pic_F77='-KPIC'
14207 lt_prog_compiler_static_F77='-Bstatic'
14211 case $cc_basename in
14213 lt_prog_compiler_wl_F77='-Wl,'
14214 lt_prog_compiler_pic_F77='-KPIC'
14215 lt_prog_compiler_static_F77='-static'
14217 pgcc* | pgf77* | pgf90* | pgf95*)
14218 # Portland Group compilers (*not* the Pentium gcc compiler,
14219 # which looks to be a dead project)
14220 lt_prog_compiler_wl_F77='-Wl,'
14221 lt_prog_compiler_pic_F77='-fpic'
14222 lt_prog_compiler_static_F77='-Bstatic'
14225 lt_prog_compiler_wl_F77='-Wl,'
14226 # All Alpha code is PIC.
14227 lt_prog_compiler_static_F77='-non_shared'
14232 osf3* | osf4* | osf5*)
14233 lt_prog_compiler_wl_F77='-Wl,'
14234 # All OSF/1 code is PIC.
14235 lt_prog_compiler_static_F77='-non_shared'
14239 lt_prog_compiler_pic_F77='-KPIC'
14240 lt_prog_compiler_static_F77='-Bstatic'
14241 case $cc_basename in
14242 f77* | f90* | f95*)
14243 lt_prog_compiler_wl_F77='-Qoption ld ';;
14245 lt_prog_compiler_wl_F77='-Wl,';;
14250 lt_prog_compiler_wl_F77='-Qoption ld '
14251 lt_prog_compiler_pic_F77='-PIC'
14252 lt_prog_compiler_static_F77='-Bstatic'
14255 sysv4 | sysv4.2uw2* | sysv4.3*)
14256 lt_prog_compiler_wl_F77='-Wl,'
14257 lt_prog_compiler_pic_F77='-KPIC'
14258 lt_prog_compiler_static_F77='-Bstatic'
14262 if test -d /usr/nec ;then
14263 lt_prog_compiler_pic_F77='-Kconform_pic'
14264 lt_prog_compiler_static_F77='-Bstatic'
14268 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14269 lt_prog_compiler_wl_F77='-Wl,'
14270 lt_prog_compiler_pic_F77='-KPIC'
14271 lt_prog_compiler_static_F77='-Bstatic'
14275 lt_prog_compiler_wl_F77='-Wl,'
14276 lt_prog_compiler_can_build_shared_F77=no
14280 lt_prog_compiler_pic_F77='-pic'
14281 lt_prog_compiler_static_F77='-Bstatic'
14285 lt_prog_compiler_can_build_shared_F77=no
14290 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14291 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14294 # Check to make sure the PIC flag actually works.
14296 if test -n "$lt_prog_compiler_pic_F77"; then
14298 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14299 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14300 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14303 lt_prog_compiler_pic_works_F77=no
14304 ac_outfile=conftest.$ac_objext
14305 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14306 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14307 # Insert the option either (1) after the last *FLAGS variable, or
14308 # (2) before a word containing "conftest.", or (3) at the end.
14309 # Note that $ac_compile itself does not contain backslashes and begins
14310 # with a dollar sign (not a hyphen), so the echo should work correctly.
14311 # The option is referenced via a variable to avoid confusing sed.
14312 lt_compile=`echo "$ac_compile" | $SED \
14313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14315 -e 's:$: $lt_compiler_flag:'`
14316 (eval echo "\"\$as_me:14316: $lt_compile\"" >&5)
14317 (eval "$lt_compile" 2>conftest.err)
14319 cat conftest.err >&5
14320 echo "$as_me:14320: \$? = $ac_status" >&5
14321 if (exit $ac_status) && test -s "$ac_outfile"; then
14322 # The compiler can only warn and ignore the option if not recognized
14323 # So say no if there are warnings other than the usual output.
14324 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14326 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14327 lt_prog_compiler_pic_works_F77=yes
14333 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14334 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14336 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14337 case $lt_prog_compiler_pic_F77 in
14339 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14342 lt_prog_compiler_pic_F77=
14343 lt_prog_compiler_can_build_shared_F77=no
14348 # For platforms which do not support PIC, -DPIC is meaningless:
14350 lt_prog_compiler_pic_F77=
14353 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14358 # Check to make sure the static flag actually works.
14360 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14361 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14362 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14363 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14366 lt_prog_compiler_static_works_F77=no
14367 save_LDFLAGS="$LDFLAGS"
14368 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14369 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14370 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14371 # The linker can only warn and ignore the option if not recognized
14372 # So say no if there are warnings
14373 if test -s conftest.err; then
14374 # Append any errors to the config.log.
14375 cat conftest.err 1>&5
14376 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14378 if diff conftest.exp conftest.er2 >/dev/null; then
14379 lt_prog_compiler_static_works_F77=yes
14382 lt_prog_compiler_static_works_F77=yes
14386 LDFLAGS="$save_LDFLAGS"
14389 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14390 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14392 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14395 lt_prog_compiler_static_F77=
14399 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14400 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14401 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14402 echo $ECHO_N "(cached) $ECHO_C" >&6
14404 lt_cv_prog_compiler_c_o_F77=no
14405 $rm -r conftest 2>/dev/null
14409 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14411 lt_compiler_flag="-o out/conftest2.$ac_objext"
14412 # Insert the option either (1) after the last *FLAGS variable, or
14413 # (2) before a word containing "conftest.", or (3) at the end.
14414 # Note that $ac_compile itself does not contain backslashes and begins
14415 # with a dollar sign (not a hyphen), so the echo should work correctly.
14416 lt_compile=`echo "$ac_compile" | $SED \
14417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14419 -e 's:$: $lt_compiler_flag:'`
14420 (eval echo "\"\$as_me:14420: $lt_compile\"" >&5)
14421 (eval "$lt_compile" 2>out/conftest.err)
14423 cat out/conftest.err >&5
14424 echo "$as_me:14424: \$? = $ac_status" >&5
14425 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14427 # The compiler can only warn and ignore the option if not recognized
14428 # So say no if there are warnings
14429 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14430 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14431 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14432 lt_cv_prog_compiler_c_o_F77=yes
14437 # SGI C++ compiler will create directory out/ii_files/ for
14438 # template instantiation
14439 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14440 $rm out/* && rmdir out
14446 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14447 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14450 hard_links="nottested"
14451 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14452 # do not overwrite the value of need_locks provided by the user
14453 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14454 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14457 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14459 ln conftest.a conftest.b 2>&5 || hard_links=no
14460 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14461 { echo "$as_me:$LINENO: result: $hard_links" >&5
14462 echo "${ECHO_T}$hard_links" >&6; }
14463 if test "$hard_links" = no; then
14464 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14465 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14472 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14473 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14476 allow_undefined_flag_F77=
14477 enable_shared_with_static_runtimes_F77=no
14479 archive_expsym_cmds_F77=
14480 old_archive_From_new_cmds_F77=
14481 old_archive_from_expsyms_cmds_F77=
14482 export_dynamic_flag_spec_F77=
14483 whole_archive_flag_spec_F77=
14484 thread_safe_flag_spec_F77=
14485 hardcode_libdir_flag_spec_F77=
14486 hardcode_libdir_flag_spec_ld_F77=
14487 hardcode_libdir_separator_F77=
14488 hardcode_direct_F77=no
14489 hardcode_minus_L_F77=no
14490 hardcode_shlibpath_var_F77=unsupported
14491 link_all_deplibs_F77=unknown
14492 hardcode_automatic_F77=no
14494 module_expsym_cmds_F77=
14495 always_export_symbols_F77=no
14496 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14497 # include_expsyms should be a list of space-separated symbols to be *always*
14498 # included in the symbol list
14499 include_expsyms_F77=
14500 # exclude_expsyms can be an extended regexp of symbols to exclude
14501 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14502 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14503 # as well as any symbol that contains `d'.
14504 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14505 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14506 # platforms (ab)use it in PIC code, but their linkers get confused if
14507 # the symbol is explicitly referenced. Since portable code cannot
14508 # rely on this symbol name, it's probably fine to never include it in
14509 # preloaded symbol tables.
14510 extract_expsyms_cmds=
14511 # Just being paranoid about ensuring that cc_basename is set.
14512 for cc_temp in $compiler""; do
14514 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14515 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14520 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14523 cygwin* | mingw* | pw32*)
14524 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14525 # When not using gcc, we currently assume that we are using
14526 # Microsoft Visual C++.
14527 if test "$GCC" != yes; then
14532 # we just hope/assume this is gcc and not c89 (= MSVC++)
14541 if test "$with_gnu_ld" = yes; then
14542 # If archive_cmds runs LD, not CC, wlarc should be empty
14545 # Set some defaults for GNU ld with shared library support. These
14546 # are reset later if shared libraries are not supported. Putting them
14547 # here allows them to be overridden if necessary.
14548 runpath_var=LD_RUN_PATH
14549 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14550 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14551 # ancient GNU ld didn't support --whole-archive et. al.
14552 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14553 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14555 whole_archive_flag_spec_F77=
14557 supports_anon_versioning=no
14558 case `$LD -v 2>/dev/null` in
14559 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14560 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14561 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14562 *\ 2.11.*) ;; # other 2.11 versions
14563 *) supports_anon_versioning=yes ;;
14566 # See if GNU ld supports shared libraries.
14568 aix3* | aix4* | aix5*)
14569 # On AIX/PPC, the GNU linker is very broken
14570 if test "$host_cpu" != ia64; then
14574 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14575 *** to be unable to reliably create shared libraries on AIX.
14576 *** Therefore, libtool is disabling shared libraries support. If you
14577 *** really care for shared libraries, you may want to modify your PATH
14578 *** so that a non-GNU linker is found, and then restart.
14585 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)'
14586 hardcode_libdir_flag_spec_F77='-L$libdir'
14587 hardcode_minus_L_F77=yes
14589 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14590 # that the semantics of dynamic libraries on AmigaOS, at least up
14591 # to version 4, is to share data among multiple programs linked
14592 # with the same dynamic library. Since this doesn't match the
14593 # behavior of shared libraries on other platforms, we can't use
14599 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14600 allow_undefined_flag_F77=unsupported
14601 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14602 # support --undefined. This deserves some investigation. FIXME
14603 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14609 cygwin* | mingw* | pw32*)
14610 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14611 # as there is no search path for DLLs.
14612 hardcode_libdir_flag_spec_F77='-L$libdir'
14613 allow_undefined_flag_F77=unsupported
14614 always_export_symbols_F77=no
14615 enable_shared_with_static_runtimes_F77=yes
14616 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14618 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14619 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14620 # If the export-symbols file already is a .def file (1st line
14621 # is EXPORTS), use it as is; otherwise, prepend...
14622 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14623 cp $export_symbols $output_objdir/$soname.def;
14625 echo EXPORTS > $output_objdir/$soname.def;
14626 cat $export_symbols >> $output_objdir/$soname.def;
14628 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14635 hardcode_direct_F77=no
14636 hardcode_shlibpath_var_F77=no
14637 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14638 export_dynamic_flag_spec_F77='${wl}-E'
14639 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14640 # Instead, shared libraries are loaded at an image base (0x10000000 by
14641 # default) and relocated if they conflict, which is a slow very memory
14642 # consuming and fragmenting process. To avoid this, we pick a random,
14643 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14644 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14645 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'
14646 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'
14650 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14652 case $cc_basename,$host_cpu in
14653 pgcc*) # Portland Group C compiler
14654 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'
14655 tmp_addflag=' $pic_flag'
14657 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14658 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'
14659 tmp_addflag=' $pic_flag -Mnomain' ;;
14660 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14661 tmp_addflag=' -i_dynamic' ;;
14662 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14663 tmp_addflag=' -i_dynamic -nofor_main' ;;
14664 ifc* | ifort*) # Intel Fortran compiler
14665 tmp_addflag=' -nofor_main' ;;
14667 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14669 if test $supports_anon_versioning = yes; then
14670 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14671 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14672 $echo "local: *; };" >> $output_objdir/$libname.ver~
14673 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14681 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14682 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14685 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14686 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14691 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14695 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14696 *** create shared libraries on Solaris systems. Therefore, libtool
14697 *** is disabling shared libraries support. We urge you to upgrade GNU
14698 *** binutils to release 2.9.1 or newer. Another option is to modify
14699 *** your PATH or compiler configuration so that the native linker is
14700 *** used, and then restart.
14703 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14704 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14705 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14711 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14712 case `$LD -v 2>&1` in
14713 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14717 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14718 *** reliably create shared libraries on SCO systems. Therefore, libtool
14719 *** is disabling shared libraries support. We urge you to upgrade GNU
14720 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14721 *** your PATH or compiler configuration so that the native linker is
14722 *** used, and then restart.
14727 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14728 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14729 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14730 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14739 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14741 hardcode_direct_F77=yes
14742 hardcode_shlibpath_var_F77=no
14746 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14747 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14748 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14755 if test "$ld_shlibs_F77" = no; then
14757 hardcode_libdir_flag_spec_F77=
14758 export_dynamic_flag_spec_F77=
14759 whole_archive_flag_spec_F77=
14762 # PORTME fill in a description of your system's linker (not GNU ld)
14765 allow_undefined_flag_F77=unsupported
14766 always_export_symbols_F77=yes
14767 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'
14768 # Note: this linker hardcodes the directories in LIBPATH if there
14769 # are no directories specified by -L.
14770 hardcode_minus_L_F77=yes
14771 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14772 # Neither direct hardcoding nor static linking is supported with a
14774 hardcode_direct_F77=unsupported
14779 if test "$host_cpu" = ia64; then
14780 # On IA64, the linker does run time linking by default, so we don't
14781 # have to do anything special.
14782 aix_use_runtimelinking=no
14783 exp_sym_flag='-Bexport'
14786 # If we're using GNU nm, then we don't want the "-C" option.
14787 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14788 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14789 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'
14791 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'
14793 aix_use_runtimelinking=no
14795 # Test if we are trying to use run time linking or normal
14796 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14797 # need to do runtime linking.
14798 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14799 for ld_flag in $LDFLAGS; do
14800 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14801 aix_use_runtimelinking=yes
14808 exp_sym_flag='-bexport'
14809 no_entry_flag='-bnoentry'
14812 # When large executables or shared objects are built, AIX ld can
14813 # have problems creating the table of contents. If linking a library
14814 # or program results in "error TOC overflow" add -mminimal-toc to
14815 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14816 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14818 archive_cmds_F77=''
14819 hardcode_direct_F77=yes
14820 hardcode_libdir_separator_F77=':'
14821 link_all_deplibs_F77=yes
14823 if test "$GCC" = yes; then
14824 case $host_os in aix4.[012]|aix4.[012].*)
14825 # We only want to do this on AIX 4.2 and lower, the check
14826 # below for broken collect2 doesn't work under 4.3+
14827 collect2name=`${CC} -print-prog-name=collect2`
14828 if test -f "$collect2name" && \
14829 strings "$collect2name" | grep resolve_lib_name >/dev/null
14831 # We have reworked collect2
14832 hardcode_direct_F77=yes
14834 # We have old collect2
14835 hardcode_direct_F77=unsupported
14836 # It fails to find uninstalled libraries when the uninstalled
14837 # path is not listed in the libpath. Setting hardcode_minus_L
14838 # to unsupported forces relinking
14839 hardcode_minus_L_F77=yes
14840 hardcode_libdir_flag_spec_F77='-L$libdir'
14841 hardcode_libdir_separator_F77=
14845 shared_flag='-shared'
14846 if test "$aix_use_runtimelinking" = yes; then
14847 shared_flag="$shared_flag "'${wl}-G'
14851 if test "$host_cpu" = ia64; then
14852 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14853 # chokes on -Wl,-G. The following line is correct:
14856 if test "$aix_use_runtimelinking" = yes; then
14857 shared_flag='${wl}-G'
14859 shared_flag='${wl}-bM:SRE'
14864 # It seems that -bexpall does not export symbols beginning with
14865 # underscore (_), so it is better to generate a list of symbols to export.
14866 always_export_symbols_F77=yes
14867 if test "$aix_use_runtimelinking" = yes; then
14868 # Warning - without using the other runtime loading flags (-brtl),
14869 # -berok will link without error, but may produce a broken library.
14870 allow_undefined_flag_F77='-berok'
14871 # Determine the default libpath from the value encoded in an empty executable.
14872 cat >conftest.$ac_ext <<_ACEOF
14877 rm -f conftest.$ac_objext conftest$ac_exeext
14878 if { (ac_try="$ac_link"
14879 case "(($ac_try" in
14880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881 *) ac_try_echo=$ac_try;;
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884 (eval "$ac_link") 2>conftest.er1
14886 grep -v '^ *+' conftest.er1 >conftest.err
14888 cat conftest.err >&5
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); } &&
14891 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14892 { (case "(($ac_try" in
14893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14894 *) ac_try_echo=$ac_try;;
14896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14897 (eval "$ac_try") 2>&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; } &&
14901 { ac_try='test -s conftest$ac_exeext'
14902 { (case "(($ac_try" in
14903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14904 *) ac_try_echo=$ac_try;;
14906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14907 (eval "$ac_try") 2>&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; }; then
14912 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14914 # Check for a 64-bit object if we didn't find anything.
14915 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14918 echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14924 rm -f core conftest.err conftest.$ac_objext \
14925 conftest$ac_exeext conftest.$ac_ext
14926 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14928 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14929 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"
14931 if test "$host_cpu" = ia64; then
14932 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14933 allow_undefined_flag_F77="-z nodefs"
14934 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"
14936 # Determine the default libpath from the value encoded in an empty executable.
14937 cat >conftest.$ac_ext <<_ACEOF
14942 rm -f conftest.$ac_objext conftest$ac_exeext
14943 if { (ac_try="$ac_link"
14944 case "(($ac_try" in
14945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946 *) ac_try_echo=$ac_try;;
14948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14949 (eval "$ac_link") 2>conftest.er1
14951 grep -v '^ *+' conftest.er1 >conftest.err
14953 cat conftest.err >&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } &&
14956 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14957 { (case "(($ac_try" in
14958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14959 *) ac_try_echo=$ac_try;;
14961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14962 (eval "$ac_try") 2>&5
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); }; } &&
14966 { ac_try='test -s conftest$ac_exeext'
14967 { (case "(($ac_try" in
14968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14969 *) ac_try_echo=$ac_try;;
14971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14972 (eval "$ac_try") 2>&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; }; then
14977 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14979 # Check for a 64-bit object if we didn't find anything.
14980 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14983 echo "$as_me: failed program was:" >&5
14984 sed 's/^/| /' conftest.$ac_ext >&5
14989 rm -f core conftest.err conftest.$ac_objext \
14990 conftest$ac_exeext conftest.$ac_ext
14991 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14993 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14994 # Warning - without using the other run time loading flags,
14995 # -berok will link without error, but may produce a broken library.
14996 no_undefined_flag_F77=' ${wl}-bernotok'
14997 allow_undefined_flag_F77=' ${wl}-berok'
14998 # Exported symbols can be pulled into shared objects from archives
14999 whole_archive_flag_spec_F77='$convenience'
15000 archive_cmds_need_lc_F77=yes
15001 # This is similar to how AIX traditionally builds its shared libraries.
15002 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'
15008 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)'
15009 hardcode_libdir_flag_spec_F77='-L$libdir'
15010 hardcode_minus_L_F77=yes
15011 # see comment about different semantics on the GNU ld section
15016 export_dynamic_flag_spec_F77=-rdynamic
15019 cygwin* | mingw* | pw32*)
15020 # When not using gcc, we currently assume that we are using
15021 # Microsoft Visual C++.
15022 # hardcode_libdir_flag_spec is actually meaningless, as there is
15023 # no search path for DLLs.
15024 hardcode_libdir_flag_spec_F77=' '
15025 allow_undefined_flag_F77=unsupported
15026 # Tell ltmain to make .lib files, not .a files.
15028 # Tell ltmain to make .dll files, not .so files.
15030 # FIXME: Setting linknames here is a bad hack.
15031 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15032 # The linker will automatically build a .lib file if we build a DLL.
15033 old_archive_From_new_cmds_F77='true'
15034 # FIXME: Should let the user specify the lib program.
15035 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15036 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15037 enable_shared_with_static_runtimes_F77=yes
15040 darwin* | rhapsody*)
15042 rhapsody* | darwin1.[012])
15043 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15046 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15047 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15049 case ${MACOSX_DEPLOYMENT_TARGET} in
15051 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15054 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15060 archive_cmds_need_lc_F77=no
15061 hardcode_direct_F77=no
15062 hardcode_automatic_F77=yes
15063 hardcode_shlibpath_var_F77=unsupported
15064 whole_archive_flag_spec_F77=''
15065 link_all_deplibs_F77=yes
15066 if test "$GCC" = yes ; then
15067 output_verbose_link_cmd='echo'
15068 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15069 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15070 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15071 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15072 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}'
15074 case $cc_basename in
15076 output_verbose_link_cmd='echo'
15077 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15078 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15079 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15080 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15081 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}'
15091 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15092 hardcode_libdir_flag_spec_F77='-L$libdir'
15093 hardcode_shlibpath_var_F77=no
15100 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15101 # support. Future versions do this automatically, but an explicit c++rt0.o
15102 # does not break anything, and helps significantly (at the cost of a little
15105 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15106 hardcode_libdir_flag_spec_F77='-R$libdir'
15107 hardcode_direct_F77=yes
15108 hardcode_shlibpath_var_F77=no
15111 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15113 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15114 hardcode_direct_F77=yes
15115 hardcode_minus_L_F77=yes
15116 hardcode_shlibpath_var_F77=no
15119 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15120 freebsd* | kfreebsd*-gnu | dragonfly*)
15121 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15122 hardcode_libdir_flag_spec_F77='-R$libdir'
15123 hardcode_direct_F77=yes
15124 hardcode_shlibpath_var_F77=no
15128 if test "$GCC" = yes; then
15129 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'
15131 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'
15133 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15134 hardcode_libdir_separator_F77=:
15135 hardcode_direct_F77=yes
15137 # hardcode_minus_L: Not really in the search PATH,
15138 # but as the default location of the library.
15139 hardcode_minus_L_F77=yes
15140 export_dynamic_flag_spec_F77='${wl}-E'
15144 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15145 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15147 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15149 if test "$with_gnu_ld" = no; then
15150 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15151 hardcode_libdir_separator_F77=:
15153 hardcode_direct_F77=yes
15154 export_dynamic_flag_spec_F77='${wl}-E'
15156 # hardcode_minus_L: Not really in the search PATH,
15157 # but as the default location of the library.
15158 hardcode_minus_L_F77=yes
15163 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15166 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15169 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15172 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15178 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15181 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15184 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15188 if test "$with_gnu_ld" = no; then
15189 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15190 hardcode_libdir_separator_F77=:
15194 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15195 hardcode_direct_F77=no
15196 hardcode_shlibpath_var_F77=no
15199 hardcode_direct_F77=yes
15200 export_dynamic_flag_spec_F77='${wl}-E'
15202 # hardcode_minus_L: Not really in the search PATH,
15203 # but as the default location of the library.
15204 hardcode_minus_L_F77=yes
15210 irix5* | irix6* | nonstopux*)
15211 if test "$GCC" = yes; then
15212 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'
15214 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'
15215 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15217 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15218 hardcode_libdir_separator_F77=:
15219 link_all_deplibs_F77=yes
15223 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15224 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15226 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15228 hardcode_libdir_flag_spec_F77='-R$libdir'
15229 hardcode_direct_F77=yes
15230 hardcode_shlibpath_var_F77=no
15234 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15235 hardcode_direct_F77=yes
15236 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15237 hardcode_libdir_separator_F77=:
15238 hardcode_shlibpath_var_F77=no
15242 hardcode_direct_F77=yes
15243 hardcode_shlibpath_var_F77=no
15244 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15245 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15246 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15247 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15248 export_dynamic_flag_spec_F77='${wl}-E'
15251 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15252 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15253 hardcode_libdir_flag_spec_F77='-R$libdir'
15256 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15257 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15264 hardcode_libdir_flag_spec_F77='-L$libdir'
15265 hardcode_minus_L_F77=yes
15266 allow_undefined_flag_F77=unsupported
15267 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'
15268 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15272 if test "$GCC" = yes; then
15273 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15274 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'
15276 allow_undefined_flag_F77=' -expect_unresolved \*'
15277 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'
15279 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15280 hardcode_libdir_separator_F77=:
15283 osf4* | osf5*) # as osf3* with the addition of -msym flag
15284 if test "$GCC" = yes; then
15285 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15286 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'
15287 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15289 allow_undefined_flag_F77=' -expect_unresolved \*'
15290 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'
15291 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~
15292 $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'
15294 # Both c and cxx compiler support -rpath directly
15295 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15297 hardcode_libdir_separator_F77=:
15301 no_undefined_flag_F77=' -z text'
15302 if test "$GCC" = yes; then
15304 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15305 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15306 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15309 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15310 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15311 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15313 hardcode_libdir_flag_spec_F77='-R$libdir'
15314 hardcode_shlibpath_var_F77=no
15316 solaris2.[0-5] | solaris2.[0-5].*) ;;
15318 # The compiler driver will combine linker options so we
15319 # cannot just pass the convience library names through
15320 # without $wl, iff we do not link with $LD.
15321 # Luckily, gcc supports the same syntax we need for Sun Studio.
15322 # Supported since Solaris 2.6 (maybe 2.5.1?)
15325 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15327 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15330 link_all_deplibs_F77=yes
15334 if test "x$host_vendor" = xsequent; then
15335 # Use $CC to link under sequent, because it throws in some extra .o
15336 # files that make .init and .fini sections work.
15337 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15339 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15341 hardcode_libdir_flag_spec_F77='-L$libdir'
15342 hardcode_direct_F77=yes
15343 hardcode_minus_L_F77=yes
15344 hardcode_shlibpath_var_F77=no
15348 case $host_vendor in
15350 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15351 hardcode_direct_F77=yes # is this really true???
15354 ## LD is ld it makes a PLAMLIB
15355 ## CC just makes a GrossModule.
15356 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15357 reload_cmds_F77='$CC -r -o $output$reload_objs'
15358 hardcode_direct_F77=no
15361 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15362 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15365 runpath_var='LD_RUN_PATH'
15366 hardcode_shlibpath_var_F77=no
15370 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15371 hardcode_shlibpath_var_F77=no
15372 export_dynamic_flag_spec_F77='-Bexport'
15376 if test -d /usr/nec; then
15377 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15378 hardcode_shlibpath_var_F77=no
15379 runpath_var=LD_RUN_PATH
15380 hardcode_runpath_var=yes
15385 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15386 no_undefined_flag_F77='${wl}-z,text'
15387 archive_cmds_need_lc_F77=no
15388 hardcode_shlibpath_var_F77=no
15389 runpath_var='LD_RUN_PATH'
15391 if test "$GCC" = yes; then
15392 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15393 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15395 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15396 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15400 sysv5* | sco3.2v5* | sco5v6*)
15401 # Note: We can NOT use -z defs as we might desire, because we do not
15402 # link with -lc, and that would cause any symbols used from libc to
15403 # always be unresolved, which means just about no library would
15404 # ever link correctly. If we're not using GNU ld we use -z text
15405 # though, which does catch some bad symbols but isn't as heavy-handed
15407 no_undefined_flag_F77='${wl}-z,text'
15408 allow_undefined_flag_F77='${wl}-z,nodefs'
15409 archive_cmds_need_lc_F77=no
15410 hardcode_shlibpath_var_F77=no
15411 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15412 hardcode_libdir_separator_F77=':'
15413 link_all_deplibs_F77=yes
15414 export_dynamic_flag_spec_F77='${wl}-Bexport'
15415 runpath_var='LD_RUN_PATH'
15417 if test "$GCC" = yes; then
15418 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15419 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15421 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15422 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15427 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15428 hardcode_libdir_flag_spec_F77='-L$libdir'
15429 hardcode_shlibpath_var_F77=no
15438 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15439 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15440 test "$ld_shlibs_F77" = no && can_build_shared=no
15443 # Do we need to explicitly link libc?
15445 case "x$archive_cmds_need_lc_F77" in
15447 # Assume -lc should be added
15448 archive_cmds_need_lc_F77=yes
15450 if test "$enable_shared" = yes && test "$GCC" = yes; then
15451 case $archive_cmds_F77 in
15453 # FIXME: we may have to deal with multi-command sequences.
15456 # Test whether the compiler implicitly links with -lc since on some
15457 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15458 # to ld, don't add -lc before -lgcc.
15459 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15460 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15462 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15465 (eval $ac_compile) 2>&5
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); } 2>conftest.err; then
15471 libobjs=conftest.$ac_objext
15473 wl=$lt_prog_compiler_wl_F77
15474 pic_flag=$lt_prog_compiler_pic_F77
15480 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15481 allow_undefined_flag_F77=
15482 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15483 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); }
15488 archive_cmds_need_lc_F77=no
15490 archive_cmds_need_lc_F77=yes
15492 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15494 cat conftest.err 1>&5
15497 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15498 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15505 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15506 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15507 library_names_spec=
15508 libname_spec='lib$name'
15512 postuninstall_cmds=
15516 shlibpath_overrides_runpath=unknown
15518 dynamic_linker="$host_os ld.so"
15519 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15520 if test "$GCC" = yes; then
15521 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15522 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15523 # if the path contains ";" then we assume it to be the separator
15524 # otherwise default to the standard path separator (i.e. ":") - it is
15525 # assumed that no part of a normal pathname contains ";" but that should
15526 # okay in the real world where ";" in dirpaths is itself problematic.
15527 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15532 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15534 need_lib_prefix=unknown
15535 hardcode_into_libs=no
15537 # when you set need_version to no, make sure it does not cause -set_version
15538 # flags to be left without arguments
15539 need_version=unknown
15544 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15545 shlibpath_var=LIBPATH
15547 # AIX 3 has no versioning support, so we append a major version to the name.
15548 soname_spec='${libname}${release}${shared_ext}$major'
15555 hardcode_into_libs=yes
15556 if test "$host_cpu" = ia64; then
15557 # AIX 5 supports IA64
15558 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15559 shlibpath_var=LD_LIBRARY_PATH
15561 # With GCC up to 2.95.x, collect2 would create an import file
15562 # for dependence libraries. The import file would start with
15563 # the line `#! .'. This would cause the generated library to
15564 # depend on `.', always an invalid library. This was fixed in
15565 # development snapshots of GCC prior to 3.0.
15567 aix4 | aix4.[01] | aix4.[01].*)
15568 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15570 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15573 can_build_shared=no
15577 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15578 # soname into executable. Probably we can add versioning support to
15579 # collect2, so additional links can be useful in future.
15580 if test "$aix_use_runtimelinking" = yes; then
15581 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15582 # instead of lib<name>.a to let people know that these are not
15583 # typical AIX shared libraries.
15584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15586 # We preserve .a as extension for shared libraries through AIX4.2
15587 # and later when we are not doing run time linking.
15588 library_names_spec='${libname}${release}.a $libname.a'
15589 soname_spec='${libname}${release}${shared_ext}$major'
15591 shlibpath_var=LIBPATH
15596 library_names_spec='$libname.ixlibrary $libname.a'
15597 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15598 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'
15602 library_names_spec='${libname}${shared_ext}'
15603 dynamic_linker="$host_os ld.so"
15604 shlibpath_var=LIBRARY_PATH
15610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15611 soname_spec='${libname}${release}${shared_ext}$major'
15612 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15613 shlibpath_var=LD_LIBRARY_PATH
15614 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15615 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15616 # the default ld.so.conf also contains /usr/contrib/lib and
15617 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15618 # libtool to hard-code these into programs
15621 cygwin* | mingw* | pw32*)
15622 version_type=windows
15627 case $GCC,$host_os in
15628 yes,cygwin* | yes,mingw* | yes,pw32*)
15629 library_names_spec='$libname.dll.a'
15630 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15631 postinstall_cmds='base_file=`basename \${file}`~
15632 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15633 dldir=$destdir/`dirname \$dlpath`~
15634 test -d \$dldir || mkdir -p \$dldir~
15635 $install_prog $dir/$dlname \$dldir/$dlname~
15636 chmod a+x \$dldir/$dlname'
15637 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15638 dlpath=$dir/\$dldll~
15640 shlibpath_overrides_runpath=yes
15644 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15645 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15646 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15649 # MinGW DLLs use traditional 'lib' prefix
15650 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15651 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15652 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15653 # It is most probably a Windows format PATH printed by
15654 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15655 # path with ; separators, and with drive letters. We can handle the
15656 # drive letters (cygwin fileutils understands them), so leave them,
15657 # especially as we might pass files found there to a mingw objdump,
15658 # which wouldn't understand a cygwinified path. Ahh.
15659 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15661 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15665 # pw32 DLLs use 'pw' prefix rather than 'lib'
15666 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15672 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15675 dynamic_linker='Win32 ld.exe'
15676 # FIXME: first we should search . and the directory the executable is in
15680 darwin* | rhapsody*)
15681 dynamic_linker="$host_os dyld"
15682 version_type=darwin
15685 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15686 soname_spec='${libname}${release}${major}$shared_ext'
15687 shlibpath_overrides_runpath=yes
15688 shlibpath_var=DYLD_LIBRARY_PATH
15689 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15690 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15691 if test "$GCC" = yes; then
15692 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15694 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15696 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15704 soname_spec='${libname}${release}${shared_ext}$major'
15705 shlibpath_var=LD_LIBRARY_PATH
15716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15717 soname_spec='${libname}${release}${shared_ext}$major'
15718 shlibpath_var=LD_LIBRARY_PATH
15719 shlibpath_overrides_runpath=no
15720 hardcode_into_libs=yes
15721 dynamic_linker='GNU ld.so'
15724 freebsd* | dragonfly*)
15725 # DragonFly does not have aout. When/if they implement a new
15726 # versioning mechanism, adjust this.
15727 if test -x /usr/bin/objformat; then
15728 objformat=`/usr/bin/objformat`
15731 freebsd[123]*) objformat=aout ;;
15732 *) objformat=elf ;;
15735 version_type=freebsd-$objformat
15736 case $version_type in
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15743 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15747 shlibpath_var=LD_LIBRARY_PATH
15750 shlibpath_overrides_runpath=yes
15752 freebsd3.[01]* | freebsdelf3.[01]*)
15753 shlibpath_overrides_runpath=yes
15754 hardcode_into_libs=yes
15756 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15757 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15758 shlibpath_overrides_runpath=no
15759 hardcode_into_libs=yes
15761 freebsd*) # from 4.6 on
15762 shlibpath_overrides_runpath=yes
15763 hardcode_into_libs=yes
15772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15773 soname_spec='${libname}${release}${shared_ext}$major'
15774 shlibpath_var=LD_LIBRARY_PATH
15775 hardcode_into_libs=yes
15778 hpux9* | hpux10* | hpux11*)
15779 # Give a soname corresponding to the major version so that dld.sl refuses to
15780 # link against other versions.
15787 hardcode_into_libs=yes
15788 dynamic_linker="$host_os dld.so"
15789 shlibpath_var=LD_LIBRARY_PATH
15790 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15792 soname_spec='${libname}${release}${shared_ext}$major'
15793 if test "X$HPUX_IA64_MODE" = X32; then
15794 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15796 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15802 hardcode_into_libs=yes
15803 dynamic_linker="$host_os dld.sl"
15804 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15807 soname_spec='${libname}${release}${shared_ext}$major'
15808 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15809 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15813 dynamic_linker="$host_os dld.sl"
15814 shlibpath_var=SHLIB_PATH
15815 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15817 soname_spec='${libname}${release}${shared_ext}$major'
15820 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15821 postinstall_cmds='chmod 555 $lib'
15828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15829 soname_spec='${libname}${release}${shared_ext}$major'
15830 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15831 shlibpath_var=LD_LIBRARY_PATH
15832 shlibpath_overrides_runpath=no
15833 hardcode_into_libs=yes
15836 irix5* | irix6* | nonstopux*)
15838 nonstopux*) version_type=nonstopux ;;
15840 if test "$lt_cv_prog_gnu_ld" = yes; then
15848 soname_spec='${libname}${release}${shared_ext}$major'
15849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15851 irix5* | nonstopux*)
15852 libsuff= shlibsuff=
15855 case $LD in # libtool.m4 will add one of these switches to LD
15856 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15857 libsuff= shlibsuff= libmagic=32-bit;;
15858 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15859 libsuff=32 shlibsuff=N32 libmagic=N32;;
15860 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15861 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15862 *) libsuff= shlibsuff= libmagic=never-match;;
15866 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15867 shlibpath_overrides_runpath=no
15868 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15869 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15870 hardcode_into_libs=yes
15873 # No shared lib support for Linux oldld, aout, or coff.
15874 linux*oldld* | linux*aout* | linux*coff*)
15878 # This must be Linux ELF.
15883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15884 soname_spec='${libname}${release}${shared_ext}$major'
15885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15886 shlibpath_var=LD_LIBRARY_PATH
15887 shlibpath_overrides_runpath=no
15888 # This implies no fast_install, which is unacceptable.
15889 # Some rework will be needed to allow for fast_install
15890 # before this can be enabled.
15891 hardcode_into_libs=yes
15893 # Append ld.so.conf contents to the search path
15894 if test -f /etc/ld.so.conf; then
15895 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15896 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15899 # We used to test for /lib/ld.so.1 and disable shared libraries on
15900 # powerpc, because MkLinux only supported shared libraries with the
15901 # GNU dynamic linker. Since this was broken with cross compilers,
15902 # most powerpc-linux boxes support dynamic linking these days and
15903 # people can always --disable-shared, the test was removed, and we
15904 # assume the GNU/Linux dynamic linker is in use.
15905 dynamic_linker='GNU/Linux ld.so'
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 shlibpath_var=LD_LIBRARY_PATH
15915 shlibpath_overrides_runpath=no
15916 hardcode_into_libs=yes
15917 dynamic_linker='GNU ld.so'
15924 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15927 dynamic_linker='NetBSD (a.out) ld.so'
15929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15930 soname_spec='${libname}${release}${shared_ext}$major'
15931 dynamic_linker='NetBSD ld.elf_so'
15933 shlibpath_var=LD_LIBRARY_PATH
15934 shlibpath_overrides_runpath=yes
15935 hardcode_into_libs=yes
15940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15941 shlibpath_var=LD_LIBRARY_PATH
15942 shlibpath_overrides_runpath=yes
15949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15950 soname_spec='${libname}${release}${shared_ext}$major'
15951 shlibpath_var=LD_LIBRARY_PATH
15952 shlibpath_overrides_runpath=yes
15957 sys_lib_dlsearch_path_spec="/usr/lib"
15959 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15961 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15962 *) need_version=no ;;
15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15966 shlibpath_var=LD_LIBRARY_PATH
15967 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15969 openbsd2.[89] | openbsd2.[89].*)
15970 shlibpath_overrides_runpath=no
15973 shlibpath_overrides_runpath=yes
15977 shlibpath_overrides_runpath=yes
15982 libname_spec='$name'
15985 library_names_spec='$libname${shared_ext} $libname.a'
15986 dynamic_linker='OS/2 ld.exe'
15987 shlibpath_var=LIBPATH
15990 osf3* | osf4* | osf5*)
15994 soname_spec='${libname}${release}${shared_ext}$major'
15995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15996 shlibpath_var=LD_LIBRARY_PATH
15997 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15998 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16006 soname_spec='${libname}${release}${shared_ext}$major'
16007 shlibpath_var=LD_LIBRARY_PATH
16008 shlibpath_overrides_runpath=yes
16009 hardcode_into_libs=yes
16010 # ldd complains unless libraries are executable
16011 postinstall_cmds='chmod +x $lib'
16016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16017 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16018 shlibpath_var=LD_LIBRARY_PATH
16019 shlibpath_overrides_runpath=yes
16020 if test "$with_gnu_ld" = yes; then
16028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16029 soname_spec='${libname}${release}${shared_ext}$major'
16030 shlibpath_var=LD_LIBRARY_PATH
16031 case $host_vendor in
16033 shlibpath_overrides_runpath=no
16035 export_dynamic_flag_spec='${wl}-Blargedynsym'
16036 runpath_var=LD_RUN_PATH
16044 shlibpath_overrides_runpath=no
16045 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16051 if test -d /usr/nec ;then
16053 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16054 soname_spec='$libname${shared_ext}.$major'
16055 shlibpath_var=LD_LIBRARY_PATH
16059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16060 version_type=freebsd-elf
16063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16064 soname_spec='${libname}${release}${shared_ext}$major'
16065 shlibpath_var=LD_LIBRARY_PATH
16066 hardcode_into_libs=yes
16067 if test "$with_gnu_ld" = yes; then
16068 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16069 shlibpath_overrides_runpath=no
16071 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16072 shlibpath_overrides_runpath=yes
16075 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16079 sys_lib_dlsearch_path_spec='/usr/lib'
16084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16085 soname_spec='${libname}${release}${shared_ext}$major'
16086 shlibpath_var=LD_LIBRARY_PATH
16093 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16094 echo "${ECHO_T}$dynamic_linker" >&6; }
16095 test "$dynamic_linker" = no && can_build_shared=no
16097 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16098 if test "$GCC" = yes; then
16099 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16102 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16103 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16104 hardcode_action_F77=
16105 if test -n "$hardcode_libdir_flag_spec_F77" || \
16106 test -n "$runpath_var_F77" || \
16107 test "X$hardcode_automatic_F77" = "Xyes" ; then
16109 # We can hardcode non-existant directories.
16110 if test "$hardcode_direct_F77" != no &&
16111 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16112 # have to relink, otherwise we might link with an installed library
16113 # when we should be linking with a yet-to-be-installed one
16114 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16115 test "$hardcode_minus_L_F77" != no; then
16116 # Linking always hardcodes the temporary library directory.
16117 hardcode_action_F77=relink
16119 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16120 hardcode_action_F77=immediate
16123 # We cannot hardcode anything, or else we can only hardcode existing
16125 hardcode_action_F77=unsupported
16127 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16128 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16130 if test "$hardcode_action_F77" = relink; then
16131 # Fast installation is not supported
16132 enable_fast_install=no
16133 elif test "$shlibpath_overrides_runpath" = yes ||
16134 test "$enable_shared" = no; then
16135 # Fast installation is not necessary
16136 enable_fast_install=needless
16140 # The else clause should only fire when bootstrapping the
16141 # libtool distribution, otherwise you forgot to ship ltmain.sh
16142 # with your package, and you will get complaints that there are
16143 # no rules to generate ltmain.sh.
16144 if test -f "$ltmain"; then
16145 # See if we are running on zsh, and set the options which allow our commands through
16146 # without removal of \ escapes.
16147 if test -n "${ZSH_VERSION+set}" ; then
16148 setopt NO_GLOB_SUBST
16150 # Now quote all the things that may contain metacharacters while being
16151 # careful not to overquote the AC_SUBSTed values. We take copies of the
16152 # variables and quote the copies for generation of the libtool script.
16153 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16155 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16156 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16157 deplibs_check_method reload_flag reload_cmds need_locks \
16158 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16159 lt_cv_sys_global_symbol_to_c_name_address \
16160 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16161 old_postinstall_cmds old_postuninstall_cmds \
16165 lt_prog_compiler_wl_F77 \
16166 lt_prog_compiler_pic_F77 \
16167 lt_prog_compiler_static_F77 \
16168 lt_prog_compiler_no_builtin_flag_F77 \
16169 export_dynamic_flag_spec_F77 \
16170 thread_safe_flag_spec_F77 \
16171 whole_archive_flag_spec_F77 \
16172 enable_shared_with_static_runtimes_F77 \
16173 old_archive_cmds_F77 \
16174 old_archive_from_new_cmds_F77 \
16175 predep_objects_F77 \
16176 postdep_objects_F77 \
16179 compiler_lib_search_path_F77 \
16181 archive_expsym_cmds_F77 \
16182 postinstall_cmds_F77 \
16183 postuninstall_cmds_F77 \
16184 old_archive_from_expsyms_cmds_F77 \
16185 allow_undefined_flag_F77 \
16186 no_undefined_flag_F77 \
16187 export_symbols_cmds_F77 \
16188 hardcode_libdir_flag_spec_F77 \
16189 hardcode_libdir_flag_spec_ld_F77 \
16190 hardcode_libdir_separator_F77 \
16191 hardcode_automatic_F77 \
16193 module_expsym_cmds_F77 \
16194 lt_cv_prog_compiler_c_o_F77 \
16195 exclude_expsyms_F77 \
16196 include_expsyms_F77; do
16199 old_archive_cmds_F77 | \
16200 old_archive_from_new_cmds_F77 | \
16201 archive_cmds_F77 | \
16202 archive_expsym_cmds_F77 | \
16203 module_cmds_F77 | \
16204 module_expsym_cmds_F77 | \
16205 old_archive_from_expsyms_cmds_F77 | \
16206 export_symbols_cmds_F77 | \
16207 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16208 postinstall_cmds | postuninstall_cmds | \
16209 old_postinstall_cmds | old_postuninstall_cmds | \
16210 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16211 # Double-quote double-evaled strings.
16212 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16215 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16221 *'\$0 --fallback-echo"')
16222 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16228 cat <<__EOF__ >> "$cfgfile"
16229 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16231 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16233 # Shell to use when invoking shell scripts.
16236 # Whether or not to build shared libraries.
16237 build_libtool_libs=$enable_shared
16239 # Whether or not to build static libraries.
16240 build_old_libs=$enable_static
16242 # Whether or not to add -lc for building shared libraries.
16243 build_libtool_need_lc=$archive_cmds_need_lc_F77
16245 # Whether or not to disallow shared libs when runtime libs are static
16246 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16248 # Whether or not to optimize for fast installation.
16249 fast_install=$enable_fast_install
16252 host_alias=$host_alias
16256 # The build system.
16257 build_alias=$build_alias
16261 # An echo program that does not interpret backslashes.
16266 AR_FLAGS=$lt_AR_FLAGS
16271 # LTCC compiler flags.
16272 LTCFLAGS=$lt_LTCFLAGS
16274 # A language-specific compiler.
16275 CC=$lt_compiler_F77
16277 # Is the compiler the GNU C compiler?
16283 # The linker used to build libraries.
16286 # Whether we need hard or soft links.
16289 # A BSD-compatible nm program.
16292 # A symbol stripping program
16295 # Used to examine libraries when file_magic_cmd begins "file"
16296 MAGIC_CMD=$MAGIC_CMD
16298 # Used on cygwin: DLL creation program.
16301 # Used on cygwin: object dumper.
16304 # Used on cygwin: assembler.
16307 # The name of the directory that contains temporary libtool files.
16310 # How to create reloadable object files.
16311 reload_flag=$lt_reload_flag
16312 reload_cmds=$lt_reload_cmds
16314 # How to pass a linker flag through the compiler.
16315 wl=$lt_lt_prog_compiler_wl_F77
16317 # Object file suffix (normally "o").
16318 objext="$ac_objext"
16320 # Old archive suffix (normally "a").
16323 # Shared library suffix (normally ".so").
16324 shrext_cmds='$shrext_cmds'
16326 # Executable file suffix (normally "").
16329 # Additional compiler flags for building library objects.
16330 pic_flag=$lt_lt_prog_compiler_pic_F77
16333 # What is the maximum length of a command?
16334 max_cmd_len=$lt_cv_sys_max_cmd_len
16336 # Does compiler simultaneously support -c and -o options?
16337 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16339 # Must we lock files when doing compilation?
16340 need_locks=$lt_need_locks
16342 # Do we need the lib prefix for modules?
16343 need_lib_prefix=$need_lib_prefix
16345 # Do we need a version for libraries?
16346 need_version=$need_version
16348 # Whether dlopen is supported.
16349 dlopen_support=$enable_dlopen
16351 # Whether dlopen of programs is supported.
16352 dlopen_self=$enable_dlopen_self
16354 # Whether dlopen of statically linked programs is supported.
16355 dlopen_self_static=$enable_dlopen_self_static
16357 # Compiler flag to prevent dynamic linking.
16358 link_static_flag=$lt_lt_prog_compiler_static_F77
16360 # Compiler flag to turn off builtin functions.
16361 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16363 # Compiler flag to allow reflexive dlopens.
16364 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16366 # Compiler flag to generate shared objects directly from archives.
16367 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16369 # Compiler flag to generate thread-safe objects.
16370 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16372 # Library versioning type.
16373 version_type=$version_type
16375 # Format of library name prefix.
16376 libname_spec=$lt_libname_spec
16378 # List of archive names. First name is the real one, the rest are links.
16379 # The last name is the one that the linker finds with -lNAME.
16380 library_names_spec=$lt_library_names_spec
16382 # The coded name of the library, if different from the real name.
16383 soname_spec=$lt_soname_spec
16385 # Commands used to build and install an old-style archive.
16387 old_archive_cmds=$lt_old_archive_cmds_F77
16388 old_postinstall_cmds=$lt_old_postinstall_cmds
16389 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16391 # Create an old-style archive from a shared archive.
16392 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16394 # Create a temporary old-style archive to link instead of a shared archive.
16395 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16397 # Commands used to build and install a shared archive.
16398 archive_cmds=$lt_archive_cmds_F77
16399 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16400 postinstall_cmds=$lt_postinstall_cmds
16401 postuninstall_cmds=$lt_postuninstall_cmds
16403 # Commands used to build a loadable module (assumed same as above if empty)
16404 module_cmds=$lt_module_cmds_F77
16405 module_expsym_cmds=$lt_module_expsym_cmds_F77
16407 # Commands to strip libraries.
16408 old_striplib=$lt_old_striplib
16409 striplib=$lt_striplib
16411 # Dependencies to place before the objects being linked to create a
16413 predep_objects=$lt_predep_objects_F77
16415 # Dependencies to place after the objects being linked to create a
16417 postdep_objects=$lt_postdep_objects_F77
16419 # Dependencies to place before the objects being linked to create a
16421 predeps=$lt_predeps_F77
16423 # Dependencies to place after the objects being linked to create a
16425 postdeps=$lt_postdeps_F77
16427 # The library search path used internally by the compiler when linking
16428 # a shared library.
16429 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16431 # Method to check whether dependent libraries are shared objects.
16432 deplibs_check_method=$lt_deplibs_check_method
16434 # Command to use when deplibs_check_method == file_magic.
16435 file_magic_cmd=$lt_file_magic_cmd
16437 # Flag that allows shared libraries with undefined symbols to be built.
16438 allow_undefined_flag=$lt_allow_undefined_flag_F77
16440 # Flag that forces no undefined symbols.
16441 no_undefined_flag=$lt_no_undefined_flag_F77
16443 # Commands used to finish a libtool library installation in a directory.
16444 finish_cmds=$lt_finish_cmds
16446 # Same as above, but a single script fragment to be evaled but not shown.
16447 finish_eval=$lt_finish_eval
16449 # Take the output of nm and produce a listing of raw symbols and C names.
16450 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16452 # Transform the output of nm in a proper C declaration
16453 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16455 # Transform the output of nm in a C name address pair
16456 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16458 # This is the shared library runtime path variable.
16459 runpath_var=$runpath_var
16461 # This is the shared library path variable.
16462 shlibpath_var=$shlibpath_var
16464 # Is shlibpath searched before the hard-coded library search path?
16465 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16467 # How to hardcode a shared library path into an executable.
16468 hardcode_action=$hardcode_action_F77
16470 # Whether we should hardcode library paths into libraries.
16471 hardcode_into_libs=$hardcode_into_libs
16473 # Flag to hardcode \$libdir into a binary during linking.
16474 # This must work even if \$libdir does not exist.
16475 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16477 # If ld is used when linking, flag to hardcode \$libdir into
16478 # a binary during linking. This must work even if \$libdir does
16480 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16482 # Whether we need a single -rpath flag with a separated argument.
16483 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16485 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16486 # resulting binary.
16487 hardcode_direct=$hardcode_direct_F77
16489 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16490 # resulting binary.
16491 hardcode_minus_L=$hardcode_minus_L_F77
16493 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16494 # the resulting binary.
16495 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16497 # Set to yes if building a shared library automatically hardcodes DIR into the library
16498 # and all subsequent libraries and executables linked against it.
16499 hardcode_automatic=$hardcode_automatic_F77
16501 # Variables whose values should be saved in libtool wrapper scripts and
16502 # restored at relink time.
16503 variables_saved_for_relink="$variables_saved_for_relink"
16505 # Whether libtool must link a program against all its dependency libraries.
16506 link_all_deplibs=$link_all_deplibs_F77
16508 # Compile-time system search path for libraries
16509 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16511 # Run-time system search path for libraries
16512 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16514 # Fix the shell variable \$srcfile for the compiler.
16515 fix_srcfile_path="$fix_srcfile_path_F77"
16517 # Set to yes if exported symbols are required.
16518 always_export_symbols=$always_export_symbols_F77
16520 # The commands to list exported symbols.
16521 export_symbols_cmds=$lt_export_symbols_cmds_F77
16523 # The commands to extract the exported symbol list from a shared archive.
16524 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16526 # Symbols that should not be listed in the preloaded symbols.
16527 exclude_expsyms=$lt_exclude_expsyms_F77
16529 # Symbols that must always be exported.
16530 include_expsyms=$lt_include_expsyms_F77
16532 # ### END LIBTOOL TAG CONFIG: $tagname
16538 # If there is no Makefile yet, we rely on a make rule to execute
16539 # `config.status --recheck' to rerun these tests and create the
16540 # libtool script then.
16541 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16542 if test -f "$ltmain_in"; then
16543 test -f Makefile && make "$ltmain"
16549 ac_cpp='$CPP $CPPFLAGS'
16550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16562 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16565 # Source file extension for Java test sources.
16568 # Object file extension for compiled Java test sources.
16572 # Code to be used in simple compile tests
16573 lt_simple_compile_test_code="class foo {}\n"
16575 # Code to be used in simple link tests
16576 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16578 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16580 # If no C compiler was specified, use CC.
16583 # If no C compiler flags were specified, use CFLAGS.
16584 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16586 # Allow CC to be a program name with arguments.
16590 # save warnings/boilerplate of simple test code
16591 ac_outfile=conftest.$ac_objext
16592 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16593 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16594 _lt_compiler_boilerplate=`cat conftest.err`
16597 ac_outfile=conftest.$ac_objext
16598 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16599 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16600 _lt_linker_boilerplate=`cat conftest.err`
16604 # Allow CC to be a program name with arguments.
16609 for cc_temp in $compiler""; do
16611 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16612 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16617 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16620 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16621 archive_cmds_need_lc_GCJ=no
16623 old_archive_cmds_GCJ=$old_archive_cmds
16626 ## There is no encapsulation within the following macros, do not change
16627 ## the running order or otherwise move them around unless you know exactly
16628 ## what you are doing...
16630 lt_prog_compiler_no_builtin_flag_GCJ=
16632 if test "$GCC" = yes; then
16633 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16636 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16637 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16638 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16641 lt_cv_prog_compiler_rtti_exceptions=no
16642 ac_outfile=conftest.$ac_objext
16643 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16644 lt_compiler_flag="-fno-rtti -fno-exceptions"
16645 # Insert the option either (1) after the last *FLAGS variable, or
16646 # (2) before a word containing "conftest.", or (3) at the end.
16647 # Note that $ac_compile itself does not contain backslashes and begins
16648 # with a dollar sign (not a hyphen), so the echo should work correctly.
16649 # The option is referenced via a variable to avoid confusing sed.
16650 lt_compile=`echo "$ac_compile" | $SED \
16651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16653 -e 's:$: $lt_compiler_flag:'`
16654 (eval echo "\"\$as_me:16654: $lt_compile\"" >&5)
16655 (eval "$lt_compile" 2>conftest.err)
16657 cat conftest.err >&5
16658 echo "$as_me:16658: \$? = $ac_status" >&5
16659 if (exit $ac_status) && test -s "$ac_outfile"; then
16660 # The compiler can only warn and ignore the option if not recognized
16661 # So say no if there are warnings other than the usual output.
16662 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16663 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16664 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16665 lt_cv_prog_compiler_rtti_exceptions=yes
16671 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16672 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16674 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16675 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16682 lt_prog_compiler_wl_GCJ=
16683 lt_prog_compiler_pic_GCJ=
16684 lt_prog_compiler_static_GCJ=
16686 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16687 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16689 if test "$GCC" = yes; then
16690 lt_prog_compiler_wl_GCJ='-Wl,'
16691 lt_prog_compiler_static_GCJ='-static'
16695 # All AIX code is PIC.
16696 if test "$host_cpu" = ia64; then
16697 # AIX 5 now supports IA64 processor
16698 lt_prog_compiler_static_GCJ='-Bstatic'
16703 # FIXME: we need at least 68020 code to build shared libraries, but
16704 # adding the `-m68020' flag to GCC prevents building anything better,
16706 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16709 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16710 # PIC is the default for these OSes.
16713 mingw* | pw32* | os2*)
16714 # This hack is so that the source file can tell whether it is being
16715 # built for inclusion in a dll (and should export symbols for example).
16716 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16719 darwin* | rhapsody*)
16720 # PIC is the default on this platform
16721 # Common symbols not allowed in MH_DYLIB files
16722 lt_prog_compiler_pic_GCJ='-fno-common'
16726 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16727 # Instead, we relocate shared libraries at runtime.
16731 # Just because we use GCC doesn't mean we suddenly get shared libraries
16732 # on systems that don't support them.
16733 lt_prog_compiler_can_build_shared_GCJ=no
16738 if test -d /usr/nec; then
16739 lt_prog_compiler_pic_GCJ=-Kconform_pic
16744 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16745 # not for PA HP-UX.
16751 lt_prog_compiler_pic_GCJ='-fPIC'
16757 lt_prog_compiler_pic_GCJ='-fPIC'
16761 # PORTME Check for flag to pass linker flags through the system compiler.
16764 lt_prog_compiler_wl_GCJ='-Wl,'
16765 if test "$host_cpu" = ia64; then
16766 # AIX 5 now supports IA64 processor
16767 lt_prog_compiler_static_GCJ='-Bstatic'
16769 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16773 # PIC is the default on this platform
16774 # Common symbols not allowed in MH_DYLIB files
16775 case $cc_basename in
16777 lt_prog_compiler_pic_GCJ='-qnocommon'
16778 lt_prog_compiler_wl_GCJ='-Wl,'
16783 mingw* | pw32* | os2*)
16784 # This hack is so that the source file can tell whether it is being
16785 # built for inclusion in a dll (and should export symbols for example).
16786 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16789 hpux9* | hpux10* | hpux11*)
16790 lt_prog_compiler_wl_GCJ='-Wl,'
16791 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16792 # not for PA HP-UX.
16798 lt_prog_compiler_pic_GCJ='+Z'
16801 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16802 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16805 irix5* | irix6* | nonstopux*)
16806 lt_prog_compiler_wl_GCJ='-Wl,'
16807 # PIC (with -KPIC) is the default.
16808 lt_prog_compiler_static_GCJ='-non_shared'
16812 lt_prog_compiler_pic_GCJ='-KPIC'
16813 lt_prog_compiler_static_GCJ='-Bstatic'
16817 case $cc_basename in
16819 lt_prog_compiler_wl_GCJ='-Wl,'
16820 lt_prog_compiler_pic_GCJ='-KPIC'
16821 lt_prog_compiler_static_GCJ='-static'
16823 pgcc* | pgf77* | pgf90* | pgf95*)
16824 # Portland Group compilers (*not* the Pentium gcc compiler,
16825 # which looks to be a dead project)
16826 lt_prog_compiler_wl_GCJ='-Wl,'
16827 lt_prog_compiler_pic_GCJ='-fpic'
16828 lt_prog_compiler_static_GCJ='-Bstatic'
16831 lt_prog_compiler_wl_GCJ='-Wl,'
16832 # All Alpha code is PIC.
16833 lt_prog_compiler_static_GCJ='-non_shared'
16838 osf3* | osf4* | osf5*)
16839 lt_prog_compiler_wl_GCJ='-Wl,'
16840 # All OSF/1 code is PIC.
16841 lt_prog_compiler_static_GCJ='-non_shared'
16845 lt_prog_compiler_pic_GCJ='-KPIC'
16846 lt_prog_compiler_static_GCJ='-Bstatic'
16847 case $cc_basename in
16848 f77* | f90* | f95*)
16849 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16851 lt_prog_compiler_wl_GCJ='-Wl,';;
16856 lt_prog_compiler_wl_GCJ='-Qoption ld '
16857 lt_prog_compiler_pic_GCJ='-PIC'
16858 lt_prog_compiler_static_GCJ='-Bstatic'
16861 sysv4 | sysv4.2uw2* | sysv4.3*)
16862 lt_prog_compiler_wl_GCJ='-Wl,'
16863 lt_prog_compiler_pic_GCJ='-KPIC'
16864 lt_prog_compiler_static_GCJ='-Bstatic'
16868 if test -d /usr/nec ;then
16869 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16870 lt_prog_compiler_static_GCJ='-Bstatic'
16874 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16875 lt_prog_compiler_wl_GCJ='-Wl,'
16876 lt_prog_compiler_pic_GCJ='-KPIC'
16877 lt_prog_compiler_static_GCJ='-Bstatic'
16881 lt_prog_compiler_wl_GCJ='-Wl,'
16882 lt_prog_compiler_can_build_shared_GCJ=no
16886 lt_prog_compiler_pic_GCJ='-pic'
16887 lt_prog_compiler_static_GCJ='-Bstatic'
16891 lt_prog_compiler_can_build_shared_GCJ=no
16896 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16897 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16900 # Check to make sure the PIC flag actually works.
16902 if test -n "$lt_prog_compiler_pic_GCJ"; then
16904 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16905 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16906 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16907 echo $ECHO_N "(cached) $ECHO_C" >&6
16909 lt_prog_compiler_pic_works_GCJ=no
16910 ac_outfile=conftest.$ac_objext
16911 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16912 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16913 # Insert the option either (1) after the last *FLAGS variable, or
16914 # (2) before a word containing "conftest.", or (3) at the end.
16915 # Note that $ac_compile itself does not contain backslashes and begins
16916 # with a dollar sign (not a hyphen), so the echo should work correctly.
16917 # The option is referenced via a variable to avoid confusing sed.
16918 lt_compile=`echo "$ac_compile" | $SED \
16919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16921 -e 's:$: $lt_compiler_flag:'`
16922 (eval echo "\"\$as_me:16922: $lt_compile\"" >&5)
16923 (eval "$lt_compile" 2>conftest.err)
16925 cat conftest.err >&5
16926 echo "$as_me:16926: \$? = $ac_status" >&5
16927 if (exit $ac_status) && test -s "$ac_outfile"; then
16928 # The compiler can only warn and ignore the option if not recognized
16929 # So say no if there are warnings other than the usual output.
16930 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16932 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16933 lt_prog_compiler_pic_works_GCJ=yes
16939 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16940 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16942 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16943 case $lt_prog_compiler_pic_GCJ in
16945 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16948 lt_prog_compiler_pic_GCJ=
16949 lt_prog_compiler_can_build_shared_GCJ=no
16954 # For platforms which do not support PIC, -DPIC is meaningless:
16956 lt_prog_compiler_pic_GCJ=
16959 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16964 # Check to make sure the static flag actually works.
16966 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16967 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16968 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16969 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16970 echo $ECHO_N "(cached) $ECHO_C" >&6
16972 lt_prog_compiler_static_works_GCJ=no
16973 save_LDFLAGS="$LDFLAGS"
16974 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16975 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16976 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16977 # The linker can only warn and ignore the option if not recognized
16978 # So say no if there are warnings
16979 if test -s conftest.err; then
16980 # Append any errors to the config.log.
16981 cat conftest.err 1>&5
16982 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16984 if diff conftest.exp conftest.er2 >/dev/null; then
16985 lt_prog_compiler_static_works_GCJ=yes
16988 lt_prog_compiler_static_works_GCJ=yes
16992 LDFLAGS="$save_LDFLAGS"
16995 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16996 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16998 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17001 lt_prog_compiler_static_GCJ=
17005 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17006 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17007 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17008 echo $ECHO_N "(cached) $ECHO_C" >&6
17010 lt_cv_prog_compiler_c_o_GCJ=no
17011 $rm -r conftest 2>/dev/null
17015 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17017 lt_compiler_flag="-o out/conftest2.$ac_objext"
17018 # Insert the option either (1) after the last *FLAGS variable, or
17019 # (2) before a word containing "conftest.", or (3) at the end.
17020 # Note that $ac_compile itself does not contain backslashes and begins
17021 # with a dollar sign (not a hyphen), so the echo should work correctly.
17022 lt_compile=`echo "$ac_compile" | $SED \
17023 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17025 -e 's:$: $lt_compiler_flag:'`
17026 (eval echo "\"\$as_me:17026: $lt_compile\"" >&5)
17027 (eval "$lt_compile" 2>out/conftest.err)
17029 cat out/conftest.err >&5
17030 echo "$as_me:17030: \$? = $ac_status" >&5
17031 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17033 # The compiler can only warn and ignore the option if not recognized
17034 # So say no if there are warnings
17035 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17036 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17037 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17038 lt_cv_prog_compiler_c_o_GCJ=yes
17043 # SGI C++ compiler will create directory out/ii_files/ for
17044 # template instantiation
17045 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17046 $rm out/* && rmdir out
17052 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17053 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17056 hard_links="nottested"
17057 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17058 # do not overwrite the value of need_locks provided by the user
17059 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17060 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17063 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17065 ln conftest.a conftest.b 2>&5 || hard_links=no
17066 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17067 { echo "$as_me:$LINENO: result: $hard_links" >&5
17068 echo "${ECHO_T}$hard_links" >&6; }
17069 if test "$hard_links" = no; then
17070 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17071 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17078 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17079 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17082 allow_undefined_flag_GCJ=
17083 enable_shared_with_static_runtimes_GCJ=no
17085 archive_expsym_cmds_GCJ=
17086 old_archive_From_new_cmds_GCJ=
17087 old_archive_from_expsyms_cmds_GCJ=
17088 export_dynamic_flag_spec_GCJ=
17089 whole_archive_flag_spec_GCJ=
17090 thread_safe_flag_spec_GCJ=
17091 hardcode_libdir_flag_spec_GCJ=
17092 hardcode_libdir_flag_spec_ld_GCJ=
17093 hardcode_libdir_separator_GCJ=
17094 hardcode_direct_GCJ=no
17095 hardcode_minus_L_GCJ=no
17096 hardcode_shlibpath_var_GCJ=unsupported
17097 link_all_deplibs_GCJ=unknown
17098 hardcode_automatic_GCJ=no
17100 module_expsym_cmds_GCJ=
17101 always_export_symbols_GCJ=no
17102 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17103 # include_expsyms should be a list of space-separated symbols to be *always*
17104 # included in the symbol list
17105 include_expsyms_GCJ=
17106 # exclude_expsyms can be an extended regexp of symbols to exclude
17107 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17108 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17109 # as well as any symbol that contains `d'.
17110 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17111 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17112 # platforms (ab)use it in PIC code, but their linkers get confused if
17113 # the symbol is explicitly referenced. Since portable code cannot
17114 # rely on this symbol name, it's probably fine to never include it in
17115 # preloaded symbol tables.
17116 extract_expsyms_cmds=
17117 # Just being paranoid about ensuring that cc_basename is set.
17118 for cc_temp in $compiler""; do
17120 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17121 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17126 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17129 cygwin* | mingw* | pw32*)
17130 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17131 # When not using gcc, we currently assume that we are using
17132 # Microsoft Visual C++.
17133 if test "$GCC" != yes; then
17138 # we just hope/assume this is gcc and not c89 (= MSVC++)
17147 if test "$with_gnu_ld" = yes; then
17148 # If archive_cmds runs LD, not CC, wlarc should be empty
17151 # Set some defaults for GNU ld with shared library support. These
17152 # are reset later if shared libraries are not supported. Putting them
17153 # here allows them to be overridden if necessary.
17154 runpath_var=LD_RUN_PATH
17155 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17156 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17157 # ancient GNU ld didn't support --whole-archive et. al.
17158 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17159 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17161 whole_archive_flag_spec_GCJ=
17163 supports_anon_versioning=no
17164 case `$LD -v 2>/dev/null` in
17165 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17166 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17167 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17168 *\ 2.11.*) ;; # other 2.11 versions
17169 *) supports_anon_versioning=yes ;;
17172 # See if GNU ld supports shared libraries.
17174 aix3* | aix4* | aix5*)
17175 # On AIX/PPC, the GNU linker is very broken
17176 if test "$host_cpu" != ia64; then
17180 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17181 *** to be unable to reliably create shared libraries on AIX.
17182 *** Therefore, libtool is disabling shared libraries support. If you
17183 *** really care for shared libraries, you may want to modify your PATH
17184 *** so that a non-GNU linker is found, and then restart.
17191 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)'
17192 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17193 hardcode_minus_L_GCJ=yes
17195 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17196 # that the semantics of dynamic libraries on AmigaOS, at least up
17197 # to version 4, is to share data among multiple programs linked
17198 # with the same dynamic library. Since this doesn't match the
17199 # behavior of shared libraries on other platforms, we can't use
17205 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17206 allow_undefined_flag_GCJ=unsupported
17207 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17208 # support --undefined. This deserves some investigation. FIXME
17209 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17215 cygwin* | mingw* | pw32*)
17216 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17217 # as there is no search path for DLLs.
17218 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17219 allow_undefined_flag_GCJ=unsupported
17220 always_export_symbols_GCJ=no
17221 enable_shared_with_static_runtimes_GCJ=yes
17222 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17224 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17225 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17226 # If the export-symbols file already is a .def file (1st line
17227 # is EXPORTS), use it as is; otherwise, prepend...
17228 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17229 cp $export_symbols $output_objdir/$soname.def;
17231 echo EXPORTS > $output_objdir/$soname.def;
17232 cat $export_symbols >> $output_objdir/$soname.def;
17234 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17241 hardcode_direct_GCJ=no
17242 hardcode_shlibpath_var_GCJ=no
17243 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17244 export_dynamic_flag_spec_GCJ='${wl}-E'
17245 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17246 # Instead, shared libraries are loaded at an image base (0x10000000 by
17247 # default) and relocated if they conflict, which is a slow very memory
17248 # consuming and fragmenting process. To avoid this, we pick a random,
17249 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17250 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17251 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'
17252 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'
17256 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17258 case $cc_basename,$host_cpu in
17259 pgcc*) # Portland Group C compiler
17260 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'
17261 tmp_addflag=' $pic_flag'
17263 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17264 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'
17265 tmp_addflag=' $pic_flag -Mnomain' ;;
17266 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17267 tmp_addflag=' -i_dynamic' ;;
17268 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17269 tmp_addflag=' -i_dynamic -nofor_main' ;;
17270 ifc* | ifort*) # Intel Fortran compiler
17271 tmp_addflag=' -nofor_main' ;;
17273 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17275 if test $supports_anon_versioning = yes; then
17276 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17277 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17278 $echo "local: *; };" >> $output_objdir/$libname.ver~
17279 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17287 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17288 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17291 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17292 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17297 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17301 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17302 *** create shared libraries on Solaris systems. Therefore, libtool
17303 *** is disabling shared libraries support. We urge you to upgrade GNU
17304 *** binutils to release 2.9.1 or newer. Another option is to modify
17305 *** your PATH or compiler configuration so that the native linker is
17306 *** used, and then restart.
17309 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17310 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17311 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17317 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17318 case `$LD -v 2>&1` in
17319 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17323 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17324 *** reliably create shared libraries on SCO systems. Therefore, libtool
17325 *** is disabling shared libraries support. We urge you to upgrade GNU
17326 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17327 *** your PATH or compiler configuration so that the native linker is
17328 *** used, and then restart.
17333 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17334 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17335 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17336 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17345 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17347 hardcode_direct_GCJ=yes
17348 hardcode_shlibpath_var_GCJ=no
17352 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17353 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17354 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17361 if test "$ld_shlibs_GCJ" = no; then
17363 hardcode_libdir_flag_spec_GCJ=
17364 export_dynamic_flag_spec_GCJ=
17365 whole_archive_flag_spec_GCJ=
17368 # PORTME fill in a description of your system's linker (not GNU ld)
17371 allow_undefined_flag_GCJ=unsupported
17372 always_export_symbols_GCJ=yes
17373 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'
17374 # Note: this linker hardcodes the directories in LIBPATH if there
17375 # are no directories specified by -L.
17376 hardcode_minus_L_GCJ=yes
17377 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17378 # Neither direct hardcoding nor static linking is supported with a
17380 hardcode_direct_GCJ=unsupported
17385 if test "$host_cpu" = ia64; then
17386 # On IA64, the linker does run time linking by default, so we don't
17387 # have to do anything special.
17388 aix_use_runtimelinking=no
17389 exp_sym_flag='-Bexport'
17392 # If we're using GNU nm, then we don't want the "-C" option.
17393 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17394 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17395 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'
17397 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'
17399 aix_use_runtimelinking=no
17401 # Test if we are trying to use run time linking or normal
17402 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17403 # need to do runtime linking.
17404 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17405 for ld_flag in $LDFLAGS; do
17406 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17407 aix_use_runtimelinking=yes
17414 exp_sym_flag='-bexport'
17415 no_entry_flag='-bnoentry'
17418 # When large executables or shared objects are built, AIX ld can
17419 # have problems creating the table of contents. If linking a library
17420 # or program results in "error TOC overflow" add -mminimal-toc to
17421 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17422 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17424 archive_cmds_GCJ=''
17425 hardcode_direct_GCJ=yes
17426 hardcode_libdir_separator_GCJ=':'
17427 link_all_deplibs_GCJ=yes
17429 if test "$GCC" = yes; then
17430 case $host_os in aix4.[012]|aix4.[012].*)
17431 # We only want to do this on AIX 4.2 and lower, the check
17432 # below for broken collect2 doesn't work under 4.3+
17433 collect2name=`${CC} -print-prog-name=collect2`
17434 if test -f "$collect2name" && \
17435 strings "$collect2name" | grep resolve_lib_name >/dev/null
17437 # We have reworked collect2
17438 hardcode_direct_GCJ=yes
17440 # We have old collect2
17441 hardcode_direct_GCJ=unsupported
17442 # It fails to find uninstalled libraries when the uninstalled
17443 # path is not listed in the libpath. Setting hardcode_minus_L
17444 # to unsupported forces relinking
17445 hardcode_minus_L_GCJ=yes
17446 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17447 hardcode_libdir_separator_GCJ=
17451 shared_flag='-shared'
17452 if test "$aix_use_runtimelinking" = yes; then
17453 shared_flag="$shared_flag "'${wl}-G'
17457 if test "$host_cpu" = ia64; then
17458 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17459 # chokes on -Wl,-G. The following line is correct:
17462 if test "$aix_use_runtimelinking" = yes; then
17463 shared_flag='${wl}-G'
17465 shared_flag='${wl}-bM:SRE'
17470 # It seems that -bexpall does not export symbols beginning with
17471 # underscore (_), so it is better to generate a list of symbols to export.
17472 always_export_symbols_GCJ=yes
17473 if test "$aix_use_runtimelinking" = yes; then
17474 # Warning - without using the other runtime loading flags (-brtl),
17475 # -berok will link without error, but may produce a broken library.
17476 allow_undefined_flag_GCJ='-berok'
17477 # Determine the default libpath from the value encoded in an empty executable.
17478 cat >conftest.$ac_ext <<_ACEOF
17481 cat confdefs.h >>conftest.$ac_ext
17482 cat >>conftest.$ac_ext <<_ACEOF
17483 /* end confdefs.h. */
17493 rm -f conftest.$ac_objext conftest$ac_exeext
17494 if { (ac_try="$ac_link"
17495 case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_link") 2>conftest.er1
17502 grep -v '^ *+' conftest.er1 >conftest.err
17504 cat conftest.err >&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } &&
17507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17508 { (case "(($ac_try" in
17509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510 *) ac_try_echo=$ac_try;;
17512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513 (eval "$ac_try") 2>&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; } &&
17517 { ac_try='test -s conftest$ac_exeext'
17518 { (case "(($ac_try" in
17519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523 (eval "$ac_try") 2>&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); }; }; then
17528 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17530 # Check for a 64-bit object if we didn't find anything.
17531 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17534 echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17540 rm -f core conftest.err conftest.$ac_objext \
17541 conftest$ac_exeext conftest.$ac_ext
17542 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17544 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17545 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"
17547 if test "$host_cpu" = ia64; then
17548 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17549 allow_undefined_flag_GCJ="-z nodefs"
17550 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"
17552 # Determine the default libpath from the value encoded in an empty executable.
17553 cat >conftest.$ac_ext <<_ACEOF
17556 cat confdefs.h >>conftest.$ac_ext
17557 cat >>conftest.$ac_ext <<_ACEOF
17558 /* end confdefs.h. */
17568 rm -f conftest.$ac_objext conftest$ac_exeext
17569 if { (ac_try="$ac_link"
17570 case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_link") 2>conftest.er1
17577 grep -v '^ *+' conftest.er1 >conftest.err
17579 cat conftest.err >&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); } &&
17582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17583 { (case "(($ac_try" in
17584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17585 *) ac_try_echo=$ac_try;;
17587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17588 (eval "$ac_try") 2>&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; } &&
17592 { ac_try='test -s conftest$ac_exeext'
17593 { (case "(($ac_try" in
17594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595 *) ac_try_echo=$ac_try;;
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598 (eval "$ac_try") 2>&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; }; then
17603 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17605 # Check for a 64-bit object if we didn't find anything.
17606 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17609 echo "$as_me: failed program was:" >&5
17610 sed 's/^/| /' conftest.$ac_ext >&5
17615 rm -f core conftest.err conftest.$ac_objext \
17616 conftest$ac_exeext conftest.$ac_ext
17617 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17619 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17620 # Warning - without using the other run time loading flags,
17621 # -berok will link without error, but may produce a broken library.
17622 no_undefined_flag_GCJ=' ${wl}-bernotok'
17623 allow_undefined_flag_GCJ=' ${wl}-berok'
17624 # Exported symbols can be pulled into shared objects from archives
17625 whole_archive_flag_spec_GCJ='$convenience'
17626 archive_cmds_need_lc_GCJ=yes
17627 # This is similar to how AIX traditionally builds its shared libraries.
17628 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'
17634 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)'
17635 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17636 hardcode_minus_L_GCJ=yes
17637 # see comment about different semantics on the GNU ld section
17642 export_dynamic_flag_spec_GCJ=-rdynamic
17645 cygwin* | mingw* | pw32*)
17646 # When not using gcc, we currently assume that we are using
17647 # Microsoft Visual C++.
17648 # hardcode_libdir_flag_spec is actually meaningless, as there is
17649 # no search path for DLLs.
17650 hardcode_libdir_flag_spec_GCJ=' '
17651 allow_undefined_flag_GCJ=unsupported
17652 # Tell ltmain to make .lib files, not .a files.
17654 # Tell ltmain to make .dll files, not .so files.
17656 # FIXME: Setting linknames here is a bad hack.
17657 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17658 # The linker will automatically build a .lib file if we build a DLL.
17659 old_archive_From_new_cmds_GCJ='true'
17660 # FIXME: Should let the user specify the lib program.
17661 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17662 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17663 enable_shared_with_static_runtimes_GCJ=yes
17666 darwin* | rhapsody*)
17668 rhapsody* | darwin1.[012])
17669 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17672 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17673 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17675 case ${MACOSX_DEPLOYMENT_TARGET} in
17677 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17680 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17686 archive_cmds_need_lc_GCJ=no
17687 hardcode_direct_GCJ=no
17688 hardcode_automatic_GCJ=yes
17689 hardcode_shlibpath_var_GCJ=unsupported
17690 whole_archive_flag_spec_GCJ=''
17691 link_all_deplibs_GCJ=yes
17692 if test "$GCC" = yes ; then
17693 output_verbose_link_cmd='echo'
17694 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17695 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17696 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17697 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17698 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}'
17700 case $cc_basename in
17702 output_verbose_link_cmd='echo'
17703 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17704 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17705 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17706 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17707 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}'
17717 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17718 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17719 hardcode_shlibpath_var_GCJ=no
17726 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17727 # support. Future versions do this automatically, but an explicit c++rt0.o
17728 # does not break anything, and helps significantly (at the cost of a little
17731 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17732 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17733 hardcode_direct_GCJ=yes
17734 hardcode_shlibpath_var_GCJ=no
17737 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17739 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17740 hardcode_direct_GCJ=yes
17741 hardcode_minus_L_GCJ=yes
17742 hardcode_shlibpath_var_GCJ=no
17745 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17746 freebsd* | kfreebsd*-gnu | dragonfly*)
17747 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17748 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17749 hardcode_direct_GCJ=yes
17750 hardcode_shlibpath_var_GCJ=no
17754 if test "$GCC" = yes; then
17755 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'
17757 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'
17759 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17760 hardcode_libdir_separator_GCJ=:
17761 hardcode_direct_GCJ=yes
17763 # hardcode_minus_L: Not really in the search PATH,
17764 # but as the default location of the library.
17765 hardcode_minus_L_GCJ=yes
17766 export_dynamic_flag_spec_GCJ='${wl}-E'
17770 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17771 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17773 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17775 if test "$with_gnu_ld" = no; then
17776 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17777 hardcode_libdir_separator_GCJ=:
17779 hardcode_direct_GCJ=yes
17780 export_dynamic_flag_spec_GCJ='${wl}-E'
17782 # hardcode_minus_L: Not really in the search PATH,
17783 # but as the default location of the library.
17784 hardcode_minus_L_GCJ=yes
17789 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17792 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17795 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17798 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17804 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17807 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17810 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17814 if test "$with_gnu_ld" = no; then
17815 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17816 hardcode_libdir_separator_GCJ=:
17820 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17821 hardcode_direct_GCJ=no
17822 hardcode_shlibpath_var_GCJ=no
17825 hardcode_direct_GCJ=yes
17826 export_dynamic_flag_spec_GCJ='${wl}-E'
17828 # hardcode_minus_L: Not really in the search PATH,
17829 # but as the default location of the library.
17830 hardcode_minus_L_GCJ=yes
17836 irix5* | irix6* | nonstopux*)
17837 if test "$GCC" = yes; then
17838 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'
17840 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'
17841 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17843 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17844 hardcode_libdir_separator_GCJ=:
17845 link_all_deplibs_GCJ=yes
17849 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17850 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17852 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17854 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17855 hardcode_direct_GCJ=yes
17856 hardcode_shlibpath_var_GCJ=no
17860 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17861 hardcode_direct_GCJ=yes
17862 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17863 hardcode_libdir_separator_GCJ=:
17864 hardcode_shlibpath_var_GCJ=no
17868 hardcode_direct_GCJ=yes
17869 hardcode_shlibpath_var_GCJ=no
17870 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17871 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17872 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17873 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17874 export_dynamic_flag_spec_GCJ='${wl}-E'
17877 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17878 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17879 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17882 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17883 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17890 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17891 hardcode_minus_L_GCJ=yes
17892 allow_undefined_flag_GCJ=unsupported
17893 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'
17894 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17898 if test "$GCC" = yes; then
17899 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17900 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'
17902 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17903 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'
17905 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17906 hardcode_libdir_separator_GCJ=:
17909 osf4* | osf5*) # as osf3* with the addition of -msym flag
17910 if test "$GCC" = yes; then
17911 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17912 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'
17913 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17915 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17916 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'
17917 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~
17918 $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'
17920 # Both c and cxx compiler support -rpath directly
17921 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17923 hardcode_libdir_separator_GCJ=:
17927 no_undefined_flag_GCJ=' -z text'
17928 if test "$GCC" = yes; then
17930 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17931 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17932 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17935 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17936 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17937 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17939 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17940 hardcode_shlibpath_var_GCJ=no
17942 solaris2.[0-5] | solaris2.[0-5].*) ;;
17944 # The compiler driver will combine linker options so we
17945 # cannot just pass the convience library names through
17946 # without $wl, iff we do not link with $LD.
17947 # Luckily, gcc supports the same syntax we need for Sun Studio.
17948 # Supported since Solaris 2.6 (maybe 2.5.1?)
17951 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17953 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17956 link_all_deplibs_GCJ=yes
17960 if test "x$host_vendor" = xsequent; then
17961 # Use $CC to link under sequent, because it throws in some extra .o
17962 # files that make .init and .fini sections work.
17963 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17965 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17967 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17968 hardcode_direct_GCJ=yes
17969 hardcode_minus_L_GCJ=yes
17970 hardcode_shlibpath_var_GCJ=no
17974 case $host_vendor in
17976 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17977 hardcode_direct_GCJ=yes # is this really true???
17980 ## LD is ld it makes a PLAMLIB
17981 ## CC just makes a GrossModule.
17982 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17983 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17984 hardcode_direct_GCJ=no
17987 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17988 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17991 runpath_var='LD_RUN_PATH'
17992 hardcode_shlibpath_var_GCJ=no
17996 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17997 hardcode_shlibpath_var_GCJ=no
17998 export_dynamic_flag_spec_GCJ='-Bexport'
18002 if test -d /usr/nec; then
18003 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18004 hardcode_shlibpath_var_GCJ=no
18005 runpath_var=LD_RUN_PATH
18006 hardcode_runpath_var=yes
18011 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18012 no_undefined_flag_GCJ='${wl}-z,text'
18013 archive_cmds_need_lc_GCJ=no
18014 hardcode_shlibpath_var_GCJ=no
18015 runpath_var='LD_RUN_PATH'
18017 if test "$GCC" = yes; then
18018 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18019 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18021 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18022 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18026 sysv5* | sco3.2v5* | sco5v6*)
18027 # Note: We can NOT use -z defs as we might desire, because we do not
18028 # link with -lc, and that would cause any symbols used from libc to
18029 # always be unresolved, which means just about no library would
18030 # ever link correctly. If we're not using GNU ld we use -z text
18031 # though, which does catch some bad symbols but isn't as heavy-handed
18033 no_undefined_flag_GCJ='${wl}-z,text'
18034 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18035 archive_cmds_need_lc_GCJ=no
18036 hardcode_shlibpath_var_GCJ=no
18037 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18038 hardcode_libdir_separator_GCJ=':'
18039 link_all_deplibs_GCJ=yes
18040 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18041 runpath_var='LD_RUN_PATH'
18043 if test "$GCC" = yes; then
18044 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18045 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18047 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18048 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18053 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18054 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18055 hardcode_shlibpath_var_GCJ=no
18064 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18065 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18066 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18069 # Do we need to explicitly link libc?
18071 case "x$archive_cmds_need_lc_GCJ" in
18073 # Assume -lc should be added
18074 archive_cmds_need_lc_GCJ=yes
18076 if test "$enable_shared" = yes && test "$GCC" = yes; then
18077 case $archive_cmds_GCJ in
18079 # FIXME: we may have to deal with multi-command sequences.
18082 # Test whether the compiler implicitly links with -lc since on some
18083 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18084 # to ld, don't add -lc before -lgcc.
18085 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18086 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18088 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18091 (eval $ac_compile) 2>&5
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); } 2>conftest.err; then
18097 libobjs=conftest.$ac_objext
18099 wl=$lt_prog_compiler_wl_GCJ
18100 pic_flag=$lt_prog_compiler_pic_GCJ
18106 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18107 allow_undefined_flag_GCJ=
18108 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18109 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }
18114 archive_cmds_need_lc_GCJ=no
18116 archive_cmds_need_lc_GCJ=yes
18118 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18120 cat conftest.err 1>&5
18123 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18124 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18131 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18132 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18133 library_names_spec=
18134 libname_spec='lib$name'
18138 postuninstall_cmds=
18142 shlibpath_overrides_runpath=unknown
18144 dynamic_linker="$host_os ld.so"
18145 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18146 if test "$GCC" = yes; then
18147 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18148 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18149 # if the path contains ";" then we assume it to be the separator
18150 # otherwise default to the standard path separator (i.e. ":") - it is
18151 # assumed that no part of a normal pathname contains ";" but that should
18152 # okay in the real world where ";" in dirpaths is itself problematic.
18153 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18155 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18158 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18160 need_lib_prefix=unknown
18161 hardcode_into_libs=no
18163 # when you set need_version to no, make sure it does not cause -set_version
18164 # flags to be left without arguments
18165 need_version=unknown
18170 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18171 shlibpath_var=LIBPATH
18173 # AIX 3 has no versioning support, so we append a major version to the name.
18174 soname_spec='${libname}${release}${shared_ext}$major'
18181 hardcode_into_libs=yes
18182 if test "$host_cpu" = ia64; then
18183 # AIX 5 supports IA64
18184 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18185 shlibpath_var=LD_LIBRARY_PATH
18187 # With GCC up to 2.95.x, collect2 would create an import file
18188 # for dependence libraries. The import file would start with
18189 # the line `#! .'. This would cause the generated library to
18190 # depend on `.', always an invalid library. This was fixed in
18191 # development snapshots of GCC prior to 3.0.
18193 aix4 | aix4.[01] | aix4.[01].*)
18194 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18196 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18199 can_build_shared=no
18203 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18204 # soname into executable. Probably we can add versioning support to
18205 # collect2, so additional links can be useful in future.
18206 if test "$aix_use_runtimelinking" = yes; then
18207 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18208 # instead of lib<name>.a to let people know that these are not
18209 # typical AIX shared libraries.
18210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18212 # We preserve .a as extension for shared libraries through AIX4.2
18213 # and later when we are not doing run time linking.
18214 library_names_spec='${libname}${release}.a $libname.a'
18215 soname_spec='${libname}${release}${shared_ext}$major'
18217 shlibpath_var=LIBPATH
18222 library_names_spec='$libname.ixlibrary $libname.a'
18223 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18224 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'
18228 library_names_spec='${libname}${shared_ext}'
18229 dynamic_linker="$host_os ld.so"
18230 shlibpath_var=LIBRARY_PATH
18236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18237 soname_spec='${libname}${release}${shared_ext}$major'
18238 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18239 shlibpath_var=LD_LIBRARY_PATH
18240 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18241 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18242 # the default ld.so.conf also contains /usr/contrib/lib and
18243 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18244 # libtool to hard-code these into programs
18247 cygwin* | mingw* | pw32*)
18248 version_type=windows
18253 case $GCC,$host_os in
18254 yes,cygwin* | yes,mingw* | yes,pw32*)
18255 library_names_spec='$libname.dll.a'
18256 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18257 postinstall_cmds='base_file=`basename \${file}`~
18258 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18259 dldir=$destdir/`dirname \$dlpath`~
18260 test -d \$dldir || mkdir -p \$dldir~
18261 $install_prog $dir/$dlname \$dldir/$dlname~
18262 chmod a+x \$dldir/$dlname'
18263 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18264 dlpath=$dir/\$dldll~
18266 shlibpath_overrides_runpath=yes
18270 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18271 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18272 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18275 # MinGW DLLs use traditional 'lib' prefix
18276 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18277 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18278 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18279 # It is most probably a Windows format PATH printed by
18280 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18281 # path with ; separators, and with drive letters. We can handle the
18282 # drive letters (cygwin fileutils understands them), so leave them,
18283 # especially as we might pass files found there to a mingw objdump,
18284 # which wouldn't understand a cygwinified path. Ahh.
18285 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18287 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18291 # pw32 DLLs use 'pw' prefix rather than 'lib'
18292 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18298 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18301 dynamic_linker='Win32 ld.exe'
18302 # FIXME: first we should search . and the directory the executable is in
18306 darwin* | rhapsody*)
18307 dynamic_linker="$host_os dyld"
18308 version_type=darwin
18311 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18312 soname_spec='${libname}${release}${major}$shared_ext'
18313 shlibpath_overrides_runpath=yes
18314 shlibpath_var=DYLD_LIBRARY_PATH
18315 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18316 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18317 if test "$GCC" = yes; then
18318 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18320 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18322 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18330 soname_spec='${libname}${release}${shared_ext}$major'
18331 shlibpath_var=LD_LIBRARY_PATH
18342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18343 soname_spec='${libname}${release}${shared_ext}$major'
18344 shlibpath_var=LD_LIBRARY_PATH
18345 shlibpath_overrides_runpath=no
18346 hardcode_into_libs=yes
18347 dynamic_linker='GNU ld.so'
18350 freebsd* | dragonfly*)
18351 # DragonFly does not have aout. When/if they implement a new
18352 # versioning mechanism, adjust this.
18353 if test -x /usr/bin/objformat; then
18354 objformat=`/usr/bin/objformat`
18357 freebsd[123]*) objformat=aout ;;
18358 *) objformat=elf ;;
18361 version_type=freebsd-$objformat
18362 case $version_type in
18364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18369 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18373 shlibpath_var=LD_LIBRARY_PATH
18376 shlibpath_overrides_runpath=yes
18378 freebsd3.[01]* | freebsdelf3.[01]*)
18379 shlibpath_overrides_runpath=yes
18380 hardcode_into_libs=yes
18382 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18383 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18384 shlibpath_overrides_runpath=no
18385 hardcode_into_libs=yes
18387 freebsd*) # from 4.6 on
18388 shlibpath_overrides_runpath=yes
18389 hardcode_into_libs=yes
18398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18399 soname_spec='${libname}${release}${shared_ext}$major'
18400 shlibpath_var=LD_LIBRARY_PATH
18401 hardcode_into_libs=yes
18404 hpux9* | hpux10* | hpux11*)
18405 # Give a soname corresponding to the major version so that dld.sl refuses to
18406 # link against other versions.
18413 hardcode_into_libs=yes
18414 dynamic_linker="$host_os dld.so"
18415 shlibpath_var=LD_LIBRARY_PATH
18416 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18418 soname_spec='${libname}${release}${shared_ext}$major'
18419 if test "X$HPUX_IA64_MODE" = X32; then
18420 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18422 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18424 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18428 hardcode_into_libs=yes
18429 dynamic_linker="$host_os dld.sl"
18430 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18431 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18433 soname_spec='${libname}${release}${shared_ext}$major'
18434 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18435 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18439 dynamic_linker="$host_os dld.sl"
18440 shlibpath_var=SHLIB_PATH
18441 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18443 soname_spec='${libname}${release}${shared_ext}$major'
18446 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18447 postinstall_cmds='chmod 555 $lib'
18454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18455 soname_spec='${libname}${release}${shared_ext}$major'
18456 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18457 shlibpath_var=LD_LIBRARY_PATH
18458 shlibpath_overrides_runpath=no
18459 hardcode_into_libs=yes
18462 irix5* | irix6* | nonstopux*)
18464 nonstopux*) version_type=nonstopux ;;
18466 if test "$lt_cv_prog_gnu_ld" = yes; then
18474 soname_spec='${libname}${release}${shared_ext}$major'
18475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18477 irix5* | nonstopux*)
18478 libsuff= shlibsuff=
18481 case $LD in # libtool.m4 will add one of these switches to LD
18482 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18483 libsuff= shlibsuff= libmagic=32-bit;;
18484 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18485 libsuff=32 shlibsuff=N32 libmagic=N32;;
18486 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18487 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18488 *) libsuff= shlibsuff= libmagic=never-match;;
18492 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18493 shlibpath_overrides_runpath=no
18494 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18495 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18496 hardcode_into_libs=yes
18499 # No shared lib support for Linux oldld, aout, or coff.
18500 linux*oldld* | linux*aout* | linux*coff*)
18504 # This must be Linux ELF.
18509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18510 soname_spec='${libname}${release}${shared_ext}$major'
18511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18512 shlibpath_var=LD_LIBRARY_PATH
18513 shlibpath_overrides_runpath=no
18514 # This implies no fast_install, which is unacceptable.
18515 # Some rework will be needed to allow for fast_install
18516 # before this can be enabled.
18517 hardcode_into_libs=yes
18519 # Append ld.so.conf contents to the search path
18520 if test -f /etc/ld.so.conf; then
18521 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18522 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18525 # We used to test for /lib/ld.so.1 and disable shared libraries on
18526 # powerpc, because MkLinux only supported shared libraries with the
18527 # GNU dynamic linker. Since this was broken with cross compilers,
18528 # most powerpc-linux boxes support dynamic linking these days and
18529 # people can always --disable-shared, the test was removed, and we
18530 # assume the GNU/Linux dynamic linker is in use.
18531 dynamic_linker='GNU/Linux ld.so'
18538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18539 soname_spec='${libname}${release}${shared_ext}$major'
18540 shlibpath_var=LD_LIBRARY_PATH
18541 shlibpath_overrides_runpath=no
18542 hardcode_into_libs=yes
18543 dynamic_linker='GNU ld.so'
18550 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18553 dynamic_linker='NetBSD (a.out) ld.so'
18555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18556 soname_spec='${libname}${release}${shared_ext}$major'
18557 dynamic_linker='NetBSD ld.elf_so'
18559 shlibpath_var=LD_LIBRARY_PATH
18560 shlibpath_overrides_runpath=yes
18561 hardcode_into_libs=yes
18566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18567 shlibpath_var=LD_LIBRARY_PATH
18568 shlibpath_overrides_runpath=yes
18575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18576 soname_spec='${libname}${release}${shared_ext}$major'
18577 shlibpath_var=LD_LIBRARY_PATH
18578 shlibpath_overrides_runpath=yes
18583 sys_lib_dlsearch_path_spec="/usr/lib"
18585 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18587 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18588 *) need_version=no ;;
18590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18591 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18592 shlibpath_var=LD_LIBRARY_PATH
18593 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18595 openbsd2.[89] | openbsd2.[89].*)
18596 shlibpath_overrides_runpath=no
18599 shlibpath_overrides_runpath=yes
18603 shlibpath_overrides_runpath=yes
18608 libname_spec='$name'
18611 library_names_spec='$libname${shared_ext} $libname.a'
18612 dynamic_linker='OS/2 ld.exe'
18613 shlibpath_var=LIBPATH
18616 osf3* | osf4* | osf5*)
18620 soname_spec='${libname}${release}${shared_ext}$major'
18621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18622 shlibpath_var=LD_LIBRARY_PATH
18623 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18624 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18632 soname_spec='${libname}${release}${shared_ext}$major'
18633 shlibpath_var=LD_LIBRARY_PATH
18634 shlibpath_overrides_runpath=yes
18635 hardcode_into_libs=yes
18636 # ldd complains unless libraries are executable
18637 postinstall_cmds='chmod +x $lib'
18642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18643 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18644 shlibpath_var=LD_LIBRARY_PATH
18645 shlibpath_overrides_runpath=yes
18646 if test "$with_gnu_ld" = yes; then
18654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18655 soname_spec='${libname}${release}${shared_ext}$major'
18656 shlibpath_var=LD_LIBRARY_PATH
18657 case $host_vendor in
18659 shlibpath_overrides_runpath=no
18661 export_dynamic_flag_spec='${wl}-Blargedynsym'
18662 runpath_var=LD_RUN_PATH
18670 shlibpath_overrides_runpath=no
18671 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18677 if test -d /usr/nec ;then
18679 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18680 soname_spec='$libname${shared_ext}.$major'
18681 shlibpath_var=LD_LIBRARY_PATH
18685 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18686 version_type=freebsd-elf
18689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18690 soname_spec='${libname}${release}${shared_ext}$major'
18691 shlibpath_var=LD_LIBRARY_PATH
18692 hardcode_into_libs=yes
18693 if test "$with_gnu_ld" = yes; then
18694 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18695 shlibpath_overrides_runpath=no
18697 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18698 shlibpath_overrides_runpath=yes
18701 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18705 sys_lib_dlsearch_path_spec='/usr/lib'
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 shlibpath_var=LD_LIBRARY_PATH
18719 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18720 echo "${ECHO_T}$dynamic_linker" >&6; }
18721 test "$dynamic_linker" = no && can_build_shared=no
18723 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18724 if test "$GCC" = yes; then
18725 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18728 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18729 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18730 hardcode_action_GCJ=
18731 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18732 test -n "$runpath_var_GCJ" || \
18733 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18735 # We can hardcode non-existant directories.
18736 if test "$hardcode_direct_GCJ" != no &&
18737 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18738 # have to relink, otherwise we might link with an installed library
18739 # when we should be linking with a yet-to-be-installed one
18740 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18741 test "$hardcode_minus_L_GCJ" != no; then
18742 # Linking always hardcodes the temporary library directory.
18743 hardcode_action_GCJ=relink
18745 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18746 hardcode_action_GCJ=immediate
18749 # We cannot hardcode anything, or else we can only hardcode existing
18751 hardcode_action_GCJ=unsupported
18753 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18754 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18756 if test "$hardcode_action_GCJ" = relink; then
18757 # Fast installation is not supported
18758 enable_fast_install=no
18759 elif test "$shlibpath_overrides_runpath" = yes ||
18760 test "$enable_shared" = no; then
18761 # Fast installation is not necessary
18762 enable_fast_install=needless
18766 # The else clause should only fire when bootstrapping the
18767 # libtool distribution, otherwise you forgot to ship ltmain.sh
18768 # with your package, and you will get complaints that there are
18769 # no rules to generate ltmain.sh.
18770 if test -f "$ltmain"; then
18771 # See if we are running on zsh, and set the options which allow our commands through
18772 # without removal of \ escapes.
18773 if test -n "${ZSH_VERSION+set}" ; then
18774 setopt NO_GLOB_SUBST
18776 # Now quote all the things that may contain metacharacters while being
18777 # careful not to overquote the AC_SUBSTed values. We take copies of the
18778 # variables and quote the copies for generation of the libtool script.
18779 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18781 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18782 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18783 deplibs_check_method reload_flag reload_cmds need_locks \
18784 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18785 lt_cv_sys_global_symbol_to_c_name_address \
18786 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18787 old_postinstall_cmds old_postuninstall_cmds \
18791 lt_prog_compiler_wl_GCJ \
18792 lt_prog_compiler_pic_GCJ \
18793 lt_prog_compiler_static_GCJ \
18794 lt_prog_compiler_no_builtin_flag_GCJ \
18795 export_dynamic_flag_spec_GCJ \
18796 thread_safe_flag_spec_GCJ \
18797 whole_archive_flag_spec_GCJ \
18798 enable_shared_with_static_runtimes_GCJ \
18799 old_archive_cmds_GCJ \
18800 old_archive_from_new_cmds_GCJ \
18801 predep_objects_GCJ \
18802 postdep_objects_GCJ \
18805 compiler_lib_search_path_GCJ \
18807 archive_expsym_cmds_GCJ \
18808 postinstall_cmds_GCJ \
18809 postuninstall_cmds_GCJ \
18810 old_archive_from_expsyms_cmds_GCJ \
18811 allow_undefined_flag_GCJ \
18812 no_undefined_flag_GCJ \
18813 export_symbols_cmds_GCJ \
18814 hardcode_libdir_flag_spec_GCJ \
18815 hardcode_libdir_flag_spec_ld_GCJ \
18816 hardcode_libdir_separator_GCJ \
18817 hardcode_automatic_GCJ \
18819 module_expsym_cmds_GCJ \
18820 lt_cv_prog_compiler_c_o_GCJ \
18821 exclude_expsyms_GCJ \
18822 include_expsyms_GCJ; do
18825 old_archive_cmds_GCJ | \
18826 old_archive_from_new_cmds_GCJ | \
18827 archive_cmds_GCJ | \
18828 archive_expsym_cmds_GCJ | \
18829 module_cmds_GCJ | \
18830 module_expsym_cmds_GCJ | \
18831 old_archive_from_expsyms_cmds_GCJ | \
18832 export_symbols_cmds_GCJ | \
18833 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18834 postinstall_cmds | postuninstall_cmds | \
18835 old_postinstall_cmds | old_postuninstall_cmds | \
18836 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18837 # Double-quote double-evaled strings.
18838 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18841 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18847 *'\$0 --fallback-echo"')
18848 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18854 cat <<__EOF__ >> "$cfgfile"
18855 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18857 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18859 # Shell to use when invoking shell scripts.
18862 # Whether or not to build shared libraries.
18863 build_libtool_libs=$enable_shared
18865 # Whether or not to build static libraries.
18866 build_old_libs=$enable_static
18868 # Whether or not to add -lc for building shared libraries.
18869 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18871 # Whether or not to disallow shared libs when runtime libs are static
18872 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18874 # Whether or not to optimize for fast installation.
18875 fast_install=$enable_fast_install
18878 host_alias=$host_alias
18882 # The build system.
18883 build_alias=$build_alias
18887 # An echo program that does not interpret backslashes.
18892 AR_FLAGS=$lt_AR_FLAGS
18897 # LTCC compiler flags.
18898 LTCFLAGS=$lt_LTCFLAGS
18900 # A language-specific compiler.
18901 CC=$lt_compiler_GCJ
18903 # Is the compiler the GNU C compiler?
18909 # The linker used to build libraries.
18912 # Whether we need hard or soft links.
18915 # A BSD-compatible nm program.
18918 # A symbol stripping program
18921 # Used to examine libraries when file_magic_cmd begins "file"
18922 MAGIC_CMD=$MAGIC_CMD
18924 # Used on cygwin: DLL creation program.
18927 # Used on cygwin: object dumper.
18930 # Used on cygwin: assembler.
18933 # The name of the directory that contains temporary libtool files.
18936 # How to create reloadable object files.
18937 reload_flag=$lt_reload_flag
18938 reload_cmds=$lt_reload_cmds
18940 # How to pass a linker flag through the compiler.
18941 wl=$lt_lt_prog_compiler_wl_GCJ
18943 # Object file suffix (normally "o").
18944 objext="$ac_objext"
18946 # Old archive suffix (normally "a").
18949 # Shared library suffix (normally ".so").
18950 shrext_cmds='$shrext_cmds'
18952 # Executable file suffix (normally "").
18955 # Additional compiler flags for building library objects.
18956 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18959 # What is the maximum length of a command?
18960 max_cmd_len=$lt_cv_sys_max_cmd_len
18962 # Does compiler simultaneously support -c and -o options?
18963 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18965 # Must we lock files when doing compilation?
18966 need_locks=$lt_need_locks
18968 # Do we need the lib prefix for modules?
18969 need_lib_prefix=$need_lib_prefix
18971 # Do we need a version for libraries?
18972 need_version=$need_version
18974 # Whether dlopen is supported.
18975 dlopen_support=$enable_dlopen
18977 # Whether dlopen of programs is supported.
18978 dlopen_self=$enable_dlopen_self
18980 # Whether dlopen of statically linked programs is supported.
18981 dlopen_self_static=$enable_dlopen_self_static
18983 # Compiler flag to prevent dynamic linking.
18984 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18986 # Compiler flag to turn off builtin functions.
18987 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18989 # Compiler flag to allow reflexive dlopens.
18990 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18992 # Compiler flag to generate shared objects directly from archives.
18993 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18995 # Compiler flag to generate thread-safe objects.
18996 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18998 # Library versioning type.
18999 version_type=$version_type
19001 # Format of library name prefix.
19002 libname_spec=$lt_libname_spec
19004 # List of archive names. First name is the real one, the rest are links.
19005 # The last name is the one that the linker finds with -lNAME.
19006 library_names_spec=$lt_library_names_spec
19008 # The coded name of the library, if different from the real name.
19009 soname_spec=$lt_soname_spec
19011 # Commands used to build and install an old-style archive.
19013 old_archive_cmds=$lt_old_archive_cmds_GCJ
19014 old_postinstall_cmds=$lt_old_postinstall_cmds
19015 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19017 # Create an old-style archive from a shared archive.
19018 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19020 # Create a temporary old-style archive to link instead of a shared archive.
19021 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19023 # Commands used to build and install a shared archive.
19024 archive_cmds=$lt_archive_cmds_GCJ
19025 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19026 postinstall_cmds=$lt_postinstall_cmds
19027 postuninstall_cmds=$lt_postuninstall_cmds
19029 # Commands used to build a loadable module (assumed same as above if empty)
19030 module_cmds=$lt_module_cmds_GCJ
19031 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19033 # Commands to strip libraries.
19034 old_striplib=$lt_old_striplib
19035 striplib=$lt_striplib
19037 # Dependencies to place before the objects being linked to create a
19039 predep_objects=$lt_predep_objects_GCJ
19041 # Dependencies to place after the objects being linked to create a
19043 postdep_objects=$lt_postdep_objects_GCJ
19045 # Dependencies to place before the objects being linked to create a
19047 predeps=$lt_predeps_GCJ
19049 # Dependencies to place after the objects being linked to create a
19051 postdeps=$lt_postdeps_GCJ
19053 # The library search path used internally by the compiler when linking
19054 # a shared library.
19055 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19057 # Method to check whether dependent libraries are shared objects.
19058 deplibs_check_method=$lt_deplibs_check_method
19060 # Command to use when deplibs_check_method == file_magic.
19061 file_magic_cmd=$lt_file_magic_cmd
19063 # Flag that allows shared libraries with undefined symbols to be built.
19064 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19066 # Flag that forces no undefined symbols.
19067 no_undefined_flag=$lt_no_undefined_flag_GCJ
19069 # Commands used to finish a libtool library installation in a directory.
19070 finish_cmds=$lt_finish_cmds
19072 # Same as above, but a single script fragment to be evaled but not shown.
19073 finish_eval=$lt_finish_eval
19075 # Take the output of nm and produce a listing of raw symbols and C names.
19076 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19078 # Transform the output of nm in a proper C declaration
19079 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19081 # Transform the output of nm in a C name address pair
19082 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19084 # This is the shared library runtime path variable.
19085 runpath_var=$runpath_var
19087 # This is the shared library path variable.
19088 shlibpath_var=$shlibpath_var
19090 # Is shlibpath searched before the hard-coded library search path?
19091 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19093 # How to hardcode a shared library path into an executable.
19094 hardcode_action=$hardcode_action_GCJ
19096 # Whether we should hardcode library paths into libraries.
19097 hardcode_into_libs=$hardcode_into_libs
19099 # Flag to hardcode \$libdir into a binary during linking.
19100 # This must work even if \$libdir does not exist.
19101 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19103 # If ld is used when linking, flag to hardcode \$libdir into
19104 # a binary during linking. This must work even if \$libdir does
19106 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19108 # Whether we need a single -rpath flag with a separated argument.
19109 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19111 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19112 # resulting binary.
19113 hardcode_direct=$hardcode_direct_GCJ
19115 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19116 # resulting binary.
19117 hardcode_minus_L=$hardcode_minus_L_GCJ
19119 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19120 # the resulting binary.
19121 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19123 # Set to yes if building a shared library automatically hardcodes DIR into the library
19124 # and all subsequent libraries and executables linked against it.
19125 hardcode_automatic=$hardcode_automatic_GCJ
19127 # Variables whose values should be saved in libtool wrapper scripts and
19128 # restored at relink time.
19129 variables_saved_for_relink="$variables_saved_for_relink"
19131 # Whether libtool must link a program against all its dependency libraries.
19132 link_all_deplibs=$link_all_deplibs_GCJ
19134 # Compile-time system search path for libraries
19135 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19137 # Run-time system search path for libraries
19138 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19140 # Fix the shell variable \$srcfile for the compiler.
19141 fix_srcfile_path="$fix_srcfile_path_GCJ"
19143 # Set to yes if exported symbols are required.
19144 always_export_symbols=$always_export_symbols_GCJ
19146 # The commands to list exported symbols.
19147 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19149 # The commands to extract the exported symbol list from a shared archive.
19150 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19152 # Symbols that should not be listed in the preloaded symbols.
19153 exclude_expsyms=$lt_exclude_expsyms_GCJ
19155 # Symbols that must always be exported.
19156 include_expsyms=$lt_include_expsyms_GCJ
19158 # ### END LIBTOOL TAG CONFIG: $tagname
19164 # If there is no Makefile yet, we rely on a make rule to execute
19165 # `config.status --recheck' to rerun these tests and create the
19166 # libtool script then.
19167 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19168 if test -f "$ltmain_in"; then
19169 test -f Makefile && make "$ltmain"
19175 ac_cpp='$CPP $CPPFLAGS'
19176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19190 # Source file extension for RC test sources.
19193 # Object file extension for compiled RC test sources.
19197 # Code to be used in simple compile tests
19198 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19200 # Code to be used in simple link tests
19201 lt_simple_link_test_code="$lt_simple_compile_test_code"
19203 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19205 # If no C compiler was specified, use CC.
19208 # If no C compiler flags were specified, use CFLAGS.
19209 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19211 # Allow CC to be a program name with arguments.
19215 # save warnings/boilerplate of simple test code
19216 ac_outfile=conftest.$ac_objext
19217 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19218 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19219 _lt_compiler_boilerplate=`cat conftest.err`
19222 ac_outfile=conftest.$ac_objext
19223 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19224 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19225 _lt_linker_boilerplate=`cat conftest.err`
19229 # Allow CC to be a program name with arguments.
19234 for cc_temp in $compiler""; do
19236 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19237 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19242 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19244 lt_cv_prog_compiler_c_o_RC=yes
19246 # The else clause should only fire when bootstrapping the
19247 # libtool distribution, otherwise you forgot to ship ltmain.sh
19248 # with your package, and you will get complaints that there are
19249 # no rules to generate ltmain.sh.
19250 if test -f "$ltmain"; then
19251 # See if we are running on zsh, and set the options which allow our commands through
19252 # without removal of \ escapes.
19253 if test -n "${ZSH_VERSION+set}" ; then
19254 setopt NO_GLOB_SUBST
19256 # Now quote all the things that may contain metacharacters while being
19257 # careful not to overquote the AC_SUBSTed values. We take copies of the
19258 # variables and quote the copies for generation of the libtool script.
19259 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19261 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19262 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19263 deplibs_check_method reload_flag reload_cmds need_locks \
19264 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19265 lt_cv_sys_global_symbol_to_c_name_address \
19266 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19267 old_postinstall_cmds old_postuninstall_cmds \
19271 lt_prog_compiler_wl_RC \
19272 lt_prog_compiler_pic_RC \
19273 lt_prog_compiler_static_RC \
19274 lt_prog_compiler_no_builtin_flag_RC \
19275 export_dynamic_flag_spec_RC \
19276 thread_safe_flag_spec_RC \
19277 whole_archive_flag_spec_RC \
19278 enable_shared_with_static_runtimes_RC \
19279 old_archive_cmds_RC \
19280 old_archive_from_new_cmds_RC \
19281 predep_objects_RC \
19282 postdep_objects_RC \
19285 compiler_lib_search_path_RC \
19287 archive_expsym_cmds_RC \
19288 postinstall_cmds_RC \
19289 postuninstall_cmds_RC \
19290 old_archive_from_expsyms_cmds_RC \
19291 allow_undefined_flag_RC \
19292 no_undefined_flag_RC \
19293 export_symbols_cmds_RC \
19294 hardcode_libdir_flag_spec_RC \
19295 hardcode_libdir_flag_spec_ld_RC \
19296 hardcode_libdir_separator_RC \
19297 hardcode_automatic_RC \
19299 module_expsym_cmds_RC \
19300 lt_cv_prog_compiler_c_o_RC \
19301 exclude_expsyms_RC \
19302 include_expsyms_RC; do
19305 old_archive_cmds_RC | \
19306 old_archive_from_new_cmds_RC | \
19307 archive_cmds_RC | \
19308 archive_expsym_cmds_RC | \
19310 module_expsym_cmds_RC | \
19311 old_archive_from_expsyms_cmds_RC | \
19312 export_symbols_cmds_RC | \
19313 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19314 postinstall_cmds | postuninstall_cmds | \
19315 old_postinstall_cmds | old_postuninstall_cmds | \
19316 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19317 # Double-quote double-evaled strings.
19318 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19321 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19327 *'\$0 --fallback-echo"')
19328 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19334 cat <<__EOF__ >> "$cfgfile"
19335 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19337 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19339 # Shell to use when invoking shell scripts.
19342 # Whether or not to build shared libraries.
19343 build_libtool_libs=$enable_shared
19345 # Whether or not to build static libraries.
19346 build_old_libs=$enable_static
19348 # Whether or not to add -lc for building shared libraries.
19349 build_libtool_need_lc=$archive_cmds_need_lc_RC
19351 # Whether or not to disallow shared libs when runtime libs are static
19352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19354 # Whether or not to optimize for fast installation.
19355 fast_install=$enable_fast_install
19358 host_alias=$host_alias
19362 # The build system.
19363 build_alias=$build_alias
19367 # An echo program that does not interpret backslashes.
19372 AR_FLAGS=$lt_AR_FLAGS
19377 # LTCC compiler flags.
19378 LTCFLAGS=$lt_LTCFLAGS
19380 # A language-specific compiler.
19383 # Is the compiler the GNU C compiler?
19389 # The linker used to build libraries.
19392 # Whether we need hard or soft links.
19395 # A BSD-compatible nm program.
19398 # A symbol stripping program
19401 # Used to examine libraries when file_magic_cmd begins "file"
19402 MAGIC_CMD=$MAGIC_CMD
19404 # Used on cygwin: DLL creation program.
19407 # Used on cygwin: object dumper.
19410 # Used on cygwin: assembler.
19413 # The name of the directory that contains temporary libtool files.
19416 # How to create reloadable object files.
19417 reload_flag=$lt_reload_flag
19418 reload_cmds=$lt_reload_cmds
19420 # How to pass a linker flag through the compiler.
19421 wl=$lt_lt_prog_compiler_wl_RC
19423 # Object file suffix (normally "o").
19424 objext="$ac_objext"
19426 # Old archive suffix (normally "a").
19429 # Shared library suffix (normally ".so").
19430 shrext_cmds='$shrext_cmds'
19432 # Executable file suffix (normally "").
19435 # Additional compiler flags for building library objects.
19436 pic_flag=$lt_lt_prog_compiler_pic_RC
19439 # What is the maximum length of a command?
19440 max_cmd_len=$lt_cv_sys_max_cmd_len
19442 # Does compiler simultaneously support -c and -o options?
19443 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19445 # Must we lock files when doing compilation?
19446 need_locks=$lt_need_locks
19448 # Do we need the lib prefix for modules?
19449 need_lib_prefix=$need_lib_prefix
19451 # Do we need a version for libraries?
19452 need_version=$need_version
19454 # Whether dlopen is supported.
19455 dlopen_support=$enable_dlopen
19457 # Whether dlopen of programs is supported.
19458 dlopen_self=$enable_dlopen_self
19460 # Whether dlopen of statically linked programs is supported.
19461 dlopen_self_static=$enable_dlopen_self_static
19463 # Compiler flag to prevent dynamic linking.
19464 link_static_flag=$lt_lt_prog_compiler_static_RC
19466 # Compiler flag to turn off builtin functions.
19467 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19469 # Compiler flag to allow reflexive dlopens.
19470 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19472 # Compiler flag to generate shared objects directly from archives.
19473 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19475 # Compiler flag to generate thread-safe objects.
19476 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19478 # Library versioning type.
19479 version_type=$version_type
19481 # Format of library name prefix.
19482 libname_spec=$lt_libname_spec
19484 # List of archive names. First name is the real one, the rest are links.
19485 # The last name is the one that the linker finds with -lNAME.
19486 library_names_spec=$lt_library_names_spec
19488 # The coded name of the library, if different from the real name.
19489 soname_spec=$lt_soname_spec
19491 # Commands used to build and install an old-style archive.
19493 old_archive_cmds=$lt_old_archive_cmds_RC
19494 old_postinstall_cmds=$lt_old_postinstall_cmds
19495 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19497 # Create an old-style archive from a shared archive.
19498 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19500 # Create a temporary old-style archive to link instead of a shared archive.
19501 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19503 # Commands used to build and install a shared archive.
19504 archive_cmds=$lt_archive_cmds_RC
19505 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19506 postinstall_cmds=$lt_postinstall_cmds
19507 postuninstall_cmds=$lt_postuninstall_cmds
19509 # Commands used to build a loadable module (assumed same as above if empty)
19510 module_cmds=$lt_module_cmds_RC
19511 module_expsym_cmds=$lt_module_expsym_cmds_RC
19513 # Commands to strip libraries.
19514 old_striplib=$lt_old_striplib
19515 striplib=$lt_striplib
19517 # Dependencies to place before the objects being linked to create a
19519 predep_objects=$lt_predep_objects_RC
19521 # Dependencies to place after the objects being linked to create a
19523 postdep_objects=$lt_postdep_objects_RC
19525 # Dependencies to place before the objects being linked to create a
19527 predeps=$lt_predeps_RC
19529 # Dependencies to place after the objects being linked to create a
19531 postdeps=$lt_postdeps_RC
19533 # The library search path used internally by the compiler when linking
19534 # a shared library.
19535 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19537 # Method to check whether dependent libraries are shared objects.
19538 deplibs_check_method=$lt_deplibs_check_method
19540 # Command to use when deplibs_check_method == file_magic.
19541 file_magic_cmd=$lt_file_magic_cmd
19543 # Flag that allows shared libraries with undefined symbols to be built.
19544 allow_undefined_flag=$lt_allow_undefined_flag_RC
19546 # Flag that forces no undefined symbols.
19547 no_undefined_flag=$lt_no_undefined_flag_RC
19549 # Commands used to finish a libtool library installation in a directory.
19550 finish_cmds=$lt_finish_cmds
19552 # Same as above, but a single script fragment to be evaled but not shown.
19553 finish_eval=$lt_finish_eval
19555 # Take the output of nm and produce a listing of raw symbols and C names.
19556 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19558 # Transform the output of nm in a proper C declaration
19559 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19561 # Transform the output of nm in a C name address pair
19562 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19564 # This is the shared library runtime path variable.
19565 runpath_var=$runpath_var
19567 # This is the shared library path variable.
19568 shlibpath_var=$shlibpath_var
19570 # Is shlibpath searched before the hard-coded library search path?
19571 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19573 # How to hardcode a shared library path into an executable.
19574 hardcode_action=$hardcode_action_RC
19576 # Whether we should hardcode library paths into libraries.
19577 hardcode_into_libs=$hardcode_into_libs
19579 # Flag to hardcode \$libdir into a binary during linking.
19580 # This must work even if \$libdir does not exist.
19581 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19583 # If ld is used when linking, flag to hardcode \$libdir into
19584 # a binary during linking. This must work even if \$libdir does
19586 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19588 # Whether we need a single -rpath flag with a separated argument.
19589 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19591 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19592 # resulting binary.
19593 hardcode_direct=$hardcode_direct_RC
19595 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19596 # resulting binary.
19597 hardcode_minus_L=$hardcode_minus_L_RC
19599 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19600 # the resulting binary.
19601 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19603 # Set to yes if building a shared library automatically hardcodes DIR into the library
19604 # and all subsequent libraries and executables linked against it.
19605 hardcode_automatic=$hardcode_automatic_RC
19607 # Variables whose values should be saved in libtool wrapper scripts and
19608 # restored at relink time.
19609 variables_saved_for_relink="$variables_saved_for_relink"
19611 # Whether libtool must link a program against all its dependency libraries.
19612 link_all_deplibs=$link_all_deplibs_RC
19614 # Compile-time system search path for libraries
19615 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19617 # Run-time system search path for libraries
19618 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19620 # Fix the shell variable \$srcfile for the compiler.
19621 fix_srcfile_path="$fix_srcfile_path_RC"
19623 # Set to yes if exported symbols are required.
19624 always_export_symbols=$always_export_symbols_RC
19626 # The commands to list exported symbols.
19627 export_symbols_cmds=$lt_export_symbols_cmds_RC
19629 # The commands to extract the exported symbol list from a shared archive.
19630 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19632 # Symbols that should not be listed in the preloaded symbols.
19633 exclude_expsyms=$lt_exclude_expsyms_RC
19635 # Symbols that must always be exported.
19636 include_expsyms=$lt_include_expsyms_RC
19638 # ### END LIBTOOL TAG CONFIG: $tagname
19644 # If there is no Makefile yet, we rely on a make rule to execute
19645 # `config.status --recheck' to rerun these tests and create the
19646 # libtool script then.
19647 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19648 if test -f "$ltmain_in"; then
19649 test -f Makefile && make "$ltmain"
19655 ac_cpp='$CPP $CPPFLAGS'
19656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19665 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19666 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19667 { (exit 1); exit 1; }; }
19671 # Append the new tag name to the list of available tags.
19672 if test -n "$tagname" ; then
19673 available_tags="$available_tags $tagname"
19679 # Now substitute the updated list of available tags.
19680 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19681 mv "${ofile}T" "$ofile"
19685 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19686 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19687 { (exit 1); exit 1; }; }
19693 # This can be used to rebuild libtool when needed
19694 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19696 # Always use our own libtool.
19697 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19699 # Prevent multiple expansion
19712 # Check whether --with-system-libtool was given.
19713 if test "${with_system_libtool+set}" = set; then
19714 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
19715 set dummy libtool; ac_word=$2
19716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19718 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19719 echo $ECHO_N "(cached) $ECHO_C" >&6
19723 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19727 as_dummy="$PATH:/usr/local/bin"
19728 for as_dir in $as_dummy
19731 test -z "$as_dir" && as_dir=.
19732 for ac_exec_ext in '' $ac_executable_extensions; do
19733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19734 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19745 LIBTOOL=$ac_cv_path_LIBTOOL
19746 if test -n "$LIBTOOL"; then
19747 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19748 echo "${ECHO_T}$LIBTOOL" >&6; }
19750 { echo "$as_me:$LINENO: result: no" >&5
19751 echo "${ECHO_T}no" >&6; }
19757 LIBTOOL="`pwd`/libtool"
19777 # Check whether --enable-strict-dependencies was given.
19778 if test "${enable_strict_dependencies+set}" = set; then
19779 enableval=$enable_strict_dependencies;
19783 docdir='${datadir}/doc/freeradius'
19784 { echo "$as_me:$LINENO: checking docdir" >&5
19785 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
19787 # Check whether --with-docdir was given.
19788 if test "${with_docdir+set}" = set; then
19789 withval=$with_docdir; case "$withval" in
19791 { { echo "$as_me:$LINENO: error: Need docdir" >&5
19792 echo "$as_me: error: Need docdir" >&2;}
19793 { (exit 1); exit 1; }; }
19797 [\\/$]* | ?:[\\/]* )
19801 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19802 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19803 { (exit 1); exit 1; }; }
19810 { echo "$as_me:$LINENO: result: $docdir" >&5
19811 echo "${ECHO_T}$docdir" >&6; }
19813 logdir='${localstatedir}/log/radius'
19814 { echo "$as_me:$LINENO: checking logdir" >&5
19815 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
19817 # Check whether --with-logdir was given.
19818 if test "${with_logdir+set}" = set; then
19819 withval=$with_logdir; case "$withval" in
19821 { { echo "$as_me:$LINENO: error: Need logdir" >&5
19822 echo "$as_me: error: Need logdir" >&2;}
19823 { (exit 1); exit 1; }; }
19827 [\\/$]* | ?:[\\/]* )
19831 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19832 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19833 { (exit 1); exit 1; }; }
19840 { echo "$as_me:$LINENO: result: $logdir" >&5
19841 echo "${ECHO_T}$logdir" >&6; }
19843 radacctdir='${logdir}/radacct'
19844 { echo "$as_me:$LINENO: checking radacctdir" >&5
19845 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
19847 # Check whether --with-radacctdir was given.
19848 if test "${with_radacctdir+set}" = set; then
19849 withval=$with_radacctdir; case "$withval" in
19851 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19852 echo "$as_me: error: Need radacctdir" >&2;}
19853 { (exit 1); exit 1; }; }
19857 [\\/$]* | ?:[\\/]* )
19858 radacctdir="$withval"
19861 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19862 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19863 { (exit 1); exit 1; }; }
19870 { echo "$as_me:$LINENO: result: $radacctdir" >&5
19871 echo "${ECHO_T}$radacctdir" >&6; }
19873 raddbdir='${sysconfdir}/raddb'
19874 { echo "$as_me:$LINENO: checking raddbdir" >&5
19875 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
19877 # Check whether --with-raddbdir was given.
19878 if test "${with_raddbdir+set}" = set; then
19879 withval=$with_raddbdir; case "$withval" in
19881 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19882 echo "$as_me: error: Need raddbdir" >&2;}
19883 { (exit 1); exit 1; }; }
19887 [\\/$]* | ?:[\\/]* )
19888 raddbdir="$withval"
19891 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19892 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19893 { (exit 1); exit 1; }; }
19900 { echo "$as_me:$LINENO: result: $raddbdir" >&5
19901 echo "${ECHO_T}$raddbdir" >&6; }
19905 # Check whether --with-ascend-binary was given.
19906 if test "${with_ascend_binary+set}" = set; then
19907 withval=$with_ascend_binary; case "$withval" in
19916 if test "X$ASCEND_BINARY" = "Xyes"; then
19917 cat >>confdefs.h <<\_ACEOF
19918 #define ASCEND_BINARY 1
19925 # Check whether --with-threads was given.
19926 if test "${with_threads+set}" = set; then
19927 withval=$with_threads; case "$withval" in
19939 # Check whether --with-snmp was given.
19940 if test "${with_snmp+set}" = set; then
19941 withval=$with_snmp; case "$withval" in
19951 rad_enable_largefiles=no
19953 # Check whether --with-large-files was given.
19954 if test "${with_large_files+set}" = set; then
19955 withval=$with_large_files; case "$withval" in
19957 rad_enable_largefiles=yes
19969 # Check whether --with-static_modules was given.
19970 if test "${with_static_modules+set}" = set; then
19971 withval=$with_static_modules;
19972 for i in $withval; do
19973 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19981 # Check whether --with-modules was given.
19982 if test "${with_modules+set}" = set; then
19983 withval=$with_modules;
19984 for i in $withval; do
19985 MODULES="$MODULES $i"
19991 # Check whether --enable-developer was given.
19992 if test "${enable_developer+set}" = set; then
19993 enableval=$enable_developer; case "$enableval" in
20004 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
20010 # Check whether --with-experimental-modules was given.
20011 if test "${with_experimental_modules+set}" = set; then
20012 withval=$with_experimental_modules; case "$withval" in
20022 OPENSSL_INCLUDE_DIR=
20024 # Check whether --with-openssl-includes was given.
20025 if test "${with_openssl_includes+set}" = set; then
20026 withval=$with_openssl_includes; case "$withval" in
20027 *) OPENSSL_INCLUDE_DIR="$withval"
20036 # Check whether --with-openssl-libraries was given.
20037 if test "${with_openssl_libraries+set}" = set; then
20038 withval=$with_openssl_libraries; case "$withval" in
20039 *) OPENSSL_LIB_DIR="$withval"
20048 # Check whether --with-rlm-FOO-lib-dir was given.
20049 if test "${with_rlm_FOO_lib_dir+set}" = set; then
20050 withval=$with_rlm_FOO_lib_dir; case "$withval" in
20059 # Check whether --with-rlm-FOO-include-dir was given.
20060 if test "${with_rlm_FOO_include_dir+set}" = set; then
20061 withval=$with_rlm_FOO_include_dir; case "$withval" in
20072 # Check whether --with-udpfromto was given.
20073 if test "${with_udpfromto+set}" = set; then
20074 withval=$with_udpfromto; case "$withval" in
20085 if test "x$WITH_UDPFROMTO" = "xyes"; then
20086 cat >>confdefs.h <<\_ACEOF
20087 #define WITH_UDPFROMTO 1
20093 # Check whether --with-edir was given.
20094 if test "${with_edir+set}" = set; then
20095 withval=$with_edir;
20100 CHECKRAD=checkrad.pl
20101 # Extract the first word of "perl", so it can be a program name with args.
20102 set dummy perl; ac_word=$2
20103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20105 if test "${ac_cv_path_PERL+set}" = set; then
20106 echo $ECHO_N "(cached) $ECHO_C" >&6
20110 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20114 for as_dir in $PATH
20117 test -z "$as_dir" && as_dir=.
20118 for ac_exec_ext in '' $ac_executable_extensions; do
20119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20120 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
20121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20128 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
20132 PERL=$ac_cv_path_PERL
20133 if test -n "$PERL"; then
20134 { echo "$as_me:$LINENO: result: $PERL" >&5
20135 echo "${ECHO_T}$PERL" >&6; }
20137 { echo "$as_me:$LINENO: result: no" >&5
20138 echo "${ECHO_T}no" >&6; }
20142 if test "x$ac_cv_path_PERL" = "x"; then
20143 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
20144 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20146 # Extract the first word of "snmpget", so it can be a program name with args.
20147 set dummy snmpget; ac_word=$2
20148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20150 if test "${ac_cv_path_SNMPGET+set}" = set; then
20151 echo $ECHO_N "(cached) $ECHO_C" >&6
20155 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
20158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20159 for as_dir in $PATH
20162 test -z "$as_dir" && as_dir=.
20163 for ac_exec_ext in '' $ac_executable_extensions; do
20164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20165 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
20166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20176 SNMPGET=$ac_cv_path_SNMPGET
20177 if test -n "$SNMPGET"; then
20178 { echo "$as_me:$LINENO: result: $SNMPGET" >&5
20179 echo "${ECHO_T}$SNMPGET" >&6; }
20181 { echo "$as_me:$LINENO: result: no" >&5
20182 echo "${ECHO_T}no" >&6; }
20186 if test "x$ac_cv_path_SNMPGET" = "x"; then
20187 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
20188 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20191 # Extract the first word of "snmpwalk", so it can be a program name with args.
20192 set dummy snmpwalk; ac_word=$2
20193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20195 if test "${ac_cv_path_SNMPWALK+set}" = set; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20200 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
20203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20204 for as_dir in $PATH
20207 test -z "$as_dir" && as_dir=.
20208 for ac_exec_ext in '' $ac_executable_extensions; do
20209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20210 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20221 SNMPWALK=$ac_cv_path_SNMPWALK
20222 if test -n "$SNMPWALK"; then
20223 { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
20224 echo "${ECHO_T}$SNMPWALK" >&6; }
20226 { echo "$as_me:$LINENO: result: no" >&5
20227 echo "${ECHO_T}no" >&6; }
20231 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20232 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20233 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20236 # Extract the first word of "rusers", so it can be a program name with args.
20237 set dummy rusers; ac_word=$2
20238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20240 if test "${ac_cv_path_RUSERS+set}" = set; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
20245 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20249 for as_dir in $PATH
20252 test -z "$as_dir" && as_dir=.
20253 for ac_exec_ext in '' $ac_executable_extensions; do
20254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20255 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20263 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20267 RUSERS=$ac_cv_path_RUSERS
20268 if test -n "$RUSERS"; then
20269 { echo "$as_me:$LINENO: result: $RUSERS" >&5
20270 echo "${ECHO_T}$RUSERS" >&6; }
20272 { echo "$as_me:$LINENO: result: no" >&5
20273 echo "${ECHO_T}no" >&6; }
20278 missing_dir=`cd $ac_aux_dir && pwd`
20279 { echo "$as_me:$LINENO: checking for working aclocal" >&5
20280 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6; }
20281 # Run test in a subshell; some versions of sh will print an error if
20282 # an executable is not found, even if stderr is redirected.
20283 # Redirect stdin to placate older versions of autoconf. Sigh.
20284 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
20286 { echo "$as_me:$LINENO: result: found" >&5
20287 echo "${ECHO_T}found" >&6; }
20289 ACLOCAL="$missing_dir/missing aclocal"
20290 { echo "$as_me:$LINENO: result: missing" >&5
20291 echo "${ECHO_T}missing" >&6; }
20294 { echo "$as_me:$LINENO: checking for working autoconf" >&5
20295 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6; }
20296 # Run test in a subshell; some versions of sh will print an error if
20297 # an executable is not found, even if stderr is redirected.
20298 # Redirect stdin to placate older versions of autoconf. Sigh.
20299 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
20301 { echo "$as_me:$LINENO: result: found" >&5
20302 echo "${ECHO_T}found" >&6; }
20304 AUTOCONF="$missing_dir/missing autoconf"
20305 { echo "$as_me:$LINENO: result: missing" >&5
20306 echo "${ECHO_T}missing" >&6; }
20309 { echo "$as_me:$LINENO: checking for working autoheader" >&5
20310 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6; }
20311 # Run test in a subshell; some versions of sh will print an error if
20312 # an executable is not found, even if stderr is redirected.
20313 # Redirect stdin to placate older versions of autoconf. Sigh.
20314 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
20315 AUTOHEADER=autoheader
20316 { echo "$as_me:$LINENO: result: found" >&5
20317 echo "${ECHO_T}found" >&6; }
20319 AUTOHEADER="$missing_dir/missing autoheader"
20320 { echo "$as_me:$LINENO: result: missing" >&5
20321 echo "${ECHO_T}missing" >&6; }
20325 # Extract the first word of "locate", so it can be a program name with args.
20326 set dummy locate; ac_word=$2
20327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20329 if test "${ac_cv_path_LOCATE+set}" = set; then
20330 echo $ECHO_N "(cached) $ECHO_C" >&6
20334 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20338 for as_dir in $PATH
20341 test -z "$as_dir" && as_dir=.
20342 for ac_exec_ext in '' $ac_executable_extensions; do
20343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20344 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20355 LOCATE=$ac_cv_path_LOCATE
20356 if test -n "$LOCATE"; then
20357 { echo "$as_me:$LINENO: result: $LOCATE" >&5
20358 echo "${ECHO_T}$LOCATE" >&6; }
20360 { echo "$as_me:$LINENO: result: no" >&5
20361 echo "${ECHO_T}no" >&6; }
20365 # Extract the first word of "dirname", so it can be a program name with args.
20366 set dummy dirname; ac_word=$2
20367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20369 if test "${ac_cv_path_DIRNAME+set}" = set; then
20370 echo $ECHO_N "(cached) $ECHO_C" >&6
20374 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20378 for as_dir in $PATH
20381 test -z "$as_dir" && as_dir=.
20382 for ac_exec_ext in '' $ac_executable_extensions; do
20383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20384 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20395 DIRNAME=$ac_cv_path_DIRNAME
20396 if test -n "$DIRNAME"; then
20397 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20398 echo "${ECHO_T}$DIRNAME" >&6; }
20400 { echo "$as_me:$LINENO: result: no" >&5
20401 echo "${ECHO_T}no" >&6; }
20405 # Extract the first word of "grep", so it can be a program name with args.
20406 set dummy grep; ac_word=$2
20407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20409 if test "${ac_cv_path_GREP+set}" = set; then
20410 echo $ECHO_N "(cached) $ECHO_C" >&6
20414 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20418 for as_dir in $PATH
20421 test -z "$as_dir" && as_dir=.
20422 for ac_exec_ext in '' $ac_executable_extensions; do
20423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20424 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20435 GREP=$ac_cv_path_GREP
20436 if test -n "$GREP"; then
20437 { echo "$as_me:$LINENO: result: $GREP" >&5
20438 echo "${ECHO_T}$GREP" >&6; }
20440 { echo "$as_me:$LINENO: result: no" >&5
20441 echo "${ECHO_T}no" >&6; }
20448 if test "x$WITH_THREADS" = "xyes"; then
20449 if test $ac_cv_prog_suncc = "yes"; then
20450 CFLAGS="$CFLAGS -mt"
20454 for ac_header in pthread.h
20456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20461 echo $ECHO_N "(cached) $ECHO_C" >&6
20463 ac_res=`eval echo '${'$as_ac_Header'}'`
20464 { echo "$as_me:$LINENO: result: $ac_res" >&5
20465 echo "${ECHO_T}$ac_res" >&6; }
20467 # Is the header compilable?
20468 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20470 cat >conftest.$ac_ext <<_ACEOF
20473 cat confdefs.h >>conftest.$ac_ext
20474 cat >>conftest.$ac_ext <<_ACEOF
20475 /* end confdefs.h. */
20476 $ac_includes_default
20477 #include <$ac_header>
20479 rm -f conftest.$ac_objext
20480 if { (ac_try="$ac_compile"
20481 case "(($ac_try" in
20482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483 *) ac_try_echo=$ac_try;;
20485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20486 (eval "$ac_compile") 2>conftest.er1
20488 grep -v '^ *+' conftest.er1 >conftest.err
20490 cat conftest.err >&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); } &&
20493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20494 { (case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_try") 2>&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); }; } &&
20503 { ac_try='test -s conftest.$ac_objext'
20504 { (case "(($ac_try" in
20505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20506 *) ac_try_echo=$ac_try;;
20508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20509 (eval "$ac_try") 2>&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); }; }; then
20513 ac_header_compiler=yes
20515 echo "$as_me: failed program was:" >&5
20516 sed 's/^/| /' conftest.$ac_ext >&5
20518 ac_header_compiler=no
20521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20522 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20523 echo "${ECHO_T}$ac_header_compiler" >&6; }
20525 # Is the header present?
20526 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20528 cat >conftest.$ac_ext <<_ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h. */
20534 #include <$ac_header>
20536 if { (ac_try="$ac_cpp conftest.$ac_ext"
20537 case "(($ac_try" in
20538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539 *) ac_try_echo=$ac_try;;
20541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20544 grep -v '^ *+' conftest.er1 >conftest.err
20546 cat conftest.err >&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } >/dev/null; then
20549 if test -s conftest.err; then
20550 ac_cpp_err=$ac_c_preproc_warn_flag
20551 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20558 if test -z "$ac_cpp_err"; then
20559 ac_header_preproc=yes
20561 echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20564 ac_header_preproc=no
20567 rm -f conftest.err conftest.$ac_ext
20568 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20569 echo "${ECHO_T}$ac_header_preproc" >&6; }
20571 # So? What about this header?
20572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20574 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20575 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20577 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20578 ac_header_preproc=yes
20581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20585 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20586 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20587 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20588 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20591 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20592 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20599 echo $ECHO_N "(cached) $ECHO_C" >&6
20601 eval "$as_ac_Header=\$ac_header_preproc"
20603 ac_res=`eval echo '${'$as_ac_Header'}'`
20604 { echo "$as_me:$LINENO: result: $ac_res" >&5
20605 echo "${ECHO_T}$ac_res" >&6; }
20608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20609 cat >>confdefs.h <<_ACEOF
20610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20620 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20621 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20622 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20623 echo $ECHO_N "(cached) $ECHO_C" >&6
20625 ac_check_lib_save_LIBS=$LIBS
20626 LIBS="-lpthread $LIBS"
20627 cat >conftest.$ac_ext <<_ACEOF
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h. */
20634 /* Override any GCC internal prototype to avoid an error.
20635 Use char because int might match the return type of a GCC
20636 builtin and then its argument prototype would still apply. */
20640 char pthread_create ();
20644 return pthread_create ();
20649 rm -f conftest.$ac_objext conftest$ac_exeext
20650 if { (ac_try="$ac_link"
20651 case "(($ac_try" in
20652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653 *) ac_try_echo=$ac_try;;
20655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20656 (eval "$ac_link") 2>conftest.er1
20658 grep -v '^ *+' conftest.er1 >conftest.err
20660 cat conftest.err >&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); } &&
20663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20664 { (case "(($ac_try" in
20665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666 *) ac_try_echo=$ac_try;;
20668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20669 (eval "$ac_try") 2>&5
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); }; } &&
20673 { ac_try='test -s conftest$ac_exeext'
20674 { (case "(($ac_try" in
20675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676 *) ac_try_echo=$ac_try;;
20678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20679 (eval "$ac_try") 2>&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; }; then
20683 ac_cv_lib_pthread_pthread_create=yes
20685 echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20688 ac_cv_lib_pthread_pthread_create=no
20691 rm -f core conftest.err conftest.$ac_objext \
20692 conftest$ac_exeext conftest.$ac_ext
20693 LIBS=$ac_check_lib_save_LIBS
20695 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20696 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20697 if test $ac_cv_lib_pthread_pthread_create = yes; then
20698 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20699 LIBS="$LIBS -lpthread"
20701 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20702 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20703 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20704 echo $ECHO_N "(cached) $ECHO_C" >&6
20706 ac_check_lib_save_LIBS=$LIBS
20708 cat >conftest.$ac_ext <<_ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h. */
20715 /* Override any GCC internal prototype to avoid an error.
20716 Use char because int might match the return type of a GCC
20717 builtin and then its argument prototype would still apply. */
20721 char pthread_create ();
20725 return pthread_create ();
20730 rm -f conftest.$ac_objext conftest$ac_exeext
20731 if { (ac_try="$ac_link"
20732 case "(($ac_try" in
20733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734 *) ac_try_echo=$ac_try;;
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737 (eval "$ac_link") 2>conftest.er1
20739 grep -v '^ *+' conftest.er1 >conftest.err
20741 cat conftest.err >&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); } &&
20744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20745 { (case "(($ac_try" in
20746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747 *) ac_try_echo=$ac_try;;
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750 (eval "$ac_try") 2>&5
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; } &&
20754 { ac_try='test -s conftest$ac_exeext'
20755 { (case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20760 (eval "$ac_try") 2>&5
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); }; }; then
20764 ac_cv_lib_c_r_pthread_create=yes
20766 echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.$ac_ext >&5
20769 ac_cv_lib_c_r_pthread_create=no
20772 rm -f core conftest.err conftest.$ac_objext \
20773 conftest$ac_exeext conftest.$ac_ext
20774 LIBS=$ac_check_lib_save_LIBS
20776 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20777 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20778 if test $ac_cv_lib_c_r_pthread_create = yes; then
20779 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20790 if test "x$WITH_THREADS" != "xyes"; then
20792 ac_cv_header_pthread_h="no"
20796 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20797 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20798 if test "${ac_cv_search_sem_init+set}" = set; then
20799 echo $ECHO_N "(cached) $ECHO_C" >&6
20801 ac_func_search_save_LIBS=$LIBS
20802 cat >conftest.$ac_ext <<_ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h. */
20809 /* Override any GCC internal prototype to avoid an error.
20810 Use char because int might match the return type of a GCC
20811 builtin and then its argument prototype would still apply. */
20819 return sem_init ();
20824 for ac_lib in '' pthread sem posix4 rt; do
20825 if test -z "$ac_lib"; then
20826 ac_res="none required"
20829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20831 rm -f conftest.$ac_objext conftest$ac_exeext
20832 if { (ac_try="$ac_link"
20833 case "(($ac_try" in
20834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835 *) ac_try_echo=$ac_try;;
20837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838 (eval "$ac_link") 2>conftest.er1
20840 grep -v '^ *+' conftest.er1 >conftest.err
20842 cat conftest.err >&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } &&
20845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20846 { (case "(($ac_try" in
20847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20848 *) ac_try_echo=$ac_try;;
20850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20851 (eval "$ac_try") 2>&5
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); }; } &&
20855 { ac_try='test -s conftest$ac_exeext'
20856 { (case "(($ac_try" in
20857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20858 *) ac_try_echo=$ac_try;;
20860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20861 (eval "$ac_try") 2>&5
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); }; }; then
20865 ac_cv_search_sem_init=$ac_res
20867 echo "$as_me: failed program was:" >&5
20868 sed 's/^/| /' conftest.$ac_ext >&5
20873 rm -f core conftest.err conftest.$ac_objext \
20875 if test "${ac_cv_search_sem_init+set}" = set; then
20879 if test "${ac_cv_search_sem_init+set}" = set; then
20882 ac_cv_search_sem_init=no
20884 rm conftest.$ac_ext
20885 LIBS=$ac_func_search_save_LIBS
20887 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20888 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20889 ac_res=$ac_cv_search_sem_init
20890 if test "$ac_res" != no; then
20891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20894 { { 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
20895 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;}
20896 { (exit 1); exit 1; }; }
20903 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20904 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20905 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20906 echo $ECHO_N "(cached) $ECHO_C" >&6
20908 ac_check_lib_save_LIBS=$LIBS
20909 LIBS="-lsocket $LIBS"
20910 cat >conftest.$ac_ext <<_ACEOF
20913 cat confdefs.h >>conftest.$ac_ext
20914 cat >>conftest.$ac_ext <<_ACEOF
20915 /* end confdefs.h. */
20917 /* Override any GCC internal prototype to avoid an error.
20918 Use char because int might match the return type of a GCC
20919 builtin and then its argument prototype would still apply. */
20923 char getsockname ();
20927 return getsockname ();
20932 rm -f conftest.$ac_objext conftest$ac_exeext
20933 if { (ac_try="$ac_link"
20934 case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_link") 2>conftest.er1
20941 grep -v '^ *+' conftest.er1 >conftest.err
20943 cat conftest.err >&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } &&
20946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20947 { (case "(($ac_try" in
20948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20949 *) ac_try_echo=$ac_try;;
20951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20952 (eval "$ac_try") 2>&5
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); }; } &&
20956 { ac_try='test -s conftest$ac_exeext'
20957 { (case "(($ac_try" in
20958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959 *) ac_try_echo=$ac_try;;
20961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20962 (eval "$ac_try") 2>&5
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); }; }; then
20966 ac_cv_lib_socket_getsockname=yes
20968 echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20971 ac_cv_lib_socket_getsockname=no
20974 rm -f core conftest.err conftest.$ac_objext \
20975 conftest$ac_exeext conftest.$ac_ext
20976 LIBS=$ac_check_lib_save_LIBS
20978 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20979 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20980 if test $ac_cv_lib_socket_getsockname = yes; then
20981 cat >>confdefs.h <<_ACEOF
20982 #define HAVE_LIBSOCKET 1
20985 LIBS="-lsocket $LIBS"
20991 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20992 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20993 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20994 echo $ECHO_N "(cached) $ECHO_C" >&6
20996 ac_check_lib_save_LIBS=$LIBS
20997 LIBS="-lresolv $LIBS"
20998 cat >conftest.$ac_ext <<_ACEOF
21001 cat confdefs.h >>conftest.$ac_ext
21002 cat >>conftest.$ac_ext <<_ACEOF
21003 /* end confdefs.h. */
21005 /* Override any GCC internal prototype to avoid an error.
21006 Use char because int might match the return type of a GCC
21007 builtin and then its argument prototype would still apply. */
21015 return inet_aton ();
21020 rm -f conftest.$ac_objext conftest$ac_exeext
21021 if { (ac_try="$ac_link"
21022 case "(($ac_try" in
21023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024 *) ac_try_echo=$ac_try;;
21026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027 (eval "$ac_link") 2>conftest.er1
21029 grep -v '^ *+' conftest.er1 >conftest.err
21031 cat conftest.err >&5
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); } &&
21034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21035 { (case "(($ac_try" in
21036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21037 *) ac_try_echo=$ac_try;;
21039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21040 (eval "$ac_try") 2>&5
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); }; } &&
21044 { ac_try='test -s conftest$ac_exeext'
21045 { (case "(($ac_try" in
21046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047 *) ac_try_echo=$ac_try;;
21049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21050 (eval "$ac_try") 2>&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); }; }; then
21054 ac_cv_lib_resolv_inet_aton=yes
21056 echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21059 ac_cv_lib_resolv_inet_aton=no
21062 rm -f core conftest.err conftest.$ac_objext \
21063 conftest$ac_exeext conftest.$ac_ext
21064 LIBS=$ac_check_lib_save_LIBS
21066 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
21067 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
21068 if test $ac_cv_lib_resolv_inet_aton = yes; then
21069 cat >>confdefs.h <<_ACEOF
21070 #define HAVE_LIBRESOLV 1
21073 LIBS="-lresolv $LIBS"
21079 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
21080 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
21081 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
21082 echo $ECHO_N "(cached) $ECHO_C" >&6
21084 ac_check_lib_save_LIBS=$LIBS
21086 cat >conftest.$ac_ext <<_ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h. */
21093 /* Override any GCC internal prototype to avoid an error.
21094 Use char because int might match the return type of a GCC
21095 builtin and then its argument prototype would still apply. */
21103 return inet_ntoa ();
21108 rm -f conftest.$ac_objext conftest$ac_exeext
21109 if { (ac_try="$ac_link"
21110 case "(($ac_try" in
21111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21112 *) ac_try_echo=$ac_try;;
21114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21115 (eval "$ac_link") 2>conftest.er1
21117 grep -v '^ *+' conftest.er1 >conftest.err
21119 cat conftest.err >&5
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); } &&
21122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21123 { (case "(($ac_try" in
21124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125 *) ac_try_echo=$ac_try;;
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128 (eval "$ac_try") 2>&5
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); }; } &&
21132 { ac_try='test -s conftest$ac_exeext'
21133 { (case "(($ac_try" in
21134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21135 *) ac_try_echo=$ac_try;;
21137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21138 (eval "$ac_try") 2>&5
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); }; }; then
21142 ac_cv_lib_nsl_inet_ntoa=yes
21144 echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21147 ac_cv_lib_nsl_inet_ntoa=no
21150 rm -f core conftest.err conftest.$ac_objext \
21151 conftest$ac_exeext conftest.$ac_ext
21152 LIBS=$ac_check_lib_save_LIBS
21154 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
21155 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
21156 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
21157 cat >>confdefs.h <<_ACEOF
21158 #define HAVE_LIBNSL 1
21168 if test "x$OPENSSL_LIB_DIR" != "x"; then
21169 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
21171 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21172 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
21173 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
21174 echo $ECHO_N "(cached) $ECHO_C" >&6
21176 ac_check_lib_save_LIBS=$LIBS
21177 LIBS="-lcrypto $LIBS"
21178 cat >conftest.$ac_ext <<_ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21185 /* Override any GCC internal prototype to avoid an error.
21186 Use char because int might match the return type of a GCC
21187 builtin and then its argument prototype would still apply. */
21200 rm -f conftest.$ac_objext conftest$ac_exeext
21201 if { (ac_try="$ac_link"
21202 case "(($ac_try" in
21203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204 *) ac_try_echo=$ac_try;;
21206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21207 (eval "$ac_link") 2>conftest.er1
21209 grep -v '^ *+' conftest.er1 >conftest.err
21211 cat conftest.err >&5
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); } &&
21214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21215 { (case "(($ac_try" in
21216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217 *) ac_try_echo=$ac_try;;
21219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220 (eval "$ac_try") 2>&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); }; } &&
21224 { ac_try='test -s conftest$ac_exeext'
21225 { (case "(($ac_try" in
21226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21227 *) ac_try_echo=$ac_try;;
21229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21230 (eval "$ac_try") 2>&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; }; then
21234 ac_cv_lib_crypto_DH_new=yes
21236 echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21239 ac_cv_lib_crypto_DH_new=no
21242 rm -f core conftest.err conftest.$ac_objext \
21243 conftest$ac_exeext conftest.$ac_ext
21244 LIBS=$ac_check_lib_save_LIBS
21246 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
21247 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
21248 if test $ac_cv_lib_crypto_DH_new = yes; then
21251 cat >>confdefs.h <<\_ACEOF
21252 #define HAVE_LIBCRYPTO 1
21255 { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21256 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
21257 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
21258 echo $ECHO_N "(cached) $ECHO_C" >&6
21260 ac_check_lib_save_LIBS=$LIBS
21262 cat >conftest.$ac_ext <<_ACEOF
21265 cat confdefs.h >>conftest.$ac_ext
21266 cat >>conftest.$ac_ext <<_ACEOF
21267 /* end confdefs.h. */
21269 /* Override any GCC internal prototype to avoid an error.
21270 Use char because int might match the return type of a GCC
21271 builtin and then its argument prototype would still apply. */
21284 rm -f conftest.$ac_objext conftest$ac_exeext
21285 if { (ac_try="$ac_link"
21286 case "(($ac_try" in
21287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21288 *) ac_try_echo=$ac_try;;
21290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21291 (eval "$ac_link") 2>conftest.er1
21293 grep -v '^ *+' conftest.er1 >conftest.err
21295 cat conftest.err >&5
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); } &&
21298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21299 { (case "(($ac_try" in
21300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21301 *) ac_try_echo=$ac_try;;
21303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304 (eval "$ac_try") 2>&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; } &&
21308 { ac_try='test -s conftest$ac_exeext'
21309 { (case "(($ac_try" in
21310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21311 *) ac_try_echo=$ac_try;;
21313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21314 (eval "$ac_try") 2>&5
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); }; }; then
21318 ac_cv_lib_ssl_SSL_new=yes
21320 echo "$as_me: failed program was:" >&5
21321 sed 's/^/| /' conftest.$ac_ext >&5
21323 ac_cv_lib_ssl_SSL_new=no
21326 rm -f core conftest.err conftest.$ac_objext \
21327 conftest$ac_exeext conftest.$ac_ext
21328 LIBS=$ac_check_lib_save_LIBS
21330 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
21331 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
21332 if test $ac_cv_lib_ssl_SSL_new = yes; then
21335 cat >>confdefs.h <<\_ACEOF
21336 #define HAVE_LIBSSL 1
21339 if test "x$OPENSSL_LIB_DIR" != "x"; then
21340 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21342 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21354 CFLAGS="$CFLAGS -D_ALL_SOURCE"
21357 CFLAGS="$CFLAGS -DDARWIN"
21366 ac_header_dirent=no
21367 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21368 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21369 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21370 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21372 echo $ECHO_N "(cached) $ECHO_C" >&6
21374 cat >conftest.$ac_ext <<_ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h. */
21380 #include <sys/types.h>
21392 rm -f conftest.$ac_objext
21393 if { (ac_try="$ac_compile"
21394 case "(($ac_try" in
21395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396 *) ac_try_echo=$ac_try;;
21398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399 (eval "$ac_compile") 2>conftest.er1
21401 grep -v '^ *+' conftest.er1 >conftest.err
21403 cat conftest.err >&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); } &&
21406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21407 { (case "(($ac_try" in
21408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409 *) ac_try_echo=$ac_try;;
21411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21412 (eval "$ac_try") 2>&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); }; } &&
21416 { ac_try='test -s conftest.$ac_objext'
21417 { (case "(($ac_try" in
21418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419 *) ac_try_echo=$ac_try;;
21421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422 (eval "$ac_try") 2>&5
21424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425 (exit $ac_status); }; }; then
21426 eval "$as_ac_Header=yes"
21428 echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21431 eval "$as_ac_Header=no"
21434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21436 ac_res=`eval echo '${'$as_ac_Header'}'`
21437 { echo "$as_me:$LINENO: result: $ac_res" >&5
21438 echo "${ECHO_T}$ac_res" >&6; }
21439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21440 cat >>confdefs.h <<_ACEOF
21441 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21444 ac_header_dirent=$ac_hdr; break
21448 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21449 if test $ac_header_dirent = dirent.h; then
21450 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21451 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21452 if test "${ac_cv_search_opendir+set}" = set; then
21453 echo $ECHO_N "(cached) $ECHO_C" >&6
21455 ac_func_search_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 for ac_lib in '' dir; do
21479 if test -z "$ac_lib"; then
21480 ac_res="none required"
21483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21485 rm -f conftest.$ac_objext conftest$ac_exeext
21486 if { (ac_try="$ac_link"
21487 case "(($ac_try" in
21488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21489 *) ac_try_echo=$ac_try;;
21491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21492 (eval "$ac_link") 2>conftest.er1
21494 grep -v '^ *+' conftest.er1 >conftest.err
21496 cat conftest.err >&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); } &&
21499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21500 { (case "(($ac_try" in
21501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502 *) ac_try_echo=$ac_try;;
21504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505 (eval "$ac_try") 2>&5
21507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); }; } &&
21509 { ac_try='test -s conftest$ac_exeext'
21510 { (case "(($ac_try" in
21511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21512 *) ac_try_echo=$ac_try;;
21514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21515 (eval "$ac_try") 2>&5
21517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); }; }; then
21519 ac_cv_search_opendir=$ac_res
21521 echo "$as_me: failed program was:" >&5
21522 sed 's/^/| /' conftest.$ac_ext >&5
21527 rm -f core conftest.err conftest.$ac_objext \
21529 if test "${ac_cv_search_opendir+set}" = set; then
21533 if test "${ac_cv_search_opendir+set}" = set; then
21536 ac_cv_search_opendir=no
21538 rm conftest.$ac_ext
21539 LIBS=$ac_func_search_save_LIBS
21541 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21542 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21543 ac_res=$ac_cv_search_opendir
21544 if test "$ac_res" != no; then
21545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21550 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21551 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21552 if test "${ac_cv_search_opendir+set}" = set; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
21555 ac_func_search_save_LIBS=$LIBS
21556 cat >conftest.$ac_ext <<_ACEOF
21559 cat confdefs.h >>conftest.$ac_ext
21560 cat >>conftest.$ac_ext <<_ACEOF
21561 /* end confdefs.h. */
21563 /* Override any GCC internal prototype to avoid an error.
21564 Use char because int might match the return type of a GCC
21565 builtin and then its argument prototype would still apply. */
21578 for ac_lib in '' x; do
21579 if test -z "$ac_lib"; then
21580 ac_res="none required"
21583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21585 rm -f conftest.$ac_objext conftest$ac_exeext
21586 if { (ac_try="$ac_link"
21587 case "(($ac_try" in
21588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21589 *) ac_try_echo=$ac_try;;
21591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21592 (eval "$ac_link") 2>conftest.er1
21594 grep -v '^ *+' conftest.er1 >conftest.err
21596 cat conftest.err >&5
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); } &&
21599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21600 { (case "(($ac_try" in
21601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21602 *) ac_try_echo=$ac_try;;
21604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21605 (eval "$ac_try") 2>&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); }; } &&
21609 { ac_try='test -s conftest$ac_exeext'
21610 { (case "(($ac_try" in
21611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21612 *) ac_try_echo=$ac_try;;
21614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21615 (eval "$ac_try") 2>&5
21617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); }; }; then
21619 ac_cv_search_opendir=$ac_res
21621 echo "$as_me: failed program was:" >&5
21622 sed 's/^/| /' conftest.$ac_ext >&5
21627 rm -f core conftest.err conftest.$ac_objext \
21629 if test "${ac_cv_search_opendir+set}" = set; then
21633 if test "${ac_cv_search_opendir+set}" = set; then
21636 ac_cv_search_opendir=no
21638 rm conftest.$ac_ext
21639 LIBS=$ac_func_search_save_LIBS
21641 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21642 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21643 ac_res=$ac_cv_search_opendir
21644 if test "$ac_res" != no; then
21645 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21651 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21652 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21653 if test "${ac_cv_header_stdc+set}" = set; then
21654 echo $ECHO_N "(cached) $ECHO_C" >&6
21656 cat >conftest.$ac_ext <<_ACEOF
21659 cat confdefs.h >>conftest.$ac_ext
21660 cat >>conftest.$ac_ext <<_ACEOF
21661 /* end confdefs.h. */
21662 #include <stdlib.h>
21663 #include <stdarg.h>
21664 #include <string.h>
21675 rm -f conftest.$ac_objext
21676 if { (ac_try="$ac_compile"
21677 case "(($ac_try" in
21678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21679 *) ac_try_echo=$ac_try;;
21681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21682 (eval "$ac_compile") 2>conftest.er1
21684 grep -v '^ *+' conftest.er1 >conftest.err
21686 cat conftest.err >&5
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); } &&
21689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21690 { (case "(($ac_try" in
21691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21692 *) ac_try_echo=$ac_try;;
21694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21695 (eval "$ac_try") 2>&5
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); }; } &&
21699 { ac_try='test -s conftest.$ac_objext'
21700 { (case "(($ac_try" in
21701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702 *) ac_try_echo=$ac_try;;
21704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21705 (eval "$ac_try") 2>&5
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); }; }; then
21709 ac_cv_header_stdc=yes
21711 echo "$as_me: failed program was:" >&5
21712 sed 's/^/| /' conftest.$ac_ext >&5
21714 ac_cv_header_stdc=no
21717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21719 if test $ac_cv_header_stdc = yes; then
21720 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21721 cat >conftest.$ac_ext <<_ACEOF
21724 cat confdefs.h >>conftest.$ac_ext
21725 cat >>conftest.$ac_ext <<_ACEOF
21726 /* end confdefs.h. */
21727 #include <string.h>
21730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21731 $EGREP "memchr" >/dev/null 2>&1; then
21734 ac_cv_header_stdc=no
21740 if test $ac_cv_header_stdc = yes; then
21741 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21742 cat >conftest.$ac_ext <<_ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h. */
21748 #include <stdlib.h>
21751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21752 $EGREP "free" >/dev/null 2>&1; then
21755 ac_cv_header_stdc=no
21761 if test $ac_cv_header_stdc = yes; then
21762 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21763 if test "$cross_compiling" = yes; then
21766 cat >conftest.$ac_ext <<_ACEOF
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h. */
21773 #include <stdlib.h>
21774 #if ((' ' & 0x0FF) == 0x020)
21775 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21776 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21778 # define ISLOWER(c) \
21779 (('a' <= (c) && (c) <= 'i') \
21780 || ('j' <= (c) && (c) <= 'r') \
21781 || ('s' <= (c) && (c) <= 'z'))
21782 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21785 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21790 for (i = 0; i < 256; i++)
21791 if (XOR (islower (i), ISLOWER (i))
21792 || toupper (i) != TOUPPER (i))
21797 rm -f conftest$ac_exeext
21798 if { (ac_try="$ac_link"
21799 case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804 (eval "$ac_link") 2>&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21808 { (case "(($ac_try" in
21809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810 *) ac_try_echo=$ac_try;;
21812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21813 (eval "$ac_try") 2>&5
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); }; }; then
21819 echo "$as_me: program exited with status $ac_status" >&5
21820 echo "$as_me: failed program was:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21823 ( exit $ac_status )
21824 ac_cv_header_stdc=no
21826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21832 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21833 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21834 if test $ac_cv_header_stdc = yes; then
21836 cat >>confdefs.h <<\_ACEOF
21837 #define STDC_HEADERS 1
21842 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21843 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21844 if test "${ac_cv_header_time+set}" = set; then
21845 echo $ECHO_N "(cached) $ECHO_C" >&6
21847 cat >conftest.$ac_ext <<_ACEOF
21850 cat confdefs.h >>conftest.$ac_ext
21851 cat >>conftest.$ac_ext <<_ACEOF
21852 /* end confdefs.h. */
21853 #include <sys/types.h>
21854 #include <sys/time.h>
21860 if ((struct tm *) 0)
21866 rm -f conftest.$ac_objext
21867 if { (ac_try="$ac_compile"
21868 case "(($ac_try" in
21869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870 *) ac_try_echo=$ac_try;;
21872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873 (eval "$ac_compile") 2>conftest.er1
21875 grep -v '^ *+' conftest.er1 >conftest.err
21877 cat conftest.err >&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } &&
21880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21881 { (case "(($ac_try" in
21882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21883 *) ac_try_echo=$ac_try;;
21885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21886 (eval "$ac_try") 2>&5
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; } &&
21890 { ac_try='test -s conftest.$ac_objext'
21891 { (case "(($ac_try" in
21892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21893 *) ac_try_echo=$ac_try;;
21895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21896 (eval "$ac_try") 2>&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); }; }; then
21900 ac_cv_header_time=yes
21902 echo "$as_me: failed program was:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21905 ac_cv_header_time=no
21908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21910 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21911 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21912 if test $ac_cv_header_time = yes; then
21914 cat >>confdefs.h <<\_ACEOF
21915 #define TIME_WITH_SYS_TIME 1
21920 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21921 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21922 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21923 echo $ECHO_N "(cached) $ECHO_C" >&6
21925 cat >conftest.$ac_ext <<_ACEOF
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h. */
21931 #include <sys/types.h>
21932 #include <sys/wait.h>
21933 #ifndef WEXITSTATUS
21934 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21937 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21945 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21950 rm -f conftest.$ac_objext
21951 if { (ac_try="$ac_compile"
21952 case "(($ac_try" in
21953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954 *) ac_try_echo=$ac_try;;
21956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21957 (eval "$ac_compile") 2>conftest.er1
21959 grep -v '^ *+' conftest.er1 >conftest.err
21961 cat conftest.err >&5
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); } &&
21964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21965 { (case "(($ac_try" in
21966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967 *) ac_try_echo=$ac_try;;
21969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21970 (eval "$ac_try") 2>&5
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); }; } &&
21974 { ac_try='test -s conftest.$ac_objext'
21975 { (case "(($ac_try" in
21976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21977 *) ac_try_echo=$ac_try;;
21979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21980 (eval "$ac_try") 2>&5
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); }; }; then
21984 ac_cv_header_sys_wait_h=yes
21986 echo "$as_me: failed program was:" >&5
21987 sed 's/^/| /' conftest.$ac_ext >&5
21989 ac_cv_header_sys_wait_h=no
21992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21994 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21995 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21996 if test $ac_cv_header_sys_wait_h = yes; then
21998 cat >>confdefs.h <<\_ACEOF
21999 #define HAVE_SYS_WAIT_H 1
22068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22073 echo $ECHO_N "(cached) $ECHO_C" >&6
22075 ac_res=`eval echo '${'$as_ac_Header'}'`
22076 { echo "$as_me:$LINENO: result: $ac_res" >&5
22077 echo "${ECHO_T}$ac_res" >&6; }
22079 # Is the header compilable?
22080 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22082 cat >conftest.$ac_ext <<_ACEOF
22085 cat confdefs.h >>conftest.$ac_ext
22086 cat >>conftest.$ac_ext <<_ACEOF
22087 /* end confdefs.h. */
22088 $ac_includes_default
22089 #include <$ac_header>
22091 rm -f conftest.$ac_objext
22092 if { (ac_try="$ac_compile"
22093 case "(($ac_try" in
22094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095 *) ac_try_echo=$ac_try;;
22097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22098 (eval "$ac_compile") 2>conftest.er1
22100 grep -v '^ *+' conftest.er1 >conftest.err
22102 cat conftest.err >&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } &&
22105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22106 { (case "(($ac_try" in
22107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22108 *) ac_try_echo=$ac_try;;
22110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22111 (eval "$ac_try") 2>&5
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); }; } &&
22115 { ac_try='test -s conftest.$ac_objext'
22116 { (case "(($ac_try" in
22117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118 *) ac_try_echo=$ac_try;;
22120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22121 (eval "$ac_try") 2>&5
22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); }; }; then
22125 ac_header_compiler=yes
22127 echo "$as_me: failed program was:" >&5
22128 sed 's/^/| /' conftest.$ac_ext >&5
22130 ac_header_compiler=no
22133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22135 echo "${ECHO_T}$ac_header_compiler" >&6; }
22137 # Is the header present?
22138 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22140 cat >conftest.$ac_ext <<_ACEOF
22143 cat confdefs.h >>conftest.$ac_ext
22144 cat >>conftest.$ac_ext <<_ACEOF
22145 /* end confdefs.h. */
22146 #include <$ac_header>
22148 if { (ac_try="$ac_cpp conftest.$ac_ext"
22149 case "(($ac_try" in
22150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22151 *) ac_try_echo=$ac_try;;
22153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22156 grep -v '^ *+' conftest.er1 >conftest.err
22158 cat conftest.err >&5
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); } >/dev/null; then
22161 if test -s conftest.err; then
22162 ac_cpp_err=$ac_c_preproc_warn_flag
22163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22170 if test -z "$ac_cpp_err"; then
22171 ac_header_preproc=yes
22173 echo "$as_me: failed program was:" >&5
22174 sed 's/^/| /' conftest.$ac_ext >&5
22176 ac_header_preproc=no
22179 rm -f conftest.err conftest.$ac_ext
22180 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22181 echo "${ECHO_T}$ac_header_preproc" >&6; }
22183 # So? What about this header?
22184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22190 ac_header_preproc=yes
22193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22196 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22200 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22211 echo $ECHO_N "(cached) $ECHO_C" >&6
22213 eval "$as_ac_Header=\$ac_header_preproc"
22215 ac_res=`eval echo '${'$as_ac_Header'}'`
22216 { echo "$as_me:$LINENO: result: $ac_res" >&5
22217 echo "${ECHO_T}$ac_res" >&6; }
22220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22221 cat >>confdefs.h <<_ACEOF
22222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22231 if test "${ac_cv_header_regex_h+set}" = set; then
22232 { echo "$as_me:$LINENO: checking for regex.h" >&5
22233 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22234 if test "${ac_cv_header_regex_h+set}" = set; then
22235 echo $ECHO_N "(cached) $ECHO_C" >&6
22237 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22238 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22240 # Is the header compilable?
22241 { echo "$as_me:$LINENO: checking regex.h usability" >&5
22242 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
22243 cat >conftest.$ac_ext <<_ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h. */
22249 $ac_includes_default
22252 rm -f conftest.$ac_objext
22253 if { (ac_try="$ac_compile"
22254 case "(($ac_try" in
22255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22256 *) ac_try_echo=$ac_try;;
22258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22259 (eval "$ac_compile") 2>conftest.er1
22261 grep -v '^ *+' conftest.er1 >conftest.err
22263 cat conftest.err >&5
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); } &&
22266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22267 { (case "(($ac_try" in
22268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22269 *) ac_try_echo=$ac_try;;
22271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22272 (eval "$ac_try") 2>&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); }; } &&
22276 { ac_try='test -s conftest.$ac_objext'
22277 { (case "(($ac_try" in
22278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22279 *) ac_try_echo=$ac_try;;
22281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22282 (eval "$ac_try") 2>&5
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); }; }; then
22286 ac_header_compiler=yes
22288 echo "$as_me: failed program was:" >&5
22289 sed 's/^/| /' conftest.$ac_ext >&5
22291 ac_header_compiler=no
22294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22296 echo "${ECHO_T}$ac_header_compiler" >&6; }
22298 # Is the header present?
22299 { echo "$as_me:$LINENO: checking regex.h presence" >&5
22300 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
22301 cat >conftest.$ac_ext <<_ACEOF
22304 cat confdefs.h >>conftest.$ac_ext
22305 cat >>conftest.$ac_ext <<_ACEOF
22306 /* end confdefs.h. */
22309 if { (ac_try="$ac_cpp conftest.$ac_ext"
22310 case "(($ac_try" in
22311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22312 *) ac_try_echo=$ac_try;;
22314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22317 grep -v '^ *+' conftest.er1 >conftest.err
22319 cat conftest.err >&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); } >/dev/null; then
22322 if test -s conftest.err; then
22323 ac_cpp_err=$ac_c_preproc_warn_flag
22324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22331 if test -z "$ac_cpp_err"; then
22332 ac_header_preproc=yes
22334 echo "$as_me: failed program was:" >&5
22335 sed 's/^/| /' conftest.$ac_ext >&5
22337 ac_header_preproc=no
22340 rm -f conftest.err conftest.$ac_ext
22341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22342 echo "${ECHO_T}$ac_header_preproc" >&6; }
22344 # So? What about this header?
22345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22347 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22348 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22349 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22350 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22351 ac_header_preproc=yes
22354 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22355 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
22356 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22357 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22358 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22359 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22360 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22361 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
22362 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22363 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
22364 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22365 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
22369 { echo "$as_me:$LINENO: checking for regex.h" >&5
22370 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22371 if test "${ac_cv_header_regex_h+set}" = set; then
22372 echo $ECHO_N "(cached) $ECHO_C" >&6
22374 ac_cv_header_regex_h=$ac_header_preproc
22376 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22377 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22380 if test $ac_cv_header_regex_h = yes; then
22381 cat >>confdefs.h <<\_ACEOF
22382 #define HAVE_REGEX_H 1
22388 if test "x$ac_cv_header_regex_h" = "xyes"; then
22391 cat >conftest.$ac_ext <<_ACEOF
22394 cat confdefs.h >>conftest.$ac_ext
22395 cat >>conftest.$ac_ext <<_ACEOF
22396 /* end confdefs.h. */
22398 #ifdef REG_EXTENDED
22403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22404 $EGREP "yes" >/dev/null 2>&1; then
22405 cat >>confdefs.h <<\_ACEOF
22406 #define HAVE_REG_EXTENDED 1
22416 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
22418 cat >>confdefs.h <<\_ACEOF
22424 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
22426 cat >>confdefs.h <<\_ACEOF
22432 OPENSSL_INCLUDE="-DNO_OPENSSL"
22433 if test "x$OPENSSL_LIBS" = "x"; then
22434 { echo "$as_me:$LINENO: WARNING: skipping test for openssl/ssl.h" >&5
22435 echo "$as_me: WARNING: skipping test for openssl/ssl.h" >&2;}
22437 old_CPPFLAGS=$CPPFLAGS
22438 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22439 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
22441 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
22452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22457 echo $ECHO_N "(cached) $ECHO_C" >&6
22459 ac_res=`eval echo '${'$as_ac_Header'}'`
22460 { echo "$as_me:$LINENO: result: $ac_res" >&5
22461 echo "${ECHO_T}$ac_res" >&6; }
22463 # Is the header compilable?
22464 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22466 cat >conftest.$ac_ext <<_ACEOF
22469 cat confdefs.h >>conftest.$ac_ext
22470 cat >>conftest.$ac_ext <<_ACEOF
22471 /* end confdefs.h. */
22472 $ac_includes_default
22473 #include <$ac_header>
22475 rm -f conftest.$ac_objext
22476 if { (ac_try="$ac_compile"
22477 case "(($ac_try" in
22478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479 *) ac_try_echo=$ac_try;;
22481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22482 (eval "$ac_compile") 2>conftest.er1
22484 grep -v '^ *+' conftest.er1 >conftest.err
22486 cat conftest.err >&5
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); } &&
22489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22490 { (case "(($ac_try" in
22491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492 *) ac_try_echo=$ac_try;;
22494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495 (eval "$ac_try") 2>&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; } &&
22499 { ac_try='test -s conftest.$ac_objext'
22500 { (case "(($ac_try" in
22501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22502 *) ac_try_echo=$ac_try;;
22504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22505 (eval "$ac_try") 2>&5
22507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508 (exit $ac_status); }; }; then
22509 ac_header_compiler=yes
22511 echo "$as_me: failed program was:" >&5
22512 sed 's/^/| /' conftest.$ac_ext >&5
22514 ac_header_compiler=no
22517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22519 echo "${ECHO_T}$ac_header_compiler" >&6; }
22521 # Is the header present?
22522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22524 cat >conftest.$ac_ext <<_ACEOF
22527 cat confdefs.h >>conftest.$ac_ext
22528 cat >>conftest.$ac_ext <<_ACEOF
22529 /* end confdefs.h. */
22530 #include <$ac_header>
22532 if { (ac_try="$ac_cpp conftest.$ac_ext"
22533 case "(($ac_try" in
22534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22535 *) ac_try_echo=$ac_try;;
22537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22540 grep -v '^ *+' conftest.er1 >conftest.err
22542 cat conftest.err >&5
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); } >/dev/null; then
22545 if test -s conftest.err; then
22546 ac_cpp_err=$ac_c_preproc_warn_flag
22547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22554 if test -z "$ac_cpp_err"; then
22555 ac_header_preproc=yes
22557 echo "$as_me: failed program was:" >&5
22558 sed 's/^/| /' conftest.$ac_ext >&5
22560 ac_header_preproc=no
22563 rm -f conftest.err conftest.$ac_ext
22564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22565 echo "${ECHO_T}$ac_header_preproc" >&6; }
22567 # So? What about this header?
22568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22574 ac_header_preproc=yes
22577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22595 echo $ECHO_N "(cached) $ECHO_C" >&6
22597 eval "$as_ac_Header=\$ac_header_preproc"
22599 ac_res=`eval echo '${'$as_ac_Header'}'`
22600 { echo "$as_me:$LINENO: result: $ac_res" >&5
22601 echo "${ECHO_T}$ac_res" >&6; }
22604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22605 cat >>confdefs.h <<_ACEOF
22606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22616 if test "x$OPENSSL_LIBS" != "x"; then
22617 { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22618 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
22619 cat >conftest.$ac_ext <<_ACEOF
22622 cat confdefs.h >>conftest.$ac_ext
22623 cat >>conftest.$ac_ext <<_ACEOF
22624 /* end confdefs.h. */
22625 #include <openssl/crypto.h>
22626 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22632 $EGREP "yes" >/dev/null 2>&1; then
22637 if test "x$goodssl" != "xyes"; then
22638 { echo "$as_me:$LINENO: result: no" >&5
22639 echo "${ECHO_T}no" >&6; }
22642 { echo "$as_me:$LINENO: result: yes" >&5
22643 echo "${ECHO_T}yes" >&6; }
22644 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22645 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
22647 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
22651 CPPFLAGS=$old_CPPFLAGS
22655 export OPENSSL_LIBS
22658 { echo "$as_me:$LINENO: checking for off_t" >&5
22659 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22660 if test "${ac_cv_type_off_t+set}" = set; then
22661 echo $ECHO_N "(cached) $ECHO_C" >&6
22663 cat >conftest.$ac_ext <<_ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h. */
22669 $ac_includes_default
22670 typedef off_t ac__type_new_;
22674 if ((ac__type_new_ *) 0)
22676 if (sizeof (ac__type_new_))
22682 rm -f conftest.$ac_objext
22683 if { (ac_try="$ac_compile"
22684 case "(($ac_try" in
22685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22686 *) ac_try_echo=$ac_try;;
22688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22689 (eval "$ac_compile") 2>conftest.er1
22691 grep -v '^ *+' conftest.er1 >conftest.err
22693 cat conftest.err >&5
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } &&
22696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22697 { (case "(($ac_try" in
22698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22699 *) ac_try_echo=$ac_try;;
22701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22702 (eval "$ac_try") 2>&5
22704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705 (exit $ac_status); }; } &&
22706 { ac_try='test -s conftest.$ac_objext'
22707 { (case "(($ac_try" in
22708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22709 *) ac_try_echo=$ac_try;;
22711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22712 (eval "$ac_try") 2>&5
22714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); }; }; then
22716 ac_cv_type_off_t=yes
22718 echo "$as_me: failed program was:" >&5
22719 sed 's/^/| /' conftest.$ac_ext >&5
22721 ac_cv_type_off_t=no
22724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22726 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22727 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22728 if test $ac_cv_type_off_t = yes; then
22732 cat >>confdefs.h <<_ACEOF
22733 #define off_t long int
22738 { echo "$as_me:$LINENO: checking for pid_t" >&5
22739 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22740 if test "${ac_cv_type_pid_t+set}" = set; then
22741 echo $ECHO_N "(cached) $ECHO_C" >&6
22743 cat >conftest.$ac_ext <<_ACEOF
22746 cat confdefs.h >>conftest.$ac_ext
22747 cat >>conftest.$ac_ext <<_ACEOF
22748 /* end confdefs.h. */
22749 $ac_includes_default
22750 typedef pid_t ac__type_new_;
22754 if ((ac__type_new_ *) 0)
22756 if (sizeof (ac__type_new_))
22762 rm -f conftest.$ac_objext
22763 if { (ac_try="$ac_compile"
22764 case "(($ac_try" in
22765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22766 *) ac_try_echo=$ac_try;;
22768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22769 (eval "$ac_compile") 2>conftest.er1
22771 grep -v '^ *+' conftest.er1 >conftest.err
22773 cat conftest.err >&5
22774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); } &&
22776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22777 { (case "(($ac_try" in
22778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22779 *) ac_try_echo=$ac_try;;
22781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22782 (eval "$ac_try") 2>&5
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); }; } &&
22786 { ac_try='test -s conftest.$ac_objext'
22787 { (case "(($ac_try" in
22788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22789 *) ac_try_echo=$ac_try;;
22791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22792 (eval "$ac_try") 2>&5
22794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795 (exit $ac_status); }; }; then
22796 ac_cv_type_pid_t=yes
22798 echo "$as_me: failed program was:" >&5
22799 sed 's/^/| /' conftest.$ac_ext >&5
22801 ac_cv_type_pid_t=no
22804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22806 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22807 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22808 if test $ac_cv_type_pid_t = yes; then
22812 cat >>confdefs.h <<_ACEOF
22818 { echo "$as_me:$LINENO: checking for size_t" >&5
22819 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22820 if test "${ac_cv_type_size_t+set}" = set; then
22821 echo $ECHO_N "(cached) $ECHO_C" >&6
22823 cat >conftest.$ac_ext <<_ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h. */
22829 $ac_includes_default
22830 typedef size_t ac__type_new_;
22834 if ((ac__type_new_ *) 0)
22836 if (sizeof (ac__type_new_))
22842 rm -f conftest.$ac_objext
22843 if { (ac_try="$ac_compile"
22844 case "(($ac_try" in
22845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22846 *) ac_try_echo=$ac_try;;
22848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22849 (eval "$ac_compile") 2>conftest.er1
22851 grep -v '^ *+' conftest.er1 >conftest.err
22853 cat conftest.err >&5
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); } &&
22856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22857 { (case "(($ac_try" in
22858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22859 *) ac_try_echo=$ac_try;;
22861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22862 (eval "$ac_try") 2>&5
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); }; } &&
22866 { ac_try='test -s conftest.$ac_objext'
22867 { (case "(($ac_try" in
22868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22869 *) ac_try_echo=$ac_try;;
22871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22872 (eval "$ac_try") 2>&5
22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); }; }; then
22876 ac_cv_type_size_t=yes
22878 echo "$as_me: failed program was:" >&5
22879 sed 's/^/| /' conftest.$ac_ext >&5
22881 ac_cv_type_size_t=no
22884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22886 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22887 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22888 if test $ac_cv_type_size_t = yes; then
22892 cat >>confdefs.h <<_ACEOF
22893 #define size_t unsigned int
22898 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22899 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22900 if test "${ac_cv_type_uid_t+set}" = set; then
22901 echo $ECHO_N "(cached) $ECHO_C" >&6
22903 cat >conftest.$ac_ext <<_ACEOF
22906 cat confdefs.h >>conftest.$ac_ext
22907 cat >>conftest.$ac_ext <<_ACEOF
22908 /* end confdefs.h. */
22909 #include <sys/types.h>
22912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22913 $EGREP "uid_t" >/dev/null 2>&1; then
22914 ac_cv_type_uid_t=yes
22916 ac_cv_type_uid_t=no
22921 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22922 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22923 if test $ac_cv_type_uid_t = no; then
22925 cat >>confdefs.h <<\_ACEOF
22930 cat >>confdefs.h <<\_ACEOF
22938 { echo "$as_me:$LINENO: checking for socklen_t" >&5
22939 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22940 if test "${ac_cv_type_socklen_t+set}" = set; then
22941 echo $ECHO_N "(cached) $ECHO_C" >&6
22943 ac_cv_type_socklen_t=no
22944 cat >conftest.$ac_ext <<_ACEOF
22947 cat confdefs.h >>conftest.$ac_ext
22948 cat >>conftest.$ac_ext <<_ACEOF
22949 /* end confdefs.h. */
22950 #ifdef HAVE_SYS_TYPES_H
22951 #include <sys/types.h>
22953 #ifdef HAVE_SYS_SOCKET_H
22954 #include <sys/socket.h>
22965 rm -f conftest.$ac_objext
22966 if { (ac_try="$ac_compile"
22967 case "(($ac_try" in
22968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22969 *) ac_try_echo=$ac_try;;
22971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22972 (eval "$ac_compile") 2>conftest.er1
22974 grep -v '^ *+' conftest.er1 >conftest.err
22976 cat conftest.err >&5
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); } &&
22979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22980 { (case "(($ac_try" in
22981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22982 *) ac_try_echo=$ac_try;;
22984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22985 (eval "$ac_try") 2>&5
22987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988 (exit $ac_status); }; } &&
22989 { ac_try='test -s conftest.$ac_objext'
22990 { (case "(($ac_try" in
22991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22992 *) ac_try_echo=$ac_try;;
22994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22995 (eval "$ac_try") 2>&5
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); }; }; then
22999 ac_cv_type_socklen_t=yes
23001 echo "$as_me: failed program was:" >&5
23002 sed 's/^/| /' conftest.$ac_ext >&5
23007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23011 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23012 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23014 if test "$ac_cv_type_socklen_t" != "yes"; then
23015 cat >>confdefs.h <<\_ACEOF
23016 #define socklen_t int
23023 { echo "$as_me:$LINENO: checking for uint8_t" >&5
23024 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23025 if test "${ac_cv_type_uint8_t+set}" = set; then
23026 echo $ECHO_N "(cached) $ECHO_C" >&6
23028 ac_cv_type_uint8_t=no
23029 cat >conftest.$ac_ext <<_ACEOF
23032 cat confdefs.h >>conftest.$ac_ext
23033 cat >>conftest.$ac_ext <<_ACEOF
23034 /* end confdefs.h. */
23035 #ifdef HAVE_INTTYPES_H
23036 #include <inttypes.h>
23038 #ifdef HAVE_STDINT_H
23039 #include <stdint.h>
23050 rm -f conftest.$ac_objext
23051 if { (ac_try="$ac_compile"
23052 case "(($ac_try" in
23053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23054 *) ac_try_echo=$ac_try;;
23056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23057 (eval "$ac_compile") 2>conftest.er1
23059 grep -v '^ *+' conftest.er1 >conftest.err
23061 cat conftest.err >&5
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); } &&
23064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23065 { (case "(($ac_try" in
23066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23067 *) ac_try_echo=$ac_try;;
23069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23070 (eval "$ac_try") 2>&5
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); }; } &&
23074 { ac_try='test -s conftest.$ac_objext'
23075 { (case "(($ac_try" in
23076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23077 *) ac_try_echo=$ac_try;;
23079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23080 (eval "$ac_try") 2>&5
23082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083 (exit $ac_status); }; }; then
23084 ac_cv_type_uint8_t=yes
23086 echo "$as_me: failed program was:" >&5
23087 sed 's/^/| /' conftest.$ac_ext >&5
23092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23096 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23097 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
23099 if test "$ac_cv_type_uint8_t" != "yes"; then
23100 cat >>confdefs.h <<\_ACEOF
23101 #define uint8_t unsigned char
23108 { echo "$as_me:$LINENO: checking for uint16_t" >&5
23109 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
23110 if test "${ac_cv_type_uint16_t+set}" = set; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23113 ac_cv_type_uint16_t=no
23114 cat >conftest.$ac_ext <<_ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h. */
23120 #ifdef HAVE_INTTYPES_H
23121 #include <inttypes.h>
23123 #ifdef HAVE_STDINT_H
23124 #include <stdint.h>
23135 rm -f conftest.$ac_objext
23136 if { (ac_try="$ac_compile"
23137 case "(($ac_try" in
23138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23139 *) ac_try_echo=$ac_try;;
23141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23142 (eval "$ac_compile") 2>conftest.er1
23144 grep -v '^ *+' conftest.er1 >conftest.err
23146 cat conftest.err >&5
23147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148 (exit $ac_status); } &&
23149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23150 { (case "(($ac_try" in
23151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23152 *) ac_try_echo=$ac_try;;
23154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23155 (eval "$ac_try") 2>&5
23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); }; } &&
23159 { ac_try='test -s conftest.$ac_objext'
23160 { (case "(($ac_try" in
23161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23162 *) ac_try_echo=$ac_try;;
23164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23165 (eval "$ac_try") 2>&5
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); }; }; then
23169 ac_cv_type_uint16_t=yes
23171 echo "$as_me: failed program was:" >&5
23172 sed 's/^/| /' conftest.$ac_ext >&5
23177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23181 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
23182 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
23184 if test "$ac_cv_type_uint16_t" != "yes"; then
23185 cat >>confdefs.h <<\_ACEOF
23186 #define uint16_t unsigned short
23193 { echo "$as_me:$LINENO: checking for uint32_t" >&5
23194 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
23195 if test "${ac_cv_type_uint32_t+set}" = set; then
23196 echo $ECHO_N "(cached) $ECHO_C" >&6
23198 ac_cv_type_uint32_t=no
23199 cat >conftest.$ac_ext <<_ACEOF
23202 cat confdefs.h >>conftest.$ac_ext
23203 cat >>conftest.$ac_ext <<_ACEOF
23204 /* end confdefs.h. */
23205 #ifdef HAVE_INTTYPES_H
23206 #include <inttypes.h>
23208 #ifdef HAVE_STDINT_H
23209 #include <stdint.h>
23220 rm -f conftest.$ac_objext
23221 if { (ac_try="$ac_compile"
23222 case "(($ac_try" in
23223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23224 *) ac_try_echo=$ac_try;;
23226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23227 (eval "$ac_compile") 2>conftest.er1
23229 grep -v '^ *+' conftest.er1 >conftest.err
23231 cat conftest.err >&5
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); } &&
23234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23235 { (case "(($ac_try" in
23236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23237 *) ac_try_echo=$ac_try;;
23239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23240 (eval "$ac_try") 2>&5
23242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243 (exit $ac_status); }; } &&
23244 { ac_try='test -s conftest.$ac_objext'
23245 { (case "(($ac_try" in
23246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23247 *) ac_try_echo=$ac_try;;
23249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23250 (eval "$ac_try") 2>&5
23252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253 (exit $ac_status); }; }; then
23254 ac_cv_type_uint32_t=yes
23256 echo "$as_me: failed program was:" >&5
23257 sed 's/^/| /' conftest.$ac_ext >&5
23262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23266 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
23267 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
23269 if test "$ac_cv_type_uint32_t" != "yes"; then
23270 cat >>confdefs.h <<\_ACEOF
23271 #define uint32_t unsigned int
23328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23329 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23331 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23332 echo $ECHO_N "(cached) $ECHO_C" >&6
23334 cat >conftest.$ac_ext <<_ACEOF
23337 cat confdefs.h >>conftest.$ac_ext
23338 cat >>conftest.$ac_ext <<_ACEOF
23339 /* end confdefs.h. */
23340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23342 #define $ac_func innocuous_$ac_func
23344 /* System header to define __stub macros and hopefully few prototypes,
23345 which can conflict with char $ac_func (); below.
23346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23347 <limits.h> exists even on freestanding compilers. */
23350 # include <limits.h>
23352 # include <assert.h>
23357 /* Override any GCC internal prototype to avoid an error.
23358 Use char because int might match the return type of a GCC
23359 builtin and then its argument prototype would still apply. */
23364 /* The GNU C library defines this for functions which it implements
23365 to always fail with ENOSYS. Some functions are actually named
23366 something starting with __ and the normal name is an alias. */
23367 #if defined __stub_$ac_func || defined __stub___$ac_func
23374 return $ac_func ();
23379 rm -f conftest.$ac_objext conftest$ac_exeext
23380 if { (ac_try="$ac_link"
23381 case "(($ac_try" in
23382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23383 *) ac_try_echo=$ac_try;;
23385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23386 (eval "$ac_link") 2>conftest.er1
23388 grep -v '^ *+' conftest.er1 >conftest.err
23390 cat conftest.err >&5
23391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); } &&
23393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23394 { (case "(($ac_try" in
23395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23396 *) ac_try_echo=$ac_try;;
23398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23399 (eval "$ac_try") 2>&5
23401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402 (exit $ac_status); }; } &&
23403 { ac_try='test -s conftest$ac_exeext'
23404 { (case "(($ac_try" in
23405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23406 *) ac_try_echo=$ac_try;;
23408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23409 (eval "$ac_try") 2>&5
23411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412 (exit $ac_status); }; }; then
23413 eval "$as_ac_var=yes"
23415 echo "$as_me: failed program was:" >&5
23416 sed 's/^/| /' conftest.$ac_ext >&5
23418 eval "$as_ac_var=no"
23421 rm -f core conftest.err conftest.$ac_objext \
23422 conftest$ac_exeext conftest.$ac_ext
23424 ac_res=`eval echo '${'$as_ac_var'}'`
23425 { echo "$as_me:$LINENO: result: $ac_res" >&5
23426 echo "${ECHO_T}$ac_res" >&6; }
23427 if test `eval echo '${'$as_ac_var'}'` = yes; then
23428 cat >>confdefs.h <<_ACEOF
23429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23446 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23447 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
23448 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
23449 echo $ECHO_N "(cached) $ECHO_C" >&6
23451 cat >conftest.$ac_ext <<_ACEOF
23454 cat confdefs.h >>conftest.$ac_ext
23455 cat >>conftest.$ac_ext <<_ACEOF
23456 /* end confdefs.h. */
23459 #include <string.h>
23460 #ifdef HAVE_UNISTD_H
23461 #include <unistd.h>
23463 #ifdef HAVE_CRYPT_H
23466 #ifdef HAVE_ERRNO_H
23469 #ifdef HAVE_RESOURCE_H
23470 #include <resource.h>
23472 #ifdef HAVE_GETOPT_H
23473 #include <getopt.h>
23475 #ifdef HAVE_MALLOC_H
23476 #include <malloc.h>
23481 #ifdef HAVE_UTMPX_H
23484 #ifdef HAVE_SYS_SELECT_H
23485 #include <sys/select.h>
23487 #ifdef HAVE_DLFCN_H
23490 #ifdef HAVE_REGEX_H
23493 #ifdef HAVE_SYSLOG_H
23494 #include <syslog.h>
23496 #ifdef HAVE_INTTYPES_H
23497 #include <inttypes.h>
23499 #ifdef HAVE_STDINT_H
23500 #include <stdint.h>
23502 #ifdef HAVE_ARPA_INET_H
23503 #include <arpa/inet.h>
23509 char *(*pfn) = (char *(*)) $ac_func
23514 rm -f conftest.$ac_objext
23515 if { (ac_try="$ac_compile"
23516 case "(($ac_try" in
23517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23518 *) ac_try_echo=$ac_try;;
23520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23521 (eval "$ac_compile") 2>conftest.er1
23523 grep -v '^ *+' conftest.er1 >conftest.err
23525 cat conftest.err >&5
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); } &&
23528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23529 { (case "(($ac_try" in
23530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23531 *) ac_try_echo=$ac_try;;
23533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23534 (eval "$ac_try") 2>&5
23536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537 (exit $ac_status); }; } &&
23538 { ac_try='test -s conftest.$ac_objext'
23539 { (case "(($ac_try" in
23540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23541 *) ac_try_echo=$ac_try;;
23543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23544 (eval "$ac_try") 2>&5
23546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547 (exit $ac_status); }; }; then
23548 eval "radius_cv_decl_needed_$ac_func=no"
23550 echo "$as_me: failed program was:" >&5
23551 sed 's/^/| /' conftest.$ac_ext >&5
23553 eval "radius_cv_decl_needed_$ac_func=yes"
23556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23559 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23560 { echo "$as_me:$LINENO: result: yes" >&5
23561 echo "${ECHO_T}yes" >&6; }
23562 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23563 cat >>confdefs.h <<_ACEOF
23564 #define $radius_tr_decl 1
23568 { echo "$as_me:$LINENO: result: no" >&5
23569 echo "${ECHO_T}no" >&6; }
23575 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23576 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
23577 if test "${ac_cv_type_signal+set}" = set; then
23578 echo $ECHO_N "(cached) $ECHO_C" >&6
23580 cat >conftest.$ac_ext <<_ACEOF
23583 cat confdefs.h >>conftest.$ac_ext
23584 cat >>conftest.$ac_ext <<_ACEOF
23585 /* end confdefs.h. */
23586 #include <sys/types.h>
23587 #include <signal.h>
23592 return *(signal (0, 0)) (0) == 1;
23597 rm -f conftest.$ac_objext
23598 if { (ac_try="$ac_compile"
23599 case "(($ac_try" in
23600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23601 *) ac_try_echo=$ac_try;;
23603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23604 (eval "$ac_compile") 2>conftest.er1
23606 grep -v '^ *+' conftest.er1 >conftest.err
23608 cat conftest.err >&5
23609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610 (exit $ac_status); } &&
23611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23612 { (case "(($ac_try" in
23613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23614 *) ac_try_echo=$ac_try;;
23616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23617 (eval "$ac_try") 2>&5
23619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); }; } &&
23621 { ac_try='test -s conftest.$ac_objext'
23622 { (case "(($ac_try" in
23623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23624 *) ac_try_echo=$ac_try;;
23626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23627 (eval "$ac_try") 2>&5
23629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630 (exit $ac_status); }; }; then
23631 ac_cv_type_signal=int
23633 echo "$as_me: failed program was:" >&5
23634 sed 's/^/| /' conftest.$ac_ext >&5
23636 ac_cv_type_signal=void
23639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23641 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23642 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
23644 cat >>confdefs.h <<_ACEOF
23645 #define RETSIGTYPE $ac_cv_type_signal
23650 if test "x$ac_cv_header_utmpx_h" = "xyes"
23653 { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23654 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
23657 cat >conftest.$ac_ext <<_ACEOF
23660 cat confdefs.h >>conftest.$ac_ext
23661 cat >>conftest.$ac_ext <<_ACEOF
23662 /* end confdefs.h. */
23666 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23672 int foo = offsetof(struct utmpx, ut_xtime)
23677 rm -f conftest.$ac_objext
23678 if { (ac_try="$ac_compile"
23679 case "(($ac_try" in
23680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23681 *) ac_try_echo=$ac_try;;
23683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23684 (eval "$ac_compile") 2>conftest.er1
23686 grep -v '^ *+' conftest.er1 >conftest.err
23688 cat conftest.err >&5
23689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690 (exit $ac_status); } &&
23691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23692 { (case "(($ac_try" in
23693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23694 *) ac_try_echo=$ac_try;;
23696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23697 (eval "$ac_try") 2>&5
23699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700 (exit $ac_status); }; } &&
23701 { ac_try='test -s conftest.$ac_objext'
23702 { (case "(($ac_try" in
23703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23704 *) ac_try_echo=$ac_try;;
23706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23707 (eval "$ac_try") 2>&5
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); }; }; then
23713 echo "$as_me: failed program was:" >&5
23714 sed 's/^/| /' conftest.$ac_ext >&5
23719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23721 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23722 if test "x$has_element" != "x"; then
23723 { echo "$as_me:$LINENO: result: yes" >&5
23724 echo "${ECHO_T}yes" >&6; }
23725 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23727 { echo "$as_me:$LINENO: result: no" >&5
23728 echo "${ECHO_T}no" >&6; }
23729 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23732 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23734 cat >>confdefs.h <<\_ACEOF
23735 #define ut_xtime ut_tv.tv_sec
23742 { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23743 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
23746 cat >conftest.$ac_ext <<_ACEOF
23749 cat confdefs.h >>conftest.$ac_ext
23750 cat >>conftest.$ac_ext <<_ACEOF
23751 /* end confdefs.h. */
23753 #include <netinet/in.h>
23755 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23761 int foo = offsetof(struct in_pktinfo, ipi_addr)
23766 rm -f conftest.$ac_objext
23767 if { (ac_try="$ac_compile"
23768 case "(($ac_try" in
23769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23770 *) ac_try_echo=$ac_try;;
23772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23773 (eval "$ac_compile") 2>conftest.er1
23775 grep -v '^ *+' conftest.er1 >conftest.err
23777 cat conftest.err >&5
23778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779 (exit $ac_status); } &&
23780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23781 { (case "(($ac_try" in
23782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23783 *) ac_try_echo=$ac_try;;
23785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23786 (eval "$ac_try") 2>&5
23788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); }; } &&
23790 { ac_try='test -s conftest.$ac_objext'
23791 { (case "(($ac_try" in
23792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23793 *) ac_try_echo=$ac_try;;
23795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23796 (eval "$ac_try") 2>&5
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); }; }; then
23802 echo "$as_me: failed program was:" >&5
23803 sed 's/^/| /' conftest.$ac_ext >&5
23808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23810 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23811 if test "x$has_element" != "x"; then
23812 { echo "$as_me:$LINENO: result: yes" >&5
23813 echo "${ECHO_T}yes" >&6; }
23814 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23816 { echo "$as_me:$LINENO: result: no" >&5
23817 echo "${ECHO_T}no" >&6; }
23818 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23821 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23823 cat >>confdefs.h <<\_ACEOF
23824 #define HAVE_IP_PKTINFO 1
23830 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23831 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23832 if test "${ac_cv_c_const+set}" = set; then
23833 echo $ECHO_N "(cached) $ECHO_C" >&6
23835 cat >conftest.$ac_ext <<_ACEOF
23838 cat confdefs.h >>conftest.$ac_ext
23839 cat >>conftest.$ac_ext <<_ACEOF
23840 /* end confdefs.h. */
23845 /* FIXME: Include the comments suggested by Paul. */
23846 #ifndef __cplusplus
23847 /* Ultrix mips cc rejects this. */
23848 typedef int charset[2];
23850 /* SunOS 4.1.1 cc rejects this. */
23851 char const *const *ccp;
23853 /* NEC SVR4.0.2 mips cc rejects this. */
23854 struct point {int x, y;};
23855 static struct point const zero = {0,0};
23856 /* AIX XL C 1.02.0.0 rejects this.
23857 It does not let you subtract one const X* pointer from another in
23858 an arm of an if-expression whose if-part is not a constant
23860 const char *g = "string";
23861 ccp = &g + (g ? g-g : 0);
23862 /* HPUX 7.0 cc rejects these. */
23865 ccp = (char const *const *) p;
23866 { /* SCO 3.2v4 cc rejects this. */
23868 char const *s = 0 ? (char *) 0 : (char const *) 0;
23873 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23874 int x[] = {25, 17};
23875 const int *foo = &x[0];
23878 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23879 typedef const int *iptr;
23883 { /* AIX XL C 1.02.0.0 rejects this saying
23884 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23885 struct s { int j; const int *ap[3]; };
23886 struct s *b; b->j = 5;
23888 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23889 const int foo = 10;
23890 if (!foo) return 0;
23892 return !x[0] && !zero.x;
23899 rm -f conftest.$ac_objext
23900 if { (ac_try="$ac_compile"
23901 case "(($ac_try" in
23902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23903 *) ac_try_echo=$ac_try;;
23905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23906 (eval "$ac_compile") 2>conftest.er1
23908 grep -v '^ *+' conftest.er1 >conftest.err
23910 cat conftest.err >&5
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); } &&
23913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23914 { (case "(($ac_try" in
23915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23916 *) ac_try_echo=$ac_try;;
23918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23919 (eval "$ac_try") 2>&5
23921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922 (exit $ac_status); }; } &&
23923 { ac_try='test -s conftest.$ac_objext'
23924 { (case "(($ac_try" in
23925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23926 *) ac_try_echo=$ac_try;;
23928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23929 (eval "$ac_try") 2>&5
23931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932 (exit $ac_status); }; }; then
23935 echo "$as_me: failed program was:" >&5
23936 sed 's/^/| /' conftest.$ac_ext >&5
23941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23943 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23944 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23945 if test $ac_cv_c_const = no; then
23947 cat >>confdefs.h <<\_ACEOF
23954 { echo "$as_me:$LINENO: checking type of OS" >&5
23955 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
23957 { echo "$as_me:$LINENO: result: $OS" >&5
23958 echo "${ECHO_T}$OS" >&6; }
23959 if test "$OS" = "OS/2"; then
23966 if test "x$GCC" = "xyes"; then
23967 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
23970 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
23971 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
23972 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
23973 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
23974 CFLAGS="$CFLAGS $devflags"
23976 { echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
23977 echo "${ECHO_T}yes. Using $devflags" >&6; }
23980 CFLAGS="$CFLAGS -DNDEBUG"
23982 { echo "$as_me:$LINENO: result: no." >&5
23983 echo "${ECHO_T}no." >&6; }
23987 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23988 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
23989 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23990 echo $ECHO_N "(cached) $ECHO_C" >&6
23992 ac_check_lib_save_LIBS=$LIBS
23993 LIBS="-lcrypt $LIBS"
23994 cat >conftest.$ac_ext <<_ACEOF
23997 cat confdefs.h >>conftest.$ac_ext
23998 cat >>conftest.$ac_ext <<_ACEOF
23999 /* end confdefs.h. */
24001 /* Override any GCC internal prototype to avoid an error.
24002 Use char because int might match the return type of a GCC
24003 builtin and then its argument prototype would still apply. */
24016 rm -f conftest.$ac_objext conftest$ac_exeext
24017 if { (ac_try="$ac_link"
24018 case "(($ac_try" in
24019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24020 *) ac_try_echo=$ac_try;;
24022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24023 (eval "$ac_link") 2>conftest.er1
24025 grep -v '^ *+' conftest.er1 >conftest.err
24027 cat conftest.err >&5
24028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029 (exit $ac_status); } &&
24030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24031 { (case "(($ac_try" in
24032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24033 *) ac_try_echo=$ac_try;;
24035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24036 (eval "$ac_try") 2>&5
24038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039 (exit $ac_status); }; } &&
24040 { ac_try='test -s conftest$ac_exeext'
24041 { (case "(($ac_try" in
24042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24043 *) ac_try_echo=$ac_try;;
24045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24046 (eval "$ac_try") 2>&5
24048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049 (exit $ac_status); }; }; then
24050 ac_cv_lib_crypt_crypt=yes
24052 echo "$as_me: failed program was:" >&5
24053 sed 's/^/| /' conftest.$ac_ext >&5
24055 ac_cv_lib_crypt_crypt=no
24058 rm -f core conftest.err conftest.$ac_objext \
24059 conftest$ac_exeext conftest.$ac_ext
24060 LIBS=$ac_check_lib_save_LIBS
24062 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
24063 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
24064 if test $ac_cv_lib_crypt_crypt = yes; then
24069 if test "$CRYPTLIB" != ""; then
24070 cat >>confdefs.h <<\_ACEOF
24071 #define HAVE_CRYPT 1
24075 { echo "$as_me:$LINENO: checking for crypt" >&5
24076 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
24077 if test "${ac_cv_func_crypt+set}" = set; then
24078 echo $ECHO_N "(cached) $ECHO_C" >&6
24080 cat >conftest.$ac_ext <<_ACEOF
24083 cat confdefs.h >>conftest.$ac_ext
24084 cat >>conftest.$ac_ext <<_ACEOF
24085 /* end confdefs.h. */
24086 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
24087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24088 #define crypt innocuous_crypt
24090 /* System header to define __stub macros and hopefully few prototypes,
24091 which can conflict with char crypt (); below.
24092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24093 <limits.h> exists even on freestanding compilers. */
24096 # include <limits.h>
24098 # include <assert.h>
24103 /* Override any GCC internal prototype to avoid an error.
24104 Use char because int might match the return type of a GCC
24105 builtin and then its argument prototype would still apply. */
24110 /* The GNU C library defines this for functions which it implements
24111 to always fail with ENOSYS. Some functions are actually named
24112 something starting with __ and the normal name is an alias. */
24113 #if defined __stub_crypt || defined __stub___crypt
24125 rm -f conftest.$ac_objext conftest$ac_exeext
24126 if { (ac_try="$ac_link"
24127 case "(($ac_try" in
24128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24129 *) ac_try_echo=$ac_try;;
24131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24132 (eval "$ac_link") 2>conftest.er1
24134 grep -v '^ *+' conftest.er1 >conftest.err
24136 cat conftest.err >&5
24137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138 (exit $ac_status); } &&
24139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24140 { (case "(($ac_try" in
24141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24142 *) ac_try_echo=$ac_try;;
24144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24145 (eval "$ac_try") 2>&5
24147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148 (exit $ac_status); }; } &&
24149 { ac_try='test -s conftest$ac_exeext'
24150 { (case "(($ac_try" in
24151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24152 *) ac_try_echo=$ac_try;;
24154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24155 (eval "$ac_try") 2>&5
24157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158 (exit $ac_status); }; }; then
24159 ac_cv_func_crypt=yes
24161 echo "$as_me: failed program was:" >&5
24162 sed 's/^/| /' conftest.$ac_ext >&5
24164 ac_cv_func_crypt=no
24167 rm -f core conftest.err conftest.$ac_objext \
24168 conftest$ac_exeext conftest.$ac_ext
24170 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
24171 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
24172 if test $ac_cv_func_crypt = yes; then
24173 cat >>confdefs.h <<\_ACEOF
24174 #define HAVE_CRYPT 1
24181 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
24182 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
24183 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
24184 echo $ECHO_N "(cached) $ECHO_C" >&6
24186 ac_check_lib_save_LIBS=$LIBS
24187 LIBS="-lcipher $LIBS"
24188 cat >conftest.$ac_ext <<_ACEOF
24191 cat confdefs.h >>conftest.$ac_ext
24192 cat >>conftest.$ac_ext <<_ACEOF
24193 /* end confdefs.h. */
24195 /* Override any GCC internal prototype to avoid an error.
24196 Use char because int might match the return type of a GCC
24197 builtin and then its argument prototype would still apply. */
24210 rm -f conftest.$ac_objext conftest$ac_exeext
24211 if { (ac_try="$ac_link"
24212 case "(($ac_try" in
24213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24214 *) ac_try_echo=$ac_try;;
24216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24217 (eval "$ac_link") 2>conftest.er1
24219 grep -v '^ *+' conftest.er1 >conftest.err
24221 cat conftest.err >&5
24222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24223 (exit $ac_status); } &&
24224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24225 { (case "(($ac_try" in
24226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24227 *) ac_try_echo=$ac_try;;
24229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24230 (eval "$ac_try") 2>&5
24232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24233 (exit $ac_status); }; } &&
24234 { ac_try='test -s conftest$ac_exeext'
24235 { (case "(($ac_try" in
24236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24237 *) ac_try_echo=$ac_try;;
24239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24240 (eval "$ac_try") 2>&5
24242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24243 (exit $ac_status); }; }; then
24244 ac_cv_lib_cipher_setkey=yes
24246 echo "$as_me: failed program was:" >&5
24247 sed 's/^/| /' conftest.$ac_ext >&5
24249 ac_cv_lib_cipher_setkey=no
24252 rm -f core conftest.err conftest.$ac_objext \
24253 conftest$ac_exeext conftest.$ac_ext
24254 LIBS=$ac_check_lib_save_LIBS
24256 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
24257 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
24258 if test $ac_cv_lib_cipher_setkey = yes; then
24259 CRYPTLIB="${CRYPTLIB} -lcipher"
24265 if test "x$WITH_SNMP" = "xyes"; then
24270 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
24271 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
24273 cat >conftest.$ac_ext <<_ACEOF
24276 cat confdefs.h >>conftest.$ac_ext
24277 cat >>conftest.$ac_ext <<_ACEOF
24278 /* end confdefs.h. */
24280 #ifdef HAVE_SYS_TYPES_H
24281 #include <sys/types.h>
24283 #ifdef HAVE_STDINT_H
24284 #include <stdint.h>
24286 #ifdef HAVE_STDIO_H
24289 #ifdef HAVE_NETDB_H
24292 #ifdef HAVE_UNISTD_H
24293 #include <unistd.h>
24295 #include <ucd-snmp/ucd-snmp-config.h>
24296 #include <ucd-snmp/asn1.h>
24297 #include <ucd-snmp/snmp.h>
24298 #include <ucd-snmp/snmp_impl.h>
24307 rm -f conftest.$ac_objext
24308 if { (ac_try="$ac_compile"
24309 case "(($ac_try" in
24310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24311 *) ac_try_echo=$ac_try;;
24313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24314 (eval "$ac_compile") 2>conftest.er1
24316 grep -v '^ *+' conftest.er1 >conftest.err
24318 cat conftest.err >&5
24319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320 (exit $ac_status); } &&
24321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24322 { (case "(($ac_try" in
24323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324 *) ac_try_echo=$ac_try;;
24326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327 (eval "$ac_try") 2>&5
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; } &&
24331 { ac_try='test -s conftest.$ac_objext'
24332 { (case "(($ac_try" in
24333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334 *) ac_try_echo=$ac_try;;
24336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24337 (eval "$ac_try") 2>&5
24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); }; }; then
24341 SNMP_INCLUDE="";ucdsnmp=yes
24343 echo "$as_me: failed program was:" >&5
24344 sed 's/^/| /' conftest.$ac_ext >&5
24349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24351 if test "x$ucdsnmp" = "x"; then
24352 old_CFLAGS="$CFLAGS"
24353 for try in /usr/include /usr/local/include $with_snmp_include_dir; do
24354 CFLAGS="$old_CFLAGS -I$try"
24355 cat >conftest.$ac_ext <<_ACEOF
24358 cat confdefs.h >>conftest.$ac_ext
24359 cat >>conftest.$ac_ext <<_ACEOF
24360 /* end confdefs.h. */
24362 #ifdef HAVE_SYS_TYPES_H
24363 #include <sys/types.h>
24365 #ifdef HAVE_STDINT_H
24366 #include <stdint.h>
24368 #ifdef HAVE_STDIO_H
24371 #ifdef HAVE_NETDB_H
24374 #ifdef HAVE_UNISTD_H
24375 #include <unistd.h>
24377 #include <ucd-snmp/ucd-snmp-config.h>
24378 #include <ucd-snmp/asn1.h>
24379 #include <ucd-snmp/snmp.h>
24380 #include <ucd-snmp/snmp_impl.h>
24389 rm -f conftest.$ac_objext
24390 if { (ac_try="$ac_compile"
24391 case "(($ac_try" in
24392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24393 *) ac_try_echo=$ac_try;;
24395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24396 (eval "$ac_compile") 2>conftest.er1
24398 grep -v '^ *+' conftest.er1 >conftest.err
24400 cat conftest.err >&5
24401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402 (exit $ac_status); } &&
24403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24404 { (case "(($ac_try" in
24405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24406 *) ac_try_echo=$ac_try;;
24408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24409 (eval "$ac_try") 2>&5
24411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412 (exit $ac_status); }; } &&
24413 { ac_try='test -s conftest.$ac_objext'
24414 { (case "(($ac_try" in
24415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24416 *) ac_try_echo=$ac_try;;
24418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24419 (eval "$ac_try") 2>&5
24421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422 (exit $ac_status); }; }; then
24423 SNMP_INCLUDE="-I$try";ucdsnmp=yes
24425 echo "$as_me: failed program was:" >&5
24426 sed 's/^/| /' conftest.$ac_ext >&5
24431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24432 if test "x$ucdsnmp" != "x"; then
24436 CFLAGS="$old_CFLAGS"
24439 if test "x$ucdsnmp" = "x"; then
24440 old_CFLAGS="$CFLAGS"
24441 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
24442 CFLAGS="$old_CFLAGS -I$try"
24443 cat >conftest.$ac_ext <<_ACEOF
24446 cat confdefs.h >>conftest.$ac_ext
24447 cat >>conftest.$ac_ext <<_ACEOF
24448 /* end confdefs.h. */
24450 #ifdef HAVE_SYS_TYPES_H
24451 #include <sys/types.h>
24453 #ifdef HAVE_STDINT_H
24454 #include <stdint.h>
24456 #ifdef HAVE_STDIO_H
24459 #ifdef HAVE_NETDB_H
24462 #ifdef HAVE_UNISTD_H
24463 #include <unistd.h>
24467 #include <snmp_impl.h>
24476 rm -f conftest.$ac_objext
24477 if { (ac_try="$ac_compile"
24478 case "(($ac_try" in
24479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24480 *) ac_try_echo=$ac_try;;
24482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24483 (eval "$ac_compile") 2>conftest.er1
24485 grep -v '^ *+' conftest.er1 >conftest.err
24487 cat conftest.err >&5
24488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489 (exit $ac_status); } &&
24490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24491 { (case "(($ac_try" in
24492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24493 *) ac_try_echo=$ac_try;;
24495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24496 (eval "$ac_try") 2>&5
24498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499 (exit $ac_status); }; } &&
24500 { ac_try='test -s conftest.$ac_objext'
24501 { (case "(($ac_try" in
24502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24503 *) ac_try_echo=$ac_try;;
24505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24506 (eval "$ac_try") 2>&5
24508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509 (exit $ac_status); }; }; then
24510 SNMP_INCLUDE="";ucdsnmp=no
24512 echo "$as_me: failed program was:" >&5
24513 sed 's/^/| /' conftest.$ac_ext >&5
24518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24519 if test "x$ucdsnmp" != "x"; then
24523 CFLAGS="$old_CFLAGS"
24526 if test "x$ucdsnmp" = "x"; then
24527 old_CFLAGS="$CFLAGS"
24528 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
24529 CFLAGS="$old_CFLAGS -I$try"
24530 cat >conftest.$ac_ext <<_ACEOF
24533 cat confdefs.h >>conftest.$ac_ext
24534 cat >>conftest.$ac_ext <<_ACEOF
24535 /* end confdefs.h. */
24537 #ifdef HAVE_SYS_TYPES_H
24538 #include <sys/types.h>
24540 #ifdef HAVE_STDINT_H
24541 #include <stdint.h>
24543 #ifdef HAVE_STDIO_H
24546 #ifdef HAVE_NETDB_H
24549 #ifdef HAVE_UNISTD_H
24550 #include <unistd.h>
24554 #include <snmp_impl.h>
24563 rm -f conftest.$ac_objext
24564 if { (ac_try="$ac_compile"
24565 case "(($ac_try" in
24566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24567 *) ac_try_echo=$ac_try;;
24569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24570 (eval "$ac_compile") 2>conftest.er1
24572 grep -v '^ *+' conftest.er1 >conftest.err
24574 cat conftest.err >&5
24575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); } &&
24577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24578 { (case "(($ac_try" in
24579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24580 *) ac_try_echo=$ac_try;;
24582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24583 (eval "$ac_try") 2>&5
24585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586 (exit $ac_status); }; } &&
24587 { ac_try='test -s conftest.$ac_objext'
24588 { (case "(($ac_try" in
24589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24590 *) ac_try_echo=$ac_try;;
24592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24593 (eval "$ac_try") 2>&5
24595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596 (exit $ac_status); }; }; then
24597 SNMP_INCLUDE="-I$try";ucdsnmp=no
24599 echo "$as_me: failed program was:" >&5
24600 sed 's/^/| /' conftest.$ac_ext >&5
24605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24606 if test "x$ucdsnmp" != "x"; then
24610 CFLAGS="$old_CFLAGS"
24613 if test "x$ucdsnmp" = "x"; then
24614 { echo "$as_me:$LINENO: result: no" >&5
24615 echo "${ECHO_T}no" >&6; }
24617 if test "x$ucdsnmp" = "xyes"; then
24618 { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
24619 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
24620 cat >>confdefs.h <<\_ACEOF
24621 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
24625 { echo "$as_me:$LINENO: result: yes" >&5
24626 echo "${ECHO_T}yes" >&6; }
24627 cat >>confdefs.h <<\_ACEOF
24628 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
24632 { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
24633 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
24636 LIBS="$old_LIBS -lsnmp"
24637 cat >conftest.$ac_ext <<_ACEOF
24640 cat confdefs.h >>conftest.$ac_ext
24641 cat >>conftest.$ac_ext <<_ACEOF
24642 /* end confdefs.h. */
24643 extern char snmp_build_var_op();
24647 snmp_build_var_op()
24652 rm -f conftest.$ac_objext conftest$ac_exeext
24653 if { (ac_try="$ac_link"
24654 case "(($ac_try" in
24655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24656 *) ac_try_echo=$ac_try;;
24658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24659 (eval "$ac_link") 2>conftest.er1
24661 grep -v '^ *+' conftest.er1 >conftest.err
24663 cat conftest.err >&5
24664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); } &&
24666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24667 { (case "(($ac_try" in
24668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24669 *) ac_try_echo=$ac_try;;
24671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24672 (eval "$ac_try") 2>&5
24674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675 (exit $ac_status); }; } &&
24676 { ac_try='test -s conftest$ac_exeext'
24677 { (case "(($ac_try" in
24678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24679 *) ac_try_echo=$ac_try;;
24681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24682 (eval "$ac_try") 2>&5
24684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); }; }; then
24688 echo "$as_me: failed program was:" >&5
24689 sed 's/^/| /' conftest.$ac_ext >&5
24694 rm -f core conftest.err conftest.$ac_objext \
24695 conftest$ac_exeext conftest.$ac_ext
24697 if test "x$SNMP_LIBS" = "x"; then
24698 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
24699 LIBS="$old_LIBS -L$try -lsnmp"
24700 cat >conftest.$ac_ext <<_ACEOF
24703 cat confdefs.h >>conftest.$ac_ext
24704 cat >>conftest.$ac_ext <<_ACEOF
24705 /* end confdefs.h. */
24706 extern char snmp_build_var_op();
24710 snmp_build_var_op()
24715 rm -f conftest.$ac_objext conftest$ac_exeext
24716 if { (ac_try="$ac_link"
24717 case "(($ac_try" in
24718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24719 *) ac_try_echo=$ac_try;;
24721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24722 (eval "$ac_link") 2>conftest.er1
24724 grep -v '^ *+' conftest.er1 >conftest.err
24726 cat conftest.err >&5
24727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728 (exit $ac_status); } &&
24729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24730 { (case "(($ac_try" in
24731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24732 *) ac_try_echo=$ac_try;;
24734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24735 (eval "$ac_try") 2>&5
24737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738 (exit $ac_status); }; } &&
24739 { ac_try='test -s conftest$ac_exeext'
24740 { (case "(($ac_try" in
24741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24742 *) ac_try_echo=$ac_try;;
24744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24745 (eval "$ac_try") 2>&5
24747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748 (exit $ac_status); }; }; then
24749 SNMP_LIBS="-L$try -lsnmp"
24751 echo "$as_me: failed program was:" >&5
24752 sed 's/^/| /' conftest.$ac_ext >&5
24757 rm -f core conftest.err conftest.$ac_objext \
24758 conftest$ac_exeext conftest.$ac_ext
24759 if test "x$SNMP_LIBS" != "x"; then
24762 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24763 cat >conftest.$ac_ext <<_ACEOF
24766 cat confdefs.h >>conftest.$ac_ext
24767 cat >>conftest.$ac_ext <<_ACEOF
24768 /* end confdefs.h. */
24769 extern char snmp_build_var_op();
24773 snmp_build_var_op()
24778 rm -f conftest.$ac_objext conftest$ac_exeext
24779 if { (ac_try="$ac_link"
24780 case "(($ac_try" in
24781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24782 *) ac_try_echo=$ac_try;;
24784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24785 (eval "$ac_link") 2>conftest.er1
24787 grep -v '^ *+' conftest.er1 >conftest.err
24789 cat conftest.err >&5
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); } &&
24792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24793 { (case "(($ac_try" in
24794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24795 *) ac_try_echo=$ac_try;;
24797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24798 (eval "$ac_try") 2>&5
24800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); }; } &&
24802 { ac_try='test -s conftest$ac_exeext'
24803 { (case "(($ac_try" in
24804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24805 *) ac_try_echo=$ac_try;;
24807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24808 (eval "$ac_try") 2>&5
24810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811 (exit $ac_status); }; }; then
24812 SNMP_LIBS="-L$try -lsnmp -lcrypto"
24814 echo "$as_me: failed program was:" >&5
24815 sed 's/^/| /' conftest.$ac_ext >&5
24820 rm -f core conftest.err conftest.$ac_objext \
24821 conftest$ac_exeext conftest.$ac_ext
24822 if test "x$SNMP_LIBS" != "x"; then
24825 LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
24826 cat >conftest.$ac_ext <<_ACEOF
24829 cat confdefs.h >>conftest.$ac_ext
24830 cat >>conftest.$ac_ext <<_ACEOF
24831 /* end confdefs.h. */
24832 extern char snmp_build_var_op();
24836 snmp_build_var_op()
24841 rm -f conftest.$ac_objext conftest$ac_exeext
24842 if { (ac_try="$ac_link"
24843 case "(($ac_try" in
24844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24845 *) ac_try_echo=$ac_try;;
24847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24848 (eval "$ac_link") 2>conftest.er1
24850 grep -v '^ *+' conftest.er1 >conftest.err
24852 cat conftest.err >&5
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); } &&
24855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24856 { (case "(($ac_try" in
24857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24858 *) ac_try_echo=$ac_try;;
24860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24861 (eval "$ac_try") 2>&5
24863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); }; } &&
24865 { ac_try='test -s conftest$ac_exeext'
24866 { (case "(($ac_try" in
24867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24868 *) ac_try_echo=$ac_try;;
24870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24871 (eval "$ac_try") 2>&5
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); }; }; then
24875 SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
24877 echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.$ac_ext >&5
24883 rm -f core conftest.err conftest.$ac_objext \
24884 conftest$ac_exeext conftest.$ac_ext
24885 if test "x$SNMP_LIBS" != "x"; then
24892 CFLAGS="$old_CFLAGS"
24893 if test "x$SNMP_LIBS" = "x"; then
24894 { echo "$as_me:$LINENO: result: no" >&5
24895 echo "${ECHO_T}no" >&6; }
24898 { echo "$as_me:$LINENO: result: yes" >&5
24899 echo "${ECHO_T}yes" >&6; }
24900 cat >>confdefs.h <<\_ACEOF
24901 #define WITH_SNMP 1
24904 cat >>confdefs.h <<\_ACEOF
24905 #define HAVE_LIBSNMP 1
24913 gethostbyaddrrstyle=""
24914 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24915 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
24918 cat >>confdefs.h <<\_ACEOF
24919 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24922 gethostbyaddrrstyle=BSD
24923 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24924 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24927 if test "x$gethostbyaddrrstyle" = "x"; then
24928 cat >conftest.$ac_ext <<_ACEOF
24931 cat confdefs.h >>conftest.$ac_ext
24932 cat >>conftest.$ac_ext <<_ACEOF
24933 /* end confdefs.h. */
24941 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24946 rm -f conftest.$ac_objext conftest$ac_exeext
24947 if { (ac_try="$ac_link"
24948 case "(($ac_try" in
24949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24950 *) ac_try_echo=$ac_try;;
24952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24953 (eval "$ac_link") 2>conftest.er1
24955 grep -v '^ *+' conftest.er1 >conftest.err
24957 cat conftest.err >&5
24958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959 (exit $ac_status); } &&
24960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24961 { (case "(($ac_try" in
24962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24963 *) ac_try_echo=$ac_try;;
24965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24966 (eval "$ac_try") 2>&5
24968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969 (exit $ac_status); }; } &&
24970 { ac_try='test -s conftest$ac_exeext'
24971 { (case "(($ac_try" in
24972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24973 *) ac_try_echo=$ac_try;;
24975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24976 (eval "$ac_try") 2>&5
24978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); }; }; then
24981 cat >>confdefs.h <<\_ACEOF
24982 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24985 gethostbyaddrrstyle=GNU
24988 echo "$as_me: failed program was:" >&5
24989 sed 's/^/| /' conftest.$ac_ext >&5
24994 rm -f core conftest.err conftest.$ac_objext \
24995 conftest$ac_exeext conftest.$ac_ext
24997 if test "x$gethostbyaddrrstyle" = "x"; then
24998 cat >conftest.$ac_ext <<_ACEOF
25001 cat confdefs.h >>conftest.$ac_ext
25002 cat >>conftest.$ac_ext <<_ACEOF
25003 /* end confdefs.h. */
25011 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
25016 rm -f conftest.$ac_objext conftest$ac_exeext
25017 if { (ac_try="$ac_link"
25018 case "(($ac_try" in
25019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25020 *) ac_try_echo=$ac_try;;
25022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25023 (eval "$ac_link") 2>conftest.er1
25025 grep -v '^ *+' conftest.er1 >conftest.err
25027 cat conftest.err >&5
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); } &&
25030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25031 { (case "(($ac_try" in
25032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25033 *) ac_try_echo=$ac_try;;
25035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25036 (eval "$ac_try") 2>&5
25038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039 (exit $ac_status); }; } &&
25040 { ac_try='test -s conftest$ac_exeext'
25041 { (case "(($ac_try" in
25042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043 *) ac_try_echo=$ac_try;;
25045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25046 (eval "$ac_try") 2>&5
25048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049 (exit $ac_status); }; }; then
25051 cat >>confdefs.h <<\_ACEOF
25052 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
25055 gethostbyaddrrstyle=SYSV
25058 echo "$as_me: failed program was:" >&5
25059 sed 's/^/| /' conftest.$ac_ext >&5
25064 rm -f core conftest.err conftest.$ac_objext \
25065 conftest$ac_exeext conftest.$ac_ext
25067 if test "x$gethostbyaddrrstyle" = "x"; then
25068 cat >conftest.$ac_ext <<_ACEOF
25071 cat confdefs.h >>conftest.$ac_ext
25072 cat >>conftest.$ac_ext <<_ACEOF
25073 /* end confdefs.h. */
25081 gethostbyaddr(NULL, 0, 0)
25086 rm -f conftest.$ac_objext conftest$ac_exeext
25087 if { (ac_try="$ac_link"
25088 case "(($ac_try" in
25089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25090 *) ac_try_echo=$ac_try;;
25092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25093 (eval "$ac_link") 2>conftest.er1
25095 grep -v '^ *+' conftest.er1 >conftest.err
25097 cat conftest.err >&5
25098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099 (exit $ac_status); } &&
25100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25101 { (case "(($ac_try" in
25102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25103 *) ac_try_echo=$ac_try;;
25105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25106 (eval "$ac_try") 2>&5
25108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); }; } &&
25110 { ac_try='test -s conftest$ac_exeext'
25111 { (case "(($ac_try" in
25112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25113 *) ac_try_echo=$ac_try;;
25115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25116 (eval "$ac_try") 2>&5
25118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); }; }; then
25121 cat >>confdefs.h <<\_ACEOF
25122 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25125 gethostbyaddrrstyle=BSD
25128 echo "$as_me: failed program was:" >&5
25129 sed 's/^/| /' conftest.$ac_ext >&5
25134 rm -f core conftest.err conftest.$ac_objext \
25135 conftest$ac_exeext conftest.$ac_ext
25138 if test "x$gethostbyaddrrstyle" = "x"; then
25139 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25140 echo "${ECHO_T}none! It must not exist, here." >&6; }
25142 { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
25143 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
25146 if test "x$gethostbyaddrrstyle" = "xBSD"; then
25147 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
25148 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
25151 gethostbynamerstyle=""
25152 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
25153 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
25154 cat >conftest.$ac_ext <<_ACEOF
25157 cat confdefs.h >>conftest.$ac_ext
25158 cat >>conftest.$ac_ext <<_ACEOF
25159 /* end confdefs.h. */
25167 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
25172 rm -f conftest.$ac_objext conftest$ac_exeext
25173 if { (ac_try="$ac_link"
25174 case "(($ac_try" in
25175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25176 *) ac_try_echo=$ac_try;;
25178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25179 (eval "$ac_link") 2>conftest.er1
25181 grep -v '^ *+' conftest.er1 >conftest.err
25183 cat conftest.err >&5
25184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185 (exit $ac_status); } &&
25186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25187 { (case "(($ac_try" in
25188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25189 *) ac_try_echo=$ac_try;;
25191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25192 (eval "$ac_try") 2>&5
25194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195 (exit $ac_status); }; } &&
25196 { ac_try='test -s conftest$ac_exeext'
25197 { (case "(($ac_try" in
25198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25199 *) ac_try_echo=$ac_try;;
25201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25202 (eval "$ac_try") 2>&5
25204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205 (exit $ac_status); }; }; then
25207 cat >>confdefs.h <<\_ACEOF
25208 #define GETHOSTBYNAMERSTYLE GNUSTYLE
25211 gethostbynamerstyle=GNU
25214 echo "$as_me: failed program was:" >&5
25215 sed 's/^/| /' conftest.$ac_ext >&5
25220 rm -f core conftest.err conftest.$ac_objext \
25221 conftest$ac_exeext conftest.$ac_ext
25222 if test "x$gethostbynamerstyle" = "x"; then
25223 cat >conftest.$ac_ext <<_ACEOF
25226 cat confdefs.h >>conftest.$ac_ext
25227 cat >>conftest.$ac_ext <<_ACEOF
25228 /* end confdefs.h. */
25236 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25241 rm -f conftest.$ac_objext conftest$ac_exeext
25242 if { (ac_try="$ac_link"
25243 case "(($ac_try" in
25244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25245 *) ac_try_echo=$ac_try;;
25247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25248 (eval "$ac_link") 2>conftest.er1
25250 grep -v '^ *+' conftest.er1 >conftest.err
25252 cat conftest.err >&5
25253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254 (exit $ac_status); } &&
25255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25256 { (case "(($ac_try" in
25257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25258 *) ac_try_echo=$ac_try;;
25260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25261 (eval "$ac_try") 2>&5
25263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264 (exit $ac_status); }; } &&
25265 { ac_try='test -s conftest$ac_exeext'
25266 { (case "(($ac_try" in
25267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25268 *) ac_try_echo=$ac_try;;
25270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25271 (eval "$ac_try") 2>&5
25273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25274 (exit $ac_status); }; }; then
25276 cat >>confdefs.h <<\_ACEOF
25277 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25280 gethostbynamerstyle=SYSV
25283 echo "$as_me: failed program was:" >&5
25284 sed 's/^/| /' conftest.$ac_ext >&5
25289 rm -f core conftest.err conftest.$ac_objext \
25290 conftest$ac_exeext conftest.$ac_ext
25292 if test "x$gethostbynamerstyle" = "x"; then
25293 cat >conftest.$ac_ext <<_ACEOF
25296 cat confdefs.h >>conftest.$ac_ext
25297 cat >>conftest.$ac_ext <<_ACEOF
25298 /* end confdefs.h. */
25306 gethostbyname(NULL)
25311 rm -f conftest.$ac_objext conftest$ac_exeext
25312 if { (ac_try="$ac_link"
25313 case "(($ac_try" in
25314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25315 *) ac_try_echo=$ac_try;;
25317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25318 (eval "$ac_link") 2>conftest.er1
25320 grep -v '^ *+' conftest.er1 >conftest.err
25322 cat conftest.err >&5
25323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324 (exit $ac_status); } &&
25325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25326 { (case "(($ac_try" in
25327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25328 *) ac_try_echo=$ac_try;;
25330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25331 (eval "$ac_try") 2>&5
25333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334 (exit $ac_status); }; } &&
25335 { ac_try='test -s conftest$ac_exeext'
25336 { (case "(($ac_try" in
25337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25338 *) ac_try_echo=$ac_try;;
25340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25341 (eval "$ac_try") 2>&5
25343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); }; }; then
25346 cat >>confdefs.h <<\_ACEOF
25347 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25350 gethostbynamerstyle=BSD
25353 echo "$as_me: failed program was:" >&5
25354 sed 's/^/| /' conftest.$ac_ext >&5
25359 rm -f core conftest.err conftest.$ac_objext \
25360 conftest$ac_exeext conftest.$ac_ext
25363 if test "x$gethostbynamerstyle" = "x"; then
25364 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25365 echo "${ECHO_T}none! It must not exist, here." >&6; }
25367 { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25368 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25371 if test "x$gethostbynamerstyle" = "xBSD"; then
25372 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25373 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25377 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25378 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
25379 cat >conftest.$ac_ext <<_ACEOF
25382 cat confdefs.h >>conftest.$ac_ext
25383 cat >>conftest.$ac_ext <<_ACEOF
25384 /* end confdefs.h. */
25391 ctime_r(NULL, NULL, 0)
25396 rm -f conftest.$ac_objext conftest$ac_exeext
25397 if { (ac_try="$ac_link"
25398 case "(($ac_try" in
25399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25400 *) ac_try_echo=$ac_try;;
25402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25403 (eval "$ac_link") 2>conftest.er1
25405 grep -v '^ *+' conftest.er1 >conftest.err
25407 cat conftest.err >&5
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); } &&
25410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25411 { (case "(($ac_try" in
25412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25413 *) ac_try_echo=$ac_try;;
25415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25416 (eval "$ac_try") 2>&5
25418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419 (exit $ac_status); }; } &&
25420 { ac_try='test -s conftest$ac_exeext'
25421 { (case "(($ac_try" in
25422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25423 *) ac_try_echo=$ac_try;;
25425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25426 (eval "$ac_try") 2>&5
25428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429 (exit $ac_status); }; }; then
25431 cat >>confdefs.h <<\_ACEOF
25432 #define CTIMERSTYLE SOLARISSTYLE
25435 ctimerstyle="SOLARIS"
25438 echo "$as_me: failed program was:" >&5
25439 sed 's/^/| /' conftest.$ac_ext >&5
25444 rm -f core conftest.err conftest.$ac_objext \
25445 conftest$ac_exeext conftest.$ac_ext
25446 if test "x$ctimerstyle" = "x"; then
25447 cat >conftest.$ac_ext <<_ACEOF
25450 cat confdefs.h >>conftest.$ac_ext
25451 cat >>conftest.$ac_ext <<_ACEOF
25452 /* end confdefs.h. */
25459 ctime_r(NULL, NULL)
25464 rm -f conftest.$ac_objext conftest$ac_exeext
25465 if { (ac_try="$ac_link"
25466 case "(($ac_try" in
25467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25468 *) ac_try_echo=$ac_try;;
25470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25471 (eval "$ac_link") 2>conftest.er1
25473 grep -v '^ *+' conftest.er1 >conftest.err
25475 cat conftest.err >&5
25476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); } &&
25478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25479 { (case "(($ac_try" in
25480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25481 *) ac_try_echo=$ac_try;;
25483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25484 (eval "$ac_try") 2>&5
25486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25487 (exit $ac_status); }; } &&
25488 { ac_try='test -s conftest$ac_exeext'
25489 { (case "(($ac_try" in
25490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25491 *) ac_try_echo=$ac_try;;
25493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25494 (eval "$ac_try") 2>&5
25496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497 (exit $ac_status); }; }; then
25499 cat >>confdefs.h <<\_ACEOF
25500 #define CTIMERSTYLE POSIXSTYLE
25503 ctimerstyle="POSIX"
25506 echo "$as_me: failed program was:" >&5
25507 sed 's/^/| /' conftest.$ac_ext >&5
25512 rm -f core conftest.err conftest.$ac_objext \
25513 conftest$ac_exeext conftest.$ac_ext
25516 if test "x$ctimerstyle" = "x"; then
25517 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25518 echo "${ECHO_T}none! It must not exist, here." >&6; }
25520 { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25521 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
25525 if test x"$rad_enable_largefiles" = xyes ; then
25526 { echo "$as_me:$LINENO: checking for largefile linkage" >&5
25527 echo $ECHO_N "checking for largefile linkage... $ECHO_C" >&6; }
25530 { echo "$as_me:$LINENO: result: no" >&5
25531 echo "${ECHO_T}no" >&6; }
25532 { { echo "$as_me:$LINENO: error: AIX before 4.2 does not support large files" >&5
25533 echo "$as_me: error: AIX before 4.2 does not support large files" >&2;}
25534 { (exit 1); exit 1; }; }
25537 { echo "$as_me:$LINENO: result: ok" >&5
25538 echo "${ECHO_T}ok" >&6; }
25539 LFS_CFLAGS="-D_LARGE_FILES"
25544 { echo "$as_me:$LINENO: result: ok" >&5
25545 echo "${ECHO_T}ok" >&6; }
25546 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
25551 { echo "$as_me:$LINENO: result: no" >&5
25552 echo "${ECHO_T}no" >&6; }
25553 { { echo "$as_me:$LINENO: error: Large files not supported on this platform" >&5
25554 echo "$as_me: error: Large files not supported on this platform" >&2;}
25555 { (exit 1); exit 1; }; }
25558 { echo "$as_me:$LINENO: result: maybe" >&5
25559 echo "${ECHO_T}maybe" >&6; }
25560 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
25564 cat >>confdefs.h <<\_ACEOF
25565 #define _GNU_SOURCE 1
25570 { echo "$as_me:$LINENO: result: ok" >&5
25571 echo "${ECHO_T}ok" >&6; }
25572 # Extract the first word of "getconf", so it can be a program name with args.
25573 set dummy getconf; ac_word=$2
25574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25576 if test "${ac_cv_path_GETCONF+set}" = set; then
25577 echo $ECHO_N "(cached) $ECHO_C" >&6
25581 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
25584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25585 for as_dir in $PATH
25588 test -z "$as_dir" && as_dir=.
25589 for ac_exec_ext in '' $ac_executable_extensions; do
25590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
25591 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
25592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25602 GETCONF=$ac_cv_path_GETCONF
25603 if test -n "$GETCONF"; then
25604 { echo "$as_me:$LINENO: result: $GETCONF" >&5
25605 echo "${ECHO_T}$GETCONF" >&6; }
25607 { echo "$as_me:$LINENO: result: no" >&5
25608 echo "${ECHO_T}no" >&6; }
25612 if test -z "$GETCONF" ; then
25613 { { echo "$as_me:$LINENO: error: getconf required to configure large file support" >&5
25614 echo "$as_me: error: getconf required to configure large file support" >&2;}
25615 { (exit 1); exit 1; }; }
25617 LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
25618 LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
25619 LFS_LIBS=`$GETCONF LFS_LIBS`
25622 { echo "$as_me:$LINENO: result: maybe" >&5
25623 echo "${ECHO_T}maybe" >&6; }
25624 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
25639 export top_builddir
25640 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25641 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
25648 if test "x$EXPERIMENTAL" = "xyes"; then
25649 bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
25650 mysubdirs=`echo $bar`
25652 for bar in `cat src/modules/stable`; do
25653 if test -f src/modules/$bar/configure; then
25654 mysubdirs="$mysubdirs src/modules/$bar"
25659 if test "x$EXPERIMENTAL" = "xyes"; then
25660 for foo in `ls -1 src/modules | grep rlm_`; do
25661 MODULES="$MODULES $foo"
25664 for foo in `cat src/modules/stable`; do
25665 MODULES="$MODULES $foo"
25669 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
25677 USE_SHARED_LIBS=$enable_shared
25679 USE_STATIC_LIBS=$enable_static
25687 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/check-radiusd-config ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radiusd.conf"
25689 cat >confcache <<\_ACEOF
25690 # This file is a shell script that caches the results of configure
25691 # tests run on this system so they can be shared between configure
25692 # scripts and configure runs, see configure's option --config-cache.
25693 # It is not useful on other systems. If it contains results you don't
25694 # want to keep, you may remove or edit it.
25696 # config.status only pays attention to the cache file if you give it
25697 # the --recheck option to rerun configure.
25699 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25700 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25701 # following values.
25705 # The following way of writing the cache mishandles newlines in values,
25706 # but we know of no workaround that is simple, portable, and efficient.
25707 # So, we kill variables containing newlines.
25708 # Ultrix sh set writes to stderr and can't be redirected directly,
25709 # and sets the high bit in the cache file unless we assign to the vars.
25711 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25712 eval ac_val=\$$ac_var
25716 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25717 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25720 _ | IFS | as_nl) ;; #(
25721 *) $as_unset $ac_var ;;
25727 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25728 *${as_nl}ac_space=\ *)
25729 # `set' does not quote correctly, so add quotes (double-quote
25730 # substitution turns \\\\ into \\, and sed turns \\ into \).
25733 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25736 # `set' quotes correctly as required by POSIX, so do not add quotes.
25737 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25746 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25748 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25750 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25751 if test -w "$cache_file"; then
25752 test "x$cache_file" != "x/dev/null" &&
25753 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25754 echo "$as_me: updating cache $cache_file" >&6;}
25755 cat confcache >$cache_file
25757 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25758 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25763 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25764 # Let make expand exec_prefix.
25765 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25767 DEFS=-DHAVE_CONFIG_H
25771 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25772 # 1. Remove the extension, and $U if already installed.
25773 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25774 ac_i=`echo "$ac_i" | sed "$ac_script"`
25775 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25776 # will be set to the directory where LIBOBJS objects are built.
25777 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25778 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25780 LIBOBJS=$ac_libobjs
25782 LTLIBOBJS=$ac_ltlibobjs
25786 : ${CONFIG_STATUS=./config.status}
25787 ac_clean_files_save=$ac_clean_files
25788 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25789 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25790 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25791 cat >$CONFIG_STATUS <<_ACEOF
25793 # Generated by $as_me.
25794 # Run this file to recreate the current configuration.
25795 # Compiler output produced by configure, useful for debugging
25796 # configure, is in config.log if it exists.
25799 ac_cs_recheck=false
25801 SHELL=\${CONFIG_SHELL-$SHELL}
25804 cat >>$CONFIG_STATUS <<\_ACEOF
25805 ## --------------------- ##
25806 ## M4sh Initialization. ##
25807 ## --------------------- ##
25809 # Be Bourne compatible
25810 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25813 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25814 # is contrary to our usage. Disable this feature.
25815 alias -g '${1+"$@"}'='"$@"'
25816 setopt NO_GLOB_SUBST
25818 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25820 BIN_SH=xpg4; export BIN_SH # for Tru64
25821 DUALCASE=1; export DUALCASE # for MKS sh
25825 # Avoid depending upon Character Ranges.
25826 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25827 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25828 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25829 as_cr_digits='0123456789'
25830 as_cr_alnum=$as_cr_Letters$as_cr_digits
25832 # The user is always right.
25833 if test "${PATH_SEPARATOR+set}" != set; then
25834 echo "#! /bin/sh" >conf$$.sh
25835 echo "exit 0" >>conf$$.sh
25837 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25845 # Support unset when possible.
25846 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25854 # We need space, tab and new line, in precisely that order. Quoting is
25855 # there to prevent editors from complaining about space-tab.
25856 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25857 # splitting by setting IFS to empty value.)
25862 # Find who we are. Look in the path if we contain no directory separator.
25864 *[\\/]* ) as_myself=$0 ;;
25865 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25866 for as_dir in $PATH
25869 test -z "$as_dir" && as_dir=.
25870 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25876 # We did not find ourselves, most probably we were run as `sh COMMAND'
25877 # in which case we are not to be found in the path.
25878 if test "x$as_myself" = x; then
25881 if test ! -f "$as_myself"; then
25882 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25883 { (exit 1); exit 1; }
25886 # Work around bugs in pre-3.0 UWIN ksh.
25887 for as_var in ENV MAIL MAILPATH
25888 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25896 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25897 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25898 LC_TELEPHONE LC_TIME
25900 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25901 eval $as_var=C; export $as_var
25903 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25907 # Required to use basename.
25908 if expr a : '\(a\)' >/dev/null 2>&1 &&
25909 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25915 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25916 as_basename=basename
25922 # Name of the executable.
25923 as_me=`$as_basename -- "$0" ||
25924 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25925 X"$0" : 'X\(//\)$' \| \
25926 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25928 sed '/^.*\/\([^/][^/]*\)\/*$/{
25947 as_lineno_1=$LINENO
25948 as_lineno_2=$LINENO
25949 test "x$as_lineno_1" != "x$as_lineno_2" &&
25950 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25952 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25953 # uniformly replaced by the line number. The first 'sed' inserts a
25954 # line-number line after each line using $LINENO; the second 'sed'
25955 # does the real work. The second script uses 'N' to pair each
25956 # line-number line with the line containing $LINENO, and appends
25957 # trailing '-' during substitution so that $LINENO is not a special
25958 # case at line end.
25959 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25960 # scripts with optimization help from Paolo Bonzini. Blame Lee
25961 # E. McMahon (1931-1989) for sed's syntax. :-)
25973 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25976 ' >$as_me.lineno &&
25977 chmod +x "$as_me.lineno" ||
25978 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25979 { (exit 1); exit 1; }; }
25981 # Don't try to exec as it changes $[0], causing all sort of problems
25982 # (the dirname of $[0] is not the place where we might find the
25983 # original and so on. Autoconf is especially sensitive to this).
25984 . "./$as_me.lineno"
25985 # Exit status is that of the last command.
25990 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25996 ECHO_C= ECHO_N= ECHO_T=
25997 case `echo -n x` in
25999 case `echo 'x\c'` in
26000 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26007 if expr a : '\(a\)' >/dev/null 2>&1 &&
26008 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26014 rm -f conf$$ conf$$.exe conf$$.file
26015 if test -d conf$$.dir; then
26016 rm -f conf$$.dir/conf$$.file
26022 if ln -s conf$$.file conf$$ 2>/dev/null; then
26024 # ... but there are two gotchas:
26025 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26026 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26027 # In both cases, we have to default to `cp -p'.
26028 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26030 elif ln conf$$.file conf$$ 2>/dev/null; then
26035 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26036 rmdir conf$$.dir 2>/dev/null
26038 if mkdir -p . 2>/dev/null; then
26041 test -d ./-p && rmdir ./-p
26045 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
26046 # systems may use methods other than mode bits to determine executability.
26047 cat >conf$$.file <<_ASEOF
26051 chmod +x conf$$.file
26052 if test -x conf$$.file >/dev/null 2>&1; then
26053 as_executable_p="test -x"
26059 # Sed expression to map a string onto a valid CPP name.
26060 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26062 # Sed expression to map a string onto a valid variable name.
26063 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26068 # Save the log message, to keep $[0] and so on meaningful, and to
26069 # report actual input values of CONFIG_FILES etc. instead of their
26070 # values after options handling.
26072 This file was extended by $as_me, which was
26073 generated by GNU Autoconf 2.60. Invocation command line was
26075 CONFIG_FILES = $CONFIG_FILES
26076 CONFIG_HEADERS = $CONFIG_HEADERS
26077 CONFIG_LINKS = $CONFIG_LINKS
26078 CONFIG_COMMANDS = $CONFIG_COMMANDS
26081 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26086 cat >>$CONFIG_STATUS <<_ACEOF
26087 # Files that config.status was made for.
26088 config_files="$ac_config_files"
26089 config_headers="$ac_config_headers"
26093 cat >>$CONFIG_STATUS <<\_ACEOF
26095 \`$as_me' instantiates files from templates according to the
26096 current configuration.
26098 Usage: $0 [OPTIONS] [FILE]...
26100 -h, --help print this help, then exit
26101 -V, --version print version number, then exit
26102 -q, --quiet do not print progress messages
26103 -d, --debug don't remove temporary files
26104 --recheck update $as_me by reconfiguring in the same conditions
26105 --file=FILE[:TEMPLATE]
26106 instantiate the configuration file FILE
26107 --header=FILE[:TEMPLATE]
26108 instantiate the configuration header FILE
26110 Configuration files:
26113 Configuration headers:
26116 Report bugs to <bug-autoconf@gnu.org>."
26119 cat >>$CONFIG_STATUS <<_ACEOF
26122 configured by $0, generated by GNU Autoconf 2.60,
26123 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26125 Copyright (C) 2006 Free Software Foundation, Inc.
26126 This config.status script is free software; the Free Software Foundation
26127 gives unlimited permission to copy, distribute and modify it."
26133 cat >>$CONFIG_STATUS <<\_ACEOF
26134 # If no file are specified by the user, then we need to provide default
26135 # value. By we need to know if files were specified by the user.
26141 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26142 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26153 # Handling of the options.
26154 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26156 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26157 echo "$ac_cs_version"; exit ;;
26158 --debug | --debu | --deb | --de | --d | -d )
26160 --file | --fil | --fi | --f )
26162 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26163 ac_need_defaults=false;;
26164 --header | --heade | --head | --hea )
26166 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26167 ac_need_defaults=false;;
26169 # Conflict between --help and --header
26170 { echo "$as_me: error: ambiguous option: $1
26171 Try \`$0 --help' for more information." >&2
26172 { (exit 1); exit 1; }; };;
26173 --help | --hel | -h )
26174 echo "$ac_cs_usage"; exit ;;
26175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26176 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26179 # This is an error.
26180 -*) { echo "$as_me: error: unrecognized option: $1
26181 Try \`$0 --help' for more information." >&2
26182 { (exit 1); exit 1; }; } ;;
26184 *) ac_config_targets="$ac_config_targets $1"
26185 ac_need_defaults=false ;;
26191 ac_configure_extra_args=
26193 if $ac_cs_silent; then
26195 ac_configure_extra_args="$ac_configure_extra_args --silent"
26199 cat >>$CONFIG_STATUS <<_ACEOF
26200 if \$ac_cs_recheck; then
26201 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26202 CONFIG_SHELL=$SHELL
26203 export CONFIG_SHELL
26204 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26208 cat >>$CONFIG_STATUS <<\_ACEOF
26212 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26213 ## Running $as_me. ##
26219 cat >>$CONFIG_STATUS <<_ACEOF
26222 cat >>$CONFIG_STATUS <<\_ACEOF
26224 # Handling of arguments.
26225 for ac_config_target in $ac_config_targets
26227 case $ac_config_target in
26228 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
26229 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
26230 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
26231 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
26232 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
26233 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
26234 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
26235 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
26236 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
26237 "./scripts/check-radiusd-config") CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
26238 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
26239 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
26240 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
26241 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
26242 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
26244 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26245 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26246 { (exit 1); exit 1; }; };;
26251 # If the user did not use the arguments to specify the items to instantiate,
26252 # then the envvar interface is used. Set only those that are not.
26253 # We use the long form for the default assignment because of an extremely
26254 # bizarre bug on SunOS 4.1.3.
26255 if $ac_need_defaults; then
26256 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26257 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26260 # Have a temporary directory for convenience. Make it in the build tree
26261 # simply because there is no reason against having it here, and in addition,
26262 # creating and moving files from /tmp can sometimes cause problems.
26263 # Hook for its removal unless debugging.
26264 # Note that there is a small window in which the directory will not be cleaned:
26265 # after its creation but before its name has been assigned to `$tmp'.
26269 trap 'exit_status=$?
26270 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26272 trap '{ (exit 1); exit 1; }' 1 2 13 15
26274 # Create a (secure) tmp directory for tmp files.
26277 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26278 test -n "$tmp" && test -d "$tmp"
26281 tmp=./conf$$-$RANDOM
26282 (umask 077 && mkdir "$tmp")
26285 echo "$me: cannot create a temporary directory in ." >&2
26286 { (exit 1); exit 1; }
26290 # Set up the sed scripts for CONFIG_FILES section.
26293 # No need to generate the scripts if there are no CONFIG_FILES.
26294 # This happens for instance when ./config.status config.h
26295 if test -n "$CONFIG_FILES"; then
26302 for ac_last_try in false false false false false :; do
26303 cat >conf$$subs.sed <<_ACEOF
26304 SHELL!$SHELL$ac_delim
26305 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26306 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26307 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26308 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26309 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26310 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26311 exec_prefix!$exec_prefix$ac_delim
26312 prefix!$prefix$ac_delim
26313 program_transform_name!$program_transform_name$ac_delim
26314 bindir!$bindir$ac_delim
26315 sbindir!$sbindir$ac_delim
26316 libexecdir!$libexecdir$ac_delim
26317 datarootdir!$datarootdir$ac_delim
26318 datadir!$datadir$ac_delim
26319 sysconfdir!$sysconfdir$ac_delim
26320 sharedstatedir!$sharedstatedir$ac_delim
26321 localstatedir!$localstatedir$ac_delim
26322 includedir!$includedir$ac_delim
26323 oldincludedir!$oldincludedir$ac_delim
26324 docdir!$docdir$ac_delim
26325 infodir!$infodir$ac_delim
26326 htmldir!$htmldir$ac_delim
26327 dvidir!$dvidir$ac_delim
26328 pdfdir!$pdfdir$ac_delim
26329 psdir!$psdir$ac_delim
26330 libdir!$libdir$ac_delim
26331 localedir!$localedir$ac_delim
26332 mandir!$mandir$ac_delim
26333 DEFS!$DEFS$ac_delim
26334 ECHO_C!$ECHO_C$ac_delim
26335 ECHO_N!$ECHO_N$ac_delim
26336 ECHO_T!$ECHO_T$ac_delim
26337 LIBS!$LIBS$ac_delim
26338 build_alias!$build_alias$ac_delim
26339 host_alias!$host_alias$ac_delim
26340 target_alias!$target_alias$ac_delim
26342 CFLAGS!$CFLAGS$ac_delim
26343 LDFLAGS!$LDFLAGS$ac_delim
26344 CPPFLAGS!$CPPFLAGS$ac_delim
26345 ac_ct_CC!$ac_ct_CC$ac_delim
26346 EXEEXT!$EXEEXT$ac_delim
26347 OBJEXT!$OBJEXT$ac_delim
26349 GREP!$GREP$ac_delim
26350 EGREP!$EGREP$ac_delim
26351 RANLIB!$RANLIB$ac_delim
26352 abs_top_builddir!$abs_top_builddir$ac_delim
26353 GMAKE!$GMAKE$ac_delim
26354 MAKE!$MAKE$ac_delim
26355 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
26356 LIBTOOL!$LIBTOOL$ac_delim
26357 build!$build$ac_delim
26358 build_cpu!$build_cpu$ac_delim
26359 build_vendor!$build_vendor$ac_delim
26360 build_os!$build_os$ac_delim
26361 host!$host$ac_delim
26362 host_cpu!$host_cpu$ac_delim
26363 host_vendor!$host_vendor$ac_delim
26364 host_os!$host_os$ac_delim
26365 LN_S!$LN_S$ac_delim
26366 ECHO!$ECHO$ac_delim
26368 STRIP!$STRIP$ac_delim
26370 CXXFLAGS!$CXXFLAGS$ac_delim
26371 ac_ct_CXX!$ac_ct_CXX$ac_delim
26372 CXXCPP!$CXXCPP$ac_delim
26374 FFLAGS!$FFLAGS$ac_delim
26375 ac_ct_F77!$ac_ct_F77$ac_delim
26376 logdir!$logdir$ac_delim
26377 radacctdir!$radacctdir$ac_delim
26378 raddbdir!$raddbdir$ac_delim
26379 PERL!$PERL$ac_delim
26380 SNMPGET!$SNMPGET$ac_delim
26381 SNMPWALK!$SNMPWALK$ac_delim
26382 RUSERS!$RUSERS$ac_delim
26383 ACLOCAL!$ACLOCAL$ac_delim
26384 AUTOCONF!$AUTOCONF$ac_delim
26385 AUTOHEADER!$AUTOHEADER$ac_delim
26386 LOCATE!$LOCATE$ac_delim
26387 DIRNAME!$DIRNAME$ac_delim
26388 REGEX!$REGEX$ac_delim
26389 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26390 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26391 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26392 LIBPREFIX!$LIBPREFIX$ac_delim
26393 CRYPTLIB!$CRYPTLIB$ac_delim
26394 SNMP_LIBS!$SNMP_LIBS$ac_delim
26395 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
26396 GETCONF!$GETCONF$ac_delim
26397 LFS_CFLAGS!$LFS_CFLAGS$ac_delim
26398 LFS_LDFLAGS!$LFS_LDFLAGS$ac_delim
26399 LFS_LIBS!$LFS_LIBS$ac_delim
26400 HOSTINFO!$HOSTINFO$ac_delim
26403 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26405 elif $ac_last_try; then
26406 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26407 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26408 { (exit 1); exit 1; }; }
26410 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26414 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26415 if test -n "$ac_eof"; then
26416 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26417 ac_eof=`expr $ac_eof + 1`
26420 cat >>$CONFIG_STATUS <<_ACEOF
26421 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26425 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26426 s/^/s,@/; s/!/@,|#_!!_#|/
26429 s/'"$ac_delim"'$/,g/; t
26431 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26432 ' >>$CONFIG_STATUS <conf$$subs.sed
26433 rm -f conf$$subs.sed
26434 cat >>$CONFIG_STATUS <<_ACEOF
26440 for ac_last_try in false false false false false :; do
26441 cat >conf$$subs.sed <<_ACEOF
26442 LIBLTDL!$LIBLTDL$ac_delim
26443 INCLTDL!$INCLTDL$ac_delim
26444 subdirs!$subdirs$ac_delim
26445 MODULES!$MODULES$ac_delim
26446 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26447 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26448 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26449 STATIC_MODULES!$STATIC_MODULES$ac_delim
26450 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26451 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26452 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26453 LIBOBJS!$LIBOBJS$ac_delim
26454 LTLIBOBJS!$LTLIBOBJS$ac_delim
26457 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
26459 elif $ac_last_try; then
26460 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26461 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26462 { (exit 1); exit 1; }; }
26464 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26468 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26469 if test -n "$ac_eof"; then
26470 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26471 ac_eof=`expr $ac_eof + 1`
26474 cat >>$CONFIG_STATUS <<_ACEOF
26475 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26479 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26480 s/^/s,@/; s/!/@,|#_!!_#|/
26483 s/'"$ac_delim"'$/,g/; t
26485 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26486 ' >>$CONFIG_STATUS <conf$$subs.sed
26487 rm -f conf$$subs.sed
26488 cat >>$CONFIG_STATUS <<_ACEOF
26495 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26496 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26497 # trailing colons and then remove the whole line if VPATH becomes empty
26498 # (actually we leave an empty line to preserve line numbers).
26499 if test "x$srcdir" = x.; then
26500 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26501 s/:*\$(srcdir):*/:/
26502 s/:*\${srcdir}:*/:/
26504 s/^\([^=]*=[ ]*\):*/\1/
26510 cat >>$CONFIG_STATUS <<\_ACEOF
26511 fi # test -n "$CONFIG_FILES"
26514 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
26517 :[FHLC]) ac_mode=$ac_tag; continue;;
26519 case $ac_mode$ac_tag in
26521 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26522 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26523 { (exit 1); exit 1; }; };;
26524 :[FH]-) ac_tag=-:-;;
26525 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26542 -) ac_f="$tmp/stdin";;
26543 *) # Look for the file first in the build tree, then in the source tree
26544 # (if the path is not absolute). The absolute path cannot be DOS-style,
26545 # because $ac_f cannot contain `:'.
26549 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26551 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26552 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26553 { (exit 1); exit 1; }; };;
26555 ac_file_inputs="$ac_file_inputs $ac_f"
26558 # Let's still pretend it is `configure' which instantiates (i.e., don't
26559 # use $as_me), people would be surprised to read:
26560 # /* config.h. Generated by config.status. */
26561 configure_input="Generated from "`IFS=:
26562 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26563 if test x"$ac_file" != x-; then
26564 configure_input="$ac_file. $configure_input"
26565 { echo "$as_me:$LINENO: creating $ac_file" >&5
26566 echo "$as_me: creating $ac_file" >&6;}
26570 *:-:* | *:-) cat >"$tmp/stdin";;
26575 ac_dir=`$as_dirname -- "$ac_file" ||
26576 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26577 X"$ac_file" : 'X\(//\)[^/]' \| \
26578 X"$ac_file" : 'X\(//\)$' \| \
26579 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26585 /^X\(\/\/\)[^/].*/{
26600 -*) as_dir=./$as_dir;;
26602 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26606 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26607 *) as_qdir=$as_dir;;
26609 as_dirs="'$as_qdir' $as_dirs"
26610 as_dir=`$as_dirname -- "$as_dir" ||
26611 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26612 X"$as_dir" : 'X\(//\)[^/]' \| \
26613 X"$as_dir" : 'X\(//\)$' \| \
26614 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26620 /^X\(\/\/\)[^/].*/{
26633 test -d "$as_dir" && break
26635 test -z "$as_dirs" || eval "mkdir $as_dirs"
26636 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26637 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26638 { (exit 1); exit 1; }; }; }
26642 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26644 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26645 # A ".." for each directory in $ac_dir_suffix.
26646 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26647 case $ac_top_builddir_sub in
26648 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26649 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26652 ac_abs_top_builddir=$ac_pwd
26653 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26654 # for backward compatibility:
26655 ac_top_builddir=$ac_top_build_prefix
26658 .) # We are building in place.
26660 ac_top_srcdir=$ac_top_builddir_sub
26661 ac_abs_top_srcdir=$ac_pwd ;;
26662 [\\/]* | ?:[\\/]* ) # Absolute name.
26663 ac_srcdir=$srcdir$ac_dir_suffix;
26664 ac_top_srcdir=$srcdir
26665 ac_abs_top_srcdir=$srcdir ;;
26666 *) # Relative name.
26667 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26668 ac_top_srcdir=$ac_top_build_prefix$srcdir
26669 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26671 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26682 cat >>$CONFIG_STATUS <<\_ACEOF
26683 # If the template does not know about datarootdir, expand it.
26684 # FIXME: This hack should be removed a few years after 2.60.
26685 ac_datarootdir_hack=; ac_datarootdir_seen=
26687 case `sed -n '/datarootdir/ {
26696 ' $ac_file_inputs` in
26697 *datarootdir*) ac_datarootdir_seen=yes;;
26698 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26699 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26700 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26702 cat >>$CONFIG_STATUS <<_ACEOF
26703 ac_datarootdir_hack='
26704 s&@datadir@&$datadir&g
26705 s&@docdir@&$docdir&g
26706 s&@infodir@&$infodir&g
26707 s&@localedir@&$localedir&g
26708 s&@mandir@&$mandir&g
26709 s&\\\${datarootdir}&$datarootdir&g' ;;
26713 # Neutralize VPATH when `$srcdir' = `.'.
26714 # Shell code in configure.ac might set extrasub.
26715 # FIXME: do we really want to maintain this feature?
26716 cat >>$CONFIG_STATUS <<_ACEOF
26720 cat >>$CONFIG_STATUS <<\_ACEOF
26722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26723 s&@configure_input@&$configure_input&;t t
26724 s&@top_builddir@&$ac_top_builddir_sub&;t t
26725 s&@srcdir@&$ac_srcdir&;t t
26726 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26727 s&@top_srcdir@&$ac_top_srcdir&;t t
26728 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26729 s&@builddir@&$ac_builddir&;t t
26730 s&@abs_builddir@&$ac_abs_builddir&;t t
26731 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26732 $ac_datarootdir_hack
26733 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26735 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26736 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26737 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26738 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26739 which seems to be undefined. Please make sure it is defined." >&5
26740 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26741 which seems to be undefined. Please make sure it is defined." >&2;}
26745 -) cat "$tmp/out"; rm -f "$tmp/out";;
26746 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26755 # Transform confdefs.h into a sed script `conftest.defines', that
26756 # substitutes the proper values into config.h.in to produce config.h.
26757 rm -f conftest.defines conftest.tail
26758 # First, append a space to every undef/define line, to ease matching.
26759 echo 's/$/ /' >conftest.defines
26760 # Then, protect against being on the right side of a sed subst, or in
26761 # an unquoted here document, in config.status. If some macros were
26762 # called several times there might be several #defines for the same
26763 # symbol, which is useless. But do not sort them, since the last
26764 # AC_DEFINE must be honored.
26765 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26766 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26767 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26768 # PARAMS is the parameter list in the macro definition--in most cases, it's
26769 # just an empty string.
26770 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26771 ac_dB='\\)[ (].*,\\1define\\2'
26779 s/^[ ]*#[ ]*define[ ][ ]*//
26784 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26785 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26786 ' >>conftest.defines
26788 # Remove the space that was appended to ease matching.
26789 # Then replace #undef with comments. This is necessary, for
26790 # example, in the case of _POSIX_SOURCE, which is predefined and required
26791 # on some systems where configure will not decide to define it.
26792 # (The regexp can be short, since the line contains either #define or #undef.)
26794 s,^[ #]*u.*,/* & */,' >>conftest.defines
26796 # Break up conftest.defines:
26797 ac_max_sed_lines=50
26799 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26800 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26801 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26803 ac_in='$ac_file_inputs'
26804 ac_out='"$tmp/out1"'
26805 ac_nxt='"$tmp/out2"'
26809 # Write a here document:
26810 cat >>$CONFIG_STATUS <<_ACEOF
26811 # First, check the format of the line:
26812 cat >"\$tmp/defines.sed" <<\\CEOF
26813 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26814 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26818 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26820 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26821 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26822 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26823 grep . conftest.tail >/dev/null || break
26824 rm -f conftest.defines
26825 mv conftest.tail conftest.defines
26827 rm -f conftest.defines conftest.tail
26829 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26830 cat >>$CONFIG_STATUS <<\_ACEOF
26831 if test x"$ac_file" != x-; then
26832 echo "/* $configure_input */" >"$tmp/config.h"
26833 cat "$ac_result" >>"$tmp/config.h"
26834 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26835 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26836 echo "$as_me: $ac_file is unchanged" >&6;}
26839 mv "$tmp/config.h" $ac_file
26842 echo "/* $configure_input */"
26854 { (exit 0); exit 0; }
26856 chmod +x $CONFIG_STATUS
26857 ac_clean_files=$ac_clean_files_save
26860 # configure is writing to config.log, and then calls config.status.
26861 # config.status does its own redirection, appending to config.log.
26862 # Unfortunately, on DOS this fails, as config.log is still kept open
26863 # by configure, so config.status won't be able to write to it; its
26864 # output is simply discarded. So we exec the FD to /dev/null,
26865 # effectively closing config.log, so it can be properly (re)opened and
26866 # appended to by config.status. When coming back to configure, we
26867 # need to make the FD available again.
26868 if test "$no_create" != yes; then
26870 ac_config_status_args=
26871 test "$silent" = yes &&
26872 ac_config_status_args="$ac_config_status_args --quiet"
26874 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26876 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26877 # would make configure fail if this is the last instruction.
26878 $ac_cs_success || { (exit 1); exit 1; }
26882 # CONFIG_SUBDIRS section.
26884 if test "$no_recursion" != yes; then
26886 # Remove --cache-file and --srcdir arguments so they do not pile up.
26887 ac_sub_configure_args=
26889 eval "set x $ac_configure_args"
26893 if test -n "$ac_prev"; then
26898 -cache-file | --cache-file | --cache-fil | --cache-fi \
26899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26900 ac_prev=cache_file ;;
26901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26905 --config-cache | -C)
26907 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26909 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26911 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26913 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26917 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26919 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
26923 # Always prepend --prefix to ensure using the same prefix
26924 # in subdir configurations.
26925 ac_arg="--prefix=$prefix"
26927 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26929 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
26932 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26934 # Do not complain, so a configure script can configure whichever
26935 # parts of a large source tree are present.
26936 test -d "$srcdir/$ac_dir" || continue
26938 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26939 echo "$as_me:$LINENO: $ac_msg" >&5
26943 -*) as_dir=./$as_dir;;
26945 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26949 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26950 *) as_qdir=$as_dir;;
26952 as_dirs="'$as_qdir' $as_dirs"
26953 as_dir=`$as_dirname -- "$as_dir" ||
26954 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26955 X"$as_dir" : 'X\(//\)[^/]' \| \
26956 X"$as_dir" : 'X\(//\)$' \| \
26957 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26963 /^X\(\/\/\)[^/].*/{
26976 test -d "$as_dir" && break
26978 test -z "$as_dirs" || eval "mkdir $as_dirs"
26979 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26980 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26981 { (exit 1); exit 1; }; }; }
26985 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26987 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26988 # A ".." for each directory in $ac_dir_suffix.
26989 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26990 case $ac_top_builddir_sub in
26991 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26992 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26995 ac_abs_top_builddir=$ac_pwd
26996 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26997 # for backward compatibility:
26998 ac_top_builddir=$ac_top_build_prefix
27001 .) # We are building in place.
27003 ac_top_srcdir=$ac_top_builddir_sub
27004 ac_abs_top_srcdir=$ac_pwd ;;
27005 [\\/]* | ?:[\\/]* ) # Absolute name.
27006 ac_srcdir=$srcdir$ac_dir_suffix;
27007 ac_top_srcdir=$srcdir
27008 ac_abs_top_srcdir=$srcdir ;;
27009 *) # Relative name.
27010 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27011 ac_top_srcdir=$ac_top_build_prefix$srcdir
27012 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27014 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27019 # Check for guested configure; otherwise get Cygnus style configure.
27020 if test -f "$ac_srcdir/configure.gnu"; then
27021 ac_sub_configure=$ac_srcdir/configure.gnu
27022 elif test -f "$ac_srcdir/configure"; then
27023 ac_sub_configure=$ac_srcdir/configure
27024 elif test -f "$ac_srcdir/configure.in"; then
27025 # This should be Cygnus configure.
27026 ac_sub_configure=$ac_aux_dir/configure
27028 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27029 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27033 # The recursion is here.
27034 if test -n "$ac_sub_configure"; then
27035 # Make the cache file name correct relative to the subdirectory.
27036 case $cache_file in
27037 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27038 *) # Relative name.
27039 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27042 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27043 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27044 # The eval makes quoting arguments work.
27045 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27046 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27047 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27048 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27049 { (exit 1); exit 1; }; }
27057 ac_config_commands="$ac_config_commands default-1"
27059 ac_config_commands="$ac_config_commands default-2"
27061 ac_config_commands="$ac_config_commands default-3"
27063 ac_config_commands="$ac_config_commands default-4"