2 # From configure.in Revision: 1.198.2.15.2.14 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60a.
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="\
723 #ifdef HAVE_SYS_TYPES_H
724 # include <sys/types.h>
726 #ifdef HAVE_SYS_STAT_H
727 # include <sys/stat.h>
733 # ifdef HAVE_STDLIB_H
738 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
743 #ifdef HAVE_STRINGS_H
744 # include <strings.h>
746 #ifdef HAVE_INTTYPES_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.60a
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.60a. 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=
2366 { echo "$as_me:$LINENO: result: $ac_file" >&5
2367 echo "${ECHO_T}$ac_file" >&6; }
2368 if test -z "$ac_file"; then
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2372 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2373 See \`config.log' for more details." >&5
2374 echo "$as_me: error: C compiler cannot create executables
2375 See \`config.log' for more details." >&2;}
2376 { (exit 77); exit 77; }; }
2379 ac_exeext=$ac_cv_exeext
2381 # Check that the compiler produces executables we can run. If not, either
2382 # the compiler is broken, or we cross compile.
2383 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2384 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2385 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2386 # If not cross compiling, check that we can run a simple program.
2387 if test "$cross_compiling" != yes; then
2388 if { ac_try='./$ac_file'
2389 { (case "(($ac_try" in
2390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391 *) ac_try_echo=$ac_try;;
2393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2394 (eval "$ac_try") 2>&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; }; then
2400 if test "$cross_compiling" = maybe; then
2403 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2404 If you meant to cross compile, use \`--host'.
2405 See \`config.log' for more details." >&5
2406 echo "$as_me: error: cannot run C compiled programs.
2407 If you meant to cross compile, use \`--host'.
2408 See \`config.log' for more details." >&2;}
2409 { (exit 1); exit 1; }; }
2413 { echo "$as_me:$LINENO: result: yes" >&5
2414 echo "${ECHO_T}yes" >&6; }
2416 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2417 ac_clean_files=$ac_clean_files_save
2418 # Check that the compiler produces executables we can run. If not, either
2419 # the compiler is broken, or we cross compile.
2420 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2421 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2422 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2423 echo "${ECHO_T}$cross_compiling" >&6; }
2425 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2426 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2427 if { (ac_try="$ac_link"
2429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430 *) ac_try_echo=$ac_try;;
2432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2433 (eval "$ac_link") 2>&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; then
2437 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2438 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2439 # work properly (i.e., refer to `conftest.exe'), while it won't with
2441 for ac_file in conftest.exe conftest conftest.*; do
2442 test -f "$ac_file" || continue
2444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2445 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2451 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2452 See \`config.log' for more details." >&5
2453 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2454 See \`config.log' for more details." >&2;}
2455 { (exit 1); exit 1; }; }
2458 rm -f conftest$ac_cv_exeext
2459 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2460 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2462 rm -f conftest.$ac_ext
2463 EXEEXT=$ac_cv_exeext
2465 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2466 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2467 if test "${ac_cv_objext+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 cat >conftest.$ac_ext <<_ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2485 rm -f conftest.o conftest.obj
2486 if { (ac_try="$ac_compile"
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2492 (eval "$ac_compile") 2>&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; then
2496 for ac_file in conftest.o conftest.obj conftest.*; do
2497 test -f "$ac_file" || continue;
2499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2500 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2505 echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2508 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2509 See \`config.log' for more details." >&5
2510 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2511 See \`config.log' for more details." >&2;}
2512 { (exit 1); exit 1; }; }
2515 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2517 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2518 echo "${ECHO_T}$ac_cv_objext" >&6; }
2519 OBJEXT=$ac_cv_objext
2521 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2522 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2523 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 cat >conftest.$ac_ext <<_ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h. */
2544 rm -f conftest.$ac_objext
2545 if { (ac_try="$ac_compile"
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551 (eval "$ac_compile") 2>conftest.er1
2553 grep -v '^ *+' conftest.er1 >conftest.err
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2559 { (case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564 (eval "$ac_try") 2>&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; } &&
2568 { ac_try='test -s conftest.$ac_objext'
2569 { (case "(($ac_try" in
2570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571 *) ac_try_echo=$ac_try;;
2573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2574 (eval "$ac_try") 2>&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2590 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2591 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2592 GCC=`test $ac_compiler_gnu = yes && echo yes`
2593 ac_test_CFLAGS=${CFLAGS+set}
2594 ac_save_CFLAGS=$CFLAGS
2595 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2596 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_cc_g+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 ac_save_c_werror_flag=$ac_c_werror_flag
2601 ac_c_werror_flag=yes
2604 cat >conftest.$ac_ext <<_ACEOF
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h. */
2619 rm -f conftest.$ac_objext
2620 if { (ac_try="$ac_compile"
2622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623 *) ac_try_echo=$ac_try;;
2625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2626 (eval "$ac_compile") 2>conftest.er1
2628 grep -v '^ *+' conftest.er1 >conftest.err
2630 cat conftest.err >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
2633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2634 { (case "(($ac_try" in
2635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636 *) ac_try_echo=$ac_try;;
2638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2639 (eval "$ac_try") 2>&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (case "(($ac_try" in
2645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646 *) ac_try_echo=$ac_try;;
2648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2649 (eval "$ac_try") 2>&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; }; then
2655 echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2659 cat >conftest.$ac_ext <<_ACEOF
2662 cat confdefs.h >>conftest.$ac_ext
2663 cat >>conftest.$ac_ext <<_ACEOF
2664 /* end confdefs.h. */
2674 rm -f conftest.$ac_objext
2675 if { (ac_try="$ac_compile"
2677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678 *) ac_try_echo=$ac_try;;
2680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681 (eval "$ac_compile") 2>conftest.er1
2683 grep -v '^ *+' conftest.er1 >conftest.err
2685 cat conftest.err >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); } &&
2688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2689 { (case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694 (eval "$ac_try") 2>&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; } &&
2698 { ac_try='test -s conftest.$ac_objext'
2699 { (case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_try") 2>&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; }; then
2710 echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2713 ac_c_werror_flag=$ac_save_c_werror_flag
2715 cat >conftest.$ac_ext <<_ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h. */
2730 rm -f conftest.$ac_objext
2731 if { (ac_try="$ac_compile"
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_compile") 2>conftest.er1
2739 grep -v '^ *+' conftest.er1 >conftest.err
2741 cat conftest.err >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } &&
2744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2745 { (case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_try") 2>&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; } &&
2754 { ac_try='test -s conftest.$ac_objext'
2755 { (case "(($ac_try" in
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760 (eval "$ac_try") 2>&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; }; then
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2779 ac_c_werror_flag=$ac_save_c_werror_flag
2781 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2782 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2783 if test "$ac_test_CFLAGS" = set; then
2784 CFLAGS=$ac_save_CFLAGS
2785 elif test $ac_cv_prog_cc_g = yes; then
2786 if test "$GCC" = yes; then
2792 if test "$GCC" = yes; then
2798 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2799 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2800 if test "${ac_cv_prog_cc_c89+set}" = set; then
2801 echo $ECHO_N "(cached) $ECHO_C" >&6
2803 ac_cv_prog_cc_c89=no
2805 cat >conftest.$ac_ext <<_ACEOF
2808 cat confdefs.h >>conftest.$ac_ext
2809 cat >>conftest.$ac_ext <<_ACEOF
2810 /* end confdefs.h. */
2813 #include <sys/types.h>
2814 #include <sys/stat.h>
2815 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2816 struct buf { int x; };
2817 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2818 static char *e (p, i)
2824 static char *f (char * (*g) (char **, int), char **p, ...)
2829 s = g (p, va_arg (v,int));
2834 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2835 function prototypes and stuff, but not '\xHH' hex character constants.
2836 These don't provoke an error unfortunately, instead are silently treated
2837 as 'x'. The following induces an error, until -std is added to get
2838 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2839 array size at least. It's necessary to write '\x00'==0 to get something
2840 that's true only with -std. */
2841 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2843 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2844 inside strings and character constants. */
2846 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2848 int test (int i, double x);
2849 struct s1 {int (*f) (int a);};
2850 struct s2 {int (*f) (double a);};
2851 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2857 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2862 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2863 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2865 CC="$ac_save_CC $ac_arg"
2866 rm -f conftest.$ac_objext
2867 if { (ac_try="$ac_compile"
2869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870 *) ac_try_echo=$ac_try;;
2872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2873 (eval "$ac_compile") 2>conftest.er1
2875 grep -v '^ *+' conftest.er1 >conftest.err
2877 cat conftest.err >&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); } &&
2880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2881 { (case "(($ac_try" in
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886 (eval "$ac_try") 2>&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; } &&
2890 { ac_try='test -s conftest.$ac_objext'
2891 { (case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896 (eval "$ac_try") 2>&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2900 ac_cv_prog_cc_c89=$ac_arg
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2908 rm -f core conftest.err conftest.$ac_objext
2909 test "x$ac_cv_prog_cc_c89" != "xno" && break
2911 rm -f conftest.$ac_ext
2916 case "x$ac_cv_prog_cc_c89" in
2918 { echo "$as_me:$LINENO: result: none needed" >&5
2919 echo "${ECHO_T}none needed" >&6; } ;;
2921 { echo "$as_me:$LINENO: result: unsupported" >&5
2922 echo "${ECHO_T}unsupported" >&6; } ;;
2924 CC="$CC $ac_cv_prog_cc_c89"
2925 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2926 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2931 ac_cpp='$CPP $CPPFLAGS'
2932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939 ac_cpp='$CPP $CPPFLAGS'
2940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2943 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2944 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2945 # On Suns, sometimes $CPP names a directory.
2946 if test -n "$CPP" && test -d "$CPP"; then
2949 if test -z "$CPP"; then
2950 if test "${ac_cv_prog_CPP+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 # Double quotes because CPP needs to be expanded
2954 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2957 for ac_c_preproc_warn_flag in '' yes
2959 # Use a header file that comes with gcc, so configuring glibc
2960 # with a fresh cross-compiler works.
2961 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2962 # <limits.h> exists even on freestanding compilers.
2963 # On the NeXT, cc -E runs the code through the compiler's parser,
2964 # not just through cpp. "Syntax error" is here to catch this case.
2965 cat >conftest.$ac_ext <<_ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2972 # include <limits.h>
2974 # include <assert.h>
2978 if { (ac_try="$ac_cpp conftest.$ac_ext"
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2986 grep -v '^ *+' conftest.er1 >conftest.err
2988 cat conftest.err >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } >/dev/null; then
2991 if test -s conftest.err; then
2992 ac_cpp_err=$ac_c_preproc_warn_flag
2993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3000 if test -z "$ac_cpp_err"; then
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 # Broken: fails on valid input.
3010 rm -f conftest.err conftest.$ac_ext
3012 # OK, works on sane cases. Now check whether nonexistent headers
3013 # can be detected and how.
3014 cat >conftest.$ac_ext <<_ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3020 #include <ac_nonexistent.h>
3022 if { (ac_try="$ac_cpp conftest.$ac_ext"
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3030 grep -v '^ *+' conftest.er1 >conftest.err
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } >/dev/null; then
3035 if test -s conftest.err; then
3036 ac_cpp_err=$ac_c_preproc_warn_flag
3037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3044 if test -z "$ac_cpp_err"; then
3045 # Broken: success on invalid input.
3048 echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3051 # Passes both tests.
3056 rm -f conftest.err conftest.$ac_ext
3059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3060 rm -f conftest.err conftest.$ac_ext
3061 if $ac_preproc_ok; then
3073 { echo "$as_me:$LINENO: result: $CPP" >&5
3074 echo "${ECHO_T}$CPP" >&6; }
3076 for ac_c_preproc_warn_flag in '' yes
3078 # Use a header file that comes with gcc, so configuring glibc
3079 # with a fresh cross-compiler works.
3080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3081 # <limits.h> exists even on freestanding compilers.
3082 # On the NeXT, cc -E runs the code through the compiler's parser,
3083 # not just through cpp. "Syntax error" is here to catch this case.
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3091 # include <limits.h>
3093 # include <assert.h>
3097 if { (ac_try="$ac_cpp conftest.$ac_ext"
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3105 grep -v '^ *+' conftest.er1 >conftest.err
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } >/dev/null; then
3110 if test -s conftest.err; then
3111 ac_cpp_err=$ac_c_preproc_warn_flag
3112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3119 if test -z "$ac_cpp_err"; then
3122 echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3125 # Broken: fails on valid input.
3129 rm -f conftest.err conftest.$ac_ext
3131 # OK, works on sane cases. Now check whether nonexistent headers
3132 # can be detected and how.
3133 cat >conftest.$ac_ext <<_ACEOF
3136 cat confdefs.h >>conftest.$ac_ext
3137 cat >>conftest.$ac_ext <<_ACEOF
3138 /* end confdefs.h. */
3139 #include <ac_nonexistent.h>
3141 if { (ac_try="$ac_cpp conftest.$ac_ext"
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3149 grep -v '^ *+' conftest.er1 >conftest.err
3151 cat conftest.err >&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } >/dev/null; then
3154 if test -s conftest.err; then
3155 ac_cpp_err=$ac_c_preproc_warn_flag
3156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3163 if test -z "$ac_cpp_err"; then
3164 # Broken: success on invalid input.
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3170 # Passes both tests.
3175 rm -f conftest.err conftest.$ac_ext
3178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3179 rm -f conftest.err conftest.$ac_ext
3180 if $ac_preproc_ok; then
3183 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3184 See \`config.log' for more details." >&5
3185 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3186 See \`config.log' for more details." >&2;}
3187 { (exit 1); exit 1; }; }
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3197 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3198 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3199 if test "${ac_cv_path_GREP+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 # Extract the first word of "grep ggrep" to use in msg output
3203 if test -z "$GREP"; then
3204 set dummy grep ggrep; ac_prog_name=$2
3205 if test "${ac_cv_path_GREP+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 ac_path_GREP_found=false
3209 # Loop through the user's path and test for each of PROGNAME-LIST
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3214 test -z "$as_dir" && as_dir=.
3215 for ac_prog in grep ggrep; do
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3218 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3219 # Check for GNU ac_path_GREP and select it if it is found.
3220 # Check for GNU $ac_path_GREP
3221 case `"$ac_path_GREP" --version 2>&1` in
3223 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3226 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3229 cat "conftest.in" "conftest.in" >"conftest.tmp"
3230 mv "conftest.tmp" "conftest.in"
3231 cp "conftest.in" "conftest.nl"
3232 echo 'GREP' >> "conftest.nl"
3233 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3235 ac_count=`expr $ac_count + 1`
3236 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3237 # Best one so far, save it but keep looking for a better one
3238 ac_cv_path_GREP="$ac_path_GREP"
3239 ac_path_GREP_max=$ac_count
3241 # 10*(2^10) chars as input seems more than enough
3242 test $ac_count -gt 10 && break
3244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3248 $ac_path_GREP_found && break 3
3258 GREP="$ac_cv_path_GREP"
3259 if test -z "$GREP"; then
3260 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3261 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3262 { (exit 1); exit 1; }; }
3266 ac_cv_path_GREP=$GREP
3271 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3272 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3273 GREP="$ac_cv_path_GREP"
3276 { echo "$as_me:$LINENO: checking for egrep" >&5
3277 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3278 if test "${ac_cv_path_EGREP+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3282 then ac_cv_path_EGREP="$GREP -E"
3284 # Extract the first word of "egrep" to use in msg output
3285 if test -z "$EGREP"; then
3286 set dummy egrep; ac_prog_name=$2
3287 if test "${ac_cv_path_EGREP+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 ac_path_EGREP_found=false
3291 # Loop through the user's path and test for each of PROGNAME-LIST
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3296 test -z "$as_dir" && as_dir=.
3297 for ac_prog in egrep; do
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3300 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3301 # Check for GNU ac_path_EGREP and select it if it is found.
3302 # Check for GNU $ac_path_EGREP
3303 case `"$ac_path_EGREP" --version 2>&1` in
3305 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3308 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3311 cat "conftest.in" "conftest.in" >"conftest.tmp"
3312 mv "conftest.tmp" "conftest.in"
3313 cp "conftest.in" "conftest.nl"
3314 echo 'EGREP' >> "conftest.nl"
3315 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3316 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3317 ac_count=`expr $ac_count + 1`
3318 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3319 # Best one so far, save it but keep looking for a better one
3320 ac_cv_path_EGREP="$ac_path_EGREP"
3321 ac_path_EGREP_max=$ac_count
3323 # 10*(2^10) chars as input seems more than enough
3324 test $ac_count -gt 10 && break
3326 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3330 $ac_path_EGREP_found && break 3
3340 EGREP="$ac_cv_path_EGREP"
3341 if test -z "$EGREP"; then
3342 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3343 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3344 { (exit 1); exit 1; }; }
3348 ac_cv_path_EGREP=$EGREP
3354 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3355 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3356 EGREP="$ac_cv_path_EGREP"
3360 { echo "$as_me:$LINENO: checking for AIX" >&5
3361 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3362 cat >conftest.$ac_ext <<_ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3374 $EGREP "yes" >/dev/null 2>&1; then
3375 { echo "$as_me:$LINENO: result: yes" >&5
3376 echo "${ECHO_T}yes" >&6; }
3377 cat >>confdefs.h <<\_ACEOF
3378 #define _ALL_SOURCE 1
3382 { echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6; }
3389 if test $ac_cv_c_compiler_gnu = yes; then
3390 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3391 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3392 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 ac_pattern="Autoconf.*'x'"
3396 cat >conftest.$ac_ext <<_ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3406 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3407 ac_cv_prog_gcc_traditional=yes
3409 ac_cv_prog_gcc_traditional=no
3414 if test $ac_cv_prog_gcc_traditional = no; then
3415 cat >conftest.$ac_ext <<_ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3425 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3426 ac_cv_prog_gcc_traditional=yes
3432 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3433 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3434 if test $ac_cv_prog_gcc_traditional = yes; then
3435 CC="$CC -traditional"
3439 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3440 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3441 if test "${ac_cv_prog_suncc+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 cat > conftest.c <<EOF
3449 if { ac_try='${CC-cc} -E conftest.c'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3455 ac_cv_prog_suncc=yes
3460 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3461 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3462 if test -n "$ac_tool_prefix"; then
3463 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3464 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3467 if test "${ac_cv_prog_RANLIB+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 if test -n "$RANLIB"; then
3471 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3480 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 RANLIB=$ac_cv_prog_RANLIB
3491 if test -n "$RANLIB"; then
3492 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3493 echo "${ECHO_T}$RANLIB" >&6; }
3495 { echo "$as_me:$LINENO: result: no" >&5
3496 echo "${ECHO_T}no" >&6; }
3501 if test -z "$ac_cv_prog_RANLIB"; then
3502 ac_ct_RANLIB=$RANLIB
3503 # Extract the first word of "ranlib", so it can be a program name with args.
3504 set dummy ranlib; ac_word=$2
3505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3507 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 if test -n "$ac_ct_RANLIB"; then
3511 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3520 ac_cv_prog_ac_ct_RANLIB="ranlib"
3521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3531 if test -n "$ac_ct_RANLIB"; then
3532 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3533 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3535 { echo "$as_me:$LINENO: result: no" >&5
3536 echo "${ECHO_T}no" >&6; }
3539 if test "x$ac_ct_RANLIB" = x; then
3542 case $cross_compiling:$ac_tool_warned in
3544 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3545 whose name does not start with the host triplet. If you think this
3546 configuration is useful to you, please write to autoconf@gnu.org." >&5
3547 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3548 whose name does not start with the host triplet. If you think this
3549 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3550 ac_tool_warned=yes ;;
3552 RANLIB=$ac_ct_RANLIB
3555 RANLIB="$ac_cv_prog_RANLIB"
3559 abs_top_builddir=`pwd`
3565 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3566 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3567 if test "${ac_cv_header_stdc+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 cat >conftest.$ac_ext <<_ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3589 rm -f conftest.$ac_objext
3590 if { (ac_try="$ac_compile"
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_compile") 2>conftest.er1
3598 grep -v '^ *+' conftest.er1 >conftest.err
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } &&
3603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3604 { (case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_try") 2>&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; } &&
3613 { ac_try='test -s conftest.$ac_objext'
3614 { (case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619 (eval "$ac_try") 2>&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; }; then
3623 ac_cv_header_stdc=yes
3625 echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3628 ac_cv_header_stdc=no
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633 if test $ac_cv_header_stdc = yes; then
3634 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3635 cat >conftest.$ac_ext <<_ACEOF
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h. */
3644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3645 $EGREP "memchr" >/dev/null 2>&1; then
3648 ac_cv_header_stdc=no
3654 if test $ac_cv_header_stdc = yes; then
3655 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3656 cat >conftest.$ac_ext <<_ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3666 $EGREP "free" >/dev/null 2>&1; then
3669 ac_cv_header_stdc=no
3675 if test $ac_cv_header_stdc = yes; then
3676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3677 if test "$cross_compiling" = yes; then
3680 cat >conftest.$ac_ext <<_ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3688 #if ((' ' & 0x0FF) == 0x020)
3689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3692 # define ISLOWER(c) \
3693 (('a' <= (c) && (c) <= 'i') \
3694 || ('j' <= (c) && (c) <= 'r') \
3695 || ('s' <= (c) && (c) <= 'z'))
3696 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3699 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3704 for (i = 0; i < 256; i++)
3705 if (XOR (islower (i), ISLOWER (i))
3706 || toupper (i) != TOUPPER (i))
3711 rm -f conftest$ac_exeext
3712 if { (ac_try="$ac_link"
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718 (eval "$ac_link") 2>&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3722 { (case "(($ac_try" in
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3727 (eval "$ac_try") 2>&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3733 echo "$as_me: program exited with status $ac_status" >&5
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3738 ac_cv_header_stdc=no
3740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3746 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3747 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3748 if test $ac_cv_header_stdc = yes; then
3750 cat >>confdefs.h <<\_ACEOF
3751 #define STDC_HEADERS 1
3756 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3766 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3767 inttypes.h stdint.h unistd.h
3769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 cat >conftest.$ac_ext <<_ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3781 $ac_includes_default
3783 #include <$ac_header>
3785 rm -f conftest.$ac_objext
3786 if { (ac_try="$ac_compile"
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3792 (eval "$ac_compile") 2>conftest.er1
3794 grep -v '^ *+' conftest.er1 >conftest.err
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3800 { (case "(($ac_try" in
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3805 (eval "$ac_try") 2>&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); }; } &&
3809 { ac_try='test -s conftest.$ac_objext'
3810 { (case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3815 (eval "$ac_try") 2>&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3819 eval "$as_ac_Header=yes"
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 eval "$as_ac_Header=no"
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829 ac_res=`eval echo '${'$as_ac_Header'}'`
3830 { echo "$as_me:$LINENO: result: $ac_res" >&5
3831 echo "${ECHO_T}$ac_res" >&6; }
3832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3833 cat >>confdefs.h <<_ACEOF
3834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3842 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3843 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3844 if test "${ac_cv_c_bigendian+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 # See if sys/param.h defines the BYTE_ORDER macro.
3848 cat >conftest.$ac_ext <<_ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3854 #include <sys/types.h>
3855 #include <sys/param.h>
3860 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3861 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3869 rm -f conftest.$ac_objext
3870 if { (ac_try="$ac_compile"
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876 (eval "$ac_compile") 2>conftest.er1
3878 grep -v '^ *+' conftest.er1 >conftest.err
3880 cat conftest.err >&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); } &&
3883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3884 { (case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_try") 2>&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; } &&
3893 { ac_try='test -s conftest.$ac_objext'
3894 { (case "(($ac_try" in
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3899 (eval "$ac_try") 2>&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; }; then
3903 # It does; now see whether it defined to BIG_ENDIAN or not.
3904 cat >conftest.$ac_ext <<_ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3910 #include <sys/types.h>
3911 #include <sys/param.h>
3916 #if BYTE_ORDER != BIG_ENDIAN
3924 rm -f conftest.$ac_objext
3925 if { (ac_try="$ac_compile"
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931 (eval "$ac_compile") 2>conftest.er1
3933 grep -v '^ *+' conftest.er1 >conftest.err
3935 cat conftest.err >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } &&
3938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3939 { (case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3944 (eval "$ac_try") 2>&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; } &&
3948 { ac_try='test -s conftest.$ac_objext'
3949 { (case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_try") 2>&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; }; then
3958 ac_cv_c_bigendian=yes
3960 echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3963 ac_cv_c_bigendian=no
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968 echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.$ac_ext >&5
3971 # It does not; compile a test program.
3972 if test "$cross_compiling" = yes; then
3973 # try to guess the endianness by grepping values into an object file
3974 ac_cv_c_bigendian=unknown
3975 cat >conftest.$ac_ext <<_ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3982 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3983 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3984 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3985 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3986 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3990 _ascii (); _ebcdic ();
3995 rm -f conftest.$ac_objext
3996 if { (ac_try="$ac_compile"
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4002 (eval "$ac_compile") 2>conftest.er1
4004 grep -v '^ *+' conftest.er1 >conftest.err
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } &&
4009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4010 { (case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015 (eval "$ac_try") 2>&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest.$ac_objext'
4020 { (case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4025 (eval "$ac_try") 2>&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); }; }; then
4029 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4030 ac_cv_c_bigendian=yes
4032 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4033 if test "$ac_cv_c_bigendian" = unknown; then
4034 ac_cv_c_bigendian=no
4036 # finding both strings is unlikely to happen, but who knows?
4037 ac_cv_c_bigendian=unknown
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 cat >conftest.$ac_ext <<_ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4055 $ac_includes_default
4060 /* Are we little or big endian? From Harbison&Steele. */
4064 char c[sizeof (long int)];
4067 return u.c[sizeof (long int) - 1] == 1;
4073 rm -f conftest$ac_exeext
4074 if { (ac_try="$ac_link"
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_link") 2>&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4084 { (case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_try") 2>&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; }; then
4093 ac_cv_c_bigendian=no
4095 echo "$as_me: program exited with status $ac_status" >&5
4096 echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4100 ac_cv_c_bigendian=yes
4102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4111 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4112 case $ac_cv_c_bigendian in
4115 cat >>confdefs.h <<\_ACEOF
4116 #define WORDS_BIGENDIAN 1
4122 { { echo "$as_me:$LINENO: error: unknown endianness
4123 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4124 echo "$as_me: error: unknown endianness
4125 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4126 { (exit 1); exit 1; }; } ;;
4130 # Extract the first word of "gmake", so it can be a program name with args.
4131 set dummy gmake; ac_word=$2
4132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4134 if test "${ac_cv_prog_GMAKE+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 if test -n "$GMAKE"; then
4138 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4147 ac_cv_prog_GMAKE="yes"
4148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4158 GMAKE=$ac_cv_prog_GMAKE
4159 if test -n "$GMAKE"; then
4160 { echo "$as_me:$LINENO: result: $GMAKE" >&5
4161 echo "${ECHO_T}$GMAKE" >&6; }
4163 { echo "$as_me:$LINENO: result: no" >&5
4164 echo "${ECHO_T}no" >&6; }
4168 if test $GMAKE = no; then
4169 # Extract the first word of "make", so it can be a program name with args.
4170 set dummy make; ac_word=$2
4171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4173 if test "${ac_cv_path_MAKE+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4188 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4200 MAKE=$ac_cv_path_MAKE
4201 if test -n "$MAKE"; then
4202 { echo "$as_me:$LINENO: result: $MAKE" >&5
4203 echo "${ECHO_T}$MAKE" >&6; }
4205 { echo "$as_me:$LINENO: result: no" >&5
4206 echo "${ECHO_T}no" >&6; }
4211 # Extract the first word of "gmake", so it can be a program name with args.
4212 set dummy gmake; ac_word=$2
4213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4215 if test "${ac_cv_path_MAKE+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4230 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4242 MAKE=$ac_cv_path_MAKE
4243 if test -n "$MAKE"; then
4244 { echo "$as_me:$LINENO: result: $MAKE" >&5
4245 echo "${ECHO_T}$MAKE" >&6; }
4247 { echo "$as_me:$LINENO: result: no" >&5
4248 echo "${ECHO_T}no" >&6; }
4253 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4254 if test -z "$makever"; then
4255 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
4256 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4257 echo "$as_me: error: GNU Make is not installed. Please download and install it
4258 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4259 { (exit 1); exit 1; }; }
4262 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4263 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4264 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 ac_check_lib_save_LIBS=$LIBS
4269 cat >conftest.$ac_ext <<_ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4276 /* Override any GCC internal prototype to avoid an error.
4277 Use char because int might match the return type of a GCC
4278 builtin and then its argument prototype would still apply. */
4286 return lt_dlinit ();
4291 rm -f conftest.$ac_objext conftest$ac_exeext
4292 if { (ac_try="$ac_link"
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298 (eval "$ac_link") 2>conftest.er1
4300 grep -v '^ *+' conftest.er1 >conftest.err
4302 cat conftest.err >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } &&
4305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4306 { (case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_try") 2>&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; } &&
4315 { ac_try='test -s conftest$ac_exeext'
4316 { (case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_try") 2>&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4325 ac_cv_lib_ltdl_lt_dlinit=yes
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4330 ac_cv_lib_ltdl_lt_dlinit=no
4333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4334 conftest$ac_exeext conftest.$ac_ext
4335 LIBS=$ac_check_lib_save_LIBS
4337 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4338 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4339 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4340 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4342 if test x"$enable_ltdl_install" = xno; then
4343 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4344 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4346 enable_ltdl_install=yes
4351 if test x"$enable_ltdl_install" = x"yes"; then
4352 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4353 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4354 LTDLINCL='-I${top_srcdir}/''libltdl'
4356 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4360 # For backwards non-gettext consistent compatibility...
4364 if test x"$enable_ltdl_install" = x"yes"; then
4365 LTDL_SUBDIRS=libltdl
4369 # Check whether --enable-shared was given.
4370 if test "${enable_shared+set}" = set; then
4371 enableval=$enable_shared; p=${PACKAGE-default}
4373 yes) enable_shared=yes ;;
4374 no) enable_shared=no ;;
4377 # Look at the argument we got. We use all the common list separators.
4378 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4379 for pkg in $enableval; do
4381 if test "X$pkg" = "X$p"; then
4393 # Check whether --enable-static was given.
4394 if test "${enable_static+set}" = set; then
4395 enableval=$enable_static; p=${PACKAGE-default}
4397 yes) enable_static=yes ;;
4398 no) enable_static=no ;;
4401 # Look at the argument we got. We use all the common list separators.
4402 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4403 for pkg in $enableval; do
4405 if test "X$pkg" = "X$p"; then
4417 # Check whether --enable-fast-install was given.
4418 if test "${enable_fast_install+set}" = set; then
4419 enableval=$enable_fast_install; p=${PACKAGE-default}
4421 yes) enable_fast_install=yes ;;
4422 no) enable_fast_install=no ;;
4424 enable_fast_install=no
4425 # Look at the argument we got. We use all the common list separators.
4426 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4427 for pkg in $enableval; do
4429 if test "X$pkg" = "X$p"; then
4430 enable_fast_install=yes
4437 enable_fast_install=yes
4442 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4443 if test -f "$ac_dir/install-sh"; then
4445 ac_install_sh="$ac_aux_dir/install-sh -c"
4447 elif test -f "$ac_dir/install.sh"; then
4449 ac_install_sh="$ac_aux_dir/install.sh -c"
4451 elif test -f "$ac_dir/shtool"; then
4453 ac_install_sh="$ac_aux_dir/shtool install -c"
4457 if test -z "$ac_aux_dir"; then
4458 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4459 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4460 { (exit 1); exit 1; }; }
4463 # These three variables are undocumented and unsupported,
4464 # and are intended to be withdrawn in a future Autoconf release.
4465 # They can cause serious problems if a builder's source tree is in a directory
4466 # whose full name contains unusual characters.
4467 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4468 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4469 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4472 # Make sure we can run config.sub.
4473 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4474 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4475 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4476 { (exit 1); exit 1; }; }
4478 { echo "$as_me:$LINENO: checking build system type" >&5
4479 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4480 if test "${ac_cv_build+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 ac_build_alias=$build_alias
4484 test "x$ac_build_alias" = x &&
4485 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4486 test "x$ac_build_alias" = x &&
4487 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4488 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4489 { (exit 1); exit 1; }; }
4490 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4491 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4492 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4493 { (exit 1); exit 1; }; }
4496 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4497 echo "${ECHO_T}$ac_cv_build" >&6; }
4498 case $ac_cv_build in
4500 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4501 echo "$as_me: error: invalid value of canonical build" >&2;}
4502 { (exit 1); exit 1; }; };;
4505 ac_save_IFS=$IFS; IFS='-'
4511 # Remember, the first character of IFS is used to create $*,
4512 # except with old shells:
4515 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4518 { echo "$as_me:$LINENO: checking host system type" >&5
4519 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4520 if test "${ac_cv_host+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 if test "x$host_alias" = x; then
4524 ac_cv_host=$ac_cv_build
4526 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4527 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4528 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4529 { (exit 1); exit 1; }; }
4533 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4534 echo "${ECHO_T}$ac_cv_host" >&6; }
4537 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4538 echo "$as_me: error: invalid value of canonical host" >&2;}
4539 { (exit 1); exit 1; }; };;
4542 ac_save_IFS=$IFS; IFS='-'
4548 # Remember, the first character of IFS is used to create $*,
4549 # except with old shells:
4552 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4555 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4556 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4557 if test "${lt_cv_path_SED+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 # Loop through the user's path and test for sed and gsed.
4561 # Then use that list of sed's as ones to test for truncation.
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 test -z "$as_dir" && as_dir=.
4567 for lt_ac_prog in sed gsed; do
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4570 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4577 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4578 # along with /bin/sed that truncates output.
4579 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4580 test ! -f $lt_ac_sed && continue
4581 cat /dev/null > conftest.in
4583 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4584 # Check for GNU sed and select it if it is found.
4585 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4586 lt_cv_path_SED=$lt_ac_sed
4590 cat conftest.in conftest.in >conftest.tmp
4591 mv conftest.tmp conftest.in
4592 cp conftest.in conftest.nl
4594 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4595 cmp -s conftest.out conftest.nl || break
4596 # 10000 chars as input seems more than enough
4597 test $lt_ac_count -gt 10 && break
4598 lt_ac_count=`expr $lt_ac_count + 1`
4599 if test $lt_ac_count -gt $lt_ac_max; then
4600 lt_ac_max=$lt_ac_count
4601 lt_cv_path_SED=$lt_ac_sed
4609 { echo "$as_me:$LINENO: result: $SED" >&5
4610 echo "${ECHO_T}$SED" >&6; }
4613 # Check whether --with-gnu-ld was given.
4614 if test "${with_gnu_ld+set}" = set; then
4615 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4621 if test "$GCC" = yes; then
4622 # Check if gcc -print-prog-name=ld gives a path.
4623 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4624 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4627 # gcc leaves a trailing carriage return which upsets mingw
4628 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4630 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4633 # Accept absolute paths.
4635 re_direlt='/[^/][^/]*/\.\./'
4636 # Canonicalize the pathname of ld
4637 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4638 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4639 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4641 test -z "$LD" && LD="$ac_prog"
4644 # If it fails, then pretend we aren't using GCC.
4648 # If it is relative, then search for the first ld in PATH.
4652 elif test "$with_gnu_ld" = yes; then
4653 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4654 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4656 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4657 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4659 if test "${lt_cv_path_LD+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 if test -z "$LD"; then
4663 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4664 for ac_dir in $PATH; do
4666 test -z "$ac_dir" && ac_dir=.
4667 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4668 lt_cv_path_LD="$ac_dir/$ac_prog"
4669 # Check to see if the program is GNU ld. I'd rather use --version,
4670 # but apparently some variants of GNU ld only accept -v.
4671 # Break only if it was the GNU/non-GNU ld that we prefer.
4672 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4673 *GNU* | *'with BFD'*)
4674 test "$with_gnu_ld" != no && break
4677 test "$with_gnu_ld" != yes && break
4684 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4689 if test -n "$LD"; then
4690 { echo "$as_me:$LINENO: result: $LD" >&5
4691 echo "${ECHO_T}$LD" >&6; }
4693 { echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6; }
4696 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4697 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4698 { (exit 1); exit 1; }; }
4699 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4700 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4701 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4705 case `$LD -v 2>&1 </dev/null` in
4706 *GNU* | *'with BFD'*)
4707 lt_cv_prog_gnu_ld=yes
4710 lt_cv_prog_gnu_ld=no
4714 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4715 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4716 with_gnu_ld=$lt_cv_prog_gnu_ld
4719 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4720 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4721 if test "${lt_cv_ld_reload_flag+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 lt_cv_ld_reload_flag='-r'
4726 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4727 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4728 reload_flag=$lt_cv_ld_reload_flag
4729 case $reload_flag in
4731 *) reload_flag=" $reload_flag" ;;
4733 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4736 if test "$GCC" = yes; then
4737 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4739 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4744 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4745 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4746 if test "${lt_cv_path_NM+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 if test -n "$NM"; then
4750 # Let the user override the test.
4753 lt_nm_to_check="${ac_tool_prefix}nm"
4754 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4755 lt_nm_to_check="$lt_nm_to_check nm"
4757 for lt_tmp_nm in $lt_nm_to_check; do
4758 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4759 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4761 test -z "$ac_dir" && ac_dir=.
4762 tmp_nm="$ac_dir/$lt_tmp_nm"
4763 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4764 # Check to see if the nm accepts a BSD-compat flag.
4765 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4766 # nm: unknown option "B" ignored
4767 # Tru64's nm complains that /dev/null is an invalid object file
4768 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4769 */dev/null* | *'Invalid file or object type'*)
4770 lt_cv_path_NM="$tmp_nm -B"
4774 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4776 lt_cv_path_NM="$tmp_nm -p"
4780 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4781 continue # so that we can try to find one that supports BSD flags
4790 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4793 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4794 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4797 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4798 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4800 if test "$LN_S" = "ln -s"; then
4801 { echo "$as_me:$LINENO: result: yes" >&5
4802 echo "${ECHO_T}yes" >&6; }
4804 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4805 echo "${ECHO_T}no, using $LN_S" >&6; }
4808 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4809 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4810 if test "${lt_cv_deplibs_check_method+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 lt_cv_file_magic_cmd='$MAGIC_CMD'
4814 lt_cv_file_magic_test_file=
4815 lt_cv_deplibs_check_method='unknown'
4816 # Need to set the preceding variable on all platforms that support
4817 # interlibrary dependencies.
4818 # 'none' -- dependencies not supported.
4819 # `unknown' -- same as none, but documents that we really don't know.
4820 # 'pass_all' -- all dependencies passed with no checks.
4821 # 'test_compile' -- check by making test program.
4822 # 'file_magic [[regex]]' -- check by looking for files in library path
4823 # which responds to the $file_magic_cmd with a given extended regex.
4824 # If you have `file' or equivalent on your system and you're not sure
4825 # whether `pass_all' will *always* work, you probably want this one.
4829 lt_cv_deplibs_check_method=pass_all
4833 lt_cv_deplibs_check_method=pass_all
4837 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4838 lt_cv_file_magic_cmd='/usr/bin/file -L'
4839 lt_cv_file_magic_test_file=/shlib/libc.so
4843 # func_win32_libid is a shell function defined in ltmain.sh
4844 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4845 lt_cv_file_magic_cmd='func_win32_libid'
4849 # Base MSYS/MinGW do not provide the 'file' command needed by
4850 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4851 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4852 lt_cv_file_magic_cmd='$OBJDUMP -f'
4855 darwin* | rhapsody*)
4856 lt_cv_deplibs_check_method=pass_all
4859 freebsd* | kfreebsd*-gnu | dragonfly*)
4860 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4863 # Not sure whether the presence of OpenBSD here was a mistake.
4864 # Let's accept both of them until this is cleared up.
4865 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4866 lt_cv_file_magic_cmd=/usr/bin/file
4867 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4871 lt_cv_deplibs_check_method=pass_all
4876 lt_cv_deplibs_check_method=pass_all
4879 hpux10.20* | hpux11*)
4880 lt_cv_file_magic_cmd=/usr/bin/file
4883 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4884 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4887 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]'
4888 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4891 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4892 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4898 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4899 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4902 irix5* | irix6* | nonstopux*)
4904 *-32|*"-32 ") libmagic=32-bit;;
4905 *-n32|*"-n32 ") libmagic=N32;;
4906 *-64|*"-64 ") libmagic=64-bit;;
4907 *) libmagic=never-match;;
4909 lt_cv_deplibs_check_method=pass_all
4912 # This must be Linux ELF.
4914 lt_cv_deplibs_check_method=pass_all
4918 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4919 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4921 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4926 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4927 lt_cv_file_magic_cmd=/usr/bin/file
4928 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4932 lt_cv_deplibs_check_method=unknown
4936 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4937 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4943 osf3* | osf4* | osf5*)
4944 lt_cv_deplibs_check_method=pass_all
4948 lt_cv_deplibs_check_method=pass_all
4952 case $host_vendor in
4954 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]'
4955 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4958 lt_cv_deplibs_check_method=pass_all
4961 lt_cv_file_magic_cmd='/bin/file'
4962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4965 lt_cv_file_magic_cmd='/bin/file'
4966 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4967 lt_cv_file_magic_test_file=/lib/libc.so
4970 lt_cv_deplibs_check_method=pass_all
4973 lt_cv_deplibs_check_method=pass_all
4978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4979 lt_cv_deplibs_check_method=pass_all
4984 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4985 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4986 file_magic_cmd=$lt_cv_file_magic_cmd
4987 deplibs_check_method=$lt_cv_deplibs_check_method
4988 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4993 # If no C compiler was specified, use CC.
4996 # If no C compiler flags were specified, use CFLAGS.
4997 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4999 # Allow CC to be a program name with arguments.
5002 # Check whether --enable-libtool-lock was given.
5003 if test "${enable_libtool_lock+set}" = set; then
5004 enableval=$enable_libtool_lock;
5007 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5009 # Some flags need to be propagated to the compiler or linker for good
5013 # Find out which ABI we are using.
5014 echo 'int i;' > conftest.$ac_ext
5015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5016 (eval $ac_compile) 2>&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; then
5020 case `/usr/bin/file conftest.$ac_objext` in
5032 # Find out which ABI we are using.
5033 echo '#line 5033 "configure"' > conftest.$ac_ext
5034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5035 (eval $ac_compile) 2>&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; then
5039 if test "$lt_cv_prog_gnu_ld" = yes; then
5040 case `/usr/bin/file conftest.$ac_objext` in
5042 LD="${LD-ld} -melf32bsmip"
5045 LD="${LD-ld} -melf32bmipn32"
5048 LD="${LD-ld} -melf64bmip"
5052 case `/usr/bin/file conftest.$ac_objext` in
5068 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5069 # Find out which ABI we are using.
5070 echo 'int i;' > conftest.$ac_ext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5072 (eval $ac_compile) 2>&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; then
5076 case `/usr/bin/file conftest.o` in
5080 LD="${LD-ld} -m elf_i386"
5082 ppc64-*linux*|powerpc64-*linux*)
5083 LD="${LD-ld} -m elf32ppclinux"
5086 LD="${LD-ld} -m elf_s390"
5089 LD="${LD-ld} -m elf32_sparc"
5096 LD="${LD-ld} -m elf_x86_64"
5098 ppc*-*linux*|powerpc*-*linux*)
5099 LD="${LD-ld} -m elf64ppc"
5102 LD="${LD-ld} -m elf64_s390"
5105 LD="${LD-ld} -m elf64_sparc"
5115 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5116 SAVE_CFLAGS="$CFLAGS"
5117 CFLAGS="$CFLAGS -belf"
5118 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5119 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5120 if test "${lt_cv_cc_needs_belf+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5124 ac_cpp='$CPP $CPPFLAGS'
5125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5129 cat >conftest.$ac_ext <<_ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5144 rm -f conftest.$ac_objext conftest$ac_exeext
5145 if { (ac_try="$ac_link"
5147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148 *) ac_try_echo=$ac_try;;
5150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151 (eval "$ac_link") 2>conftest.er1
5153 grep -v '^ *+' conftest.er1 >conftest.err
5155 cat conftest.err >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } &&
5158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5159 { (case "(($ac_try" in
5160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161 *) ac_try_echo=$ac_try;;
5163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5164 (eval "$ac_try") 2>&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; } &&
5168 { ac_try='test -s conftest$ac_exeext'
5169 { (case "(($ac_try" in
5170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5171 *) ac_try_echo=$ac_try;;
5173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5174 (eval "$ac_try") 2>&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }; }; then
5178 lt_cv_cc_needs_belf=yes
5180 echo "$as_me: failed program was:" >&5
5181 sed 's/^/| /' conftest.$ac_ext >&5
5183 lt_cv_cc_needs_belf=no
5186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5187 conftest$ac_exeext conftest.$ac_ext
5189 ac_cpp='$CPP $CPPFLAGS'
5190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5195 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5196 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5197 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5198 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5199 CFLAGS="$SAVE_CFLAGS"
5203 # Find out which ABI we are using.
5204 echo 'int i;' > conftest.$ac_ext
5205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5206 (eval $ac_compile) 2>&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; then
5210 case `/usr/bin/file conftest.o` in
5212 case $lt_cv_prog_gnu_ld in
5213 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5214 *) LD="${LD-ld} -64" ;;
5225 need_locks="$enable_libtool_lock"
5229 for ac_header in dlfcn.h
5231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 ac_res=`eval echo '${'$as_ac_Header'}'`
5239 { echo "$as_me:$LINENO: result: $ac_res" >&5
5240 echo "${ECHO_T}$ac_res" >&6; }
5242 # Is the header compilable?
5243 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5245 cat >conftest.$ac_ext <<_ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5251 $ac_includes_default
5252 #include <$ac_header>
5254 rm -f conftest.$ac_objext
5255 if { (ac_try="$ac_compile"
5257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258 *) ac_try_echo=$ac_try;;
5260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5261 (eval "$ac_compile") 2>conftest.er1
5263 grep -v '^ *+' conftest.er1 >conftest.err
5265 cat conftest.err >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } &&
5268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5269 { (case "(($ac_try" in
5270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271 *) ac_try_echo=$ac_try;;
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274 (eval "$ac_try") 2>&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; } &&
5278 { ac_try='test -s conftest.$ac_objext'
5279 { (case "(($ac_try" in
5280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5281 *) ac_try_echo=$ac_try;;
5283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5284 (eval "$ac_try") 2>&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; }; then
5288 ac_header_compiler=yes
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5293 ac_header_compiler=no
5296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5298 echo "${ECHO_T}$ac_header_compiler" >&6; }
5300 # Is the header present?
5301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5303 cat >conftest.$ac_ext <<_ACEOF
5306 cat confdefs.h >>conftest.$ac_ext
5307 cat >>conftest.$ac_ext <<_ACEOF
5308 /* end confdefs.h. */
5309 #include <$ac_header>
5311 if { (ac_try="$ac_cpp conftest.$ac_ext"
5313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314 *) ac_try_echo=$ac_try;;
5316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5319 grep -v '^ *+' conftest.er1 >conftest.err
5321 cat conftest.err >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } >/dev/null; then
5324 if test -s conftest.err; then
5325 ac_cpp_err=$ac_c_preproc_warn_flag
5326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5333 if test -z "$ac_cpp_err"; then
5334 ac_header_preproc=yes
5336 echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5339 ac_header_preproc=no
5342 rm -f conftest.err conftest.$ac_ext
5343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5344 echo "${ECHO_T}$ac_header_preproc" >&6; }
5346 # So? What about this header?
5347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5353 ac_header_preproc=yes
5356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5376 eval "$as_ac_Header=\$ac_header_preproc"
5378 ac_res=`eval echo '${'$as_ac_Header'}'`
5379 { echo "$as_me:$LINENO: result: $ac_res" >&5
5380 echo "${ECHO_T}$ac_res" >&6; }
5383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5384 cat >>confdefs.h <<_ACEOF
5385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5393 ac_cpp='$CXXCPP $CPPFLAGS'
5394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5397 if test -z "$CXX"; then
5398 if test -n "$CCC"; then
5401 if test -n "$ac_tool_prefix"; then
5402 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5408 if test "${ac_cv_prog_CXX+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 if test -n "$CXX"; then
5412 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 test -z "$as_dir" && as_dir=.
5419 for ac_exec_ext in '' $ac_executable_extensions; do
5420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5421 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 if test -n "$CXX"; then
5433 { echo "$as_me:$LINENO: result: $CXX" >&5
5434 echo "${ECHO_T}$CXX" >&6; }
5436 { echo "$as_me:$LINENO: result: no" >&5
5437 echo "${ECHO_T}no" >&6; }
5441 test -n "$CXX" && break
5444 if test -z "$CXX"; then
5446 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5448 # Extract the first word of "$ac_prog", so it can be a program name with args.
5449 set dummy $ac_prog; ac_word=$2
5450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5452 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 if test -n "$ac_ct_CXX"; then
5456 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5465 ac_cv_prog_ac_ct_CXX="$ac_prog"
5466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5476 if test -n "$ac_ct_CXX"; then
5477 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5478 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5480 { echo "$as_me:$LINENO: result: no" >&5
5481 echo "${ECHO_T}no" >&6; }
5485 test -n "$ac_ct_CXX" && break
5488 if test "x$ac_ct_CXX" = x; then
5491 case $cross_compiling:$ac_tool_warned in
5493 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5494 whose name does not start with the host triplet. If you think this
5495 configuration is useful to you, please write to autoconf@gnu.org." >&5
5496 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5497 whose name does not start with the host triplet. If you think this
5498 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5499 ac_tool_warned=yes ;;
5507 # Provide some information about the compiler.
5508 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5509 ac_compiler=`set X $ac_compile; echo $2`
5510 { (ac_try="$ac_compiler --version >&5"
5512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513 *) ac_try_echo=$ac_try;;
5515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5516 (eval "$ac_compiler --version >&5") 2>&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); }
5520 { (ac_try="$ac_compiler -v >&5"
5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523 *) ac_try_echo=$ac_try;;
5525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526 (eval "$ac_compiler -v >&5") 2>&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }
5530 { (ac_try="$ac_compiler -V >&5"
5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533 *) ac_try_echo=$ac_try;;
5535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536 (eval "$ac_compiler -V >&5") 2>&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }
5541 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5542 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5543 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 cat >conftest.$ac_ext <<_ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5564 rm -f conftest.$ac_objext
5565 if { (ac_try="$ac_compile"
5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568 *) ac_try_echo=$ac_try;;
5570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571 (eval "$ac_compile") 2>conftest.er1
5573 grep -v '^ *+' conftest.er1 >conftest.err
5575 cat conftest.err >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } &&
5578 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5579 { (case "(($ac_try" in
5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581 *) ac_try_echo=$ac_try;;
5583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584 (eval "$ac_try") 2>&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }; } &&
5588 { ac_try='test -s conftest.$ac_objext'
5589 { (case "(($ac_try" in
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594 (eval "$ac_try") 2>&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5610 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5611 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5612 GXX=`test $ac_compiler_gnu = yes && echo yes`
5613 ac_test_CXXFLAGS=${CXXFLAGS+set}
5614 ac_save_CXXFLAGS=$CXXFLAGS
5615 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5616 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5617 if test "${ac_cv_prog_cxx_g+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5620 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5621 ac_cxx_werror_flag=yes
5624 cat >conftest.$ac_ext <<_ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5639 rm -f conftest.$ac_objext
5640 if { (ac_try="$ac_compile"
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_compile") 2>conftest.er1
5648 grep -v '^ *+' conftest.er1 >conftest.err
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } &&
5653 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5654 { (case "(($ac_try" in
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659 (eval "$ac_try") 2>&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; } &&
5663 { ac_try='test -s conftest.$ac_objext'
5664 { (case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_try") 2>&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5673 ac_cv_prog_cxx_g=yes
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5679 cat >conftest.$ac_ext <<_ACEOF
5682 cat confdefs.h >>conftest.$ac_ext
5683 cat >>conftest.$ac_ext <<_ACEOF
5684 /* end confdefs.h. */
5694 rm -f conftest.$ac_objext
5695 if { (ac_try="$ac_compile"
5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698 *) ac_try_echo=$ac_try;;
5700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701 (eval "$ac_compile") 2>conftest.er1
5703 grep -v '^ *+' conftest.er1 >conftest.err
5705 cat conftest.err >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } &&
5708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5709 { (case "(($ac_try" in
5710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711 *) ac_try_echo=$ac_try;;
5713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5714 (eval "$ac_try") 2>&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; } &&
5718 { ac_try='test -s conftest.$ac_objext'
5719 { (case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_try") 2>&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; }; then
5730 echo "$as_me: failed program was:" >&5
5731 sed 's/^/| /' conftest.$ac_ext >&5
5733 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5735 cat >conftest.$ac_ext <<_ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5750 rm -f conftest.$ac_objext
5751 if { (ac_try="$ac_compile"
5753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5754 *) ac_try_echo=$ac_try;;
5756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5757 (eval "$ac_compile") 2>conftest.er1
5759 grep -v '^ *+' conftest.er1 >conftest.err
5761 cat conftest.err >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } &&
5764 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5765 { (case "(($ac_try" in
5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767 *) ac_try_echo=$ac_try;;
5769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770 (eval "$ac_try") 2>&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; } &&
5774 { ac_try='test -s conftest.$ac_objext'
5775 { (case "(($ac_try" in
5776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777 *) ac_try_echo=$ac_try;;
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780 (eval "$ac_try") 2>&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5784 ac_cv_prog_cxx_g=yes
5786 echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5801 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5802 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5803 if test "$ac_test_CXXFLAGS" = set; then
5804 CXXFLAGS=$ac_save_CXXFLAGS
5805 elif test $ac_cv_prog_cxx_g = yes; then
5806 if test "$GXX" = yes; then
5812 if test "$GXX" = yes; then
5819 ac_cpp='$CXXCPP $CPPFLAGS'
5820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5826 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5827 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5828 (test "X$CXX" != "Xg++"))) ; then
5830 ac_cpp='$CXXCPP $CPPFLAGS'
5831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5834 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5835 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5836 if test -z "$CXXCPP"; then
5837 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 # Double quotes because CXXCPP needs to be expanded
5841 for CXXCPP in "$CXX -E" "/lib/cpp"
5844 for ac_cxx_preproc_warn_flag in '' yes
5846 # Use a header file that comes with gcc, so configuring glibc
5847 # with a fresh cross-compiler works.
5848 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5849 # <limits.h> exists even on freestanding compilers.
5850 # On the NeXT, cc -E runs the code through the compiler's parser,
5851 # not just through cpp. "Syntax error" is here to catch this case.
5852 cat >conftest.$ac_ext <<_ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5859 # include <limits.h>
5861 # include <assert.h>
5865 if { (ac_try="$ac_cpp conftest.$ac_ext"
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5873 grep -v '^ *+' conftest.er1 >conftest.err
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } >/dev/null; then
5878 if test -s conftest.err; then
5879 ac_cpp_err=$ac_cxx_preproc_warn_flag
5880 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5887 if test -z "$ac_cpp_err"; then
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5893 # Broken: fails on valid input.
5897 rm -f conftest.err conftest.$ac_ext
5899 # OK, works on sane cases. Now check whether nonexistent headers
5900 # can be detected and how.
5901 cat >conftest.$ac_ext <<_ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5907 #include <ac_nonexistent.h>
5909 if { (ac_try="$ac_cpp conftest.$ac_ext"
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5917 grep -v '^ *+' conftest.er1 >conftest.err
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } >/dev/null; then
5922 if test -s conftest.err; then
5923 ac_cpp_err=$ac_cxx_preproc_warn_flag
5924 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5931 if test -z "$ac_cpp_err"; then
5932 # Broken: success on invalid input.
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5938 # Passes both tests.
5943 rm -f conftest.err conftest.$ac_ext
5946 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5947 rm -f conftest.err conftest.$ac_ext
5948 if $ac_preproc_ok; then
5953 ac_cv_prog_CXXCPP=$CXXCPP
5956 CXXCPP=$ac_cv_prog_CXXCPP
5958 ac_cv_prog_CXXCPP=$CXXCPP
5960 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5961 echo "${ECHO_T}$CXXCPP" >&6; }
5963 for ac_cxx_preproc_warn_flag in '' yes
5965 # Use a header file that comes with gcc, so configuring glibc
5966 # with a fresh cross-compiler works.
5967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5968 # <limits.h> exists even on freestanding compilers.
5969 # On the NeXT, cc -E runs the code through the compiler's parser,
5970 # not just through cpp. "Syntax error" is here to catch this case.
5971 cat >conftest.$ac_ext <<_ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5978 # include <limits.h>
5980 # include <assert.h>
5984 if { (ac_try="$ac_cpp conftest.$ac_ext"
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5992 grep -v '^ *+' conftest.er1 >conftest.err
5994 cat conftest.err >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); } >/dev/null; then
5997 if test -s conftest.err; then
5998 ac_cpp_err=$ac_cxx_preproc_warn_flag
5999 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6006 if test -z "$ac_cpp_err"; then
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6012 # Broken: fails on valid input.
6016 rm -f conftest.err conftest.$ac_ext
6018 # OK, works on sane cases. Now check whether nonexistent headers
6019 # can be detected and how.
6020 cat >conftest.$ac_ext <<_ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6026 #include <ac_nonexistent.h>
6028 if { (ac_try="$ac_cpp conftest.$ac_ext"
6030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031 *) ac_try_echo=$ac_try;;
6033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6036 grep -v '^ *+' conftest.er1 >conftest.err
6038 cat conftest.err >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } >/dev/null; then
6041 if test -s conftest.err; then
6042 ac_cpp_err=$ac_cxx_preproc_warn_flag
6043 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6050 if test -z "$ac_cpp_err"; then
6051 # Broken: success on invalid input.
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6057 # Passes both tests.
6062 rm -f conftest.err conftest.$ac_ext
6065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6066 rm -f conftest.err conftest.$ac_ext
6067 if $ac_preproc_ok; then
6070 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6071 See \`config.log' for more details." >&5
6072 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6073 See \`config.log' for more details." >&2;}
6074 { (exit 1); exit 1; }; }
6078 ac_cpp='$CXXCPP $CPPFLAGS'
6079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6087 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6088 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6089 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6090 if test -n "$ac_tool_prefix"; then
6091 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
6093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6097 if test "${ac_cv_prog_F77+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 if test -n "$F77"; then
6101 ac_cv_prog_F77="$F77" # Let the user override the test.
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6110 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 if test -n "$F77"; then
6122 { echo "$as_me:$LINENO: result: $F77" >&5
6123 echo "${ECHO_T}$F77" >&6; }
6125 { echo "$as_me:$LINENO: result: no" >&5
6126 echo "${ECHO_T}no" >&6; }
6130 test -n "$F77" && break
6133 if test -z "$F77"; then
6135 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
6137 # Extract the first word of "$ac_prog", so it can be a program name with args.
6138 set dummy $ac_prog; ac_word=$2
6139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6141 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 if test -n "$ac_ct_F77"; then
6145 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6154 ac_cv_prog_ac_ct_F77="$ac_prog"
6155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6165 if test -n "$ac_ct_F77"; then
6166 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6167 echo "${ECHO_T}$ac_ct_F77" >&6; }
6169 { echo "$as_me:$LINENO: result: no" >&5
6170 echo "${ECHO_T}no" >&6; }
6174 test -n "$ac_ct_F77" && break
6177 if test "x$ac_ct_F77" = x; then
6180 case $cross_compiling:$ac_tool_warned in
6182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6183 whose name does not start with the host triplet. If you think this
6184 configuration is useful to you, please write to autoconf@gnu.org." >&5
6185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6186 whose name does not start with the host triplet. If you think this
6187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6188 ac_tool_warned=yes ;;
6195 # Provide some information about the compiler.
6196 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6197 ac_compiler=`set X $ac_compile; echo $2`
6198 { (ac_try="$ac_compiler --version >&5"
6200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201 *) ac_try_echo=$ac_try;;
6203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204 (eval "$ac_compiler --version >&5") 2>&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }
6208 { (ac_try="$ac_compiler -v >&5"
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214 (eval "$ac_compiler -v >&5") 2>&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }
6218 { (ac_try="$ac_compiler -V >&5"
6220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221 *) ac_try_echo=$ac_try;;
6223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224 (eval "$ac_compiler -V >&5") 2>&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }
6230 # If we don't use `.F' as extension, the preprocessor is not run on the
6231 # input file. (Note that this only needs to work for GNU compilers.)
6234 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6235 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6236 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 cat >conftest.$ac_ext <<_ACEOF
6247 rm -f conftest.$ac_objext
6248 if { (ac_try="$ac_compile"
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_compile") 2>conftest.er1
6256 grep -v '^ *+' conftest.er1 >conftest.err
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } &&
6261 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6262 { (case "(($ac_try" in
6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 (eval "$ac_try") 2>&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; } &&
6271 { ac_try='test -s conftest.$ac_objext'
6272 { (case "(($ac_try" in
6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277 (eval "$ac_try") 2>&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
6283 echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6293 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6294 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6296 ac_test_FFLAGS=${FFLAGS+set}
6297 ac_save_FFLAGS=$FFLAGS
6299 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6300 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6301 if test "${ac_cv_prog_f77_g+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 cat >conftest.$ac_ext <<_ACEOF
6310 rm -f conftest.$ac_objext
6311 if { (ac_try="$ac_compile"
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317 (eval "$ac_compile") 2>conftest.er1
6319 grep -v '^ *+' conftest.er1 >conftest.err
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6325 { (case "(($ac_try" in
6326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327 *) ac_try_echo=$ac_try;;
6329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330 (eval "$ac_try") 2>&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; } &&
6334 { ac_try='test -s conftest.$ac_objext'
6335 { (case "(($ac_try" in
6336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337 *) ac_try_echo=$ac_try;;
6339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6340 (eval "$ac_try") 2>&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; }; then
6344 ac_cv_prog_f77_g=yes
6346 echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6356 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6357 if test "$ac_test_FFLAGS" = set; then
6358 FFLAGS=$ac_save_FFLAGS
6359 elif test $ac_cv_prog_f77_g = yes; then
6360 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6366 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6373 G77=`test $ac_compiler_gnu = yes && echo yes`
6375 ac_cpp='$CPP $CPPFLAGS'
6376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6382 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6384 # find the maximum length of command line arguments
6385 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6386 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6387 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6395 # On DJGPP, this test can blow up pretty badly due to problems in libc
6396 # (any single argument exceeding 2000 bytes causes a buffer overrun
6397 # during glob expansion). Even if it were fixed, the result of this
6398 # check would be larger than it should be.
6399 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6403 # Under GNU Hurd, this test is not required because there is
6404 # no limit to the length of command line arguments.
6405 # Libtool will interpret -1 as no limit whatsoever
6406 lt_cv_sys_max_cmd_len=-1;
6410 # On Win9x/ME, this test blows up -- it succeeds, but takes
6411 # about 5 minutes as the teststring grows exponentially.
6412 # Worse, since 9x/ME are not pre-emptively multitasking,
6413 # you end up with a "frozen" computer, even though with patience
6414 # the test eventually succeeds (with a max line length of 256k).
6415 # Instead, let's just punt: use the minimum linelength reported by
6416 # all of the supported platforms: 8192 (on NT/2K/XP).
6417 lt_cv_sys_max_cmd_len=8192;
6421 # On AmigaOS with pdksh, this test takes hours, literally.
6422 # So we just punt and use a minimum line length of 8192.
6423 lt_cv_sys_max_cmd_len=8192;
6426 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6427 # This has been around since 386BSD, at least. Likely further.
6428 if test -x /sbin/sysctl; then
6429 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6430 elif test -x /usr/sbin/sysctl; then
6431 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6433 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6435 # And add a safety zone
6436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6437 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6441 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6442 lt_cv_sys_max_cmd_len=196608
6446 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6447 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6448 # nice to cause kernel panics so lets avoid the loop below.
6449 # First set a reasonable default.
6450 lt_cv_sys_max_cmd_len=16384
6452 if test -x /sbin/sysconfig; then
6453 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6454 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6459 lt_cv_sys_max_cmd_len=102400
6461 sysv5* | sco5v6* | sysv4.2uw2*)
6462 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6463 if test -n "$kargmax"; then
6464 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6466 lt_cv_sys_max_cmd_len=32768
6470 # If test is not a shell built-in, we'll probably end up computing a
6471 # maximum length that is only half of the actual maximum length, but
6473 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6474 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6475 = "XX$teststring") >/dev/null 2>&1 &&
6476 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6477 lt_cv_sys_max_cmd_len=$new_result &&
6478 test $i != 17 # 1/2 MB should be enough
6481 teststring=$teststring$teststring
6484 # Add a significant safety factor because C++ compilers can tack on massive
6485 # amounts of additional arguments before passing them to the linker.
6486 # It appears as though 1/2 is a usable value.
6487 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6493 if test -n $lt_cv_sys_max_cmd_len ; then
6494 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6495 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6497 { echo "$as_me:$LINENO: result: none" >&5
6498 echo "${ECHO_T}none" >&6; }
6504 # Check for command to grab the raw symbol name followed by C symbol from nm.
6505 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6506 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6507 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6511 # These are sane defaults that work on at least a few old systems.
6512 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6514 # Character class describing NM global symbol codes.
6515 symcode='[BCDEGRST]'
6517 # Regexp to match symbols that can be accessed directly from C.
6518 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6520 # Transform an extracted symbol line into a proper C declaration
6521 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6523 # Transform an extracted symbol line into symbol name and symbol address
6524 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'"
6526 # Define system-specific variables.
6531 cygwin* | mingw* | pw32*)
6532 symcode='[ABCDGISTW]'
6534 hpux*) # Its linker distinguishes data from code symbols
6535 if test "$host_cpu" = ia64; then
6536 symcode='[ABCDEGRST]'
6538 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6539 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'"
6542 if test "$host_cpu" = ia64; then
6543 symcode='[ABCDGIRSTW]'
6544 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6545 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'"
6549 symcode='[BCDEGRST]'
6552 symcode='[BCDEGQRST]'
6563 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6571 # Handle CRLF in mingw tool chain
6575 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6579 # If we're using GNU nm, then use its standard symbol codes.
6580 case `$NM -V 2>&1` in
6581 *GNU* | *'with BFD'*)
6582 symcode='[ABCDGIRSTW]' ;;
6585 # Try without a prefix undercore, then with it.
6586 for ac_symprfx in "" "_"; do
6588 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6589 symxfrm="\\1 $ac_symprfx\\2 \\2"
6591 # Write the raw and C identifiers.
6592 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6594 # Check to see that the pipe works correctly.
6598 cat > conftest.$ac_ext <<EOF
6603 void nm_test_func(){}
6607 int main(){nm_test_var='a';nm_test_func();return(0);}
6610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6611 (eval $ac_compile) 2>&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; then
6615 # Now try to grab the symbols.
6617 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6618 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } && test -s "$nlist"; then
6622 # Try sorting and uniquifying the output.
6623 if sort "$nlist" | uniq > "$nlist"T; then
6624 mv -f "$nlist"T "$nlist"
6629 # Make sure that we snagged all the symbols we need.
6630 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6631 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6632 cat <<EOF > conftest.$ac_ext
6638 # Now generate the symbol file.
6639 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6641 cat <<EOF >> conftest.$ac_ext
6642 #if defined (__STDC__) && __STDC__
6643 # define lt_ptr_t void *
6645 # define lt_ptr_t char *
6649 /* The mapping between symbol names and symbols. */
6654 lt_preloaded_symbols[] =
6657 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6658 cat <<\EOF >> conftest.$ac_ext
6666 # Now try linking the two files.
6667 mv conftest.$ac_objext conftstm.$ac_objext
6668 lt_save_LIBS="$LIBS"
6669 lt_save_CFLAGS="$CFLAGS"
6670 LIBS="conftstm.$ac_objext"
6671 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6673 (eval $ac_link) 2>&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6679 LIBS="$lt_save_LIBS"
6680 CFLAGS="$lt_save_CFLAGS"
6682 echo "cannot find nm_test_func in $nlist" >&5
6685 echo "cannot find nm_test_var in $nlist" >&5
6688 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6691 echo "$progname: failed program was:" >&5
6692 cat conftest.$ac_ext >&5
6694 rm -f conftest* conftst*
6696 # Do not use the global_symbol_pipe unless it works.
6697 if test "$pipe_works" = yes; then
6700 lt_cv_sys_global_symbol_pipe=
6706 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6707 lt_cv_sys_global_symbol_to_cdecl=
6709 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6710 { echo "$as_me:$LINENO: result: failed" >&5
6711 echo "${ECHO_T}failed" >&6; }
6713 { echo "$as_me:$LINENO: result: ok" >&5
6714 echo "${ECHO_T}ok" >&6; }
6717 { echo "$as_me:$LINENO: checking for objdir" >&5
6718 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6719 if test "${lt_cv_objdir+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 rm -f .libs 2>/dev/null
6723 mkdir .libs 2>/dev/null
6724 if test -d .libs; then
6727 # MS-DOS does not allow filenames that begin with a dot.
6730 rmdir .libs 2>/dev/null
6732 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6733 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6734 objdir=$lt_cv_objdir
6742 # AIX sometimes has problems with the GCC collect2 program. For some
6743 # reason, if we set the COLLECT_NAMES environment variable, the problems
6744 # vanish in a puff of smoke.
6745 if test "X${COLLECT_NAMES+set}" != Xset; then
6747 export COLLECT_NAMES
6752 # Sed substitution that helps us do robust quoting. It backslashifies
6753 # metacharacters that are still active within double-quoted strings.
6754 Xsed='sed -e 1s/^X//'
6755 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6757 # Same as above, but do not quote variable references.
6758 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6760 # Sed substitution to delay expansion of an escaped shell variable in a
6761 # double_quote_subst'ed string.
6762 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6764 # Sed substitution to avoid accidental globbing in evaled expressions
6765 no_glob_subst='s/\*/\\\*/g'
6771 default_ofile=libtool
6772 can_build_shared=yes
6774 # All known linkers require a `.a' archive for static linking (except MSVC,
6775 # which needs '.lib').
6777 ltmain="$ac_aux_dir/ltmain.sh"
6778 ofile="$default_ofile"
6779 with_gnu_ld="$lt_cv_prog_gnu_ld"
6781 if test -n "$ac_tool_prefix"; then
6782 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6783 set dummy ${ac_tool_prefix}ar; ac_word=$2
6784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786 if test "${ac_cv_prog_AR+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 if test -n "$AR"; then
6790 ac_cv_prog_AR="$AR" # Let the user override the test.
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6799 ac_cv_prog_AR="${ac_tool_prefix}ar"
6800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 if test -n "$AR"; then
6811 { echo "$as_me:$LINENO: result: $AR" >&5
6812 echo "${ECHO_T}$AR" >&6; }
6814 { echo "$as_me:$LINENO: result: no" >&5
6815 echo "${ECHO_T}no" >&6; }
6820 if test -z "$ac_cv_prog_AR"; then
6822 # Extract the first word of "ar", so it can be a program name with args.
6823 set dummy ar; ac_word=$2
6824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 if test -n "$ac_ct_AR"; then
6830 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_prog_ac_ct_AR="ar"
6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6850 if test -n "$ac_ct_AR"; then
6851 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6852 echo "${ECHO_T}$ac_ct_AR" >&6; }
6854 { echo "$as_me:$LINENO: result: no" >&5
6855 echo "${ECHO_T}no" >&6; }
6858 if test "x$ac_ct_AR" = x; then
6861 case $cross_compiling:$ac_tool_warned in
6863 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6864 whose name does not start with the host triplet. If you think this
6865 configuration is useful to you, please write to autoconf@gnu.org." >&5
6866 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6867 whose name does not start with the host triplet. If you think this
6868 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6869 ac_tool_warned=yes ;;
6877 if test -n "$ac_tool_prefix"; then
6878 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6879 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6882 if test "${ac_cv_prog_RANLIB+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 if test -n "$RANLIB"; then
6886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6895 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 RANLIB=$ac_cv_prog_RANLIB
6906 if test -n "$RANLIB"; then
6907 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6908 echo "${ECHO_T}$RANLIB" >&6; }
6910 { echo "$as_me:$LINENO: result: no" >&5
6911 echo "${ECHO_T}no" >&6; }
6916 if test -z "$ac_cv_prog_RANLIB"; then
6917 ac_ct_RANLIB=$RANLIB
6918 # Extract the first word of "ranlib", so it can be a program name with args.
6919 set dummy ranlib; ac_word=$2
6920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6922 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 if test -n "$ac_ct_RANLIB"; then
6926 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6935 ac_cv_prog_ac_ct_RANLIB="ranlib"
6936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6946 if test -n "$ac_ct_RANLIB"; then
6947 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6948 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6950 { echo "$as_me:$LINENO: result: no" >&5
6951 echo "${ECHO_T}no" >&6; }
6954 if test "x$ac_ct_RANLIB" = x; then
6957 case $cross_compiling:$ac_tool_warned in
6959 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6960 whose name does not start with the host triplet. If you think this
6961 configuration is useful to you, please write to autoconf@gnu.org." >&5
6962 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6963 whose name does not start with the host triplet. If you think this
6964 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6965 ac_tool_warned=yes ;;
6967 RANLIB=$ac_ct_RANLIB
6970 RANLIB="$ac_cv_prog_RANLIB"
6973 if test -n "$ac_tool_prefix"; then
6974 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6975 set dummy ${ac_tool_prefix}strip; ac_word=$2
6976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6978 if test "${ac_cv_prog_STRIP+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 if test -n "$STRIP"; then
6982 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6991 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 STRIP=$ac_cv_prog_STRIP
7002 if test -n "$STRIP"; then
7003 { echo "$as_me:$LINENO: result: $STRIP" >&5
7004 echo "${ECHO_T}$STRIP" >&6; }
7006 { echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6; }
7012 if test -z "$ac_cv_prog_STRIP"; then
7014 # Extract the first word of "strip", so it can be a program name with args.
7015 set dummy strip; ac_word=$2
7016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7018 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 if test -n "$ac_ct_STRIP"; then
7022 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7031 ac_cv_prog_ac_ct_STRIP="strip"
7032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7042 if test -n "$ac_ct_STRIP"; then
7043 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7044 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7046 { echo "$as_me:$LINENO: result: no" >&5
7047 echo "${ECHO_T}no" >&6; }
7050 if test "x$ac_ct_STRIP" = x; then
7053 case $cross_compiling:$ac_tool_warned in
7055 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7056 whose name does not start with the host triplet. If you think this
7057 configuration is useful to you, please write to autoconf@gnu.org." >&5
7058 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7059 whose name does not start with the host triplet. If you think this
7060 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7061 ac_tool_warned=yes ;;
7066 STRIP="$ac_cv_prog_STRIP"
7071 old_CFLAGS="$CFLAGS"
7073 # Set sane defaults for various variables
7074 test -z "$AR" && AR=ar
7075 test -z "$AR_FLAGS" && AR_FLAGS=cru
7076 test -z "$AS" && AS=as
7077 test -z "$CC" && CC=cc
7078 test -z "$LTCC" && LTCC=$CC
7079 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7080 test -z "$DLLTOOL" && DLLTOOL=dlltool
7081 test -z "$LD" && LD=ld
7082 test -z "$LN_S" && LN_S="ln -s"
7083 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7084 test -z "$NM" && NM=nm
7085 test -z "$SED" && SED=sed
7086 test -z "$OBJDUMP" && OBJDUMP=objdump
7087 test -z "$RANLIB" && RANLIB=:
7088 test -z "$STRIP" && STRIP=:
7089 test -z "$ac_objext" && ac_objext=o
7091 # Determine commands to create old-style static archives.
7092 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7093 old_postinstall_cmds='chmod 644 $oldlib'
7094 old_postuninstall_cmds=
7096 if test -n "$RANLIB"; then
7099 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7102 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7105 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7108 for cc_temp in $compiler""; do
7110 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7111 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7116 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7119 # Only perform the check for file, if the check method requires it
7120 case $deplibs_check_method in
7122 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7123 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7124 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7125 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7133 lt_save_MAGIC_CMD="$MAGIC_CMD"
7134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7135 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7136 for ac_dir in $ac_dummy; do
7138 test -z "$ac_dir" && ac_dir=.
7139 if test -f $ac_dir/${ac_tool_prefix}file; then
7140 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7141 if test -n "$file_magic_test_file"; then
7142 case $deplibs_check_method in
7144 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7145 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7146 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7147 $EGREP "$file_magic_regex" > /dev/null; then
7152 *** Warning: the command libtool uses to detect shared libraries,
7153 *** $file_magic_cmd, produces output that libtool cannot recognize.
7154 *** The result is that libtool may fail to recognize shared libraries
7155 *** as such. This will affect the creation of libtool libraries that
7156 *** depend on shared libraries, but programs linked with such libtool
7157 *** libraries will work regardless of this problem. Nevertheless, you
7158 *** may want to report the problem to your system manager and/or to
7159 *** bug-libtool@gnu.org
7169 MAGIC_CMD="$lt_save_MAGIC_CMD"
7174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7175 if test -n "$MAGIC_CMD"; then
7176 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7177 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7179 { echo "$as_me:$LINENO: result: no" >&5
7180 echo "${ECHO_T}no" >&6; }
7183 if test -z "$lt_cv_path_MAGIC_CMD"; then
7184 if test -n "$ac_tool_prefix"; then
7185 { echo "$as_me:$LINENO: checking for file" >&5
7186 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7187 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7195 lt_save_MAGIC_CMD="$MAGIC_CMD"
7196 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7197 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7198 for ac_dir in $ac_dummy; do
7200 test -z "$ac_dir" && ac_dir=.
7201 if test -f $ac_dir/file; then
7202 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7203 if test -n "$file_magic_test_file"; then
7204 case $deplibs_check_method in
7206 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7208 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7209 $EGREP "$file_magic_regex" > /dev/null; then
7214 *** Warning: the command libtool uses to detect shared libraries,
7215 *** $file_magic_cmd, produces output that libtool cannot recognize.
7216 *** The result is that libtool may fail to recognize shared libraries
7217 *** as such. This will affect the creation of libtool libraries that
7218 *** depend on shared libraries, but programs linked with such libtool
7219 *** libraries will work regardless of this problem. Nevertheless, you
7220 *** may want to report the problem to your system manager and/or to
7221 *** bug-libtool@gnu.org
7231 MAGIC_CMD="$lt_save_MAGIC_CMD"
7236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7237 if test -n "$MAGIC_CMD"; then
7238 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7239 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7241 { echo "$as_me:$LINENO: result: no" >&5
7242 echo "${ECHO_T}no" >&6; }
7257 # Check whether --enable-libtool-lock was given.
7258 if test "${enable_libtool_lock+set}" = set; then
7259 enableval=$enable_libtool_lock;
7262 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7265 # Check whether --with-pic was given.
7266 if test "${with_pic+set}" = set; then
7267 withval=$with_pic; pic_mode="$withval"
7272 test -z "$pic_mode" && pic_mode=default
7274 # Use C for the default configuration in the libtool script
7278 ac_cpp='$CPP $CPPFLAGS'
7279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7284 # Source file extension for C test sources.
7287 # Object file extension for compiled C test sources.
7291 # Code to be used in simple compile tests
7292 lt_simple_compile_test_code="int some_variable = 0;\n"
7294 # Code to be used in simple link tests
7295 lt_simple_link_test_code='int main(){return(0);}\n'
7298 # If no C compiler was specified, use CC.
7301 # If no C compiler flags were specified, use CFLAGS.
7302 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7304 # Allow CC to be a program name with arguments.
7308 # save warnings/boilerplate of simple test code
7309 ac_outfile=conftest.$ac_objext
7310 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7311 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7312 _lt_compiler_boilerplate=`cat conftest.err`
7315 ac_outfile=conftest.$ac_objext
7316 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7317 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7318 _lt_linker_boilerplate=`cat conftest.err`
7323 ## There is no encapsulation within the following macros, do not change
7324 ## the running order or otherwise move them around unless you know exactly
7325 ## what you are doing...
7327 lt_prog_compiler_no_builtin_flag=
7329 if test "$GCC" = yes; then
7330 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7333 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7334 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7335 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 lt_cv_prog_compiler_rtti_exceptions=no
7339 ac_outfile=conftest.$ac_objext
7340 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7341 lt_compiler_flag="-fno-rtti -fno-exceptions"
7342 # Insert the option either (1) after the last *FLAGS variable, or
7343 # (2) before a word containing "conftest.", or (3) at the end.
7344 # Note that $ac_compile itself does not contain backslashes and begins
7345 # with a dollar sign (not a hyphen), so the echo should work correctly.
7346 # The option is referenced via a variable to avoid confusing sed.
7347 lt_compile=`echo "$ac_compile" | $SED \
7348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7350 -e 's:$: $lt_compiler_flag:'`
7351 (eval echo "\"\$as_me:7351: $lt_compile\"" >&5)
7352 (eval "$lt_compile" 2>conftest.err)
7354 cat conftest.err >&5
7355 echo "$as_me:7355: \$? = $ac_status" >&5
7356 if (exit $ac_status) && test -s "$ac_outfile"; then
7357 # The compiler can only warn and ignore the option if not recognized
7358 # So say no if there are warnings other than the usual output.
7359 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7361 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7362 lt_cv_prog_compiler_rtti_exceptions=yes
7368 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7369 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7371 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7372 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7379 lt_prog_compiler_wl=
7380 lt_prog_compiler_pic=
7381 lt_prog_compiler_static=
7383 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7384 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7386 if test "$GCC" = yes; then
7387 lt_prog_compiler_wl='-Wl,'
7388 lt_prog_compiler_static='-static'
7392 # All AIX code is PIC.
7393 if test "$host_cpu" = ia64; then
7394 # AIX 5 now supports IA64 processor
7395 lt_prog_compiler_static='-Bstatic'
7400 # FIXME: we need at least 68020 code to build shared libraries, but
7401 # adding the `-m68020' flag to GCC prevents building anything better,
7403 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7406 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7407 # PIC is the default for these OSes.
7410 mingw* | pw32* | os2*)
7411 # This hack is so that the source file can tell whether it is being
7412 # built for inclusion in a dll (and should export symbols for example).
7413 lt_prog_compiler_pic='-DDLL_EXPORT'
7416 darwin* | rhapsody*)
7417 # PIC is the default on this platform
7418 # Common symbols not allowed in MH_DYLIB files
7419 lt_prog_compiler_pic='-fno-common'
7423 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7424 # Instead, we relocate shared libraries at runtime.
7428 # Just because we use GCC doesn't mean we suddenly get shared libraries
7429 # on systems that don't support them.
7430 lt_prog_compiler_can_build_shared=no
7435 if test -d /usr/nec; then
7436 lt_prog_compiler_pic=-Kconform_pic
7441 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7448 lt_prog_compiler_pic='-fPIC'
7454 lt_prog_compiler_pic='-fPIC'
7458 # PORTME Check for flag to pass linker flags through the system compiler.
7461 lt_prog_compiler_wl='-Wl,'
7462 if test "$host_cpu" = ia64; then
7463 # AIX 5 now supports IA64 processor
7464 lt_prog_compiler_static='-Bstatic'
7466 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7470 # PIC is the default on this platform
7471 # Common symbols not allowed in MH_DYLIB files
7472 case $cc_basename in
7474 lt_prog_compiler_pic='-qnocommon'
7475 lt_prog_compiler_wl='-Wl,'
7480 mingw* | pw32* | os2*)
7481 # This hack is so that the source file can tell whether it is being
7482 # built for inclusion in a dll (and should export symbols for example).
7483 lt_prog_compiler_pic='-DDLL_EXPORT'
7486 hpux9* | hpux10* | hpux11*)
7487 lt_prog_compiler_wl='-Wl,'
7488 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7495 lt_prog_compiler_pic='+Z'
7498 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7499 lt_prog_compiler_static='${wl}-a ${wl}archive'
7502 irix5* | irix6* | nonstopux*)
7503 lt_prog_compiler_wl='-Wl,'
7504 # PIC (with -KPIC) is the default.
7505 lt_prog_compiler_static='-non_shared'
7509 lt_prog_compiler_pic='-KPIC'
7510 lt_prog_compiler_static='-Bstatic'
7514 case $cc_basename in
7516 lt_prog_compiler_wl='-Wl,'
7517 lt_prog_compiler_pic='-KPIC'
7518 lt_prog_compiler_static='-static'
7520 pgcc* | pgf77* | pgf90* | pgf95*)
7521 # Portland Group compilers (*not* the Pentium gcc compiler,
7522 # which looks to be a dead project)
7523 lt_prog_compiler_wl='-Wl,'
7524 lt_prog_compiler_pic='-fpic'
7525 lt_prog_compiler_static='-Bstatic'
7528 lt_prog_compiler_wl='-Wl,'
7529 # All Alpha code is PIC.
7530 lt_prog_compiler_static='-non_shared'
7535 osf3* | osf4* | osf5*)
7536 lt_prog_compiler_wl='-Wl,'
7537 # All OSF/1 code is PIC.
7538 lt_prog_compiler_static='-non_shared'
7542 lt_prog_compiler_pic='-KPIC'
7543 lt_prog_compiler_static='-Bstatic'
7544 case $cc_basename in
7546 lt_prog_compiler_wl='-Qoption ld ';;
7548 lt_prog_compiler_wl='-Wl,';;
7553 lt_prog_compiler_wl='-Qoption ld '
7554 lt_prog_compiler_pic='-PIC'
7555 lt_prog_compiler_static='-Bstatic'
7558 sysv4 | sysv4.2uw2* | sysv4.3*)
7559 lt_prog_compiler_wl='-Wl,'
7560 lt_prog_compiler_pic='-KPIC'
7561 lt_prog_compiler_static='-Bstatic'
7565 if test -d /usr/nec ;then
7566 lt_prog_compiler_pic='-Kconform_pic'
7567 lt_prog_compiler_static='-Bstatic'
7571 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7572 lt_prog_compiler_wl='-Wl,'
7573 lt_prog_compiler_pic='-KPIC'
7574 lt_prog_compiler_static='-Bstatic'
7578 lt_prog_compiler_wl='-Wl,'
7579 lt_prog_compiler_can_build_shared=no
7583 lt_prog_compiler_pic='-pic'
7584 lt_prog_compiler_static='-Bstatic'
7588 lt_prog_compiler_can_build_shared=no
7593 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7594 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7597 # Check to make sure the PIC flag actually works.
7599 if test -n "$lt_prog_compiler_pic"; then
7601 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7602 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7603 if test "${lt_prog_compiler_pic_works+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 lt_prog_compiler_pic_works=no
7607 ac_outfile=conftest.$ac_objext
7608 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7609 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7610 # Insert the option either (1) after the last *FLAGS variable, or
7611 # (2) before a word containing "conftest.", or (3) at the end.
7612 # Note that $ac_compile itself does not contain backslashes and begins
7613 # with a dollar sign (not a hyphen), so the echo should work correctly.
7614 # The option is referenced via a variable to avoid confusing sed.
7615 lt_compile=`echo "$ac_compile" | $SED \
7616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7618 -e 's:$: $lt_compiler_flag:'`
7619 (eval echo "\"\$as_me:7619: $lt_compile\"" >&5)
7620 (eval "$lt_compile" 2>conftest.err)
7622 cat conftest.err >&5
7623 echo "$as_me:7623: \$? = $ac_status" >&5
7624 if (exit $ac_status) && test -s "$ac_outfile"; then
7625 # The compiler can only warn and ignore the option if not recognized
7626 # So say no if there are warnings other than the usual output.
7627 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7628 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7629 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7630 lt_prog_compiler_pic_works=yes
7636 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7637 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7639 if test x"$lt_prog_compiler_pic_works" = xyes; then
7640 case $lt_prog_compiler_pic in
7642 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7645 lt_prog_compiler_pic=
7646 lt_prog_compiler_can_build_shared=no
7651 # For platforms which do not support PIC, -DPIC is meaningless:
7653 lt_prog_compiler_pic=
7656 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7661 # Check to make sure the static flag actually works.
7663 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7664 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7665 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7666 if test "${lt_prog_compiler_static_works+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 lt_prog_compiler_static_works=no
7670 save_LDFLAGS="$LDFLAGS"
7671 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7672 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7673 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7674 # The linker can only warn and ignore the option if not recognized
7675 # So say no if there are warnings
7676 if test -s conftest.err; then
7677 # Append any errors to the config.log.
7678 cat conftest.err 1>&5
7679 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7680 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7681 if diff conftest.exp conftest.er2 >/dev/null; then
7682 lt_prog_compiler_static_works=yes
7685 lt_prog_compiler_static_works=yes
7689 LDFLAGS="$save_LDFLAGS"
7692 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7693 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7695 if test x"$lt_prog_compiler_static_works" = xyes; then
7698 lt_prog_compiler_static=
7702 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7703 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7704 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 lt_cv_prog_compiler_c_o=no
7708 $rm -r conftest 2>/dev/null
7712 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7714 lt_compiler_flag="-o out/conftest2.$ac_objext"
7715 # Insert the option either (1) after the last *FLAGS variable, or
7716 # (2) before a word containing "conftest.", or (3) at the end.
7717 # Note that $ac_compile itself does not contain backslashes and begins
7718 # with a dollar sign (not a hyphen), so the echo should work correctly.
7719 lt_compile=`echo "$ac_compile" | $SED \
7720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7722 -e 's:$: $lt_compiler_flag:'`
7723 (eval echo "\"\$as_me:7723: $lt_compile\"" >&5)
7724 (eval "$lt_compile" 2>out/conftest.err)
7726 cat out/conftest.err >&5
7727 echo "$as_me:7727: \$? = $ac_status" >&5
7728 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7730 # The compiler can only warn and ignore the option if not recognized
7731 # So say no if there are warnings
7732 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7733 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7734 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7735 lt_cv_prog_compiler_c_o=yes
7740 # SGI C++ compiler will create directory out/ii_files/ for
7741 # template instantiation
7742 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7743 $rm out/* && rmdir out
7749 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7750 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7753 hard_links="nottested"
7754 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7755 # do not overwrite the value of need_locks provided by the user
7756 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7757 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7760 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7762 ln conftest.a conftest.b 2>&5 || hard_links=no
7763 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7764 { echo "$as_me:$LINENO: result: $hard_links" >&5
7765 echo "${ECHO_T}$hard_links" >&6; }
7766 if test "$hard_links" = no; then
7767 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7768 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7775 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7776 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7779 allow_undefined_flag=
7780 enable_shared_with_static_runtimes=no
7782 archive_expsym_cmds=
7783 old_archive_From_new_cmds=
7784 old_archive_from_expsyms_cmds=
7785 export_dynamic_flag_spec=
7786 whole_archive_flag_spec=
7787 thread_safe_flag_spec=
7788 hardcode_libdir_flag_spec=
7789 hardcode_libdir_flag_spec_ld=
7790 hardcode_libdir_separator=
7793 hardcode_shlibpath_var=unsupported
7794 link_all_deplibs=unknown
7795 hardcode_automatic=no
7798 always_export_symbols=no
7799 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7800 # include_expsyms should be a list of space-separated symbols to be *always*
7801 # included in the symbol list
7803 # exclude_expsyms can be an extended regexp of symbols to exclude
7804 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7805 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7806 # as well as any symbol that contains `d'.
7807 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7808 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7809 # platforms (ab)use it in PIC code, but their linkers get confused if
7810 # the symbol is explicitly referenced. Since portable code cannot
7811 # rely on this symbol name, it's probably fine to never include it in
7812 # preloaded symbol tables.
7813 extract_expsyms_cmds=
7814 # Just being paranoid about ensuring that cc_basename is set.
7815 for cc_temp in $compiler""; do
7817 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7818 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7823 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7826 cygwin* | mingw* | pw32*)
7827 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7828 # When not using gcc, we currently assume that we are using
7829 # Microsoft Visual C++.
7830 if test "$GCC" != yes; then
7835 # we just hope/assume this is gcc and not c89 (= MSVC++)
7844 if test "$with_gnu_ld" = yes; then
7845 # If archive_cmds runs LD, not CC, wlarc should be empty
7848 # Set some defaults for GNU ld with shared library support. These
7849 # are reset later if shared libraries are not supported. Putting them
7850 # here allows them to be overridden if necessary.
7851 runpath_var=LD_RUN_PATH
7852 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7853 export_dynamic_flag_spec='${wl}--export-dynamic'
7854 # ancient GNU ld didn't support --whole-archive et. al.
7855 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7856 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7858 whole_archive_flag_spec=
7860 supports_anon_versioning=no
7861 case `$LD -v 2>/dev/null` in
7862 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7863 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7864 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7865 *\ 2.11.*) ;; # other 2.11 versions
7866 *) supports_anon_versioning=yes ;;
7869 # See if GNU ld supports shared libraries.
7871 aix3* | aix4* | aix5*)
7872 # On AIX/PPC, the GNU linker is very broken
7873 if test "$host_cpu" != ia64; then
7877 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7878 *** to be unable to reliably create shared libraries on AIX.
7879 *** Therefore, libtool is disabling shared libraries support. If you
7880 *** really care for shared libraries, you may want to modify your PATH
7881 *** so that a non-GNU linker is found, and then restart.
7888 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)'
7889 hardcode_libdir_flag_spec='-L$libdir'
7890 hardcode_minus_L=yes
7892 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7893 # that the semantics of dynamic libraries on AmigaOS, at least up
7894 # to version 4, is to share data among multiple programs linked
7895 # with the same dynamic library. Since this doesn't match the
7896 # behavior of shared libraries on other platforms, we can't use
7902 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7903 allow_undefined_flag=unsupported
7904 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7905 # support --undefined. This deserves some investigation. FIXME
7906 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7912 cygwin* | mingw* | pw32*)
7913 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7914 # as there is no search path for DLLs.
7915 hardcode_libdir_flag_spec='-L$libdir'
7916 allow_undefined_flag=unsupported
7917 always_export_symbols=no
7918 enable_shared_with_static_runtimes=yes
7919 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7921 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7923 # If the export-symbols file already is a .def file (1st line
7924 # is EXPORTS), use it as is; otherwise, prepend...
7925 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7926 cp $export_symbols $output_objdir/$soname.def;
7928 echo EXPORTS > $output_objdir/$soname.def;
7929 cat $export_symbols >> $output_objdir/$soname.def;
7931 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7939 hardcode_shlibpath_var=no
7940 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7941 export_dynamic_flag_spec='${wl}-E'
7942 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7943 # Instead, shared libraries are loaded at an image base (0x10000000 by
7944 # default) and relocated if they conflict, which is a slow very memory
7945 # consuming and fragmenting process. To avoid this, we pick a random,
7946 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7947 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7948 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7949 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'
7953 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7955 case $cc_basename,$host_cpu in
7956 pgcc*) # Portland Group C compiler
7957 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'
7958 tmp_addflag=' $pic_flag'
7960 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7961 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'
7962 tmp_addflag=' $pic_flag -Mnomain' ;;
7963 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7964 tmp_addflag=' -i_dynamic' ;;
7965 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7966 tmp_addflag=' -i_dynamic -nofor_main' ;;
7967 ifc* | ifort*) # Intel Fortran compiler
7968 tmp_addflag=' -nofor_main' ;;
7970 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7972 if test $supports_anon_versioning = yes; then
7973 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7974 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7975 $echo "local: *; };" >> $output_objdir/$libname.ver~
7976 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7984 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7985 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7989 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7994 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7998 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7999 *** create shared libraries on Solaris systems. Therefore, libtool
8000 *** is disabling shared libraries support. We urge you to upgrade GNU
8001 *** binutils to release 2.9.1 or newer. Another option is to modify
8002 *** your PATH or compiler configuration so that the native linker is
8003 *** used, and then restart.
8006 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8008 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8014 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8015 case `$LD -v 2>&1` in
8016 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8020 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8021 *** reliably create shared libraries on SCO systems. Therefore, libtool
8022 *** is disabling shared libraries support. We urge you to upgrade GNU
8023 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8024 *** your PATH or compiler configuration so that the native linker is
8025 *** used, and then restart.
8030 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8031 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8033 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8042 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8045 hardcode_shlibpath_var=no
8049 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8051 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8058 if test "$ld_shlibs" = no; then
8060 hardcode_libdir_flag_spec=
8061 export_dynamic_flag_spec=
8062 whole_archive_flag_spec=
8065 # PORTME fill in a description of your system's linker (not GNU ld)
8068 allow_undefined_flag=unsupported
8069 always_export_symbols=yes
8070 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'
8071 # Note: this linker hardcodes the directories in LIBPATH if there
8072 # are no directories specified by -L.
8073 hardcode_minus_L=yes
8074 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8075 # Neither direct hardcoding nor static linking is supported with a
8077 hardcode_direct=unsupported
8082 if test "$host_cpu" = ia64; then
8083 # On IA64, the linker does run time linking by default, so we don't
8084 # have to do anything special.
8085 aix_use_runtimelinking=no
8086 exp_sym_flag='-Bexport'
8089 # If we're using GNU nm, then we don't want the "-C" option.
8090 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8091 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8092 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'
8094 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'
8096 aix_use_runtimelinking=no
8098 # Test if we are trying to use run time linking or normal
8099 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8100 # need to do runtime linking.
8101 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8102 for ld_flag in $LDFLAGS; do
8103 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8104 aix_use_runtimelinking=yes
8111 exp_sym_flag='-bexport'
8112 no_entry_flag='-bnoentry'
8115 # When large executables or shared objects are built, AIX ld can
8116 # have problems creating the table of contents. If linking a library
8117 # or program results in "error TOC overflow" add -mminimal-toc to
8118 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8119 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8123 hardcode_libdir_separator=':'
8124 link_all_deplibs=yes
8126 if test "$GCC" = yes; then
8127 case $host_os in aix4.[012]|aix4.[012].*)
8128 # We only want to do this on AIX 4.2 and lower, the check
8129 # below for broken collect2 doesn't work under 4.3+
8130 collect2name=`${CC} -print-prog-name=collect2`
8131 if test -f "$collect2name" && \
8132 strings "$collect2name" | grep resolve_lib_name >/dev/null
8134 # We have reworked collect2
8137 # We have old collect2
8138 hardcode_direct=unsupported
8139 # It fails to find uninstalled libraries when the uninstalled
8140 # path is not listed in the libpath. Setting hardcode_minus_L
8141 # to unsupported forces relinking
8142 hardcode_minus_L=yes
8143 hardcode_libdir_flag_spec='-L$libdir'
8144 hardcode_libdir_separator=
8148 shared_flag='-shared'
8149 if test "$aix_use_runtimelinking" = yes; then
8150 shared_flag="$shared_flag "'${wl}-G'
8154 if test "$host_cpu" = ia64; then
8155 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8156 # chokes on -Wl,-G. The following line is correct:
8159 if test "$aix_use_runtimelinking" = yes; then
8160 shared_flag='${wl}-G'
8162 shared_flag='${wl}-bM:SRE'
8167 # It seems that -bexpall does not export symbols beginning with
8168 # underscore (_), so it is better to generate a list of symbols to export.
8169 always_export_symbols=yes
8170 if test "$aix_use_runtimelinking" = yes; then
8171 # Warning - without using the other runtime loading flags (-brtl),
8172 # -berok will link without error, but may produce a broken library.
8173 allow_undefined_flag='-berok'
8174 # Determine the default libpath from the value encoded in an empty executable.
8175 cat >conftest.$ac_ext <<_ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8190 rm -f conftest.$ac_objext conftest$ac_exeext
8191 if { (ac_try="$ac_link"
8193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194 *) ac_try_echo=$ac_try;;
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197 (eval "$ac_link") 2>conftest.er1
8199 grep -v '^ *+' conftest.er1 >conftest.err
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } &&
8204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8205 { (case "(($ac_try" in
8206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207 *) ac_try_echo=$ac_try;;
8209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210 (eval "$ac_try") 2>&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; } &&
8214 { ac_try='test -s conftest$ac_exeext'
8215 { (case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_try") 2>&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; }; then
8225 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8227 # Check for a 64-bit object if we didn't find anything.
8228 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; }
8231 echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8238 conftest$ac_exeext conftest.$ac_ext
8239 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8241 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8242 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"
8244 if test "$host_cpu" = ia64; then
8245 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8246 allow_undefined_flag="-z nodefs"
8247 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"
8249 # Determine the default libpath from the value encoded in an empty executable.
8250 cat >conftest.$ac_ext <<_ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8265 rm -f conftest.$ac_objext conftest$ac_exeext
8266 if { (ac_try="$ac_link"
8268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269 *) ac_try_echo=$ac_try;;
8271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8272 (eval "$ac_link") 2>conftest.er1
8274 grep -v '^ *+' conftest.er1 >conftest.err
8276 cat conftest.err >&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); } &&
8279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8280 { (case "(($ac_try" in
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_try") 2>&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; } &&
8289 { ac_try='test -s conftest$ac_exeext'
8290 { (case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_try") 2>&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; }; then
8300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8302 # Check for a 64-bit object if we didn't find anything.
8303 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; }
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8313 conftest$ac_exeext conftest.$ac_ext
8314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8316 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8317 # Warning - without using the other run time loading flags,
8318 # -berok will link without error, but may produce a broken library.
8319 no_undefined_flag=' ${wl}-bernotok'
8320 allow_undefined_flag=' ${wl}-berok'
8321 # Exported symbols can be pulled into shared objects from archives
8322 whole_archive_flag_spec='$convenience'
8323 archive_cmds_need_lc=yes
8324 # This is similar to how AIX traditionally builds its shared libraries.
8325 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'
8331 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)'
8332 hardcode_libdir_flag_spec='-L$libdir'
8333 hardcode_minus_L=yes
8334 # see comment about different semantics on the GNU ld section
8339 export_dynamic_flag_spec=-rdynamic
8342 cygwin* | mingw* | pw32*)
8343 # When not using gcc, we currently assume that we are using
8344 # Microsoft Visual C++.
8345 # hardcode_libdir_flag_spec is actually meaningless, as there is
8346 # no search path for DLLs.
8347 hardcode_libdir_flag_spec=' '
8348 allow_undefined_flag=unsupported
8349 # Tell ltmain to make .lib files, not .a files.
8351 # Tell ltmain to make .dll files, not .so files.
8353 # FIXME: Setting linknames here is a bad hack.
8354 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8355 # The linker will automatically build a .lib file if we build a DLL.
8356 old_archive_From_new_cmds='true'
8357 # FIXME: Should let the user specify the lib program.
8358 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8359 fix_srcfile_path='`cygpath -w "$srcfile"`'
8360 enable_shared_with_static_runtimes=yes
8363 darwin* | rhapsody*)
8365 rhapsody* | darwin1.[012])
8366 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8369 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8370 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8372 case ${MACOSX_DEPLOYMENT_TARGET} in
8374 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8377 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8383 archive_cmds_need_lc=no
8385 hardcode_automatic=yes
8386 hardcode_shlibpath_var=unsupported
8387 whole_archive_flag_spec=''
8388 link_all_deplibs=yes
8389 if test "$GCC" = yes ; then
8390 output_verbose_link_cmd='echo'
8391 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8392 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8393 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8394 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}'
8395 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}'
8397 case $cc_basename in
8399 output_verbose_link_cmd='echo'
8400 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8401 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8402 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8403 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}'
8404 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}'
8414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8415 hardcode_libdir_flag_spec='-L$libdir'
8416 hardcode_shlibpath_var=no
8423 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8424 # support. Future versions do this automatically, but an explicit c++rt0.o
8425 # does not break anything, and helps significantly (at the cost of a little
8428 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8429 hardcode_libdir_flag_spec='-R$libdir'
8431 hardcode_shlibpath_var=no
8434 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8436 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8438 hardcode_minus_L=yes
8439 hardcode_shlibpath_var=no
8442 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8443 freebsd* | kfreebsd*-gnu | dragonfly*)
8444 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8445 hardcode_libdir_flag_spec='-R$libdir'
8447 hardcode_shlibpath_var=no
8451 if test "$GCC" = yes; then
8452 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'
8454 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'
8456 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8457 hardcode_libdir_separator=:
8460 # hardcode_minus_L: Not really in the search PATH,
8461 # but as the default location of the library.
8462 hardcode_minus_L=yes
8463 export_dynamic_flag_spec='${wl}-E'
8467 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8468 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8470 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8472 if test "$with_gnu_ld" = no; then
8473 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8474 hardcode_libdir_separator=:
8477 export_dynamic_flag_spec='${wl}-E'
8479 # hardcode_minus_L: Not really in the search PATH,
8480 # but as the default location of the library.
8481 hardcode_minus_L=yes
8486 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8489 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8492 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8495 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8501 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8504 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8507 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8511 if test "$with_gnu_ld" = no; then
8512 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8513 hardcode_libdir_separator=:
8517 hardcode_libdir_flag_spec_ld='+b $libdir'
8519 hardcode_shlibpath_var=no
8523 export_dynamic_flag_spec='${wl}-E'
8525 # hardcode_minus_L: Not really in the search PATH,
8526 # but as the default location of the library.
8527 hardcode_minus_L=yes
8533 irix5* | irix6* | nonstopux*)
8534 if test "$GCC" = yes; then
8535 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'
8537 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'
8538 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8541 hardcode_libdir_separator=:
8542 link_all_deplibs=yes
8546 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8549 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8551 hardcode_libdir_flag_spec='-R$libdir'
8553 hardcode_shlibpath_var=no
8557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8560 hardcode_libdir_separator=:
8561 hardcode_shlibpath_var=no
8566 hardcode_shlibpath_var=no
8567 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8568 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8569 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8570 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8571 export_dynamic_flag_spec='${wl}-E'
8574 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8575 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8576 hardcode_libdir_flag_spec='-R$libdir'
8579 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8580 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8587 hardcode_libdir_flag_spec='-L$libdir'
8588 hardcode_minus_L=yes
8589 allow_undefined_flag=unsupported
8590 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'
8591 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8595 if test "$GCC" = yes; then
8596 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8597 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'
8599 allow_undefined_flag=' -expect_unresolved \*'
8600 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'
8602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8603 hardcode_libdir_separator=:
8606 osf4* | osf5*) # as osf3* with the addition of -msym flag
8607 if test "$GCC" = yes; then
8608 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8609 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'
8610 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8612 allow_undefined_flag=' -expect_unresolved \*'
8613 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'
8614 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8615 $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'
8617 # Both c and cxx compiler support -rpath directly
8618 hardcode_libdir_flag_spec='-rpath $libdir'
8620 hardcode_libdir_separator=:
8624 no_undefined_flag=' -z text'
8625 if test "$GCC" = yes; then
8627 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8628 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8629 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8632 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8633 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8634 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8636 hardcode_libdir_flag_spec='-R$libdir'
8637 hardcode_shlibpath_var=no
8639 solaris2.[0-5] | solaris2.[0-5].*) ;;
8641 # The compiler driver will combine linker options so we
8642 # cannot just pass the convience library names through
8643 # without $wl, iff we do not link with $LD.
8644 # Luckily, gcc supports the same syntax we need for Sun Studio.
8645 # Supported since Solaris 2.6 (maybe 2.5.1?)
8648 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8650 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' ;;
8653 link_all_deplibs=yes
8657 if test "x$host_vendor" = xsequent; then
8658 # Use $CC to link under sequent, because it throws in some extra .o
8659 # files that make .init and .fini sections work.
8660 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8662 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8664 hardcode_libdir_flag_spec='-L$libdir'
8666 hardcode_minus_L=yes
8667 hardcode_shlibpath_var=no
8671 case $host_vendor in
8673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8674 hardcode_direct=yes # is this really true???
8677 ## LD is ld it makes a PLAMLIB
8678 ## CC just makes a GrossModule.
8679 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8680 reload_cmds='$CC -r -o $output$reload_objs'
8684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8685 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8688 runpath_var='LD_RUN_PATH'
8689 hardcode_shlibpath_var=no
8693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8694 hardcode_shlibpath_var=no
8695 export_dynamic_flag_spec='-Bexport'
8699 if test -d /usr/nec; then
8700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8701 hardcode_shlibpath_var=no
8702 runpath_var=LD_RUN_PATH
8703 hardcode_runpath_var=yes
8708 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8709 no_undefined_flag='${wl}-z,text'
8710 archive_cmds_need_lc=no
8711 hardcode_shlibpath_var=no
8712 runpath_var='LD_RUN_PATH'
8714 if test "$GCC" = yes; then
8715 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8716 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8718 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8719 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8723 sysv5* | sco3.2v5* | sco5v6*)
8724 # Note: We can NOT use -z defs as we might desire, because we do not
8725 # link with -lc, and that would cause any symbols used from libc to
8726 # always be unresolved, which means just about no library would
8727 # ever link correctly. If we're not using GNU ld we use -z text
8728 # though, which does catch some bad symbols but isn't as heavy-handed
8730 no_undefined_flag='${wl}-z,text'
8731 allow_undefined_flag='${wl}-z,nodefs'
8732 archive_cmds_need_lc=no
8733 hardcode_shlibpath_var=no
8734 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8735 hardcode_libdir_separator=':'
8736 link_all_deplibs=yes
8737 export_dynamic_flag_spec='${wl}-Bexport'
8738 runpath_var='LD_RUN_PATH'
8740 if test "$GCC" = yes; then
8741 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8742 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8744 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8745 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8751 hardcode_libdir_flag_spec='-L$libdir'
8752 hardcode_shlibpath_var=no
8761 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8762 echo "${ECHO_T}$ld_shlibs" >&6; }
8763 test "$ld_shlibs" = no && can_build_shared=no
8766 # Do we need to explicitly link libc?
8768 case "x$archive_cmds_need_lc" in
8770 # Assume -lc should be added
8771 archive_cmds_need_lc=yes
8773 if test "$enable_shared" = yes && test "$GCC" = yes; then
8774 case $archive_cmds in
8776 # FIXME: we may have to deal with multi-command sequences.
8779 # Test whether the compiler implicitly links with -lc since on some
8780 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8781 # to ld, don't add -lc before -lgcc.
8782 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8783 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8785 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8788 (eval $ac_compile) 2>&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } 2>conftest.err; then
8794 libobjs=conftest.$ac_objext
8796 wl=$lt_prog_compiler_wl
8797 pic_flag=$lt_prog_compiler_pic
8803 lt_save_allow_undefined_flag=$allow_undefined_flag
8804 allow_undefined_flag=
8805 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8806 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); }
8811 archive_cmds_need_lc=no
8813 archive_cmds_need_lc=yes
8815 allow_undefined_flag=$lt_save_allow_undefined_flag
8817 cat conftest.err 1>&5
8820 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8821 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8828 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8829 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8831 libname_spec='lib$name'
8839 shlibpath_overrides_runpath=unknown
8841 dynamic_linker="$host_os ld.so"
8842 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8843 if test "$GCC" = yes; then
8844 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8845 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8846 # if the path contains ";" then we assume it to be the separator
8847 # otherwise default to the standard path separator (i.e. ":") - it is
8848 # assumed that no part of a normal pathname contains ";" but that should
8849 # okay in the real world where ";" in dirpaths is itself problematic.
8850 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8852 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8855 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8857 need_lib_prefix=unknown
8858 hardcode_into_libs=no
8860 # when you set need_version to no, make sure it does not cause -set_version
8861 # flags to be left without arguments
8862 need_version=unknown
8867 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8868 shlibpath_var=LIBPATH
8870 # AIX 3 has no versioning support, so we append a major version to the name.
8871 soname_spec='${libname}${release}${shared_ext}$major'
8878 hardcode_into_libs=yes
8879 if test "$host_cpu" = ia64; then
8880 # AIX 5 supports IA64
8881 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8882 shlibpath_var=LD_LIBRARY_PATH
8884 # With GCC up to 2.95.x, collect2 would create an import file
8885 # for dependence libraries. The import file would start with
8886 # the line `#! .'. This would cause the generated library to
8887 # depend on `.', always an invalid library. This was fixed in
8888 # development snapshots of GCC prior to 3.0.
8890 aix4 | aix4.[01] | aix4.[01].*)
8891 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8893 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8900 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8901 # soname into executable. Probably we can add versioning support to
8902 # collect2, so additional links can be useful in future.
8903 if test "$aix_use_runtimelinking" = yes; then
8904 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8905 # instead of lib<name>.a to let people know that these are not
8906 # typical AIX shared libraries.
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8909 # We preserve .a as extension for shared libraries through AIX4.2
8910 # and later when we are not doing run time linking.
8911 library_names_spec='${libname}${release}.a $libname.a'
8912 soname_spec='${libname}${release}${shared_ext}$major'
8914 shlibpath_var=LIBPATH
8919 library_names_spec='$libname.ixlibrary $libname.a'
8920 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8921 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'
8925 library_names_spec='${libname}${shared_ext}'
8926 dynamic_linker="$host_os ld.so"
8927 shlibpath_var=LIBRARY_PATH
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8934 soname_spec='${libname}${release}${shared_ext}$major'
8935 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8936 shlibpath_var=LD_LIBRARY_PATH
8937 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8938 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8939 # the default ld.so.conf also contains /usr/contrib/lib and
8940 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8941 # libtool to hard-code these into programs
8944 cygwin* | mingw* | pw32*)
8945 version_type=windows
8950 case $GCC,$host_os in
8951 yes,cygwin* | yes,mingw* | yes,pw32*)
8952 library_names_spec='$libname.dll.a'
8953 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8954 postinstall_cmds='base_file=`basename \${file}`~
8955 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8956 dldir=$destdir/`dirname \$dlpath`~
8957 test -d \$dldir || mkdir -p \$dldir~
8958 $install_prog $dir/$dlname \$dldir/$dlname~
8959 chmod a+x \$dldir/$dlname'
8960 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8961 dlpath=$dir/\$dldll~
8963 shlibpath_overrides_runpath=yes
8967 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8968 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8969 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8972 # MinGW DLLs use traditional 'lib' prefix
8973 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8974 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8975 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8976 # It is most probably a Windows format PATH printed by
8977 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8978 # path with ; separators, and with drive letters. We can handle the
8979 # drive letters (cygwin fileutils understands them), so leave them,
8980 # especially as we might pass files found there to a mingw objdump,
8981 # which wouldn't understand a cygwinified path. Ahh.
8982 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8984 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8988 # pw32 DLLs use 'pw' prefix rather than 'lib'
8989 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8995 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8998 dynamic_linker='Win32 ld.exe'
8999 # FIXME: first we should search . and the directory the executable is in
9003 darwin* | rhapsody*)
9004 dynamic_linker="$host_os dyld"
9008 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9009 soname_spec='${libname}${release}${major}$shared_ext'
9010 shlibpath_overrides_runpath=yes
9011 shlibpath_var=DYLD_LIBRARY_PATH
9012 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9013 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9014 if test "$GCC" = yes; then
9015 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"`
9017 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9019 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9027 soname_spec='${libname}${release}${shared_ext}$major'
9028 shlibpath_var=LD_LIBRARY_PATH
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9040 soname_spec='${libname}${release}${shared_ext}$major'
9041 shlibpath_var=LD_LIBRARY_PATH
9042 shlibpath_overrides_runpath=no
9043 hardcode_into_libs=yes
9044 dynamic_linker='GNU ld.so'
9047 freebsd* | dragonfly*)
9048 # DragonFly does not have aout. When/if they implement a new
9049 # versioning mechanism, adjust this.
9050 if test -x /usr/bin/objformat; then
9051 objformat=`/usr/bin/objformat`
9054 freebsd[123]*) objformat=aout ;;
9058 version_type=freebsd-$objformat
9059 case $version_type in
9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9070 shlibpath_var=LD_LIBRARY_PATH
9073 shlibpath_overrides_runpath=yes
9075 freebsd3.[01]* | freebsdelf3.[01]*)
9076 shlibpath_overrides_runpath=yes
9077 hardcode_into_libs=yes
9079 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9080 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9081 shlibpath_overrides_runpath=no
9082 hardcode_into_libs=yes
9084 freebsd*) # from 4.6 on
9085 shlibpath_overrides_runpath=yes
9086 hardcode_into_libs=yes
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9096 soname_spec='${libname}${release}${shared_ext}$major'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 hardcode_into_libs=yes
9101 hpux9* | hpux10* | hpux11*)
9102 # Give a soname corresponding to the major version so that dld.sl refuses to
9103 # link against other versions.
9110 hardcode_into_libs=yes
9111 dynamic_linker="$host_os dld.so"
9112 shlibpath_var=LD_LIBRARY_PATH
9113 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9115 soname_spec='${libname}${release}${shared_ext}$major'
9116 if test "X$HPUX_IA64_MODE" = X32; then
9117 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9119 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9125 hardcode_into_libs=yes
9126 dynamic_linker="$host_os dld.sl"
9127 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9128 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9130 soname_spec='${libname}${release}${shared_ext}$major'
9131 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9136 dynamic_linker="$host_os dld.sl"
9137 shlibpath_var=SHLIB_PATH
9138 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9140 soname_spec='${libname}${release}${shared_ext}$major'
9143 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9144 postinstall_cmds='chmod 555 $lib'
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9152 soname_spec='${libname}${release}${shared_ext}$major'
9153 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9154 shlibpath_var=LD_LIBRARY_PATH
9155 shlibpath_overrides_runpath=no
9156 hardcode_into_libs=yes
9159 irix5* | irix6* | nonstopux*)
9161 nonstopux*) version_type=nonstopux ;;
9163 if test "$lt_cv_prog_gnu_ld" = yes; then
9171 soname_spec='${libname}${release}${shared_ext}$major'
9172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9174 irix5* | nonstopux*)
9178 case $LD in # libtool.m4 will add one of these switches to LD
9179 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9180 libsuff= shlibsuff= libmagic=32-bit;;
9181 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9182 libsuff=32 shlibsuff=N32 libmagic=N32;;
9183 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9184 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9185 *) libsuff= shlibsuff= libmagic=never-match;;
9189 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9190 shlibpath_overrides_runpath=no
9191 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9192 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9193 hardcode_into_libs=yes
9196 # No shared lib support for Linux oldld, aout, or coff.
9197 linux*oldld* | linux*aout* | linux*coff*)
9201 # This must be Linux ELF.
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207 soname_spec='${libname}${release}${shared_ext}$major'
9208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9209 shlibpath_var=LD_LIBRARY_PATH
9210 shlibpath_overrides_runpath=no
9211 # This implies no fast_install, which is unacceptable.
9212 # Some rework will be needed to allow for fast_install
9213 # before this can be enabled.
9214 hardcode_into_libs=yes
9216 # Append ld.so.conf contents to the search path
9217 if test -f /etc/ld.so.conf; then
9218 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' ' '`
9219 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9222 # We used to test for /lib/ld.so.1 and disable shared libraries on
9223 # powerpc, because MkLinux only supported shared libraries with the
9224 # GNU dynamic linker. Since this was broken with cross compilers,
9225 # most powerpc-linux boxes support dynamic linking these days and
9226 # people can always --disable-shared, the test was removed, and we
9227 # assume the GNU/Linux dynamic linker is in use.
9228 dynamic_linker='GNU/Linux ld.so'
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9236 soname_spec='${libname}${release}${shared_ext}$major'
9237 shlibpath_var=LD_LIBRARY_PATH
9238 shlibpath_overrides_runpath=no
9239 hardcode_into_libs=yes
9240 dynamic_linker='GNU ld.so'
9247 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9250 dynamic_linker='NetBSD (a.out) ld.so'
9252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9253 soname_spec='${libname}${release}${shared_ext}$major'
9254 dynamic_linker='NetBSD ld.elf_so'
9256 shlibpath_var=LD_LIBRARY_PATH
9257 shlibpath_overrides_runpath=yes
9258 hardcode_into_libs=yes
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264 shlibpath_var=LD_LIBRARY_PATH
9265 shlibpath_overrides_runpath=yes
9272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9273 soname_spec='${libname}${release}${shared_ext}$major'
9274 shlibpath_var=LD_LIBRARY_PATH
9275 shlibpath_overrides_runpath=yes
9280 sys_lib_dlsearch_path_spec="/usr/lib"
9282 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9284 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9285 *) need_version=no ;;
9287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9289 shlibpath_var=LD_LIBRARY_PATH
9290 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9292 openbsd2.[89] | openbsd2.[89].*)
9293 shlibpath_overrides_runpath=no
9296 shlibpath_overrides_runpath=yes
9300 shlibpath_overrides_runpath=yes
9305 libname_spec='$name'
9308 library_names_spec='$libname${shared_ext} $libname.a'
9309 dynamic_linker='OS/2 ld.exe'
9310 shlibpath_var=LIBPATH
9313 osf3* | osf4* | osf5*)
9317 soname_spec='${libname}${release}${shared_ext}$major'
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 shlibpath_var=LD_LIBRARY_PATH
9320 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9321 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9329 soname_spec='${libname}${release}${shared_ext}$major'
9330 shlibpath_var=LD_LIBRARY_PATH
9331 shlibpath_overrides_runpath=yes
9332 hardcode_into_libs=yes
9333 # ldd complains unless libraries are executable
9334 postinstall_cmds='chmod +x $lib'
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9340 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9341 shlibpath_var=LD_LIBRARY_PATH
9342 shlibpath_overrides_runpath=yes
9343 if test "$with_gnu_ld" = yes; then
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352 soname_spec='${libname}${release}${shared_ext}$major'
9353 shlibpath_var=LD_LIBRARY_PATH
9354 case $host_vendor in
9356 shlibpath_overrides_runpath=no
9358 export_dynamic_flag_spec='${wl}-Blargedynsym'
9359 runpath_var=LD_RUN_PATH
9367 shlibpath_overrides_runpath=no
9368 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9374 if test -d /usr/nec ;then
9376 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9377 soname_spec='$libname${shared_ext}.$major'
9378 shlibpath_var=LD_LIBRARY_PATH
9382 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9383 version_type=freebsd-elf
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9387 soname_spec='${libname}${release}${shared_ext}$major'
9388 shlibpath_var=LD_LIBRARY_PATH
9389 hardcode_into_libs=yes
9390 if test "$with_gnu_ld" = yes; then
9391 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9392 shlibpath_overrides_runpath=no
9394 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9395 shlibpath_overrides_runpath=yes
9398 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9402 sys_lib_dlsearch_path_spec='/usr/lib'
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408 soname_spec='${libname}${release}${shared_ext}$major'
9409 shlibpath_var=LD_LIBRARY_PATH
9416 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9417 echo "${ECHO_T}$dynamic_linker" >&6; }
9418 test "$dynamic_linker" = no && can_build_shared=no
9420 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9421 if test "$GCC" = yes; then
9422 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9425 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9426 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9428 if test -n "$hardcode_libdir_flag_spec" || \
9429 test -n "$runpath_var" || \
9430 test "X$hardcode_automatic" = "Xyes" ; then
9432 # We can hardcode non-existant directories.
9433 if test "$hardcode_direct" != no &&
9434 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9435 # have to relink, otherwise we might link with an installed library
9436 # when we should be linking with a yet-to-be-installed one
9437 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9438 test "$hardcode_minus_L" != no; then
9439 # Linking always hardcodes the temporary library directory.
9440 hardcode_action=relink
9442 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9443 hardcode_action=immediate
9446 # We cannot hardcode anything, or else we can only hardcode existing
9448 hardcode_action=unsupported
9450 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9451 echo "${ECHO_T}$hardcode_action" >&6; }
9453 if test "$hardcode_action" = relink; then
9454 # Fast installation is not supported
9455 enable_fast_install=no
9456 elif test "$shlibpath_overrides_runpath" = yes ||
9457 test "$enable_shared" = no; then
9458 # Fast installation is not necessary
9459 enable_fast_install=needless
9464 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9465 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9466 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9467 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9468 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9469 { echo "$as_me:$LINENO: result: yes" >&5
9470 echo "${ECHO_T}yes" >&6; }
9472 # FIXME - insert some real tests, host_os isn't really good enough
9475 if test -n "$STRIP" ; then
9476 striplib="$STRIP -x"
9477 { echo "$as_me:$LINENO: result: yes" >&5
9478 echo "${ECHO_T}yes" >&6; }
9480 { echo "$as_me:$LINENO: result: no" >&5
9481 echo "${ECHO_T}no" >&6; }
9485 { echo "$as_me:$LINENO: result: no" >&5
9486 echo "${ECHO_T}no" >&6; }
9491 if test "x$enable_dlopen" != xyes; then
9492 enable_dlopen=unknown
9493 enable_dlopen_self=unknown
9494 enable_dlopen_self_static=unknown
9501 lt_cv_dlopen="load_add_on"
9503 lt_cv_dlopen_self=yes
9507 lt_cv_dlopen="LoadLibrary"
9512 lt_cv_dlopen="dlopen"
9517 # if libdl is installed we need to link against it
9518 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9519 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9520 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9521 echo $ECHO_N "(cached) $ECHO_C" >&6
9523 ac_check_lib_save_LIBS=$LIBS
9525 cat >conftest.$ac_ext <<_ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9532 /* Override any GCC internal prototype to avoid an error.
9533 Use char because int might match the return type of a GCC
9534 builtin and then its argument prototype would still apply. */
9547 rm -f conftest.$ac_objext conftest$ac_exeext
9548 if { (ac_try="$ac_link"
9550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9551 *) ac_try_echo=$ac_try;;
9553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9554 (eval "$ac_link") 2>conftest.er1
9556 grep -v '^ *+' conftest.er1 >conftest.err
9558 cat conftest.err >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } &&
9561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9562 { (case "(($ac_try" in
9563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564 *) ac_try_echo=$ac_try;;
9566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567 (eval "$ac_try") 2>&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; } &&
9571 { ac_try='test -s conftest$ac_exeext'
9572 { (case "(($ac_try" in
9573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9574 *) ac_try_echo=$ac_try;;
9576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9577 (eval "$ac_try") 2>&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); }; }; then
9581 ac_cv_lib_dl_dlopen=yes
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9586 ac_cv_lib_dl_dlopen=no
9589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9590 conftest$ac_exeext conftest.$ac_ext
9591 LIBS=$ac_check_lib_save_LIBS
9593 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9594 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9595 if test $ac_cv_lib_dl_dlopen = yes; then
9596 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9601 lt_cv_dlopen_self=yes
9608 { echo "$as_me:$LINENO: checking for shl_load" >&5
9609 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9610 if test "${ac_cv_func_shl_load+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9613 cat >conftest.$ac_ext <<_ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9619 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9621 #define shl_load innocuous_shl_load
9623 /* System header to define __stub macros and hopefully few prototypes,
9624 which can conflict with char shl_load (); below.
9625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9626 <limits.h> exists even on freestanding compilers. */
9629 # include <limits.h>
9631 # include <assert.h>
9636 /* Override any GCC internal prototype to avoid an error.
9637 Use char because int might match the return type of a GCC
9638 builtin and then its argument prototype would still apply. */
9643 /* The GNU C library defines this for functions which it implements
9644 to always fail with ENOSYS. Some functions are actually named
9645 something starting with __ and the normal name is an alias. */
9646 #if defined __stub_shl_load || defined __stub___shl_load
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (ac_try="$ac_link"
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_link") 2>conftest.er1
9667 grep -v '^ *+' conftest.er1 >conftest.err
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } &&
9672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9673 { (case "(($ac_try" in
9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675 *) ac_try_echo=$ac_try;;
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678 (eval "$ac_try") 2>&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; } &&
9682 { ac_try='test -s conftest$ac_exeext'
9683 { (case "(($ac_try" in
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_try") 2>&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 ac_cv_func_shl_load=yes
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9697 ac_cv_func_shl_load=no
9700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9701 conftest$ac_exeext conftest.$ac_ext
9703 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9704 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9705 if test $ac_cv_func_shl_load = yes; then
9706 lt_cv_dlopen="shl_load"
9708 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9709 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9710 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 ac_check_lib_save_LIBS=$LIBS
9715 cat >conftest.$ac_ext <<_ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9722 /* Override any GCC internal prototype to avoid an error.
9723 Use char because int might match the return type of a GCC
9724 builtin and then its argument prototype would still apply. */
9737 rm -f conftest.$ac_objext conftest$ac_exeext
9738 if { (ac_try="$ac_link"
9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741 *) ac_try_echo=$ac_try;;
9743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744 (eval "$ac_link") 2>conftest.er1
9746 grep -v '^ *+' conftest.er1 >conftest.err
9748 cat conftest.err >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } &&
9751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9752 { (case "(($ac_try" in
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757 (eval "$ac_try") 2>&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; } &&
9761 { ac_try='test -s conftest$ac_exeext'
9762 { (case "(($ac_try" in
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_try") 2>&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; }; then
9771 ac_cv_lib_dld_shl_load=yes
9773 echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9776 ac_cv_lib_dld_shl_load=no
9779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9780 conftest$ac_exeext conftest.$ac_ext
9781 LIBS=$ac_check_lib_save_LIBS
9783 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9784 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9785 if test $ac_cv_lib_dld_shl_load = yes; then
9786 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9788 { echo "$as_me:$LINENO: checking for dlopen" >&5
9789 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9790 if test "${ac_cv_func_dlopen+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 cat >conftest.$ac_ext <<_ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9799 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9801 #define dlopen innocuous_dlopen
9803 /* System header to define __stub macros and hopefully few prototypes,
9804 which can conflict with char dlopen (); below.
9805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9806 <limits.h> exists even on freestanding compilers. */
9809 # include <limits.h>
9811 # include <assert.h>
9816 /* Override any GCC internal prototype to avoid an error.
9817 Use char because int might match the return type of a GCC
9818 builtin and then its argument prototype would still apply. */
9823 /* The GNU C library defines this for functions which it implements
9824 to always fail with ENOSYS. Some functions are actually named
9825 something starting with __ and the normal name is an alias. */
9826 #if defined __stub_dlopen || defined __stub___dlopen
9838 rm -f conftest.$ac_objext conftest$ac_exeext
9839 if { (ac_try="$ac_link"
9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842 *) ac_try_echo=$ac_try;;
9844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845 (eval "$ac_link") 2>conftest.er1
9847 grep -v '^ *+' conftest.er1 >conftest.err
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } &&
9852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9853 { (case "(($ac_try" in
9854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855 *) ac_try_echo=$ac_try;;
9857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858 (eval "$ac_try") 2>&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }; } &&
9862 { ac_try='test -s conftest$ac_exeext'
9863 { (case "(($ac_try" in
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868 (eval "$ac_try") 2>&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 ac_cv_func_dlopen=yes
9874 echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9877 ac_cv_func_dlopen=no
9880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9881 conftest$ac_exeext conftest.$ac_ext
9883 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9884 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9885 if test $ac_cv_func_dlopen = yes; then
9886 lt_cv_dlopen="dlopen"
9888 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9889 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9890 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9893 ac_check_lib_save_LIBS=$LIBS
9895 cat >conftest.$ac_ext <<_ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h. */
9902 /* Override any GCC internal prototype to avoid an error.
9903 Use char because int might match the return type of a GCC
9904 builtin and then its argument prototype would still apply. */
9917 rm -f conftest.$ac_objext conftest$ac_exeext
9918 if { (ac_try="$ac_link"
9920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921 *) ac_try_echo=$ac_try;;
9923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924 (eval "$ac_link") 2>conftest.er1
9926 grep -v '^ *+' conftest.er1 >conftest.err
9928 cat conftest.err >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } &&
9931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9932 { (case "(($ac_try" in
9933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934 *) ac_try_echo=$ac_try;;
9936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9937 (eval "$ac_try") 2>&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; } &&
9941 { ac_try='test -s conftest$ac_exeext'
9942 { (case "(($ac_try" in
9943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944 *) ac_try_echo=$ac_try;;
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947 (eval "$ac_try") 2>&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); }; }; then
9951 ac_cv_lib_dl_dlopen=yes
9953 echo "$as_me: failed program was:" >&5
9954 sed 's/^/| /' conftest.$ac_ext >&5
9956 ac_cv_lib_dl_dlopen=no
9959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9960 conftest$ac_exeext conftest.$ac_ext
9961 LIBS=$ac_check_lib_save_LIBS
9963 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9964 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9965 if test $ac_cv_lib_dl_dlopen = yes; then
9966 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9968 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9969 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9970 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9971 echo $ECHO_N "(cached) $ECHO_C" >&6
9973 ac_check_lib_save_LIBS=$LIBS
9975 cat >conftest.$ac_ext <<_ACEOF
9978 cat confdefs.h >>conftest.$ac_ext
9979 cat >>conftest.$ac_ext <<_ACEOF
9980 /* end confdefs.h. */
9982 /* Override any GCC internal prototype to avoid an error.
9983 Use char because int might match the return type of a GCC
9984 builtin and then its argument prototype would still apply. */
9997 rm -f conftest.$ac_objext conftest$ac_exeext
9998 if { (ac_try="$ac_link"
10000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001 *) ac_try_echo=$ac_try;;
10003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004 (eval "$ac_link") 2>conftest.er1
10006 grep -v '^ *+' conftest.er1 >conftest.err
10008 cat conftest.err >&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } &&
10011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10012 { (case "(($ac_try" in
10013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014 *) ac_try_echo=$ac_try;;
10016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017 (eval "$ac_try") 2>&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; } &&
10021 { ac_try='test -s conftest$ac_exeext'
10022 { (case "(($ac_try" in
10023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024 *) ac_try_echo=$ac_try;;
10026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027 (eval "$ac_try") 2>&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; }; then
10031 ac_cv_lib_svld_dlopen=yes
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10036 ac_cv_lib_svld_dlopen=no
10039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10040 conftest$ac_exeext conftest.$ac_ext
10041 LIBS=$ac_check_lib_save_LIBS
10043 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10044 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10045 if test $ac_cv_lib_svld_dlopen = yes; then
10046 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10048 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10049 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10050 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10051 echo $ECHO_N "(cached) $ECHO_C" >&6
10053 ac_check_lib_save_LIBS=$LIBS
10055 cat >conftest.$ac_ext <<_ACEOF
10058 cat confdefs.h >>conftest.$ac_ext
10059 cat >>conftest.$ac_ext <<_ACEOF
10060 /* end confdefs.h. */
10062 /* Override any GCC internal prototype to avoid an error.
10063 Use char because int might match the return type of a GCC
10064 builtin and then its argument prototype would still apply. */
10072 return dld_link ();
10077 rm -f conftest.$ac_objext conftest$ac_exeext
10078 if { (ac_try="$ac_link"
10079 case "(($ac_try" in
10080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081 *) ac_try_echo=$ac_try;;
10083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084 (eval "$ac_link") 2>conftest.er1
10086 grep -v '^ *+' conftest.er1 >conftest.err
10088 cat conftest.err >&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); } &&
10091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10092 { (case "(($ac_try" in
10093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094 *) ac_try_echo=$ac_try;;
10096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097 (eval "$ac_try") 2>&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; } &&
10101 { ac_try='test -s conftest$ac_exeext'
10102 { (case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107 (eval "$ac_try") 2>&5
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; }; then
10111 ac_cv_lib_dld_dld_link=yes
10113 echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10116 ac_cv_lib_dld_dld_link=no
10119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10120 conftest$ac_exeext conftest.$ac_ext
10121 LIBS=$ac_check_lib_save_LIBS
10123 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10124 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10125 if test $ac_cv_lib_dld_dld_link = yes; then
10126 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10147 if test "x$lt_cv_dlopen" != xno; then
10153 case $lt_cv_dlopen in
10155 save_CPPFLAGS="$CPPFLAGS"
10156 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10158 save_LDFLAGS="$LDFLAGS"
10159 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10162 LIBS="$lt_cv_dlopen_libs $LIBS"
10164 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10165 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10166 if test "${lt_cv_dlopen_self+set}" = set; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10169 if test "$cross_compiling" = yes; then :
10170 lt_cv_dlopen_self=cross
10172 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10173 lt_status=$lt_dlunknown
10174 cat > conftest.$ac_ext <<EOF
10175 #line 10175 "configure"
10176 #include "confdefs.h"
10185 # define LT_DLGLOBAL RTLD_GLOBAL
10188 # define LT_DLGLOBAL DL_GLOBAL
10190 # define LT_DLGLOBAL 0
10194 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10195 find out it does not work in some platform. */
10196 #ifndef LT_DLLAZY_OR_NOW
10198 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10201 # define LT_DLLAZY_OR_NOW DL_LAZY
10204 # define LT_DLLAZY_OR_NOW RTLD_NOW
10207 # define LT_DLLAZY_OR_NOW DL_NOW
10209 # define LT_DLLAZY_OR_NOW 0
10217 extern "C" void exit (int);
10220 void fnord() { int i=42;}
10223 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10224 int status = $lt_dlunknown;
10228 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10229 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10230 /* dlclose (self); */
10238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10239 (eval $ac_link) 2>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10243 (./conftest; exit; ) >&5 2>/dev/null
10245 case x$lt_status in
10246 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10247 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10248 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10251 # compilation failed
10252 lt_cv_dlopen_self=no
10259 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10260 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10262 if test "x$lt_cv_dlopen_self" = xyes; then
10263 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10264 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10265 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10266 if test "${lt_cv_dlopen_self_static+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 if test "$cross_compiling" = yes; then :
10270 lt_cv_dlopen_self_static=cross
10272 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10273 lt_status=$lt_dlunknown
10274 cat > conftest.$ac_ext <<EOF
10275 #line 10275 "configure"
10276 #include "confdefs.h"
10285 # define LT_DLGLOBAL RTLD_GLOBAL
10288 # define LT_DLGLOBAL DL_GLOBAL
10290 # define LT_DLGLOBAL 0
10294 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10295 find out it does not work in some platform. */
10296 #ifndef LT_DLLAZY_OR_NOW
10298 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10301 # define LT_DLLAZY_OR_NOW DL_LAZY
10304 # define LT_DLLAZY_OR_NOW RTLD_NOW
10307 # define LT_DLLAZY_OR_NOW DL_NOW
10309 # define LT_DLLAZY_OR_NOW 0
10317 extern "C" void exit (int);
10320 void fnord() { int i=42;}
10323 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10324 int status = $lt_dlunknown;
10328 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10329 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10330 /* dlclose (self); */
10338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10339 (eval $ac_link) 2>&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10343 (./conftest; exit; ) >&5 2>/dev/null
10345 case x$lt_status in
10346 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10347 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10348 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10351 # compilation failed
10352 lt_cv_dlopen_self_static=no
10359 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10360 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10363 CPPFLAGS="$save_CPPFLAGS"
10364 LDFLAGS="$save_LDFLAGS"
10369 case $lt_cv_dlopen_self in
10370 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10371 *) enable_dlopen_self=unknown ;;
10374 case $lt_cv_dlopen_self_static in
10375 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10376 *) enable_dlopen_self_static=unknown ;;
10381 # Report which library types will actually be built
10382 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10383 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10384 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10385 echo "${ECHO_T}$can_build_shared" >&6; }
10387 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10388 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10389 test "$can_build_shared" = "no" && enable_shared=no
10391 # On AIX, shared libraries and static libraries use the same namespace, and
10392 # are all built from PIC.
10395 test "$enable_shared" = yes && enable_static=no
10396 if test -n "$RANLIB"; then
10397 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10398 postinstall_cmds='$RANLIB $lib'
10403 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10404 test "$enable_shared" = yes && enable_static=no
10408 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10409 echo "${ECHO_T}$enable_shared" >&6; }
10411 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10412 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10413 # Make sure either enable_shared or enable_static is yes.
10414 test "$enable_shared" = yes || enable_static=yes
10415 { echo "$as_me:$LINENO: result: $enable_static" >&5
10416 echo "${ECHO_T}$enable_static" >&6; }
10418 # The else clause should only fire when bootstrapping the
10419 # libtool distribution, otherwise you forgot to ship ltmain.sh
10420 # with your package, and you will get complaints that there are
10421 # no rules to generate ltmain.sh.
10422 if test -f "$ltmain"; then
10423 # See if we are running on zsh, and set the options which allow our commands through
10424 # without removal of \ escapes.
10425 if test -n "${ZSH_VERSION+set}" ; then
10426 setopt NO_GLOB_SUBST
10428 # Now quote all the things that may contain metacharacters while being
10429 # careful not to overquote the AC_SUBSTed values. We take copies of the
10430 # variables and quote the copies for generation of the libtool script.
10431 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10433 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10434 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10435 deplibs_check_method reload_flag reload_cmds need_locks \
10436 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10437 lt_cv_sys_global_symbol_to_c_name_address \
10438 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10439 old_postinstall_cmds old_postuninstall_cmds \
10443 lt_prog_compiler_wl \
10444 lt_prog_compiler_pic \
10445 lt_prog_compiler_static \
10446 lt_prog_compiler_no_builtin_flag \
10447 export_dynamic_flag_spec \
10448 thread_safe_flag_spec \
10449 whole_archive_flag_spec \
10450 enable_shared_with_static_runtimes \
10452 old_archive_from_new_cmds \
10457 compiler_lib_search_path \
10459 archive_expsym_cmds \
10461 postuninstall_cmds \
10462 old_archive_from_expsyms_cmds \
10463 allow_undefined_flag \
10464 no_undefined_flag \
10465 export_symbols_cmds \
10466 hardcode_libdir_flag_spec \
10467 hardcode_libdir_flag_spec_ld \
10468 hardcode_libdir_separator \
10469 hardcode_automatic \
10471 module_expsym_cmds \
10472 lt_cv_prog_compiler_c_o \
10474 include_expsyms; do
10477 old_archive_cmds | \
10478 old_archive_from_new_cmds | \
10480 archive_expsym_cmds | \
10482 module_expsym_cmds | \
10483 old_archive_from_expsyms_cmds | \
10484 export_symbols_cmds | \
10485 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10486 postinstall_cmds | postuninstall_cmds | \
10487 old_postinstall_cmds | old_postuninstall_cmds | \
10488 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10489 # Double-quote double-evaled strings.
10490 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10493 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10499 *'\$0 --fallback-echo"')
10500 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10504 cfgfile="${ofile}T"
10505 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10507 { echo "$as_me:$LINENO: creating $ofile" >&5
10508 echo "$as_me: creating $ofile" >&6;}
10510 cat <<__EOF__ >> "$cfgfile"
10513 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10514 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10515 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10517 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10518 # Free Software Foundation, Inc.
10520 # This file is part of GNU Libtool:
10521 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10523 # This program is free software; you can redistribute it and/or modify
10524 # it under the terms of the GNU General Public License as published by
10525 # the Free Software Foundation; either version 2 of the License, or
10526 # (at your option) any later version.
10528 # This program is distributed in the hope that it will be useful, but
10529 # WITHOUT ANY WARRANTY; without even the implied warranty of
10530 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10531 # General Public License for more details.
10533 # You should have received a copy of the GNU General Public License
10534 # along with this program; if not, write to the Free Software
10535 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10537 # As a special exception to the GNU General Public License, if you
10538 # distribute this file as part of a program that contains a
10539 # configuration script generated by Autoconf, you may include it under
10540 # the same distribution terms that you use for the rest of that program.
10542 # A sed program that does not truncate output.
10545 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10546 Xsed="$SED -e 1s/^X//"
10548 # The HP-UX ksh and POSIX shell print the target directory to stdout
10549 # if CDPATH is set.
10550 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10552 # The names of the tagged configurations supported by this script.
10555 # ### BEGIN LIBTOOL CONFIG
10557 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10559 # Shell to use when invoking shell scripts.
10562 # Whether or not to build shared libraries.
10563 build_libtool_libs=$enable_shared
10565 # Whether or not to build static libraries.
10566 build_old_libs=$enable_static
10568 # Whether or not to add -lc for building shared libraries.
10569 build_libtool_need_lc=$archive_cmds_need_lc
10571 # Whether or not to disallow shared libs when runtime libs are static
10572 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10574 # Whether or not to optimize for fast installation.
10575 fast_install=$enable_fast_install
10578 host_alias=$host_alias
10582 # The build system.
10583 build_alias=$build_alias
10587 # An echo program that does not interpret backslashes.
10592 AR_FLAGS=$lt_AR_FLAGS
10597 # LTCC compiler flags.
10598 LTCFLAGS=$lt_LTCFLAGS
10600 # A language-specific compiler.
10603 # Is the compiler the GNU C compiler?
10609 # The linker used to build libraries.
10612 # Whether we need hard or soft links.
10615 # A BSD-compatible nm program.
10618 # A symbol stripping program
10621 # Used to examine libraries when file_magic_cmd begins "file"
10622 MAGIC_CMD=$MAGIC_CMD
10624 # Used on cygwin: DLL creation program.
10627 # Used on cygwin: object dumper.
10630 # Used on cygwin: assembler.
10633 # The name of the directory that contains temporary libtool files.
10636 # How to create reloadable object files.
10637 reload_flag=$lt_reload_flag
10638 reload_cmds=$lt_reload_cmds
10640 # How to pass a linker flag through the compiler.
10641 wl=$lt_lt_prog_compiler_wl
10643 # Object file suffix (normally "o").
10644 objext="$ac_objext"
10646 # Old archive suffix (normally "a").
10649 # Shared library suffix (normally ".so").
10650 shrext_cmds='$shrext_cmds'
10652 # Executable file suffix (normally "").
10655 # Additional compiler flags for building library objects.
10656 pic_flag=$lt_lt_prog_compiler_pic
10659 # What is the maximum length of a command?
10660 max_cmd_len=$lt_cv_sys_max_cmd_len
10662 # Does compiler simultaneously support -c and -o options?
10663 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10665 # Must we lock files when doing compilation?
10666 need_locks=$lt_need_locks
10668 # Do we need the lib prefix for modules?
10669 need_lib_prefix=$need_lib_prefix
10671 # Do we need a version for libraries?
10672 need_version=$need_version
10674 # Whether dlopen is supported.
10675 dlopen_support=$enable_dlopen
10677 # Whether dlopen of programs is supported.
10678 dlopen_self=$enable_dlopen_self
10680 # Whether dlopen of statically linked programs is supported.
10681 dlopen_self_static=$enable_dlopen_self_static
10683 # Compiler flag to prevent dynamic linking.
10684 link_static_flag=$lt_lt_prog_compiler_static
10686 # Compiler flag to turn off builtin functions.
10687 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10689 # Compiler flag to allow reflexive dlopens.
10690 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10692 # Compiler flag to generate shared objects directly from archives.
10693 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10695 # Compiler flag to generate thread-safe objects.
10696 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10698 # Library versioning type.
10699 version_type=$version_type
10701 # Format of library name prefix.
10702 libname_spec=$lt_libname_spec
10704 # List of archive names. First name is the real one, the rest are links.
10705 # The last name is the one that the linker finds with -lNAME.
10706 library_names_spec=$lt_library_names_spec
10708 # The coded name of the library, if different from the real name.
10709 soname_spec=$lt_soname_spec
10711 # Commands used to build and install an old-style archive.
10713 old_archive_cmds=$lt_old_archive_cmds
10714 old_postinstall_cmds=$lt_old_postinstall_cmds
10715 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10717 # Create an old-style archive from a shared archive.
10718 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10720 # Create a temporary old-style archive to link instead of a shared archive.
10721 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10723 # Commands used to build and install a shared archive.
10724 archive_cmds=$lt_archive_cmds
10725 archive_expsym_cmds=$lt_archive_expsym_cmds
10726 postinstall_cmds=$lt_postinstall_cmds
10727 postuninstall_cmds=$lt_postuninstall_cmds
10729 # Commands used to build a loadable module (assumed same as above if empty)
10730 module_cmds=$lt_module_cmds
10731 module_expsym_cmds=$lt_module_expsym_cmds
10733 # Commands to strip libraries.
10734 old_striplib=$lt_old_striplib
10735 striplib=$lt_striplib
10737 # Dependencies to place before the objects being linked to create a
10739 predep_objects=$lt_predep_objects
10741 # Dependencies to place after the objects being linked to create a
10743 postdep_objects=$lt_postdep_objects
10745 # Dependencies to place before the objects being linked to create a
10747 predeps=$lt_predeps
10749 # Dependencies to place after the objects being linked to create a
10751 postdeps=$lt_postdeps
10753 # The library search path used internally by the compiler when linking
10754 # a shared library.
10755 compiler_lib_search_path=$lt_compiler_lib_search_path
10757 # Method to check whether dependent libraries are shared objects.
10758 deplibs_check_method=$lt_deplibs_check_method
10760 # Command to use when deplibs_check_method == file_magic.
10761 file_magic_cmd=$lt_file_magic_cmd
10763 # Flag that allows shared libraries with undefined symbols to be built.
10764 allow_undefined_flag=$lt_allow_undefined_flag
10766 # Flag that forces no undefined symbols.
10767 no_undefined_flag=$lt_no_undefined_flag
10769 # Commands used to finish a libtool library installation in a directory.
10770 finish_cmds=$lt_finish_cmds
10772 # Same as above, but a single script fragment to be evaled but not shown.
10773 finish_eval=$lt_finish_eval
10775 # Take the output of nm and produce a listing of raw symbols and C names.
10776 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10778 # Transform the output of nm in a proper C declaration
10779 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10781 # Transform the output of nm in a C name address pair
10782 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10784 # This is the shared library runtime path variable.
10785 runpath_var=$runpath_var
10787 # This is the shared library path variable.
10788 shlibpath_var=$shlibpath_var
10790 # Is shlibpath searched before the hard-coded library search path?
10791 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10793 # How to hardcode a shared library path into an executable.
10794 hardcode_action=$hardcode_action
10796 # Whether we should hardcode library paths into libraries.
10797 hardcode_into_libs=$hardcode_into_libs
10799 # Flag to hardcode \$libdir into a binary during linking.
10800 # This must work even if \$libdir does not exist.
10801 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10803 # If ld is used when linking, flag to hardcode \$libdir into
10804 # a binary during linking. This must work even if \$libdir does
10806 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10808 # Whether we need a single -rpath flag with a separated argument.
10809 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10811 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10812 # resulting binary.
10813 hardcode_direct=$hardcode_direct
10815 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10816 # resulting binary.
10817 hardcode_minus_L=$hardcode_minus_L
10819 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10820 # the resulting binary.
10821 hardcode_shlibpath_var=$hardcode_shlibpath_var
10823 # Set to yes if building a shared library automatically hardcodes DIR into the library
10824 # and all subsequent libraries and executables linked against it.
10825 hardcode_automatic=$hardcode_automatic
10827 # Variables whose values should be saved in libtool wrapper scripts and
10828 # restored at relink time.
10829 variables_saved_for_relink="$variables_saved_for_relink"
10831 # Whether libtool must link a program against all its dependency libraries.
10832 link_all_deplibs=$link_all_deplibs
10834 # Compile-time system search path for libraries
10835 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10837 # Run-time system search path for libraries
10838 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10840 # Fix the shell variable \$srcfile for the compiler.
10841 fix_srcfile_path="$fix_srcfile_path"
10843 # Set to yes if exported symbols are required.
10844 always_export_symbols=$always_export_symbols
10846 # The commands to list exported symbols.
10847 export_symbols_cmds=$lt_export_symbols_cmds
10849 # The commands to extract the exported symbol list from a shared archive.
10850 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10852 # Symbols that should not be listed in the preloaded symbols.
10853 exclude_expsyms=$lt_exclude_expsyms
10855 # Symbols that must always be exported.
10856 include_expsyms=$lt_include_expsyms
10858 # ### END LIBTOOL CONFIG
10865 cat <<\EOF >> "$cfgfile"
10867 # AIX sometimes has problems with the GCC collect2 program. For some
10868 # reason, if we set the COLLECT_NAMES environment variable, the problems
10869 # vanish in a puff of smoke.
10870 if test "X${COLLECT_NAMES+set}" != Xset; then
10872 export COLLECT_NAMES
10878 # We use sed instead of cat because bash on DJGPP gets confused if
10879 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10880 # text mode, it properly converts lines to CR/LF. This bash problem
10881 # is reportedly fixed, but why not run on old versions too?
10882 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10884 mv -f "$cfgfile" "$ofile" || \
10885 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10889 # If there is no Makefile yet, we rely on a make rule to execute
10890 # `config.status --recheck' to rerun these tests and create the
10891 # libtool script then.
10892 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10893 if test -f "$ltmain_in"; then
10894 test -f Makefile && make "$ltmain"
10900 ac_cpp='$CPP $CPPFLAGS'
10901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10908 # Check whether --with-tags was given.
10909 if test "${with_tags+set}" = set; then
10910 withval=$with_tags; tagnames="$withval"
10914 if test -f "$ltmain" && test -n "$tagnames"; then
10915 if test ! -f "${ofile}"; then
10916 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10917 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10920 if test -z "$LTCC"; then
10921 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10922 if test -z "$LTCC"; then
10923 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10924 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10926 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10927 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10930 if test -z "$LTCFLAGS"; then
10931 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10934 # Extract list of available tagged configurations in $ofile.
10935 # Note that this assumes the entire list is on one line.
10936 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10938 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10939 for tagname in $tagnames; do
10941 # Check whether tagname contains only valid characters
10942 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10944 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10945 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10946 { (exit 1); exit 1; }; }
10950 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10952 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10953 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10954 { (exit 1); exit 1; }; }
10957 # Update the list of available tags.
10958 if test -n "$tagname"; then
10959 echo appending configuration tag \"$tagname\" to $ofile
10963 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10964 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10965 (test "X$CXX" != "Xg++"))) ; then
10967 ac_cpp='$CXXCPP $CPPFLAGS'
10968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10975 archive_cmds_need_lc_CXX=no
10976 allow_undefined_flag_CXX=
10977 always_export_symbols_CXX=no
10978 archive_expsym_cmds_CXX=
10979 export_dynamic_flag_spec_CXX=
10980 hardcode_direct_CXX=no
10981 hardcode_libdir_flag_spec_CXX=
10982 hardcode_libdir_flag_spec_ld_CXX=
10983 hardcode_libdir_separator_CXX=
10984 hardcode_minus_L_CXX=no
10985 hardcode_shlibpath_var_CXX=unsupported
10986 hardcode_automatic_CXX=no
10988 module_expsym_cmds_CXX=
10989 link_all_deplibs_CXX=unknown
10990 old_archive_cmds_CXX=$old_archive_cmds
10991 no_undefined_flag_CXX=
10992 whole_archive_flag_spec_CXX=
10993 enable_shared_with_static_runtimes_CXX=no
10995 # Dependencies to place before and after the object being linked:
10996 predep_objects_CXX=
10997 postdep_objects_CXX=
11000 compiler_lib_search_path_CXX=
11002 # Source file extension for C++ test sources.
11005 # Object file extension for compiled C++ test sources.
11009 # Code to be used in simple compile tests
11010 lt_simple_compile_test_code="int some_variable = 0;\n"
11012 # Code to be used in simple link tests
11013 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11015 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11017 # If no C compiler was specified, use CC.
11020 # If no C compiler flags were specified, use CFLAGS.
11021 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11023 # Allow CC to be a program name with arguments.
11027 # save warnings/boilerplate of simple test code
11028 ac_outfile=conftest.$ac_objext
11029 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11030 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11031 _lt_compiler_boilerplate=`cat conftest.err`
11034 ac_outfile=conftest.$ac_objext
11035 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11036 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11037 _lt_linker_boilerplate=`cat conftest.err`
11041 # Allow CC to be a program name with arguments.
11046 lt_save_with_gnu_ld=$with_gnu_ld
11047 lt_save_path_LD=$lt_cv_path_LD
11048 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11049 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11051 $as_unset lt_cv_prog_gnu_ld
11053 if test -n "${lt_cv_path_LDCXX+set}"; then
11054 lt_cv_path_LD=$lt_cv_path_LDCXX
11056 $as_unset lt_cv_path_LD
11058 test -z "${LDCXX+set}" || LD=$LDCXX
11062 for cc_temp in $compiler""; do
11064 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11065 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11070 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11073 # We don't want -fno-exception wen compiling C++ code, so set the
11074 # no_builtin_flag separately
11075 if test "$GXX" = yes; then
11076 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11078 lt_prog_compiler_no_builtin_flag_CXX=
11081 if test "$GXX" = yes; then
11082 # Set up default GNU C++ configuration
11085 # Check whether --with-gnu-ld was given.
11086 if test "${with_gnu_ld+set}" = set; then
11087 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11093 if test "$GCC" = yes; then
11094 # Check if gcc -print-prog-name=ld gives a path.
11095 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11096 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11099 # gcc leaves a trailing carriage return which upsets mingw
11100 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11102 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11105 # Accept absolute paths.
11107 re_direlt='/[^/][^/]*/\.\./'
11108 # Canonicalize the pathname of ld
11109 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11110 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11111 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11113 test -z "$LD" && LD="$ac_prog"
11116 # If it fails, then pretend we aren't using GCC.
11120 # If it is relative, then search for the first ld in PATH.
11121 with_gnu_ld=unknown
11124 elif test "$with_gnu_ld" = yes; then
11125 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11126 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11128 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11129 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11131 if test "${lt_cv_path_LD+set}" = set; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6
11134 if test -z "$LD"; then
11135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11136 for ac_dir in $PATH; do
11138 test -z "$ac_dir" && ac_dir=.
11139 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11140 lt_cv_path_LD="$ac_dir/$ac_prog"
11141 # Check to see if the program is GNU ld. I'd rather use --version,
11142 # but apparently some variants of GNU ld only accept -v.
11143 # Break only if it was the GNU/non-GNU ld that we prefer.
11144 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11145 *GNU* | *'with BFD'*)
11146 test "$with_gnu_ld" != no && break
11149 test "$with_gnu_ld" != yes && break
11156 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11160 LD="$lt_cv_path_LD"
11161 if test -n "$LD"; then
11162 { echo "$as_me:$LINENO: result: $LD" >&5
11163 echo "${ECHO_T}$LD" >&6; }
11165 { echo "$as_me:$LINENO: result: no" >&5
11166 echo "${ECHO_T}no" >&6; }
11168 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11169 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11170 { (exit 1); exit 1; }; }
11171 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11172 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11173 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11176 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11177 case `$LD -v 2>&1 </dev/null` in
11178 *GNU* | *'with BFD'*)
11179 lt_cv_prog_gnu_ld=yes
11182 lt_cv_prog_gnu_ld=no
11186 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11187 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11188 with_gnu_ld=$lt_cv_prog_gnu_ld
11192 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11193 # archiving commands below assume that GNU ld is being used.
11194 if test "$with_gnu_ld" = yes; then
11195 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11196 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'
11198 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11199 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11201 # If archive_cmds runs LD, not CC, wlarc should be empty
11202 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11203 # investigate it a little bit more. (MM)
11206 # ancient GNU ld didn't support --whole-archive et. al.
11207 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11208 grep 'no-whole-archive' > /dev/null; then
11209 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11211 whole_archive_flag_spec_CXX=
11217 # A generic and very simple default shared library creation
11218 # command for GNU C++ for the case where it uses the native
11219 # linker, instead of GNU ld. If possible, this setting should
11220 # overridden to take advantage of the native linker features on
11221 # the platform it is being used on.
11222 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11225 # Commands to make compiler produce verbose output that lists
11226 # what "hidden" libraries, object files and flags are used when
11227 # linking a shared library.
11228 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11236 # PORTME: fill in a description of your system's C++ link characteristics
11237 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11238 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11242 # FIXME: insert proper C++ library support
11246 if test "$host_cpu" = ia64; then
11247 # On IA64, the linker does run time linking by default, so we don't
11248 # have to do anything special.
11249 aix_use_runtimelinking=no
11250 exp_sym_flag='-Bexport'
11253 aix_use_runtimelinking=no
11255 # Test if we are trying to use run time linking or normal
11256 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11257 # need to do runtime linking.
11258 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11259 for ld_flag in $LDFLAGS; do
11262 aix_use_runtimelinking=yes
11270 exp_sym_flag='-bexport'
11271 no_entry_flag='-bnoentry'
11274 # When large executables or shared objects are built, AIX ld can
11275 # have problems creating the table of contents. If linking a library
11276 # or program results in "error TOC overflow" add -mminimal-toc to
11277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11280 archive_cmds_CXX=''
11281 hardcode_direct_CXX=yes
11282 hardcode_libdir_separator_CXX=':'
11283 link_all_deplibs_CXX=yes
11285 if test "$GXX" = yes; then
11286 case $host_os in aix4.[012]|aix4.[012].*)
11287 # We only want to do this on AIX 4.2 and lower, the check
11288 # below for broken collect2 doesn't work under 4.3+
11289 collect2name=`${CC} -print-prog-name=collect2`
11290 if test -f "$collect2name" && \
11291 strings "$collect2name" | grep resolve_lib_name >/dev/null
11293 # We have reworked collect2
11294 hardcode_direct_CXX=yes
11296 # We have old collect2
11297 hardcode_direct_CXX=unsupported
11298 # It fails to find uninstalled libraries when the uninstalled
11299 # path is not listed in the libpath. Setting hardcode_minus_L
11300 # to unsupported forces relinking
11301 hardcode_minus_L_CXX=yes
11302 hardcode_libdir_flag_spec_CXX='-L$libdir'
11303 hardcode_libdir_separator_CXX=
11307 shared_flag='-shared'
11308 if test "$aix_use_runtimelinking" = yes; then
11309 shared_flag="$shared_flag "'${wl}-G'
11313 if test "$host_cpu" = ia64; then
11314 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11315 # chokes on -Wl,-G. The following line is correct:
11318 if test "$aix_use_runtimelinking" = yes; then
11319 shared_flag='${wl}-G'
11321 shared_flag='${wl}-bM:SRE'
11326 # It seems that -bexpall does not export symbols beginning with
11327 # underscore (_), so it is better to generate a list of symbols to export.
11328 always_export_symbols_CXX=yes
11329 if test "$aix_use_runtimelinking" = yes; then
11330 # Warning - without using the other runtime loading flags (-brtl),
11331 # -berok will link without error, but may produce a broken library.
11332 allow_undefined_flag_CXX='-berok'
11333 # Determine the default libpath from the value encoded in an empty executable.
11334 cat >conftest.$ac_ext <<_ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h. */
11349 rm -f conftest.$ac_objext conftest$ac_exeext
11350 if { (ac_try="$ac_link"
11351 case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_link") 2>conftest.er1
11358 grep -v '^ *+' conftest.er1 >conftest.err
11360 cat conftest.err >&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } &&
11363 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11364 { (case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_try") 2>&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); }; } &&
11373 { ac_try='test -s conftest$ac_exeext'
11374 { (case "(($ac_try" in
11375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376 *) ac_try_echo=$ac_try;;
11378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11379 (eval "$ac_try") 2>&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; }; then
11384 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11386 # Check for a 64-bit object if we didn't find anything.
11387 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; }
11390 echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11397 conftest$ac_exeext conftest.$ac_ext
11398 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11400 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11402 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"
11404 if test "$host_cpu" = ia64; then
11405 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11406 allow_undefined_flag_CXX="-z nodefs"
11407 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"
11409 # Determine the default libpath from the value encoded in an empty executable.
11410 cat >conftest.$ac_ext <<_ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11425 rm -f conftest.$ac_objext conftest$ac_exeext
11426 if { (ac_try="$ac_link"
11427 case "(($ac_try" in
11428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429 *) ac_try_echo=$ac_try;;
11431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432 (eval "$ac_link") 2>conftest.er1
11434 grep -v '^ *+' conftest.er1 >conftest.err
11436 cat conftest.err >&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } &&
11439 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11440 { (case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445 (eval "$ac_try") 2>&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; } &&
11449 { ac_try='test -s conftest$ac_exeext'
11450 { (case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455 (eval "$ac_try") 2>&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; }; then
11460 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11462 # Check for a 64-bit object if we didn't find anything.
11463 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; }
11466 echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.$ac_ext >&5
11472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11473 conftest$ac_exeext conftest.$ac_ext
11474 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11476 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11477 # Warning - without using the other run time loading flags,
11478 # -berok will link without error, but may produce a broken library.
11479 no_undefined_flag_CXX=' ${wl}-bernotok'
11480 allow_undefined_flag_CXX=' ${wl}-berok'
11481 # Exported symbols can be pulled into shared objects from archives
11482 whole_archive_flag_spec_CXX='$convenience'
11483 archive_cmds_need_lc_CXX=yes
11484 # This is similar to how AIX traditionally builds its shared libraries.
11485 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'
11491 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11492 allow_undefined_flag_CXX=unsupported
11493 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11494 # support --undefined. This deserves some investigation. FIXME
11495 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11502 case $cc_basename in
11504 # FIXME: insert proper C++ library support
11510 cygwin* | mingw* | pw32*)
11511 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11512 # as there is no search path for DLLs.
11513 hardcode_libdir_flag_spec_CXX='-L$libdir'
11514 allow_undefined_flag_CXX=unsupported
11515 always_export_symbols_CXX=no
11516 enable_shared_with_static_runtimes_CXX=yes
11518 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11519 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'
11520 # If the export-symbols file already is a .def file (1st line
11521 # is EXPORTS), use it as is; otherwise, prepend...
11522 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11523 cp $export_symbols $output_objdir/$soname.def;
11525 echo EXPORTS > $output_objdir/$soname.def;
11526 cat $export_symbols >> $output_objdir/$soname.def;
11528 $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'
11533 darwin* | rhapsody*)
11535 rhapsody* | darwin1.[012])
11536 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11539 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11540 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11542 case ${MACOSX_DEPLOYMENT_TARGET} in
11544 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11547 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11553 archive_cmds_need_lc_CXX=no
11554 hardcode_direct_CXX=no
11555 hardcode_automatic_CXX=yes
11556 hardcode_shlibpath_var_CXX=unsupported
11557 whole_archive_flag_spec_CXX=''
11558 link_all_deplibs_CXX=yes
11560 if test "$GXX" = yes ; then
11561 lt_int_apple_cc_single_mod=no
11562 output_verbose_link_cmd='echo'
11563 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11564 lt_int_apple_cc_single_mod=yes
11566 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11567 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11569 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'
11571 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11572 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11573 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11574 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}'
11576 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}'
11578 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}'
11580 case $cc_basename in
11582 output_verbose_link_cmd='echo'
11583 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'
11584 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11585 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11586 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}'
11587 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}'
11597 case $cc_basename in
11599 # FIXME: insert proper C++ library support
11603 # Green Hills C++ Compiler
11604 # FIXME: insert proper C++ library support
11608 # FIXME: insert proper C++ library support
11614 # C++ shared libraries reported to be fairly broken before switch to ELF
11618 archive_cmds_need_lc_CXX=no
11620 freebsd* | kfreebsd*-gnu | dragonfly*)
11621 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11628 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11629 hardcode_libdir_separator_CXX=:
11630 export_dynamic_flag_spec_CXX='${wl}-E'
11631 hardcode_direct_CXX=yes
11632 hardcode_minus_L_CXX=yes # Not in the search PATH,
11633 # but as the default
11634 # location of the library.
11636 case $cc_basename in
11638 # FIXME: insert proper C++ library support
11642 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'
11643 # Commands to make compiler produce verbose output that lists
11644 # what "hidden" libraries, object files and flags are used when
11645 # linking a shared library.
11647 # There doesn't appear to be a way to prevent this compiler from
11648 # explicitly linking system object files so we need to strip them
11649 # from the output so that they don't get included in the library
11651 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'
11654 if test "$GXX" = yes; then
11655 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'
11657 # FIXME: insert proper C++ library support
11664 if test $with_gnu_ld = no; then
11665 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11666 hardcode_libdir_separator_CXX=:
11670 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11673 export_dynamic_flag_spec_CXX='${wl}-E'
11679 hardcode_direct_CXX=no
11680 hardcode_shlibpath_var_CXX=no
11683 hardcode_direct_CXX=yes
11684 hardcode_minus_L_CXX=yes # Not in the search PATH,
11685 # but as the default
11686 # location of the library.
11690 case $cc_basename in
11692 # FIXME: insert proper C++ library support
11698 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11701 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11704 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11707 # Commands to make compiler produce verbose output that lists
11708 # what "hidden" libraries, object files and flags are used when
11709 # linking a shared library.
11711 # There doesn't appear to be a way to prevent this compiler from
11712 # explicitly linking system object files so we need to strip them
11713 # from the output so that they don't get included in the library
11715 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'
11718 if test "$GXX" = yes; then
11719 if test $with_gnu_ld = no; then
11722 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11725 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11728 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'
11733 # FIXME: insert proper C++ library support
11740 hardcode_direct_CXX=no
11741 hardcode_shlibpath_var_CXX=no
11742 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11743 export_dynamic_flag_spec_CXX='${wl}-E'
11744 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11745 # Instead, shared libraries are loaded at an image base (0x10000000 by
11746 # default) and relocated if they conflict, which is a slow very memory
11747 # consuming and fragmenting process. To avoid this, we pick a random,
11748 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11749 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11750 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'
11751 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'
11754 case $cc_basename in
11757 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'
11759 # Archives containing C++ object files must be created using
11760 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11761 # necessary to make sure instantiated templates are included
11763 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11766 if test "$GXX" = yes; then
11767 if test "$with_gnu_ld" = no; then
11768 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'
11770 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'
11773 link_all_deplibs_CXX=yes
11776 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11777 hardcode_libdir_separator_CXX=:
11780 case $cc_basename in
11782 # Kuck and Associates, Inc. (KAI) C++ Compiler
11784 # KCC will only create a shared library if the output file
11785 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11786 # to its proper name (with version) after linking.
11787 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'
11788 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'
11789 # Commands to make compiler produce verbose output that lists
11790 # what "hidden" libraries, object files and flags are used when
11791 # linking a shared library.
11793 # There doesn't appear to be a way to prevent this compiler from
11794 # explicitly linking system object files so we need to strip them
11795 # from the output so that they don't get included in the library
11797 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'
11799 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11800 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11802 # Archives containing C++ object files must be created using
11803 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11804 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11809 # version 8.0 and above of icpc choke on multiply defined symbols
11810 # if we add $predep_objects and $postdep_objects, however 7.1 and
11811 # earlier do not add the objects themselves.
11812 case `$CC -V 2>&1` in
11814 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11815 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'
11817 *) # Version 8.0 or newer
11820 ia64*) tmp_idyn=' -i_dynamic';;
11822 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11823 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'
11826 archive_cmds_need_lc_CXX=no
11827 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11828 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11829 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11832 # Portland Group C++ compiler
11833 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11834 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'
11836 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11837 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11838 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'
11842 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11843 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'
11845 runpath_var=LD_RUN_PATH
11846 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11847 hardcode_libdir_separator_CXX=:
11849 # Commands to make compiler produce verbose output that lists
11850 # what "hidden" libraries, object files and flags are used when
11851 # linking a shared library.
11853 # There doesn't appear to be a way to prevent this compiler from
11854 # explicitly linking system object files so we need to strip them
11855 # from the output so that they don't get included in the library
11857 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'
11862 # FIXME: insert proper C++ library support
11866 # FIXME: insert proper C++ library support
11870 case $cc_basename in
11872 # FIXME: insert proper C++ library support
11876 # FIXME: insert proper C++ library support
11882 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11883 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11885 hardcode_libdir_flag_spec_CXX='-R$libdir'
11886 hardcode_direct_CXX=yes
11887 hardcode_shlibpath_var_CXX=no
11889 # Workaround some broken pre-1.5 toolchains
11890 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11893 # C++ shared libraries are fairly broken
11897 hardcode_direct_CXX=yes
11898 hardcode_shlibpath_var_CXX=no
11899 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11900 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11901 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11902 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11903 export_dynamic_flag_spec_CXX='${wl}-E'
11904 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11906 output_verbose_link_cmd='echo'
11909 case $cc_basename in
11911 # Kuck and Associates, Inc. (KAI) C++ Compiler
11913 # KCC will only create a shared library if the output file
11914 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11915 # to its proper name (with version) after linking.
11916 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'
11918 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11919 hardcode_libdir_separator_CXX=:
11921 # Archives containing C++ object files must be created using
11922 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11923 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11927 # Rational C++ 2.4.1
11928 # FIXME: insert proper C++ library support
11932 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11933 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'
11935 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11936 hardcode_libdir_separator_CXX=:
11938 # Commands to make compiler produce verbose output that lists
11939 # what "hidden" libraries, object files and flags are used when
11940 # linking a shared library.
11942 # There doesn't appear to be a way to prevent this compiler from
11943 # explicitly linking system object files so we need to strip them
11944 # from the output so that they don't get included in the library
11946 output_verbose_link_cmd='templist=`$CC -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'
11949 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11950 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11951 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'
11953 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11954 hardcode_libdir_separator_CXX=:
11956 # Commands to make compiler produce verbose output that lists
11957 # what "hidden" libraries, object files and flags are used when
11958 # linking a shared library.
11959 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11962 # FIXME: insert proper C++ library support
11969 case $cc_basename in
11971 # Kuck and Associates, Inc. (KAI) C++ Compiler
11973 # KCC will only create a shared library if the output file
11974 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11975 # to its proper name (with version) after linking.
11976 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'
11978 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11979 hardcode_libdir_separator_CXX=:
11981 # Archives containing C++ object files must be created using
11982 # the KAI C++ compiler.
11983 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11986 # Rational C++ 2.4.1
11987 # FIXME: insert proper C++ library support
11991 allow_undefined_flag_CXX=' -expect_unresolved \*'
11992 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'
11993 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11994 echo "-hidden">> $lib.exp~
11995 $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~
11998 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11999 hardcode_libdir_separator_CXX=:
12001 # Commands to make compiler produce verbose output that lists
12002 # what "hidden" libraries, object files and flags are used when
12003 # linking a shared library.
12005 # There doesn't appear to be a way to prevent this compiler from
12006 # explicitly linking system object files so we need to strip them
12007 # from the output so that they don't get included in the library
12009 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'
12012 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12013 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12014 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'
12016 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12017 hardcode_libdir_separator_CXX=:
12019 # Commands to make compiler produce verbose output that lists
12020 # what "hidden" libraries, object files and flags are used when
12021 # linking a shared library.
12022 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12025 # FIXME: insert proper C++ library support
12032 # FIXME: insert proper C++ library support
12036 case $cc_basename in
12039 # FIXME: insert proper C++ library support
12044 # FIXME: insert proper C++ library support
12048 # FIXME: insert proper C++ library support
12054 case $cc_basename in
12056 # Sun C++ 4.2, 5.x and Centerline C++
12057 archive_cmds_need_lc_CXX=yes
12058 no_undefined_flag_CXX=' -zdefs'
12059 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12060 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12061 $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'
12063 hardcode_libdir_flag_spec_CXX='-R$libdir'
12064 hardcode_shlibpath_var_CXX=no
12066 solaris2.[0-5] | solaris2.[0-5].*) ;;
12068 # The C++ compiler is used as linker so we must use $wl
12069 # flag to pass the commands to the underlying system
12070 # linker. We must also pass each convience library through
12071 # to the system linker between allextract/defaultextract.
12072 # The C++ compiler will combine linker options so we
12073 # cannot just pass the convience library names through
12075 # Supported since Solaris 2.6 (maybe 2.5.1?)
12076 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'
12079 link_all_deplibs_CXX=yes
12081 output_verbose_link_cmd='echo'
12083 # Archives containing C++ object files must be created using
12084 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12085 # necessary to make sure instantiated templates are included
12087 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12090 # Green Hills C++ Compiler
12091 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12093 # The C++ compiler must be used to create the archive.
12094 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12097 # GNU C++ compiler with Solaris linker
12098 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12099 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12100 if $CC --version | grep -v '^2\.7' > /dev/null; then
12101 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12102 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12103 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12105 # Commands to make compiler produce verbose output that lists
12106 # what "hidden" libraries, object files and flags are used when
12107 # linking a shared library.
12108 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12110 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12112 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12113 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12114 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12116 # Commands to make compiler produce verbose output that lists
12117 # what "hidden" libraries, object files and flags are used when
12118 # linking a shared library.
12119 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12122 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12127 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12128 no_undefined_flag_CXX='${wl}-z,text'
12129 archive_cmds_need_lc_CXX=no
12130 hardcode_shlibpath_var_CXX=no
12131 runpath_var='LD_RUN_PATH'
12133 case $cc_basename in
12135 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12136 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12139 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12140 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12144 sysv5* | sco3.2v5* | sco5v6*)
12145 # Note: We can NOT use -z defs as we might desire, because we do not
12146 # link with -lc, and that would cause any symbols used from libc to
12147 # always be unresolved, which means just about no library would
12148 # ever link correctly. If we're not using GNU ld we use -z text
12149 # though, which does catch some bad symbols but isn't as heavy-handed
12151 # For security reasons, it is highly recommended that you always
12152 # use absolute paths for naming shared libraries, and exclude the
12153 # DT_RUNPATH tag from executables and libraries. But doing so
12154 # requires that you compile everything twice, which is a pain.
12155 # So that behaviour is only enabled if SCOABSPATH is set to a
12156 # non-empty value in the environment. Most likely only useful for
12157 # creating official distributions of packages.
12158 # This is a hack until libtool officially supports absolute path
12159 # names for shared libraries.
12160 no_undefined_flag_CXX='${wl}-z,text'
12161 allow_undefined_flag_CXX='${wl}-z,nodefs'
12162 archive_cmds_need_lc_CXX=no
12163 hardcode_shlibpath_var_CXX=no
12164 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12165 hardcode_libdir_separator_CXX=':'
12166 link_all_deplibs_CXX=yes
12167 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12168 runpath_var='LD_RUN_PATH'
12170 case $cc_basename in
12172 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12173 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12176 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12177 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12182 case $cc_basename in
12184 # NonStop-UX NCC 3.20
12185 # FIXME: insert proper C++ library support
12189 # FIXME: insert proper C++ library support
12195 # FIXME: insert proper C++ library support
12199 # FIXME: insert proper C++ library support
12203 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12204 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12205 test "$ld_shlibs_CXX" = no && can_build_shared=no
12211 ## There is no encapsulation within the following macros, do not change
12212 ## the running order or otherwise move them around unless you know exactly
12213 ## what you are doing...
12215 cat > conftest.$ac_ext <<EOF
12219 Foo (void) { a = 0; }
12225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12226 (eval $ac_compile) 2>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; then
12230 # Parse the compiler output and extract the necessary
12231 # objects, libraries and library flags.
12233 # Sentinel used to keep track of whether or not we are before
12234 # the conftest object file.
12235 pre_test_object_deps_done=no
12237 # The `*' in the case matches for architectures that use `case' in
12238 # $output_verbose_cmd can trigger glob expansion during the loop
12239 # eval without this substitution.
12240 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12242 for p in `eval $output_verbose_link_cmd`; do
12246 # Some compilers place space between "-{L,R}" and the path.
12247 # Remove the space.
12248 if test $p = "-L" \
12249 || test $p = "-R"; then
12256 if test "$pre_test_object_deps_done" = no; then
12259 # Internal compiler library paths should come after those
12260 # provided the user. The postdeps already come after the
12261 # user supplied libs so there is no need to process them.
12262 if test -z "$compiler_lib_search_path_CXX"; then
12263 compiler_lib_search_path_CXX="${prev}${p}"
12265 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12268 # The "-l" case would never come before the object being
12269 # linked, so don't bother handling this case.
12272 if test -z "$postdeps_CXX"; then
12273 postdeps_CXX="${prev}${p}"
12275 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12281 # This assumes that the test object file only shows up
12282 # once in the compiler output.
12283 if test "$p" = "conftest.$objext"; then
12284 pre_test_object_deps_done=yes
12288 if test "$pre_test_object_deps_done" = no; then
12289 if test -z "$predep_objects_CXX"; then
12290 predep_objects_CXX="$p"
12292 predep_objects_CXX="$predep_objects_CXX $p"
12295 if test -z "$postdep_objects_CXX"; then
12296 postdep_objects_CXX="$p"
12298 postdep_objects_CXX="$postdep_objects_CXX $p"
12303 *) ;; # Ignore the rest.
12311 echo "libtool.m4: error: problem compiling CXX test program"
12314 $rm -f confest.$objext
12316 # PORTME: override above test on systems where it is broken
12319 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12320 # hack all around it, let's just trust "g++" to DTRT.
12321 predep_objects_CXX=
12322 postdep_objects_CXX=
12327 case $cc_basename in
12329 # Adding this requires a known-good setup of shared libraries for
12330 # Sun compiler versions before 5.6, else PIC objects from an old
12331 # archive will be linked into the output, leading to subtle bugs.
12332 postdeps_CXX='-lCstd -lCrun'
12339 case " $postdeps_CXX " in
12340 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12343 lt_prog_compiler_wl_CXX=
12344 lt_prog_compiler_pic_CXX=
12345 lt_prog_compiler_static_CXX=
12347 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12348 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12350 # C++ specific cases for pic, static, wl, etc.
12351 if test "$GXX" = yes; then
12352 lt_prog_compiler_wl_CXX='-Wl,'
12353 lt_prog_compiler_static_CXX='-static'
12357 # All AIX code is PIC.
12358 if test "$host_cpu" = ia64; then
12359 # AIX 5 now supports IA64 processor
12360 lt_prog_compiler_static_CXX='-Bstatic'
12364 # FIXME: we need at least 68020 code to build shared libraries, but
12365 # adding the `-m68020' flag to GCC prevents building anything better,
12367 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12369 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12370 # PIC is the default for these OSes.
12372 mingw* | os2* | pw32*)
12373 # This hack is so that the source file can tell whether it is being
12374 # built for inclusion in a dll (and should export symbols for example).
12375 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12377 darwin* | rhapsody*)
12378 # PIC is the default on this platform
12379 # Common symbols not allowed in MH_DYLIB files
12380 lt_prog_compiler_pic_CXX='-fno-common'
12383 # DJGPP does not support shared libraries at all
12384 lt_prog_compiler_pic_CXX=
12387 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12388 # Instead, we relocate shared libraries at runtime.
12391 if test -d /usr/nec; then
12392 lt_prog_compiler_pic_CXX=-Kconform_pic
12396 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12397 # not for PA HP-UX.
12402 lt_prog_compiler_pic_CXX='-fPIC'
12407 lt_prog_compiler_pic_CXX='-fPIC'
12413 # All AIX code is PIC.
12414 if test "$host_cpu" = ia64; then
12415 # AIX 5 now supports IA64 processor
12416 lt_prog_compiler_static_CXX='-Bstatic'
12418 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12422 case $cc_basename in
12424 # Green Hills C++ Compiler
12425 # _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"
12430 # PIC is the default on this platform
12431 # Common symbols not allowed in MH_DYLIB files
12432 case $cc_basename in
12434 lt_prog_compiler_pic_CXX='-qnocommon'
12435 lt_prog_compiler_wl_CXX='-Wl,'
12440 case $cc_basename in
12442 lt_prog_compiler_pic_CXX='-KPIC'
12445 # Green Hills C++ Compiler
12446 lt_prog_compiler_pic_CXX='-pic'
12452 freebsd* | kfreebsd*-gnu | dragonfly*)
12453 # FreeBSD uses GNU C++
12455 hpux9* | hpux10* | hpux11*)
12456 case $cc_basename in
12458 lt_prog_compiler_wl_CXX='-Wl,'
12459 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12460 if test "$host_cpu" != ia64; then
12461 lt_prog_compiler_pic_CXX='+Z'
12465 lt_prog_compiler_wl_CXX='-Wl,'
12466 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12472 lt_prog_compiler_pic_CXX='+Z'
12481 # This is c89, which is MS Visual C++ (no shared libs)
12482 # Anyone wants to do a port?
12484 irix5* | irix6* | nonstopux*)
12485 case $cc_basename in
12487 lt_prog_compiler_wl_CXX='-Wl,'
12488 lt_prog_compiler_static_CXX='-non_shared'
12489 # CC pic flag -KPIC is the default.
12496 case $cc_basename in
12499 lt_prog_compiler_wl_CXX='--backend -Wl,'
12500 lt_prog_compiler_pic_CXX='-fPIC'
12504 lt_prog_compiler_wl_CXX='-Wl,'
12505 lt_prog_compiler_pic_CXX='-KPIC'
12506 lt_prog_compiler_static_CXX='-static'
12509 # Portland Group C++ compiler.
12510 lt_prog_compiler_wl_CXX='-Wl,'
12511 lt_prog_compiler_pic_CXX='-fpic'
12512 lt_prog_compiler_static_CXX='-Bstatic'
12516 # Make sure the PIC flag is empty. It appears that all Alpha
12517 # Linux and Compaq Tru64 Unix objects are PIC.
12518 lt_prog_compiler_pic_CXX=
12519 lt_prog_compiler_static_CXX='-non_shared'
12530 case $cc_basename in
12532 lt_prog_compiler_pic_CXX='-W c,exportall'
12540 osf3* | osf4* | osf5*)
12541 case $cc_basename in
12543 lt_prog_compiler_wl_CXX='--backend -Wl,'
12546 # Rational C++ 2.4.1
12547 lt_prog_compiler_pic_CXX='-pic'
12550 # Digital/Compaq C++
12551 lt_prog_compiler_wl_CXX='-Wl,'
12552 # Make sure the PIC flag is empty. It appears that all Alpha
12553 # Linux and Compaq Tru64 Unix objects are PIC.
12554 lt_prog_compiler_pic_CXX=
12555 lt_prog_compiler_static_CXX='-non_shared'
12564 case $cc_basename in
12566 # Sun C++ 4.2, 5.x and Centerline C++
12567 lt_prog_compiler_pic_CXX='-KPIC'
12568 lt_prog_compiler_static_CXX='-Bstatic'
12569 lt_prog_compiler_wl_CXX='-Qoption ld '
12572 # Green Hills C++ Compiler
12573 lt_prog_compiler_pic_CXX='-PIC'
12580 case $cc_basename in
12583 lt_prog_compiler_pic_CXX='-pic'
12584 lt_prog_compiler_static_CXX='-Bstatic'
12588 lt_prog_compiler_pic_CXX='-pic'
12595 case $cc_basename in
12597 # NonStop-UX NCC 3.20
12598 lt_prog_compiler_pic_CXX='-KPIC'
12604 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12605 case $cc_basename in
12607 lt_prog_compiler_wl_CXX='-Wl,'
12608 lt_prog_compiler_pic_CXX='-KPIC'
12609 lt_prog_compiler_static_CXX='-Bstatic'
12616 lt_prog_compiler_can_build_shared_CXX=no
12621 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12622 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12625 # Check to make sure the PIC flag actually works.
12627 if test -n "$lt_prog_compiler_pic_CXX"; then
12629 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12630 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12631 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12632 echo $ECHO_N "(cached) $ECHO_C" >&6
12634 lt_prog_compiler_pic_works_CXX=no
12635 ac_outfile=conftest.$ac_objext
12636 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12637 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12638 # Insert the option either (1) after the last *FLAGS variable, or
12639 # (2) before a word containing "conftest.", or (3) at the end.
12640 # Note that $ac_compile itself does not contain backslashes and begins
12641 # with a dollar sign (not a hyphen), so the echo should work correctly.
12642 # The option is referenced via a variable to avoid confusing sed.
12643 lt_compile=`echo "$ac_compile" | $SED \
12644 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12646 -e 's:$: $lt_compiler_flag:'`
12647 (eval echo "\"\$as_me:12647: $lt_compile\"" >&5)
12648 (eval "$lt_compile" 2>conftest.err)
12650 cat conftest.err >&5
12651 echo "$as_me:12651: \$? = $ac_status" >&5
12652 if (exit $ac_status) && test -s "$ac_outfile"; then
12653 # The compiler can only warn and ignore the option if not recognized
12654 # So say no if there are warnings other than the usual output.
12655 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12657 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12658 lt_prog_compiler_pic_works_CXX=yes
12664 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12665 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12667 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12668 case $lt_prog_compiler_pic_CXX in
12670 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12673 lt_prog_compiler_pic_CXX=
12674 lt_prog_compiler_can_build_shared_CXX=no
12679 # For platforms which do not support PIC, -DPIC is meaningless:
12681 lt_prog_compiler_pic_CXX=
12684 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12689 # Check to make sure the static flag actually works.
12691 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12692 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12693 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12694 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12697 lt_prog_compiler_static_works_CXX=no
12698 save_LDFLAGS="$LDFLAGS"
12699 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12700 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12701 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12702 # The linker can only warn and ignore the option if not recognized
12703 # So say no if there are warnings
12704 if test -s conftest.err; then
12705 # Append any errors to the config.log.
12706 cat conftest.err 1>&5
12707 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12709 if diff conftest.exp conftest.er2 >/dev/null; then
12710 lt_prog_compiler_static_works_CXX=yes
12713 lt_prog_compiler_static_works_CXX=yes
12717 LDFLAGS="$save_LDFLAGS"
12720 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12721 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12723 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12726 lt_prog_compiler_static_CXX=
12730 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12731 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12732 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12733 echo $ECHO_N "(cached) $ECHO_C" >&6
12735 lt_cv_prog_compiler_c_o_CXX=no
12736 $rm -r conftest 2>/dev/null
12740 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12742 lt_compiler_flag="-o out/conftest2.$ac_objext"
12743 # Insert the option either (1) after the last *FLAGS variable, or
12744 # (2) before a word containing "conftest.", or (3) at the end.
12745 # Note that $ac_compile itself does not contain backslashes and begins
12746 # with a dollar sign (not a hyphen), so the echo should work correctly.
12747 lt_compile=`echo "$ac_compile" | $SED \
12748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12750 -e 's:$: $lt_compiler_flag:'`
12751 (eval echo "\"\$as_me:12751: $lt_compile\"" >&5)
12752 (eval "$lt_compile" 2>out/conftest.err)
12754 cat out/conftest.err >&5
12755 echo "$as_me:12755: \$? = $ac_status" >&5
12756 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12758 # The compiler can only warn and ignore the option if not recognized
12759 # So say no if there are warnings
12760 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12761 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12762 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12763 lt_cv_prog_compiler_c_o_CXX=yes
12768 # SGI C++ compiler will create directory out/ii_files/ for
12769 # template instantiation
12770 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12771 $rm out/* && rmdir out
12777 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12778 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12781 hard_links="nottested"
12782 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12783 # do not overwrite the value of need_locks provided by the user
12784 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12785 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12788 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12790 ln conftest.a conftest.b 2>&5 || hard_links=no
12791 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12792 { echo "$as_me:$LINENO: result: $hard_links" >&5
12793 echo "${ECHO_T}$hard_links" >&6; }
12794 if test "$hard_links" = no; then
12795 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12796 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12803 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12804 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12806 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12809 # If we're using GNU nm, then we don't want the "-C" option.
12810 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12811 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12812 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'
12814 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'
12818 export_symbols_cmds_CXX="$ltdll_cmds"
12821 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'
12824 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12828 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12829 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12830 test "$ld_shlibs_CXX" = no && can_build_shared=no
12833 # Do we need to explicitly link libc?
12835 case "x$archive_cmds_need_lc_CXX" in
12837 # Assume -lc should be added
12838 archive_cmds_need_lc_CXX=yes
12840 if test "$enable_shared" = yes && test "$GCC" = yes; then
12841 case $archive_cmds_CXX in
12843 # FIXME: we may have to deal with multi-command sequences.
12846 # Test whether the compiler implicitly links with -lc since on some
12847 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12848 # to ld, don't add -lc before -lgcc.
12849 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12850 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12852 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12855 (eval $ac_compile) 2>&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); } 2>conftest.err; then
12861 libobjs=conftest.$ac_objext
12863 wl=$lt_prog_compiler_wl_CXX
12864 pic_flag=$lt_prog_compiler_pic_CXX
12870 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12871 allow_undefined_flag_CXX=
12872 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12873 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }
12878 archive_cmds_need_lc_CXX=no
12880 archive_cmds_need_lc_CXX=yes
12882 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12884 cat conftest.err 1>&5
12887 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12888 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12895 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12896 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12897 library_names_spec=
12898 libname_spec='lib$name'
12902 postuninstall_cmds=
12906 shlibpath_overrides_runpath=unknown
12908 dynamic_linker="$host_os ld.so"
12909 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12910 if test "$GCC" = yes; then
12911 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12912 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12913 # if the path contains ";" then we assume it to be the separator
12914 # otherwise default to the standard path separator (i.e. ":") - it is
12915 # assumed that no part of a normal pathname contains ";" but that should
12916 # okay in the real world where ";" in dirpaths is itself problematic.
12917 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12922 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12924 need_lib_prefix=unknown
12925 hardcode_into_libs=no
12927 # when you set need_version to no, make sure it does not cause -set_version
12928 # flags to be left without arguments
12929 need_version=unknown
12934 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12935 shlibpath_var=LIBPATH
12937 # AIX 3 has no versioning support, so we append a major version to the name.
12938 soname_spec='${libname}${release}${shared_ext}$major'
12945 hardcode_into_libs=yes
12946 if test "$host_cpu" = ia64; then
12947 # AIX 5 supports IA64
12948 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12949 shlibpath_var=LD_LIBRARY_PATH
12951 # With GCC up to 2.95.x, collect2 would create an import file
12952 # for dependence libraries. The import file would start with
12953 # the line `#! .'. This would cause the generated library to
12954 # depend on `.', always an invalid library. This was fixed in
12955 # development snapshots of GCC prior to 3.0.
12957 aix4 | aix4.[01] | aix4.[01].*)
12958 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12960 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12963 can_build_shared=no
12967 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12968 # soname into executable. Probably we can add versioning support to
12969 # collect2, so additional links can be useful in future.
12970 if test "$aix_use_runtimelinking" = yes; then
12971 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12972 # instead of lib<name>.a to let people know that these are not
12973 # typical AIX shared libraries.
12974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12976 # We preserve .a as extension for shared libraries through AIX4.2
12977 # and later when we are not doing run time linking.
12978 library_names_spec='${libname}${release}.a $libname.a'
12979 soname_spec='${libname}${release}${shared_ext}$major'
12981 shlibpath_var=LIBPATH
12986 library_names_spec='$libname.ixlibrary $libname.a'
12987 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12988 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'
12992 library_names_spec='${libname}${shared_ext}'
12993 dynamic_linker="$host_os ld.so"
12994 shlibpath_var=LIBRARY_PATH
13000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13001 soname_spec='${libname}${release}${shared_ext}$major'
13002 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13003 shlibpath_var=LD_LIBRARY_PATH
13004 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13005 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13006 # the default ld.so.conf also contains /usr/contrib/lib and
13007 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13008 # libtool to hard-code these into programs
13011 cygwin* | mingw* | pw32*)
13012 version_type=windows
13017 case $GCC,$host_os in
13018 yes,cygwin* | yes,mingw* | yes,pw32*)
13019 library_names_spec='$libname.dll.a'
13020 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13021 postinstall_cmds='base_file=`basename \${file}`~
13022 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13023 dldir=$destdir/`dirname \$dlpath`~
13024 test -d \$dldir || mkdir -p \$dldir~
13025 $install_prog $dir/$dlname \$dldir/$dlname~
13026 chmod a+x \$dldir/$dlname'
13027 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13028 dlpath=$dir/\$dldll~
13030 shlibpath_overrides_runpath=yes
13034 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13035 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13036 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13039 # MinGW DLLs use traditional 'lib' prefix
13040 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13041 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13042 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13043 # It is most probably a Windows format PATH printed by
13044 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13045 # path with ; separators, and with drive letters. We can handle the
13046 # drive letters (cygwin fileutils understands them), so leave them,
13047 # especially as we might pass files found there to a mingw objdump,
13048 # which wouldn't understand a cygwinified path. Ahh.
13049 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13055 # pw32 DLLs use 'pw' prefix rather than 'lib'
13056 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13062 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13065 dynamic_linker='Win32 ld.exe'
13066 # FIXME: first we should search . and the directory the executable is in
13070 darwin* | rhapsody*)
13071 dynamic_linker="$host_os dyld"
13072 version_type=darwin
13075 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13076 soname_spec='${libname}${release}${major}$shared_ext'
13077 shlibpath_overrides_runpath=yes
13078 shlibpath_var=DYLD_LIBRARY_PATH
13079 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13080 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13081 if test "$GCC" = yes; then
13082 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"`
13084 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13086 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13094 soname_spec='${libname}${release}${shared_ext}$major'
13095 shlibpath_var=LD_LIBRARY_PATH
13106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13107 soname_spec='${libname}${release}${shared_ext}$major'
13108 shlibpath_var=LD_LIBRARY_PATH
13109 shlibpath_overrides_runpath=no
13110 hardcode_into_libs=yes
13111 dynamic_linker='GNU ld.so'
13114 freebsd* | dragonfly*)
13115 # DragonFly does not have aout. When/if they implement a new
13116 # versioning mechanism, adjust this.
13117 if test -x /usr/bin/objformat; then
13118 objformat=`/usr/bin/objformat`
13121 freebsd[123]*) objformat=aout ;;
13122 *) objformat=elf ;;
13125 version_type=freebsd-$objformat
13126 case $version_type in
13128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13133 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13137 shlibpath_var=LD_LIBRARY_PATH
13140 shlibpath_overrides_runpath=yes
13142 freebsd3.[01]* | freebsdelf3.[01]*)
13143 shlibpath_overrides_runpath=yes
13144 hardcode_into_libs=yes
13146 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13147 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13148 shlibpath_overrides_runpath=no
13149 hardcode_into_libs=yes
13151 freebsd*) # from 4.6 on
13152 shlibpath_overrides_runpath=yes
13153 hardcode_into_libs=yes
13162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13163 soname_spec='${libname}${release}${shared_ext}$major'
13164 shlibpath_var=LD_LIBRARY_PATH
13165 hardcode_into_libs=yes
13168 hpux9* | hpux10* | hpux11*)
13169 # Give a soname corresponding to the major version so that dld.sl refuses to
13170 # link against other versions.
13177 hardcode_into_libs=yes
13178 dynamic_linker="$host_os dld.so"
13179 shlibpath_var=LD_LIBRARY_PATH
13180 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13182 soname_spec='${libname}${release}${shared_ext}$major'
13183 if test "X$HPUX_IA64_MODE" = X32; then
13184 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13186 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13192 hardcode_into_libs=yes
13193 dynamic_linker="$host_os dld.sl"
13194 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13195 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13197 soname_spec='${libname}${release}${shared_ext}$major'
13198 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13199 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13203 dynamic_linker="$host_os dld.sl"
13204 shlibpath_var=SHLIB_PATH
13205 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13207 soname_spec='${libname}${release}${shared_ext}$major'
13210 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13211 postinstall_cmds='chmod 555 $lib'
13218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13219 soname_spec='${libname}${release}${shared_ext}$major'
13220 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13221 shlibpath_var=LD_LIBRARY_PATH
13222 shlibpath_overrides_runpath=no
13223 hardcode_into_libs=yes
13226 irix5* | irix6* | nonstopux*)
13228 nonstopux*) version_type=nonstopux ;;
13230 if test "$lt_cv_prog_gnu_ld" = yes; then
13238 soname_spec='${libname}${release}${shared_ext}$major'
13239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13241 irix5* | nonstopux*)
13242 libsuff= shlibsuff=
13245 case $LD in # libtool.m4 will add one of these switches to LD
13246 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13247 libsuff= shlibsuff= libmagic=32-bit;;
13248 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13249 libsuff=32 shlibsuff=N32 libmagic=N32;;
13250 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13251 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13252 *) libsuff= shlibsuff= libmagic=never-match;;
13256 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13257 shlibpath_overrides_runpath=no
13258 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13259 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13260 hardcode_into_libs=yes
13263 # No shared lib support for Linux oldld, aout, or coff.
13264 linux*oldld* | linux*aout* | linux*coff*)
13268 # This must be Linux ELF.
13273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13274 soname_spec='${libname}${release}${shared_ext}$major'
13275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13276 shlibpath_var=LD_LIBRARY_PATH
13277 shlibpath_overrides_runpath=no
13278 # This implies no fast_install, which is unacceptable.
13279 # Some rework will be needed to allow for fast_install
13280 # before this can be enabled.
13281 hardcode_into_libs=yes
13283 # Append ld.so.conf contents to the search path
13284 if test -f /etc/ld.so.conf; then
13285 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' ' '`
13286 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13289 # We used to test for /lib/ld.so.1 and disable shared libraries on
13290 # powerpc, because MkLinux only supported shared libraries with the
13291 # GNU dynamic linker. Since this was broken with cross compilers,
13292 # most powerpc-linux boxes support dynamic linking these days and
13293 # people can always --disable-shared, the test was removed, and we
13294 # assume the GNU/Linux dynamic linker is in use.
13295 dynamic_linker='GNU/Linux ld.so'
13302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13303 soname_spec='${libname}${release}${shared_ext}$major'
13304 shlibpath_var=LD_LIBRARY_PATH
13305 shlibpath_overrides_runpath=no
13306 hardcode_into_libs=yes
13307 dynamic_linker='GNU ld.so'
13314 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13317 dynamic_linker='NetBSD (a.out) ld.so'
13319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13320 soname_spec='${libname}${release}${shared_ext}$major'
13321 dynamic_linker='NetBSD ld.elf_so'
13323 shlibpath_var=LD_LIBRARY_PATH
13324 shlibpath_overrides_runpath=yes
13325 hardcode_into_libs=yes
13330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13331 shlibpath_var=LD_LIBRARY_PATH
13332 shlibpath_overrides_runpath=yes
13339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13340 soname_spec='${libname}${release}${shared_ext}$major'
13341 shlibpath_var=LD_LIBRARY_PATH
13342 shlibpath_overrides_runpath=yes
13347 sys_lib_dlsearch_path_spec="/usr/lib"
13349 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13351 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13352 *) need_version=no ;;
13354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13356 shlibpath_var=LD_LIBRARY_PATH
13357 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13359 openbsd2.[89] | openbsd2.[89].*)
13360 shlibpath_overrides_runpath=no
13363 shlibpath_overrides_runpath=yes
13367 shlibpath_overrides_runpath=yes
13372 libname_spec='$name'
13375 library_names_spec='$libname${shared_ext} $libname.a'
13376 dynamic_linker='OS/2 ld.exe'
13377 shlibpath_var=LIBPATH
13380 osf3* | osf4* | osf5*)
13384 soname_spec='${libname}${release}${shared_ext}$major'
13385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13386 shlibpath_var=LD_LIBRARY_PATH
13387 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13388 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13396 soname_spec='${libname}${release}${shared_ext}$major'
13397 shlibpath_var=LD_LIBRARY_PATH
13398 shlibpath_overrides_runpath=yes
13399 hardcode_into_libs=yes
13400 # ldd complains unless libraries are executable
13401 postinstall_cmds='chmod +x $lib'
13406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13407 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13408 shlibpath_var=LD_LIBRARY_PATH
13409 shlibpath_overrides_runpath=yes
13410 if test "$with_gnu_ld" = yes; then
13418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13419 soname_spec='${libname}${release}${shared_ext}$major'
13420 shlibpath_var=LD_LIBRARY_PATH
13421 case $host_vendor in
13423 shlibpath_overrides_runpath=no
13425 export_dynamic_flag_spec='${wl}-Blargedynsym'
13426 runpath_var=LD_RUN_PATH
13434 shlibpath_overrides_runpath=no
13435 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13441 if test -d /usr/nec ;then
13443 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13444 soname_spec='$libname${shared_ext}.$major'
13445 shlibpath_var=LD_LIBRARY_PATH
13449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13450 version_type=freebsd-elf
13453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13454 soname_spec='${libname}${release}${shared_ext}$major'
13455 shlibpath_var=LD_LIBRARY_PATH
13456 hardcode_into_libs=yes
13457 if test "$with_gnu_ld" = yes; then
13458 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13459 shlibpath_overrides_runpath=no
13461 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13462 shlibpath_overrides_runpath=yes
13465 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13469 sys_lib_dlsearch_path_spec='/usr/lib'
13474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13475 soname_spec='${libname}${release}${shared_ext}$major'
13476 shlibpath_var=LD_LIBRARY_PATH
13483 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13484 echo "${ECHO_T}$dynamic_linker" >&6; }
13485 test "$dynamic_linker" = no && can_build_shared=no
13487 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13488 if test "$GCC" = yes; then
13489 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13492 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13493 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13494 hardcode_action_CXX=
13495 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13496 test -n "$runpath_var_CXX" || \
13497 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13499 # We can hardcode non-existant directories.
13500 if test "$hardcode_direct_CXX" != no &&
13501 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13502 # have to relink, otherwise we might link with an installed library
13503 # when we should be linking with a yet-to-be-installed one
13504 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13505 test "$hardcode_minus_L_CXX" != no; then
13506 # Linking always hardcodes the temporary library directory.
13507 hardcode_action_CXX=relink
13509 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13510 hardcode_action_CXX=immediate
13513 # We cannot hardcode anything, or else we can only hardcode existing
13515 hardcode_action_CXX=unsupported
13517 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13518 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13520 if test "$hardcode_action_CXX" = relink; then
13521 # Fast installation is not supported
13522 enable_fast_install=no
13523 elif test "$shlibpath_overrides_runpath" = yes ||
13524 test "$enable_shared" = no; then
13525 # Fast installation is not necessary
13526 enable_fast_install=needless
13530 # The else clause should only fire when bootstrapping the
13531 # libtool distribution, otherwise you forgot to ship ltmain.sh
13532 # with your package, and you will get complaints that there are
13533 # no rules to generate ltmain.sh.
13534 if test -f "$ltmain"; then
13535 # See if we are running on zsh, and set the options which allow our commands through
13536 # without removal of \ escapes.
13537 if test -n "${ZSH_VERSION+set}" ; then
13538 setopt NO_GLOB_SUBST
13540 # Now quote all the things that may contain metacharacters while being
13541 # careful not to overquote the AC_SUBSTed values. We take copies of the
13542 # variables and quote the copies for generation of the libtool script.
13543 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13545 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13546 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13547 deplibs_check_method reload_flag reload_cmds need_locks \
13548 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13549 lt_cv_sys_global_symbol_to_c_name_address \
13550 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13551 old_postinstall_cmds old_postuninstall_cmds \
13555 lt_prog_compiler_wl_CXX \
13556 lt_prog_compiler_pic_CXX \
13557 lt_prog_compiler_static_CXX \
13558 lt_prog_compiler_no_builtin_flag_CXX \
13559 export_dynamic_flag_spec_CXX \
13560 thread_safe_flag_spec_CXX \
13561 whole_archive_flag_spec_CXX \
13562 enable_shared_with_static_runtimes_CXX \
13563 old_archive_cmds_CXX \
13564 old_archive_from_new_cmds_CXX \
13565 predep_objects_CXX \
13566 postdep_objects_CXX \
13569 compiler_lib_search_path_CXX \
13571 archive_expsym_cmds_CXX \
13572 postinstall_cmds_CXX \
13573 postuninstall_cmds_CXX \
13574 old_archive_from_expsyms_cmds_CXX \
13575 allow_undefined_flag_CXX \
13576 no_undefined_flag_CXX \
13577 export_symbols_cmds_CXX \
13578 hardcode_libdir_flag_spec_CXX \
13579 hardcode_libdir_flag_spec_ld_CXX \
13580 hardcode_libdir_separator_CXX \
13581 hardcode_automatic_CXX \
13583 module_expsym_cmds_CXX \
13584 lt_cv_prog_compiler_c_o_CXX \
13585 exclude_expsyms_CXX \
13586 include_expsyms_CXX; do
13589 old_archive_cmds_CXX | \
13590 old_archive_from_new_cmds_CXX | \
13591 archive_cmds_CXX | \
13592 archive_expsym_cmds_CXX | \
13593 module_cmds_CXX | \
13594 module_expsym_cmds_CXX | \
13595 old_archive_from_expsyms_cmds_CXX | \
13596 export_symbols_cmds_CXX | \
13597 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13598 postinstall_cmds | postuninstall_cmds | \
13599 old_postinstall_cmds | old_postuninstall_cmds | \
13600 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13601 # Double-quote double-evaled strings.
13602 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13605 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13611 *'\$0 --fallback-echo"')
13612 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13618 cat <<__EOF__ >> "$cfgfile"
13619 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13621 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13623 # Shell to use when invoking shell scripts.
13626 # Whether or not to build shared libraries.
13627 build_libtool_libs=$enable_shared
13629 # Whether or not to build static libraries.
13630 build_old_libs=$enable_static
13632 # Whether or not to add -lc for building shared libraries.
13633 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13635 # Whether or not to disallow shared libs when runtime libs are static
13636 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13638 # Whether or not to optimize for fast installation.
13639 fast_install=$enable_fast_install
13642 host_alias=$host_alias
13646 # The build system.
13647 build_alias=$build_alias
13651 # An echo program that does not interpret backslashes.
13656 AR_FLAGS=$lt_AR_FLAGS
13661 # LTCC compiler flags.
13662 LTCFLAGS=$lt_LTCFLAGS
13664 # A language-specific compiler.
13665 CC=$lt_compiler_CXX
13667 # Is the compiler the GNU C compiler?
13673 # The linker used to build libraries.
13676 # Whether we need hard or soft links.
13679 # A BSD-compatible nm program.
13682 # A symbol stripping program
13685 # Used to examine libraries when file_magic_cmd begins "file"
13686 MAGIC_CMD=$MAGIC_CMD
13688 # Used on cygwin: DLL creation program.
13691 # Used on cygwin: object dumper.
13694 # Used on cygwin: assembler.
13697 # The name of the directory that contains temporary libtool files.
13700 # How to create reloadable object files.
13701 reload_flag=$lt_reload_flag
13702 reload_cmds=$lt_reload_cmds
13704 # How to pass a linker flag through the compiler.
13705 wl=$lt_lt_prog_compiler_wl_CXX
13707 # Object file suffix (normally "o").
13708 objext="$ac_objext"
13710 # Old archive suffix (normally "a").
13713 # Shared library suffix (normally ".so").
13714 shrext_cmds='$shrext_cmds'
13716 # Executable file suffix (normally "").
13719 # Additional compiler flags for building library objects.
13720 pic_flag=$lt_lt_prog_compiler_pic_CXX
13723 # What is the maximum length of a command?
13724 max_cmd_len=$lt_cv_sys_max_cmd_len
13726 # Does compiler simultaneously support -c and -o options?
13727 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13729 # Must we lock files when doing compilation?
13730 need_locks=$lt_need_locks
13732 # Do we need the lib prefix for modules?
13733 need_lib_prefix=$need_lib_prefix
13735 # Do we need a version for libraries?
13736 need_version=$need_version
13738 # Whether dlopen is supported.
13739 dlopen_support=$enable_dlopen
13741 # Whether dlopen of programs is supported.
13742 dlopen_self=$enable_dlopen_self
13744 # Whether dlopen of statically linked programs is supported.
13745 dlopen_self_static=$enable_dlopen_self_static
13747 # Compiler flag to prevent dynamic linking.
13748 link_static_flag=$lt_lt_prog_compiler_static_CXX
13750 # Compiler flag to turn off builtin functions.
13751 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13753 # Compiler flag to allow reflexive dlopens.
13754 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13756 # Compiler flag to generate shared objects directly from archives.
13757 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13759 # Compiler flag to generate thread-safe objects.
13760 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13762 # Library versioning type.
13763 version_type=$version_type
13765 # Format of library name prefix.
13766 libname_spec=$lt_libname_spec
13768 # List of archive names. First name is the real one, the rest are links.
13769 # The last name is the one that the linker finds with -lNAME.
13770 library_names_spec=$lt_library_names_spec
13772 # The coded name of the library, if different from the real name.
13773 soname_spec=$lt_soname_spec
13775 # Commands used to build and install an old-style archive.
13777 old_archive_cmds=$lt_old_archive_cmds_CXX
13778 old_postinstall_cmds=$lt_old_postinstall_cmds
13779 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13781 # Create an old-style archive from a shared archive.
13782 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13784 # Create a temporary old-style archive to link instead of a shared archive.
13785 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13787 # Commands used to build and install a shared archive.
13788 archive_cmds=$lt_archive_cmds_CXX
13789 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13790 postinstall_cmds=$lt_postinstall_cmds
13791 postuninstall_cmds=$lt_postuninstall_cmds
13793 # Commands used to build a loadable module (assumed same as above if empty)
13794 module_cmds=$lt_module_cmds_CXX
13795 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13797 # Commands to strip libraries.
13798 old_striplib=$lt_old_striplib
13799 striplib=$lt_striplib
13801 # Dependencies to place before the objects being linked to create a
13803 predep_objects=$lt_predep_objects_CXX
13805 # Dependencies to place after the objects being linked to create a
13807 postdep_objects=$lt_postdep_objects_CXX
13809 # Dependencies to place before the objects being linked to create a
13811 predeps=$lt_predeps_CXX
13813 # Dependencies to place after the objects being linked to create a
13815 postdeps=$lt_postdeps_CXX
13817 # The library search path used internally by the compiler when linking
13818 # a shared library.
13819 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13821 # Method to check whether dependent libraries are shared objects.
13822 deplibs_check_method=$lt_deplibs_check_method
13824 # Command to use when deplibs_check_method == file_magic.
13825 file_magic_cmd=$lt_file_magic_cmd
13827 # Flag that allows shared libraries with undefined symbols to be built.
13828 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13830 # Flag that forces no undefined symbols.
13831 no_undefined_flag=$lt_no_undefined_flag_CXX
13833 # Commands used to finish a libtool library installation in a directory.
13834 finish_cmds=$lt_finish_cmds
13836 # Same as above, but a single script fragment to be evaled but not shown.
13837 finish_eval=$lt_finish_eval
13839 # Take the output of nm and produce a listing of raw symbols and C names.
13840 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13842 # Transform the output of nm in a proper C declaration
13843 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13845 # Transform the output of nm in a C name address pair
13846 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13848 # This is the shared library runtime path variable.
13849 runpath_var=$runpath_var
13851 # This is the shared library path variable.
13852 shlibpath_var=$shlibpath_var
13854 # Is shlibpath searched before the hard-coded library search path?
13855 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13857 # How to hardcode a shared library path into an executable.
13858 hardcode_action=$hardcode_action_CXX
13860 # Whether we should hardcode library paths into libraries.
13861 hardcode_into_libs=$hardcode_into_libs
13863 # Flag to hardcode \$libdir into a binary during linking.
13864 # This must work even if \$libdir does not exist.
13865 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13867 # If ld is used when linking, flag to hardcode \$libdir into
13868 # a binary during linking. This must work even if \$libdir does
13870 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13872 # Whether we need a single -rpath flag with a separated argument.
13873 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13875 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13876 # resulting binary.
13877 hardcode_direct=$hardcode_direct_CXX
13879 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13880 # resulting binary.
13881 hardcode_minus_L=$hardcode_minus_L_CXX
13883 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13884 # the resulting binary.
13885 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13887 # Set to yes if building a shared library automatically hardcodes DIR into the library
13888 # and all subsequent libraries and executables linked against it.
13889 hardcode_automatic=$hardcode_automatic_CXX
13891 # Variables whose values should be saved in libtool wrapper scripts and
13892 # restored at relink time.
13893 variables_saved_for_relink="$variables_saved_for_relink"
13895 # Whether libtool must link a program against all its dependency libraries.
13896 link_all_deplibs=$link_all_deplibs_CXX
13898 # Compile-time system search path for libraries
13899 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13901 # Run-time system search path for libraries
13902 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13904 # Fix the shell variable \$srcfile for the compiler.
13905 fix_srcfile_path="$fix_srcfile_path_CXX"
13907 # Set to yes if exported symbols are required.
13908 always_export_symbols=$always_export_symbols_CXX
13910 # The commands to list exported symbols.
13911 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13913 # The commands to extract the exported symbol list from a shared archive.
13914 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13916 # Symbols that should not be listed in the preloaded symbols.
13917 exclude_expsyms=$lt_exclude_expsyms_CXX
13919 # Symbols that must always be exported.
13920 include_expsyms=$lt_include_expsyms_CXX
13922 # ### END LIBTOOL TAG CONFIG: $tagname
13928 # If there is no Makefile yet, we rely on a make rule to execute
13929 # `config.status --recheck' to rerun these tests and create the
13930 # libtool script then.
13931 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13932 if test -f "$ltmain_in"; then
13933 test -f Makefile && make "$ltmain"
13939 ac_cpp='$CPP $CPPFLAGS'
13940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13948 with_gnu_ldcxx=$with_gnu_ld
13949 with_gnu_ld=$lt_save_with_gnu_ld
13950 lt_cv_path_LDCXX=$lt_cv_path_LD
13951 lt_cv_path_LD=$lt_save_path_LD
13952 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13953 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13961 if test -n "$F77" && test "X$F77" != "Xno"; then
13964 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13965 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13966 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13969 archive_cmds_need_lc_F77=no
13970 allow_undefined_flag_F77=
13971 always_export_symbols_F77=no
13972 archive_expsym_cmds_F77=
13973 export_dynamic_flag_spec_F77=
13974 hardcode_direct_F77=no
13975 hardcode_libdir_flag_spec_F77=
13976 hardcode_libdir_flag_spec_ld_F77=
13977 hardcode_libdir_separator_F77=
13978 hardcode_minus_L_F77=no
13979 hardcode_automatic_F77=no
13981 module_expsym_cmds_F77=
13982 link_all_deplibs_F77=unknown
13983 old_archive_cmds_F77=$old_archive_cmds
13984 no_undefined_flag_F77=
13985 whole_archive_flag_spec_F77=
13986 enable_shared_with_static_runtimes_F77=no
13988 # Source file extension for f77 test sources.
13991 # Object file extension for compiled f77 test sources.
13995 # Code to be used in simple compile tests
13996 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13998 # Code to be used in simple link tests
13999 lt_simple_link_test_code=" program t\n end\n"
14001 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14003 # If no C compiler was specified, use CC.
14006 # If no C compiler flags were specified, use CFLAGS.
14007 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14009 # Allow CC to be a program name with arguments.
14013 # save warnings/boilerplate of simple test code
14014 ac_outfile=conftest.$ac_objext
14015 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14016 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14017 _lt_compiler_boilerplate=`cat conftest.err`
14020 ac_outfile=conftest.$ac_objext
14021 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14022 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14023 _lt_linker_boilerplate=`cat conftest.err`
14027 # Allow CC to be a program name with arguments.
14032 for cc_temp in $compiler""; do
14034 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14035 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14040 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14043 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14044 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14045 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14046 echo "${ECHO_T}$can_build_shared" >&6; }
14048 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14049 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14050 test "$can_build_shared" = "no" && enable_shared=no
14052 # On AIX, shared libraries and static libraries use the same namespace, and
14053 # are all built from PIC.
14056 test "$enable_shared" = yes && enable_static=no
14057 if test -n "$RANLIB"; then
14058 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14059 postinstall_cmds='$RANLIB $lib'
14063 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14064 test "$enable_shared" = yes && enable_static=no
14068 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14069 echo "${ECHO_T}$enable_shared" >&6; }
14071 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14072 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14073 # Make sure either enable_shared or enable_static is yes.
14074 test "$enable_shared" = yes || enable_static=yes
14075 { echo "$as_me:$LINENO: result: $enable_static" >&5
14076 echo "${ECHO_T}$enable_static" >&6; }
14081 lt_prog_compiler_wl_F77=
14082 lt_prog_compiler_pic_F77=
14083 lt_prog_compiler_static_F77=
14085 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14086 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14088 if test "$GCC" = yes; then
14089 lt_prog_compiler_wl_F77='-Wl,'
14090 lt_prog_compiler_static_F77='-static'
14094 # All AIX code is PIC.
14095 if test "$host_cpu" = ia64; then
14096 # AIX 5 now supports IA64 processor
14097 lt_prog_compiler_static_F77='-Bstatic'
14102 # FIXME: we need at least 68020 code to build shared libraries, but
14103 # adding the `-m68020' flag to GCC prevents building anything better,
14105 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14108 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14109 # PIC is the default for these OSes.
14112 mingw* | pw32* | os2*)
14113 # This hack is so that the source file can tell whether it is being
14114 # built for inclusion in a dll (and should export symbols for example).
14115 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14118 darwin* | rhapsody*)
14119 # PIC is the default on this platform
14120 # Common symbols not allowed in MH_DYLIB files
14121 lt_prog_compiler_pic_F77='-fno-common'
14125 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14126 # Instead, we relocate shared libraries at runtime.
14130 # Just because we use GCC doesn't mean we suddenly get shared libraries
14131 # on systems that don't support them.
14132 lt_prog_compiler_can_build_shared_F77=no
14137 if test -d /usr/nec; then
14138 lt_prog_compiler_pic_F77=-Kconform_pic
14143 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14144 # not for PA HP-UX.
14150 lt_prog_compiler_pic_F77='-fPIC'
14156 lt_prog_compiler_pic_F77='-fPIC'
14160 # PORTME Check for flag to pass linker flags through the system compiler.
14163 lt_prog_compiler_wl_F77='-Wl,'
14164 if test "$host_cpu" = ia64; then
14165 # AIX 5 now supports IA64 processor
14166 lt_prog_compiler_static_F77='-Bstatic'
14168 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14172 # PIC is the default on this platform
14173 # Common symbols not allowed in MH_DYLIB files
14174 case $cc_basename in
14176 lt_prog_compiler_pic_F77='-qnocommon'
14177 lt_prog_compiler_wl_F77='-Wl,'
14182 mingw* | pw32* | os2*)
14183 # This hack is so that the source file can tell whether it is being
14184 # built for inclusion in a dll (and should export symbols for example).
14185 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14188 hpux9* | hpux10* | hpux11*)
14189 lt_prog_compiler_wl_F77='-Wl,'
14190 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14191 # not for PA HP-UX.
14197 lt_prog_compiler_pic_F77='+Z'
14200 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14201 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14204 irix5* | irix6* | nonstopux*)
14205 lt_prog_compiler_wl_F77='-Wl,'
14206 # PIC (with -KPIC) is the default.
14207 lt_prog_compiler_static_F77='-non_shared'
14211 lt_prog_compiler_pic_F77='-KPIC'
14212 lt_prog_compiler_static_F77='-Bstatic'
14216 case $cc_basename in
14218 lt_prog_compiler_wl_F77='-Wl,'
14219 lt_prog_compiler_pic_F77='-KPIC'
14220 lt_prog_compiler_static_F77='-static'
14222 pgcc* | pgf77* | pgf90* | pgf95*)
14223 # Portland Group compilers (*not* the Pentium gcc compiler,
14224 # which looks to be a dead project)
14225 lt_prog_compiler_wl_F77='-Wl,'
14226 lt_prog_compiler_pic_F77='-fpic'
14227 lt_prog_compiler_static_F77='-Bstatic'
14230 lt_prog_compiler_wl_F77='-Wl,'
14231 # All Alpha code is PIC.
14232 lt_prog_compiler_static_F77='-non_shared'
14237 osf3* | osf4* | osf5*)
14238 lt_prog_compiler_wl_F77='-Wl,'
14239 # All OSF/1 code is PIC.
14240 lt_prog_compiler_static_F77='-non_shared'
14244 lt_prog_compiler_pic_F77='-KPIC'
14245 lt_prog_compiler_static_F77='-Bstatic'
14246 case $cc_basename in
14247 f77* | f90* | f95*)
14248 lt_prog_compiler_wl_F77='-Qoption ld ';;
14250 lt_prog_compiler_wl_F77='-Wl,';;
14255 lt_prog_compiler_wl_F77='-Qoption ld '
14256 lt_prog_compiler_pic_F77='-PIC'
14257 lt_prog_compiler_static_F77='-Bstatic'
14260 sysv4 | sysv4.2uw2* | sysv4.3*)
14261 lt_prog_compiler_wl_F77='-Wl,'
14262 lt_prog_compiler_pic_F77='-KPIC'
14263 lt_prog_compiler_static_F77='-Bstatic'
14267 if test -d /usr/nec ;then
14268 lt_prog_compiler_pic_F77='-Kconform_pic'
14269 lt_prog_compiler_static_F77='-Bstatic'
14273 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14274 lt_prog_compiler_wl_F77='-Wl,'
14275 lt_prog_compiler_pic_F77='-KPIC'
14276 lt_prog_compiler_static_F77='-Bstatic'
14280 lt_prog_compiler_wl_F77='-Wl,'
14281 lt_prog_compiler_can_build_shared_F77=no
14285 lt_prog_compiler_pic_F77='-pic'
14286 lt_prog_compiler_static_F77='-Bstatic'
14290 lt_prog_compiler_can_build_shared_F77=no
14295 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14296 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14299 # Check to make sure the PIC flag actually works.
14301 if test -n "$lt_prog_compiler_pic_F77"; then
14303 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14304 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14305 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14308 lt_prog_compiler_pic_works_F77=no
14309 ac_outfile=conftest.$ac_objext
14310 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14311 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14312 # Insert the option either (1) after the last *FLAGS variable, or
14313 # (2) before a word containing "conftest.", or (3) at the end.
14314 # Note that $ac_compile itself does not contain backslashes and begins
14315 # with a dollar sign (not a hyphen), so the echo should work correctly.
14316 # The option is referenced via a variable to avoid confusing sed.
14317 lt_compile=`echo "$ac_compile" | $SED \
14318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14320 -e 's:$: $lt_compiler_flag:'`
14321 (eval echo "\"\$as_me:14321: $lt_compile\"" >&5)
14322 (eval "$lt_compile" 2>conftest.err)
14324 cat conftest.err >&5
14325 echo "$as_me:14325: \$? = $ac_status" >&5
14326 if (exit $ac_status) && test -s "$ac_outfile"; then
14327 # The compiler can only warn and ignore the option if not recognized
14328 # So say no if there are warnings other than the usual output.
14329 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14331 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14332 lt_prog_compiler_pic_works_F77=yes
14338 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14339 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14341 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14342 case $lt_prog_compiler_pic_F77 in
14344 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14347 lt_prog_compiler_pic_F77=
14348 lt_prog_compiler_can_build_shared_F77=no
14353 # For platforms which do not support PIC, -DPIC is meaningless:
14355 lt_prog_compiler_pic_F77=
14358 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14363 # Check to make sure the static flag actually works.
14365 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14366 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14367 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14368 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14371 lt_prog_compiler_static_works_F77=no
14372 save_LDFLAGS="$LDFLAGS"
14373 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14374 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14375 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14376 # The linker can only warn and ignore the option if not recognized
14377 # So say no if there are warnings
14378 if test -s conftest.err; then
14379 # Append any errors to the config.log.
14380 cat conftest.err 1>&5
14381 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14382 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14383 if diff conftest.exp conftest.er2 >/dev/null; then
14384 lt_prog_compiler_static_works_F77=yes
14387 lt_prog_compiler_static_works_F77=yes
14391 LDFLAGS="$save_LDFLAGS"
14394 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14395 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14397 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14400 lt_prog_compiler_static_F77=
14404 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14405 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14406 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14407 echo $ECHO_N "(cached) $ECHO_C" >&6
14409 lt_cv_prog_compiler_c_o_F77=no
14410 $rm -r conftest 2>/dev/null
14414 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14416 lt_compiler_flag="-o out/conftest2.$ac_objext"
14417 # Insert the option either (1) after the last *FLAGS variable, or
14418 # (2) before a word containing "conftest.", or (3) at the end.
14419 # Note that $ac_compile itself does not contain backslashes and begins
14420 # with a dollar sign (not a hyphen), so the echo should work correctly.
14421 lt_compile=`echo "$ac_compile" | $SED \
14422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14424 -e 's:$: $lt_compiler_flag:'`
14425 (eval echo "\"\$as_me:14425: $lt_compile\"" >&5)
14426 (eval "$lt_compile" 2>out/conftest.err)
14428 cat out/conftest.err >&5
14429 echo "$as_me:14429: \$? = $ac_status" >&5
14430 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14432 # The compiler can only warn and ignore the option if not recognized
14433 # So say no if there are warnings
14434 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14435 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14436 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14437 lt_cv_prog_compiler_c_o_F77=yes
14442 # SGI C++ compiler will create directory out/ii_files/ for
14443 # template instantiation
14444 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14445 $rm out/* && rmdir out
14451 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14452 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14455 hard_links="nottested"
14456 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14457 # do not overwrite the value of need_locks provided by the user
14458 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14459 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14462 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14464 ln conftest.a conftest.b 2>&5 || hard_links=no
14465 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14466 { echo "$as_me:$LINENO: result: $hard_links" >&5
14467 echo "${ECHO_T}$hard_links" >&6; }
14468 if test "$hard_links" = no; then
14469 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14470 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14477 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14478 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14481 allow_undefined_flag_F77=
14482 enable_shared_with_static_runtimes_F77=no
14484 archive_expsym_cmds_F77=
14485 old_archive_From_new_cmds_F77=
14486 old_archive_from_expsyms_cmds_F77=
14487 export_dynamic_flag_spec_F77=
14488 whole_archive_flag_spec_F77=
14489 thread_safe_flag_spec_F77=
14490 hardcode_libdir_flag_spec_F77=
14491 hardcode_libdir_flag_spec_ld_F77=
14492 hardcode_libdir_separator_F77=
14493 hardcode_direct_F77=no
14494 hardcode_minus_L_F77=no
14495 hardcode_shlibpath_var_F77=unsupported
14496 link_all_deplibs_F77=unknown
14497 hardcode_automatic_F77=no
14499 module_expsym_cmds_F77=
14500 always_export_symbols_F77=no
14501 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14502 # include_expsyms should be a list of space-separated symbols to be *always*
14503 # included in the symbol list
14504 include_expsyms_F77=
14505 # exclude_expsyms can be an extended regexp of symbols to exclude
14506 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14507 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14508 # as well as any symbol that contains `d'.
14509 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14510 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14511 # platforms (ab)use it in PIC code, but their linkers get confused if
14512 # the symbol is explicitly referenced. Since portable code cannot
14513 # rely on this symbol name, it's probably fine to never include it in
14514 # preloaded symbol tables.
14515 extract_expsyms_cmds=
14516 # Just being paranoid about ensuring that cc_basename is set.
14517 for cc_temp in $compiler""; do
14519 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14520 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14525 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14528 cygwin* | mingw* | pw32*)
14529 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14530 # When not using gcc, we currently assume that we are using
14531 # Microsoft Visual C++.
14532 if test "$GCC" != yes; then
14537 # we just hope/assume this is gcc and not c89 (= MSVC++)
14546 if test "$with_gnu_ld" = yes; then
14547 # If archive_cmds runs LD, not CC, wlarc should be empty
14550 # Set some defaults for GNU ld with shared library support. These
14551 # are reset later if shared libraries are not supported. Putting them
14552 # here allows them to be overridden if necessary.
14553 runpath_var=LD_RUN_PATH
14554 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14555 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14556 # ancient GNU ld didn't support --whole-archive et. al.
14557 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14558 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14560 whole_archive_flag_spec_F77=
14562 supports_anon_versioning=no
14563 case `$LD -v 2>/dev/null` in
14564 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14565 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14566 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14567 *\ 2.11.*) ;; # other 2.11 versions
14568 *) supports_anon_versioning=yes ;;
14571 # See if GNU ld supports shared libraries.
14573 aix3* | aix4* | aix5*)
14574 # On AIX/PPC, the GNU linker is very broken
14575 if test "$host_cpu" != ia64; then
14579 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14580 *** to be unable to reliably create shared libraries on AIX.
14581 *** Therefore, libtool is disabling shared libraries support. If you
14582 *** really care for shared libraries, you may want to modify your PATH
14583 *** so that a non-GNU linker is found, and then restart.
14590 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)'
14591 hardcode_libdir_flag_spec_F77='-L$libdir'
14592 hardcode_minus_L_F77=yes
14594 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14595 # that the semantics of dynamic libraries on AmigaOS, at least up
14596 # to version 4, is to share data among multiple programs linked
14597 # with the same dynamic library. Since this doesn't match the
14598 # behavior of shared libraries on other platforms, we can't use
14604 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14605 allow_undefined_flag_F77=unsupported
14606 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14607 # support --undefined. This deserves some investigation. FIXME
14608 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14614 cygwin* | mingw* | pw32*)
14615 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14616 # as there is no search path for DLLs.
14617 hardcode_libdir_flag_spec_F77='-L$libdir'
14618 allow_undefined_flag_F77=unsupported
14619 always_export_symbols_F77=no
14620 enable_shared_with_static_runtimes_F77=yes
14621 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14623 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14624 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14625 # If the export-symbols file already is a .def file (1st line
14626 # is EXPORTS), use it as is; otherwise, prepend...
14627 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14628 cp $export_symbols $output_objdir/$soname.def;
14630 echo EXPORTS > $output_objdir/$soname.def;
14631 cat $export_symbols >> $output_objdir/$soname.def;
14633 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14640 hardcode_direct_F77=no
14641 hardcode_shlibpath_var_F77=no
14642 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14643 export_dynamic_flag_spec_F77='${wl}-E'
14644 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14645 # Instead, shared libraries are loaded at an image base (0x10000000 by
14646 # default) and relocated if they conflict, which is a slow very memory
14647 # consuming and fragmenting process. To avoid this, we pick a random,
14648 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14649 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14650 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'
14651 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'
14655 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14657 case $cc_basename,$host_cpu in
14658 pgcc*) # Portland Group C compiler
14659 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'
14660 tmp_addflag=' $pic_flag'
14662 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14663 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'
14664 tmp_addflag=' $pic_flag -Mnomain' ;;
14665 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14666 tmp_addflag=' -i_dynamic' ;;
14667 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14668 tmp_addflag=' -i_dynamic -nofor_main' ;;
14669 ifc* | ifort*) # Intel Fortran compiler
14670 tmp_addflag=' -nofor_main' ;;
14672 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14674 if test $supports_anon_versioning = yes; then
14675 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14676 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14677 $echo "local: *; };" >> $output_objdir/$libname.ver~
14678 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14686 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14687 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14690 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14691 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14696 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14700 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14701 *** create shared libraries on Solaris systems. Therefore, libtool
14702 *** is disabling shared libraries support. We urge you to upgrade GNU
14703 *** binutils to release 2.9.1 or newer. Another option is to modify
14704 *** your PATH or compiler configuration so that the native linker is
14705 *** used, and then restart.
14708 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14709 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14710 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14717 case `$LD -v 2>&1` in
14718 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14722 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14723 *** reliably create shared libraries on SCO systems. Therefore, libtool
14724 *** is disabling shared libraries support. We urge you to upgrade GNU
14725 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14726 *** your PATH or compiler configuration so that the native linker is
14727 *** used, and then restart.
14732 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14733 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14734 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14735 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14744 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14746 hardcode_direct_F77=yes
14747 hardcode_shlibpath_var_F77=no
14751 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14752 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14753 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14760 if test "$ld_shlibs_F77" = no; then
14762 hardcode_libdir_flag_spec_F77=
14763 export_dynamic_flag_spec_F77=
14764 whole_archive_flag_spec_F77=
14767 # PORTME fill in a description of your system's linker (not GNU ld)
14770 allow_undefined_flag_F77=unsupported
14771 always_export_symbols_F77=yes
14772 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'
14773 # Note: this linker hardcodes the directories in LIBPATH if there
14774 # are no directories specified by -L.
14775 hardcode_minus_L_F77=yes
14776 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14777 # Neither direct hardcoding nor static linking is supported with a
14779 hardcode_direct_F77=unsupported
14784 if test "$host_cpu" = ia64; then
14785 # On IA64, the linker does run time linking by default, so we don't
14786 # have to do anything special.
14787 aix_use_runtimelinking=no
14788 exp_sym_flag='-Bexport'
14791 # If we're using GNU nm, then we don't want the "-C" option.
14792 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14793 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14794 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'
14796 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'
14798 aix_use_runtimelinking=no
14800 # Test if we are trying to use run time linking or normal
14801 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14802 # need to do runtime linking.
14803 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14804 for ld_flag in $LDFLAGS; do
14805 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14806 aix_use_runtimelinking=yes
14813 exp_sym_flag='-bexport'
14814 no_entry_flag='-bnoentry'
14817 # When large executables or shared objects are built, AIX ld can
14818 # have problems creating the table of contents. If linking a library
14819 # or program results in "error TOC overflow" add -mminimal-toc to
14820 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14821 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14823 archive_cmds_F77=''
14824 hardcode_direct_F77=yes
14825 hardcode_libdir_separator_F77=':'
14826 link_all_deplibs_F77=yes
14828 if test "$GCC" = yes; then
14829 case $host_os in aix4.[012]|aix4.[012].*)
14830 # We only want to do this on AIX 4.2 and lower, the check
14831 # below for broken collect2 doesn't work under 4.3+
14832 collect2name=`${CC} -print-prog-name=collect2`
14833 if test -f "$collect2name" && \
14834 strings "$collect2name" | grep resolve_lib_name >/dev/null
14836 # We have reworked collect2
14837 hardcode_direct_F77=yes
14839 # We have old collect2
14840 hardcode_direct_F77=unsupported
14841 # It fails to find uninstalled libraries when the uninstalled
14842 # path is not listed in the libpath. Setting hardcode_minus_L
14843 # to unsupported forces relinking
14844 hardcode_minus_L_F77=yes
14845 hardcode_libdir_flag_spec_F77='-L$libdir'
14846 hardcode_libdir_separator_F77=
14850 shared_flag='-shared'
14851 if test "$aix_use_runtimelinking" = yes; then
14852 shared_flag="$shared_flag "'${wl}-G'
14856 if test "$host_cpu" = ia64; then
14857 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14858 # chokes on -Wl,-G. The following line is correct:
14861 if test "$aix_use_runtimelinking" = yes; then
14862 shared_flag='${wl}-G'
14864 shared_flag='${wl}-bM:SRE'
14869 # It seems that -bexpall does not export symbols beginning with
14870 # underscore (_), so it is better to generate a list of symbols to export.
14871 always_export_symbols_F77=yes
14872 if test "$aix_use_runtimelinking" = yes; then
14873 # Warning - without using the other runtime loading flags (-brtl),
14874 # -berok will link without error, but may produce a broken library.
14875 allow_undefined_flag_F77='-berok'
14876 # Determine the default libpath from the value encoded in an empty executable.
14877 cat >conftest.$ac_ext <<_ACEOF
14882 rm -f conftest.$ac_objext conftest$ac_exeext
14883 if { (ac_try="$ac_link"
14884 case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889 (eval "$ac_link") 2>conftest.er1
14891 grep -v '^ *+' conftest.er1 >conftest.err
14893 cat conftest.err >&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } &&
14896 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14897 { (case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902 (eval "$ac_try") 2>&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; } &&
14906 { ac_try='test -s conftest$ac_exeext'
14907 { (case "(($ac_try" in
14908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909 *) ac_try_echo=$ac_try;;
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912 (eval "$ac_try") 2>&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; }; then
14917 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14919 # Check for a 64-bit object if we didn't find anything.
14920 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; }
14923 echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.$ac_ext >&5
14929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14930 conftest$ac_exeext conftest.$ac_ext
14931 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14933 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14934 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"
14936 if test "$host_cpu" = ia64; then
14937 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14938 allow_undefined_flag_F77="-z nodefs"
14939 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"
14941 # Determine the default libpath from the value encoded in an empty executable.
14942 cat >conftest.$ac_ext <<_ACEOF
14947 rm -f conftest.$ac_objext conftest$ac_exeext
14948 if { (ac_try="$ac_link"
14949 case "(($ac_try" in
14950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14951 *) ac_try_echo=$ac_try;;
14953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14954 (eval "$ac_link") 2>conftest.er1
14956 grep -v '^ *+' conftest.er1 >conftest.err
14958 cat conftest.err >&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); } &&
14961 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14962 { (case "(($ac_try" in
14963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964 *) ac_try_echo=$ac_try;;
14966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967 (eval "$ac_try") 2>&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; } &&
14971 { ac_try='test -s conftest$ac_exeext'
14972 { (case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_try") 2>&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; }; then
14982 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14984 # Check for a 64-bit object if we didn't find anything.
14985 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; }
14988 echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14995 conftest$ac_exeext conftest.$ac_ext
14996 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14998 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14999 # Warning - without using the other run time loading flags,
15000 # -berok will link without error, but may produce a broken library.
15001 no_undefined_flag_F77=' ${wl}-bernotok'
15002 allow_undefined_flag_F77=' ${wl}-berok'
15003 # Exported symbols can be pulled into shared objects from archives
15004 whole_archive_flag_spec_F77='$convenience'
15005 archive_cmds_need_lc_F77=yes
15006 # This is similar to how AIX traditionally builds its shared libraries.
15007 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'
15013 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)'
15014 hardcode_libdir_flag_spec_F77='-L$libdir'
15015 hardcode_minus_L_F77=yes
15016 # see comment about different semantics on the GNU ld section
15021 export_dynamic_flag_spec_F77=-rdynamic
15024 cygwin* | mingw* | pw32*)
15025 # When not using gcc, we currently assume that we are using
15026 # Microsoft Visual C++.
15027 # hardcode_libdir_flag_spec is actually meaningless, as there is
15028 # no search path for DLLs.
15029 hardcode_libdir_flag_spec_F77=' '
15030 allow_undefined_flag_F77=unsupported
15031 # Tell ltmain to make .lib files, not .a files.
15033 # Tell ltmain to make .dll files, not .so files.
15035 # FIXME: Setting linknames here is a bad hack.
15036 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15037 # The linker will automatically build a .lib file if we build a DLL.
15038 old_archive_From_new_cmds_F77='true'
15039 # FIXME: Should let the user specify the lib program.
15040 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15041 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15042 enable_shared_with_static_runtimes_F77=yes
15045 darwin* | rhapsody*)
15047 rhapsody* | darwin1.[012])
15048 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15051 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15052 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15054 case ${MACOSX_DEPLOYMENT_TARGET} in
15056 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15059 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15065 archive_cmds_need_lc_F77=no
15066 hardcode_direct_F77=no
15067 hardcode_automatic_F77=yes
15068 hardcode_shlibpath_var_F77=unsupported
15069 whole_archive_flag_spec_F77=''
15070 link_all_deplibs_F77=yes
15071 if test "$GCC" = yes ; then
15072 output_verbose_link_cmd='echo'
15073 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15074 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15075 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15076 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}'
15077 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}'
15079 case $cc_basename in
15081 output_verbose_link_cmd='echo'
15082 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15083 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15084 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15085 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}'
15086 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}'
15096 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15097 hardcode_libdir_flag_spec_F77='-L$libdir'
15098 hardcode_shlibpath_var_F77=no
15105 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15106 # support. Future versions do this automatically, but an explicit c++rt0.o
15107 # does not break anything, and helps significantly (at the cost of a little
15110 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15111 hardcode_libdir_flag_spec_F77='-R$libdir'
15112 hardcode_direct_F77=yes
15113 hardcode_shlibpath_var_F77=no
15116 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15118 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15119 hardcode_direct_F77=yes
15120 hardcode_minus_L_F77=yes
15121 hardcode_shlibpath_var_F77=no
15124 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15125 freebsd* | kfreebsd*-gnu | dragonfly*)
15126 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15127 hardcode_libdir_flag_spec_F77='-R$libdir'
15128 hardcode_direct_F77=yes
15129 hardcode_shlibpath_var_F77=no
15133 if test "$GCC" = yes; then
15134 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'
15136 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'
15138 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15139 hardcode_libdir_separator_F77=:
15140 hardcode_direct_F77=yes
15142 # hardcode_minus_L: Not really in the search PATH,
15143 # but as the default location of the library.
15144 hardcode_minus_L_F77=yes
15145 export_dynamic_flag_spec_F77='${wl}-E'
15149 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15150 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15152 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15154 if test "$with_gnu_ld" = no; then
15155 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15156 hardcode_libdir_separator_F77=:
15158 hardcode_direct_F77=yes
15159 export_dynamic_flag_spec_F77='${wl}-E'
15161 # hardcode_minus_L: Not really in the search PATH,
15162 # but as the default location of the library.
15163 hardcode_minus_L_F77=yes
15168 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15171 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15174 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15177 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15183 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15186 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15189 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15193 if test "$with_gnu_ld" = no; then
15194 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15195 hardcode_libdir_separator_F77=:
15199 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15200 hardcode_direct_F77=no
15201 hardcode_shlibpath_var_F77=no
15204 hardcode_direct_F77=yes
15205 export_dynamic_flag_spec_F77='${wl}-E'
15207 # hardcode_minus_L: Not really in the search PATH,
15208 # but as the default location of the library.
15209 hardcode_minus_L_F77=yes
15215 irix5* | irix6* | nonstopux*)
15216 if test "$GCC" = yes; then
15217 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'
15219 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'
15220 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15222 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15223 hardcode_libdir_separator_F77=:
15224 link_all_deplibs_F77=yes
15228 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15229 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15231 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15233 hardcode_libdir_flag_spec_F77='-R$libdir'
15234 hardcode_direct_F77=yes
15235 hardcode_shlibpath_var_F77=no
15239 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15240 hardcode_direct_F77=yes
15241 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15242 hardcode_libdir_separator_F77=:
15243 hardcode_shlibpath_var_F77=no
15247 hardcode_direct_F77=yes
15248 hardcode_shlibpath_var_F77=no
15249 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15250 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15251 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15252 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15253 export_dynamic_flag_spec_F77='${wl}-E'
15256 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15257 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15258 hardcode_libdir_flag_spec_F77='-R$libdir'
15261 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15262 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15269 hardcode_libdir_flag_spec_F77='-L$libdir'
15270 hardcode_minus_L_F77=yes
15271 allow_undefined_flag_F77=unsupported
15272 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'
15273 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15277 if test "$GCC" = yes; then
15278 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15279 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'
15281 allow_undefined_flag_F77=' -expect_unresolved \*'
15282 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'
15284 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15285 hardcode_libdir_separator_F77=:
15288 osf4* | osf5*) # as osf3* with the addition of -msym flag
15289 if test "$GCC" = yes; then
15290 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15291 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'
15292 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15294 allow_undefined_flag_F77=' -expect_unresolved \*'
15295 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'
15296 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~
15297 $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'
15299 # Both c and cxx compiler support -rpath directly
15300 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15302 hardcode_libdir_separator_F77=:
15306 no_undefined_flag_F77=' -z text'
15307 if test "$GCC" = yes; then
15309 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15310 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15311 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15314 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15315 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15316 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15318 hardcode_libdir_flag_spec_F77='-R$libdir'
15319 hardcode_shlibpath_var_F77=no
15321 solaris2.[0-5] | solaris2.[0-5].*) ;;
15323 # The compiler driver will combine linker options so we
15324 # cannot just pass the convience library names through
15325 # without $wl, iff we do not link with $LD.
15326 # Luckily, gcc supports the same syntax we need for Sun Studio.
15327 # Supported since Solaris 2.6 (maybe 2.5.1?)
15330 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15332 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' ;;
15335 link_all_deplibs_F77=yes
15339 if test "x$host_vendor" = xsequent; then
15340 # Use $CC to link under sequent, because it throws in some extra .o
15341 # files that make .init and .fini sections work.
15342 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15344 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15346 hardcode_libdir_flag_spec_F77='-L$libdir'
15347 hardcode_direct_F77=yes
15348 hardcode_minus_L_F77=yes
15349 hardcode_shlibpath_var_F77=no
15353 case $host_vendor in
15355 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15356 hardcode_direct_F77=yes # is this really true???
15359 ## LD is ld it makes a PLAMLIB
15360 ## CC just makes a GrossModule.
15361 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15362 reload_cmds_F77='$CC -r -o $output$reload_objs'
15363 hardcode_direct_F77=no
15366 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15367 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15370 runpath_var='LD_RUN_PATH'
15371 hardcode_shlibpath_var_F77=no
15375 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15376 hardcode_shlibpath_var_F77=no
15377 export_dynamic_flag_spec_F77='-Bexport'
15381 if test -d /usr/nec; then
15382 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15383 hardcode_shlibpath_var_F77=no
15384 runpath_var=LD_RUN_PATH
15385 hardcode_runpath_var=yes
15390 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15391 no_undefined_flag_F77='${wl}-z,text'
15392 archive_cmds_need_lc_F77=no
15393 hardcode_shlibpath_var_F77=no
15394 runpath_var='LD_RUN_PATH'
15396 if test "$GCC" = yes; then
15397 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15398 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15400 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15401 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15405 sysv5* | sco3.2v5* | sco5v6*)
15406 # Note: We can NOT use -z defs as we might desire, because we do not
15407 # link with -lc, and that would cause any symbols used from libc to
15408 # always be unresolved, which means just about no library would
15409 # ever link correctly. If we're not using GNU ld we use -z text
15410 # though, which does catch some bad symbols but isn't as heavy-handed
15412 no_undefined_flag_F77='${wl}-z,text'
15413 allow_undefined_flag_F77='${wl}-z,nodefs'
15414 archive_cmds_need_lc_F77=no
15415 hardcode_shlibpath_var_F77=no
15416 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15417 hardcode_libdir_separator_F77=':'
15418 link_all_deplibs_F77=yes
15419 export_dynamic_flag_spec_F77='${wl}-Bexport'
15420 runpath_var='LD_RUN_PATH'
15422 if test "$GCC" = yes; then
15423 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15424 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15426 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15427 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15432 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15433 hardcode_libdir_flag_spec_F77='-L$libdir'
15434 hardcode_shlibpath_var_F77=no
15443 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15444 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15445 test "$ld_shlibs_F77" = no && can_build_shared=no
15448 # Do we need to explicitly link libc?
15450 case "x$archive_cmds_need_lc_F77" in
15452 # Assume -lc should be added
15453 archive_cmds_need_lc_F77=yes
15455 if test "$enable_shared" = yes && test "$GCC" = yes; then
15456 case $archive_cmds_F77 in
15458 # FIXME: we may have to deal with multi-command sequences.
15461 # Test whether the compiler implicitly links with -lc since on some
15462 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15463 # to ld, don't add -lc before -lgcc.
15464 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15465 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15467 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15470 (eval $ac_compile) 2>&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); } 2>conftest.err; then
15476 libobjs=conftest.$ac_objext
15478 wl=$lt_prog_compiler_wl_F77
15479 pic_flag=$lt_prog_compiler_pic_F77
15485 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15486 allow_undefined_flag_F77=
15487 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15488 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }
15493 archive_cmds_need_lc_F77=no
15495 archive_cmds_need_lc_F77=yes
15497 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15499 cat conftest.err 1>&5
15502 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15503 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15510 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15511 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15512 library_names_spec=
15513 libname_spec='lib$name'
15517 postuninstall_cmds=
15521 shlibpath_overrides_runpath=unknown
15523 dynamic_linker="$host_os ld.so"
15524 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15525 if test "$GCC" = yes; then
15526 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15527 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15528 # if the path contains ";" then we assume it to be the separator
15529 # otherwise default to the standard path separator (i.e. ":") - it is
15530 # assumed that no part of a normal pathname contains ";" but that should
15531 # okay in the real world where ";" in dirpaths is itself problematic.
15532 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15534 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15537 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15539 need_lib_prefix=unknown
15540 hardcode_into_libs=no
15542 # when you set need_version to no, make sure it does not cause -set_version
15543 # flags to be left without arguments
15544 need_version=unknown
15549 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15550 shlibpath_var=LIBPATH
15552 # AIX 3 has no versioning support, so we append a major version to the name.
15553 soname_spec='${libname}${release}${shared_ext}$major'
15560 hardcode_into_libs=yes
15561 if test "$host_cpu" = ia64; then
15562 # AIX 5 supports IA64
15563 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15564 shlibpath_var=LD_LIBRARY_PATH
15566 # With GCC up to 2.95.x, collect2 would create an import file
15567 # for dependence libraries. The import file would start with
15568 # the line `#! .'. This would cause the generated library to
15569 # depend on `.', always an invalid library. This was fixed in
15570 # development snapshots of GCC prior to 3.0.
15572 aix4 | aix4.[01] | aix4.[01].*)
15573 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15575 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15578 can_build_shared=no
15582 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15583 # soname into executable. Probably we can add versioning support to
15584 # collect2, so additional links can be useful in future.
15585 if test "$aix_use_runtimelinking" = yes; then
15586 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15587 # instead of lib<name>.a to let people know that these are not
15588 # typical AIX shared libraries.
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15591 # We preserve .a as extension for shared libraries through AIX4.2
15592 # and later when we are not doing run time linking.
15593 library_names_spec='${libname}${release}.a $libname.a'
15594 soname_spec='${libname}${release}${shared_ext}$major'
15596 shlibpath_var=LIBPATH
15601 library_names_spec='$libname.ixlibrary $libname.a'
15602 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15603 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'
15607 library_names_spec='${libname}${shared_ext}'
15608 dynamic_linker="$host_os ld.so"
15609 shlibpath_var=LIBRARY_PATH
15615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15616 soname_spec='${libname}${release}${shared_ext}$major'
15617 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15618 shlibpath_var=LD_LIBRARY_PATH
15619 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15620 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15621 # the default ld.so.conf also contains /usr/contrib/lib and
15622 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15623 # libtool to hard-code these into programs
15626 cygwin* | mingw* | pw32*)
15627 version_type=windows
15632 case $GCC,$host_os in
15633 yes,cygwin* | yes,mingw* | yes,pw32*)
15634 library_names_spec='$libname.dll.a'
15635 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15636 postinstall_cmds='base_file=`basename \${file}`~
15637 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15638 dldir=$destdir/`dirname \$dlpath`~
15639 test -d \$dldir || mkdir -p \$dldir~
15640 $install_prog $dir/$dlname \$dldir/$dlname~
15641 chmod a+x \$dldir/$dlname'
15642 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15643 dlpath=$dir/\$dldll~
15645 shlibpath_overrides_runpath=yes
15649 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15650 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15651 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15654 # MinGW DLLs use traditional 'lib' prefix
15655 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15656 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15657 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15658 # It is most probably a Windows format PATH printed by
15659 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15660 # path with ; separators, and with drive letters. We can handle the
15661 # drive letters (cygwin fileutils understands them), so leave them,
15662 # especially as we might pass files found there to a mingw objdump,
15663 # which wouldn't understand a cygwinified path. Ahh.
15664 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15666 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15670 # pw32 DLLs use 'pw' prefix rather than 'lib'
15671 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15677 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15680 dynamic_linker='Win32 ld.exe'
15681 # FIXME: first we should search . and the directory the executable is in
15685 darwin* | rhapsody*)
15686 dynamic_linker="$host_os dyld"
15687 version_type=darwin
15690 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15691 soname_spec='${libname}${release}${major}$shared_ext'
15692 shlibpath_overrides_runpath=yes
15693 shlibpath_var=DYLD_LIBRARY_PATH
15694 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15695 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15696 if test "$GCC" = yes; then
15697 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"`
15699 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15701 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15709 soname_spec='${libname}${release}${shared_ext}$major'
15710 shlibpath_var=LD_LIBRARY_PATH
15721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15722 soname_spec='${libname}${release}${shared_ext}$major'
15723 shlibpath_var=LD_LIBRARY_PATH
15724 shlibpath_overrides_runpath=no
15725 hardcode_into_libs=yes
15726 dynamic_linker='GNU ld.so'
15729 freebsd* | dragonfly*)
15730 # DragonFly does not have aout. When/if they implement a new
15731 # versioning mechanism, adjust this.
15732 if test -x /usr/bin/objformat; then
15733 objformat=`/usr/bin/objformat`
15736 freebsd[123]*) objformat=aout ;;
15737 *) objformat=elf ;;
15740 version_type=freebsd-$objformat
15741 case $version_type in
15743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15748 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15752 shlibpath_var=LD_LIBRARY_PATH
15755 shlibpath_overrides_runpath=yes
15757 freebsd3.[01]* | freebsdelf3.[01]*)
15758 shlibpath_overrides_runpath=yes
15759 hardcode_into_libs=yes
15761 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15762 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15763 shlibpath_overrides_runpath=no
15764 hardcode_into_libs=yes
15766 freebsd*) # from 4.6 on
15767 shlibpath_overrides_runpath=yes
15768 hardcode_into_libs=yes
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15778 soname_spec='${libname}${release}${shared_ext}$major'
15779 shlibpath_var=LD_LIBRARY_PATH
15780 hardcode_into_libs=yes
15783 hpux9* | hpux10* | hpux11*)
15784 # Give a soname corresponding to the major version so that dld.sl refuses to
15785 # link against other versions.
15792 hardcode_into_libs=yes
15793 dynamic_linker="$host_os dld.so"
15794 shlibpath_var=LD_LIBRARY_PATH
15795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15797 soname_spec='${libname}${release}${shared_ext}$major'
15798 if test "X$HPUX_IA64_MODE" = X32; then
15799 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15801 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15807 hardcode_into_libs=yes
15808 dynamic_linker="$host_os dld.sl"
15809 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15812 soname_spec='${libname}${release}${shared_ext}$major'
15813 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15818 dynamic_linker="$host_os dld.sl"
15819 shlibpath_var=SHLIB_PATH
15820 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15822 soname_spec='${libname}${release}${shared_ext}$major'
15825 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15826 postinstall_cmds='chmod 555 $lib'
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15834 soname_spec='${libname}${release}${shared_ext}$major'
15835 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15836 shlibpath_var=LD_LIBRARY_PATH
15837 shlibpath_overrides_runpath=no
15838 hardcode_into_libs=yes
15841 irix5* | irix6* | nonstopux*)
15843 nonstopux*) version_type=nonstopux ;;
15845 if test "$lt_cv_prog_gnu_ld" = yes; then
15853 soname_spec='${libname}${release}${shared_ext}$major'
15854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15856 irix5* | nonstopux*)
15857 libsuff= shlibsuff=
15860 case $LD in # libtool.m4 will add one of these switches to LD
15861 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15862 libsuff= shlibsuff= libmagic=32-bit;;
15863 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15864 libsuff=32 shlibsuff=N32 libmagic=N32;;
15865 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15866 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15867 *) libsuff= shlibsuff= libmagic=never-match;;
15871 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15872 shlibpath_overrides_runpath=no
15873 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15874 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15875 hardcode_into_libs=yes
15878 # No shared lib support for Linux oldld, aout, or coff.
15879 linux*oldld* | linux*aout* | linux*coff*)
15883 # This must be Linux ELF.
15888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15889 soname_spec='${libname}${release}${shared_ext}$major'
15890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15891 shlibpath_var=LD_LIBRARY_PATH
15892 shlibpath_overrides_runpath=no
15893 # This implies no fast_install, which is unacceptable.
15894 # Some rework will be needed to allow for fast_install
15895 # before this can be enabled.
15896 hardcode_into_libs=yes
15898 # Append ld.so.conf contents to the search path
15899 if test -f /etc/ld.so.conf; then
15900 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' ' '`
15901 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15904 # We used to test for /lib/ld.so.1 and disable shared libraries on
15905 # powerpc, because MkLinux only supported shared libraries with the
15906 # GNU dynamic linker. Since this was broken with cross compilers,
15907 # most powerpc-linux boxes support dynamic linking these days and
15908 # people can always --disable-shared, the test was removed, and we
15909 # assume the GNU/Linux dynamic linker is in use.
15910 dynamic_linker='GNU/Linux ld.so'
15917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15918 soname_spec='${libname}${release}${shared_ext}$major'
15919 shlibpath_var=LD_LIBRARY_PATH
15920 shlibpath_overrides_runpath=no
15921 hardcode_into_libs=yes
15922 dynamic_linker='GNU ld.so'
15929 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15932 dynamic_linker='NetBSD (a.out) ld.so'
15934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15935 soname_spec='${libname}${release}${shared_ext}$major'
15936 dynamic_linker='NetBSD ld.elf_so'
15938 shlibpath_var=LD_LIBRARY_PATH
15939 shlibpath_overrides_runpath=yes
15940 hardcode_into_libs=yes
15945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15946 shlibpath_var=LD_LIBRARY_PATH
15947 shlibpath_overrides_runpath=yes
15954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15955 soname_spec='${libname}${release}${shared_ext}$major'
15956 shlibpath_var=LD_LIBRARY_PATH
15957 shlibpath_overrides_runpath=yes
15962 sys_lib_dlsearch_path_spec="/usr/lib"
15964 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15966 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15967 *) need_version=no ;;
15969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15971 shlibpath_var=LD_LIBRARY_PATH
15972 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15974 openbsd2.[89] | openbsd2.[89].*)
15975 shlibpath_overrides_runpath=no
15978 shlibpath_overrides_runpath=yes
15982 shlibpath_overrides_runpath=yes
15987 libname_spec='$name'
15990 library_names_spec='$libname${shared_ext} $libname.a'
15991 dynamic_linker='OS/2 ld.exe'
15992 shlibpath_var=LIBPATH
15995 osf3* | osf4* | osf5*)
15999 soname_spec='${libname}${release}${shared_ext}$major'
16000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16001 shlibpath_var=LD_LIBRARY_PATH
16002 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16003 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16011 soname_spec='${libname}${release}${shared_ext}$major'
16012 shlibpath_var=LD_LIBRARY_PATH
16013 shlibpath_overrides_runpath=yes
16014 hardcode_into_libs=yes
16015 # ldd complains unless libraries are executable
16016 postinstall_cmds='chmod +x $lib'
16021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16022 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16023 shlibpath_var=LD_LIBRARY_PATH
16024 shlibpath_overrides_runpath=yes
16025 if test "$with_gnu_ld" = yes; then
16033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16034 soname_spec='${libname}${release}${shared_ext}$major'
16035 shlibpath_var=LD_LIBRARY_PATH
16036 case $host_vendor in
16038 shlibpath_overrides_runpath=no
16040 export_dynamic_flag_spec='${wl}-Blargedynsym'
16041 runpath_var=LD_RUN_PATH
16049 shlibpath_overrides_runpath=no
16050 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16056 if test -d /usr/nec ;then
16058 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16059 soname_spec='$libname${shared_ext}.$major'
16060 shlibpath_var=LD_LIBRARY_PATH
16064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16065 version_type=freebsd-elf
16068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16069 soname_spec='${libname}${release}${shared_ext}$major'
16070 shlibpath_var=LD_LIBRARY_PATH
16071 hardcode_into_libs=yes
16072 if test "$with_gnu_ld" = yes; then
16073 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16074 shlibpath_overrides_runpath=no
16076 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16077 shlibpath_overrides_runpath=yes
16080 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16084 sys_lib_dlsearch_path_spec='/usr/lib'
16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16090 soname_spec='${libname}${release}${shared_ext}$major'
16091 shlibpath_var=LD_LIBRARY_PATH
16098 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16099 echo "${ECHO_T}$dynamic_linker" >&6; }
16100 test "$dynamic_linker" = no && can_build_shared=no
16102 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16103 if test "$GCC" = yes; then
16104 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16107 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16108 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16109 hardcode_action_F77=
16110 if test -n "$hardcode_libdir_flag_spec_F77" || \
16111 test -n "$runpath_var_F77" || \
16112 test "X$hardcode_automatic_F77" = "Xyes" ; then
16114 # We can hardcode non-existant directories.
16115 if test "$hardcode_direct_F77" != no &&
16116 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16117 # have to relink, otherwise we might link with an installed library
16118 # when we should be linking with a yet-to-be-installed one
16119 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16120 test "$hardcode_minus_L_F77" != no; then
16121 # Linking always hardcodes the temporary library directory.
16122 hardcode_action_F77=relink
16124 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16125 hardcode_action_F77=immediate
16128 # We cannot hardcode anything, or else we can only hardcode existing
16130 hardcode_action_F77=unsupported
16132 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16133 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16135 if test "$hardcode_action_F77" = relink; then
16136 # Fast installation is not supported
16137 enable_fast_install=no
16138 elif test "$shlibpath_overrides_runpath" = yes ||
16139 test "$enable_shared" = no; then
16140 # Fast installation is not necessary
16141 enable_fast_install=needless
16145 # The else clause should only fire when bootstrapping the
16146 # libtool distribution, otherwise you forgot to ship ltmain.sh
16147 # with your package, and you will get complaints that there are
16148 # no rules to generate ltmain.sh.
16149 if test -f "$ltmain"; then
16150 # See if we are running on zsh, and set the options which allow our commands through
16151 # without removal of \ escapes.
16152 if test -n "${ZSH_VERSION+set}" ; then
16153 setopt NO_GLOB_SUBST
16155 # Now quote all the things that may contain metacharacters while being
16156 # careful not to overquote the AC_SUBSTed values. We take copies of the
16157 # variables and quote the copies for generation of the libtool script.
16158 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16160 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16161 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16162 deplibs_check_method reload_flag reload_cmds need_locks \
16163 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16164 lt_cv_sys_global_symbol_to_c_name_address \
16165 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16166 old_postinstall_cmds old_postuninstall_cmds \
16170 lt_prog_compiler_wl_F77 \
16171 lt_prog_compiler_pic_F77 \
16172 lt_prog_compiler_static_F77 \
16173 lt_prog_compiler_no_builtin_flag_F77 \
16174 export_dynamic_flag_spec_F77 \
16175 thread_safe_flag_spec_F77 \
16176 whole_archive_flag_spec_F77 \
16177 enable_shared_with_static_runtimes_F77 \
16178 old_archive_cmds_F77 \
16179 old_archive_from_new_cmds_F77 \
16180 predep_objects_F77 \
16181 postdep_objects_F77 \
16184 compiler_lib_search_path_F77 \
16186 archive_expsym_cmds_F77 \
16187 postinstall_cmds_F77 \
16188 postuninstall_cmds_F77 \
16189 old_archive_from_expsyms_cmds_F77 \
16190 allow_undefined_flag_F77 \
16191 no_undefined_flag_F77 \
16192 export_symbols_cmds_F77 \
16193 hardcode_libdir_flag_spec_F77 \
16194 hardcode_libdir_flag_spec_ld_F77 \
16195 hardcode_libdir_separator_F77 \
16196 hardcode_automatic_F77 \
16198 module_expsym_cmds_F77 \
16199 lt_cv_prog_compiler_c_o_F77 \
16200 exclude_expsyms_F77 \
16201 include_expsyms_F77; do
16204 old_archive_cmds_F77 | \
16205 old_archive_from_new_cmds_F77 | \
16206 archive_cmds_F77 | \
16207 archive_expsym_cmds_F77 | \
16208 module_cmds_F77 | \
16209 module_expsym_cmds_F77 | \
16210 old_archive_from_expsyms_cmds_F77 | \
16211 export_symbols_cmds_F77 | \
16212 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16213 postinstall_cmds | postuninstall_cmds | \
16214 old_postinstall_cmds | old_postuninstall_cmds | \
16215 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16216 # Double-quote double-evaled strings.
16217 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16220 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16226 *'\$0 --fallback-echo"')
16227 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16233 cat <<__EOF__ >> "$cfgfile"
16234 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16236 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16238 # Shell to use when invoking shell scripts.
16241 # Whether or not to build shared libraries.
16242 build_libtool_libs=$enable_shared
16244 # Whether or not to build static libraries.
16245 build_old_libs=$enable_static
16247 # Whether or not to add -lc for building shared libraries.
16248 build_libtool_need_lc=$archive_cmds_need_lc_F77
16250 # Whether or not to disallow shared libs when runtime libs are static
16251 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16253 # Whether or not to optimize for fast installation.
16254 fast_install=$enable_fast_install
16257 host_alias=$host_alias
16261 # The build system.
16262 build_alias=$build_alias
16266 # An echo program that does not interpret backslashes.
16271 AR_FLAGS=$lt_AR_FLAGS
16276 # LTCC compiler flags.
16277 LTCFLAGS=$lt_LTCFLAGS
16279 # A language-specific compiler.
16280 CC=$lt_compiler_F77
16282 # Is the compiler the GNU C compiler?
16288 # The linker used to build libraries.
16291 # Whether we need hard or soft links.
16294 # A BSD-compatible nm program.
16297 # A symbol stripping program
16300 # Used to examine libraries when file_magic_cmd begins "file"
16301 MAGIC_CMD=$MAGIC_CMD
16303 # Used on cygwin: DLL creation program.
16306 # Used on cygwin: object dumper.
16309 # Used on cygwin: assembler.
16312 # The name of the directory that contains temporary libtool files.
16315 # How to create reloadable object files.
16316 reload_flag=$lt_reload_flag
16317 reload_cmds=$lt_reload_cmds
16319 # How to pass a linker flag through the compiler.
16320 wl=$lt_lt_prog_compiler_wl_F77
16322 # Object file suffix (normally "o").
16323 objext="$ac_objext"
16325 # Old archive suffix (normally "a").
16328 # Shared library suffix (normally ".so").
16329 shrext_cmds='$shrext_cmds'
16331 # Executable file suffix (normally "").
16334 # Additional compiler flags for building library objects.
16335 pic_flag=$lt_lt_prog_compiler_pic_F77
16338 # What is the maximum length of a command?
16339 max_cmd_len=$lt_cv_sys_max_cmd_len
16341 # Does compiler simultaneously support -c and -o options?
16342 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16344 # Must we lock files when doing compilation?
16345 need_locks=$lt_need_locks
16347 # Do we need the lib prefix for modules?
16348 need_lib_prefix=$need_lib_prefix
16350 # Do we need a version for libraries?
16351 need_version=$need_version
16353 # Whether dlopen is supported.
16354 dlopen_support=$enable_dlopen
16356 # Whether dlopen of programs is supported.
16357 dlopen_self=$enable_dlopen_self
16359 # Whether dlopen of statically linked programs is supported.
16360 dlopen_self_static=$enable_dlopen_self_static
16362 # Compiler flag to prevent dynamic linking.
16363 link_static_flag=$lt_lt_prog_compiler_static_F77
16365 # Compiler flag to turn off builtin functions.
16366 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16368 # Compiler flag to allow reflexive dlopens.
16369 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16371 # Compiler flag to generate shared objects directly from archives.
16372 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16374 # Compiler flag to generate thread-safe objects.
16375 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16377 # Library versioning type.
16378 version_type=$version_type
16380 # Format of library name prefix.
16381 libname_spec=$lt_libname_spec
16383 # List of archive names. First name is the real one, the rest are links.
16384 # The last name is the one that the linker finds with -lNAME.
16385 library_names_spec=$lt_library_names_spec
16387 # The coded name of the library, if different from the real name.
16388 soname_spec=$lt_soname_spec
16390 # Commands used to build and install an old-style archive.
16392 old_archive_cmds=$lt_old_archive_cmds_F77
16393 old_postinstall_cmds=$lt_old_postinstall_cmds
16394 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16396 # Create an old-style archive from a shared archive.
16397 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16399 # Create a temporary old-style archive to link instead of a shared archive.
16400 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16402 # Commands used to build and install a shared archive.
16403 archive_cmds=$lt_archive_cmds_F77
16404 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16405 postinstall_cmds=$lt_postinstall_cmds
16406 postuninstall_cmds=$lt_postuninstall_cmds
16408 # Commands used to build a loadable module (assumed same as above if empty)
16409 module_cmds=$lt_module_cmds_F77
16410 module_expsym_cmds=$lt_module_expsym_cmds_F77
16412 # Commands to strip libraries.
16413 old_striplib=$lt_old_striplib
16414 striplib=$lt_striplib
16416 # Dependencies to place before the objects being linked to create a
16418 predep_objects=$lt_predep_objects_F77
16420 # Dependencies to place after the objects being linked to create a
16422 postdep_objects=$lt_postdep_objects_F77
16424 # Dependencies to place before the objects being linked to create a
16426 predeps=$lt_predeps_F77
16428 # Dependencies to place after the objects being linked to create a
16430 postdeps=$lt_postdeps_F77
16432 # The library search path used internally by the compiler when linking
16433 # a shared library.
16434 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16436 # Method to check whether dependent libraries are shared objects.
16437 deplibs_check_method=$lt_deplibs_check_method
16439 # Command to use when deplibs_check_method == file_magic.
16440 file_magic_cmd=$lt_file_magic_cmd
16442 # Flag that allows shared libraries with undefined symbols to be built.
16443 allow_undefined_flag=$lt_allow_undefined_flag_F77
16445 # Flag that forces no undefined symbols.
16446 no_undefined_flag=$lt_no_undefined_flag_F77
16448 # Commands used to finish a libtool library installation in a directory.
16449 finish_cmds=$lt_finish_cmds
16451 # Same as above, but a single script fragment to be evaled but not shown.
16452 finish_eval=$lt_finish_eval
16454 # Take the output of nm and produce a listing of raw symbols and C names.
16455 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16457 # Transform the output of nm in a proper C declaration
16458 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16460 # Transform the output of nm in a C name address pair
16461 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16463 # This is the shared library runtime path variable.
16464 runpath_var=$runpath_var
16466 # This is the shared library path variable.
16467 shlibpath_var=$shlibpath_var
16469 # Is shlibpath searched before the hard-coded library search path?
16470 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16472 # How to hardcode a shared library path into an executable.
16473 hardcode_action=$hardcode_action_F77
16475 # Whether we should hardcode library paths into libraries.
16476 hardcode_into_libs=$hardcode_into_libs
16478 # Flag to hardcode \$libdir into a binary during linking.
16479 # This must work even if \$libdir does not exist.
16480 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16482 # If ld is used when linking, flag to hardcode \$libdir into
16483 # a binary during linking. This must work even if \$libdir does
16485 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16487 # Whether we need a single -rpath flag with a separated argument.
16488 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16490 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16491 # resulting binary.
16492 hardcode_direct=$hardcode_direct_F77
16494 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16495 # resulting binary.
16496 hardcode_minus_L=$hardcode_minus_L_F77
16498 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16499 # the resulting binary.
16500 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16502 # Set to yes if building a shared library automatically hardcodes DIR into the library
16503 # and all subsequent libraries and executables linked against it.
16504 hardcode_automatic=$hardcode_automatic_F77
16506 # Variables whose values should be saved in libtool wrapper scripts and
16507 # restored at relink time.
16508 variables_saved_for_relink="$variables_saved_for_relink"
16510 # Whether libtool must link a program against all its dependency libraries.
16511 link_all_deplibs=$link_all_deplibs_F77
16513 # Compile-time system search path for libraries
16514 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16516 # Run-time system search path for libraries
16517 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16519 # Fix the shell variable \$srcfile for the compiler.
16520 fix_srcfile_path="$fix_srcfile_path_F77"
16522 # Set to yes if exported symbols are required.
16523 always_export_symbols=$always_export_symbols_F77
16525 # The commands to list exported symbols.
16526 export_symbols_cmds=$lt_export_symbols_cmds_F77
16528 # The commands to extract the exported symbol list from a shared archive.
16529 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16531 # Symbols that should not be listed in the preloaded symbols.
16532 exclude_expsyms=$lt_exclude_expsyms_F77
16534 # Symbols that must always be exported.
16535 include_expsyms=$lt_include_expsyms_F77
16537 # ### END LIBTOOL TAG CONFIG: $tagname
16543 # If there is no Makefile yet, we rely on a make rule to execute
16544 # `config.status --recheck' to rerun these tests and create the
16545 # libtool script then.
16546 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16547 if test -f "$ltmain_in"; then
16548 test -f Makefile && make "$ltmain"
16554 ac_cpp='$CPP $CPPFLAGS'
16555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16567 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16570 # Source file extension for Java test sources.
16573 # Object file extension for compiled Java test sources.
16577 # Code to be used in simple compile tests
16578 lt_simple_compile_test_code="class foo {}\n"
16580 # Code to be used in simple link tests
16581 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16583 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16585 # If no C compiler was specified, use CC.
16588 # If no C compiler flags were specified, use CFLAGS.
16589 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16591 # Allow CC to be a program name with arguments.
16595 # save warnings/boilerplate of simple test code
16596 ac_outfile=conftest.$ac_objext
16597 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16598 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16599 _lt_compiler_boilerplate=`cat conftest.err`
16602 ac_outfile=conftest.$ac_objext
16603 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16604 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16605 _lt_linker_boilerplate=`cat conftest.err`
16609 # Allow CC to be a program name with arguments.
16614 for cc_temp in $compiler""; do
16616 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16617 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16622 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16625 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16626 archive_cmds_need_lc_GCJ=no
16628 old_archive_cmds_GCJ=$old_archive_cmds
16631 ## There is no encapsulation within the following macros, do not change
16632 ## the running order or otherwise move them around unless you know exactly
16633 ## what you are doing...
16635 lt_prog_compiler_no_builtin_flag_GCJ=
16637 if test "$GCC" = yes; then
16638 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16641 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16642 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16643 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16644 echo $ECHO_N "(cached) $ECHO_C" >&6
16646 lt_cv_prog_compiler_rtti_exceptions=no
16647 ac_outfile=conftest.$ac_objext
16648 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16649 lt_compiler_flag="-fno-rtti -fno-exceptions"
16650 # Insert the option either (1) after the last *FLAGS variable, or
16651 # (2) before a word containing "conftest.", or (3) at the end.
16652 # Note that $ac_compile itself does not contain backslashes and begins
16653 # with a dollar sign (not a hyphen), so the echo should work correctly.
16654 # The option is referenced via a variable to avoid confusing sed.
16655 lt_compile=`echo "$ac_compile" | $SED \
16656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16658 -e 's:$: $lt_compiler_flag:'`
16659 (eval echo "\"\$as_me:16659: $lt_compile\"" >&5)
16660 (eval "$lt_compile" 2>conftest.err)
16662 cat conftest.err >&5
16663 echo "$as_me:16663: \$? = $ac_status" >&5
16664 if (exit $ac_status) && test -s "$ac_outfile"; then
16665 # The compiler can only warn and ignore the option if not recognized
16666 # So say no if there are warnings other than the usual output.
16667 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16669 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16670 lt_cv_prog_compiler_rtti_exceptions=yes
16676 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16677 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16679 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16680 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16687 lt_prog_compiler_wl_GCJ=
16688 lt_prog_compiler_pic_GCJ=
16689 lt_prog_compiler_static_GCJ=
16691 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16692 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16694 if test "$GCC" = yes; then
16695 lt_prog_compiler_wl_GCJ='-Wl,'
16696 lt_prog_compiler_static_GCJ='-static'
16700 # All AIX code is PIC.
16701 if test "$host_cpu" = ia64; then
16702 # AIX 5 now supports IA64 processor
16703 lt_prog_compiler_static_GCJ='-Bstatic'
16708 # FIXME: we need at least 68020 code to build shared libraries, but
16709 # adding the `-m68020' flag to GCC prevents building anything better,
16711 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16714 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16715 # PIC is the default for these OSes.
16718 mingw* | pw32* | os2*)
16719 # This hack is so that the source file can tell whether it is being
16720 # built for inclusion in a dll (and should export symbols for example).
16721 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16724 darwin* | rhapsody*)
16725 # PIC is the default on this platform
16726 # Common symbols not allowed in MH_DYLIB files
16727 lt_prog_compiler_pic_GCJ='-fno-common'
16731 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16732 # Instead, we relocate shared libraries at runtime.
16736 # Just because we use GCC doesn't mean we suddenly get shared libraries
16737 # on systems that don't support them.
16738 lt_prog_compiler_can_build_shared_GCJ=no
16743 if test -d /usr/nec; then
16744 lt_prog_compiler_pic_GCJ=-Kconform_pic
16749 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16750 # not for PA HP-UX.
16756 lt_prog_compiler_pic_GCJ='-fPIC'
16762 lt_prog_compiler_pic_GCJ='-fPIC'
16766 # PORTME Check for flag to pass linker flags through the system compiler.
16769 lt_prog_compiler_wl_GCJ='-Wl,'
16770 if test "$host_cpu" = ia64; then
16771 # AIX 5 now supports IA64 processor
16772 lt_prog_compiler_static_GCJ='-Bstatic'
16774 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16778 # PIC is the default on this platform
16779 # Common symbols not allowed in MH_DYLIB files
16780 case $cc_basename in
16782 lt_prog_compiler_pic_GCJ='-qnocommon'
16783 lt_prog_compiler_wl_GCJ='-Wl,'
16788 mingw* | pw32* | os2*)
16789 # This hack is so that the source file can tell whether it is being
16790 # built for inclusion in a dll (and should export symbols for example).
16791 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16794 hpux9* | hpux10* | hpux11*)
16795 lt_prog_compiler_wl_GCJ='-Wl,'
16796 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16797 # not for PA HP-UX.
16803 lt_prog_compiler_pic_GCJ='+Z'
16806 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16807 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16810 irix5* | irix6* | nonstopux*)
16811 lt_prog_compiler_wl_GCJ='-Wl,'
16812 # PIC (with -KPIC) is the default.
16813 lt_prog_compiler_static_GCJ='-non_shared'
16817 lt_prog_compiler_pic_GCJ='-KPIC'
16818 lt_prog_compiler_static_GCJ='-Bstatic'
16822 case $cc_basename in
16824 lt_prog_compiler_wl_GCJ='-Wl,'
16825 lt_prog_compiler_pic_GCJ='-KPIC'
16826 lt_prog_compiler_static_GCJ='-static'
16828 pgcc* | pgf77* | pgf90* | pgf95*)
16829 # Portland Group compilers (*not* the Pentium gcc compiler,
16830 # which looks to be a dead project)
16831 lt_prog_compiler_wl_GCJ='-Wl,'
16832 lt_prog_compiler_pic_GCJ='-fpic'
16833 lt_prog_compiler_static_GCJ='-Bstatic'
16836 lt_prog_compiler_wl_GCJ='-Wl,'
16837 # All Alpha code is PIC.
16838 lt_prog_compiler_static_GCJ='-non_shared'
16843 osf3* | osf4* | osf5*)
16844 lt_prog_compiler_wl_GCJ='-Wl,'
16845 # All OSF/1 code is PIC.
16846 lt_prog_compiler_static_GCJ='-non_shared'
16850 lt_prog_compiler_pic_GCJ='-KPIC'
16851 lt_prog_compiler_static_GCJ='-Bstatic'
16852 case $cc_basename in
16853 f77* | f90* | f95*)
16854 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16856 lt_prog_compiler_wl_GCJ='-Wl,';;
16861 lt_prog_compiler_wl_GCJ='-Qoption ld '
16862 lt_prog_compiler_pic_GCJ='-PIC'
16863 lt_prog_compiler_static_GCJ='-Bstatic'
16866 sysv4 | sysv4.2uw2* | sysv4.3*)
16867 lt_prog_compiler_wl_GCJ='-Wl,'
16868 lt_prog_compiler_pic_GCJ='-KPIC'
16869 lt_prog_compiler_static_GCJ='-Bstatic'
16873 if test -d /usr/nec ;then
16874 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16875 lt_prog_compiler_static_GCJ='-Bstatic'
16879 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16880 lt_prog_compiler_wl_GCJ='-Wl,'
16881 lt_prog_compiler_pic_GCJ='-KPIC'
16882 lt_prog_compiler_static_GCJ='-Bstatic'
16886 lt_prog_compiler_wl_GCJ='-Wl,'
16887 lt_prog_compiler_can_build_shared_GCJ=no
16891 lt_prog_compiler_pic_GCJ='-pic'
16892 lt_prog_compiler_static_GCJ='-Bstatic'
16896 lt_prog_compiler_can_build_shared_GCJ=no
16901 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16902 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16905 # Check to make sure the PIC flag actually works.
16907 if test -n "$lt_prog_compiler_pic_GCJ"; then
16909 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16910 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16911 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16912 echo $ECHO_N "(cached) $ECHO_C" >&6
16914 lt_prog_compiler_pic_works_GCJ=no
16915 ac_outfile=conftest.$ac_objext
16916 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16917 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16918 # Insert the option either (1) after the last *FLAGS variable, or
16919 # (2) before a word containing "conftest.", or (3) at the end.
16920 # Note that $ac_compile itself does not contain backslashes and begins
16921 # with a dollar sign (not a hyphen), so the echo should work correctly.
16922 # The option is referenced via a variable to avoid confusing sed.
16923 lt_compile=`echo "$ac_compile" | $SED \
16924 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16925 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16926 -e 's:$: $lt_compiler_flag:'`
16927 (eval echo "\"\$as_me:16927: $lt_compile\"" >&5)
16928 (eval "$lt_compile" 2>conftest.err)
16930 cat conftest.err >&5
16931 echo "$as_me:16931: \$? = $ac_status" >&5
16932 if (exit $ac_status) && test -s "$ac_outfile"; then
16933 # The compiler can only warn and ignore the option if not recognized
16934 # So say no if there are warnings other than the usual output.
16935 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16937 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16938 lt_prog_compiler_pic_works_GCJ=yes
16944 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16945 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16947 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16948 case $lt_prog_compiler_pic_GCJ in
16950 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16953 lt_prog_compiler_pic_GCJ=
16954 lt_prog_compiler_can_build_shared_GCJ=no
16959 # For platforms which do not support PIC, -DPIC is meaningless:
16961 lt_prog_compiler_pic_GCJ=
16964 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16969 # Check to make sure the static flag actually works.
16971 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16972 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16973 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16974 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16975 echo $ECHO_N "(cached) $ECHO_C" >&6
16977 lt_prog_compiler_static_works_GCJ=no
16978 save_LDFLAGS="$LDFLAGS"
16979 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16980 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16981 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16982 # The linker can only warn and ignore the option if not recognized
16983 # So say no if there are warnings
16984 if test -s conftest.err; then
16985 # Append any errors to the config.log.
16986 cat conftest.err 1>&5
16987 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16989 if diff conftest.exp conftest.er2 >/dev/null; then
16990 lt_prog_compiler_static_works_GCJ=yes
16993 lt_prog_compiler_static_works_GCJ=yes
16997 LDFLAGS="$save_LDFLAGS"
17000 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17001 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17003 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17006 lt_prog_compiler_static_GCJ=
17010 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17011 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17012 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17013 echo $ECHO_N "(cached) $ECHO_C" >&6
17015 lt_cv_prog_compiler_c_o_GCJ=no
17016 $rm -r conftest 2>/dev/null
17020 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17022 lt_compiler_flag="-o out/conftest2.$ac_objext"
17023 # Insert the option either (1) after the last *FLAGS variable, or
17024 # (2) before a word containing "conftest.", or (3) at the end.
17025 # Note that $ac_compile itself does not contain backslashes and begins
17026 # with a dollar sign (not a hyphen), so the echo should work correctly.
17027 lt_compile=`echo "$ac_compile" | $SED \
17028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17030 -e 's:$: $lt_compiler_flag:'`
17031 (eval echo "\"\$as_me:17031: $lt_compile\"" >&5)
17032 (eval "$lt_compile" 2>out/conftest.err)
17034 cat out/conftest.err >&5
17035 echo "$as_me:17035: \$? = $ac_status" >&5
17036 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17038 # The compiler can only warn and ignore the option if not recognized
17039 # So say no if there are warnings
17040 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17041 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17042 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17043 lt_cv_prog_compiler_c_o_GCJ=yes
17048 # SGI C++ compiler will create directory out/ii_files/ for
17049 # template instantiation
17050 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17051 $rm out/* && rmdir out
17057 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17058 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17061 hard_links="nottested"
17062 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17063 # do not overwrite the value of need_locks provided by the user
17064 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17065 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17068 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17070 ln conftest.a conftest.b 2>&5 || hard_links=no
17071 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17072 { echo "$as_me:$LINENO: result: $hard_links" >&5
17073 echo "${ECHO_T}$hard_links" >&6; }
17074 if test "$hard_links" = no; then
17075 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17076 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17083 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17084 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17087 allow_undefined_flag_GCJ=
17088 enable_shared_with_static_runtimes_GCJ=no
17090 archive_expsym_cmds_GCJ=
17091 old_archive_From_new_cmds_GCJ=
17092 old_archive_from_expsyms_cmds_GCJ=
17093 export_dynamic_flag_spec_GCJ=
17094 whole_archive_flag_spec_GCJ=
17095 thread_safe_flag_spec_GCJ=
17096 hardcode_libdir_flag_spec_GCJ=
17097 hardcode_libdir_flag_spec_ld_GCJ=
17098 hardcode_libdir_separator_GCJ=
17099 hardcode_direct_GCJ=no
17100 hardcode_minus_L_GCJ=no
17101 hardcode_shlibpath_var_GCJ=unsupported
17102 link_all_deplibs_GCJ=unknown
17103 hardcode_automatic_GCJ=no
17105 module_expsym_cmds_GCJ=
17106 always_export_symbols_GCJ=no
17107 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17108 # include_expsyms should be a list of space-separated symbols to be *always*
17109 # included in the symbol list
17110 include_expsyms_GCJ=
17111 # exclude_expsyms can be an extended regexp of symbols to exclude
17112 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17113 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17114 # as well as any symbol that contains `d'.
17115 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17116 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17117 # platforms (ab)use it in PIC code, but their linkers get confused if
17118 # the symbol is explicitly referenced. Since portable code cannot
17119 # rely on this symbol name, it's probably fine to never include it in
17120 # preloaded symbol tables.
17121 extract_expsyms_cmds=
17122 # Just being paranoid about ensuring that cc_basename is set.
17123 for cc_temp in $compiler""; do
17125 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17126 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17131 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17134 cygwin* | mingw* | pw32*)
17135 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17136 # When not using gcc, we currently assume that we are using
17137 # Microsoft Visual C++.
17138 if test "$GCC" != yes; then
17143 # we just hope/assume this is gcc and not c89 (= MSVC++)
17152 if test "$with_gnu_ld" = yes; then
17153 # If archive_cmds runs LD, not CC, wlarc should be empty
17156 # Set some defaults for GNU ld with shared library support. These
17157 # are reset later if shared libraries are not supported. Putting them
17158 # here allows them to be overridden if necessary.
17159 runpath_var=LD_RUN_PATH
17160 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17161 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17162 # ancient GNU ld didn't support --whole-archive et. al.
17163 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17164 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17166 whole_archive_flag_spec_GCJ=
17168 supports_anon_versioning=no
17169 case `$LD -v 2>/dev/null` in
17170 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17171 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17172 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17173 *\ 2.11.*) ;; # other 2.11 versions
17174 *) supports_anon_versioning=yes ;;
17177 # See if GNU ld supports shared libraries.
17179 aix3* | aix4* | aix5*)
17180 # On AIX/PPC, the GNU linker is very broken
17181 if test "$host_cpu" != ia64; then
17185 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17186 *** to be unable to reliably create shared libraries on AIX.
17187 *** Therefore, libtool is disabling shared libraries support. If you
17188 *** really care for shared libraries, you may want to modify your PATH
17189 *** so that a non-GNU linker is found, and then restart.
17196 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)'
17197 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17198 hardcode_minus_L_GCJ=yes
17200 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17201 # that the semantics of dynamic libraries on AmigaOS, at least up
17202 # to version 4, is to share data among multiple programs linked
17203 # with the same dynamic library. Since this doesn't match the
17204 # behavior of shared libraries on other platforms, we can't use
17210 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17211 allow_undefined_flag_GCJ=unsupported
17212 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17213 # support --undefined. This deserves some investigation. FIXME
17214 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17220 cygwin* | mingw* | pw32*)
17221 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17222 # as there is no search path for DLLs.
17223 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17224 allow_undefined_flag_GCJ=unsupported
17225 always_export_symbols_GCJ=no
17226 enable_shared_with_static_runtimes_GCJ=yes
17227 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17229 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17230 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17231 # If the export-symbols file already is a .def file (1st line
17232 # is EXPORTS), use it as is; otherwise, prepend...
17233 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17234 cp $export_symbols $output_objdir/$soname.def;
17236 echo EXPORTS > $output_objdir/$soname.def;
17237 cat $export_symbols >> $output_objdir/$soname.def;
17239 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17246 hardcode_direct_GCJ=no
17247 hardcode_shlibpath_var_GCJ=no
17248 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17249 export_dynamic_flag_spec_GCJ='${wl}-E'
17250 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17251 # Instead, shared libraries are loaded at an image base (0x10000000 by
17252 # default) and relocated if they conflict, which is a slow very memory
17253 # consuming and fragmenting process. To avoid this, we pick a random,
17254 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17255 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17256 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'
17257 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'
17261 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17263 case $cc_basename,$host_cpu in
17264 pgcc*) # Portland Group C compiler
17265 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'
17266 tmp_addflag=' $pic_flag'
17268 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17269 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'
17270 tmp_addflag=' $pic_flag -Mnomain' ;;
17271 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17272 tmp_addflag=' -i_dynamic' ;;
17273 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17274 tmp_addflag=' -i_dynamic -nofor_main' ;;
17275 ifc* | ifort*) # Intel Fortran compiler
17276 tmp_addflag=' -nofor_main' ;;
17278 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17280 if test $supports_anon_versioning = yes; then
17281 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17282 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17283 $echo "local: *; };" >> $output_objdir/$libname.ver~
17284 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17292 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17293 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17296 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17297 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17302 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17306 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17307 *** create shared libraries on Solaris systems. Therefore, libtool
17308 *** is disabling shared libraries support. We urge you to upgrade GNU
17309 *** binutils to release 2.9.1 or newer. Another option is to modify
17310 *** your PATH or compiler configuration so that the native linker is
17311 *** used, and then restart.
17314 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17315 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17316 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17322 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17323 case `$LD -v 2>&1` in
17324 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17328 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17329 *** reliably create shared libraries on SCO systems. Therefore, libtool
17330 *** is disabling shared libraries support. We urge you to upgrade GNU
17331 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17332 *** your PATH or compiler configuration so that the native linker is
17333 *** used, and then restart.
17338 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17339 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17340 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17341 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17350 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17352 hardcode_direct_GCJ=yes
17353 hardcode_shlibpath_var_GCJ=no
17357 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17358 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17359 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17366 if test "$ld_shlibs_GCJ" = no; then
17368 hardcode_libdir_flag_spec_GCJ=
17369 export_dynamic_flag_spec_GCJ=
17370 whole_archive_flag_spec_GCJ=
17373 # PORTME fill in a description of your system's linker (not GNU ld)
17376 allow_undefined_flag_GCJ=unsupported
17377 always_export_symbols_GCJ=yes
17378 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'
17379 # Note: this linker hardcodes the directories in LIBPATH if there
17380 # are no directories specified by -L.
17381 hardcode_minus_L_GCJ=yes
17382 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17383 # Neither direct hardcoding nor static linking is supported with a
17385 hardcode_direct_GCJ=unsupported
17390 if test "$host_cpu" = ia64; then
17391 # On IA64, the linker does run time linking by default, so we don't
17392 # have to do anything special.
17393 aix_use_runtimelinking=no
17394 exp_sym_flag='-Bexport'
17397 # If we're using GNU nm, then we don't want the "-C" option.
17398 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17399 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17400 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'
17402 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'
17404 aix_use_runtimelinking=no
17406 # Test if we are trying to use run time linking or normal
17407 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17408 # need to do runtime linking.
17409 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17410 for ld_flag in $LDFLAGS; do
17411 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17412 aix_use_runtimelinking=yes
17419 exp_sym_flag='-bexport'
17420 no_entry_flag='-bnoentry'
17423 # When large executables or shared objects are built, AIX ld can
17424 # have problems creating the table of contents. If linking a library
17425 # or program results in "error TOC overflow" add -mminimal-toc to
17426 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17427 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17429 archive_cmds_GCJ=''
17430 hardcode_direct_GCJ=yes
17431 hardcode_libdir_separator_GCJ=':'
17432 link_all_deplibs_GCJ=yes
17434 if test "$GCC" = yes; then
17435 case $host_os in aix4.[012]|aix4.[012].*)
17436 # We only want to do this on AIX 4.2 and lower, the check
17437 # below for broken collect2 doesn't work under 4.3+
17438 collect2name=`${CC} -print-prog-name=collect2`
17439 if test -f "$collect2name" && \
17440 strings "$collect2name" | grep resolve_lib_name >/dev/null
17442 # We have reworked collect2
17443 hardcode_direct_GCJ=yes
17445 # We have old collect2
17446 hardcode_direct_GCJ=unsupported
17447 # It fails to find uninstalled libraries when the uninstalled
17448 # path is not listed in the libpath. Setting hardcode_minus_L
17449 # to unsupported forces relinking
17450 hardcode_minus_L_GCJ=yes
17451 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17452 hardcode_libdir_separator_GCJ=
17456 shared_flag='-shared'
17457 if test "$aix_use_runtimelinking" = yes; then
17458 shared_flag="$shared_flag "'${wl}-G'
17462 if test "$host_cpu" = ia64; then
17463 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17464 # chokes on -Wl,-G. The following line is correct:
17467 if test "$aix_use_runtimelinking" = yes; then
17468 shared_flag='${wl}-G'
17470 shared_flag='${wl}-bM:SRE'
17475 # It seems that -bexpall does not export symbols beginning with
17476 # underscore (_), so it is better to generate a list of symbols to export.
17477 always_export_symbols_GCJ=yes
17478 if test "$aix_use_runtimelinking" = yes; then
17479 # Warning - without using the other runtime loading flags (-brtl),
17480 # -berok will link without error, but may produce a broken library.
17481 allow_undefined_flag_GCJ='-berok'
17482 # Determine the default libpath from the value encoded in an empty executable.
17483 cat >conftest.$ac_ext <<_ACEOF
17486 cat confdefs.h >>conftest.$ac_ext
17487 cat >>conftest.$ac_ext <<_ACEOF
17488 /* end confdefs.h. */
17498 rm -f conftest.$ac_objext conftest$ac_exeext
17499 if { (ac_try="$ac_link"
17500 case "(($ac_try" in
17501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502 *) ac_try_echo=$ac_try;;
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505 (eval "$ac_link") 2>conftest.er1
17507 grep -v '^ *+' conftest.er1 >conftest.err
17509 cat conftest.err >&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); } &&
17512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17513 { (case "(($ac_try" in
17514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515 *) ac_try_echo=$ac_try;;
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518 (eval "$ac_try") 2>&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; } &&
17522 { ac_try='test -s conftest$ac_exeext'
17523 { (case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_try") 2>&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; }; then
17533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17535 # Check for a 64-bit object if we didn't find anything.
17536 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; }
17539 echo "$as_me: failed program was:" >&5
17540 sed 's/^/| /' conftest.$ac_ext >&5
17545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17546 conftest$ac_exeext conftest.$ac_ext
17547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17549 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17550 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"
17552 if test "$host_cpu" = ia64; then
17553 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17554 allow_undefined_flag_GCJ="-z nodefs"
17555 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"
17557 # Determine the default libpath from the value encoded in an empty executable.
17558 cat >conftest.$ac_ext <<_ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h. */
17573 rm -f conftest.$ac_objext conftest$ac_exeext
17574 if { (ac_try="$ac_link"
17575 case "(($ac_try" in
17576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17577 *) ac_try_echo=$ac_try;;
17579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17580 (eval "$ac_link") 2>conftest.er1
17582 grep -v '^ *+' conftest.er1 >conftest.err
17584 cat conftest.err >&5
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); } &&
17587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17588 { (case "(($ac_try" in
17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590 *) ac_try_echo=$ac_try;;
17592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593 (eval "$ac_try") 2>&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; } &&
17597 { ac_try='test -s conftest$ac_exeext'
17598 { (case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603 (eval "$ac_try") 2>&5
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; }; then
17608 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17610 # Check for a 64-bit object if we didn't find anything.
17611 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; }
17614 echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17621 conftest$ac_exeext conftest.$ac_ext
17622 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17624 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17625 # Warning - without using the other run time loading flags,
17626 # -berok will link without error, but may produce a broken library.
17627 no_undefined_flag_GCJ=' ${wl}-bernotok'
17628 allow_undefined_flag_GCJ=' ${wl}-berok'
17629 # Exported symbols can be pulled into shared objects from archives
17630 whole_archive_flag_spec_GCJ='$convenience'
17631 archive_cmds_need_lc_GCJ=yes
17632 # This is similar to how AIX traditionally builds its shared libraries.
17633 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'
17639 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)'
17640 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17641 hardcode_minus_L_GCJ=yes
17642 # see comment about different semantics on the GNU ld section
17647 export_dynamic_flag_spec_GCJ=-rdynamic
17650 cygwin* | mingw* | pw32*)
17651 # When not using gcc, we currently assume that we are using
17652 # Microsoft Visual C++.
17653 # hardcode_libdir_flag_spec is actually meaningless, as there is
17654 # no search path for DLLs.
17655 hardcode_libdir_flag_spec_GCJ=' '
17656 allow_undefined_flag_GCJ=unsupported
17657 # Tell ltmain to make .lib files, not .a files.
17659 # Tell ltmain to make .dll files, not .so files.
17661 # FIXME: Setting linknames here is a bad hack.
17662 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17663 # The linker will automatically build a .lib file if we build a DLL.
17664 old_archive_From_new_cmds_GCJ='true'
17665 # FIXME: Should let the user specify the lib program.
17666 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17667 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17668 enable_shared_with_static_runtimes_GCJ=yes
17671 darwin* | rhapsody*)
17673 rhapsody* | darwin1.[012])
17674 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17677 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17678 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17680 case ${MACOSX_DEPLOYMENT_TARGET} in
17682 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17685 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17691 archive_cmds_need_lc_GCJ=no
17692 hardcode_direct_GCJ=no
17693 hardcode_automatic_GCJ=yes
17694 hardcode_shlibpath_var_GCJ=unsupported
17695 whole_archive_flag_spec_GCJ=''
17696 link_all_deplibs_GCJ=yes
17697 if test "$GCC" = yes ; then
17698 output_verbose_link_cmd='echo'
17699 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17700 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17701 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17702 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}'
17703 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}'
17705 case $cc_basename in
17707 output_verbose_link_cmd='echo'
17708 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17709 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17710 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17711 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}'
17712 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}'
17722 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17723 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17724 hardcode_shlibpath_var_GCJ=no
17731 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17732 # support. Future versions do this automatically, but an explicit c++rt0.o
17733 # does not break anything, and helps significantly (at the cost of a little
17736 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17737 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17738 hardcode_direct_GCJ=yes
17739 hardcode_shlibpath_var_GCJ=no
17742 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17744 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17745 hardcode_direct_GCJ=yes
17746 hardcode_minus_L_GCJ=yes
17747 hardcode_shlibpath_var_GCJ=no
17750 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17751 freebsd* | kfreebsd*-gnu | dragonfly*)
17752 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17753 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17754 hardcode_direct_GCJ=yes
17755 hardcode_shlibpath_var_GCJ=no
17759 if test "$GCC" = yes; then
17760 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'
17762 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'
17764 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17765 hardcode_libdir_separator_GCJ=:
17766 hardcode_direct_GCJ=yes
17768 # hardcode_minus_L: Not really in the search PATH,
17769 # but as the default location of the library.
17770 hardcode_minus_L_GCJ=yes
17771 export_dynamic_flag_spec_GCJ='${wl}-E'
17775 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17776 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17778 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17780 if test "$with_gnu_ld" = no; then
17781 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17782 hardcode_libdir_separator_GCJ=:
17784 hardcode_direct_GCJ=yes
17785 export_dynamic_flag_spec_GCJ='${wl}-E'
17787 # hardcode_minus_L: Not really in the search PATH,
17788 # but as the default location of the library.
17789 hardcode_minus_L_GCJ=yes
17794 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17797 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17800 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17803 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17809 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17812 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17815 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17819 if test "$with_gnu_ld" = no; then
17820 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17821 hardcode_libdir_separator_GCJ=:
17825 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17826 hardcode_direct_GCJ=no
17827 hardcode_shlibpath_var_GCJ=no
17830 hardcode_direct_GCJ=yes
17831 export_dynamic_flag_spec_GCJ='${wl}-E'
17833 # hardcode_minus_L: Not really in the search PATH,
17834 # but as the default location of the library.
17835 hardcode_minus_L_GCJ=yes
17841 irix5* | irix6* | nonstopux*)
17842 if test "$GCC" = yes; then
17843 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'
17845 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'
17846 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17848 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17849 hardcode_libdir_separator_GCJ=:
17850 link_all_deplibs_GCJ=yes
17854 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17855 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17857 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17859 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17860 hardcode_direct_GCJ=yes
17861 hardcode_shlibpath_var_GCJ=no
17865 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17866 hardcode_direct_GCJ=yes
17867 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17868 hardcode_libdir_separator_GCJ=:
17869 hardcode_shlibpath_var_GCJ=no
17873 hardcode_direct_GCJ=yes
17874 hardcode_shlibpath_var_GCJ=no
17875 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17876 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17877 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17878 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17879 export_dynamic_flag_spec_GCJ='${wl}-E'
17882 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17883 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17884 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17887 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17888 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17895 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17896 hardcode_minus_L_GCJ=yes
17897 allow_undefined_flag_GCJ=unsupported
17898 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'
17899 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17903 if test "$GCC" = yes; then
17904 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17905 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'
17907 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17908 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'
17910 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17911 hardcode_libdir_separator_GCJ=:
17914 osf4* | osf5*) # as osf3* with the addition of -msym flag
17915 if test "$GCC" = yes; then
17916 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17917 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'
17918 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17920 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17921 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'
17922 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~
17923 $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'
17925 # Both c and cxx compiler support -rpath directly
17926 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17928 hardcode_libdir_separator_GCJ=:
17932 no_undefined_flag_GCJ=' -z text'
17933 if test "$GCC" = yes; then
17935 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17936 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17937 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17940 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17941 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17942 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17944 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17945 hardcode_shlibpath_var_GCJ=no
17947 solaris2.[0-5] | solaris2.[0-5].*) ;;
17949 # The compiler driver will combine linker options so we
17950 # cannot just pass the convience library names through
17951 # without $wl, iff we do not link with $LD.
17952 # Luckily, gcc supports the same syntax we need for Sun Studio.
17953 # Supported since Solaris 2.6 (maybe 2.5.1?)
17956 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17958 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' ;;
17961 link_all_deplibs_GCJ=yes
17965 if test "x$host_vendor" = xsequent; then
17966 # Use $CC to link under sequent, because it throws in some extra .o
17967 # files that make .init and .fini sections work.
17968 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17970 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17972 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17973 hardcode_direct_GCJ=yes
17974 hardcode_minus_L_GCJ=yes
17975 hardcode_shlibpath_var_GCJ=no
17979 case $host_vendor in
17981 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17982 hardcode_direct_GCJ=yes # is this really true???
17985 ## LD is ld it makes a PLAMLIB
17986 ## CC just makes a GrossModule.
17987 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17988 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17989 hardcode_direct_GCJ=no
17992 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17993 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17996 runpath_var='LD_RUN_PATH'
17997 hardcode_shlibpath_var_GCJ=no
18001 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18002 hardcode_shlibpath_var_GCJ=no
18003 export_dynamic_flag_spec_GCJ='-Bexport'
18007 if test -d /usr/nec; then
18008 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18009 hardcode_shlibpath_var_GCJ=no
18010 runpath_var=LD_RUN_PATH
18011 hardcode_runpath_var=yes
18016 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18017 no_undefined_flag_GCJ='${wl}-z,text'
18018 archive_cmds_need_lc_GCJ=no
18019 hardcode_shlibpath_var_GCJ=no
18020 runpath_var='LD_RUN_PATH'
18022 if test "$GCC" = yes; then
18023 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18024 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18026 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18027 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18031 sysv5* | sco3.2v5* | sco5v6*)
18032 # Note: We can NOT use -z defs as we might desire, because we do not
18033 # link with -lc, and that would cause any symbols used from libc to
18034 # always be unresolved, which means just about no library would
18035 # ever link correctly. If we're not using GNU ld we use -z text
18036 # though, which does catch some bad symbols but isn't as heavy-handed
18038 no_undefined_flag_GCJ='${wl}-z,text'
18039 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18040 archive_cmds_need_lc_GCJ=no
18041 hardcode_shlibpath_var_GCJ=no
18042 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18043 hardcode_libdir_separator_GCJ=':'
18044 link_all_deplibs_GCJ=yes
18045 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18046 runpath_var='LD_RUN_PATH'
18048 if test "$GCC" = yes; then
18049 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18050 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18052 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18053 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18058 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18059 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18060 hardcode_shlibpath_var_GCJ=no
18069 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18070 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18071 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18074 # Do we need to explicitly link libc?
18076 case "x$archive_cmds_need_lc_GCJ" in
18078 # Assume -lc should be added
18079 archive_cmds_need_lc_GCJ=yes
18081 if test "$enable_shared" = yes && test "$GCC" = yes; then
18082 case $archive_cmds_GCJ in
18084 # FIXME: we may have to deal with multi-command sequences.
18087 # Test whether the compiler implicitly links with -lc since on some
18088 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18089 # to ld, don't add -lc before -lgcc.
18090 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18091 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18093 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18096 (eval $ac_compile) 2>&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } 2>conftest.err; then
18102 libobjs=conftest.$ac_objext
18104 wl=$lt_prog_compiler_wl_GCJ
18105 pic_flag=$lt_prog_compiler_pic_GCJ
18111 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18112 allow_undefined_flag_GCJ=
18113 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18114 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }
18119 archive_cmds_need_lc_GCJ=no
18121 archive_cmds_need_lc_GCJ=yes
18123 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18125 cat conftest.err 1>&5
18128 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18129 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18136 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18137 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18138 library_names_spec=
18139 libname_spec='lib$name'
18143 postuninstall_cmds=
18147 shlibpath_overrides_runpath=unknown
18149 dynamic_linker="$host_os ld.so"
18150 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18151 if test "$GCC" = yes; then
18152 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18153 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18154 # if the path contains ";" then we assume it to be the separator
18155 # otherwise default to the standard path separator (i.e. ":") - it is
18156 # assumed that no part of a normal pathname contains ";" but that should
18157 # okay in the real world where ";" in dirpaths is itself problematic.
18158 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18160 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18163 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18165 need_lib_prefix=unknown
18166 hardcode_into_libs=no
18168 # when you set need_version to no, make sure it does not cause -set_version
18169 # flags to be left without arguments
18170 need_version=unknown
18175 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18176 shlibpath_var=LIBPATH
18178 # AIX 3 has no versioning support, so we append a major version to the name.
18179 soname_spec='${libname}${release}${shared_ext}$major'
18186 hardcode_into_libs=yes
18187 if test "$host_cpu" = ia64; then
18188 # AIX 5 supports IA64
18189 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18190 shlibpath_var=LD_LIBRARY_PATH
18192 # With GCC up to 2.95.x, collect2 would create an import file
18193 # for dependence libraries. The import file would start with
18194 # the line `#! .'. This would cause the generated library to
18195 # depend on `.', always an invalid library. This was fixed in
18196 # development snapshots of GCC prior to 3.0.
18198 aix4 | aix4.[01] | aix4.[01].*)
18199 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18201 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18204 can_build_shared=no
18208 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18209 # soname into executable. Probably we can add versioning support to
18210 # collect2, so additional links can be useful in future.
18211 if test "$aix_use_runtimelinking" = yes; then
18212 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18213 # instead of lib<name>.a to let people know that these are not
18214 # typical AIX shared libraries.
18215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18217 # We preserve .a as extension for shared libraries through AIX4.2
18218 # and later when we are not doing run time linking.
18219 library_names_spec='${libname}${release}.a $libname.a'
18220 soname_spec='${libname}${release}${shared_ext}$major'
18222 shlibpath_var=LIBPATH
18227 library_names_spec='$libname.ixlibrary $libname.a'
18228 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18229 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'
18233 library_names_spec='${libname}${shared_ext}'
18234 dynamic_linker="$host_os ld.so"
18235 shlibpath_var=LIBRARY_PATH
18241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18242 soname_spec='${libname}${release}${shared_ext}$major'
18243 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18244 shlibpath_var=LD_LIBRARY_PATH
18245 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18246 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18247 # the default ld.so.conf also contains /usr/contrib/lib and
18248 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18249 # libtool to hard-code these into programs
18252 cygwin* | mingw* | pw32*)
18253 version_type=windows
18258 case $GCC,$host_os in
18259 yes,cygwin* | yes,mingw* | yes,pw32*)
18260 library_names_spec='$libname.dll.a'
18261 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18262 postinstall_cmds='base_file=`basename \${file}`~
18263 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18264 dldir=$destdir/`dirname \$dlpath`~
18265 test -d \$dldir || mkdir -p \$dldir~
18266 $install_prog $dir/$dlname \$dldir/$dlname~
18267 chmod a+x \$dldir/$dlname'
18268 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18269 dlpath=$dir/\$dldll~
18271 shlibpath_overrides_runpath=yes
18275 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18276 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18277 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18280 # MinGW DLLs use traditional 'lib' prefix
18281 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18282 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18283 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18284 # It is most probably a Windows format PATH printed by
18285 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18286 # path with ; separators, and with drive letters. We can handle the
18287 # drive letters (cygwin fileutils understands them), so leave them,
18288 # especially as we might pass files found there to a mingw objdump,
18289 # which wouldn't understand a cygwinified path. Ahh.
18290 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18292 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18296 # pw32 DLLs use 'pw' prefix rather than 'lib'
18297 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18303 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18306 dynamic_linker='Win32 ld.exe'
18307 # FIXME: first we should search . and the directory the executable is in
18311 darwin* | rhapsody*)
18312 dynamic_linker="$host_os dyld"
18313 version_type=darwin
18316 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18317 soname_spec='${libname}${release}${major}$shared_ext'
18318 shlibpath_overrides_runpath=yes
18319 shlibpath_var=DYLD_LIBRARY_PATH
18320 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18321 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18322 if test "$GCC" = yes; then
18323 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"`
18325 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18327 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18335 soname_spec='${libname}${release}${shared_ext}$major'
18336 shlibpath_var=LD_LIBRARY_PATH
18347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18348 soname_spec='${libname}${release}${shared_ext}$major'
18349 shlibpath_var=LD_LIBRARY_PATH
18350 shlibpath_overrides_runpath=no
18351 hardcode_into_libs=yes
18352 dynamic_linker='GNU ld.so'
18355 freebsd* | dragonfly*)
18356 # DragonFly does not have aout. When/if they implement a new
18357 # versioning mechanism, adjust this.
18358 if test -x /usr/bin/objformat; then
18359 objformat=`/usr/bin/objformat`
18362 freebsd[123]*) objformat=aout ;;
18363 *) objformat=elf ;;
18366 version_type=freebsd-$objformat
18367 case $version_type in
18369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18374 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18378 shlibpath_var=LD_LIBRARY_PATH
18381 shlibpath_overrides_runpath=yes
18383 freebsd3.[01]* | freebsdelf3.[01]*)
18384 shlibpath_overrides_runpath=yes
18385 hardcode_into_libs=yes
18387 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18388 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18389 shlibpath_overrides_runpath=no
18390 hardcode_into_libs=yes
18392 freebsd*) # from 4.6 on
18393 shlibpath_overrides_runpath=yes
18394 hardcode_into_libs=yes
18403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18404 soname_spec='${libname}${release}${shared_ext}$major'
18405 shlibpath_var=LD_LIBRARY_PATH
18406 hardcode_into_libs=yes
18409 hpux9* | hpux10* | hpux11*)
18410 # Give a soname corresponding to the major version so that dld.sl refuses to
18411 # link against other versions.
18418 hardcode_into_libs=yes
18419 dynamic_linker="$host_os dld.so"
18420 shlibpath_var=LD_LIBRARY_PATH
18421 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18423 soname_spec='${libname}${release}${shared_ext}$major'
18424 if test "X$HPUX_IA64_MODE" = X32; then
18425 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18427 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18429 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18433 hardcode_into_libs=yes
18434 dynamic_linker="$host_os dld.sl"
18435 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18436 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18438 soname_spec='${libname}${release}${shared_ext}$major'
18439 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18444 dynamic_linker="$host_os dld.sl"
18445 shlibpath_var=SHLIB_PATH
18446 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18448 soname_spec='${libname}${release}${shared_ext}$major'
18451 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18452 postinstall_cmds='chmod 555 $lib'
18459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18460 soname_spec='${libname}${release}${shared_ext}$major'
18461 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18462 shlibpath_var=LD_LIBRARY_PATH
18463 shlibpath_overrides_runpath=no
18464 hardcode_into_libs=yes
18467 irix5* | irix6* | nonstopux*)
18469 nonstopux*) version_type=nonstopux ;;
18471 if test "$lt_cv_prog_gnu_ld" = yes; then
18479 soname_spec='${libname}${release}${shared_ext}$major'
18480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18482 irix5* | nonstopux*)
18483 libsuff= shlibsuff=
18486 case $LD in # libtool.m4 will add one of these switches to LD
18487 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18488 libsuff= shlibsuff= libmagic=32-bit;;
18489 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18490 libsuff=32 shlibsuff=N32 libmagic=N32;;
18491 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18492 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18493 *) libsuff= shlibsuff= libmagic=never-match;;
18497 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18498 shlibpath_overrides_runpath=no
18499 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18500 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18501 hardcode_into_libs=yes
18504 # No shared lib support for Linux oldld, aout, or coff.
18505 linux*oldld* | linux*aout* | linux*coff*)
18509 # This must be Linux ELF.
18514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18515 soname_spec='${libname}${release}${shared_ext}$major'
18516 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18517 shlibpath_var=LD_LIBRARY_PATH
18518 shlibpath_overrides_runpath=no
18519 # This implies no fast_install, which is unacceptable.
18520 # Some rework will be needed to allow for fast_install
18521 # before this can be enabled.
18522 hardcode_into_libs=yes
18524 # Append ld.so.conf contents to the search path
18525 if test -f /etc/ld.so.conf; then
18526 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' ' '`
18527 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18530 # We used to test for /lib/ld.so.1 and disable shared libraries on
18531 # powerpc, because MkLinux only supported shared libraries with the
18532 # GNU dynamic linker. Since this was broken with cross compilers,
18533 # most powerpc-linux boxes support dynamic linking these days and
18534 # people can always --disable-shared, the test was removed, and we
18535 # assume the GNU/Linux dynamic linker is in use.
18536 dynamic_linker='GNU/Linux ld.so'
18543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18544 soname_spec='${libname}${release}${shared_ext}$major'
18545 shlibpath_var=LD_LIBRARY_PATH
18546 shlibpath_overrides_runpath=no
18547 hardcode_into_libs=yes
18548 dynamic_linker='GNU ld.so'
18555 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18558 dynamic_linker='NetBSD (a.out) ld.so'
18560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18561 soname_spec='${libname}${release}${shared_ext}$major'
18562 dynamic_linker='NetBSD ld.elf_so'
18564 shlibpath_var=LD_LIBRARY_PATH
18565 shlibpath_overrides_runpath=yes
18566 hardcode_into_libs=yes
18571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18572 shlibpath_var=LD_LIBRARY_PATH
18573 shlibpath_overrides_runpath=yes
18580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18581 soname_spec='${libname}${release}${shared_ext}$major'
18582 shlibpath_var=LD_LIBRARY_PATH
18583 shlibpath_overrides_runpath=yes
18588 sys_lib_dlsearch_path_spec="/usr/lib"
18590 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18592 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18593 *) need_version=no ;;
18595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18597 shlibpath_var=LD_LIBRARY_PATH
18598 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18600 openbsd2.[89] | openbsd2.[89].*)
18601 shlibpath_overrides_runpath=no
18604 shlibpath_overrides_runpath=yes
18608 shlibpath_overrides_runpath=yes
18613 libname_spec='$name'
18616 library_names_spec='$libname${shared_ext} $libname.a'
18617 dynamic_linker='OS/2 ld.exe'
18618 shlibpath_var=LIBPATH
18621 osf3* | osf4* | osf5*)
18625 soname_spec='${libname}${release}${shared_ext}$major'
18626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18627 shlibpath_var=LD_LIBRARY_PATH
18628 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18629 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18637 soname_spec='${libname}${release}${shared_ext}$major'
18638 shlibpath_var=LD_LIBRARY_PATH
18639 shlibpath_overrides_runpath=yes
18640 hardcode_into_libs=yes
18641 # ldd complains unless libraries are executable
18642 postinstall_cmds='chmod +x $lib'
18647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18648 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18649 shlibpath_var=LD_LIBRARY_PATH
18650 shlibpath_overrides_runpath=yes
18651 if test "$with_gnu_ld" = yes; then
18659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18660 soname_spec='${libname}${release}${shared_ext}$major'
18661 shlibpath_var=LD_LIBRARY_PATH
18662 case $host_vendor in
18664 shlibpath_overrides_runpath=no
18666 export_dynamic_flag_spec='${wl}-Blargedynsym'
18667 runpath_var=LD_RUN_PATH
18675 shlibpath_overrides_runpath=no
18676 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18682 if test -d /usr/nec ;then
18684 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18685 soname_spec='$libname${shared_ext}.$major'
18686 shlibpath_var=LD_LIBRARY_PATH
18690 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18691 version_type=freebsd-elf
18694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18695 soname_spec='${libname}${release}${shared_ext}$major'
18696 shlibpath_var=LD_LIBRARY_PATH
18697 hardcode_into_libs=yes
18698 if test "$with_gnu_ld" = yes; then
18699 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18700 shlibpath_overrides_runpath=no
18702 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18703 shlibpath_overrides_runpath=yes
18706 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18710 sys_lib_dlsearch_path_spec='/usr/lib'
18715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18716 soname_spec='${libname}${release}${shared_ext}$major'
18717 shlibpath_var=LD_LIBRARY_PATH
18724 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18725 echo "${ECHO_T}$dynamic_linker" >&6; }
18726 test "$dynamic_linker" = no && can_build_shared=no
18728 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18729 if test "$GCC" = yes; then
18730 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18733 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18734 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18735 hardcode_action_GCJ=
18736 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18737 test -n "$runpath_var_GCJ" || \
18738 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18740 # We can hardcode non-existant directories.
18741 if test "$hardcode_direct_GCJ" != no &&
18742 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18743 # have to relink, otherwise we might link with an installed library
18744 # when we should be linking with a yet-to-be-installed one
18745 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18746 test "$hardcode_minus_L_GCJ" != no; then
18747 # Linking always hardcodes the temporary library directory.
18748 hardcode_action_GCJ=relink
18750 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18751 hardcode_action_GCJ=immediate
18754 # We cannot hardcode anything, or else we can only hardcode existing
18756 hardcode_action_GCJ=unsupported
18758 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18759 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18761 if test "$hardcode_action_GCJ" = relink; then
18762 # Fast installation is not supported
18763 enable_fast_install=no
18764 elif test "$shlibpath_overrides_runpath" = yes ||
18765 test "$enable_shared" = no; then
18766 # Fast installation is not necessary
18767 enable_fast_install=needless
18771 # The else clause should only fire when bootstrapping the
18772 # libtool distribution, otherwise you forgot to ship ltmain.sh
18773 # with your package, and you will get complaints that there are
18774 # no rules to generate ltmain.sh.
18775 if test -f "$ltmain"; then
18776 # See if we are running on zsh, and set the options which allow our commands through
18777 # without removal of \ escapes.
18778 if test -n "${ZSH_VERSION+set}" ; then
18779 setopt NO_GLOB_SUBST
18781 # Now quote all the things that may contain metacharacters while being
18782 # careful not to overquote the AC_SUBSTed values. We take copies of the
18783 # variables and quote the copies for generation of the libtool script.
18784 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18786 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18787 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18788 deplibs_check_method reload_flag reload_cmds need_locks \
18789 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18790 lt_cv_sys_global_symbol_to_c_name_address \
18791 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18792 old_postinstall_cmds old_postuninstall_cmds \
18796 lt_prog_compiler_wl_GCJ \
18797 lt_prog_compiler_pic_GCJ \
18798 lt_prog_compiler_static_GCJ \
18799 lt_prog_compiler_no_builtin_flag_GCJ \
18800 export_dynamic_flag_spec_GCJ \
18801 thread_safe_flag_spec_GCJ \
18802 whole_archive_flag_spec_GCJ \
18803 enable_shared_with_static_runtimes_GCJ \
18804 old_archive_cmds_GCJ \
18805 old_archive_from_new_cmds_GCJ \
18806 predep_objects_GCJ \
18807 postdep_objects_GCJ \
18810 compiler_lib_search_path_GCJ \
18812 archive_expsym_cmds_GCJ \
18813 postinstall_cmds_GCJ \
18814 postuninstall_cmds_GCJ \
18815 old_archive_from_expsyms_cmds_GCJ \
18816 allow_undefined_flag_GCJ \
18817 no_undefined_flag_GCJ \
18818 export_symbols_cmds_GCJ \
18819 hardcode_libdir_flag_spec_GCJ \
18820 hardcode_libdir_flag_spec_ld_GCJ \
18821 hardcode_libdir_separator_GCJ \
18822 hardcode_automatic_GCJ \
18824 module_expsym_cmds_GCJ \
18825 lt_cv_prog_compiler_c_o_GCJ \
18826 exclude_expsyms_GCJ \
18827 include_expsyms_GCJ; do
18830 old_archive_cmds_GCJ | \
18831 old_archive_from_new_cmds_GCJ | \
18832 archive_cmds_GCJ | \
18833 archive_expsym_cmds_GCJ | \
18834 module_cmds_GCJ | \
18835 module_expsym_cmds_GCJ | \
18836 old_archive_from_expsyms_cmds_GCJ | \
18837 export_symbols_cmds_GCJ | \
18838 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18839 postinstall_cmds | postuninstall_cmds | \
18840 old_postinstall_cmds | old_postuninstall_cmds | \
18841 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18842 # Double-quote double-evaled strings.
18843 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18846 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18852 *'\$0 --fallback-echo"')
18853 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18859 cat <<__EOF__ >> "$cfgfile"
18860 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18862 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18864 # Shell to use when invoking shell scripts.
18867 # Whether or not to build shared libraries.
18868 build_libtool_libs=$enable_shared
18870 # Whether or not to build static libraries.
18871 build_old_libs=$enable_static
18873 # Whether or not to add -lc for building shared libraries.
18874 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18876 # Whether or not to disallow shared libs when runtime libs are static
18877 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18879 # Whether or not to optimize for fast installation.
18880 fast_install=$enable_fast_install
18883 host_alias=$host_alias
18887 # The build system.
18888 build_alias=$build_alias
18892 # An echo program that does not interpret backslashes.
18897 AR_FLAGS=$lt_AR_FLAGS
18902 # LTCC compiler flags.
18903 LTCFLAGS=$lt_LTCFLAGS
18905 # A language-specific compiler.
18906 CC=$lt_compiler_GCJ
18908 # Is the compiler the GNU C compiler?
18914 # The linker used to build libraries.
18917 # Whether we need hard or soft links.
18920 # A BSD-compatible nm program.
18923 # A symbol stripping program
18926 # Used to examine libraries when file_magic_cmd begins "file"
18927 MAGIC_CMD=$MAGIC_CMD
18929 # Used on cygwin: DLL creation program.
18932 # Used on cygwin: object dumper.
18935 # Used on cygwin: assembler.
18938 # The name of the directory that contains temporary libtool files.
18941 # How to create reloadable object files.
18942 reload_flag=$lt_reload_flag
18943 reload_cmds=$lt_reload_cmds
18945 # How to pass a linker flag through the compiler.
18946 wl=$lt_lt_prog_compiler_wl_GCJ
18948 # Object file suffix (normally "o").
18949 objext="$ac_objext"
18951 # Old archive suffix (normally "a").
18954 # Shared library suffix (normally ".so").
18955 shrext_cmds='$shrext_cmds'
18957 # Executable file suffix (normally "").
18960 # Additional compiler flags for building library objects.
18961 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18964 # What is the maximum length of a command?
18965 max_cmd_len=$lt_cv_sys_max_cmd_len
18967 # Does compiler simultaneously support -c and -o options?
18968 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18970 # Must we lock files when doing compilation?
18971 need_locks=$lt_need_locks
18973 # Do we need the lib prefix for modules?
18974 need_lib_prefix=$need_lib_prefix
18976 # Do we need a version for libraries?
18977 need_version=$need_version
18979 # Whether dlopen is supported.
18980 dlopen_support=$enable_dlopen
18982 # Whether dlopen of programs is supported.
18983 dlopen_self=$enable_dlopen_self
18985 # Whether dlopen of statically linked programs is supported.
18986 dlopen_self_static=$enable_dlopen_self_static
18988 # Compiler flag to prevent dynamic linking.
18989 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18991 # Compiler flag to turn off builtin functions.
18992 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18994 # Compiler flag to allow reflexive dlopens.
18995 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18997 # Compiler flag to generate shared objects directly from archives.
18998 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19000 # Compiler flag to generate thread-safe objects.
19001 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19003 # Library versioning type.
19004 version_type=$version_type
19006 # Format of library name prefix.
19007 libname_spec=$lt_libname_spec
19009 # List of archive names. First name is the real one, the rest are links.
19010 # The last name is the one that the linker finds with -lNAME.
19011 library_names_spec=$lt_library_names_spec
19013 # The coded name of the library, if different from the real name.
19014 soname_spec=$lt_soname_spec
19016 # Commands used to build and install an old-style archive.
19018 old_archive_cmds=$lt_old_archive_cmds_GCJ
19019 old_postinstall_cmds=$lt_old_postinstall_cmds
19020 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19022 # Create an old-style archive from a shared archive.
19023 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19025 # Create a temporary old-style archive to link instead of a shared archive.
19026 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19028 # Commands used to build and install a shared archive.
19029 archive_cmds=$lt_archive_cmds_GCJ
19030 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19031 postinstall_cmds=$lt_postinstall_cmds
19032 postuninstall_cmds=$lt_postuninstall_cmds
19034 # Commands used to build a loadable module (assumed same as above if empty)
19035 module_cmds=$lt_module_cmds_GCJ
19036 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19038 # Commands to strip libraries.
19039 old_striplib=$lt_old_striplib
19040 striplib=$lt_striplib
19042 # Dependencies to place before the objects being linked to create a
19044 predep_objects=$lt_predep_objects_GCJ
19046 # Dependencies to place after the objects being linked to create a
19048 postdep_objects=$lt_postdep_objects_GCJ
19050 # Dependencies to place before the objects being linked to create a
19052 predeps=$lt_predeps_GCJ
19054 # Dependencies to place after the objects being linked to create a
19056 postdeps=$lt_postdeps_GCJ
19058 # The library search path used internally by the compiler when linking
19059 # a shared library.
19060 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19062 # Method to check whether dependent libraries are shared objects.
19063 deplibs_check_method=$lt_deplibs_check_method
19065 # Command to use when deplibs_check_method == file_magic.
19066 file_magic_cmd=$lt_file_magic_cmd
19068 # Flag that allows shared libraries with undefined symbols to be built.
19069 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19071 # Flag that forces no undefined symbols.
19072 no_undefined_flag=$lt_no_undefined_flag_GCJ
19074 # Commands used to finish a libtool library installation in a directory.
19075 finish_cmds=$lt_finish_cmds
19077 # Same as above, but a single script fragment to be evaled but not shown.
19078 finish_eval=$lt_finish_eval
19080 # Take the output of nm and produce a listing of raw symbols and C names.
19081 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19083 # Transform the output of nm in a proper C declaration
19084 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19086 # Transform the output of nm in a C name address pair
19087 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19089 # This is the shared library runtime path variable.
19090 runpath_var=$runpath_var
19092 # This is the shared library path variable.
19093 shlibpath_var=$shlibpath_var
19095 # Is shlibpath searched before the hard-coded library search path?
19096 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19098 # How to hardcode a shared library path into an executable.
19099 hardcode_action=$hardcode_action_GCJ
19101 # Whether we should hardcode library paths into libraries.
19102 hardcode_into_libs=$hardcode_into_libs
19104 # Flag to hardcode \$libdir into a binary during linking.
19105 # This must work even if \$libdir does not exist.
19106 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19108 # If ld is used when linking, flag to hardcode \$libdir into
19109 # a binary during linking. This must work even if \$libdir does
19111 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19113 # Whether we need a single -rpath flag with a separated argument.
19114 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19116 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19117 # resulting binary.
19118 hardcode_direct=$hardcode_direct_GCJ
19120 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19121 # resulting binary.
19122 hardcode_minus_L=$hardcode_minus_L_GCJ
19124 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19125 # the resulting binary.
19126 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19128 # Set to yes if building a shared library automatically hardcodes DIR into the library
19129 # and all subsequent libraries and executables linked against it.
19130 hardcode_automatic=$hardcode_automatic_GCJ
19132 # Variables whose values should be saved in libtool wrapper scripts and
19133 # restored at relink time.
19134 variables_saved_for_relink="$variables_saved_for_relink"
19136 # Whether libtool must link a program against all its dependency libraries.
19137 link_all_deplibs=$link_all_deplibs_GCJ
19139 # Compile-time system search path for libraries
19140 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19142 # Run-time system search path for libraries
19143 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19145 # Fix the shell variable \$srcfile for the compiler.
19146 fix_srcfile_path="$fix_srcfile_path_GCJ"
19148 # Set to yes if exported symbols are required.
19149 always_export_symbols=$always_export_symbols_GCJ
19151 # The commands to list exported symbols.
19152 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19154 # The commands to extract the exported symbol list from a shared archive.
19155 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19157 # Symbols that should not be listed in the preloaded symbols.
19158 exclude_expsyms=$lt_exclude_expsyms_GCJ
19160 # Symbols that must always be exported.
19161 include_expsyms=$lt_include_expsyms_GCJ
19163 # ### END LIBTOOL TAG CONFIG: $tagname
19169 # If there is no Makefile yet, we rely on a make rule to execute
19170 # `config.status --recheck' to rerun these tests and create the
19171 # libtool script then.
19172 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19173 if test -f "$ltmain_in"; then
19174 test -f Makefile && make "$ltmain"
19180 ac_cpp='$CPP $CPPFLAGS'
19181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19195 # Source file extension for RC test sources.
19198 # Object file extension for compiled RC test sources.
19202 # Code to be used in simple compile tests
19203 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19205 # Code to be used in simple link tests
19206 lt_simple_link_test_code="$lt_simple_compile_test_code"
19208 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19210 # If no C compiler was specified, use CC.
19213 # If no C compiler flags were specified, use CFLAGS.
19214 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19216 # Allow CC to be a program name with arguments.
19220 # save warnings/boilerplate of simple test code
19221 ac_outfile=conftest.$ac_objext
19222 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19223 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19224 _lt_compiler_boilerplate=`cat conftest.err`
19227 ac_outfile=conftest.$ac_objext
19228 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19229 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19230 _lt_linker_boilerplate=`cat conftest.err`
19234 # Allow CC to be a program name with arguments.
19239 for cc_temp in $compiler""; do
19241 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19242 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19247 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19249 lt_cv_prog_compiler_c_o_RC=yes
19251 # The else clause should only fire when bootstrapping the
19252 # libtool distribution, otherwise you forgot to ship ltmain.sh
19253 # with your package, and you will get complaints that there are
19254 # no rules to generate ltmain.sh.
19255 if test -f "$ltmain"; then
19256 # See if we are running on zsh, and set the options which allow our commands through
19257 # without removal of \ escapes.
19258 if test -n "${ZSH_VERSION+set}" ; then
19259 setopt NO_GLOB_SUBST
19261 # Now quote all the things that may contain metacharacters while being
19262 # careful not to overquote the AC_SUBSTed values. We take copies of the
19263 # variables and quote the copies for generation of the libtool script.
19264 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19266 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19267 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19268 deplibs_check_method reload_flag reload_cmds need_locks \
19269 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19270 lt_cv_sys_global_symbol_to_c_name_address \
19271 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19272 old_postinstall_cmds old_postuninstall_cmds \
19276 lt_prog_compiler_wl_RC \
19277 lt_prog_compiler_pic_RC \
19278 lt_prog_compiler_static_RC \
19279 lt_prog_compiler_no_builtin_flag_RC \
19280 export_dynamic_flag_spec_RC \
19281 thread_safe_flag_spec_RC \
19282 whole_archive_flag_spec_RC \
19283 enable_shared_with_static_runtimes_RC \
19284 old_archive_cmds_RC \
19285 old_archive_from_new_cmds_RC \
19286 predep_objects_RC \
19287 postdep_objects_RC \
19290 compiler_lib_search_path_RC \
19292 archive_expsym_cmds_RC \
19293 postinstall_cmds_RC \
19294 postuninstall_cmds_RC \
19295 old_archive_from_expsyms_cmds_RC \
19296 allow_undefined_flag_RC \
19297 no_undefined_flag_RC \
19298 export_symbols_cmds_RC \
19299 hardcode_libdir_flag_spec_RC \
19300 hardcode_libdir_flag_spec_ld_RC \
19301 hardcode_libdir_separator_RC \
19302 hardcode_automatic_RC \
19304 module_expsym_cmds_RC \
19305 lt_cv_prog_compiler_c_o_RC \
19306 exclude_expsyms_RC \
19307 include_expsyms_RC; do
19310 old_archive_cmds_RC | \
19311 old_archive_from_new_cmds_RC | \
19312 archive_cmds_RC | \
19313 archive_expsym_cmds_RC | \
19315 module_expsym_cmds_RC | \
19316 old_archive_from_expsyms_cmds_RC | \
19317 export_symbols_cmds_RC | \
19318 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19319 postinstall_cmds | postuninstall_cmds | \
19320 old_postinstall_cmds | old_postuninstall_cmds | \
19321 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19322 # Double-quote double-evaled strings.
19323 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19326 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19332 *'\$0 --fallback-echo"')
19333 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19339 cat <<__EOF__ >> "$cfgfile"
19340 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19342 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19344 # Shell to use when invoking shell scripts.
19347 # Whether or not to build shared libraries.
19348 build_libtool_libs=$enable_shared
19350 # Whether or not to build static libraries.
19351 build_old_libs=$enable_static
19353 # Whether or not to add -lc for building shared libraries.
19354 build_libtool_need_lc=$archive_cmds_need_lc_RC
19356 # Whether or not to disallow shared libs when runtime libs are static
19357 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19359 # Whether or not to optimize for fast installation.
19360 fast_install=$enable_fast_install
19363 host_alias=$host_alias
19367 # The build system.
19368 build_alias=$build_alias
19372 # An echo program that does not interpret backslashes.
19377 AR_FLAGS=$lt_AR_FLAGS
19382 # LTCC compiler flags.
19383 LTCFLAGS=$lt_LTCFLAGS
19385 # A language-specific compiler.
19388 # Is the compiler the GNU C compiler?
19394 # The linker used to build libraries.
19397 # Whether we need hard or soft links.
19400 # A BSD-compatible nm program.
19403 # A symbol stripping program
19406 # Used to examine libraries when file_magic_cmd begins "file"
19407 MAGIC_CMD=$MAGIC_CMD
19409 # Used on cygwin: DLL creation program.
19412 # Used on cygwin: object dumper.
19415 # Used on cygwin: assembler.
19418 # The name of the directory that contains temporary libtool files.
19421 # How to create reloadable object files.
19422 reload_flag=$lt_reload_flag
19423 reload_cmds=$lt_reload_cmds
19425 # How to pass a linker flag through the compiler.
19426 wl=$lt_lt_prog_compiler_wl_RC
19428 # Object file suffix (normally "o").
19429 objext="$ac_objext"
19431 # Old archive suffix (normally "a").
19434 # Shared library suffix (normally ".so").
19435 shrext_cmds='$shrext_cmds'
19437 # Executable file suffix (normally "").
19440 # Additional compiler flags for building library objects.
19441 pic_flag=$lt_lt_prog_compiler_pic_RC
19444 # What is the maximum length of a command?
19445 max_cmd_len=$lt_cv_sys_max_cmd_len
19447 # Does compiler simultaneously support -c and -o options?
19448 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19450 # Must we lock files when doing compilation?
19451 need_locks=$lt_need_locks
19453 # Do we need the lib prefix for modules?
19454 need_lib_prefix=$need_lib_prefix
19456 # Do we need a version for libraries?
19457 need_version=$need_version
19459 # Whether dlopen is supported.
19460 dlopen_support=$enable_dlopen
19462 # Whether dlopen of programs is supported.
19463 dlopen_self=$enable_dlopen_self
19465 # Whether dlopen of statically linked programs is supported.
19466 dlopen_self_static=$enable_dlopen_self_static
19468 # Compiler flag to prevent dynamic linking.
19469 link_static_flag=$lt_lt_prog_compiler_static_RC
19471 # Compiler flag to turn off builtin functions.
19472 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19474 # Compiler flag to allow reflexive dlopens.
19475 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19477 # Compiler flag to generate shared objects directly from archives.
19478 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19480 # Compiler flag to generate thread-safe objects.
19481 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19483 # Library versioning type.
19484 version_type=$version_type
19486 # Format of library name prefix.
19487 libname_spec=$lt_libname_spec
19489 # List of archive names. First name is the real one, the rest are links.
19490 # The last name is the one that the linker finds with -lNAME.
19491 library_names_spec=$lt_library_names_spec
19493 # The coded name of the library, if different from the real name.
19494 soname_spec=$lt_soname_spec
19496 # Commands used to build and install an old-style archive.
19498 old_archive_cmds=$lt_old_archive_cmds_RC
19499 old_postinstall_cmds=$lt_old_postinstall_cmds
19500 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19502 # Create an old-style archive from a shared archive.
19503 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19505 # Create a temporary old-style archive to link instead of a shared archive.
19506 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19508 # Commands used to build and install a shared archive.
19509 archive_cmds=$lt_archive_cmds_RC
19510 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19511 postinstall_cmds=$lt_postinstall_cmds
19512 postuninstall_cmds=$lt_postuninstall_cmds
19514 # Commands used to build a loadable module (assumed same as above if empty)
19515 module_cmds=$lt_module_cmds_RC
19516 module_expsym_cmds=$lt_module_expsym_cmds_RC
19518 # Commands to strip libraries.
19519 old_striplib=$lt_old_striplib
19520 striplib=$lt_striplib
19522 # Dependencies to place before the objects being linked to create a
19524 predep_objects=$lt_predep_objects_RC
19526 # Dependencies to place after the objects being linked to create a
19528 postdep_objects=$lt_postdep_objects_RC
19530 # Dependencies to place before the objects being linked to create a
19532 predeps=$lt_predeps_RC
19534 # Dependencies to place after the objects being linked to create a
19536 postdeps=$lt_postdeps_RC
19538 # The library search path used internally by the compiler when linking
19539 # a shared library.
19540 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19542 # Method to check whether dependent libraries are shared objects.
19543 deplibs_check_method=$lt_deplibs_check_method
19545 # Command to use when deplibs_check_method == file_magic.
19546 file_magic_cmd=$lt_file_magic_cmd
19548 # Flag that allows shared libraries with undefined symbols to be built.
19549 allow_undefined_flag=$lt_allow_undefined_flag_RC
19551 # Flag that forces no undefined symbols.
19552 no_undefined_flag=$lt_no_undefined_flag_RC
19554 # Commands used to finish a libtool library installation in a directory.
19555 finish_cmds=$lt_finish_cmds
19557 # Same as above, but a single script fragment to be evaled but not shown.
19558 finish_eval=$lt_finish_eval
19560 # Take the output of nm and produce a listing of raw symbols and C names.
19561 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19563 # Transform the output of nm in a proper C declaration
19564 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19566 # Transform the output of nm in a C name address pair
19567 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19569 # This is the shared library runtime path variable.
19570 runpath_var=$runpath_var
19572 # This is the shared library path variable.
19573 shlibpath_var=$shlibpath_var
19575 # Is shlibpath searched before the hard-coded library search path?
19576 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19578 # How to hardcode a shared library path into an executable.
19579 hardcode_action=$hardcode_action_RC
19581 # Whether we should hardcode library paths into libraries.
19582 hardcode_into_libs=$hardcode_into_libs
19584 # Flag to hardcode \$libdir into a binary during linking.
19585 # This must work even if \$libdir does not exist.
19586 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19588 # If ld is used when linking, flag to hardcode \$libdir into
19589 # a binary during linking. This must work even if \$libdir does
19591 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19593 # Whether we need a single -rpath flag with a separated argument.
19594 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19596 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19597 # resulting binary.
19598 hardcode_direct=$hardcode_direct_RC
19600 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19601 # resulting binary.
19602 hardcode_minus_L=$hardcode_minus_L_RC
19604 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19605 # the resulting binary.
19606 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19608 # Set to yes if building a shared library automatically hardcodes DIR into the library
19609 # and all subsequent libraries and executables linked against it.
19610 hardcode_automatic=$hardcode_automatic_RC
19612 # Variables whose values should be saved in libtool wrapper scripts and
19613 # restored at relink time.
19614 variables_saved_for_relink="$variables_saved_for_relink"
19616 # Whether libtool must link a program against all its dependency libraries.
19617 link_all_deplibs=$link_all_deplibs_RC
19619 # Compile-time system search path for libraries
19620 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19622 # Run-time system search path for libraries
19623 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19625 # Fix the shell variable \$srcfile for the compiler.
19626 fix_srcfile_path="$fix_srcfile_path_RC"
19628 # Set to yes if exported symbols are required.
19629 always_export_symbols=$always_export_symbols_RC
19631 # The commands to list exported symbols.
19632 export_symbols_cmds=$lt_export_symbols_cmds_RC
19634 # The commands to extract the exported symbol list from a shared archive.
19635 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19637 # Symbols that should not be listed in the preloaded symbols.
19638 exclude_expsyms=$lt_exclude_expsyms_RC
19640 # Symbols that must always be exported.
19641 include_expsyms=$lt_include_expsyms_RC
19643 # ### END LIBTOOL TAG CONFIG: $tagname
19649 # If there is no Makefile yet, we rely on a make rule to execute
19650 # `config.status --recheck' to rerun these tests and create the
19651 # libtool script then.
19652 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19653 if test -f "$ltmain_in"; then
19654 test -f Makefile && make "$ltmain"
19660 ac_cpp='$CPP $CPPFLAGS'
19661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19670 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19671 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19672 { (exit 1); exit 1; }; }
19676 # Append the new tag name to the list of available tags.
19677 if test -n "$tagname" ; then
19678 available_tags="$available_tags $tagname"
19684 # Now substitute the updated list of available tags.
19685 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19686 mv "${ofile}T" "$ofile"
19690 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19691 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19692 { (exit 1); exit 1; }; }
19698 # This can be used to rebuild libtool when needed
19699 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19701 # Always use our own libtool.
19702 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19704 # Prevent multiple expansion
19717 # Check whether --with-system-libtool was given.
19718 if test "${with_system_libtool+set}" = set; then
19719 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
19720 set dummy libtool; ac_word=$2
19721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19723 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19724 echo $ECHO_N "(cached) $ECHO_C" >&6
19728 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19732 as_dummy="$PATH:/usr/local/bin"
19733 for as_dir in $as_dummy
19736 test -z "$as_dir" && as_dir=.
19737 for ac_exec_ext in '' $ac_executable_extensions; do
19738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19739 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19750 LIBTOOL=$ac_cv_path_LIBTOOL
19751 if test -n "$LIBTOOL"; then
19752 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19753 echo "${ECHO_T}$LIBTOOL" >&6; }
19755 { echo "$as_me:$LINENO: result: no" >&5
19756 echo "${ECHO_T}no" >&6; }
19762 LIBTOOL="`pwd`/libtool"
19782 # Check whether --enable-strict-dependencies was given.
19783 if test "${enable_strict_dependencies+set}" = set; then
19784 enableval=$enable_strict_dependencies;
19788 docdir='${datadir}/doc/freeradius'
19789 { echo "$as_me:$LINENO: checking docdir" >&5
19790 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
19792 # Check whether --with-docdir was given.
19793 if test "${with_docdir+set}" = set; then
19794 withval=$with_docdir; case "$withval" in
19800 [\\/$]* | ?:[\\/]* )
19804 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19805 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19806 { (exit 1); exit 1; }; }
19813 { echo "$as_me:$LINENO: result: $docdir" >&5
19814 echo "${ECHO_T}$docdir" >&6; }
19815 if test "x$docdir" = xno; then
19816 { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
19817 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19820 logdir='${localstatedir}/log/radius'
19821 { echo "$as_me:$LINENO: checking logdir" >&5
19822 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
19824 # Check whether --with-logdir was given.
19825 if test "${with_logdir+set}" = set; then
19826 withval=$with_logdir; case "$withval" in
19828 { { echo "$as_me:$LINENO: error: Need logdir" >&5
19829 echo "$as_me: error: Need logdir" >&2;}
19830 { (exit 1); exit 1; }; }
19834 [\\/$]* | ?:[\\/]* )
19838 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19839 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19840 { (exit 1); exit 1; }; }
19847 { echo "$as_me:$LINENO: result: $logdir" >&5
19848 echo "${ECHO_T}$logdir" >&6; }
19850 radacctdir='${logdir}/radacct'
19851 { echo "$as_me:$LINENO: checking radacctdir" >&5
19852 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
19854 # Check whether --with-radacctdir was given.
19855 if test "${with_radacctdir+set}" = set; then
19856 withval=$with_radacctdir; case "$withval" in
19858 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19859 echo "$as_me: error: Need radacctdir" >&2;}
19860 { (exit 1); exit 1; }; }
19864 [\\/$]* | ?:[\\/]* )
19865 radacctdir="$withval"
19868 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19869 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19870 { (exit 1); exit 1; }; }
19877 { echo "$as_me:$LINENO: result: $radacctdir" >&5
19878 echo "${ECHO_T}$radacctdir" >&6; }
19880 raddbdir='${sysconfdir}/raddb'
19881 { echo "$as_me:$LINENO: checking raddbdir" >&5
19882 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
19884 # Check whether --with-raddbdir was given.
19885 if test "${with_raddbdir+set}" = set; then
19886 withval=$with_raddbdir; case "$withval" in
19888 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19889 echo "$as_me: error: Need raddbdir" >&2;}
19890 { (exit 1); exit 1; }; }
19894 [\\/$]* | ?:[\\/]* )
19895 raddbdir="$withval"
19898 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19899 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19900 { (exit 1); exit 1; }; }
19907 { echo "$as_me:$LINENO: result: $raddbdir" >&5
19908 echo "${ECHO_T}$raddbdir" >&6; }
19912 # Check whether --with-ascend-binary was given.
19913 if test "${with_ascend_binary+set}" = set; then
19914 withval=$with_ascend_binary; case "$withval" in
19923 if test "X$ASCEND_BINARY" = "Xyes"; then
19924 cat >>confdefs.h <<\_ACEOF
19925 #define ASCEND_BINARY 1
19932 # Check whether --with-threads was given.
19933 if test "${with_threads+set}" = set; then
19934 withval=$with_threads; case "$withval" in
19946 # Check whether --with-snmp was given.
19947 if test "${with_snmp+set}" = set; then
19948 withval=$with_snmp; case "$withval" in
19958 rad_enable_largefiles=no
19960 # Check whether --with-large-files was given.
19961 if test "${with_large_files+set}" = set; then
19962 withval=$with_large_files; case "$withval" in
19964 rad_enable_largefiles=yes
19976 # Check whether --with-static_modules was given.
19977 if test "${with_static_modules+set}" = set; then
19978 withval=$with_static_modules;
19979 for i in $withval; do
19980 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19988 # Check whether --with-modules was given.
19989 if test "${with_modules+set}" = set; then
19990 withval=$with_modules;
19991 for i in $withval; do
19992 MODULES="$MODULES $i"
19998 # Check whether --enable-developer was given.
19999 if test "${enable_developer+set}" = set; then
20000 enableval=$enable_developer; case "$enableval" in
20011 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
20017 # Check whether --with-experimental-modules was given.
20018 if test "${with_experimental_modules+set}" = set; then
20019 withval=$with_experimental_modules; case "$withval" in
20029 OPENSSL_INCLUDE_DIR=
20031 # Check whether --with-openssl-includes was given.
20032 if test "${with_openssl_includes+set}" = set; then
20033 withval=$with_openssl_includes; case "$withval" in
20034 *) OPENSSL_INCLUDE_DIR="$withval"
20043 # Check whether --with-openssl-libraries was given.
20044 if test "${with_openssl_libraries+set}" = set; then
20045 withval=$with_openssl_libraries; case "$withval" in
20046 *) OPENSSL_LIB_DIR="$withval"
20055 # Check whether --with-rlm-FOO-lib-dir was given.
20056 if test "${with_rlm_FOO_lib_dir+set}" = set; then
20057 withval=$with_rlm_FOO_lib_dir; case "$withval" in
20066 # Check whether --with-rlm-FOO-include-dir was given.
20067 if test "${with_rlm_FOO_include_dir+set}" = set; then
20068 withval=$with_rlm_FOO_include_dir; case "$withval" in
20079 # Check whether --with-udpfromto was given.
20080 if test "${with_udpfromto+set}" = set; then
20081 withval=$with_udpfromto; case "$withval" in
20092 if test "x$WITH_UDPFROMTO" = "xyes"; then
20093 cat >>confdefs.h <<\_ACEOF
20094 #define WITH_UDPFROMTO 1
20100 # Check whether --with-edir was given.
20101 if test "${with_edir+set}" = set; then
20102 withval=$with_edir;
20107 CHECKRAD=checkrad.pl
20108 # Extract the first word of "perl", so it can be a program name with args.
20109 set dummy perl; ac_word=$2
20110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20112 if test "${ac_cv_path_PERL+set}" = set; then
20113 echo $ECHO_N "(cached) $ECHO_C" >&6
20117 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20121 for as_dir in $PATH
20124 test -z "$as_dir" && as_dir=.
20125 for ac_exec_ext in '' $ac_executable_extensions; do
20126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20127 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
20128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20135 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
20139 PERL=$ac_cv_path_PERL
20140 if test -n "$PERL"; then
20141 { echo "$as_me:$LINENO: result: $PERL" >&5
20142 echo "${ECHO_T}$PERL" >&6; }
20144 { echo "$as_me:$LINENO: result: no" >&5
20145 echo "${ECHO_T}no" >&6; }
20149 if test "x$ac_cv_path_PERL" = "x"; then
20150 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
20151 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20153 # Extract the first word of "snmpget", so it can be a program name with args.
20154 set dummy snmpget; ac_word=$2
20155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20157 if test "${ac_cv_path_SNMPGET+set}" = set; then
20158 echo $ECHO_N "(cached) $ECHO_C" >&6
20162 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
20165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20166 for as_dir in $PATH
20169 test -z "$as_dir" && as_dir=.
20170 for ac_exec_ext in '' $ac_executable_extensions; do
20171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20172 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
20173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20183 SNMPGET=$ac_cv_path_SNMPGET
20184 if test -n "$SNMPGET"; then
20185 { echo "$as_me:$LINENO: result: $SNMPGET" >&5
20186 echo "${ECHO_T}$SNMPGET" >&6; }
20188 { echo "$as_me:$LINENO: result: no" >&5
20189 echo "${ECHO_T}no" >&6; }
20193 if test "x$ac_cv_path_SNMPGET" = "x"; then
20194 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
20195 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20198 # Extract the first word of "snmpwalk", so it can be a program name with args.
20199 set dummy snmpwalk; ac_word=$2
20200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20202 if test "${ac_cv_path_SNMPWALK+set}" = set; then
20203 echo $ECHO_N "(cached) $ECHO_C" >&6
20207 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
20210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20211 for as_dir in $PATH
20214 test -z "$as_dir" && as_dir=.
20215 for ac_exec_ext in '' $ac_executable_extensions; do
20216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20217 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20228 SNMPWALK=$ac_cv_path_SNMPWALK
20229 if test -n "$SNMPWALK"; then
20230 { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
20231 echo "${ECHO_T}$SNMPWALK" >&6; }
20233 { echo "$as_me:$LINENO: result: no" >&5
20234 echo "${ECHO_T}no" >&6; }
20238 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20239 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20240 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20243 # Extract the first word of "rusers", so it can be a program name with args.
20244 set dummy rusers; ac_word=$2
20245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20247 if test "${ac_cv_path_RUSERS+set}" = set; then
20248 echo $ECHO_N "(cached) $ECHO_C" >&6
20252 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20256 for as_dir in $PATH
20259 test -z "$as_dir" && as_dir=.
20260 for ac_exec_ext in '' $ac_executable_extensions; do
20261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20262 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20270 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20274 RUSERS=$ac_cv_path_RUSERS
20275 if test -n "$RUSERS"; then
20276 { echo "$as_me:$LINENO: result: $RUSERS" >&5
20277 echo "${ECHO_T}$RUSERS" >&6; }
20279 { echo "$as_me:$LINENO: result: no" >&5
20280 echo "${ECHO_T}no" >&6; }
20285 missing_dir=`cd $ac_aux_dir && pwd`
20286 { echo "$as_me:$LINENO: checking for working aclocal" >&5
20287 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6; }
20288 # Run test in a subshell; some versions of sh will print an error if
20289 # an executable is not found, even if stderr is redirected.
20290 # Redirect stdin to placate older versions of autoconf. Sigh.
20291 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
20293 { echo "$as_me:$LINENO: result: found" >&5
20294 echo "${ECHO_T}found" >&6; }
20296 ACLOCAL="$missing_dir/missing aclocal"
20297 { echo "$as_me:$LINENO: result: missing" >&5
20298 echo "${ECHO_T}missing" >&6; }
20301 { echo "$as_me:$LINENO: checking for working autoconf" >&5
20302 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6; }
20303 # Run test in a subshell; some versions of sh will print an error if
20304 # an executable is not found, even if stderr is redirected.
20305 # Redirect stdin to placate older versions of autoconf. Sigh.
20306 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
20308 { echo "$as_me:$LINENO: result: found" >&5
20309 echo "${ECHO_T}found" >&6; }
20311 AUTOCONF="$missing_dir/missing autoconf"
20312 { echo "$as_me:$LINENO: result: missing" >&5
20313 echo "${ECHO_T}missing" >&6; }
20316 { echo "$as_me:$LINENO: checking for working autoheader" >&5
20317 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6; }
20318 # Run test in a subshell; some versions of sh will print an error if
20319 # an executable is not found, even if stderr is redirected.
20320 # Redirect stdin to placate older versions of autoconf. Sigh.
20321 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
20322 AUTOHEADER=autoheader
20323 { echo "$as_me:$LINENO: result: found" >&5
20324 echo "${ECHO_T}found" >&6; }
20326 AUTOHEADER="$missing_dir/missing autoheader"
20327 { echo "$as_me:$LINENO: result: missing" >&5
20328 echo "${ECHO_T}missing" >&6; }
20332 # Extract the first word of "locate", so it can be a program name with args.
20333 set dummy locate; ac_word=$2
20334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20336 if test "${ac_cv_path_LOCATE+set}" = set; then
20337 echo $ECHO_N "(cached) $ECHO_C" >&6
20341 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20345 for as_dir in $PATH
20348 test -z "$as_dir" && as_dir=.
20349 for ac_exec_ext in '' $ac_executable_extensions; do
20350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20351 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20362 LOCATE=$ac_cv_path_LOCATE
20363 if test -n "$LOCATE"; then
20364 { echo "$as_me:$LINENO: result: $LOCATE" >&5
20365 echo "${ECHO_T}$LOCATE" >&6; }
20367 { echo "$as_me:$LINENO: result: no" >&5
20368 echo "${ECHO_T}no" >&6; }
20372 # Extract the first word of "dirname", so it can be a program name with args.
20373 set dummy dirname; ac_word=$2
20374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20376 if test "${ac_cv_path_DIRNAME+set}" = set; then
20377 echo $ECHO_N "(cached) $ECHO_C" >&6
20381 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20385 for as_dir in $PATH
20388 test -z "$as_dir" && as_dir=.
20389 for ac_exec_ext in '' $ac_executable_extensions; do
20390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20391 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20402 DIRNAME=$ac_cv_path_DIRNAME
20403 if test -n "$DIRNAME"; then
20404 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20405 echo "${ECHO_T}$DIRNAME" >&6; }
20407 { echo "$as_me:$LINENO: result: no" >&5
20408 echo "${ECHO_T}no" >&6; }
20412 # Extract the first word of "grep", so it can be a program name with args.
20413 set dummy grep; ac_word=$2
20414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20416 if test "${ac_cv_path_GREP+set}" = set; then
20417 echo $ECHO_N "(cached) $ECHO_C" >&6
20421 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20425 for as_dir in $PATH
20428 test -z "$as_dir" && as_dir=.
20429 for ac_exec_ext in '' $ac_executable_extensions; do
20430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20431 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20442 GREP=$ac_cv_path_GREP
20443 if test -n "$GREP"; then
20444 { echo "$as_me:$LINENO: result: $GREP" >&5
20445 echo "${ECHO_T}$GREP" >&6; }
20447 { echo "$as_me:$LINENO: result: no" >&5
20448 echo "${ECHO_T}no" >&6; }
20455 if test "x$WITH_THREADS" = "xyes"; then
20456 if test $ac_cv_prog_suncc = "yes"; then
20457 CFLAGS="$CFLAGS -mt"
20461 for ac_header in pthread.h
20463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20468 echo $ECHO_N "(cached) $ECHO_C" >&6
20470 ac_res=`eval echo '${'$as_ac_Header'}'`
20471 { echo "$as_me:$LINENO: result: $ac_res" >&5
20472 echo "${ECHO_T}$ac_res" >&6; }
20474 # Is the header compilable?
20475 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20477 cat >conftest.$ac_ext <<_ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20483 $ac_includes_default
20484 #include <$ac_header>
20486 rm -f conftest.$ac_objext
20487 if { (ac_try="$ac_compile"
20488 case "(($ac_try" in
20489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490 *) ac_try_echo=$ac_try;;
20492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493 (eval "$ac_compile") 2>conftest.er1
20495 grep -v '^ *+' conftest.er1 >conftest.err
20497 cat conftest.err >&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); } &&
20500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20501 { (case "(($ac_try" in
20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503 *) ac_try_echo=$ac_try;;
20505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506 (eval "$ac_try") 2>&5
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }; } &&
20510 { ac_try='test -s conftest.$ac_objext'
20511 { (case "(($ac_try" in
20512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513 *) ac_try_echo=$ac_try;;
20515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516 (eval "$ac_try") 2>&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; }; then
20520 ac_header_compiler=yes
20522 echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20525 ac_header_compiler=no
20528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20529 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20530 echo "${ECHO_T}$ac_header_compiler" >&6; }
20532 # Is the header present?
20533 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20535 cat >conftest.$ac_ext <<_ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20541 #include <$ac_header>
20543 if { (ac_try="$ac_cpp conftest.$ac_ext"
20544 case "(($ac_try" in
20545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546 *) ac_try_echo=$ac_try;;
20548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20551 grep -v '^ *+' conftest.er1 >conftest.err
20553 cat conftest.err >&5
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); } >/dev/null; then
20556 if test -s conftest.err; then
20557 ac_cpp_err=$ac_c_preproc_warn_flag
20558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20565 if test -z "$ac_cpp_err"; then
20566 ac_header_preproc=yes
20568 echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20571 ac_header_preproc=no
20574 rm -f conftest.err conftest.$ac_ext
20575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20576 echo "${ECHO_T}$ac_header_preproc" >&6; }
20578 # So? What about this header?
20579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20585 ac_header_preproc=yes
20588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20606 echo $ECHO_N "(cached) $ECHO_C" >&6
20608 eval "$as_ac_Header=\$ac_header_preproc"
20610 ac_res=`eval echo '${'$as_ac_Header'}'`
20611 { echo "$as_me:$LINENO: result: $ac_res" >&5
20612 echo "${ECHO_T}$ac_res" >&6; }
20615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20616 cat >>confdefs.h <<_ACEOF
20617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20627 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20628 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20629 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20630 echo $ECHO_N "(cached) $ECHO_C" >&6
20632 ac_check_lib_save_LIBS=$LIBS
20633 LIBS="-lpthread $LIBS"
20634 cat >conftest.$ac_ext <<_ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20641 /* Override any GCC internal prototype to avoid an error.
20642 Use char because int might match the return type of a GCC
20643 builtin and then its argument prototype would still apply. */
20647 char pthread_create ();
20651 return pthread_create ();
20656 rm -f conftest.$ac_objext conftest$ac_exeext
20657 if { (ac_try="$ac_link"
20658 case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_link") 2>conftest.er1
20665 grep -v '^ *+' conftest.er1 >conftest.err
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } &&
20670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20671 { (case "(($ac_try" in
20672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20673 *) ac_try_echo=$ac_try;;
20675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20676 (eval "$ac_try") 2>&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; } &&
20680 { ac_try='test -s conftest$ac_exeext'
20681 { (case "(($ac_try" in
20682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683 *) ac_try_echo=$ac_try;;
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686 (eval "$ac_try") 2>&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; }; then
20690 ac_cv_lib_pthread_pthread_create=yes
20692 echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20695 ac_cv_lib_pthread_pthread_create=no
20698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20699 conftest$ac_exeext conftest.$ac_ext
20700 LIBS=$ac_check_lib_save_LIBS
20702 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20703 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20704 if test $ac_cv_lib_pthread_pthread_create = yes; then
20705 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20706 LIBS="$LIBS -lpthread"
20708 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20709 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20710 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20711 echo $ECHO_N "(cached) $ECHO_C" >&6
20713 ac_check_lib_save_LIBS=$LIBS
20715 cat >conftest.$ac_ext <<_ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h. */
20722 /* Override any GCC internal prototype to avoid an error.
20723 Use char because int might match the return type of a GCC
20724 builtin and then its argument prototype would still apply. */
20728 char pthread_create ();
20732 return pthread_create ();
20737 rm -f conftest.$ac_objext conftest$ac_exeext
20738 if { (ac_try="$ac_link"
20739 case "(($ac_try" in
20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744 (eval "$ac_link") 2>conftest.er1
20746 grep -v '^ *+' conftest.er1 >conftest.err
20748 cat conftest.err >&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); } &&
20751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20752 { (case "(($ac_try" in
20753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754 *) ac_try_echo=$ac_try;;
20756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757 (eval "$ac_try") 2>&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); }; } &&
20761 { ac_try='test -s conftest$ac_exeext'
20762 { (case "(($ac_try" in
20763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764 *) ac_try_echo=$ac_try;;
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767 (eval "$ac_try") 2>&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); }; }; then
20771 ac_cv_lib_c_r_pthread_create=yes
20773 echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20776 ac_cv_lib_c_r_pthread_create=no
20779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20780 conftest$ac_exeext conftest.$ac_ext
20781 LIBS=$ac_check_lib_save_LIBS
20783 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20784 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20785 if test $ac_cv_lib_c_r_pthread_create = yes; then
20786 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20797 if test "x$WITH_THREADS" != "xyes"; then
20799 ac_cv_header_pthread_h="no"
20803 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20804 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20805 if test "${ac_cv_search_sem_init+set}" = set; then
20806 echo $ECHO_N "(cached) $ECHO_C" >&6
20808 ac_func_search_save_LIBS=$LIBS
20809 cat >conftest.$ac_ext <<_ACEOF
20812 cat confdefs.h >>conftest.$ac_ext
20813 cat >>conftest.$ac_ext <<_ACEOF
20814 /* end confdefs.h. */
20816 /* Override any GCC internal prototype to avoid an error.
20817 Use char because int might match the return type of a GCC
20818 builtin and then its argument prototype would still apply. */
20826 return sem_init ();
20831 for ac_lib in '' pthread sem posix4 rt; do
20832 if test -z "$ac_lib"; then
20833 ac_res="none required"
20836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20838 rm -f conftest.$ac_objext conftest$ac_exeext
20839 if { (ac_try="$ac_link"
20840 case "(($ac_try" in
20841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20842 *) ac_try_echo=$ac_try;;
20844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20845 (eval "$ac_link") 2>conftest.er1
20847 grep -v '^ *+' conftest.er1 >conftest.err
20849 cat conftest.err >&5
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); } &&
20852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20853 { (case "(($ac_try" in
20854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20855 *) ac_try_echo=$ac_try;;
20857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20858 (eval "$ac_try") 2>&5
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); }; } &&
20862 { ac_try='test -s conftest$ac_exeext'
20863 { (case "(($ac_try" in
20864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865 *) ac_try_echo=$ac_try;;
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868 (eval "$ac_try") 2>&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); }; }; then
20872 ac_cv_search_sem_init=$ac_res
20874 echo "$as_me: failed program was:" >&5
20875 sed 's/^/| /' conftest.$ac_ext >&5
20880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20882 if test "${ac_cv_search_sem_init+set}" = set; then
20886 if test "${ac_cv_search_sem_init+set}" = set; then
20889 ac_cv_search_sem_init=no
20891 rm conftest.$ac_ext
20892 LIBS=$ac_func_search_save_LIBS
20894 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20895 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20896 ac_res=$ac_cv_search_sem_init
20897 if test "$ac_res" != no; then
20898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20901 { { 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
20902 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;}
20903 { (exit 1); exit 1; }; }
20910 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20911 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20912 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20913 echo $ECHO_N "(cached) $ECHO_C" >&6
20915 ac_check_lib_save_LIBS=$LIBS
20916 LIBS="-lsocket $LIBS"
20917 cat >conftest.$ac_ext <<_ACEOF
20920 cat confdefs.h >>conftest.$ac_ext
20921 cat >>conftest.$ac_ext <<_ACEOF
20922 /* end confdefs.h. */
20924 /* Override any GCC internal prototype to avoid an error.
20925 Use char because int might match the return type of a GCC
20926 builtin and then its argument prototype would still apply. */
20930 char getsockname ();
20934 return getsockname ();
20939 rm -f conftest.$ac_objext conftest$ac_exeext
20940 if { (ac_try="$ac_link"
20941 case "(($ac_try" in
20942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20943 *) ac_try_echo=$ac_try;;
20945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20946 (eval "$ac_link") 2>conftest.er1
20948 grep -v '^ *+' conftest.er1 >conftest.err
20950 cat conftest.err >&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); } &&
20953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20954 { (case "(($ac_try" in
20955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20956 *) ac_try_echo=$ac_try;;
20958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20959 (eval "$ac_try") 2>&5
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); }; } &&
20963 { ac_try='test -s conftest$ac_exeext'
20964 { (case "(($ac_try" in
20965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966 *) ac_try_echo=$ac_try;;
20968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969 (eval "$ac_try") 2>&5
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); }; }; then
20973 ac_cv_lib_socket_getsockname=yes
20975 echo "$as_me: failed program was:" >&5
20976 sed 's/^/| /' conftest.$ac_ext >&5
20978 ac_cv_lib_socket_getsockname=no
20981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20982 conftest$ac_exeext conftest.$ac_ext
20983 LIBS=$ac_check_lib_save_LIBS
20985 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20986 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20987 if test $ac_cv_lib_socket_getsockname = yes; then
20988 cat >>confdefs.h <<_ACEOF
20989 #define HAVE_LIBSOCKET 1
20992 LIBS="-lsocket $LIBS"
20998 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20999 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
21000 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
21001 echo $ECHO_N "(cached) $ECHO_C" >&6
21003 ac_check_lib_save_LIBS=$LIBS
21004 LIBS="-lresolv $LIBS"
21005 cat >conftest.$ac_ext <<_ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h. */
21012 /* Override any GCC internal prototype to avoid an error.
21013 Use char because int might match the return type of a GCC
21014 builtin and then its argument prototype would still apply. */
21022 return inet_aton ();
21027 rm -f conftest.$ac_objext conftest$ac_exeext
21028 if { (ac_try="$ac_link"
21029 case "(($ac_try" in
21030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031 *) ac_try_echo=$ac_try;;
21033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21034 (eval "$ac_link") 2>conftest.er1
21036 grep -v '^ *+' conftest.er1 >conftest.err
21038 cat conftest.err >&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); } &&
21041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21042 { (case "(($ac_try" in
21043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044 *) ac_try_echo=$ac_try;;
21046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047 (eval "$ac_try") 2>&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; } &&
21051 { ac_try='test -s conftest$ac_exeext'
21052 { (case "(($ac_try" in
21053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054 *) ac_try_echo=$ac_try;;
21056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21057 (eval "$ac_try") 2>&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; }; then
21061 ac_cv_lib_resolv_inet_aton=yes
21063 echo "$as_me: failed program was:" >&5
21064 sed 's/^/| /' conftest.$ac_ext >&5
21066 ac_cv_lib_resolv_inet_aton=no
21069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21070 conftest$ac_exeext conftest.$ac_ext
21071 LIBS=$ac_check_lib_save_LIBS
21073 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
21074 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
21075 if test $ac_cv_lib_resolv_inet_aton = yes; then
21076 cat >>confdefs.h <<_ACEOF
21077 #define HAVE_LIBRESOLV 1
21080 LIBS="-lresolv $LIBS"
21086 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
21087 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
21088 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
21089 echo $ECHO_N "(cached) $ECHO_C" >&6
21091 ac_check_lib_save_LIBS=$LIBS
21093 cat >conftest.$ac_ext <<_ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h. */
21100 /* Override any GCC internal prototype to avoid an error.
21101 Use char because int might match the return type of a GCC
21102 builtin and then its argument prototype would still apply. */
21110 return inet_ntoa ();
21115 rm -f conftest.$ac_objext conftest$ac_exeext
21116 if { (ac_try="$ac_link"
21117 case "(($ac_try" in
21118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119 *) ac_try_echo=$ac_try;;
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122 (eval "$ac_link") 2>conftest.er1
21124 grep -v '^ *+' conftest.er1 >conftest.err
21126 cat conftest.err >&5
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); } &&
21129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21130 { (case "(($ac_try" in
21131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132 *) ac_try_echo=$ac_try;;
21134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21135 (eval "$ac_try") 2>&5
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); }; } &&
21139 { ac_try='test -s conftest$ac_exeext'
21140 { (case "(($ac_try" in
21141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21142 *) ac_try_echo=$ac_try;;
21144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21145 (eval "$ac_try") 2>&5
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); }; }; then
21149 ac_cv_lib_nsl_inet_ntoa=yes
21151 echo "$as_me: failed program was:" >&5
21152 sed 's/^/| /' conftest.$ac_ext >&5
21154 ac_cv_lib_nsl_inet_ntoa=no
21157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21158 conftest$ac_exeext conftest.$ac_ext
21159 LIBS=$ac_check_lib_save_LIBS
21161 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
21162 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
21163 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
21164 cat >>confdefs.h <<_ACEOF
21165 #define HAVE_LIBNSL 1
21175 if test "x$OPENSSL_LIB_DIR" != "x"; then
21176 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
21178 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21179 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
21180 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
21181 echo $ECHO_N "(cached) $ECHO_C" >&6
21183 ac_check_lib_save_LIBS=$LIBS
21184 LIBS="-lcrypto $LIBS"
21185 cat >conftest.$ac_ext <<_ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h. */
21192 /* Override any GCC internal prototype to avoid an error.
21193 Use char because int might match the return type of a GCC
21194 builtin and then its argument prototype would still apply. */
21207 rm -f conftest.$ac_objext conftest$ac_exeext
21208 if { (ac_try="$ac_link"
21209 case "(($ac_try" in
21210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21211 *) ac_try_echo=$ac_try;;
21213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21214 (eval "$ac_link") 2>conftest.er1
21216 grep -v '^ *+' conftest.er1 >conftest.err
21218 cat conftest.err >&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } &&
21221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21222 { (case "(($ac_try" in
21223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21224 *) ac_try_echo=$ac_try;;
21226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21227 (eval "$ac_try") 2>&5
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); }; } &&
21231 { ac_try='test -s conftest$ac_exeext'
21232 { (case "(($ac_try" in
21233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21234 *) ac_try_echo=$ac_try;;
21236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21237 (eval "$ac_try") 2>&5
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); }; }; then
21241 ac_cv_lib_crypto_DH_new=yes
21243 echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21246 ac_cv_lib_crypto_DH_new=no
21249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21250 conftest$ac_exeext conftest.$ac_ext
21251 LIBS=$ac_check_lib_save_LIBS
21253 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
21254 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
21255 if test $ac_cv_lib_crypto_DH_new = yes; then
21258 cat >>confdefs.h <<\_ACEOF
21259 #define HAVE_LIBCRYPTO 1
21262 { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21263 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
21264 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
21265 echo $ECHO_N "(cached) $ECHO_C" >&6
21267 ac_check_lib_save_LIBS=$LIBS
21269 cat >conftest.$ac_ext <<_ACEOF
21272 cat confdefs.h >>conftest.$ac_ext
21273 cat >>conftest.$ac_ext <<_ACEOF
21274 /* end confdefs.h. */
21276 /* Override any GCC internal prototype to avoid an error.
21277 Use char because int might match the return type of a GCC
21278 builtin and then its argument prototype would still apply. */
21291 rm -f conftest.$ac_objext conftest$ac_exeext
21292 if { (ac_try="$ac_link"
21293 case "(($ac_try" in
21294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21295 *) ac_try_echo=$ac_try;;
21297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21298 (eval "$ac_link") 2>conftest.er1
21300 grep -v '^ *+' conftest.er1 >conftest.err
21302 cat conftest.err >&5
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); } &&
21305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21306 { (case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21311 (eval "$ac_try") 2>&5
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); }; } &&
21315 { ac_try='test -s conftest$ac_exeext'
21316 { (case "(($ac_try" in
21317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21318 *) ac_try_echo=$ac_try;;
21320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21321 (eval "$ac_try") 2>&5
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); }; }; then
21325 ac_cv_lib_ssl_SSL_new=yes
21327 echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21330 ac_cv_lib_ssl_SSL_new=no
21333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21334 conftest$ac_exeext conftest.$ac_ext
21335 LIBS=$ac_check_lib_save_LIBS
21337 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
21338 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
21339 if test $ac_cv_lib_ssl_SSL_new = yes; then
21342 cat >>confdefs.h <<\_ACEOF
21343 #define HAVE_LIBSSL 1
21346 if test "x$OPENSSL_LIB_DIR" != "x"; then
21347 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21349 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21361 CFLAGS="$CFLAGS -D_ALL_SOURCE"
21364 CFLAGS="$CFLAGS -DDARWIN"
21373 ac_header_dirent=no
21374 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21375 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21376 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21377 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21379 echo $ECHO_N "(cached) $ECHO_C" >&6
21381 cat >conftest.$ac_ext <<_ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h. */
21387 #include <sys/types.h>
21399 rm -f conftest.$ac_objext
21400 if { (ac_try="$ac_compile"
21401 case "(($ac_try" in
21402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403 *) ac_try_echo=$ac_try;;
21405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21406 (eval "$ac_compile") 2>conftest.er1
21408 grep -v '^ *+' conftest.er1 >conftest.err
21410 cat conftest.err >&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); } &&
21413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21414 { (case "(($ac_try" in
21415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21416 *) ac_try_echo=$ac_try;;
21418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21419 (eval "$ac_try") 2>&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; } &&
21423 { ac_try='test -s conftest.$ac_objext'
21424 { (case "(($ac_try" in
21425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426 *) ac_try_echo=$ac_try;;
21428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21429 (eval "$ac_try") 2>&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); }; }; then
21433 eval "$as_ac_Header=yes"
21435 echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21438 eval "$as_ac_Header=no"
21441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21443 ac_res=`eval echo '${'$as_ac_Header'}'`
21444 { echo "$as_me:$LINENO: result: $ac_res" >&5
21445 echo "${ECHO_T}$ac_res" >&6; }
21446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21447 cat >>confdefs.h <<_ACEOF
21448 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21451 ac_header_dirent=$ac_hdr; break
21455 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21456 if test $ac_header_dirent = dirent.h; then
21457 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21458 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21459 if test "${ac_cv_search_opendir+set}" = set; then
21460 echo $ECHO_N "(cached) $ECHO_C" >&6
21462 ac_func_search_save_LIBS=$LIBS
21463 cat >conftest.$ac_ext <<_ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h. */
21470 /* Override any GCC internal prototype to avoid an error.
21471 Use char because int might match the return type of a GCC
21472 builtin and then its argument prototype would still apply. */
21485 for ac_lib in '' dir; do
21486 if test -z "$ac_lib"; then
21487 ac_res="none required"
21490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21492 rm -f conftest.$ac_objext conftest$ac_exeext
21493 if { (ac_try="$ac_link"
21494 case "(($ac_try" in
21495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21496 *) ac_try_echo=$ac_try;;
21498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21499 (eval "$ac_link") 2>conftest.er1
21501 grep -v '^ *+' conftest.er1 >conftest.err
21503 cat conftest.err >&5
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); } &&
21506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21507 { (case "(($ac_try" in
21508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21509 *) ac_try_echo=$ac_try;;
21511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21512 (eval "$ac_try") 2>&5
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); }; } &&
21516 { ac_try='test -s conftest$ac_exeext'
21517 { (case "(($ac_try" in
21518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21519 *) ac_try_echo=$ac_try;;
21521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21522 (eval "$ac_try") 2>&5
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); }; }; then
21526 ac_cv_search_opendir=$ac_res
21528 echo "$as_me: failed program was:" >&5
21529 sed 's/^/| /' conftest.$ac_ext >&5
21534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21536 if test "${ac_cv_search_opendir+set}" = set; then
21540 if test "${ac_cv_search_opendir+set}" = set; then
21543 ac_cv_search_opendir=no
21545 rm conftest.$ac_ext
21546 LIBS=$ac_func_search_save_LIBS
21548 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21549 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21550 ac_res=$ac_cv_search_opendir
21551 if test "$ac_res" != no; then
21552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21557 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21558 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21559 if test "${ac_cv_search_opendir+set}" = set; then
21560 echo $ECHO_N "(cached) $ECHO_C" >&6
21562 ac_func_search_save_LIBS=$LIBS
21563 cat >conftest.$ac_ext <<_ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h. */
21570 /* Override any GCC internal prototype to avoid an error.
21571 Use char because int might match the return type of a GCC
21572 builtin and then its argument prototype would still apply. */
21585 for ac_lib in '' x; do
21586 if test -z "$ac_lib"; then
21587 ac_res="none required"
21590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21592 rm -f conftest.$ac_objext conftest$ac_exeext
21593 if { (ac_try="$ac_link"
21594 case "(($ac_try" in
21595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21596 *) ac_try_echo=$ac_try;;
21598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21599 (eval "$ac_link") 2>conftest.er1
21601 grep -v '^ *+' conftest.er1 >conftest.err
21603 cat conftest.err >&5
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); } &&
21606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21607 { (case "(($ac_try" in
21608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609 *) ac_try_echo=$ac_try;;
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612 (eval "$ac_try") 2>&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); }; } &&
21616 { ac_try='test -s conftest$ac_exeext'
21617 { (case "(($ac_try" in
21618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21619 *) ac_try_echo=$ac_try;;
21621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21622 (eval "$ac_try") 2>&5
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); }; }; then
21626 ac_cv_search_opendir=$ac_res
21628 echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21636 if test "${ac_cv_search_opendir+set}" = set; then
21640 if test "${ac_cv_search_opendir+set}" = set; then
21643 ac_cv_search_opendir=no
21645 rm conftest.$ac_ext
21646 LIBS=$ac_func_search_save_LIBS
21648 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21649 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21650 ac_res=$ac_cv_search_opendir
21651 if test "$ac_res" != no; then
21652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21658 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21659 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21660 if test "${ac_cv_header_stdc+set}" = set; then
21661 echo $ECHO_N "(cached) $ECHO_C" >&6
21663 cat >conftest.$ac_ext <<_ACEOF
21666 cat confdefs.h >>conftest.$ac_ext
21667 cat >>conftest.$ac_ext <<_ACEOF
21668 /* end confdefs.h. */
21669 #include <stdlib.h>
21670 #include <stdarg.h>
21671 #include <string.h>
21682 rm -f conftest.$ac_objext
21683 if { (ac_try="$ac_compile"
21684 case "(($ac_try" in
21685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21686 *) ac_try_echo=$ac_try;;
21688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21689 (eval "$ac_compile") 2>conftest.er1
21691 grep -v '^ *+' conftest.er1 >conftest.err
21693 cat conftest.err >&5
21694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); } &&
21696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21697 { (case "(($ac_try" in
21698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21699 *) ac_try_echo=$ac_try;;
21701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21702 (eval "$ac_try") 2>&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); }; } &&
21706 { ac_try='test -s conftest.$ac_objext'
21707 { (case "(($ac_try" in
21708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21709 *) ac_try_echo=$ac_try;;
21711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21712 (eval "$ac_try") 2>&5
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); }; }; then
21716 ac_cv_header_stdc=yes
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21721 ac_cv_header_stdc=no
21724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21726 if test $ac_cv_header_stdc = yes; then
21727 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21728 cat >conftest.$ac_ext <<_ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h. */
21734 #include <string.h>
21737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21738 $EGREP "memchr" >/dev/null 2>&1; then
21741 ac_cv_header_stdc=no
21747 if test $ac_cv_header_stdc = yes; then
21748 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21749 cat >conftest.$ac_ext <<_ACEOF
21752 cat confdefs.h >>conftest.$ac_ext
21753 cat >>conftest.$ac_ext <<_ACEOF
21754 /* end confdefs.h. */
21755 #include <stdlib.h>
21758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21759 $EGREP "free" >/dev/null 2>&1; then
21762 ac_cv_header_stdc=no
21768 if test $ac_cv_header_stdc = yes; then
21769 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21770 if test "$cross_compiling" = yes; then
21773 cat >conftest.$ac_ext <<_ACEOF
21776 cat confdefs.h >>conftest.$ac_ext
21777 cat >>conftest.$ac_ext <<_ACEOF
21778 /* end confdefs.h. */
21780 #include <stdlib.h>
21781 #if ((' ' & 0x0FF) == 0x020)
21782 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21783 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21785 # define ISLOWER(c) \
21786 (('a' <= (c) && (c) <= 'i') \
21787 || ('j' <= (c) && (c) <= 'r') \
21788 || ('s' <= (c) && (c) <= 'z'))
21789 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21792 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21797 for (i = 0; i < 256; i++)
21798 if (XOR (islower (i), ISLOWER (i))
21799 || toupper (i) != TOUPPER (i))
21804 rm -f conftest$ac_exeext
21805 if { (ac_try="$ac_link"
21806 case "(($ac_try" in
21807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21808 *) ac_try_echo=$ac_try;;
21810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21811 (eval "$ac_link") 2>&5
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21815 { (case "(($ac_try" in
21816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817 *) ac_try_echo=$ac_try;;
21819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21820 (eval "$ac_try") 2>&5
21822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823 (exit $ac_status); }; }; then
21826 echo "$as_me: program exited with status $ac_status" >&5
21827 echo "$as_me: failed program was:" >&5
21828 sed 's/^/| /' conftest.$ac_ext >&5
21830 ( exit $ac_status )
21831 ac_cv_header_stdc=no
21833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21839 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21840 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21841 if test $ac_cv_header_stdc = yes; then
21843 cat >>confdefs.h <<\_ACEOF
21844 #define STDC_HEADERS 1
21849 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21850 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21851 if test "${ac_cv_header_time+set}" = set; then
21852 echo $ECHO_N "(cached) $ECHO_C" >&6
21854 cat >conftest.$ac_ext <<_ACEOF
21857 cat confdefs.h >>conftest.$ac_ext
21858 cat >>conftest.$ac_ext <<_ACEOF
21859 /* end confdefs.h. */
21860 #include <sys/types.h>
21861 #include <sys/time.h>
21867 if ((struct tm *) 0)
21873 rm -f conftest.$ac_objext
21874 if { (ac_try="$ac_compile"
21875 case "(($ac_try" in
21876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21877 *) ac_try_echo=$ac_try;;
21879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21880 (eval "$ac_compile") 2>conftest.er1
21882 grep -v '^ *+' conftest.er1 >conftest.err
21884 cat conftest.err >&5
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); } &&
21887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21888 { (case "(($ac_try" in
21889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890 *) ac_try_echo=$ac_try;;
21892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893 (eval "$ac_try") 2>&5
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); }; } &&
21897 { ac_try='test -s conftest.$ac_objext'
21898 { (case "(($ac_try" in
21899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900 *) ac_try_echo=$ac_try;;
21902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903 (eval "$ac_try") 2>&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); }; }; then
21907 ac_cv_header_time=yes
21909 echo "$as_me: failed program was:" >&5
21910 sed 's/^/| /' conftest.$ac_ext >&5
21912 ac_cv_header_time=no
21915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21917 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21918 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21919 if test $ac_cv_header_time = yes; then
21921 cat >>confdefs.h <<\_ACEOF
21922 #define TIME_WITH_SYS_TIME 1
21927 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21928 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21929 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21930 echo $ECHO_N "(cached) $ECHO_C" >&6
21932 cat >conftest.$ac_ext <<_ACEOF
21935 cat confdefs.h >>conftest.$ac_ext
21936 cat >>conftest.$ac_ext <<_ACEOF
21937 /* end confdefs.h. */
21938 #include <sys/types.h>
21939 #include <sys/wait.h>
21940 #ifndef WEXITSTATUS
21941 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21944 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21952 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21957 rm -f conftest.$ac_objext
21958 if { (ac_try="$ac_compile"
21959 case "(($ac_try" in
21960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961 *) ac_try_echo=$ac_try;;
21963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21964 (eval "$ac_compile") 2>conftest.er1
21966 grep -v '^ *+' conftest.er1 >conftest.err
21968 cat conftest.err >&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); } &&
21971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21972 { (case "(($ac_try" in
21973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974 *) ac_try_echo=$ac_try;;
21976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21977 (eval "$ac_try") 2>&5
21979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); }; } &&
21981 { ac_try='test -s conftest.$ac_objext'
21982 { (case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_try") 2>&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); }; }; then
21991 ac_cv_header_sys_wait_h=yes
21993 echo "$as_me: failed program was:" >&5
21994 sed 's/^/| /' conftest.$ac_ext >&5
21996 ac_cv_header_sys_wait_h=no
21999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22001 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22002 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22003 if test $ac_cv_header_sys_wait_h = yes; then
22005 cat >>confdefs.h <<\_ACEOF
22006 #define HAVE_SYS_WAIT_H 1
22075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22080 echo $ECHO_N "(cached) $ECHO_C" >&6
22082 ac_res=`eval echo '${'$as_ac_Header'}'`
22083 { echo "$as_me:$LINENO: result: $ac_res" >&5
22084 echo "${ECHO_T}$ac_res" >&6; }
22086 # Is the header compilable?
22087 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22089 cat >conftest.$ac_ext <<_ACEOF
22092 cat confdefs.h >>conftest.$ac_ext
22093 cat >>conftest.$ac_ext <<_ACEOF
22094 /* end confdefs.h. */
22095 $ac_includes_default
22096 #include <$ac_header>
22098 rm -f conftest.$ac_objext
22099 if { (ac_try="$ac_compile"
22100 case "(($ac_try" in
22101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102 *) ac_try_echo=$ac_try;;
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105 (eval "$ac_compile") 2>conftest.er1
22107 grep -v '^ *+' conftest.er1 >conftest.err
22109 cat conftest.err >&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } &&
22112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22113 { (case "(($ac_try" in
22114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22115 *) ac_try_echo=$ac_try;;
22117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22118 (eval "$ac_try") 2>&5
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); }; } &&
22122 { ac_try='test -s conftest.$ac_objext'
22123 { (case "(($ac_try" in
22124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125 *) ac_try_echo=$ac_try;;
22127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128 (eval "$ac_try") 2>&5
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); }; }; then
22132 ac_header_compiler=yes
22134 echo "$as_me: failed program was:" >&5
22135 sed 's/^/| /' conftest.$ac_ext >&5
22137 ac_header_compiler=no
22140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22141 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22142 echo "${ECHO_T}$ac_header_compiler" >&6; }
22144 # Is the header present?
22145 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22147 cat >conftest.$ac_ext <<_ACEOF
22150 cat confdefs.h >>conftest.$ac_ext
22151 cat >>conftest.$ac_ext <<_ACEOF
22152 /* end confdefs.h. */
22153 #include <$ac_header>
22155 if { (ac_try="$ac_cpp conftest.$ac_ext"
22156 case "(($ac_try" in
22157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22158 *) ac_try_echo=$ac_try;;
22160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22163 grep -v '^ *+' conftest.er1 >conftest.err
22165 cat conftest.err >&5
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); } >/dev/null; then
22168 if test -s conftest.err; then
22169 ac_cpp_err=$ac_c_preproc_warn_flag
22170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22177 if test -z "$ac_cpp_err"; then
22178 ac_header_preproc=yes
22180 echo "$as_me: failed program was:" >&5
22181 sed 's/^/| /' conftest.$ac_ext >&5
22183 ac_header_preproc=no
22186 rm -f conftest.err conftest.$ac_ext
22187 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22188 echo "${ECHO_T}$ac_header_preproc" >&6; }
22190 # So? What about this header?
22191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22197 ac_header_preproc=yes
22200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22203 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22207 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22218 echo $ECHO_N "(cached) $ECHO_C" >&6
22220 eval "$as_ac_Header=\$ac_header_preproc"
22222 ac_res=`eval echo '${'$as_ac_Header'}'`
22223 { echo "$as_me:$LINENO: result: $ac_res" >&5
22224 echo "${ECHO_T}$ac_res" >&6; }
22227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22228 cat >>confdefs.h <<_ACEOF
22229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22238 if test "${ac_cv_header_regex_h+set}" = set; then
22239 { echo "$as_me:$LINENO: checking for regex.h" >&5
22240 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22241 if test "${ac_cv_header_regex_h+set}" = set; then
22242 echo $ECHO_N "(cached) $ECHO_C" >&6
22244 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22245 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22247 # Is the header compilable?
22248 { echo "$as_me:$LINENO: checking regex.h usability" >&5
22249 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
22250 cat >conftest.$ac_ext <<_ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h. */
22256 $ac_includes_default
22259 rm -f conftest.$ac_objext
22260 if { (ac_try="$ac_compile"
22261 case "(($ac_try" in
22262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22263 *) ac_try_echo=$ac_try;;
22265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22266 (eval "$ac_compile") 2>conftest.er1
22268 grep -v '^ *+' conftest.er1 >conftest.err
22270 cat conftest.err >&5
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); } &&
22273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22274 { (case "(($ac_try" in
22275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22276 *) ac_try_echo=$ac_try;;
22278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22279 (eval "$ac_try") 2>&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); }; } &&
22283 { ac_try='test -s conftest.$ac_objext'
22284 { (case "(($ac_try" in
22285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22286 *) ac_try_echo=$ac_try;;
22288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22289 (eval "$ac_try") 2>&5
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); }; }; then
22293 ac_header_compiler=yes
22295 echo "$as_me: failed program was:" >&5
22296 sed 's/^/| /' conftest.$ac_ext >&5
22298 ac_header_compiler=no
22301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22303 echo "${ECHO_T}$ac_header_compiler" >&6; }
22305 # Is the header present?
22306 { echo "$as_me:$LINENO: checking regex.h presence" >&5
22307 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
22308 cat >conftest.$ac_ext <<_ACEOF
22311 cat confdefs.h >>conftest.$ac_ext
22312 cat >>conftest.$ac_ext <<_ACEOF
22313 /* end confdefs.h. */
22316 if { (ac_try="$ac_cpp conftest.$ac_ext"
22317 case "(($ac_try" in
22318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22319 *) ac_try_echo=$ac_try;;
22321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22324 grep -v '^ *+' conftest.er1 >conftest.err
22326 cat conftest.err >&5
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); } >/dev/null; then
22329 if test -s conftest.err; then
22330 ac_cpp_err=$ac_c_preproc_warn_flag
22331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22338 if test -z "$ac_cpp_err"; then
22339 ac_header_preproc=yes
22341 echo "$as_me: failed program was:" >&5
22342 sed 's/^/| /' conftest.$ac_ext >&5
22344 ac_header_preproc=no
22347 rm -f conftest.err conftest.$ac_ext
22348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22349 echo "${ECHO_T}$ac_header_preproc" >&6; }
22351 # So? What about this header?
22352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22354 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22355 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22356 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22357 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22358 ac_header_preproc=yes
22361 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22362 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
22363 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22364 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22365 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22366 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22367 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22368 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
22369 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22370 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
22371 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22372 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
22376 { echo "$as_me:$LINENO: checking for regex.h" >&5
22377 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22378 if test "${ac_cv_header_regex_h+set}" = set; then
22379 echo $ECHO_N "(cached) $ECHO_C" >&6
22381 ac_cv_header_regex_h=$ac_header_preproc
22383 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22384 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22387 if test $ac_cv_header_regex_h = yes; then
22388 cat >>confdefs.h <<\_ACEOF
22389 #define HAVE_REGEX_H 1
22395 if test "x$ac_cv_header_regex_h" = "xyes"; then
22398 cat >conftest.$ac_ext <<_ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h. */
22405 #ifdef REG_EXTENDED
22410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22411 $EGREP "yes" >/dev/null 2>&1; then
22412 cat >>confdefs.h <<\_ACEOF
22413 #define HAVE_REG_EXTENDED 1
22423 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
22425 cat >>confdefs.h <<\_ACEOF
22431 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
22433 cat >>confdefs.h <<\_ACEOF
22439 OPENSSL_INCLUDE="-DNO_OPENSSL"
22440 if test "x$OPENSSL_LIBS" = "x"; then
22441 { echo "$as_me:$LINENO: WARNING: skipping test for openssl/ssl.h" >&5
22442 echo "$as_me: WARNING: skipping test for openssl/ssl.h" >&2;}
22444 old_CPPFLAGS=$CPPFLAGS
22445 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22446 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
22448 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
22459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22464 echo $ECHO_N "(cached) $ECHO_C" >&6
22466 ac_res=`eval echo '${'$as_ac_Header'}'`
22467 { echo "$as_me:$LINENO: result: $ac_res" >&5
22468 echo "${ECHO_T}$ac_res" >&6; }
22470 # Is the header compilable?
22471 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22473 cat >conftest.$ac_ext <<_ACEOF
22476 cat confdefs.h >>conftest.$ac_ext
22477 cat >>conftest.$ac_ext <<_ACEOF
22478 /* end confdefs.h. */
22479 $ac_includes_default
22480 #include <$ac_header>
22482 rm -f conftest.$ac_objext
22483 if { (ac_try="$ac_compile"
22484 case "(($ac_try" in
22485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22486 *) ac_try_echo=$ac_try;;
22488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22489 (eval "$ac_compile") 2>conftest.er1
22491 grep -v '^ *+' conftest.er1 >conftest.err
22493 cat conftest.err >&5
22494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495 (exit $ac_status); } &&
22496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22497 { (case "(($ac_try" in
22498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22499 *) ac_try_echo=$ac_try;;
22501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22502 (eval "$ac_try") 2>&5
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); }; } &&
22506 { ac_try='test -s conftest.$ac_objext'
22507 { (case "(($ac_try" in
22508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22509 *) ac_try_echo=$ac_try;;
22511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22512 (eval "$ac_try") 2>&5
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); }; }; then
22516 ac_header_compiler=yes
22518 echo "$as_me: failed program was:" >&5
22519 sed 's/^/| /' conftest.$ac_ext >&5
22521 ac_header_compiler=no
22524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22526 echo "${ECHO_T}$ac_header_compiler" >&6; }
22528 # Is the header present?
22529 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22531 cat >conftest.$ac_ext <<_ACEOF
22534 cat confdefs.h >>conftest.$ac_ext
22535 cat >>conftest.$ac_ext <<_ACEOF
22536 /* end confdefs.h. */
22537 #include <$ac_header>
22539 if { (ac_try="$ac_cpp conftest.$ac_ext"
22540 case "(($ac_try" in
22541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22542 *) ac_try_echo=$ac_try;;
22544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22547 grep -v '^ *+' conftest.er1 >conftest.err
22549 cat conftest.err >&5
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); } >/dev/null; then
22552 if test -s conftest.err; then
22553 ac_cpp_err=$ac_c_preproc_warn_flag
22554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22561 if test -z "$ac_cpp_err"; then
22562 ac_header_preproc=yes
22564 echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22567 ac_header_preproc=no
22570 rm -f conftest.err conftest.$ac_ext
22571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22572 echo "${ECHO_T}$ac_header_preproc" >&6; }
22574 # So? What about this header?
22575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22581 ac_header_preproc=yes
22584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22602 echo $ECHO_N "(cached) $ECHO_C" >&6
22604 eval "$as_ac_Header=\$ac_header_preproc"
22606 ac_res=`eval echo '${'$as_ac_Header'}'`
22607 { echo "$as_me:$LINENO: result: $ac_res" >&5
22608 echo "${ECHO_T}$ac_res" >&6; }
22611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22612 cat >>confdefs.h <<_ACEOF
22613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22623 if test "x$OPENSSL_LIBS" != "x"; then
22624 { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22625 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
22626 cat >conftest.$ac_ext <<_ACEOF
22629 cat confdefs.h >>conftest.$ac_ext
22630 cat >>conftest.$ac_ext <<_ACEOF
22631 /* end confdefs.h. */
22632 #include <openssl/crypto.h>
22633 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22639 $EGREP "yes" >/dev/null 2>&1; then
22644 if test "x$goodssl" != "xyes"; then
22645 { echo "$as_me:$LINENO: result: no" >&5
22646 echo "${ECHO_T}no" >&6; }
22649 { echo "$as_me:$LINENO: result: yes" >&5
22650 echo "${ECHO_T}yes" >&6; }
22651 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22652 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
22654 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
22658 CPPFLAGS=$old_CPPFLAGS
22662 export OPENSSL_LIBS
22665 { echo "$as_me:$LINENO: checking for off_t" >&5
22666 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22667 if test "${ac_cv_type_off_t+set}" = set; then
22668 echo $ECHO_N "(cached) $ECHO_C" >&6
22670 cat >conftest.$ac_ext <<_ACEOF
22673 cat confdefs.h >>conftest.$ac_ext
22674 cat >>conftest.$ac_ext <<_ACEOF
22675 /* end confdefs.h. */
22676 $ac_includes_default
22677 typedef off_t ac__type_new_;
22681 if ((ac__type_new_ *) 0)
22683 if (sizeof (ac__type_new_))
22689 rm -f conftest.$ac_objext
22690 if { (ac_try="$ac_compile"
22691 case "(($ac_try" in
22692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22693 *) ac_try_echo=$ac_try;;
22695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22696 (eval "$ac_compile") 2>conftest.er1
22698 grep -v '^ *+' conftest.er1 >conftest.err
22700 cat conftest.err >&5
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); } &&
22703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22704 { (case "(($ac_try" in
22705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22706 *) ac_try_echo=$ac_try;;
22708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22709 (eval "$ac_try") 2>&5
22711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712 (exit $ac_status); }; } &&
22713 { ac_try='test -s conftest.$ac_objext'
22714 { (case "(($ac_try" in
22715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22716 *) ac_try_echo=$ac_try;;
22718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22719 (eval "$ac_try") 2>&5
22721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722 (exit $ac_status); }; }; then
22723 ac_cv_type_off_t=yes
22725 echo "$as_me: failed program was:" >&5
22726 sed 's/^/| /' conftest.$ac_ext >&5
22728 ac_cv_type_off_t=no
22731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22733 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22734 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22735 if test $ac_cv_type_off_t = yes; then
22739 cat >>confdefs.h <<_ACEOF
22740 #define off_t long int
22745 { echo "$as_me:$LINENO: checking for pid_t" >&5
22746 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22747 if test "${ac_cv_type_pid_t+set}" = set; then
22748 echo $ECHO_N "(cached) $ECHO_C" >&6
22750 cat >conftest.$ac_ext <<_ACEOF
22753 cat confdefs.h >>conftest.$ac_ext
22754 cat >>conftest.$ac_ext <<_ACEOF
22755 /* end confdefs.h. */
22756 $ac_includes_default
22757 typedef pid_t ac__type_new_;
22761 if ((ac__type_new_ *) 0)
22763 if (sizeof (ac__type_new_))
22769 rm -f conftest.$ac_objext
22770 if { (ac_try="$ac_compile"
22771 case "(($ac_try" in
22772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22773 *) ac_try_echo=$ac_try;;
22775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22776 (eval "$ac_compile") 2>conftest.er1
22778 grep -v '^ *+' conftest.er1 >conftest.err
22780 cat conftest.err >&5
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); } &&
22783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22784 { (case "(($ac_try" in
22785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22786 *) ac_try_echo=$ac_try;;
22788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22789 (eval "$ac_try") 2>&5
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); }; } &&
22793 { ac_try='test -s conftest.$ac_objext'
22794 { (case "(($ac_try" in
22795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22796 *) ac_try_echo=$ac_try;;
22798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22799 (eval "$ac_try") 2>&5
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); }; }; then
22803 ac_cv_type_pid_t=yes
22805 echo "$as_me: failed program was:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22808 ac_cv_type_pid_t=no
22811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22813 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22814 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22815 if test $ac_cv_type_pid_t = yes; then
22819 cat >>confdefs.h <<_ACEOF
22825 { echo "$as_me:$LINENO: checking for size_t" >&5
22826 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22827 if test "${ac_cv_type_size_t+set}" = set; then
22828 echo $ECHO_N "(cached) $ECHO_C" >&6
22830 cat >conftest.$ac_ext <<_ACEOF
22833 cat confdefs.h >>conftest.$ac_ext
22834 cat >>conftest.$ac_ext <<_ACEOF
22835 /* end confdefs.h. */
22836 $ac_includes_default
22837 typedef size_t ac__type_new_;
22841 if ((ac__type_new_ *) 0)
22843 if (sizeof (ac__type_new_))
22849 rm -f conftest.$ac_objext
22850 if { (ac_try="$ac_compile"
22851 case "(($ac_try" in
22852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22853 *) ac_try_echo=$ac_try;;
22855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22856 (eval "$ac_compile") 2>conftest.er1
22858 grep -v '^ *+' conftest.er1 >conftest.err
22860 cat conftest.err >&5
22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); } &&
22863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22864 { (case "(($ac_try" in
22865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22866 *) ac_try_echo=$ac_try;;
22868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22869 (eval "$ac_try") 2>&5
22871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872 (exit $ac_status); }; } &&
22873 { ac_try='test -s conftest.$ac_objext'
22874 { (case "(($ac_try" in
22875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876 *) ac_try_echo=$ac_try;;
22878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22879 (eval "$ac_try") 2>&5
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); }; }; then
22883 ac_cv_type_size_t=yes
22885 echo "$as_me: failed program was:" >&5
22886 sed 's/^/| /' conftest.$ac_ext >&5
22888 ac_cv_type_size_t=no
22891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22893 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22894 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22895 if test $ac_cv_type_size_t = yes; then
22899 cat >>confdefs.h <<_ACEOF
22900 #define size_t unsigned int
22905 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22906 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22907 if test "${ac_cv_type_uid_t+set}" = set; then
22908 echo $ECHO_N "(cached) $ECHO_C" >&6
22910 cat >conftest.$ac_ext <<_ACEOF
22913 cat confdefs.h >>conftest.$ac_ext
22914 cat >>conftest.$ac_ext <<_ACEOF
22915 /* end confdefs.h. */
22916 #include <sys/types.h>
22919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22920 $EGREP "uid_t" >/dev/null 2>&1; then
22921 ac_cv_type_uid_t=yes
22923 ac_cv_type_uid_t=no
22928 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22929 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22930 if test $ac_cv_type_uid_t = no; then
22932 cat >>confdefs.h <<\_ACEOF
22937 cat >>confdefs.h <<\_ACEOF
22945 { echo "$as_me:$LINENO: checking for socklen_t" >&5
22946 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22947 if test "${ac_cv_type_socklen_t+set}" = set; then
22948 echo $ECHO_N "(cached) $ECHO_C" >&6
22950 ac_cv_type_socklen_t=no
22951 cat >conftest.$ac_ext <<_ACEOF
22954 cat confdefs.h >>conftest.$ac_ext
22955 cat >>conftest.$ac_ext <<_ACEOF
22956 /* end confdefs.h. */
22957 #ifdef HAVE_SYS_TYPES_H
22958 #include <sys/types.h>
22960 #ifdef HAVE_SYS_SOCKET_H
22961 #include <sys/socket.h>
22972 rm -f conftest.$ac_objext
22973 if { (ac_try="$ac_compile"
22974 case "(($ac_try" in
22975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22976 *) ac_try_echo=$ac_try;;
22978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22979 (eval "$ac_compile") 2>conftest.er1
22981 grep -v '^ *+' conftest.er1 >conftest.err
22983 cat conftest.err >&5
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); } &&
22986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22987 { (case "(($ac_try" in
22988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22989 *) ac_try_echo=$ac_try;;
22991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22992 (eval "$ac_try") 2>&5
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); }; } &&
22996 { ac_try='test -s conftest.$ac_objext'
22997 { (case "(($ac_try" in
22998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22999 *) ac_try_echo=$ac_try;;
23001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23002 (eval "$ac_try") 2>&5
23004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005 (exit $ac_status); }; }; then
23006 ac_cv_type_socklen_t=yes
23008 echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23018 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23019 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23021 if test "$ac_cv_type_socklen_t" != "yes"; then
23022 cat >>confdefs.h <<\_ACEOF
23023 #define socklen_t int
23030 { echo "$as_me:$LINENO: checking for uint8_t" >&5
23031 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23032 if test "${ac_cv_type_uint8_t+set}" = set; then
23033 echo $ECHO_N "(cached) $ECHO_C" >&6
23035 ac_cv_type_uint8_t=no
23036 cat >conftest.$ac_ext <<_ACEOF
23039 cat confdefs.h >>conftest.$ac_ext
23040 cat >>conftest.$ac_ext <<_ACEOF
23041 /* end confdefs.h. */
23042 #ifdef HAVE_INTTYPES_H
23043 #include <inttypes.h>
23045 #ifdef HAVE_STDINT_H
23046 #include <stdint.h>
23057 rm -f conftest.$ac_objext
23058 if { (ac_try="$ac_compile"
23059 case "(($ac_try" in
23060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23061 *) ac_try_echo=$ac_try;;
23063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23064 (eval "$ac_compile") 2>conftest.er1
23066 grep -v '^ *+' conftest.er1 >conftest.err
23068 cat conftest.err >&5
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); } &&
23071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23072 { (case "(($ac_try" in
23073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23074 *) ac_try_echo=$ac_try;;
23076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23077 (eval "$ac_try") 2>&5
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); }; } &&
23081 { ac_try='test -s conftest.$ac_objext'
23082 { (case "(($ac_try" in
23083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23084 *) ac_try_echo=$ac_try;;
23086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23087 (eval "$ac_try") 2>&5
23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); }; }; then
23091 ac_cv_type_uint8_t=yes
23093 echo "$as_me: failed program was:" >&5
23094 sed 's/^/| /' conftest.$ac_ext >&5
23099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23103 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23104 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
23106 if test "$ac_cv_type_uint8_t" != "yes"; then
23107 cat >>confdefs.h <<\_ACEOF
23108 #define uint8_t unsigned char
23115 { echo "$as_me:$LINENO: checking for uint16_t" >&5
23116 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
23117 if test "${ac_cv_type_uint16_t+set}" = set; then
23118 echo $ECHO_N "(cached) $ECHO_C" >&6
23120 ac_cv_type_uint16_t=no
23121 cat >conftest.$ac_ext <<_ACEOF
23124 cat confdefs.h >>conftest.$ac_ext
23125 cat >>conftest.$ac_ext <<_ACEOF
23126 /* end confdefs.h. */
23127 #ifdef HAVE_INTTYPES_H
23128 #include <inttypes.h>
23130 #ifdef HAVE_STDINT_H
23131 #include <stdint.h>
23142 rm -f conftest.$ac_objext
23143 if { (ac_try="$ac_compile"
23144 case "(($ac_try" in
23145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23146 *) ac_try_echo=$ac_try;;
23148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23149 (eval "$ac_compile") 2>conftest.er1
23151 grep -v '^ *+' conftest.er1 >conftest.err
23153 cat conftest.err >&5
23154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); } &&
23156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23157 { (case "(($ac_try" in
23158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23159 *) ac_try_echo=$ac_try;;
23161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23162 (eval "$ac_try") 2>&5
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); }; } &&
23166 { ac_try='test -s conftest.$ac_objext'
23167 { (case "(($ac_try" in
23168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23169 *) ac_try_echo=$ac_try;;
23171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23172 (eval "$ac_try") 2>&5
23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); }; }; then
23176 ac_cv_type_uint16_t=yes
23178 echo "$as_me: failed program was:" >&5
23179 sed 's/^/| /' conftest.$ac_ext >&5
23184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23188 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
23189 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
23191 if test "$ac_cv_type_uint16_t" != "yes"; then
23192 cat >>confdefs.h <<\_ACEOF
23193 #define uint16_t unsigned short
23200 { echo "$as_me:$LINENO: checking for uint32_t" >&5
23201 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
23202 if test "${ac_cv_type_uint32_t+set}" = set; then
23203 echo $ECHO_N "(cached) $ECHO_C" >&6
23205 ac_cv_type_uint32_t=no
23206 cat >conftest.$ac_ext <<_ACEOF
23209 cat confdefs.h >>conftest.$ac_ext
23210 cat >>conftest.$ac_ext <<_ACEOF
23211 /* end confdefs.h. */
23212 #ifdef HAVE_INTTYPES_H
23213 #include <inttypes.h>
23215 #ifdef HAVE_STDINT_H
23216 #include <stdint.h>
23227 rm -f conftest.$ac_objext
23228 if { (ac_try="$ac_compile"
23229 case "(($ac_try" in
23230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23231 *) ac_try_echo=$ac_try;;
23233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23234 (eval "$ac_compile") 2>conftest.er1
23236 grep -v '^ *+' conftest.er1 >conftest.err
23238 cat conftest.err >&5
23239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240 (exit $ac_status); } &&
23241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23242 { (case "(($ac_try" in
23243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23244 *) ac_try_echo=$ac_try;;
23246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23247 (eval "$ac_try") 2>&5
23249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250 (exit $ac_status); }; } &&
23251 { ac_try='test -s conftest.$ac_objext'
23252 { (case "(($ac_try" in
23253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23254 *) ac_try_echo=$ac_try;;
23256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23257 (eval "$ac_try") 2>&5
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); }; }; then
23261 ac_cv_type_uint32_t=yes
23263 echo "$as_me: failed program was:" >&5
23264 sed 's/^/| /' conftest.$ac_ext >&5
23269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23273 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
23274 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
23276 if test "$ac_cv_type_uint32_t" != "yes"; then
23277 cat >>confdefs.h <<\_ACEOF
23278 #define uint32_t unsigned int
23335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23336 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23339 echo $ECHO_N "(cached) $ECHO_C" >&6
23341 cat >conftest.$ac_ext <<_ACEOF
23344 cat confdefs.h >>conftest.$ac_ext
23345 cat >>conftest.$ac_ext <<_ACEOF
23346 /* end confdefs.h. */
23347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23349 #define $ac_func innocuous_$ac_func
23351 /* System header to define __stub macros and hopefully few prototypes,
23352 which can conflict with char $ac_func (); below.
23353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23354 <limits.h> exists even on freestanding compilers. */
23357 # include <limits.h>
23359 # include <assert.h>
23364 /* Override any GCC internal prototype to avoid an error.
23365 Use char because int might match the return type of a GCC
23366 builtin and then its argument prototype would still apply. */
23371 /* The GNU C library defines this for functions which it implements
23372 to always fail with ENOSYS. Some functions are actually named
23373 something starting with __ and the normal name is an alias. */
23374 #if defined __stub_$ac_func || defined __stub___$ac_func
23381 return $ac_func ();
23386 rm -f conftest.$ac_objext conftest$ac_exeext
23387 if { (ac_try="$ac_link"
23388 case "(($ac_try" in
23389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23390 *) ac_try_echo=$ac_try;;
23392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23393 (eval "$ac_link") 2>conftest.er1
23395 grep -v '^ *+' conftest.er1 >conftest.err
23397 cat conftest.err >&5
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); } &&
23400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23401 { (case "(($ac_try" in
23402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23403 *) ac_try_echo=$ac_try;;
23405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23406 (eval "$ac_try") 2>&5
23408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409 (exit $ac_status); }; } &&
23410 { ac_try='test -s conftest$ac_exeext'
23411 { (case "(($ac_try" in
23412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23413 *) ac_try_echo=$ac_try;;
23415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23416 (eval "$ac_try") 2>&5
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); }; }; then
23420 eval "$as_ac_var=yes"
23422 echo "$as_me: failed program was:" >&5
23423 sed 's/^/| /' conftest.$ac_ext >&5
23425 eval "$as_ac_var=no"
23428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23429 conftest$ac_exeext conftest.$ac_ext
23431 ac_res=`eval echo '${'$as_ac_var'}'`
23432 { echo "$as_me:$LINENO: result: $ac_res" >&5
23433 echo "${ECHO_T}$ac_res" >&6; }
23434 if test `eval echo '${'$as_ac_var'}'` = yes; then
23435 cat >>confdefs.h <<_ACEOF
23436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23453 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23454 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
23455 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
23456 echo $ECHO_N "(cached) $ECHO_C" >&6
23458 cat >conftest.$ac_ext <<_ACEOF
23461 cat confdefs.h >>conftest.$ac_ext
23462 cat >>conftest.$ac_ext <<_ACEOF
23463 /* end confdefs.h. */
23466 #include <string.h>
23467 #ifdef HAVE_UNISTD_H
23468 #include <unistd.h>
23470 #ifdef HAVE_CRYPT_H
23473 #ifdef HAVE_ERRNO_H
23476 #ifdef HAVE_RESOURCE_H
23477 #include <resource.h>
23479 #ifdef HAVE_GETOPT_H
23480 #include <getopt.h>
23482 #ifdef HAVE_MALLOC_H
23483 #include <malloc.h>
23488 #ifdef HAVE_UTMPX_H
23491 #ifdef HAVE_SYS_SELECT_H
23492 #include <sys/select.h>
23494 #ifdef HAVE_DLFCN_H
23497 #ifdef HAVE_REGEX_H
23500 #ifdef HAVE_SYSLOG_H
23501 #include <syslog.h>
23503 #ifdef HAVE_INTTYPES_H
23504 #include <inttypes.h>
23506 #ifdef HAVE_STDINT_H
23507 #include <stdint.h>
23509 #ifdef HAVE_ARPA_INET_H
23510 #include <arpa/inet.h>
23516 char *(*pfn) = (char *(*)) $ac_func
23521 rm -f conftest.$ac_objext
23522 if { (ac_try="$ac_compile"
23523 case "(($ac_try" in
23524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23525 *) ac_try_echo=$ac_try;;
23527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23528 (eval "$ac_compile") 2>conftest.er1
23530 grep -v '^ *+' conftest.er1 >conftest.err
23532 cat conftest.err >&5
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); } &&
23535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23536 { (case "(($ac_try" in
23537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23538 *) ac_try_echo=$ac_try;;
23540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23541 (eval "$ac_try") 2>&5
23543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544 (exit $ac_status); }; } &&
23545 { ac_try='test -s conftest.$ac_objext'
23546 { (case "(($ac_try" in
23547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23548 *) ac_try_echo=$ac_try;;
23550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23551 (eval "$ac_try") 2>&5
23553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554 (exit $ac_status); }; }; then
23555 eval "radius_cv_decl_needed_$ac_func=no"
23557 echo "$as_me: failed program was:" >&5
23558 sed 's/^/| /' conftest.$ac_ext >&5
23560 eval "radius_cv_decl_needed_$ac_func=yes"
23563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23566 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23567 { echo "$as_me:$LINENO: result: yes" >&5
23568 echo "${ECHO_T}yes" >&6; }
23569 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23570 cat >>confdefs.h <<_ACEOF
23571 #define $radius_tr_decl 1
23575 { echo "$as_me:$LINENO: result: no" >&5
23576 echo "${ECHO_T}no" >&6; }
23582 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23583 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
23584 if test "${ac_cv_type_signal+set}" = set; then
23585 echo $ECHO_N "(cached) $ECHO_C" >&6
23587 cat >conftest.$ac_ext <<_ACEOF
23590 cat confdefs.h >>conftest.$ac_ext
23591 cat >>conftest.$ac_ext <<_ACEOF
23592 /* end confdefs.h. */
23593 #include <sys/types.h>
23594 #include <signal.h>
23599 return *(signal (0, 0)) (0) == 1;
23604 rm -f conftest.$ac_objext
23605 if { (ac_try="$ac_compile"
23606 case "(($ac_try" in
23607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608 *) ac_try_echo=$ac_try;;
23610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611 (eval "$ac_compile") 2>conftest.er1
23613 grep -v '^ *+' conftest.er1 >conftest.err
23615 cat conftest.err >&5
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); } &&
23618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23619 { (case "(($ac_try" in
23620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23621 *) ac_try_echo=$ac_try;;
23623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23624 (eval "$ac_try") 2>&5
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); }; } &&
23628 { ac_try='test -s conftest.$ac_objext'
23629 { (case "(($ac_try" in
23630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23631 *) ac_try_echo=$ac_try;;
23633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23634 (eval "$ac_try") 2>&5
23636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637 (exit $ac_status); }; }; then
23638 ac_cv_type_signal=int
23640 echo "$as_me: failed program was:" >&5
23641 sed 's/^/| /' conftest.$ac_ext >&5
23643 ac_cv_type_signal=void
23646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23648 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23649 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
23651 cat >>confdefs.h <<_ACEOF
23652 #define RETSIGTYPE $ac_cv_type_signal
23657 if test "x$ac_cv_header_utmpx_h" = "xyes"
23660 { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23661 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
23664 cat >conftest.$ac_ext <<_ACEOF
23667 cat confdefs.h >>conftest.$ac_ext
23668 cat >>conftest.$ac_ext <<_ACEOF
23669 /* end confdefs.h. */
23673 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23679 int foo = offsetof(struct utmpx, ut_xtime)
23684 rm -f conftest.$ac_objext
23685 if { (ac_try="$ac_compile"
23686 case "(($ac_try" in
23687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23688 *) ac_try_echo=$ac_try;;
23690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23691 (eval "$ac_compile") 2>conftest.er1
23693 grep -v '^ *+' conftest.er1 >conftest.err
23695 cat conftest.err >&5
23696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697 (exit $ac_status); } &&
23698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23699 { (case "(($ac_try" in
23700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23701 *) ac_try_echo=$ac_try;;
23703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23704 (eval "$ac_try") 2>&5
23706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707 (exit $ac_status); }; } &&
23708 { ac_try='test -s conftest.$ac_objext'
23709 { (case "(($ac_try" in
23710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23711 *) ac_try_echo=$ac_try;;
23713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23714 (eval "$ac_try") 2>&5
23716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717 (exit $ac_status); }; }; then
23720 echo "$as_me: failed program was:" >&5
23721 sed 's/^/| /' conftest.$ac_ext >&5
23726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23728 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23729 if test "x$has_element" != "x"; then
23730 { echo "$as_me:$LINENO: result: yes" >&5
23731 echo "${ECHO_T}yes" >&6; }
23732 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23734 { echo "$as_me:$LINENO: result: no" >&5
23735 echo "${ECHO_T}no" >&6; }
23736 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23739 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23741 cat >>confdefs.h <<\_ACEOF
23742 #define ut_xtime ut_tv.tv_sec
23749 { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23750 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
23753 cat >conftest.$ac_ext <<_ACEOF
23756 cat confdefs.h >>conftest.$ac_ext
23757 cat >>conftest.$ac_ext <<_ACEOF
23758 /* end confdefs.h. */
23760 #include <netinet/in.h>
23762 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23768 int foo = offsetof(struct in_pktinfo, ipi_addr)
23773 rm -f conftest.$ac_objext
23774 if { (ac_try="$ac_compile"
23775 case "(($ac_try" in
23776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23777 *) ac_try_echo=$ac_try;;
23779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23780 (eval "$ac_compile") 2>conftest.er1
23782 grep -v '^ *+' conftest.er1 >conftest.err
23784 cat conftest.err >&5
23785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); } &&
23787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23788 { (case "(($ac_try" in
23789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23790 *) ac_try_echo=$ac_try;;
23792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23793 (eval "$ac_try") 2>&5
23795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796 (exit $ac_status); }; } &&
23797 { ac_try='test -s conftest.$ac_objext'
23798 { (case "(($ac_try" in
23799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23800 *) ac_try_echo=$ac_try;;
23802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23803 (eval "$ac_try") 2>&5
23805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806 (exit $ac_status); }; }; then
23809 echo "$as_me: failed program was:" >&5
23810 sed 's/^/| /' conftest.$ac_ext >&5
23815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23817 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23818 if test "x$has_element" != "x"; then
23819 { echo "$as_me:$LINENO: result: yes" >&5
23820 echo "${ECHO_T}yes" >&6; }
23821 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23823 { echo "$as_me:$LINENO: result: no" >&5
23824 echo "${ECHO_T}no" >&6; }
23825 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23828 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23830 cat >>confdefs.h <<\_ACEOF
23831 #define HAVE_IP_PKTINFO 1
23837 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23838 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23839 if test "${ac_cv_c_const+set}" = set; then
23840 echo $ECHO_N "(cached) $ECHO_C" >&6
23842 cat >conftest.$ac_ext <<_ACEOF
23845 cat confdefs.h >>conftest.$ac_ext
23846 cat >>conftest.$ac_ext <<_ACEOF
23847 /* end confdefs.h. */
23852 /* FIXME: Include the comments suggested by Paul. */
23853 #ifndef __cplusplus
23854 /* Ultrix mips cc rejects this. */
23855 typedef int charset[2];
23857 /* SunOS 4.1.1 cc rejects this. */
23858 char const *const *pcpcc;
23860 /* NEC SVR4.0.2 mips cc rejects this. */
23861 struct point {int x, y;};
23862 static struct point const zero = {0,0};
23863 /* AIX XL C 1.02.0.0 rejects this.
23864 It does not let you subtract one const X* pointer from another in
23865 an arm of an if-expression whose if-part is not a constant
23867 const char *g = "string";
23868 pcpcc = &g + (g ? g-g : 0);
23869 /* HPUX 7.0 cc rejects these. */
23871 ppc = (char**) pcpcc;
23872 pcpcc = (char const *const *) ppc;
23873 { /* SCO 3.2v4 cc rejects this. */
23875 char const *s = 0 ? (char *) 0 : (char const *) 0;
23880 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23881 int x[] = {25, 17};
23882 const int *foo = &x[0];
23885 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23886 typedef const int *iptr;
23890 { /* AIX XL C 1.02.0.0 rejects this saying
23891 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23892 struct s { int j; const int *ap[3]; };
23893 struct s *b; b->j = 5;
23895 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23896 const int foo = 10;
23897 if (!foo) return 0;
23899 return !cs[0] && !zero.x;
23906 rm -f conftest.$ac_objext
23907 if { (ac_try="$ac_compile"
23908 case "(($ac_try" in
23909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23910 *) ac_try_echo=$ac_try;;
23912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23913 (eval "$ac_compile") 2>conftest.er1
23915 grep -v '^ *+' conftest.er1 >conftest.err
23917 cat conftest.err >&5
23918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23919 (exit $ac_status); } &&
23920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23921 { (case "(($ac_try" in
23922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23923 *) ac_try_echo=$ac_try;;
23925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23926 (eval "$ac_try") 2>&5
23928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929 (exit $ac_status); }; } &&
23930 { ac_try='test -s conftest.$ac_objext'
23931 { (case "(($ac_try" in
23932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23933 *) ac_try_echo=$ac_try;;
23935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23936 (eval "$ac_try") 2>&5
23938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939 (exit $ac_status); }; }; then
23942 echo "$as_me: failed program was:" >&5
23943 sed 's/^/| /' conftest.$ac_ext >&5
23948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23950 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23951 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23952 if test $ac_cv_c_const = no; then
23954 cat >>confdefs.h <<\_ACEOF
23961 { echo "$as_me:$LINENO: checking type of OS" >&5
23962 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
23964 { echo "$as_me:$LINENO: result: $OS" >&5
23965 echo "${ECHO_T}$OS" >&6; }
23966 if test "$OS" = "OS/2"; then
23973 if test "x$GCC" = "xyes"; then
23974 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
23977 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
23978 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
23979 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
23980 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
23981 CFLAGS="$CFLAGS $devflags"
23983 { echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
23984 echo "${ECHO_T}yes. Using $devflags" >&6; }
23987 CFLAGS="$CFLAGS -DNDEBUG"
23989 { echo "$as_me:$LINENO: result: no." >&5
23990 echo "${ECHO_T}no." >&6; }
23994 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23995 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
23996 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23997 echo $ECHO_N "(cached) $ECHO_C" >&6
23999 ac_check_lib_save_LIBS=$LIBS
24000 LIBS="-lcrypt $LIBS"
24001 cat >conftest.$ac_ext <<_ACEOF
24004 cat confdefs.h >>conftest.$ac_ext
24005 cat >>conftest.$ac_ext <<_ACEOF
24006 /* end confdefs.h. */
24008 /* Override any GCC internal prototype to avoid an error.
24009 Use char because int might match the return type of a GCC
24010 builtin and then its argument prototype would still apply. */
24023 rm -f conftest.$ac_objext conftest$ac_exeext
24024 if { (ac_try="$ac_link"
24025 case "(($ac_try" in
24026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24027 *) ac_try_echo=$ac_try;;
24029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24030 (eval "$ac_link") 2>conftest.er1
24032 grep -v '^ *+' conftest.er1 >conftest.err
24034 cat conftest.err >&5
24035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036 (exit $ac_status); } &&
24037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24038 { (case "(($ac_try" in
24039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24040 *) ac_try_echo=$ac_try;;
24042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24043 (eval "$ac_try") 2>&5
24045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24046 (exit $ac_status); }; } &&
24047 { ac_try='test -s conftest$ac_exeext'
24048 { (case "(($ac_try" in
24049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24050 *) ac_try_echo=$ac_try;;
24052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24053 (eval "$ac_try") 2>&5
24055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056 (exit $ac_status); }; }; then
24057 ac_cv_lib_crypt_crypt=yes
24059 echo "$as_me: failed program was:" >&5
24060 sed 's/^/| /' conftest.$ac_ext >&5
24062 ac_cv_lib_crypt_crypt=no
24065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24066 conftest$ac_exeext conftest.$ac_ext
24067 LIBS=$ac_check_lib_save_LIBS
24069 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
24070 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
24071 if test $ac_cv_lib_crypt_crypt = yes; then
24076 if test "$CRYPTLIB" != ""; then
24077 cat >>confdefs.h <<\_ACEOF
24078 #define HAVE_CRYPT 1
24082 { echo "$as_me:$LINENO: checking for crypt" >&5
24083 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
24084 if test "${ac_cv_func_crypt+set}" = set; then
24085 echo $ECHO_N "(cached) $ECHO_C" >&6
24087 cat >conftest.$ac_ext <<_ACEOF
24090 cat confdefs.h >>conftest.$ac_ext
24091 cat >>conftest.$ac_ext <<_ACEOF
24092 /* end confdefs.h. */
24093 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
24094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24095 #define crypt innocuous_crypt
24097 /* System header to define __stub macros and hopefully few prototypes,
24098 which can conflict with char crypt (); below.
24099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24100 <limits.h> exists even on freestanding compilers. */
24103 # include <limits.h>
24105 # include <assert.h>
24110 /* Override any GCC internal prototype to avoid an error.
24111 Use char because int might match the return type of a GCC
24112 builtin and then its argument prototype would still apply. */
24117 /* The GNU C library defines this for functions which it implements
24118 to always fail with ENOSYS. Some functions are actually named
24119 something starting with __ and the normal name is an alias. */
24120 #if defined __stub_crypt || defined __stub___crypt
24132 rm -f conftest.$ac_objext conftest$ac_exeext
24133 if { (ac_try="$ac_link"
24134 case "(($ac_try" in
24135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24136 *) ac_try_echo=$ac_try;;
24138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24139 (eval "$ac_link") 2>conftest.er1
24141 grep -v '^ *+' conftest.er1 >conftest.err
24143 cat conftest.err >&5
24144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145 (exit $ac_status); } &&
24146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24147 { (case "(($ac_try" in
24148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24149 *) ac_try_echo=$ac_try;;
24151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24152 (eval "$ac_try") 2>&5
24154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 (exit $ac_status); }; } &&
24156 { ac_try='test -s conftest$ac_exeext'
24157 { (case "(($ac_try" in
24158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24159 *) ac_try_echo=$ac_try;;
24161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24162 (eval "$ac_try") 2>&5
24164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165 (exit $ac_status); }; }; then
24166 ac_cv_func_crypt=yes
24168 echo "$as_me: failed program was:" >&5
24169 sed 's/^/| /' conftest.$ac_ext >&5
24171 ac_cv_func_crypt=no
24174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24175 conftest$ac_exeext conftest.$ac_ext
24177 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
24178 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
24179 if test $ac_cv_func_crypt = yes; then
24180 cat >>confdefs.h <<\_ACEOF
24181 #define HAVE_CRYPT 1
24188 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
24189 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
24190 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
24191 echo $ECHO_N "(cached) $ECHO_C" >&6
24193 ac_check_lib_save_LIBS=$LIBS
24194 LIBS="-lcipher $LIBS"
24195 cat >conftest.$ac_ext <<_ACEOF
24198 cat confdefs.h >>conftest.$ac_ext
24199 cat >>conftest.$ac_ext <<_ACEOF
24200 /* end confdefs.h. */
24202 /* Override any GCC internal prototype to avoid an error.
24203 Use char because int might match the return type of a GCC
24204 builtin and then its argument prototype would still apply. */
24217 rm -f conftest.$ac_objext conftest$ac_exeext
24218 if { (ac_try="$ac_link"
24219 case "(($ac_try" in
24220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24221 *) ac_try_echo=$ac_try;;
24223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24224 (eval "$ac_link") 2>conftest.er1
24226 grep -v '^ *+' conftest.er1 >conftest.err
24228 cat conftest.err >&5
24229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24230 (exit $ac_status); } &&
24231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24232 { (case "(($ac_try" in
24233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24234 *) ac_try_echo=$ac_try;;
24236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24237 (eval "$ac_try") 2>&5
24239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240 (exit $ac_status); }; } &&
24241 { ac_try='test -s conftest$ac_exeext'
24242 { (case "(($ac_try" in
24243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24244 *) ac_try_echo=$ac_try;;
24246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24247 (eval "$ac_try") 2>&5
24249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); }; }; then
24251 ac_cv_lib_cipher_setkey=yes
24253 echo "$as_me: failed program was:" >&5
24254 sed 's/^/| /' conftest.$ac_ext >&5
24256 ac_cv_lib_cipher_setkey=no
24259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24260 conftest$ac_exeext conftest.$ac_ext
24261 LIBS=$ac_check_lib_save_LIBS
24263 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
24264 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
24265 if test $ac_cv_lib_cipher_setkey = yes; then
24266 CRYPTLIB="${CRYPTLIB} -lcipher"
24272 if test "x$WITH_SNMP" = "xyes"; then
24277 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
24278 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
24280 cat >conftest.$ac_ext <<_ACEOF
24283 cat confdefs.h >>conftest.$ac_ext
24284 cat >>conftest.$ac_ext <<_ACEOF
24285 /* end confdefs.h. */
24287 #ifdef HAVE_SYS_TYPES_H
24288 #include <sys/types.h>
24290 #ifdef HAVE_STDINT_H
24291 #include <stdint.h>
24293 #ifdef HAVE_STDIO_H
24296 #ifdef HAVE_NETDB_H
24299 #ifdef HAVE_UNISTD_H
24300 #include <unistd.h>
24302 #include <ucd-snmp/ucd-snmp-config.h>
24303 #include <ucd-snmp/asn1.h>
24304 #include <ucd-snmp/snmp.h>
24305 #include <ucd-snmp/snmp_impl.h>
24314 rm -f conftest.$ac_objext
24315 if { (ac_try="$ac_compile"
24316 case "(($ac_try" in
24317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24318 *) ac_try_echo=$ac_try;;
24320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24321 (eval "$ac_compile") 2>conftest.er1
24323 grep -v '^ *+' conftest.er1 >conftest.err
24325 cat conftest.err >&5
24326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327 (exit $ac_status); } &&
24328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24329 { (case "(($ac_try" in
24330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24331 *) ac_try_echo=$ac_try;;
24333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24334 (eval "$ac_try") 2>&5
24336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); }; } &&
24338 { ac_try='test -s conftest.$ac_objext'
24339 { (case "(($ac_try" in
24340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24341 *) ac_try_echo=$ac_try;;
24343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24344 (eval "$ac_try") 2>&5
24346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347 (exit $ac_status); }; }; then
24348 SNMP_INCLUDE="";ucdsnmp=yes
24350 echo "$as_me: failed program was:" >&5
24351 sed 's/^/| /' conftest.$ac_ext >&5
24356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24358 if test "x$ucdsnmp" = "x"; then
24359 old_CFLAGS="$CFLAGS"
24360 for try in /usr/include /usr/local/include $with_snmp_include_dir; do
24361 CFLAGS="$old_CFLAGS -I$try"
24362 cat >conftest.$ac_ext <<_ACEOF
24365 cat confdefs.h >>conftest.$ac_ext
24366 cat >>conftest.$ac_ext <<_ACEOF
24367 /* end confdefs.h. */
24369 #ifdef HAVE_SYS_TYPES_H
24370 #include <sys/types.h>
24372 #ifdef HAVE_STDINT_H
24373 #include <stdint.h>
24375 #ifdef HAVE_STDIO_H
24378 #ifdef HAVE_NETDB_H
24381 #ifdef HAVE_UNISTD_H
24382 #include <unistd.h>
24384 #include <ucd-snmp/ucd-snmp-config.h>
24385 #include <ucd-snmp/asn1.h>
24386 #include <ucd-snmp/snmp.h>
24387 #include <ucd-snmp/snmp_impl.h>
24396 rm -f conftest.$ac_objext
24397 if { (ac_try="$ac_compile"
24398 case "(($ac_try" in
24399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24400 *) ac_try_echo=$ac_try;;
24402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24403 (eval "$ac_compile") 2>conftest.er1
24405 grep -v '^ *+' conftest.er1 >conftest.err
24407 cat conftest.err >&5
24408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409 (exit $ac_status); } &&
24410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24411 { (case "(($ac_try" in
24412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24413 *) ac_try_echo=$ac_try;;
24415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24416 (eval "$ac_try") 2>&5
24418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419 (exit $ac_status); }; } &&
24420 { ac_try='test -s conftest.$ac_objext'
24421 { (case "(($ac_try" in
24422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24423 *) ac_try_echo=$ac_try;;
24425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24426 (eval "$ac_try") 2>&5
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); }; }; then
24430 SNMP_INCLUDE="-I$try";ucdsnmp=yes
24432 echo "$as_me: failed program was:" >&5
24433 sed 's/^/| /' conftest.$ac_ext >&5
24438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24439 if test "x$ucdsnmp" != "x"; then
24443 CFLAGS="$old_CFLAGS"
24446 if test "x$ucdsnmp" = "x"; then
24447 old_CFLAGS="$CFLAGS"
24448 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
24449 CFLAGS="$old_CFLAGS -I$try"
24450 cat >conftest.$ac_ext <<_ACEOF
24453 cat confdefs.h >>conftest.$ac_ext
24454 cat >>conftest.$ac_ext <<_ACEOF
24455 /* end confdefs.h. */
24457 #ifdef HAVE_SYS_TYPES_H
24458 #include <sys/types.h>
24460 #ifdef HAVE_STDINT_H
24461 #include <stdint.h>
24463 #ifdef HAVE_STDIO_H
24466 #ifdef HAVE_NETDB_H
24469 #ifdef HAVE_UNISTD_H
24470 #include <unistd.h>
24474 #include <snmp_impl.h>
24483 rm -f conftest.$ac_objext
24484 if { (ac_try="$ac_compile"
24485 case "(($ac_try" in
24486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24487 *) ac_try_echo=$ac_try;;
24489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24490 (eval "$ac_compile") 2>conftest.er1
24492 grep -v '^ *+' conftest.er1 >conftest.err
24494 cat conftest.err >&5
24495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24496 (exit $ac_status); } &&
24497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24498 { (case "(($ac_try" in
24499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24500 *) ac_try_echo=$ac_try;;
24502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24503 (eval "$ac_try") 2>&5
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); }; } &&
24507 { ac_try='test -s conftest.$ac_objext'
24508 { (case "(($ac_try" in
24509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24510 *) ac_try_echo=$ac_try;;
24512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24513 (eval "$ac_try") 2>&5
24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 (exit $ac_status); }; }; then
24517 SNMP_INCLUDE="";ucdsnmp=no
24519 echo "$as_me: failed program was:" >&5
24520 sed 's/^/| /' conftest.$ac_ext >&5
24525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24526 if test "x$ucdsnmp" != "x"; then
24530 CFLAGS="$old_CFLAGS"
24533 if test "x$ucdsnmp" = "x"; then
24534 old_CFLAGS="$CFLAGS"
24535 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
24536 CFLAGS="$old_CFLAGS -I$try"
24537 cat >conftest.$ac_ext <<_ACEOF
24540 cat confdefs.h >>conftest.$ac_ext
24541 cat >>conftest.$ac_ext <<_ACEOF
24542 /* end confdefs.h. */
24544 #ifdef HAVE_SYS_TYPES_H
24545 #include <sys/types.h>
24547 #ifdef HAVE_STDINT_H
24548 #include <stdint.h>
24550 #ifdef HAVE_STDIO_H
24553 #ifdef HAVE_NETDB_H
24556 #ifdef HAVE_UNISTD_H
24557 #include <unistd.h>
24561 #include <snmp_impl.h>
24570 rm -f conftest.$ac_objext
24571 if { (ac_try="$ac_compile"
24572 case "(($ac_try" in
24573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24574 *) ac_try_echo=$ac_try;;
24576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24577 (eval "$ac_compile") 2>conftest.er1
24579 grep -v '^ *+' conftest.er1 >conftest.err
24581 cat conftest.err >&5
24582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583 (exit $ac_status); } &&
24584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24585 { (case "(($ac_try" in
24586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24587 *) ac_try_echo=$ac_try;;
24589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24590 (eval "$ac_try") 2>&5
24592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24593 (exit $ac_status); }; } &&
24594 { ac_try='test -s conftest.$ac_objext'
24595 { (case "(($ac_try" in
24596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24597 *) ac_try_echo=$ac_try;;
24599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24600 (eval "$ac_try") 2>&5
24602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24603 (exit $ac_status); }; }; then
24604 SNMP_INCLUDE="-I$try";ucdsnmp=no
24606 echo "$as_me: failed program was:" >&5
24607 sed 's/^/| /' conftest.$ac_ext >&5
24612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24613 if test "x$ucdsnmp" != "x"; then
24617 CFLAGS="$old_CFLAGS"
24620 if test "x$ucdsnmp" = "x"; then
24621 { echo "$as_me:$LINENO: result: no" >&5
24622 echo "${ECHO_T}no" >&6; }
24624 if test "x$ucdsnmp" = "xyes"; then
24625 { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
24626 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
24627 cat >>confdefs.h <<\_ACEOF
24628 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
24632 { echo "$as_me:$LINENO: result: yes" >&5
24633 echo "${ECHO_T}yes" >&6; }
24634 cat >>confdefs.h <<\_ACEOF
24635 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
24639 { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
24640 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
24643 LIBS="$old_LIBS -lsnmp"
24644 cat >conftest.$ac_ext <<_ACEOF
24647 cat confdefs.h >>conftest.$ac_ext
24648 cat >>conftest.$ac_ext <<_ACEOF
24649 /* end confdefs.h. */
24650 extern char snmp_build_var_op();
24654 snmp_build_var_op()
24659 rm -f conftest.$ac_objext conftest$ac_exeext
24660 if { (ac_try="$ac_link"
24661 case "(($ac_try" in
24662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24663 *) ac_try_echo=$ac_try;;
24665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24666 (eval "$ac_link") 2>conftest.er1
24668 grep -v '^ *+' conftest.er1 >conftest.err
24670 cat conftest.err >&5
24671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672 (exit $ac_status); } &&
24673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24674 { (case "(($ac_try" in
24675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24676 *) ac_try_echo=$ac_try;;
24678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24679 (eval "$ac_try") 2>&5
24681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); }; } &&
24683 { ac_try='test -s conftest$ac_exeext'
24684 { (case "(($ac_try" in
24685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24686 *) ac_try_echo=$ac_try;;
24688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24689 (eval "$ac_try") 2>&5
24691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); }; }; then
24695 echo "$as_me: failed program was:" >&5
24696 sed 's/^/| /' conftest.$ac_ext >&5
24701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24702 conftest$ac_exeext conftest.$ac_ext
24704 if test "x$SNMP_LIBS" = "x"; then
24705 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
24706 LIBS="$old_LIBS -L$try -lsnmp"
24707 cat >conftest.$ac_ext <<_ACEOF
24710 cat confdefs.h >>conftest.$ac_ext
24711 cat >>conftest.$ac_ext <<_ACEOF
24712 /* end confdefs.h. */
24713 extern char snmp_build_var_op();
24717 snmp_build_var_op()
24722 rm -f conftest.$ac_objext conftest$ac_exeext
24723 if { (ac_try="$ac_link"
24724 case "(($ac_try" in
24725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24726 *) ac_try_echo=$ac_try;;
24728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24729 (eval "$ac_link") 2>conftest.er1
24731 grep -v '^ *+' conftest.er1 >conftest.err
24733 cat conftest.err >&5
24734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); } &&
24736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24737 { (case "(($ac_try" in
24738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24739 *) ac_try_echo=$ac_try;;
24741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24742 (eval "$ac_try") 2>&5
24744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745 (exit $ac_status); }; } &&
24746 { ac_try='test -s conftest$ac_exeext'
24747 { (case "(($ac_try" in
24748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24749 *) ac_try_echo=$ac_try;;
24751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24752 (eval "$ac_try") 2>&5
24754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755 (exit $ac_status); }; }; then
24756 SNMP_LIBS="-L$try -lsnmp"
24758 echo "$as_me: failed program was:" >&5
24759 sed 's/^/| /' conftest.$ac_ext >&5
24764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24765 conftest$ac_exeext conftest.$ac_ext
24766 if test "x$SNMP_LIBS" != "x"; then
24769 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24770 cat >conftest.$ac_ext <<_ACEOF
24773 cat confdefs.h >>conftest.$ac_ext
24774 cat >>conftest.$ac_ext <<_ACEOF
24775 /* end confdefs.h. */
24776 extern char snmp_build_var_op();
24780 snmp_build_var_op()
24785 rm -f conftest.$ac_objext conftest$ac_exeext
24786 if { (ac_try="$ac_link"
24787 case "(($ac_try" in
24788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24789 *) ac_try_echo=$ac_try;;
24791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24792 (eval "$ac_link") 2>conftest.er1
24794 grep -v '^ *+' conftest.er1 >conftest.err
24796 cat conftest.err >&5
24797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798 (exit $ac_status); } &&
24799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24800 { (case "(($ac_try" in
24801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24802 *) ac_try_echo=$ac_try;;
24804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24805 (eval "$ac_try") 2>&5
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); }; } &&
24809 { ac_try='test -s conftest$ac_exeext'
24810 { (case "(($ac_try" in
24811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24812 *) ac_try_echo=$ac_try;;
24814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24815 (eval "$ac_try") 2>&5
24817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818 (exit $ac_status); }; }; then
24819 SNMP_LIBS="-L$try -lsnmp -lcrypto"
24821 echo "$as_me: failed program was:" >&5
24822 sed 's/^/| /' conftest.$ac_ext >&5
24827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24828 conftest$ac_exeext conftest.$ac_ext
24829 if test "x$SNMP_LIBS" != "x"; then
24832 LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
24833 cat >conftest.$ac_ext <<_ACEOF
24836 cat confdefs.h >>conftest.$ac_ext
24837 cat >>conftest.$ac_ext <<_ACEOF
24838 /* end confdefs.h. */
24839 extern char snmp_build_var_op();
24843 snmp_build_var_op()
24848 rm -f conftest.$ac_objext conftest$ac_exeext
24849 if { (ac_try="$ac_link"
24850 case "(($ac_try" in
24851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24852 *) ac_try_echo=$ac_try;;
24854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24855 (eval "$ac_link") 2>conftest.er1
24857 grep -v '^ *+' conftest.er1 >conftest.err
24859 cat conftest.err >&5
24860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); } &&
24862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24863 { (case "(($ac_try" in
24864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24865 *) ac_try_echo=$ac_try;;
24867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24868 (eval "$ac_try") 2>&5
24870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871 (exit $ac_status); }; } &&
24872 { ac_try='test -s conftest$ac_exeext'
24873 { (case "(($ac_try" in
24874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24875 *) ac_try_echo=$ac_try;;
24877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24878 (eval "$ac_try") 2>&5
24880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881 (exit $ac_status); }; }; then
24882 SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
24884 echo "$as_me: failed program was:" >&5
24885 sed 's/^/| /' conftest.$ac_ext >&5
24890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24891 conftest$ac_exeext conftest.$ac_ext
24892 if test "x$SNMP_LIBS" != "x"; then
24899 CFLAGS="$old_CFLAGS"
24900 if test "x$SNMP_LIBS" = "x"; then
24901 { echo "$as_me:$LINENO: result: no" >&5
24902 echo "${ECHO_T}no" >&6; }
24905 { echo "$as_me:$LINENO: result: yes" >&5
24906 echo "${ECHO_T}yes" >&6; }
24907 cat >>confdefs.h <<\_ACEOF
24908 #define WITH_SNMP 1
24911 cat >>confdefs.h <<\_ACEOF
24912 #define HAVE_LIBSNMP 1
24920 gethostbyaddrrstyle=""
24921 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24922 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
24925 cat >>confdefs.h <<\_ACEOF
24926 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24929 gethostbyaddrrstyle=BSD
24930 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24931 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24934 if test "x$gethostbyaddrrstyle" = "x"; then
24935 cat >conftest.$ac_ext <<_ACEOF
24938 cat confdefs.h >>conftest.$ac_ext
24939 cat >>conftest.$ac_ext <<_ACEOF
24940 /* end confdefs.h. */
24948 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24953 rm -f conftest.$ac_objext conftest$ac_exeext
24954 if { (ac_try="$ac_link"
24955 case "(($ac_try" in
24956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24957 *) ac_try_echo=$ac_try;;
24959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24960 (eval "$ac_link") 2>conftest.er1
24962 grep -v '^ *+' conftest.er1 >conftest.err
24964 cat conftest.err >&5
24965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); } &&
24967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24968 { (case "(($ac_try" in
24969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24970 *) ac_try_echo=$ac_try;;
24972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24973 (eval "$ac_try") 2>&5
24975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976 (exit $ac_status); }; } &&
24977 { ac_try='test -s conftest$ac_exeext'
24978 { (case "(($ac_try" in
24979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24980 *) ac_try_echo=$ac_try;;
24982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24983 (eval "$ac_try") 2>&5
24985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986 (exit $ac_status); }; }; then
24988 cat >>confdefs.h <<\_ACEOF
24989 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24992 gethostbyaddrrstyle=GNU
24995 echo "$as_me: failed program was:" >&5
24996 sed 's/^/| /' conftest.$ac_ext >&5
25001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25002 conftest$ac_exeext conftest.$ac_ext
25004 if test "x$gethostbyaddrrstyle" = "x"; then
25005 cat >conftest.$ac_ext <<_ACEOF
25008 cat confdefs.h >>conftest.$ac_ext
25009 cat >>conftest.$ac_ext <<_ACEOF
25010 /* end confdefs.h. */
25018 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
25023 rm -f conftest.$ac_objext conftest$ac_exeext
25024 if { (ac_try="$ac_link"
25025 case "(($ac_try" in
25026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25027 *) ac_try_echo=$ac_try;;
25029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25030 (eval "$ac_link") 2>conftest.er1
25032 grep -v '^ *+' conftest.er1 >conftest.err
25034 cat conftest.err >&5
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); } &&
25037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25038 { (case "(($ac_try" in
25039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25040 *) ac_try_echo=$ac_try;;
25042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25043 (eval "$ac_try") 2>&5
25045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046 (exit $ac_status); }; } &&
25047 { ac_try='test -s conftest$ac_exeext'
25048 { (case "(($ac_try" in
25049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25050 *) ac_try_echo=$ac_try;;
25052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25053 (eval "$ac_try") 2>&5
25055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056 (exit $ac_status); }; }; then
25058 cat >>confdefs.h <<\_ACEOF
25059 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
25062 gethostbyaddrrstyle=SYSV
25065 echo "$as_me: failed program was:" >&5
25066 sed 's/^/| /' conftest.$ac_ext >&5
25071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25072 conftest$ac_exeext conftest.$ac_ext
25074 if test "x$gethostbyaddrrstyle" = "x"; then
25075 cat >conftest.$ac_ext <<_ACEOF
25078 cat confdefs.h >>conftest.$ac_ext
25079 cat >>conftest.$ac_ext <<_ACEOF
25080 /* end confdefs.h. */
25088 gethostbyaddr(NULL, 0, 0)
25093 rm -f conftest.$ac_objext conftest$ac_exeext
25094 if { (ac_try="$ac_link"
25095 case "(($ac_try" in
25096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25097 *) ac_try_echo=$ac_try;;
25099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25100 (eval "$ac_link") 2>conftest.er1
25102 grep -v '^ *+' conftest.er1 >conftest.err
25104 cat conftest.err >&5
25105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106 (exit $ac_status); } &&
25107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25108 { (case "(($ac_try" in
25109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25110 *) ac_try_echo=$ac_try;;
25112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25113 (eval "$ac_try") 2>&5
25115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116 (exit $ac_status); }; } &&
25117 { ac_try='test -s conftest$ac_exeext'
25118 { (case "(($ac_try" in
25119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25120 *) ac_try_echo=$ac_try;;
25122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25123 (eval "$ac_try") 2>&5
25125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126 (exit $ac_status); }; }; then
25128 cat >>confdefs.h <<\_ACEOF
25129 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25132 gethostbyaddrrstyle=BSD
25135 echo "$as_me: failed program was:" >&5
25136 sed 's/^/| /' conftest.$ac_ext >&5
25141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25142 conftest$ac_exeext conftest.$ac_ext
25145 if test "x$gethostbyaddrrstyle" = "x"; then
25146 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25147 echo "${ECHO_T}none! It must not exist, here." >&6; }
25149 { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
25150 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
25153 if test "x$gethostbyaddrrstyle" = "xBSD"; then
25154 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
25155 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
25158 gethostbynamerstyle=""
25159 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
25160 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
25161 cat >conftest.$ac_ext <<_ACEOF
25164 cat confdefs.h >>conftest.$ac_ext
25165 cat >>conftest.$ac_ext <<_ACEOF
25166 /* end confdefs.h. */
25174 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
25179 rm -f conftest.$ac_objext conftest$ac_exeext
25180 if { (ac_try="$ac_link"
25181 case "(($ac_try" in
25182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25183 *) ac_try_echo=$ac_try;;
25185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25186 (eval "$ac_link") 2>conftest.er1
25188 grep -v '^ *+' conftest.er1 >conftest.err
25190 cat conftest.err >&5
25191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192 (exit $ac_status); } &&
25193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25194 { (case "(($ac_try" in
25195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25196 *) ac_try_echo=$ac_try;;
25198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25199 (eval "$ac_try") 2>&5
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); }; } &&
25203 { ac_try='test -s conftest$ac_exeext'
25204 { (case "(($ac_try" in
25205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25206 *) ac_try_echo=$ac_try;;
25208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25209 (eval "$ac_try") 2>&5
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); }; }; then
25214 cat >>confdefs.h <<\_ACEOF
25215 #define GETHOSTBYNAMERSTYLE GNUSTYLE
25218 gethostbynamerstyle=GNU
25221 echo "$as_me: failed program was:" >&5
25222 sed 's/^/| /' conftest.$ac_ext >&5
25227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25228 conftest$ac_exeext conftest.$ac_ext
25229 if test "x$gethostbynamerstyle" = "x"; then
25230 cat >conftest.$ac_ext <<_ACEOF
25233 cat confdefs.h >>conftest.$ac_ext
25234 cat >>conftest.$ac_ext <<_ACEOF
25235 /* end confdefs.h. */
25243 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25248 rm -f conftest.$ac_objext conftest$ac_exeext
25249 if { (ac_try="$ac_link"
25250 case "(($ac_try" in
25251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25252 *) ac_try_echo=$ac_try;;
25254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25255 (eval "$ac_link") 2>conftest.er1
25257 grep -v '^ *+' conftest.er1 >conftest.err
25259 cat conftest.err >&5
25260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); } &&
25262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25263 { (case "(($ac_try" in
25264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25265 *) ac_try_echo=$ac_try;;
25267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25268 (eval "$ac_try") 2>&5
25270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271 (exit $ac_status); }; } &&
25272 { ac_try='test -s conftest$ac_exeext'
25273 { (case "(($ac_try" in
25274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25275 *) ac_try_echo=$ac_try;;
25277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25278 (eval "$ac_try") 2>&5
25280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281 (exit $ac_status); }; }; then
25283 cat >>confdefs.h <<\_ACEOF
25284 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25287 gethostbynamerstyle=SYSV
25290 echo "$as_me: failed program was:" >&5
25291 sed 's/^/| /' conftest.$ac_ext >&5
25296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25297 conftest$ac_exeext conftest.$ac_ext
25299 if test "x$gethostbynamerstyle" = "x"; then
25300 cat >conftest.$ac_ext <<_ACEOF
25303 cat confdefs.h >>conftest.$ac_ext
25304 cat >>conftest.$ac_ext <<_ACEOF
25305 /* end confdefs.h. */
25313 gethostbyname(NULL)
25318 rm -f conftest.$ac_objext conftest$ac_exeext
25319 if { (ac_try="$ac_link"
25320 case "(($ac_try" in
25321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25322 *) ac_try_echo=$ac_try;;
25324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25325 (eval "$ac_link") 2>conftest.er1
25327 grep -v '^ *+' conftest.er1 >conftest.err
25329 cat conftest.err >&5
25330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331 (exit $ac_status); } &&
25332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25333 { (case "(($ac_try" in
25334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25335 *) ac_try_echo=$ac_try;;
25337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25338 (eval "$ac_try") 2>&5
25340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); }; } &&
25342 { ac_try='test -s conftest$ac_exeext'
25343 { (case "(($ac_try" in
25344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25345 *) ac_try_echo=$ac_try;;
25347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25348 (eval "$ac_try") 2>&5
25350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351 (exit $ac_status); }; }; then
25353 cat >>confdefs.h <<\_ACEOF
25354 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25357 gethostbynamerstyle=BSD
25360 echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25367 conftest$ac_exeext conftest.$ac_ext
25370 if test "x$gethostbynamerstyle" = "x"; then
25371 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25372 echo "${ECHO_T}none! It must not exist, here." >&6; }
25374 { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25375 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25378 if test "x$gethostbynamerstyle" = "xBSD"; then
25379 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25380 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25384 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25385 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
25386 cat >conftest.$ac_ext <<_ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h. */
25398 ctime_r(NULL, NULL, 0)
25403 rm -f conftest.$ac_objext conftest$ac_exeext
25404 if { (ac_try="$ac_link"
25405 case "(($ac_try" in
25406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25407 *) ac_try_echo=$ac_try;;
25409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25410 (eval "$ac_link") 2>conftest.er1
25412 grep -v '^ *+' conftest.er1 >conftest.err
25414 cat conftest.err >&5
25415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416 (exit $ac_status); } &&
25417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25418 { (case "(($ac_try" in
25419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25420 *) ac_try_echo=$ac_try;;
25422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25423 (eval "$ac_try") 2>&5
25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); }; } &&
25427 { ac_try='test -s conftest$ac_exeext'
25428 { (case "(($ac_try" in
25429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25430 *) ac_try_echo=$ac_try;;
25432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25433 (eval "$ac_try") 2>&5
25435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436 (exit $ac_status); }; }; then
25438 cat >>confdefs.h <<\_ACEOF
25439 #define CTIMERSTYLE SOLARISSTYLE
25442 ctimerstyle="SOLARIS"
25445 echo "$as_me: failed program was:" >&5
25446 sed 's/^/| /' conftest.$ac_ext >&5
25451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25452 conftest$ac_exeext conftest.$ac_ext
25453 if test "x$ctimerstyle" = "x"; then
25454 cat >conftest.$ac_ext <<_ACEOF
25457 cat confdefs.h >>conftest.$ac_ext
25458 cat >>conftest.$ac_ext <<_ACEOF
25459 /* end confdefs.h. */
25466 ctime_r(NULL, NULL)
25471 rm -f conftest.$ac_objext conftest$ac_exeext
25472 if { (ac_try="$ac_link"
25473 case "(($ac_try" in
25474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25475 *) ac_try_echo=$ac_try;;
25477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25478 (eval "$ac_link") 2>conftest.er1
25480 grep -v '^ *+' conftest.er1 >conftest.err
25482 cat conftest.err >&5
25483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484 (exit $ac_status); } &&
25485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25486 { (case "(($ac_try" in
25487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25488 *) ac_try_echo=$ac_try;;
25490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25491 (eval "$ac_try") 2>&5
25493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494 (exit $ac_status); }; } &&
25495 { ac_try='test -s conftest$ac_exeext'
25496 { (case "(($ac_try" in
25497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25498 *) ac_try_echo=$ac_try;;
25500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25501 (eval "$ac_try") 2>&5
25503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); }; }; then
25506 cat >>confdefs.h <<\_ACEOF
25507 #define CTIMERSTYLE POSIXSTYLE
25510 ctimerstyle="POSIX"
25513 echo "$as_me: failed program was:" >&5
25514 sed 's/^/| /' conftest.$ac_ext >&5
25519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25520 conftest$ac_exeext conftest.$ac_ext
25523 if test "x$ctimerstyle" = "x"; then
25524 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25525 echo "${ECHO_T}none! It must not exist, here." >&6; }
25527 { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25528 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
25532 if test x"$rad_enable_largefiles" = xyes ; then
25533 { echo "$as_me:$LINENO: checking for largefile linkage" >&5
25534 echo $ECHO_N "checking for largefile linkage... $ECHO_C" >&6; }
25537 { echo "$as_me:$LINENO: result: no" >&5
25538 echo "${ECHO_T}no" >&6; }
25539 { { echo "$as_me:$LINENO: error: AIX before 4.2 does not support large files" >&5
25540 echo "$as_me: error: AIX before 4.2 does not support large files" >&2;}
25541 { (exit 1); exit 1; }; }
25544 { echo "$as_me:$LINENO: result: ok" >&5
25545 echo "${ECHO_T}ok" >&6; }
25546 LFS_CFLAGS="-D_LARGE_FILES"
25551 { echo "$as_me:$LINENO: result: ok" >&5
25552 echo "${ECHO_T}ok" >&6; }
25553 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
25558 { echo "$as_me:$LINENO: result: no" >&5
25559 echo "${ECHO_T}no" >&6; }
25560 { { echo "$as_me:$LINENO: error: Large files not supported on this platform" >&5
25561 echo "$as_me: error: Large files not supported on this platform" >&2;}
25562 { (exit 1); exit 1; }; }
25565 { echo "$as_me:$LINENO: result: maybe" >&5
25566 echo "${ECHO_T}maybe" >&6; }
25567 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
25571 cat >>confdefs.h <<\_ACEOF
25572 #define _GNU_SOURCE 1
25577 { echo "$as_me:$LINENO: result: ok" >&5
25578 echo "${ECHO_T}ok" >&6; }
25579 # Extract the first word of "getconf", so it can be a program name with args.
25580 set dummy getconf; ac_word=$2
25581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25583 if test "${ac_cv_path_GETCONF+set}" = set; then
25584 echo $ECHO_N "(cached) $ECHO_C" >&6
25588 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
25591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25592 for as_dir in $PATH
25595 test -z "$as_dir" && as_dir=.
25596 for ac_exec_ext in '' $ac_executable_extensions; do
25597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
25598 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
25599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25609 GETCONF=$ac_cv_path_GETCONF
25610 if test -n "$GETCONF"; then
25611 { echo "$as_me:$LINENO: result: $GETCONF" >&5
25612 echo "${ECHO_T}$GETCONF" >&6; }
25614 { echo "$as_me:$LINENO: result: no" >&5
25615 echo "${ECHO_T}no" >&6; }
25619 if test -z "$GETCONF" ; then
25620 { { echo "$as_me:$LINENO: error: getconf required to configure large file support" >&5
25621 echo "$as_me: error: getconf required to configure large file support" >&2;}
25622 { (exit 1); exit 1; }; }
25624 LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
25625 LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
25626 LFS_LIBS=`$GETCONF LFS_LIBS`
25629 { echo "$as_me:$LINENO: result: maybe" >&5
25630 echo "${ECHO_T}maybe" >&6; }
25631 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
25646 export top_builddir
25647 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25648 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
25655 if test "x$EXPERIMENTAL" = "xyes"; then
25656 bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
25657 mysubdirs=`echo $bar`
25659 for bar in `cat src/modules/stable`; do
25660 if test -f src/modules/$bar/configure; then
25661 mysubdirs="$mysubdirs src/modules/$bar"
25666 if test "x$EXPERIMENTAL" = "xyes"; then
25667 for foo in `ls -1 src/modules | grep rlm_`; do
25668 MODULES="$MODULES $foo"
25671 for foo in `cat src/modules/stable`; do
25672 MODULES="$MODULES $foo"
25676 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
25684 USE_SHARED_LIBS=$enable_shared
25686 USE_STATIC_LIBS=$enable_static
25694 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"
25696 cat >confcache <<\_ACEOF
25697 # This file is a shell script that caches the results of configure
25698 # tests run on this system so they can be shared between configure
25699 # scripts and configure runs, see configure's option --config-cache.
25700 # It is not useful on other systems. If it contains results you don't
25701 # want to keep, you may remove or edit it.
25703 # config.status only pays attention to the cache file if you give it
25704 # the --recheck option to rerun configure.
25706 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25707 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25708 # following values.
25712 # The following way of writing the cache mishandles newlines in values,
25713 # but we know of no workaround that is simple, portable, and efficient.
25714 # So, we kill variables containing newlines.
25715 # Ultrix sh set writes to stderr and can't be redirected directly,
25716 # and sets the high bit in the cache file unless we assign to the vars.
25718 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25719 eval ac_val=\$$ac_var
25723 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25724 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25727 _ | IFS | as_nl) ;; #(
25728 *) $as_unset $ac_var ;;
25734 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25735 *${as_nl}ac_space=\ *)
25736 # `set' does not quote correctly, so add quotes (double-quote
25737 # substitution turns \\\\ into \\, and sed turns \\ into \).
25740 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25743 # `set' quotes correctly as required by POSIX, so do not add quotes.
25744 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25753 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25755 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25757 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25758 if test -w "$cache_file"; then
25759 test "x$cache_file" != "x/dev/null" &&
25760 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25761 echo "$as_me: updating cache $cache_file" >&6;}
25762 cat confcache >$cache_file
25764 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25765 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25770 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25771 # Let make expand exec_prefix.
25772 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25774 DEFS=-DHAVE_CONFIG_H
25778 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25779 # 1. Remove the extension, and $U if already installed.
25780 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25781 ac_i=`echo "$ac_i" | sed "$ac_script"`
25782 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25783 # will be set to the directory where LIBOBJS objects are built.
25784 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25785 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25787 LIBOBJS=$ac_libobjs
25789 LTLIBOBJS=$ac_ltlibobjs
25793 : ${CONFIG_STATUS=./config.status}
25794 ac_clean_files_save=$ac_clean_files
25795 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25796 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25797 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25798 cat >$CONFIG_STATUS <<_ACEOF
25800 # Generated by $as_me.
25801 # Run this file to recreate the current configuration.
25802 # Compiler output produced by configure, useful for debugging
25803 # configure, is in config.log if it exists.
25806 ac_cs_recheck=false
25808 SHELL=\${CONFIG_SHELL-$SHELL}
25811 cat >>$CONFIG_STATUS <<\_ACEOF
25812 ## --------------------- ##
25813 ## M4sh Initialization. ##
25814 ## --------------------- ##
25816 # Be Bourne compatible
25817 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25820 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25821 # is contrary to our usage. Disable this feature.
25822 alias -g '${1+"$@"}'='"$@"'
25823 setopt NO_GLOB_SUBST
25825 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25827 BIN_SH=xpg4; export BIN_SH # for Tru64
25828 DUALCASE=1; export DUALCASE # for MKS sh
25832 # Avoid depending upon Character Ranges.
25833 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25834 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25835 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25836 as_cr_digits='0123456789'
25837 as_cr_alnum=$as_cr_Letters$as_cr_digits
25839 # The user is always right.
25840 if test "${PATH_SEPARATOR+set}" != set; then
25841 echo "#! /bin/sh" >conf$$.sh
25842 echo "exit 0" >>conf$$.sh
25844 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25852 # Support unset when possible.
25853 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25861 # We need space, tab and new line, in precisely that order. Quoting is
25862 # there to prevent editors from complaining about space-tab.
25863 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25864 # splitting by setting IFS to empty value.)
25869 # Find who we are. Look in the path if we contain no directory separator.
25871 *[\\/]* ) as_myself=$0 ;;
25872 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25873 for as_dir in $PATH
25876 test -z "$as_dir" && as_dir=.
25877 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25883 # We did not find ourselves, most probably we were run as `sh COMMAND'
25884 # in which case we are not to be found in the path.
25885 if test "x$as_myself" = x; then
25888 if test ! -f "$as_myself"; then
25889 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25890 { (exit 1); exit 1; }
25893 # Work around bugs in pre-3.0 UWIN ksh.
25894 for as_var in ENV MAIL MAILPATH
25895 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25903 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25904 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25905 LC_TELEPHONE LC_TIME
25907 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25908 eval $as_var=C; export $as_var
25910 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25914 # Required to use basename.
25915 if expr a : '\(a\)' >/dev/null 2>&1 &&
25916 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25922 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25923 as_basename=basename
25929 # Name of the executable.
25930 as_me=`$as_basename -- "$0" ||
25931 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25932 X"$0" : 'X\(//\)$' \| \
25933 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25935 sed '/^.*\/\([^/][^/]*\)\/*$/{
25954 as_lineno_1=$LINENO
25955 as_lineno_2=$LINENO
25956 test "x$as_lineno_1" != "x$as_lineno_2" &&
25957 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25959 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25960 # uniformly replaced by the line number. The first 'sed' inserts a
25961 # line-number line after each line using $LINENO; the second 'sed'
25962 # does the real work. The second script uses 'N' to pair each
25963 # line-number line with the line containing $LINENO, and appends
25964 # trailing '-' during substitution so that $LINENO is not a special
25965 # case at line end.
25966 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25967 # scripts with optimization help from Paolo Bonzini. Blame Lee
25968 # E. McMahon (1931-1989) for sed's syntax. :-)
25980 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25983 ' >$as_me.lineno &&
25984 chmod +x "$as_me.lineno" ||
25985 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25986 { (exit 1); exit 1; }; }
25988 # Don't try to exec as it changes $[0], causing all sort of problems
25989 # (the dirname of $[0] is not the place where we might find the
25990 # original and so on. Autoconf is especially sensitive to this).
25991 . "./$as_me.lineno"
25992 # Exit status is that of the last command.
25997 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26003 ECHO_C= ECHO_N= ECHO_T=
26004 case `echo -n x` in
26006 case `echo 'x\c'` in
26007 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26014 if expr a : '\(a\)' >/dev/null 2>&1 &&
26015 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26021 rm -f conf$$ conf$$.exe conf$$.file
26022 if test -d conf$$.dir; then
26023 rm -f conf$$.dir/conf$$.file
26029 if ln -s conf$$.file conf$$ 2>/dev/null; then
26031 # ... but there are two gotchas:
26032 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26033 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26034 # In both cases, we have to default to `cp -p'.
26035 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26037 elif ln conf$$.file conf$$ 2>/dev/null; then
26042 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26043 rmdir conf$$.dir 2>/dev/null
26045 if mkdir -p . 2>/dev/null; then
26048 test -d ./-p && rmdir ./-p
26052 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
26053 # systems may use methods other than mode bits to determine executability.
26054 cat >conf$$.file <<_ASEOF
26058 chmod +x conf$$.file
26059 if test -x conf$$.file >/dev/null 2>&1; then
26060 as_executable_p="test -x"
26066 # Sed expression to map a string onto a valid CPP name.
26067 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26069 # Sed expression to map a string onto a valid variable name.
26070 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26075 # Save the log message, to keep $[0] and so on meaningful, and to
26076 # report actual input values of CONFIG_FILES etc. instead of their
26077 # values after options handling.
26079 This file was extended by $as_me, which was
26080 generated by GNU Autoconf 2.60a. Invocation command line was
26082 CONFIG_FILES = $CONFIG_FILES
26083 CONFIG_HEADERS = $CONFIG_HEADERS
26084 CONFIG_LINKS = $CONFIG_LINKS
26085 CONFIG_COMMANDS = $CONFIG_COMMANDS
26088 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26093 cat >>$CONFIG_STATUS <<_ACEOF
26094 # Files that config.status was made for.
26095 config_files="$ac_config_files"
26096 config_headers="$ac_config_headers"
26100 cat >>$CONFIG_STATUS <<\_ACEOF
26102 \`$as_me' instantiates files from templates according to the
26103 current configuration.
26105 Usage: $0 [OPTIONS] [FILE]...
26107 -h, --help print this help, then exit
26108 -V, --version print version number and configuration settings, then exit
26109 -q, --quiet do not print progress messages
26110 -d, --debug don't remove temporary files
26111 --recheck update $as_me by reconfiguring in the same conditions
26112 --file=FILE[:TEMPLATE]
26113 instantiate the configuration file FILE
26114 --header=FILE[:TEMPLATE]
26115 instantiate the configuration header FILE
26117 Configuration files:
26120 Configuration headers:
26123 Report bugs to <bug-autoconf@gnu.org>."
26126 cat >>$CONFIG_STATUS <<_ACEOF
26129 configured by $0, generated by GNU Autoconf 2.60a,
26130 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26132 Copyright (C) 2006 Free Software Foundation, Inc.
26133 This config.status script is free software; the Free Software Foundation
26134 gives unlimited permission to copy, distribute and modify it."
26140 cat >>$CONFIG_STATUS <<\_ACEOF
26141 # If no file are specified by the user, then we need to provide default
26142 # value. By we need to know if files were specified by the user.
26148 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26149 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26160 # Handling of the options.
26161 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26163 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26164 echo "$ac_cs_version"; exit ;;
26165 --debug | --debu | --deb | --de | --d | -d )
26167 --file | --fil | --fi | --f )
26169 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26170 ac_need_defaults=false;;
26171 --header | --heade | --head | --hea )
26173 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26174 ac_need_defaults=false;;
26176 # Conflict between --help and --header
26177 { echo "$as_me: error: ambiguous option: $1
26178 Try \`$0 --help' for more information." >&2
26179 { (exit 1); exit 1; }; };;
26180 --help | --hel | -h )
26181 echo "$ac_cs_usage"; exit ;;
26182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26183 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26186 # This is an error.
26187 -*) { echo "$as_me: error: unrecognized option: $1
26188 Try \`$0 --help' for more information." >&2
26189 { (exit 1); exit 1; }; } ;;
26191 *) ac_config_targets="$ac_config_targets $1"
26192 ac_need_defaults=false ;;
26198 ac_configure_extra_args=
26200 if $ac_cs_silent; then
26202 ac_configure_extra_args="$ac_configure_extra_args --silent"
26206 cat >>$CONFIG_STATUS <<_ACEOF
26207 if \$ac_cs_recheck; then
26208 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26209 CONFIG_SHELL=$SHELL
26210 export CONFIG_SHELL
26211 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26215 cat >>$CONFIG_STATUS <<\_ACEOF
26219 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26220 ## Running $as_me. ##
26226 cat >>$CONFIG_STATUS <<_ACEOF
26229 cat >>$CONFIG_STATUS <<\_ACEOF
26231 # Handling of arguments.
26232 for ac_config_target in $ac_config_targets
26234 case $ac_config_target in
26235 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
26236 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
26237 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
26238 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
26239 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
26240 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
26241 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
26242 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
26243 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
26244 "./scripts/check-radiusd-config") CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
26245 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
26246 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
26247 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
26248 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
26249 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
26251 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26252 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26253 { (exit 1); exit 1; }; };;
26258 # If the user did not use the arguments to specify the items to instantiate,
26259 # then the envvar interface is used. Set only those that are not.
26260 # We use the long form for the default assignment because of an extremely
26261 # bizarre bug on SunOS 4.1.3.
26262 if $ac_need_defaults; then
26263 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26264 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26267 # Have a temporary directory for convenience. Make it in the build tree
26268 # simply because there is no reason against having it here, and in addition,
26269 # creating and moving files from /tmp can sometimes cause problems.
26270 # Hook for its removal unless debugging.
26271 # Note that there is a small window in which the directory will not be cleaned:
26272 # after its creation but before its name has been assigned to `$tmp'.
26276 trap 'exit_status=$?
26277 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26279 trap '{ (exit 1); exit 1; }' 1 2 13 15
26281 # Create a (secure) tmp directory for tmp files.
26284 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26285 test -n "$tmp" && test -d "$tmp"
26288 tmp=./conf$$-$RANDOM
26289 (umask 077 && mkdir "$tmp")
26292 echo "$me: cannot create a temporary directory in ." >&2
26293 { (exit 1); exit 1; }
26297 # Set up the sed scripts for CONFIG_FILES section.
26300 # No need to generate the scripts if there are no CONFIG_FILES.
26301 # This happens for instance when ./config.status config.h
26302 if test -n "$CONFIG_FILES"; then
26309 for ac_last_try in false false false false false :; do
26310 cat >conf$$subs.sed <<_ACEOF
26311 SHELL!$SHELL$ac_delim
26312 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26313 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26314 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26315 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26316 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26317 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26318 exec_prefix!$exec_prefix$ac_delim
26319 prefix!$prefix$ac_delim
26320 program_transform_name!$program_transform_name$ac_delim
26321 bindir!$bindir$ac_delim
26322 sbindir!$sbindir$ac_delim
26323 libexecdir!$libexecdir$ac_delim
26324 datarootdir!$datarootdir$ac_delim
26325 datadir!$datadir$ac_delim
26326 sysconfdir!$sysconfdir$ac_delim
26327 sharedstatedir!$sharedstatedir$ac_delim
26328 localstatedir!$localstatedir$ac_delim
26329 includedir!$includedir$ac_delim
26330 oldincludedir!$oldincludedir$ac_delim
26331 docdir!$docdir$ac_delim
26332 infodir!$infodir$ac_delim
26333 htmldir!$htmldir$ac_delim
26334 dvidir!$dvidir$ac_delim
26335 pdfdir!$pdfdir$ac_delim
26336 psdir!$psdir$ac_delim
26337 libdir!$libdir$ac_delim
26338 localedir!$localedir$ac_delim
26339 mandir!$mandir$ac_delim
26340 DEFS!$DEFS$ac_delim
26341 ECHO_C!$ECHO_C$ac_delim
26342 ECHO_N!$ECHO_N$ac_delim
26343 ECHO_T!$ECHO_T$ac_delim
26344 LIBS!$LIBS$ac_delim
26345 build_alias!$build_alias$ac_delim
26346 host_alias!$host_alias$ac_delim
26347 target_alias!$target_alias$ac_delim
26349 CFLAGS!$CFLAGS$ac_delim
26350 LDFLAGS!$LDFLAGS$ac_delim
26351 CPPFLAGS!$CPPFLAGS$ac_delim
26352 ac_ct_CC!$ac_ct_CC$ac_delim
26353 EXEEXT!$EXEEXT$ac_delim
26354 OBJEXT!$OBJEXT$ac_delim
26356 GREP!$GREP$ac_delim
26357 EGREP!$EGREP$ac_delim
26358 RANLIB!$RANLIB$ac_delim
26359 abs_top_builddir!$abs_top_builddir$ac_delim
26360 GMAKE!$GMAKE$ac_delim
26361 MAKE!$MAKE$ac_delim
26362 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
26363 LIBTOOL!$LIBTOOL$ac_delim
26364 build!$build$ac_delim
26365 build_cpu!$build_cpu$ac_delim
26366 build_vendor!$build_vendor$ac_delim
26367 build_os!$build_os$ac_delim
26368 host!$host$ac_delim
26369 host_cpu!$host_cpu$ac_delim
26370 host_vendor!$host_vendor$ac_delim
26371 host_os!$host_os$ac_delim
26372 LN_S!$LN_S$ac_delim
26373 ECHO!$ECHO$ac_delim
26375 STRIP!$STRIP$ac_delim
26377 CXXFLAGS!$CXXFLAGS$ac_delim
26378 ac_ct_CXX!$ac_ct_CXX$ac_delim
26379 CXXCPP!$CXXCPP$ac_delim
26381 FFLAGS!$FFLAGS$ac_delim
26382 ac_ct_F77!$ac_ct_F77$ac_delim
26383 logdir!$logdir$ac_delim
26384 radacctdir!$radacctdir$ac_delim
26385 raddbdir!$raddbdir$ac_delim
26386 PERL!$PERL$ac_delim
26387 SNMPGET!$SNMPGET$ac_delim
26388 SNMPWALK!$SNMPWALK$ac_delim
26389 RUSERS!$RUSERS$ac_delim
26390 ACLOCAL!$ACLOCAL$ac_delim
26391 AUTOCONF!$AUTOCONF$ac_delim
26392 AUTOHEADER!$AUTOHEADER$ac_delim
26393 LOCATE!$LOCATE$ac_delim
26394 DIRNAME!$DIRNAME$ac_delim
26395 REGEX!$REGEX$ac_delim
26396 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26397 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26398 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26399 LIBPREFIX!$LIBPREFIX$ac_delim
26400 CRYPTLIB!$CRYPTLIB$ac_delim
26401 SNMP_LIBS!$SNMP_LIBS$ac_delim
26402 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
26403 GETCONF!$GETCONF$ac_delim
26404 LFS_CFLAGS!$LFS_CFLAGS$ac_delim
26405 LFS_LDFLAGS!$LFS_LDFLAGS$ac_delim
26406 LFS_LIBS!$LFS_LIBS$ac_delim
26407 HOSTINFO!$HOSTINFO$ac_delim
26410 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26412 elif $ac_last_try; then
26413 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26414 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26415 { (exit 1); exit 1; }; }
26417 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26421 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26422 if test -n "$ac_eof"; then
26423 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26424 ac_eof=`expr $ac_eof + 1`
26427 cat >>$CONFIG_STATUS <<_ACEOF
26428 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26429 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26432 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26433 s/^/s,@/; s/!/@,|#_!!_#|/
26436 s/'"$ac_delim"'$/,g/; t
26438 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26439 ' >>$CONFIG_STATUS <conf$$subs.sed
26440 rm -f conf$$subs.sed
26441 cat >>$CONFIG_STATUS <<_ACEOF
26447 for ac_last_try in false false false false false :; do
26448 cat >conf$$subs.sed <<_ACEOF
26449 LIBLTDL!$LIBLTDL$ac_delim
26450 INCLTDL!$INCLTDL$ac_delim
26451 subdirs!$subdirs$ac_delim
26452 MODULES!$MODULES$ac_delim
26453 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26454 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26455 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26456 STATIC_MODULES!$STATIC_MODULES$ac_delim
26457 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26458 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26459 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26460 LIBOBJS!$LIBOBJS$ac_delim
26461 LTLIBOBJS!$LTLIBOBJS$ac_delim
26464 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
26466 elif $ac_last_try; then
26467 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26468 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26469 { (exit 1); exit 1; }; }
26471 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26475 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26476 if test -n "$ac_eof"; then
26477 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26478 ac_eof=`expr $ac_eof + 1`
26481 cat >>$CONFIG_STATUS <<_ACEOF
26482 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26483 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26486 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26487 s/^/s,@/; s/!/@,|#_!!_#|/
26490 s/'"$ac_delim"'$/,g/; t
26492 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26493 ' >>$CONFIG_STATUS <conf$$subs.sed
26494 rm -f conf$$subs.sed
26495 cat >>$CONFIG_STATUS <<_ACEOF
26502 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26503 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26504 # trailing colons and then remove the whole line if VPATH becomes empty
26505 # (actually we leave an empty line to preserve line numbers).
26506 if test "x$srcdir" = x.; then
26507 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26508 s/:*\$(srcdir):*/:/
26509 s/:*\${srcdir}:*/:/
26511 s/^\([^=]*=[ ]*\):*/\1/
26517 cat >>$CONFIG_STATUS <<\_ACEOF
26518 fi # test -n "$CONFIG_FILES"
26521 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
26524 :[FHLC]) ac_mode=$ac_tag; continue;;
26526 case $ac_mode$ac_tag in
26528 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26529 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26530 { (exit 1); exit 1; }; };;
26531 :[FH]-) ac_tag=-:-;;
26532 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26549 -) ac_f="$tmp/stdin";;
26550 *) # Look for the file first in the build tree, then in the source tree
26551 # (if the path is not absolute). The absolute path cannot be DOS-style,
26552 # because $ac_f cannot contain `:'.
26556 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26558 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26559 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26560 { (exit 1); exit 1; }; };;
26562 ac_file_inputs="$ac_file_inputs $ac_f"
26565 # Let's still pretend it is `configure' which instantiates (i.e., don't
26566 # use $as_me), people would be surprised to read:
26567 # /* config.h. Generated by config.status. */
26568 configure_input="Generated from "`IFS=:
26569 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26570 if test x"$ac_file" != x-; then
26571 configure_input="$ac_file. $configure_input"
26572 { echo "$as_me:$LINENO: creating $ac_file" >&5
26573 echo "$as_me: creating $ac_file" >&6;}
26577 *:-:* | *:-) cat >"$tmp/stdin";;
26582 ac_dir=`$as_dirname -- "$ac_file" ||
26583 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26584 X"$ac_file" : 'X\(//\)[^/]' \| \
26585 X"$ac_file" : 'X\(//\)$' \| \
26586 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26592 /^X\(\/\/\)[^/].*/{
26607 -*) as_dir=./$as_dir;;
26609 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26613 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26614 *) as_qdir=$as_dir;;
26616 as_dirs="'$as_qdir' $as_dirs"
26617 as_dir=`$as_dirname -- "$as_dir" ||
26618 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26619 X"$as_dir" : 'X\(//\)[^/]' \| \
26620 X"$as_dir" : 'X\(//\)$' \| \
26621 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26627 /^X\(\/\/\)[^/].*/{
26640 test -d "$as_dir" && break
26642 test -z "$as_dirs" || eval "mkdir $as_dirs"
26643 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26644 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26645 { (exit 1); exit 1; }; }; }
26649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26651 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26652 # A ".." for each directory in $ac_dir_suffix.
26653 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26654 case $ac_top_builddir_sub in
26655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26659 ac_abs_top_builddir=$ac_pwd
26660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26661 # for backward compatibility:
26662 ac_top_builddir=$ac_top_build_prefix
26665 .) # We are building in place.
26667 ac_top_srcdir=$ac_top_builddir_sub
26668 ac_abs_top_srcdir=$ac_pwd ;;
26669 [\\/]* | ?:[\\/]* ) # Absolute name.
26670 ac_srcdir=$srcdir$ac_dir_suffix;
26671 ac_top_srcdir=$srcdir
26672 ac_abs_top_srcdir=$srcdir ;;
26673 *) # Relative name.
26674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26675 ac_top_srcdir=$ac_top_build_prefix$srcdir
26676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26689 cat >>$CONFIG_STATUS <<\_ACEOF
26690 # If the template does not know about datarootdir, expand it.
26691 # FIXME: This hack should be removed a few years after 2.60.
26692 ac_datarootdir_hack=; ac_datarootdir_seen=
26694 case `sed -n '/datarootdir/ {
26703 ' $ac_file_inputs` in
26704 *datarootdir*) ac_datarootdir_seen=yes;;
26705 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26706 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26707 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26709 cat >>$CONFIG_STATUS <<_ACEOF
26710 ac_datarootdir_hack='
26711 s&@datadir@&$datadir&g
26712 s&@docdir@&$docdir&g
26713 s&@infodir@&$infodir&g
26714 s&@localedir@&$localedir&g
26715 s&@mandir@&$mandir&g
26716 s&\\\${datarootdir}&$datarootdir&g' ;;
26720 # Neutralize VPATH when `$srcdir' = `.'.
26721 # Shell code in configure.ac might set extrasub.
26722 # FIXME: do we really want to maintain this feature?
26723 cat >>$CONFIG_STATUS <<_ACEOF
26727 cat >>$CONFIG_STATUS <<\_ACEOF
26729 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26730 s&@configure_input@&$configure_input&;t t
26731 s&@top_builddir@&$ac_top_builddir_sub&;t t
26732 s&@srcdir@&$ac_srcdir&;t t
26733 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26734 s&@top_srcdir@&$ac_top_srcdir&;t t
26735 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26736 s&@builddir@&$ac_builddir&;t t
26737 s&@abs_builddir@&$ac_abs_builddir&;t t
26738 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26739 $ac_datarootdir_hack
26740 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26742 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26743 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26744 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26745 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26746 which seems to be undefined. Please make sure it is defined." >&5
26747 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26748 which seems to be undefined. Please make sure it is defined." >&2;}
26752 -) cat "$tmp/out"; rm -f "$tmp/out";;
26753 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26762 # Transform confdefs.h into a sed script `conftest.defines', that
26763 # substitutes the proper values into config.h.in to produce config.h.
26764 rm -f conftest.defines conftest.tail
26765 # First, append a space to every undef/define line, to ease matching.
26766 echo 's/$/ /' >conftest.defines
26767 # Then, protect against being on the right side of a sed subst, or in
26768 # an unquoted here document, in config.status. If some macros were
26769 # called several times there might be several #defines for the same
26770 # symbol, which is useless. But do not sort them, since the last
26771 # AC_DEFINE must be honored.
26772 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26773 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26774 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26775 # PARAMS is the parameter list in the macro definition--in most cases, it's
26776 # just an empty string.
26777 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26778 ac_dB='\\)[ (].*,\\1define\\2'
26786 s/^[ ]*#[ ]*define[ ][ ]*//
26791 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26792 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26793 ' >>conftest.defines
26795 # Remove the space that was appended to ease matching.
26796 # Then replace #undef with comments. This is necessary, for
26797 # example, in the case of _POSIX_SOURCE, which is predefined and required
26798 # on some systems where configure will not decide to define it.
26799 # (The regexp can be short, since the line contains either #define or #undef.)
26801 s,^[ #]*u.*,/* & */,' >>conftest.defines
26803 # Break up conftest.defines:
26804 ac_max_sed_lines=50
26806 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26807 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26808 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26810 ac_in='$ac_file_inputs'
26811 ac_out='"$tmp/out1"'
26812 ac_nxt='"$tmp/out2"'
26816 # Write a here document:
26817 cat >>$CONFIG_STATUS <<_ACEOF
26818 # First, check the format of the line:
26819 cat >"\$tmp/defines.sed" <<\\CEOF
26820 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26821 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26825 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26827 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26828 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26829 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26830 grep . conftest.tail >/dev/null || break
26831 rm -f conftest.defines
26832 mv conftest.tail conftest.defines
26834 rm -f conftest.defines conftest.tail
26836 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26837 cat >>$CONFIG_STATUS <<\_ACEOF
26838 if test x"$ac_file" != x-; then
26839 echo "/* $configure_input */" >"$tmp/config.h"
26840 cat "$ac_result" >>"$tmp/config.h"
26841 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26842 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26843 echo "$as_me: $ac_file is unchanged" >&6;}
26846 mv "$tmp/config.h" $ac_file
26849 echo "/* $configure_input */"
26861 { (exit 0); exit 0; }
26863 chmod +x $CONFIG_STATUS
26864 ac_clean_files=$ac_clean_files_save
26867 # configure is writing to config.log, and then calls config.status.
26868 # config.status does its own redirection, appending to config.log.
26869 # Unfortunately, on DOS this fails, as config.log is still kept open
26870 # by configure, so config.status won't be able to write to it; its
26871 # output is simply discarded. So we exec the FD to /dev/null,
26872 # effectively closing config.log, so it can be properly (re)opened and
26873 # appended to by config.status. When coming back to configure, we
26874 # need to make the FD available again.
26875 if test "$no_create" != yes; then
26877 ac_config_status_args=
26878 test "$silent" = yes &&
26879 ac_config_status_args="$ac_config_status_args --quiet"
26881 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26883 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26884 # would make configure fail if this is the last instruction.
26885 $ac_cs_success || { (exit 1); exit 1; }
26889 # CONFIG_SUBDIRS section.
26891 if test "$no_recursion" != yes; then
26893 # Remove --cache-file and --srcdir arguments so they do not pile up.
26894 ac_sub_configure_args=
26896 eval "set x $ac_configure_args"
26900 if test -n "$ac_prev"; then
26905 -cache-file | --cache-file | --cache-fil | --cache-fi \
26906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26907 ac_prev=cache_file ;;
26908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26912 --config-cache | -C)
26914 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26916 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26918 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26920 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26924 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26926 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
26930 # Always prepend --prefix to ensure using the same prefix
26931 # in subdir configurations.
26932 ac_arg="--prefix=$prefix"
26934 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26936 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
26939 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26941 # Do not complain, so a configure script can configure whichever
26942 # parts of a large source tree are present.
26943 test -d "$srcdir/$ac_dir" || continue
26945 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26946 echo "$as_me:$LINENO: $ac_msg" >&5
26950 -*) as_dir=./$as_dir;;
26952 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26956 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26957 *) as_qdir=$as_dir;;
26959 as_dirs="'$as_qdir' $as_dirs"
26960 as_dir=`$as_dirname -- "$as_dir" ||
26961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26962 X"$as_dir" : 'X\(//\)[^/]' \| \
26963 X"$as_dir" : 'X\(//\)$' \| \
26964 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26970 /^X\(\/\/\)[^/].*/{
26983 test -d "$as_dir" && break
26985 test -z "$as_dirs" || eval "mkdir $as_dirs"
26986 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26987 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26988 { (exit 1); exit 1; }; }; }
26992 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26994 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26995 # A ".." for each directory in $ac_dir_suffix.
26996 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26997 case $ac_top_builddir_sub in
26998 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26999 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27002 ac_abs_top_builddir=$ac_pwd
27003 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27004 # for backward compatibility:
27005 ac_top_builddir=$ac_top_build_prefix
27008 .) # We are building in place.
27010 ac_top_srcdir=$ac_top_builddir_sub
27011 ac_abs_top_srcdir=$ac_pwd ;;
27012 [\\/]* | ?:[\\/]* ) # Absolute name.
27013 ac_srcdir=$srcdir$ac_dir_suffix;
27014 ac_top_srcdir=$srcdir
27015 ac_abs_top_srcdir=$srcdir ;;
27016 *) # Relative name.
27017 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27018 ac_top_srcdir=$ac_top_build_prefix$srcdir
27019 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27021 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27026 # Check for guested configure; otherwise get Cygnus style configure.
27027 if test -f "$ac_srcdir/configure.gnu"; then
27028 ac_sub_configure=$ac_srcdir/configure.gnu
27029 elif test -f "$ac_srcdir/configure"; then
27030 ac_sub_configure=$ac_srcdir/configure
27031 elif test -f "$ac_srcdir/configure.in"; then
27032 # This should be Cygnus configure.
27033 ac_sub_configure=$ac_aux_dir/configure
27035 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27036 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27040 # The recursion is here.
27041 if test -n "$ac_sub_configure"; then
27042 # Make the cache file name correct relative to the subdirectory.
27043 case $cache_file in
27044 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27045 *) # Relative name.
27046 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27049 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27050 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27051 # The eval makes quoting arguments work.
27052 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27053 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27054 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27055 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27056 { (exit 1); exit 1; }; }
27064 ac_config_commands="$ac_config_commands default-1"
27066 ac_config_commands="$ac_config_commands default-2"
27068 ac_config_commands="$ac_config_commands default-3"
27070 ac_config_commands="$ac_config_commands default-4"