2 # From configure.in Revision: 1.198.2.15.2.16 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
71 # Find who we are. Look in the path if we contain no directory separator.
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
162 if test $as_have_required = yes && (eval ":
172 as_func_ret_success () {
175 as_func_ret_failure () {
180 if as_func_success; then
184 echo as_func_success failed.
187 if as_func_failure; then
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 test -z "$as_dir" && as_dir=.
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
259 CONFIG_SHELL=$as_shell
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
287 as_func_ret_success () {
290 as_func_ret_failure () {
295 if as_func_success; then
299 echo as_func_success failed.
302 if as_func_failure; then
304 echo as_func_failure succeeded.
307 if as_func_ret_success; then
311 echo as_func_ret_success failed.
314 if as_func_ret_failure; then
316 echo as_func_ret_failure succeeded.
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 echo positional parameters were not saved.
326 test $exitcode = 0) || { (exit 1); exit 1; }
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
343 if test "x$CONFIG_SHELL" != x; then
344 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 if test $as_have_required = no; then
353 echo This script requires a shell more modern than all the
354 echo shells that I found on your system. Please install a
355 echo modern shell, or manually run the script under such a
356 echo shell if you do have one.
357 { (exit 1); exit 1; }
367 (eval "as_func_return () {
376 as_func_ret_success () {
379 as_func_ret_failure () {
384 if as_func_success; then
388 echo as_func_success failed.
391 if as_func_failure; then
393 echo as_func_failure succeeded.
396 if as_func_ret_success; then
400 echo as_func_ret_success failed.
403 if as_func_ret_failure; then
405 echo as_func_ret_failure succeeded.
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 echo positional parameters were not saved.
415 test \$exitcode = 0") || {
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system,
418 echo including any error possibly output before this
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
473 ECHO_C= ECHO_N= ECHO_T=
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493 rm -f conf$$.dir/conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 elif ln conf$$.file conf$$ 2>/dev/null; then
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
515 if mkdir -p . 2>/dev/null; then
518 test -d ./-p && rmdir ./-p
522 if test -x / >/dev/null 2>&1; then
525 if ls -dL / >/dev/null 2>&1; then
532 if test -d "$1"; then
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
543 as_executable_p=$as_test_x
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 # Check that we are running under the correct shell.
555 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Remove one level of quotation (which was required for Make).
560 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
565 if test "X$1" = X--no-reexec; then
566 # Discard the --no-reexec flag, and continue.
568 elif test "X$1" = X--fallback-echo; then
569 # Avoid inline document here, it may be left over
571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
572 # Yippee, $echo works!
575 # Restart under the correct shell.
576 exec $SHELL "$0" --no-reexec ${1+"$@"}
579 if test "X$1" = X--fallback-echo; then
580 # used as fallback echo
588 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592 if test -z "$ECHO"; then
593 if test "X${echo_test_string+set}" != Xset; then
594 # find a string as large as possible, as long as the shell can cope with it
595 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
598 echo_test_string=`eval $cmd` &&
599 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # The Solaris, AIX, and Digital Unix default echo programs unquote
612 # backslashes. This makes it impossible to quote backslashes using
613 # echo "$something" | sed 's/\\/\\\\/g'
615 # So, first we look for a working echo in the user's PATH.
617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618 for dir in $PATH /usr/ucb; do
620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
630 if test "X$echo" = Xecho; then
631 # We didn't find a better echo, so look for alternatives.
632 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # This shell has a builtin print -r that does the trick.
637 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
638 test "X$CONFIG_SHELL" != X/bin/ksh; then
639 # If we have ksh, try running configure again with it.
640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641 export ORIGINAL_CONFIG_SHELL
642 CONFIG_SHELL=/bin/ksh
644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
649 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654 test "X$echo_testing_string" = 'X\t' &&
655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 SHELL="$CONFIG_SHELL"
661 echo="$CONFIG_SHELL $0 --fallback-echo"
662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663 test "X$echo_testing_string" = 'X\t' &&
664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665 test "X$echo_testing_string" = "X$echo_test_string"; then
666 echo="$CONFIG_SHELL $0 --fallback-echo"
668 # maybe with a smaller string...
671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
679 if test "$prev" != 'sed 50q "$0"'; then
680 echo_test_string=`eval $prev`
681 export echo_test_string
682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 # Oops. We lost completely, so just stick with echo.
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
703 tagnames=${tagnames+${tagnames},}CXX
705 tagnames=${tagnames+${tagnames},}F77
707 exec 7<&0 </dev/null 6>&1
710 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
711 # so uname gets run too.
712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
717 ac_default_prefix=/usr/local
719 ac_config_libobj_dir=.
725 SHELL=${CONFIG_SHELL-/bin/sh}
727 # Identity of this package.
734 ac_unique_file="src/main/radiusd.c"
735 # Factoring default headers for most tests.
736 ac_includes_default="\
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
748 # ifdef HAVE_STDLIB_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
780 program_transform_name
876 RADIUSD_MAJOR_VERSION
877 RADIUSD_MINOR_VERSION
882 ac_precious_vars='build_alias
897 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
899 # Initialize some variables set by options.
901 ac_init_version=false
902 # The variables have the same names as the options, with
903 # dashes changed to underlines.
911 program_transform_name=s,x,x,
919 # Installation directory options.
920 # These are left unexpanded so users can "make install exec_prefix=/foo"
921 # and all the variables that are supposed to be based on exec_prefix
922 # by default will actually change.
923 # Use braces instead of parens because sh, perl, etc. also accept them.
924 # (The list follows the same order as the GNU Coding Standards.)
925 bindir='${exec_prefix}/bin'
926 sbindir='${exec_prefix}/sbin'
927 libexecdir='${exec_prefix}/libexec'
928 datarootdir='${prefix}/share'
929 datadir='${datarootdir}'
930 sysconfdir='${prefix}/etc'
931 sharedstatedir='${prefix}/com'
932 localstatedir='${prefix}/var'
933 includedir='${prefix}/include'
934 oldincludedir='/usr/include'
935 docdir='${datarootdir}/doc/${PACKAGE}'
936 infodir='${datarootdir}/info'
941 libdir='${exec_prefix}/lib'
942 localedir='${datarootdir}/locale'
943 mandir='${datarootdir}/man'
949 # If the previous option needs an argument, assign it.
950 if test -n "$ac_prev"; then
951 eval $ac_prev=\$ac_option
957 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 # Accept the important Cygnus configure options, so we can diagnose typos.
963 case $ac_dashdash$ac_option in
967 -bindir | --bindir | --bindi | --bind | --bin | --bi)
969 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
972 -build | --build | --buil | --bui | --bu)
973 ac_prev=build_alias ;;
974 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975 build_alias=$ac_optarg ;;
977 -cache-file | --cache-file | --cache-fil | --cache-fi \
978 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979 ac_prev=cache_file ;;
980 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982 cache_file=$ac_optarg ;;
985 cache_file=config.cache ;;
987 -datadir | --datadir | --datadi | --datad)
989 -datadir=* | --datadir=* | --datadi=* | --datad=*)
990 datadir=$ac_optarg ;;
992 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993 | --dataroo | --dataro | --datar)
994 ac_prev=datarootdir ;;
995 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997 datarootdir=$ac_optarg ;;
999 -disable-* | --disable-*)
1000 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1003 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1004 { (exit 1); exit 1; }; }
1005 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1006 eval enable_$ac_feature=no ;;
1008 -docdir | --docdir | --docdi | --doc | --do)
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
1018 -enable-* | --enable-*)
1019 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1022 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023 { (exit 1); exit 1; }; }
1024 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1025 eval enable_$ac_feature=\$ac_optarg ;;
1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029 | --exec | --exe | --ex)
1030 ac_prev=exec_prefix ;;
1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033 | --exec=* | --exe=* | --ex=*)
1034 exec_prefix=$ac_optarg ;;
1036 -gas | --gas | --ga | --g)
1037 # Obsolete; use --with-gas.
1040 -help | --help | --hel | --he | -h)
1041 ac_init_help=long ;;
1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043 ac_init_help=recursive ;;
1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045 ac_init_help=short ;;
1047 -host | --host | --hos | --ho)
1048 ac_prev=host_alias ;;
1049 -host=* | --host=* | --hos=* | --ho=*)
1050 host_alias=$ac_optarg ;;
1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056 htmldir=$ac_optarg ;;
1058 -includedir | --includedir | --includedi | --included | --include \
1059 | --includ | --inclu | --incl | --inc)
1060 ac_prev=includedir ;;
1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062 | --includ=* | --inclu=* | --incl=* | --inc=*)
1063 includedir=$ac_optarg ;;
1065 -infodir | --infodir | --infodi | --infod | --info | --inf)
1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068 infodir=$ac_optarg ;;
1070 -libdir | --libdir | --libdi | --libd)
1072 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073 libdir=$ac_optarg ;;
1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076 | --libexe | --libex | --libe)
1077 ac_prev=libexecdir ;;
1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079 | --libexe=* | --libex=* | --libe=*)
1080 libexecdir=$ac_optarg ;;
1082 -localedir | --localedir | --localedi | --localed | --locale)
1083 ac_prev=localedir ;;
1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085 localedir=$ac_optarg ;;
1087 -localstatedir | --localstatedir | --localstatedi | --localstated \
1088 | --localstate | --localstat | --localsta | --localst | --locals)
1089 ac_prev=localstatedir ;;
1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092 localstatedir=$ac_optarg ;;
1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097 mandir=$ac_optarg ;;
1099 -nfp | --nfp | --nf)
1100 # Obsolete; use --without-fp.
1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104 | --no-cr | --no-c | -n)
1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113 | --oldin | --oldi | --old | --ol | --o)
1114 ac_prev=oldincludedir ;;
1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118 oldincludedir=$ac_optarg ;;
1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123 prefix=$ac_optarg ;;
1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126 | --program-pre | --program-pr | --program-p)
1127 ac_prev=program_prefix ;;
1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130 program_prefix=$ac_optarg ;;
1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133 | --program-suf | --program-su | --program-s)
1134 ac_prev=program_suffix ;;
1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137 program_suffix=$ac_optarg ;;
1139 -program-transform-name | --program-transform-name \
1140 | --program-transform-nam | --program-transform-na \
1141 | --program-transform-n | --program-transform- \
1142 | --program-transform | --program-transfor \
1143 | --program-transfo | --program-transf \
1144 | --program-trans | --program-tran \
1145 | --progr-tra | --program-tr | --program-t)
1146 ac_prev=program_transform_name ;;
1147 -program-transform-name=* | --program-transform-name=* \
1148 | --program-transform-nam=* | --program-transform-na=* \
1149 | --program-transform-n=* | --program-transform-=* \
1150 | --program-transform=* | --program-transfor=* \
1151 | --program-transfo=* | --program-transf=* \
1152 | --program-trans=* | --program-tran=* \
1153 | --progr-tra=* | --program-tr=* | --program-t=*)
1154 program_transform_name=$ac_optarg ;;
1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159 pdfdir=$ac_optarg ;;
1161 -psdir | --psdir | --psdi | --psd | --ps)
1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167 | -silent | --silent | --silen | --sile | --sil)
1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174 sbindir=$ac_optarg ;;
1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178 | --sharedst | --shareds | --shared | --share | --shar \
1180 ac_prev=sharedstatedir ;;
1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185 sharedstatedir=$ac_optarg ;;
1187 -site | --site | --sit)
1189 -site=* | --site=* | --sit=*)
1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195 srcdir=$ac_optarg ;;
1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198 | --syscon | --sysco | --sysc | --sys | --sy)
1199 ac_prev=sysconfdir ;;
1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202 sysconfdir=$ac_optarg ;;
1204 -target | --target | --targe | --targ | --tar | --ta | --t)
1205 ac_prev=target_alias ;;
1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207 target_alias=$ac_optarg ;;
1209 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212 -version | --version | --versio | --versi | --vers | -V)
1213 ac_init_version=: ;;
1216 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 { echo "$as_me: error: invalid package name: $ac_package" >&2
1220 { (exit 1); exit 1; }; }
1221 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1222 eval with_$ac_package=\$ac_optarg ;;
1224 -without-* | --without-*)
1225 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 { echo "$as_me: error: invalid package name: $ac_package" >&2
1229 { (exit 1); exit 1; }; }
1230 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1231 eval with_$ac_package=no ;;
1234 # Obsolete; use --with-x.
1237 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238 | --x-incl | --x-inc | --x-in | --x-i)
1239 ac_prev=x_includes ;;
1240 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242 x_includes=$ac_optarg ;;
1244 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246 ac_prev=x_libraries ;;
1247 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249 x_libraries=$ac_optarg ;;
1251 -*) { echo "$as_me: error: unrecognized option: $ac_option
1252 Try \`$0 --help' for more information." >&2
1253 { (exit 1); exit 1; }; }
1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1260 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261 { (exit 1); exit 1; }; }
1262 eval $ac_envvar=\$ac_optarg
1263 export $ac_envvar ;;
1266 # FIXME: should be removed in autoconf 3.0.
1267 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1276 if test -n "$ac_prev"; then
1277 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278 { echo "$as_me: error: missing argument to $ac_option" >&2
1279 { (exit 1); exit 1; }; }
1282 # Be sure to have absolute directory names.
1283 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
1288 eval ac_val=\$$ac_var
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1294 { (exit 1); exit 1; }; }
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1302 target=$target_alias
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309 If a cross compiler is detected then cross compile mode will be used." >&2
1310 elif test "x$build_alias" != "x$host_alias"; then
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318 test "$silent" = yes && exec 6>/dev/null
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 { echo "$as_me: error: Working directory cannot be determined" >&2
1325 { (exit 1); exit 1; }; }
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 { echo "$as_me: error: pwd does not report name of working directory" >&2
1328 { (exit 1); exit 1; }; }
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$0" ||
1336 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$0" : 'X\(//\)[^/]' \| \
1338 X"$0" : 'X\(//\)$' \| \
1339 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1363 ac_srcdir_defaulted=no
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1368 { (exit 1); exit 1; }; }
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1373 { (exit 1); exit 1; }; }
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385 for ac_var in $ac_precious_vars; do
1386 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_${ac_var}_value=\$${ac_var}
1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 # Report the --help message.
1395 if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1399 \`configure' configures this package to adapt to many kinds of systems.
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE. See below for descriptions of some of the useful variables.
1406 Defaults for the options are specified in brackets.
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
1413 -q, --quiet, --silent do not print \`checking...' messages
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419 Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1430 For better control, use the options below.
1432 Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 if test -n "$ac_init_help"; then
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469 --enable-shared[=PKGS] build shared libraries [default=yes]
1470 --enable-static[=PKGS] build static libraries [default=yes]
1471 --enable-fast-install[=PKGS]
1472 optimize for fast installation [default=yes]
1473 --disable-libtool-lock avoid locking (might break parallel builds)
1474 --enable-strict-dependencies Fail configure on lack of module dependancy.
1475 --enable-developer Enables features of interest to developers.
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-system-libtool try to use libtool installed in your system default=use our own
1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1482 --with-pic try to use only PIC/non-PIC objects [default=use
1484 --with-tags[=TAGS] include additional configurations [automatic]
1485 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1486 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1487 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1488 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1489 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1490 --with-threads Use threads, if available. (default=yes)
1491 --with-snmp Compile in SNMP support. (default=yes)
1492 --with-snmp-include-dir=DIR Directory to look for include files used by SNMP
1493 --with-large-files Compile in large (2G+) file support. (default=no)
1494 --with-static-modules=QUOTED-MODULE-LIST
1495 --with-modules=QUOTED-MODULE-LIST
1496 --with-experimental-modules Use experimental and unstable modules. (default=no)
1497 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1498 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1499 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1500 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1501 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1502 --with-edir Enable Novell eDirectory integration. (default=no)
1504 Some influential environment variables:
1505 CC C compiler command
1506 CFLAGS C compiler flags
1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1508 nonstandard directory <lib dir>
1509 LIBS libraries to pass to the linker, e.g. -l<library>
1510 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1511 you have headers in a nonstandard directory <include dir>
1513 CXX C++ compiler command
1514 CXXFLAGS C++ compiler flags
1515 CXXCPP C++ preprocessor
1516 F77 Fortran 77 compiler command
1517 FFLAGS Fortran 77 compiler flags
1519 Use these variables to override the choices made by `configure' or to help
1520 it to find libraries and programs with nonstandard names/locations.
1526 if test "$ac_init_help" = "recursive"; then
1527 # If there are subdirs, report their specific --help.
1528 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1529 test -d "$ac_dir" || continue
1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1536 # A ".." for each directory in $ac_dir_suffix.
1537 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1538 case $ac_top_builddir_sub in
1539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1543 ac_abs_top_builddir=$ac_pwd
1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir=$ac_top_build_prefix
1549 .) # We are building in place.
1551 ac_top_srcdir=$ac_top_builddir_sub
1552 ac_abs_top_srcdir=$ac_pwd ;;
1553 [\\/]* | ?:[\\/]* ) # Absolute name.
1554 ac_srcdir=$srcdir$ac_dir_suffix;
1555 ac_top_srcdir=$srcdir
1556 ac_abs_top_srcdir=$srcdir ;;
1558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559 ac_top_srcdir=$ac_top_build_prefix$srcdir
1560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564 cd "$ac_dir" || { ac_status=$?; continue; }
1565 # Check for guested configure.
1566 if test -f "$ac_srcdir/configure.gnu"; then
1568 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569 elif test -f "$ac_srcdir/configure"; then
1571 $SHELL "$ac_srcdir/configure" --help=recursive
1573 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 cd "$ac_pwd" || { ac_status=$?; break; }
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1583 generated by GNU Autoconf 2.61
1585 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1586 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1592 cat >config.log <<_ACEOF
1593 This file contains any messages produced by compilers while
1594 running configure, to aid debugging if configure makes a mistake.
1596 It was created by $as_me, which was
1597 generated by GNU Autoconf 2.61. Invocation command line was
1609 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1610 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1611 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1612 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1613 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1615 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1616 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1618 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1619 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1620 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1621 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1622 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1623 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1624 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 test -z "$as_dir" && as_dir=.
1633 echo "PATH: $as_dir"
1649 # Keep a trace of the command line.
1650 # Strip out --no-create and --no-recursion so they do not pile up.
1651 # Strip out --silent because we don't want to record it for future runs.
1652 # Also quote any args containing shell meta-characters.
1653 # Make two passes to allow for proper duplicate-argument suppression.
1657 ac_must_keep_next=false
1663 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1665 | -silent | --silent | --silen | --sile | --sil)
1668 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1671 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1673 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1674 if test $ac_must_keep_next = true; then
1675 ac_must_keep_next=false # Got value, back to normal.
1678 *=* | --config-cache | -C | -disable-* | --disable-* \
1679 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1680 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1681 | -with-* | --with-* | -without-* | --without-* | --x)
1682 case "$ac_configure_args0 " in
1683 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1686 -* ) ac_must_keep_next=true ;;
1689 ac_configure_args="$ac_configure_args '$ac_arg'"
1694 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1695 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1697 # When interrupted or exit'd, cleanup temporary files, and complete
1698 # config.log. We remove comments because anyway the quotes in there
1699 # would cause problems or look ugly.
1700 # WARNING: Use '\'' to represent an apostrophe within the trap.
1701 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1702 trap 'exit_status=$?
1703 # Save into config.log some information that might help in debugging.
1708 ## ---------------- ##
1709 ## Cache variables. ##
1710 ## ---------------- ##
1713 # The following way of writing the cache mishandles newlines in values,
1715 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1716 eval ac_val=\$$ac_var
1720 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1721 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1724 _ | IFS | as_nl) ;; #(
1725 *) $as_unset $ac_var ;;
1730 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1731 *${as_nl}ac_space=\ *)
1733 "s/'\''/'\''\\\\'\'''\''/g;
1734 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1737 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1745 ## ----------------- ##
1746 ## Output variables. ##
1747 ## ----------------- ##
1750 for ac_var in $ac_subst_vars
1752 eval ac_val=\$$ac_var
1754 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756 echo "$ac_var='\''$ac_val'\''"
1760 if test -n "$ac_subst_files"; then
1762 ## ------------------- ##
1763 ## File substitutions. ##
1764 ## ------------------- ##
1767 for ac_var in $ac_subst_files
1769 eval ac_val=\$$ac_var
1771 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1773 echo "$ac_var='\''$ac_val'\''"
1778 if test -s confdefs.h; then
1788 test "$ac_signal" != 0 &&
1789 echo "$as_me: caught signal $ac_signal"
1790 echo "$as_me: exit $exit_status"
1792 rm -f core *.core core.conftest.* &&
1793 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1796 for ac_signal in 1 2 13 15; do
1797 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1801 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1802 rm -f -r conftest* confdefs.h
1804 # Predefined preprocessor variables.
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_NAME "$PACKAGE_NAME"
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_STRING "$PACKAGE_STRING"
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1831 # Let the site file select an alternate cache file if it wants to.
1832 # Prefer explicitly selected file to automatically selected ones.
1833 if test -n "$CONFIG_SITE"; then
1834 set x "$CONFIG_SITE"
1835 elif test "x$prefix" != xNONE; then
1836 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1838 set x "$ac_default_prefix/share/config.site" \
1839 "$ac_default_prefix/etc/config.site"
1844 if test -r "$ac_site_file"; then
1845 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1846 echo "$as_me: loading site script $ac_site_file" >&6;}
1847 sed 's/^/| /' "$ac_site_file" >&5
1852 if test -r "$cache_file"; then
1853 # Some versions of bash will fail to source /dev/null (special
1854 # files actually), so we avoid doing that.
1855 if test -f "$cache_file"; then
1856 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1857 echo "$as_me: loading cache $cache_file" >&6;}
1859 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1860 *) . "./$cache_file";;
1864 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1865 echo "$as_me: creating cache $cache_file" >&6;}
1869 # Check that the precious variables saved in the cache have kept the same
1871 ac_cache_corrupted=false
1872 for ac_var in $ac_precious_vars; do
1873 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1874 eval ac_new_set=\$ac_env_${ac_var}_set
1875 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1876 eval ac_new_val=\$ac_env_${ac_var}_value
1877 case $ac_old_set,$ac_new_set in
1879 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1880 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1881 ac_cache_corrupted=: ;;
1883 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1884 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1885 ac_cache_corrupted=: ;;
1888 if test "x$ac_old_val" != "x$ac_new_val"; then
1889 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1890 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1891 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1892 echo "$as_me: former value: $ac_old_val" >&2;}
1893 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1894 echo "$as_me: current value: $ac_new_val" >&2;}
1895 ac_cache_corrupted=:
1898 # Pass precious variables to config.status.
1899 if test "$ac_new_set" = set; then
1901 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1902 *) ac_arg=$ac_var=$ac_new_val ;;
1904 case " $ac_configure_args " in
1905 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1906 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1910 if $ac_cache_corrupted; then
1911 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1912 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1913 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1914 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1915 { (exit 1); exit 1; }; }
1935 ac_cpp='$CPP $CPPFLAGS'
1936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1941 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1945 RADIUSD_MAJOR_VERSION=1
1946 RADIUSD_MINOR_VERSION=1.7
1947 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1951 ac_cpp='$CPP $CPPFLAGS'
1952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1955 if test -n "$ac_tool_prefix"; then
1956 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1957 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1960 if test "${ac_cv_prog_CC+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1963 if test -n "$CC"; then
1964 ac_cv_prog_CC="$CC" # Let the user override the test.
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 test -z "$as_dir" && as_dir=.
1971 for ac_exec_ext in '' $ac_executable_extensions; do
1972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1973 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 if test -n "$CC"; then
1985 { echo "$as_me:$LINENO: result: $CC" >&5
1986 echo "${ECHO_T}$CC" >&6; }
1988 { echo "$as_me:$LINENO: result: no" >&5
1989 echo "${ECHO_T}no" >&6; }
1994 if test -z "$ac_cv_prog_CC"; then
1996 # Extract the first word of "gcc", so it can be a program name with args.
1997 set dummy gcc; ac_word=$2
1998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2000 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 if test -n "$ac_ct_CC"; then
2004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2013 ac_cv_prog_ac_ct_CC="gcc"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2024 if test -n "$ac_ct_CC"; then
2025 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2026 echo "${ECHO_T}$ac_ct_CC" >&6; }
2028 { echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6; }
2032 if test "x$ac_ct_CC" = x; then
2035 case $cross_compiling:$ac_tool_warned in
2037 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2038 whose name does not start with the host triplet. If you think this
2039 configuration is useful to you, please write to autoconf@gnu.org." >&5
2040 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2041 whose name does not start with the host triplet. If you think this
2042 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2043 ac_tool_warned=yes ;;
2051 if test -z "$CC"; then
2052 if test -n "$ac_tool_prefix"; then
2053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2054 set dummy ${ac_tool_prefix}cc; ac_word=$2
2055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2057 if test "${ac_cv_prog_CC+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 if test -n "$CC"; then
2061 ac_cv_prog_CC="$CC" # Let the user override the test.
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 test -z "$as_dir" && as_dir=.
2068 for ac_exec_ext in '' $ac_executable_extensions; do
2069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2070 ac_cv_prog_CC="${ac_tool_prefix}cc"
2071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 if test -n "$CC"; then
2082 { echo "$as_me:$LINENO: result: $CC" >&5
2083 echo "${ECHO_T}$CC" >&6; }
2085 { echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6; }
2092 if test -z "$CC"; then
2093 # Extract the first word of "cc", so it can be a program name with args.
2094 set dummy cc; ac_word=$2
2095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 if test -n "$CC"; then
2101 ac_cv_prog_CC="$CC" # Let the user override the test.
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
2110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2111 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2112 ac_prog_rejected=yes
2116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 if test $ac_prog_rejected = yes; then
2124 # We found a bogon in the path, so make sure we never use it.
2125 set dummy $ac_cv_prog_CC
2127 if test $# != 0; then
2128 # We chose a different compiler from the bogus one.
2129 # However, it has the same basename, so the bogon will be chosen
2130 # first if we set CC to just the basename; use the full file name.
2132 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2138 if test -n "$CC"; then
2139 { echo "$as_me:$LINENO: result: $CC" >&5
2140 echo "${ECHO_T}$CC" >&6; }
2142 { echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6; }
2148 if test -z "$CC"; then
2149 if test -n "$ac_tool_prefix"; then
2150 for ac_prog in cl.exe
2152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2156 if test "${ac_cv_prog_CC+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 if test -n "$CC"; then
2160 ac_cv_prog_CC="$CC" # Let the user override the test.
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 test -z "$as_dir" && as_dir=.
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2169 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 if test -n "$CC"; then
2181 { echo "$as_me:$LINENO: result: $CC" >&5
2182 echo "${ECHO_T}$CC" >&6; }
2184 { echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6; }
2189 test -n "$CC" && break
2192 if test -z "$CC"; then
2194 for ac_prog in cl.exe
2196 # Extract the first word of "$ac_prog", so it can be a program name with args.
2197 set dummy $ac_prog; ac_word=$2
2198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2200 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 if test -n "$ac_ct_CC"; then
2204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 test -z "$as_dir" && as_dir=.
2211 for ac_exec_ext in '' $ac_executable_extensions; do
2212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2213 ac_cv_prog_ac_ct_CC="$ac_prog"
2214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2224 if test -n "$ac_ct_CC"; then
2225 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2226 echo "${ECHO_T}$ac_ct_CC" >&6; }
2228 { echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6; }
2233 test -n "$ac_ct_CC" && break
2236 if test "x$ac_ct_CC" = x; then
2239 case $cross_compiling:$ac_tool_warned in
2241 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2242 whose name does not start with the host triplet. If you think this
2243 configuration is useful to you, please write to autoconf@gnu.org." >&5
2244 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2245 whose name does not start with the host triplet. If you think this
2246 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2247 ac_tool_warned=yes ;;
2256 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2257 See \`config.log' for more details." >&5
2258 echo "$as_me: error: no acceptable C compiler found in \$PATH
2259 See \`config.log' for more details." >&2;}
2260 { (exit 1); exit 1; }; }
2262 # Provide some information about the compiler.
2263 echo "$as_me:$LINENO: checking for C compiler version" >&5
2264 ac_compiler=`set X $ac_compile; echo $2`
2265 { (ac_try="$ac_compiler --version >&5"
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271 (eval "$ac_compiler --version >&5") 2>&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }
2275 { (ac_try="$ac_compiler -v >&5"
2277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278 *) ac_try_echo=$ac_try;;
2280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2281 (eval "$ac_compiler -v >&5") 2>&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }
2285 { (ac_try="$ac_compiler -V >&5"
2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2291 (eval "$ac_compiler -V >&5") 2>&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }
2296 cat >conftest.$ac_ext <<_ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2311 ac_clean_files_save=$ac_clean_files
2312 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2313 # Try to create an executable without -o first, disregard a.out.
2314 # It will help us diagnose broken compilers, and finding out an intuition
2316 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2317 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2318 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2320 # List of possible output files, starting from the most likely.
2321 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2322 # only as a last resort. b.out is created by i960 compilers.
2323 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2325 # The IRIX 6 linker writes into existing files which may not be
2326 # executable, retaining their permissions. Remove them first so a
2327 # subsequent execution test works.
2329 for ac_file in $ac_files
2332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2333 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2338 if { (ac_try="$ac_link_default"
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2344 (eval "$ac_link_default") 2>&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }; then
2348 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2349 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2350 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2351 # so that the user can short-circuit this test for compilers unknown to
2353 for ac_file in $ac_files ''
2355 test -f "$ac_file" || continue
2357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2360 # We found the default executable, but exeext='' is most
2364 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2366 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2368 # We set ac_cv_exeext here because the later test for it is not
2369 # safe: cross compilers may not add the suffix if given an `-o'
2370 # argument, so we may need to know it at that point already.
2371 # Even if this section looks crufty: it has the advantage of
2378 test "$ac_cv_exeext" = no && ac_cv_exeext=
2384 { echo "$as_me:$LINENO: result: $ac_file" >&5
2385 echo "${ECHO_T}$ac_file" >&6; }
2386 if test -z "$ac_file"; then
2387 echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2390 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2391 See \`config.log' for more details." >&5
2392 echo "$as_me: error: C compiler cannot create executables
2393 See \`config.log' for more details." >&2;}
2394 { (exit 77); exit 77; }; }
2397 ac_exeext=$ac_cv_exeext
2399 # Check that the compiler produces executables we can run. If not, either
2400 # the compiler is broken, or we cross compile.
2401 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2402 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2403 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2404 # If not cross compiling, check that we can run a simple program.
2405 if test "$cross_compiling" != yes; then
2406 if { ac_try='./$ac_file'
2407 { (case "(($ac_try" in
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_try") 2>&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2418 if test "$cross_compiling" = maybe; then
2421 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2422 If you meant to cross compile, use \`--host'.
2423 See \`config.log' for more details." >&5
2424 echo "$as_me: error: cannot run C compiled programs.
2425 If you meant to cross compile, use \`--host'.
2426 See \`config.log' for more details." >&2;}
2427 { (exit 1); exit 1; }; }
2431 { echo "$as_me:$LINENO: result: yes" >&5
2432 echo "${ECHO_T}yes" >&6; }
2434 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2435 ac_clean_files=$ac_clean_files_save
2436 # Check that the compiler produces executables we can run. If not, either
2437 # the compiler is broken, or we cross compile.
2438 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2439 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2440 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2441 echo "${ECHO_T}$cross_compiling" >&6; }
2443 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2444 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2445 if { (ac_try="$ac_link"
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2451 (eval "$ac_link") 2>&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; then
2455 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2456 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2457 # work properly (i.e., refer to `conftest.exe'), while it won't with
2459 for ac_file in conftest.exe conftest conftest.*; do
2460 test -f "$ac_file" || continue
2462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2463 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2469 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2470 See \`config.log' for more details." >&5
2471 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2472 See \`config.log' for more details." >&2;}
2473 { (exit 1); exit 1; }; }
2476 rm -f conftest$ac_cv_exeext
2477 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2478 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2480 rm -f conftest.$ac_ext
2481 EXEEXT=$ac_cv_exeext
2483 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2484 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2485 if test "${ac_cv_objext+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 cat >conftest.$ac_ext <<_ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2503 rm -f conftest.o conftest.obj
2504 if { (ac_try="$ac_compile"
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_compile") 2>&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; then
2514 for ac_file in conftest.o conftest.obj conftest.*; do
2515 test -f "$ac_file" || continue;
2517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2518 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2526 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2529 See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
2533 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2535 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2536 echo "${ECHO_T}$ac_cv_objext" >&6; }
2537 OBJEXT=$ac_cv_objext
2539 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2540 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2541 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 cat >conftest.$ac_ext <<_ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2562 rm -f conftest.$ac_objext
2563 if { (ac_try="$ac_compile"
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_compile") 2>conftest.er1
2571 grep -v '^ *+' conftest.er1 >conftest.err
2573 cat conftest.err >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } && {
2576 test -z "$ac_c_werror_flag" ||
2577 test ! -s conftest.err
2578 } && test -s conftest.$ac_objext; then
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2591 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2592 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2593 GCC=`test $ac_compiler_gnu = yes && echo yes`
2594 ac_test_CFLAGS=${CFLAGS+set}
2595 ac_save_CFLAGS=$CFLAGS
2596 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2597 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2598 if test "${ac_cv_prog_cc_g+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 ac_save_c_werror_flag=$ac_c_werror_flag
2602 ac_c_werror_flag=yes
2605 cat >conftest.$ac_ext <<_ACEOF
2608 cat confdefs.h >>conftest.$ac_ext
2609 cat >>conftest.$ac_ext <<_ACEOF
2610 /* end confdefs.h. */
2620 rm -f conftest.$ac_objext
2621 if { (ac_try="$ac_compile"
2623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624 *) ac_try_echo=$ac_try;;
2626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2627 (eval "$ac_compile") 2>conftest.er1
2629 grep -v '^ *+' conftest.er1 >conftest.err
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } && {
2634 test -z "$ac_c_werror_flag" ||
2635 test ! -s conftest.err
2636 } && test -s conftest.$ac_objext; then
2639 echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2643 cat >conftest.$ac_ext <<_ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2658 rm -f conftest.$ac_objext
2659 if { (ac_try="$ac_compile"
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2665 (eval "$ac_compile") 2>conftest.er1
2667 grep -v '^ *+' conftest.er1 >conftest.err
2669 cat conftest.err >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); } && {
2672 test -z "$ac_c_werror_flag" ||
2673 test ! -s conftest.err
2674 } && test -s conftest.$ac_objext; then
2677 echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2680 ac_c_werror_flag=$ac_save_c_werror_flag
2682 cat >conftest.$ac_ext <<_ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2697 rm -f conftest.$ac_objext
2698 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2706 grep -v '^ *+' conftest.er1 >conftest.err
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } && {
2711 test -z "$ac_c_werror_flag" ||
2712 test ! -s conftest.err
2713 } && test -s conftest.$ac_objext; then
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2729 ac_c_werror_flag=$ac_save_c_werror_flag
2731 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2732 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2733 if test "$ac_test_CFLAGS" = set; then
2734 CFLAGS=$ac_save_CFLAGS
2735 elif test $ac_cv_prog_cc_g = yes; then
2736 if test "$GCC" = yes; then
2742 if test "$GCC" = yes; then
2748 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2749 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2750 if test "${ac_cv_prog_cc_c89+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 ac_cv_prog_cc_c89=no
2755 cat >conftest.$ac_ext <<_ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2763 #include <sys/types.h>
2764 #include <sys/stat.h>
2765 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2766 struct buf { int x; };
2767 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2768 static char *e (p, i)
2774 static char *f (char * (*g) (char **, int), char **p, ...)
2779 s = g (p, va_arg (v,int));
2784 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2785 function prototypes and stuff, but not '\xHH' hex character constants.
2786 These don't provoke an error unfortunately, instead are silently treated
2787 as 'x'. The following induces an error, until -std is added to get
2788 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2789 array size at least. It's necessary to write '\x00'==0 to get something
2790 that's true only with -std. */
2791 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2793 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2794 inside strings and character constants. */
2796 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2798 int test (int i, double x);
2799 struct s1 {int (*f) (int a);};
2800 struct s2 {int (*f) (double a);};
2801 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2807 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2812 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2813 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2815 CC="$ac_save_CC $ac_arg"
2816 rm -f conftest.$ac_objext
2817 if { (ac_try="$ac_compile"
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_compile") 2>conftest.er1
2825 grep -v '^ *+' conftest.er1 >conftest.err
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } && {
2830 test -z "$ac_c_werror_flag" ||
2831 test ! -s conftest.err
2832 } && test -s conftest.$ac_objext; then
2833 ac_cv_prog_cc_c89=$ac_arg
2835 echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2841 rm -f core conftest.err conftest.$ac_objext
2842 test "x$ac_cv_prog_cc_c89" != "xno" && break
2844 rm -f conftest.$ac_ext
2849 case "x$ac_cv_prog_cc_c89" in
2851 { echo "$as_me:$LINENO: result: none needed" >&5
2852 echo "${ECHO_T}none needed" >&6; } ;;
2854 { echo "$as_me:$LINENO: result: unsupported" >&5
2855 echo "${ECHO_T}unsupported" >&6; } ;;
2857 CC="$CC $ac_cv_prog_cc_c89"
2858 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2859 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2864 ac_cpp='$CPP $CPPFLAGS'
2865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2872 ac_cpp='$CPP $CPPFLAGS'
2873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2876 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2877 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2878 # On Suns, sometimes $CPP names a directory.
2879 if test -n "$CPP" && test -d "$CPP"; then
2882 if test -z "$CPP"; then
2883 if test "${ac_cv_prog_CPP+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 # Double quotes because CPP needs to be expanded
2887 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2890 for ac_c_preproc_warn_flag in '' yes
2892 # Use a header file that comes with gcc, so configuring glibc
2893 # with a fresh cross-compiler works.
2894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2895 # <limits.h> exists even on freestanding compilers.
2896 # On the NeXT, cc -E runs the code through the compiler's parser,
2897 # not just through cpp. "Syntax error" is here to catch this case.
2898 cat >conftest.$ac_ext <<_ACEOF
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h. */
2905 # include <limits.h>
2907 # include <assert.h>
2911 if { (ac_try="$ac_cpp conftest.$ac_ext"
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2919 grep -v '^ *+' conftest.er1 >conftest.err
2921 cat conftest.err >&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } >/dev/null && {
2924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2925 test ! -s conftest.err
2929 echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2932 # Broken: fails on valid input.
2936 rm -f conftest.err conftest.$ac_ext
2938 # OK, works on sane cases. Now check whether nonexistent headers
2939 # can be detected and how.
2940 cat >conftest.$ac_ext <<_ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2946 #include <ac_nonexistent.h>
2948 if { (ac_try="$ac_cpp conftest.$ac_ext"
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2956 grep -v '^ *+' conftest.er1 >conftest.err
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } >/dev/null && {
2961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2962 test ! -s conftest.err
2964 # Broken: success on invalid input.
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2970 # Passes both tests.
2975 rm -f conftest.err conftest.$ac_ext
2978 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2979 rm -f conftest.err conftest.$ac_ext
2980 if $ac_preproc_ok; then
2992 { echo "$as_me:$LINENO: result: $CPP" >&5
2993 echo "${ECHO_T}$CPP" >&6; }
2995 for ac_c_preproc_warn_flag in '' yes
2997 # Use a header file that comes with gcc, so configuring glibc
2998 # with a fresh cross-compiler works.
2999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3000 # <limits.h> exists even on freestanding compilers.
3001 # On the NeXT, cc -E runs the code through the compiler's parser,
3002 # not just through cpp. "Syntax error" is here to catch this case.
3003 cat >conftest.$ac_ext <<_ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3010 # include <limits.h>
3012 # include <assert.h>
3016 if { (ac_try="$ac_cpp conftest.$ac_ext"
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3024 grep -v '^ *+' conftest.er1 >conftest.err
3026 cat conftest.err >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } >/dev/null && {
3029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3030 test ! -s conftest.err
3034 echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3037 # Broken: fails on valid input.
3041 rm -f conftest.err conftest.$ac_ext
3043 # OK, works on sane cases. Now check whether nonexistent headers
3044 # can be detected and how.
3045 cat >conftest.$ac_ext <<_ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3051 #include <ac_nonexistent.h>
3053 if { (ac_try="$ac_cpp conftest.$ac_ext"
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3061 grep -v '^ *+' conftest.er1 >conftest.err
3063 cat conftest.err >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); } >/dev/null && {
3066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3067 test ! -s conftest.err
3069 # Broken: success on invalid input.
3072 echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3075 # Passes both tests.
3080 rm -f conftest.err conftest.$ac_ext
3083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3084 rm -f conftest.err conftest.$ac_ext
3085 if $ac_preproc_ok; then
3088 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3089 See \`config.log' for more details." >&5
3090 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3091 See \`config.log' for more details." >&2;}
3092 { (exit 1); exit 1; }; }
3096 ac_cpp='$CPP $CPPFLAGS'
3097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3103 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3104 if test "${ac_cv_path_GREP+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 # Extract the first word of "grep ggrep" to use in msg output
3108 if test -z "$GREP"; then
3109 set dummy grep ggrep; ac_prog_name=$2
3110 if test "${ac_cv_path_GREP+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 ac_path_GREP_found=false
3114 # Loop through the user's path and test for each of PROGNAME-LIST
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3119 test -z "$as_dir" && as_dir=.
3120 for ac_prog in grep ggrep; do
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3123 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3124 # Check for GNU ac_path_GREP and select it if it is found.
3125 # Check for GNU $ac_path_GREP
3126 case `"$ac_path_GREP" --version 2>&1` in
3128 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3131 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3134 cat "conftest.in" "conftest.in" >"conftest.tmp"
3135 mv "conftest.tmp" "conftest.in"
3136 cp "conftest.in" "conftest.nl"
3137 echo 'GREP' >> "conftest.nl"
3138 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3139 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3140 ac_count=`expr $ac_count + 1`
3141 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3142 # Best one so far, save it but keep looking for a better one
3143 ac_cv_path_GREP="$ac_path_GREP"
3144 ac_path_GREP_max=$ac_count
3146 # 10*(2^10) chars as input seems more than enough
3147 test $ac_count -gt 10 && break
3149 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3153 $ac_path_GREP_found && break 3
3163 GREP="$ac_cv_path_GREP"
3164 if test -z "$GREP"; then
3165 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3166 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3167 { (exit 1); exit 1; }; }
3171 ac_cv_path_GREP=$GREP
3176 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3177 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3178 GREP="$ac_cv_path_GREP"
3181 { echo "$as_me:$LINENO: checking for egrep" >&5
3182 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3183 if test "${ac_cv_path_EGREP+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3187 then ac_cv_path_EGREP="$GREP -E"
3189 # Extract the first word of "egrep" to use in msg output
3190 if test -z "$EGREP"; then
3191 set dummy egrep; ac_prog_name=$2
3192 if test "${ac_cv_path_EGREP+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 ac_path_EGREP_found=false
3196 # Loop through the user's path and test for each of PROGNAME-LIST
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3201 test -z "$as_dir" && as_dir=.
3202 for ac_prog in egrep; do
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3205 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3206 # Check for GNU ac_path_EGREP and select it if it is found.
3207 # Check for GNU $ac_path_EGREP
3208 case `"$ac_path_EGREP" --version 2>&1` in
3210 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3213 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3216 cat "conftest.in" "conftest.in" >"conftest.tmp"
3217 mv "conftest.tmp" "conftest.in"
3218 cp "conftest.in" "conftest.nl"
3219 echo 'EGREP' >> "conftest.nl"
3220 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3222 ac_count=`expr $ac_count + 1`
3223 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3224 # Best one so far, save it but keep looking for a better one
3225 ac_cv_path_EGREP="$ac_path_EGREP"
3226 ac_path_EGREP_max=$ac_count
3228 # 10*(2^10) chars as input seems more than enough
3229 test $ac_count -gt 10 && break
3231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3235 $ac_path_EGREP_found && break 3
3245 EGREP="$ac_cv_path_EGREP"
3246 if test -z "$EGREP"; then
3247 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3248 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3249 { (exit 1); exit 1; }; }
3253 ac_cv_path_EGREP=$EGREP
3259 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3260 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3261 EGREP="$ac_cv_path_EGREP"
3265 { echo "$as_me:$LINENO: checking for AIX" >&5
3266 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3267 cat >conftest.$ac_ext <<_ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h. */
3278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3279 $EGREP "yes" >/dev/null 2>&1; then
3280 { echo "$as_me:$LINENO: result: yes" >&5
3281 echo "${ECHO_T}yes" >&6; }
3282 cat >>confdefs.h <<\_ACEOF
3283 #define _ALL_SOURCE 1
3287 { echo "$as_me:$LINENO: result: no" >&5
3288 echo "${ECHO_T}no" >&6; }
3294 if test $ac_cv_c_compiler_gnu = yes; then
3295 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3296 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3297 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 ac_pattern="Autoconf.*'x'"
3301 cat >conftest.$ac_ext <<_ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3311 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3312 ac_cv_prog_gcc_traditional=yes
3314 ac_cv_prog_gcc_traditional=no
3319 if test $ac_cv_prog_gcc_traditional = no; then
3320 cat >conftest.$ac_ext <<_ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3330 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3331 ac_cv_prog_gcc_traditional=yes
3337 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3338 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3339 if test $ac_cv_prog_gcc_traditional = yes; then
3340 CC="$CC -traditional"
3344 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3345 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3346 if test "${ac_cv_prog_suncc+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 cat > conftest.c <<EOF
3354 if { ac_try='${CC-cc} -E conftest.c'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3360 ac_cv_prog_suncc=yes
3365 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3366 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3367 if test -n "$ac_tool_prefix"; then
3368 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3369 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3372 if test "${ac_cv_prog_RANLIB+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 if test -n "$RANLIB"; then
3376 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3385 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 RANLIB=$ac_cv_prog_RANLIB
3396 if test -n "$RANLIB"; then
3397 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3398 echo "${ECHO_T}$RANLIB" >&6; }
3400 { echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6; }
3406 if test -z "$ac_cv_prog_RANLIB"; then
3407 ac_ct_RANLIB=$RANLIB
3408 # Extract the first word of "ranlib", so it can be a program name with args.
3409 set dummy ranlib; ac_word=$2
3410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3412 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 if test -n "$ac_ct_RANLIB"; then
3416 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 ac_cv_prog_ac_ct_RANLIB="ranlib"
3426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3436 if test -n "$ac_ct_RANLIB"; then
3437 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3438 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3440 { echo "$as_me:$LINENO: result: no" >&5
3441 echo "${ECHO_T}no" >&6; }
3444 if test "x$ac_ct_RANLIB" = x; then
3447 case $cross_compiling:$ac_tool_warned in
3449 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3450 whose name does not start with the host triplet. If you think this
3451 configuration is useful to you, please write to autoconf@gnu.org." >&5
3452 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3453 whose name does not start with the host triplet. If you think this
3454 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3455 ac_tool_warned=yes ;;
3457 RANLIB=$ac_ct_RANLIB
3460 RANLIB="$ac_cv_prog_RANLIB"
3464 abs_top_builddir=`pwd`
3470 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3471 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3472 if test "${ac_cv_header_stdc+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 cat >conftest.$ac_ext <<_ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3494 rm -f conftest.$ac_objext
3495 if { (ac_try="$ac_compile"
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_compile") 2>conftest.er1
3503 grep -v '^ *+' conftest.er1 >conftest.err
3505 cat conftest.err >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } && {
3508 test -z "$ac_c_werror_flag" ||
3509 test ! -s conftest.err
3510 } && test -s conftest.$ac_objext; then
3511 ac_cv_header_stdc=yes
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3516 ac_cv_header_stdc=no
3519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521 if test $ac_cv_header_stdc = yes; then
3522 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3523 cat >conftest.$ac_ext <<_ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3533 $EGREP "memchr" >/dev/null 2>&1; then
3536 ac_cv_header_stdc=no
3542 if test $ac_cv_header_stdc = yes; then
3543 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3544 cat >conftest.$ac_ext <<_ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3554 $EGREP "free" >/dev/null 2>&1; then
3557 ac_cv_header_stdc=no
3563 if test $ac_cv_header_stdc = yes; then
3564 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3565 if test "$cross_compiling" = yes; then
3568 cat >conftest.$ac_ext <<_ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3576 #if ((' ' & 0x0FF) == 0x020)
3577 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3578 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3580 # define ISLOWER(c) \
3581 (('a' <= (c) && (c) <= 'i') \
3582 || ('j' <= (c) && (c) <= 'r') \
3583 || ('s' <= (c) && (c) <= 'z'))
3584 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3587 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3592 for (i = 0; i < 256; i++)
3593 if (XOR (islower (i), ISLOWER (i))
3594 || toupper (i) != TOUPPER (i))
3599 rm -f conftest$ac_exeext
3600 if { (ac_try="$ac_link"
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_link") 2>&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3610 { (case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_try") 2>&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; }; then
3621 echo "$as_me: program exited with status $ac_status" >&5
3622 echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3626 ac_cv_header_stdc=no
3628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3634 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3635 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3636 if test $ac_cv_header_stdc = yes; then
3638 cat >>confdefs.h <<\_ACEOF
3639 #define STDC_HEADERS 1
3644 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3654 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3655 inttypes.h stdint.h unistd.h
3657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 cat >conftest.$ac_ext <<_ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3669 $ac_includes_default
3671 #include <$ac_header>
3673 rm -f conftest.$ac_objext
3674 if { (ac_try="$ac_compile"
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_compile") 2>conftest.er1
3682 grep -v '^ *+' conftest.er1 >conftest.err
3684 cat conftest.err >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } && {
3687 test -z "$ac_c_werror_flag" ||
3688 test ! -s conftest.err
3689 } && test -s conftest.$ac_objext; then
3690 eval "$as_ac_Header=yes"
3692 echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3695 eval "$as_ac_Header=no"
3698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 ac_res=`eval echo '${'$as_ac_Header'}'`
3701 { echo "$as_me:$LINENO: result: $ac_res" >&5
3702 echo "${ECHO_T}$ac_res" >&6; }
3703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3704 cat >>confdefs.h <<_ACEOF
3705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3713 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3714 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3715 if test "${ac_cv_c_bigendian+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 # See if sys/param.h defines the BYTE_ORDER macro.
3719 cat >conftest.$ac_ext <<_ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3725 #include <sys/types.h>
3726 #include <sys/param.h>
3731 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3732 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3740 rm -f conftest.$ac_objext
3741 if { (ac_try="$ac_compile"
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747 (eval "$ac_compile") 2>conftest.er1
3749 grep -v '^ *+' conftest.er1 >conftest.err
3751 cat conftest.err >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } && {
3754 test -z "$ac_c_werror_flag" ||
3755 test ! -s conftest.err
3756 } && test -s conftest.$ac_objext; then
3757 # It does; now see whether it defined to BIG_ENDIAN or not.
3758 cat >conftest.$ac_ext <<_ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3764 #include <sys/types.h>
3765 #include <sys/param.h>
3770 #if BYTE_ORDER != BIG_ENDIAN
3778 rm -f conftest.$ac_objext
3779 if { (ac_try="$ac_compile"
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3785 (eval "$ac_compile") 2>conftest.er1
3787 grep -v '^ *+' conftest.er1 >conftest.err
3789 cat conftest.err >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } && {
3792 test -z "$ac_c_werror_flag" ||
3793 test ! -s conftest.err
3794 } && test -s conftest.$ac_objext; then
3795 ac_cv_c_bigendian=yes
3797 echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.$ac_ext >&5
3800 ac_cv_c_bigendian=no
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 echo "$as_me: failed program was:" >&5
3806 sed 's/^/| /' conftest.$ac_ext >&5
3808 # It does not; compile a test program.
3809 if test "$cross_compiling" = yes; then
3810 # try to guess the endianness by grepping values into an object file
3811 ac_cv_c_bigendian=unknown
3812 cat >conftest.$ac_ext <<_ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3818 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3819 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3820 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3821 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3822 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3823 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3827 _ascii (); _ebcdic ();
3832 rm -f conftest.$ac_objext
3833 if { (ac_try="$ac_compile"
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_compile") 2>conftest.er1
3841 grep -v '^ *+' conftest.er1 >conftest.err
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } && {
3846 test -z "$ac_c_werror_flag" ||
3847 test ! -s conftest.err
3848 } && test -s conftest.$ac_objext; then
3849 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3850 ac_cv_c_bigendian=yes
3852 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3853 if test "$ac_cv_c_bigendian" = unknown; then
3854 ac_cv_c_bigendian=no
3856 # finding both strings is unlikely to happen, but who knows?
3857 ac_cv_c_bigendian=unknown
3861 echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 cat >conftest.$ac_ext <<_ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3875 $ac_includes_default
3880 /* Are we little or big endian? From Harbison&Steele. */
3884 char c[sizeof (long int)];
3887 return u.c[sizeof (long int) - 1] == 1;
3893 rm -f conftest$ac_exeext
3894 if { (ac_try="$ac_link"
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900 (eval "$ac_link") 2>&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3904 { (case "(($ac_try" in
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3909 (eval "$ac_try") 2>&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; }; then
3913 ac_cv_c_bigendian=no
3915 echo "$as_me: program exited with status $ac_status" >&5
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3920 ac_cv_c_bigendian=yes
3922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3931 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3932 case $ac_cv_c_bigendian in
3935 cat >>confdefs.h <<\_ACEOF
3936 #define WORDS_BIGENDIAN 1
3942 { { echo "$as_me:$LINENO: error: unknown endianness
3943 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3944 echo "$as_me: error: unknown endianness
3945 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3946 { (exit 1); exit 1; }; } ;;
3950 # Extract the first word of "gmake", so it can be a program name with args.
3951 set dummy gmake; ac_word=$2
3952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3954 if test "${ac_cv_prog_GMAKE+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 if test -n "$GMAKE"; then
3958 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 test -z "$as_dir" && as_dir=.
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3967 ac_cv_prog_GMAKE="yes"
3968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3978 GMAKE=$ac_cv_prog_GMAKE
3979 if test -n "$GMAKE"; then
3980 { echo "$as_me:$LINENO: result: $GMAKE" >&5
3981 echo "${ECHO_T}$GMAKE" >&6; }
3983 { echo "$as_me:$LINENO: result: no" >&5
3984 echo "${ECHO_T}no" >&6; }
3988 if test $GMAKE = no; then
3989 # Extract the first word of "make", so it can be a program name with args.
3990 set dummy make; ac_word=$2
3991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3993 if test "${ac_cv_path_MAKE+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4020 MAKE=$ac_cv_path_MAKE
4021 if test -n "$MAKE"; then
4022 { echo "$as_me:$LINENO: result: $MAKE" >&5
4023 echo "${ECHO_T}$MAKE" >&6; }
4025 { echo "$as_me:$LINENO: result: no" >&5
4026 echo "${ECHO_T}no" >&6; }
4031 # Extract the first word of "gmake", so it can be a program name with args.
4032 set dummy gmake; ac_word=$2
4033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4035 if test "${ac_cv_path_MAKE+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 test -z "$as_dir" && as_dir=.
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4050 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4062 MAKE=$ac_cv_path_MAKE
4063 if test -n "$MAKE"; then
4064 { echo "$as_me:$LINENO: result: $MAKE" >&5
4065 echo "${ECHO_T}$MAKE" >&6; }
4067 { echo "$as_me:$LINENO: result: no" >&5
4068 echo "${ECHO_T}no" >&6; }
4073 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4074 if test -z "$makever"; then
4075 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
4076 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4077 echo "$as_me: error: GNU Make is not installed. Please download and install it
4078 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4079 { (exit 1); exit 1; }; }
4082 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4083 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4084 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 ac_check_lib_save_LIBS=$LIBS
4089 cat >conftest.$ac_ext <<_ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4096 /* Override any GCC internal prototype to avoid an error.
4097 Use char because int might match the return type of a GCC
4098 builtin and then its argument prototype would still apply. */
4106 return lt_dlinit ();
4111 rm -f conftest.$ac_objext conftest$ac_exeext
4112 if { (ac_try="$ac_link"
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_link") 2>conftest.er1
4120 grep -v '^ *+' conftest.er1 >conftest.err
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } && {
4125 test -z "$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4127 } && test -s conftest$ac_exeext &&
4128 $as_test_x conftest$ac_exeext; then
4129 ac_cv_lib_ltdl_lt_dlinit=yes
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4134 ac_cv_lib_ltdl_lt_dlinit=no
4137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4138 conftest$ac_exeext conftest.$ac_ext
4139 LIBS=$ac_check_lib_save_LIBS
4141 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4142 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4143 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4144 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4146 if test x"$enable_ltdl_install" = xno; then
4147 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4148 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4150 enable_ltdl_install=yes
4155 if test x"$enable_ltdl_install" = x"yes"; then
4156 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4157 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4158 LTDLINCL='-I${top_srcdir}/''libltdl'
4160 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4164 # For backwards non-gettext consistent compatibility...
4168 if test x"$enable_ltdl_install" = x"yes"; then
4169 LTDL_SUBDIRS=libltdl
4173 # Check whether --enable-shared was given.
4174 if test "${enable_shared+set}" = set; then
4175 enableval=$enable_shared; p=${PACKAGE-default}
4177 yes) enable_shared=yes ;;
4178 no) enable_shared=no ;;
4181 # Look at the argument we got. We use all the common list separators.
4182 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4183 for pkg in $enableval; do
4185 if test "X$pkg" = "X$p"; then
4197 # Check whether --enable-static was given.
4198 if test "${enable_static+set}" = set; then
4199 enableval=$enable_static; p=${PACKAGE-default}
4201 yes) enable_static=yes ;;
4202 no) enable_static=no ;;
4205 # Look at the argument we got. We use all the common list separators.
4206 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4207 for pkg in $enableval; do
4209 if test "X$pkg" = "X$p"; then
4221 # Check whether --enable-fast-install was given.
4222 if test "${enable_fast_install+set}" = set; then
4223 enableval=$enable_fast_install; p=${PACKAGE-default}
4225 yes) enable_fast_install=yes ;;
4226 no) enable_fast_install=no ;;
4228 enable_fast_install=no
4229 # Look at the argument we got. We use all the common list separators.
4230 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4231 for pkg in $enableval; do
4233 if test "X$pkg" = "X$p"; then
4234 enable_fast_install=yes
4241 enable_fast_install=yes
4246 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4247 if test -f "$ac_dir/install-sh"; then
4249 ac_install_sh="$ac_aux_dir/install-sh -c"
4251 elif test -f "$ac_dir/install.sh"; then
4253 ac_install_sh="$ac_aux_dir/install.sh -c"
4255 elif test -f "$ac_dir/shtool"; then
4257 ac_install_sh="$ac_aux_dir/shtool install -c"
4261 if test -z "$ac_aux_dir"; then
4262 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4263 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4264 { (exit 1); exit 1; }; }
4267 # These three variables are undocumented and unsupported,
4268 # and are intended to be withdrawn in a future Autoconf release.
4269 # They can cause serious problems if a builder's source tree is in a directory
4270 # whose full name contains unusual characters.
4271 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4272 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4273 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4276 # Make sure we can run config.sub.
4277 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4278 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4279 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4280 { (exit 1); exit 1; }; }
4282 { echo "$as_me:$LINENO: checking build system type" >&5
4283 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4284 if test "${ac_cv_build+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 ac_build_alias=$build_alias
4288 test "x$ac_build_alias" = x &&
4289 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4290 test "x$ac_build_alias" = x &&
4291 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4292 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4293 { (exit 1); exit 1; }; }
4294 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4295 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4296 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4297 { (exit 1); exit 1; }; }
4300 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4301 echo "${ECHO_T}$ac_cv_build" >&6; }
4302 case $ac_cv_build in
4304 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4305 echo "$as_me: error: invalid value of canonical build" >&2;}
4306 { (exit 1); exit 1; }; };;
4309 ac_save_IFS=$IFS; IFS='-'
4315 # Remember, the first character of IFS is used to create $*,
4316 # except with old shells:
4319 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4322 { echo "$as_me:$LINENO: checking host system type" >&5
4323 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4324 if test "${ac_cv_host+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 if test "x$host_alias" = x; then
4328 ac_cv_host=$ac_cv_build
4330 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4331 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4332 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4333 { (exit 1); exit 1; }; }
4337 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4338 echo "${ECHO_T}$ac_cv_host" >&6; }
4341 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4342 echo "$as_me: error: invalid value of canonical host" >&2;}
4343 { (exit 1); exit 1; }; };;
4346 ac_save_IFS=$IFS; IFS='-'
4352 # Remember, the first character of IFS is used to create $*,
4353 # except with old shells:
4356 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4359 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4360 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4361 if test "${lt_cv_path_SED+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 # Loop through the user's path and test for sed and gsed.
4365 # Then use that list of sed's as ones to test for truncation.
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 test -z "$as_dir" && as_dir=.
4371 for lt_ac_prog in sed gsed; do
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4374 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4381 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4382 # along with /bin/sed that truncates output.
4383 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4384 test ! -f $lt_ac_sed && continue
4385 cat /dev/null > conftest.in
4387 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4388 # Check for GNU sed and select it if it is found.
4389 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4390 lt_cv_path_SED=$lt_ac_sed
4394 cat conftest.in conftest.in >conftest.tmp
4395 mv conftest.tmp conftest.in
4396 cp conftest.in conftest.nl
4398 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4399 cmp -s conftest.out conftest.nl || break
4400 # 10000 chars as input seems more than enough
4401 test $lt_ac_count -gt 10 && break
4402 lt_ac_count=`expr $lt_ac_count + 1`
4403 if test $lt_ac_count -gt $lt_ac_max; then
4404 lt_ac_max=$lt_ac_count
4405 lt_cv_path_SED=$lt_ac_sed
4413 { echo "$as_me:$LINENO: result: $SED" >&5
4414 echo "${ECHO_T}$SED" >&6; }
4417 # Check whether --with-gnu-ld was given.
4418 if test "${with_gnu_ld+set}" = set; then
4419 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4425 if test "$GCC" = yes; then
4426 # Check if gcc -print-prog-name=ld gives a path.
4427 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4428 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4431 # gcc leaves a trailing carriage return which upsets mingw
4432 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4434 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4437 # Accept absolute paths.
4439 re_direlt='/[^/][^/]*/\.\./'
4440 # Canonicalize the pathname of ld
4441 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4442 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4443 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4445 test -z "$LD" && LD="$ac_prog"
4448 # If it fails, then pretend we aren't using GCC.
4452 # If it is relative, then search for the first ld in PATH.
4456 elif test "$with_gnu_ld" = yes; then
4457 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4458 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4460 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4461 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4463 if test "${lt_cv_path_LD+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 if test -z "$LD"; then
4467 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4468 for ac_dir in $PATH; do
4470 test -z "$ac_dir" && ac_dir=.
4471 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4472 lt_cv_path_LD="$ac_dir/$ac_prog"
4473 # Check to see if the program is GNU ld. I'd rather use --version,
4474 # but apparently some variants of GNU ld only accept -v.
4475 # Break only if it was the GNU/non-GNU ld that we prefer.
4476 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4477 *GNU* | *'with BFD'*)
4478 test "$with_gnu_ld" != no && break
4481 test "$with_gnu_ld" != yes && break
4488 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4493 if test -n "$LD"; then
4494 { echo "$as_me:$LINENO: result: $LD" >&5
4495 echo "${ECHO_T}$LD" >&6; }
4497 { echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6; }
4500 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4501 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4502 { (exit 1); exit 1; }; }
4503 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4504 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4505 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4509 case `$LD -v 2>&1 </dev/null` in
4510 *GNU* | *'with BFD'*)
4511 lt_cv_prog_gnu_ld=yes
4514 lt_cv_prog_gnu_ld=no
4518 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4519 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4520 with_gnu_ld=$lt_cv_prog_gnu_ld
4523 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4524 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4525 if test "${lt_cv_ld_reload_flag+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 lt_cv_ld_reload_flag='-r'
4530 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4531 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4532 reload_flag=$lt_cv_ld_reload_flag
4533 case $reload_flag in
4535 *) reload_flag=" $reload_flag" ;;
4537 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4540 if test "$GCC" = yes; then
4541 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4543 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4548 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4549 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4550 if test "${lt_cv_path_NM+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 if test -n "$NM"; then
4554 # Let the user override the test.
4557 lt_nm_to_check="${ac_tool_prefix}nm"
4558 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4559 lt_nm_to_check="$lt_nm_to_check nm"
4561 for lt_tmp_nm in $lt_nm_to_check; do
4562 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4563 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4565 test -z "$ac_dir" && ac_dir=.
4566 tmp_nm="$ac_dir/$lt_tmp_nm"
4567 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4568 # Check to see if the nm accepts a BSD-compat flag.
4569 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4570 # nm: unknown option "B" ignored
4571 # Tru64's nm complains that /dev/null is an invalid object file
4572 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4573 */dev/null* | *'Invalid file or object type'*)
4574 lt_cv_path_NM="$tmp_nm -B"
4578 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4580 lt_cv_path_NM="$tmp_nm -p"
4584 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4585 continue # so that we can try to find one that supports BSD flags
4594 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4597 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4598 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4601 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4602 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4604 if test "$LN_S" = "ln -s"; then
4605 { echo "$as_me:$LINENO: result: yes" >&5
4606 echo "${ECHO_T}yes" >&6; }
4608 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4609 echo "${ECHO_T}no, using $LN_S" >&6; }
4612 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4613 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4614 if test "${lt_cv_deplibs_check_method+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 lt_cv_file_magic_cmd='$MAGIC_CMD'
4618 lt_cv_file_magic_test_file=
4619 lt_cv_deplibs_check_method='unknown'
4620 # Need to set the preceding variable on all platforms that support
4621 # interlibrary dependencies.
4622 # 'none' -- dependencies not supported.
4623 # `unknown' -- same as none, but documents that we really don't know.
4624 # 'pass_all' -- all dependencies passed with no checks.
4625 # 'test_compile' -- check by making test program.
4626 # 'file_magic [[regex]]' -- check by looking for files in library path
4627 # which responds to the $file_magic_cmd with a given extended regex.
4628 # If you have `file' or equivalent on your system and you're not sure
4629 # whether `pass_all' will *always* work, you probably want this one.
4633 lt_cv_deplibs_check_method=pass_all
4637 lt_cv_deplibs_check_method=pass_all
4641 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4642 lt_cv_file_magic_cmd='/usr/bin/file -L'
4643 lt_cv_file_magic_test_file=/shlib/libc.so
4647 # func_win32_libid is a shell function defined in ltmain.sh
4648 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4649 lt_cv_file_magic_cmd='func_win32_libid'
4653 # Base MSYS/MinGW do not provide the 'file' command needed by
4654 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4655 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4656 lt_cv_file_magic_cmd='$OBJDUMP -f'
4659 darwin* | rhapsody*)
4660 lt_cv_deplibs_check_method=pass_all
4663 freebsd* | kfreebsd*-gnu | dragonfly*)
4664 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4667 # Not sure whether the presence of OpenBSD here was a mistake.
4668 # Let's accept both of them until this is cleared up.
4669 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4670 lt_cv_file_magic_cmd=/usr/bin/file
4671 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4675 lt_cv_deplibs_check_method=pass_all
4680 lt_cv_deplibs_check_method=pass_all
4683 hpux10.20* | hpux11*)
4684 lt_cv_file_magic_cmd=/usr/bin/file
4687 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4688 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4691 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]'
4692 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4695 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4696 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4702 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4703 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4706 irix5* | irix6* | nonstopux*)
4708 *-32|*"-32 ") libmagic=32-bit;;
4709 *-n32|*"-n32 ") libmagic=N32;;
4710 *-64|*"-64 ") libmagic=64-bit;;
4711 *) libmagic=never-match;;
4713 lt_cv_deplibs_check_method=pass_all
4716 # This must be Linux ELF.
4718 lt_cv_deplibs_check_method=pass_all
4722 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4725 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4730 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4731 lt_cv_file_magic_cmd=/usr/bin/file
4732 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4736 lt_cv_deplibs_check_method=unknown
4740 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4741 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4747 osf3* | osf4* | osf5*)
4748 lt_cv_deplibs_check_method=pass_all
4752 lt_cv_deplibs_check_method=pass_all
4756 case $host_vendor in
4758 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]'
4759 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4762 lt_cv_deplibs_check_method=pass_all
4765 lt_cv_file_magic_cmd='/bin/file'
4766 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4769 lt_cv_file_magic_cmd='/bin/file'
4770 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4771 lt_cv_file_magic_test_file=/lib/libc.so
4774 lt_cv_deplibs_check_method=pass_all
4777 lt_cv_deplibs_check_method=pass_all
4782 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4783 lt_cv_deplibs_check_method=pass_all
4788 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4789 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4790 file_magic_cmd=$lt_cv_file_magic_cmd
4791 deplibs_check_method=$lt_cv_deplibs_check_method
4792 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4797 # If no C compiler was specified, use CC.
4800 # If no C compiler flags were specified, use CFLAGS.
4801 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4803 # Allow CC to be a program name with arguments.
4806 # Check whether --enable-libtool-lock was given.
4807 if test "${enable_libtool_lock+set}" = set; then
4808 enableval=$enable_libtool_lock;
4811 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4813 # Some flags need to be propagated to the compiler or linker for good
4817 # Find out which ABI we are using.
4818 echo 'int i;' > conftest.$ac_ext
4819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820 (eval $ac_compile) 2>&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; then
4824 case `/usr/bin/file conftest.$ac_objext` in
4836 # Find out which ABI we are using.
4837 echo '#line 4837 "configure"' > conftest.$ac_ext
4838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4839 (eval $ac_compile) 2>&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; then
4843 if test "$lt_cv_prog_gnu_ld" = yes; then
4844 case `/usr/bin/file conftest.$ac_objext` in
4846 LD="${LD-ld} -melf32bsmip"
4849 LD="${LD-ld} -melf32bmipn32"
4852 LD="${LD-ld} -melf64bmip"
4856 case `/usr/bin/file conftest.$ac_objext` in
4872 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4873 # Find out which ABI we are using.
4874 echo 'int i;' > conftest.$ac_ext
4875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4876 (eval $ac_compile) 2>&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; then
4880 case `/usr/bin/file conftest.o` in
4884 LD="${LD-ld} -m elf_i386"
4886 ppc64-*linux*|powerpc64-*linux*)
4887 LD="${LD-ld} -m elf32ppclinux"
4890 LD="${LD-ld} -m elf_s390"
4893 LD="${LD-ld} -m elf32_sparc"
4900 LD="${LD-ld} -m elf_x86_64"
4902 ppc*-*linux*|powerpc*-*linux*)
4903 LD="${LD-ld} -m elf64ppc"
4906 LD="${LD-ld} -m elf64_s390"
4909 LD="${LD-ld} -m elf64_sparc"
4919 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4920 SAVE_CFLAGS="$CFLAGS"
4921 CFLAGS="$CFLAGS -belf"
4922 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4923 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4924 if test "${lt_cv_cc_needs_belf+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 ac_cpp='$CPP $CPPFLAGS'
4929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4933 cat >conftest.$ac_ext <<_ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4948 rm -f conftest.$ac_objext conftest$ac_exeext
4949 if { (ac_try="$ac_link"
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955 (eval "$ac_link") 2>conftest.er1
4957 grep -v '^ *+' conftest.er1 >conftest.err
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } && {
4962 test -z "$ac_c_werror_flag" ||
4963 test ! -s conftest.err
4964 } && test -s conftest$ac_exeext &&
4965 $as_test_x conftest$ac_exeext; then
4966 lt_cv_cc_needs_belf=yes
4968 echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4971 lt_cv_cc_needs_belf=no
4974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4975 conftest$ac_exeext conftest.$ac_ext
4977 ac_cpp='$CPP $CPPFLAGS'
4978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4983 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4984 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4985 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4986 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4987 CFLAGS="$SAVE_CFLAGS"
4991 # Find out which ABI we are using.
4992 echo 'int i;' > conftest.$ac_ext
4993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4994 (eval $ac_compile) 2>&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; then
4998 case `/usr/bin/file conftest.o` in
5000 case $lt_cv_prog_gnu_ld in
5001 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5002 *) LD="${LD-ld} -64" ;;
5013 need_locks="$enable_libtool_lock"
5017 for ac_header in dlfcn.h
5019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 ac_res=`eval echo '${'$as_ac_Header'}'`
5027 { echo "$as_me:$LINENO: result: $ac_res" >&5
5028 echo "${ECHO_T}$ac_res" >&6; }
5030 # Is the header compilable?
5031 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5033 cat >conftest.$ac_ext <<_ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5039 $ac_includes_default
5040 #include <$ac_header>
5042 rm -f conftest.$ac_objext
5043 if { (ac_try="$ac_compile"
5045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046 *) ac_try_echo=$ac_try;;
5048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5049 (eval "$ac_compile") 2>conftest.er1
5051 grep -v '^ *+' conftest.er1 >conftest.err
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } && {
5056 test -z "$ac_c_werror_flag" ||
5057 test ! -s conftest.err
5058 } && test -s conftest.$ac_objext; then
5059 ac_header_compiler=yes
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5064 ac_header_compiler=no
5067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5069 echo "${ECHO_T}$ac_header_compiler" >&6; }
5071 # Is the header present?
5072 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5074 cat >conftest.$ac_ext <<_ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5080 #include <$ac_header>
5082 if { (ac_try="$ac_cpp conftest.$ac_ext"
5084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085 *) ac_try_echo=$ac_try;;
5087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5090 grep -v '^ *+' conftest.er1 >conftest.err
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } >/dev/null && {
5095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5096 test ! -s conftest.err
5098 ac_header_preproc=yes
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5103 ac_header_preproc=no
5106 rm -f conftest.err conftest.$ac_ext
5107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5108 echo "${ECHO_T}$ac_header_preproc" >&6; }
5110 # So? What about this header?
5111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5117 ac_header_preproc=yes
5120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5124 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5126 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5127 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5130 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 eval "$as_ac_Header=\$ac_header_preproc"
5142 ac_res=`eval echo '${'$as_ac_Header'}'`
5143 { echo "$as_me:$LINENO: result: $ac_res" >&5
5144 echo "${ECHO_T}$ac_res" >&6; }
5147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5148 cat >>confdefs.h <<_ACEOF
5149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5157 ac_cpp='$CXXCPP $CPPFLAGS'
5158 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5159 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5160 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5161 if test -z "$CXX"; then
5162 if test -n "$CCC"; then
5165 if test -n "$ac_tool_prefix"; then
5166 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5168 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5169 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5172 if test "${ac_cv_prog_CXX+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 if test -n "$CXX"; then
5176 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 if test -n "$CXX"; then
5197 { echo "$as_me:$LINENO: result: $CXX" >&5
5198 echo "${ECHO_T}$CXX" >&6; }
5200 { echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6; }
5205 test -n "$CXX" && break
5208 if test -z "$CXX"; then
5210 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5212 # Extract the first word of "$ac_prog", so it can be a program name with args.
5213 set dummy $ac_prog; ac_word=$2
5214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5216 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 if test -n "$ac_ct_CXX"; then
5220 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229 ac_cv_prog_ac_ct_CXX="$ac_prog"
5230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5240 if test -n "$ac_ct_CXX"; then
5241 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5242 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5244 { echo "$as_me:$LINENO: result: no" >&5
5245 echo "${ECHO_T}no" >&6; }
5249 test -n "$ac_ct_CXX" && break
5252 if test "x$ac_ct_CXX" = x; then
5255 case $cross_compiling:$ac_tool_warned in
5257 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5258 whose name does not start with the host triplet. If you think this
5259 configuration is useful to you, please write to autoconf@gnu.org." >&5
5260 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5261 whose name does not start with the host triplet. If you think this
5262 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5263 ac_tool_warned=yes ;;
5271 # Provide some information about the compiler.
5272 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5273 ac_compiler=`set X $ac_compile; echo $2`
5274 { (ac_try="$ac_compiler --version >&5"
5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280 (eval "$ac_compiler --version >&5") 2>&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }
5284 { (ac_try="$ac_compiler -v >&5"
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290 (eval "$ac_compiler -v >&5") 2>&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }
5294 { (ac_try="$ac_compiler -V >&5"
5296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297 *) ac_try_echo=$ac_try;;
5299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5300 (eval "$ac_compiler -V >&5") 2>&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }
5305 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5306 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5307 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 cat >conftest.$ac_ext <<_ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5328 rm -f conftest.$ac_objext
5329 if { (ac_try="$ac_compile"
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_compile") 2>conftest.er1
5337 grep -v '^ *+' conftest.er1 >conftest.err
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } && {
5342 test -z "$ac_cxx_werror_flag" ||
5343 test ! -s conftest.err
5344 } && test -s conftest.$ac_objext; then
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5357 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5358 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5359 GXX=`test $ac_compiler_gnu = yes && echo yes`
5360 ac_test_CXXFLAGS=${CXXFLAGS+set}
5361 ac_save_CXXFLAGS=$CXXFLAGS
5362 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5363 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5364 if test "${ac_cv_prog_cxx_g+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5368 ac_cxx_werror_flag=yes
5371 cat >conftest.$ac_ext <<_ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5386 rm -f conftest.$ac_objext
5387 if { (ac_try="$ac_compile"
5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390 *) ac_try_echo=$ac_try;;
5392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393 (eval "$ac_compile") 2>conftest.er1
5395 grep -v '^ *+' conftest.er1 >conftest.err
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } && {
5400 test -z "$ac_cxx_werror_flag" ||
5401 test ! -s conftest.err
5402 } && test -s conftest.$ac_objext; then
5403 ac_cv_prog_cxx_g=yes
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5409 cat >conftest.$ac_ext <<_ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5424 rm -f conftest.$ac_objext
5425 if { (ac_try="$ac_compile"
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_compile") 2>conftest.er1
5433 grep -v '^ *+' conftest.er1 >conftest.err
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } && {
5438 test -z "$ac_cxx_werror_flag" ||
5439 test ! -s conftest.err
5440 } && test -s conftest.$ac_objext; then
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5446 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5448 cat >conftest.$ac_ext <<_ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5463 rm -f conftest.$ac_objext
5464 if { (ac_try="$ac_compile"
5466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467 *) ac_try_echo=$ac_try;;
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470 (eval "$ac_compile") 2>conftest.er1
5472 grep -v '^ *+' conftest.er1 >conftest.err
5474 cat conftest.err >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } && {
5477 test -z "$ac_cxx_werror_flag" ||
5478 test ! -s conftest.err
5479 } && test -s conftest.$ac_objext; then
5480 ac_cv_prog_cxx_g=yes
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5497 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5498 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5499 if test "$ac_test_CXXFLAGS" = set; then
5500 CXXFLAGS=$ac_save_CXXFLAGS
5501 elif test $ac_cv_prog_cxx_g = yes; then
5502 if test "$GXX" = yes; then
5508 if test "$GXX" = yes; then
5515 ac_cpp='$CXXCPP $CPPFLAGS'
5516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5522 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5523 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5524 (test "X$CXX" != "Xg++"))) ; then
5526 ac_cpp='$CXXCPP $CPPFLAGS'
5527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5530 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5531 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5532 if test -z "$CXXCPP"; then
5533 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5534 echo $ECHO_N "(cached) $ECHO_C" >&6
5536 # Double quotes because CXXCPP needs to be expanded
5537 for CXXCPP in "$CXX -E" "/lib/cpp"
5540 for ac_cxx_preproc_warn_flag in '' yes
5542 # Use a header file that comes with gcc, so configuring glibc
5543 # with a fresh cross-compiler works.
5544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5545 # <limits.h> exists even on freestanding compilers.
5546 # On the NeXT, cc -E runs the code through the compiler's parser,
5547 # not just through cpp. "Syntax error" is here to catch this case.
5548 cat >conftest.$ac_ext <<_ACEOF
5551 cat confdefs.h >>conftest.$ac_ext
5552 cat >>conftest.$ac_ext <<_ACEOF
5553 /* end confdefs.h. */
5555 # include <limits.h>
5557 # include <assert.h>
5561 if { (ac_try="$ac_cpp conftest.$ac_ext"
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5569 grep -v '^ *+' conftest.er1 >conftest.err
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } >/dev/null && {
5574 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5575 test ! -s conftest.err
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5582 # Broken: fails on valid input.
5586 rm -f conftest.err conftest.$ac_ext
5588 # OK, works on sane cases. Now check whether nonexistent headers
5589 # can be detected and how.
5590 cat >conftest.$ac_ext <<_ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5596 #include <ac_nonexistent.h>
5598 if { (ac_try="$ac_cpp conftest.$ac_ext"
5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5606 grep -v '^ *+' conftest.er1 >conftest.err
5608 cat conftest.err >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } >/dev/null && {
5611 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5612 test ! -s conftest.err
5614 # Broken: success on invalid input.
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5620 # Passes both tests.
5625 rm -f conftest.err conftest.$ac_ext
5628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5629 rm -f conftest.err conftest.$ac_ext
5630 if $ac_preproc_ok; then
5635 ac_cv_prog_CXXCPP=$CXXCPP
5638 CXXCPP=$ac_cv_prog_CXXCPP
5640 ac_cv_prog_CXXCPP=$CXXCPP
5642 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5643 echo "${ECHO_T}$CXXCPP" >&6; }
5645 for ac_cxx_preproc_warn_flag in '' yes
5647 # Use a header file that comes with gcc, so configuring glibc
5648 # with a fresh cross-compiler works.
5649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5650 # <limits.h> exists even on freestanding compilers.
5651 # On the NeXT, cc -E runs the code through the compiler's parser,
5652 # not just through cpp. "Syntax error" is here to catch this case.
5653 cat >conftest.$ac_ext <<_ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5660 # include <limits.h>
5662 # include <assert.h>
5666 if { (ac_try="$ac_cpp conftest.$ac_ext"
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5674 grep -v '^ *+' conftest.er1 >conftest.err
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } >/dev/null && {
5679 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5680 test ! -s conftest.err
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5687 # Broken: fails on valid input.
5691 rm -f conftest.err conftest.$ac_ext
5693 # OK, works on sane cases. Now check whether nonexistent headers
5694 # can be detected and how.
5695 cat >conftest.$ac_ext <<_ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 #include <ac_nonexistent.h>
5703 if { (ac_try="$ac_cpp conftest.$ac_ext"
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5711 grep -v '^ *+' conftest.er1 >conftest.err
5713 cat conftest.err >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } >/dev/null && {
5716 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5717 test ! -s conftest.err
5719 # Broken: success on invalid input.
5722 echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5725 # Passes both tests.
5730 rm -f conftest.err conftest.$ac_ext
5733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5734 rm -f conftest.err conftest.$ac_ext
5735 if $ac_preproc_ok; then
5738 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5739 See \`config.log' for more details." >&5
5740 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5741 See \`config.log' for more details." >&2;}
5742 { (exit 1); exit 1; }; }
5746 ac_cpp='$CXXCPP $CPPFLAGS'
5747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5755 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5756 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5757 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5758 if test -n "$ac_tool_prefix"; then
5759 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5765 if test "${ac_cv_prog_F77+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 if test -n "$F77"; then
5769 ac_cv_prog_F77="$F77" # Let the user override the test.
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5778 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 if test -n "$F77"; then
5790 { echo "$as_me:$LINENO: result: $F77" >&5
5791 echo "${ECHO_T}$F77" >&6; }
5793 { echo "$as_me:$LINENO: result: no" >&5
5794 echo "${ECHO_T}no" >&6; }
5798 test -n "$F77" && break
5801 if test -z "$F77"; then
5803 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5805 # Extract the first word of "$ac_prog", so it can be a program name with args.
5806 set dummy $ac_prog; ac_word=$2
5807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5809 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 if test -n "$ac_ct_F77"; then
5813 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5822 ac_cv_prog_ac_ct_F77="$ac_prog"
5823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5833 if test -n "$ac_ct_F77"; then
5834 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5835 echo "${ECHO_T}$ac_ct_F77" >&6; }
5837 { echo "$as_me:$LINENO: result: no" >&5
5838 echo "${ECHO_T}no" >&6; }
5842 test -n "$ac_ct_F77" && break
5845 if test "x$ac_ct_F77" = x; then
5848 case $cross_compiling:$ac_tool_warned in
5850 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5851 whose name does not start with the host triplet. If you think this
5852 configuration is useful to you, please write to autoconf@gnu.org." >&5
5853 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5854 whose name does not start with the host triplet. If you think this
5855 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5856 ac_tool_warned=yes ;;
5863 # Provide some information about the compiler.
5864 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5865 ac_compiler=`set X $ac_compile; echo $2`
5866 { (ac_try="$ac_compiler --version >&5"
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_compiler --version >&5") 2>&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }
5876 { (ac_try="$ac_compiler -v >&5"
5878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879 *) ac_try_echo=$ac_try;;
5881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5882 (eval "$ac_compiler -v >&5") 2>&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }
5886 { (ac_try="$ac_compiler -V >&5"
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_compiler -V >&5") 2>&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }
5898 # If we don't use `.F' as extension, the preprocessor is not run on the
5899 # input file. (Note that this only needs to work for GNU compilers.)
5902 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5903 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5904 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 cat >conftest.$ac_ext <<_ACEOF
5915 rm -f conftest.$ac_objext
5916 if { (ac_try="$ac_compile"
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922 (eval "$ac_compile") 2>conftest.er1
5924 grep -v '^ *+' conftest.er1 >conftest.err
5926 cat conftest.err >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } && {
5929 test -z "$ac_f77_werror_flag" ||
5930 test ! -s conftest.err
5931 } && test -s conftest.$ac_objext; then
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5944 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5945 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5947 ac_test_FFLAGS=${FFLAGS+set}
5948 ac_save_FFLAGS=$FFLAGS
5950 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5951 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5952 if test "${ac_cv_prog_f77_g+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 cat >conftest.$ac_ext <<_ACEOF
5961 rm -f conftest.$ac_objext
5962 if { (ac_try="$ac_compile"
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_compile") 2>conftest.er1
5970 grep -v '^ *+' conftest.er1 >conftest.err
5972 cat conftest.err >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && {
5975 test -z "$ac_f77_werror_flag" ||
5976 test ! -s conftest.err
5977 } && test -s conftest.$ac_objext; then
5978 ac_cv_prog_f77_g=yes
5980 echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5989 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5990 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5991 if test "$ac_test_FFLAGS" = set; then
5992 FFLAGS=$ac_save_FFLAGS
5993 elif test $ac_cv_prog_f77_g = yes; then
5994 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6000 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6007 G77=`test $ac_compiler_gnu = yes && echo yes`
6009 ac_cpp='$CPP $CPPFLAGS'
6010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6016 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6018 # find the maximum length of command line arguments
6019 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6020 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6021 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 # On DJGPP, this test can blow up pretty badly due to problems in libc
6030 # (any single argument exceeding 2000 bytes causes a buffer overrun
6031 # during glob expansion). Even if it were fixed, the result of this
6032 # check would be larger than it should be.
6033 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6037 # Under GNU Hurd, this test is not required because there is
6038 # no limit to the length of command line arguments.
6039 # Libtool will interpret -1 as no limit whatsoever
6040 lt_cv_sys_max_cmd_len=-1;
6044 # On Win9x/ME, this test blows up -- it succeeds, but takes
6045 # about 5 minutes as the teststring grows exponentially.
6046 # Worse, since 9x/ME are not pre-emptively multitasking,
6047 # you end up with a "frozen" computer, even though with patience
6048 # the test eventually succeeds (with a max line length of 256k).
6049 # Instead, let's just punt: use the minimum linelength reported by
6050 # all of the supported platforms: 8192 (on NT/2K/XP).
6051 lt_cv_sys_max_cmd_len=8192;
6055 # On AmigaOS with pdksh, this test takes hours, literally.
6056 # So we just punt and use a minimum line length of 8192.
6057 lt_cv_sys_max_cmd_len=8192;
6060 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6061 # This has been around since 386BSD, at least. Likely further.
6062 if test -x /sbin/sysctl; then
6063 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6064 elif test -x /usr/sbin/sysctl; then
6065 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6067 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6069 # And add a safety zone
6070 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6071 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6075 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6076 lt_cv_sys_max_cmd_len=196608
6080 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6081 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6082 # nice to cause kernel panics so lets avoid the loop below.
6083 # First set a reasonable default.
6084 lt_cv_sys_max_cmd_len=16384
6086 if test -x /sbin/sysconfig; then
6087 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6088 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6093 lt_cv_sys_max_cmd_len=102400
6095 sysv5* | sco5v6* | sysv4.2uw2*)
6096 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6097 if test -n "$kargmax"; then
6098 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6100 lt_cv_sys_max_cmd_len=32768
6104 # If test is not a shell built-in, we'll probably end up computing a
6105 # maximum length that is only half of the actual maximum length, but
6107 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6108 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6109 = "XX$teststring") >/dev/null 2>&1 &&
6110 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6111 lt_cv_sys_max_cmd_len=$new_result &&
6112 test $i != 17 # 1/2 MB should be enough
6115 teststring=$teststring$teststring
6118 # Add a significant safety factor because C++ compilers can tack on massive
6119 # amounts of additional arguments before passing them to the linker.
6120 # It appears as though 1/2 is a usable value.
6121 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6127 if test -n $lt_cv_sys_max_cmd_len ; then
6128 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6129 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6131 { echo "$as_me:$LINENO: result: none" >&5
6132 echo "${ECHO_T}none" >&6; }
6138 # Check for command to grab the raw symbol name followed by C symbol from nm.
6139 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6140 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6141 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 # These are sane defaults that work on at least a few old systems.
6146 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6148 # Character class describing NM global symbol codes.
6149 symcode='[BCDEGRST]'
6151 # Regexp to match symbols that can be accessed directly from C.
6152 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6154 # Transform an extracted symbol line into a proper C declaration
6155 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6157 # Transform an extracted symbol line into symbol name and symbol address
6158 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'"
6160 # Define system-specific variables.
6165 cygwin* | mingw* | pw32*)
6166 symcode='[ABCDGISTW]'
6168 hpux*) # Its linker distinguishes data from code symbols
6169 if test "$host_cpu" = ia64; then
6170 symcode='[ABCDEGRST]'
6172 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6173 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'"
6176 if test "$host_cpu" = ia64; then
6177 symcode='[ABCDGIRSTW]'
6178 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6179 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'"
6183 symcode='[BCDEGRST]'
6186 symcode='[BCDEGQRST]'
6197 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6205 # Handle CRLF in mingw tool chain
6209 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6213 # If we're using GNU nm, then use its standard symbol codes.
6214 case `$NM -V 2>&1` in
6215 *GNU* | *'with BFD'*)
6216 symcode='[ABCDGIRSTW]' ;;
6219 # Try without a prefix undercore, then with it.
6220 for ac_symprfx in "" "_"; do
6222 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6223 symxfrm="\\1 $ac_symprfx\\2 \\2"
6225 # Write the raw and C identifiers.
6226 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6228 # Check to see that the pipe works correctly.
6232 cat > conftest.$ac_ext <<EOF
6237 void nm_test_func(){}
6241 int main(){nm_test_var='a';nm_test_func();return(0);}
6244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6245 (eval $ac_compile) 2>&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; then
6249 # Now try to grab the symbols.
6251 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6252 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } && test -s "$nlist"; then
6256 # Try sorting and uniquifying the output.
6257 if sort "$nlist" | uniq > "$nlist"T; then
6258 mv -f "$nlist"T "$nlist"
6263 # Make sure that we snagged all the symbols we need.
6264 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6265 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6266 cat <<EOF > conftest.$ac_ext
6272 # Now generate the symbol file.
6273 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6275 cat <<EOF >> conftest.$ac_ext
6276 #if defined (__STDC__) && __STDC__
6277 # define lt_ptr_t void *
6279 # define lt_ptr_t char *
6283 /* The mapping between symbol names and symbols. */
6288 lt_preloaded_symbols[] =
6291 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6292 cat <<\EOF >> conftest.$ac_ext
6300 # Now try linking the two files.
6301 mv conftest.$ac_objext conftstm.$ac_objext
6302 lt_save_LIBS="$LIBS"
6303 lt_save_CFLAGS="$CFLAGS"
6304 LIBS="conftstm.$ac_objext"
6305 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6307 (eval $ac_link) 2>&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6313 LIBS="$lt_save_LIBS"
6314 CFLAGS="$lt_save_CFLAGS"
6316 echo "cannot find nm_test_func in $nlist" >&5
6319 echo "cannot find nm_test_var in $nlist" >&5
6322 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6325 echo "$progname: failed program was:" >&5
6326 cat conftest.$ac_ext >&5
6328 rm -f conftest* conftst*
6330 # Do not use the global_symbol_pipe unless it works.
6331 if test "$pipe_works" = yes; then
6334 lt_cv_sys_global_symbol_pipe=
6340 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6341 lt_cv_sys_global_symbol_to_cdecl=
6343 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6344 { echo "$as_me:$LINENO: result: failed" >&5
6345 echo "${ECHO_T}failed" >&6; }
6347 { echo "$as_me:$LINENO: result: ok" >&5
6348 echo "${ECHO_T}ok" >&6; }
6351 { echo "$as_me:$LINENO: checking for objdir" >&5
6352 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6353 if test "${lt_cv_objdir+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 rm -f .libs 2>/dev/null
6357 mkdir .libs 2>/dev/null
6358 if test -d .libs; then
6361 # MS-DOS does not allow filenames that begin with a dot.
6364 rmdir .libs 2>/dev/null
6366 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6367 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6368 objdir=$lt_cv_objdir
6376 # AIX sometimes has problems with the GCC collect2 program. For some
6377 # reason, if we set the COLLECT_NAMES environment variable, the problems
6378 # vanish in a puff of smoke.
6379 if test "X${COLLECT_NAMES+set}" != Xset; then
6381 export COLLECT_NAMES
6386 # Sed substitution that helps us do robust quoting. It backslashifies
6387 # metacharacters that are still active within double-quoted strings.
6388 Xsed='sed -e 1s/^X//'
6389 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6391 # Same as above, but do not quote variable references.
6392 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6394 # Sed substitution to delay expansion of an escaped shell variable in a
6395 # double_quote_subst'ed string.
6396 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6398 # Sed substitution to avoid accidental globbing in evaled expressions
6399 no_glob_subst='s/\*/\\\*/g'
6405 default_ofile=libtool
6406 can_build_shared=yes
6408 # All known linkers require a `.a' archive for static linking (except MSVC,
6409 # which needs '.lib').
6411 ltmain="$ac_aux_dir/ltmain.sh"
6412 ofile="$default_ofile"
6413 with_gnu_ld="$lt_cv_prog_gnu_ld"
6415 if test -n "$ac_tool_prefix"; then
6416 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6417 set dummy ${ac_tool_prefix}ar; ac_word=$2
6418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6420 if test "${ac_cv_prog_AR+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 if test -n "$AR"; then
6424 ac_cv_prog_AR="$AR" # Let the user override the test.
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6433 ac_cv_prog_AR="${ac_tool_prefix}ar"
6434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6444 if test -n "$AR"; then
6445 { echo "$as_me:$LINENO: result: $AR" >&5
6446 echo "${ECHO_T}$AR" >&6; }
6448 { echo "$as_me:$LINENO: result: no" >&5
6449 echo "${ECHO_T}no" >&6; }
6454 if test -z "$ac_cv_prog_AR"; then
6456 # Extract the first word of "ar", so it can be a program name with args.
6457 set dummy ar; ac_word=$2
6458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6460 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 if test -n "$ac_ct_AR"; then
6464 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6473 ac_cv_prog_ac_ct_AR="ar"
6474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6484 if test -n "$ac_ct_AR"; then
6485 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6486 echo "${ECHO_T}$ac_ct_AR" >&6; }
6488 { echo "$as_me:$LINENO: result: no" >&5
6489 echo "${ECHO_T}no" >&6; }
6492 if test "x$ac_ct_AR" = x; then
6495 case $cross_compiling:$ac_tool_warned in
6497 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6498 whose name does not start with the host triplet. If you think this
6499 configuration is useful to you, please write to autoconf@gnu.org." >&5
6500 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6501 whose name does not start with the host triplet. If you think this
6502 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6503 ac_tool_warned=yes ;;
6511 if test -n "$ac_tool_prefix"; then
6512 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6513 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6516 if test "${ac_cv_prog_RANLIB+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 if test -n "$RANLIB"; then
6520 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 RANLIB=$ac_cv_prog_RANLIB
6540 if test -n "$RANLIB"; then
6541 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6542 echo "${ECHO_T}$RANLIB" >&6; }
6544 { echo "$as_me:$LINENO: result: no" >&5
6545 echo "${ECHO_T}no" >&6; }
6550 if test -z "$ac_cv_prog_RANLIB"; then
6551 ac_ct_RANLIB=$RANLIB
6552 # Extract the first word of "ranlib", so it can be a program name with args.
6553 set dummy ranlib; ac_word=$2
6554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6556 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 if test -n "$ac_ct_RANLIB"; then
6560 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6569 ac_cv_prog_ac_ct_RANLIB="ranlib"
6570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6579 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6580 if test -n "$ac_ct_RANLIB"; then
6581 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6582 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6584 { echo "$as_me:$LINENO: result: no" >&5
6585 echo "${ECHO_T}no" >&6; }
6588 if test "x$ac_ct_RANLIB" = x; then
6591 case $cross_compiling:$ac_tool_warned in
6593 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6594 whose name does not start with the host triplet. If you think this
6595 configuration is useful to you, please write to autoconf@gnu.org." >&5
6596 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6597 whose name does not start with the host triplet. If you think this
6598 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6599 ac_tool_warned=yes ;;
6601 RANLIB=$ac_ct_RANLIB
6604 RANLIB="$ac_cv_prog_RANLIB"
6607 if test -n "$ac_tool_prefix"; then
6608 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6609 set dummy ${ac_tool_prefix}strip; ac_word=$2
6610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6612 if test "${ac_cv_prog_STRIP+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 if test -n "$STRIP"; then
6616 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 STRIP=$ac_cv_prog_STRIP
6636 if test -n "$STRIP"; then
6637 { echo "$as_me:$LINENO: result: $STRIP" >&5
6638 echo "${ECHO_T}$STRIP" >&6; }
6640 { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6646 if test -z "$ac_cv_prog_STRIP"; then
6648 # Extract the first word of "strip", so it can be a program name with args.
6649 set dummy strip; ac_word=$2
6650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6652 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 if test -n "$ac_ct_STRIP"; then
6656 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6665 ac_cv_prog_ac_ct_STRIP="strip"
6666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6676 if test -n "$ac_ct_STRIP"; then
6677 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6678 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6680 { echo "$as_me:$LINENO: result: no" >&5
6681 echo "${ECHO_T}no" >&6; }
6684 if test "x$ac_ct_STRIP" = x; then
6687 case $cross_compiling:$ac_tool_warned in
6689 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6690 whose name does not start with the host triplet. If you think this
6691 configuration is useful to you, please write to autoconf@gnu.org." >&5
6692 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6693 whose name does not start with the host triplet. If you think this
6694 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6695 ac_tool_warned=yes ;;
6700 STRIP="$ac_cv_prog_STRIP"
6705 old_CFLAGS="$CFLAGS"
6707 # Set sane defaults for various variables
6708 test -z "$AR" && AR=ar
6709 test -z "$AR_FLAGS" && AR_FLAGS=cru
6710 test -z "$AS" && AS=as
6711 test -z "$CC" && CC=cc
6712 test -z "$LTCC" && LTCC=$CC
6713 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6714 test -z "$DLLTOOL" && DLLTOOL=dlltool
6715 test -z "$LD" && LD=ld
6716 test -z "$LN_S" && LN_S="ln -s"
6717 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6718 test -z "$NM" && NM=nm
6719 test -z "$SED" && SED=sed
6720 test -z "$OBJDUMP" && OBJDUMP=objdump
6721 test -z "$RANLIB" && RANLIB=:
6722 test -z "$STRIP" && STRIP=:
6723 test -z "$ac_objext" && ac_objext=o
6725 # Determine commands to create old-style static archives.
6726 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6727 old_postinstall_cmds='chmod 644 $oldlib'
6728 old_postuninstall_cmds=
6730 if test -n "$RANLIB"; then
6733 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6736 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6739 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6742 for cc_temp in $compiler""; do
6744 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6745 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6750 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6753 # Only perform the check for file, if the check method requires it
6754 case $deplibs_check_method in
6756 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6757 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6758 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6759 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6767 lt_save_MAGIC_CMD="$MAGIC_CMD"
6768 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6769 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6770 for ac_dir in $ac_dummy; do
6772 test -z "$ac_dir" && ac_dir=.
6773 if test -f $ac_dir/${ac_tool_prefix}file; then
6774 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6775 if test -n "$file_magic_test_file"; then
6776 case $deplibs_check_method in
6778 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6779 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6780 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6781 $EGREP "$file_magic_regex" > /dev/null; then
6786 *** Warning: the command libtool uses to detect shared libraries,
6787 *** $file_magic_cmd, produces output that libtool cannot recognize.
6788 *** The result is that libtool may fail to recognize shared libraries
6789 *** as such. This will affect the creation of libtool libraries that
6790 *** depend on shared libraries, but programs linked with such libtool
6791 *** libraries will work regardless of this problem. Nevertheless, you
6792 *** may want to report the problem to your system manager and/or to
6793 *** bug-libtool@gnu.org
6803 MAGIC_CMD="$lt_save_MAGIC_CMD"
6808 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6809 if test -n "$MAGIC_CMD"; then
6810 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6811 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6813 { echo "$as_me:$LINENO: result: no" >&5
6814 echo "${ECHO_T}no" >&6; }
6817 if test -z "$lt_cv_path_MAGIC_CMD"; then
6818 if test -n "$ac_tool_prefix"; then
6819 { echo "$as_me:$LINENO: checking for file" >&5
6820 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6821 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6829 lt_save_MAGIC_CMD="$MAGIC_CMD"
6830 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6831 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6832 for ac_dir in $ac_dummy; do
6834 test -z "$ac_dir" && ac_dir=.
6835 if test -f $ac_dir/file; then
6836 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6837 if test -n "$file_magic_test_file"; then
6838 case $deplibs_check_method in
6840 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6841 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6842 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6843 $EGREP "$file_magic_regex" > /dev/null; then
6848 *** Warning: the command libtool uses to detect shared libraries,
6849 *** $file_magic_cmd, produces output that libtool cannot recognize.
6850 *** The result is that libtool may fail to recognize shared libraries
6851 *** as such. This will affect the creation of libtool libraries that
6852 *** depend on shared libraries, but programs linked with such libtool
6853 *** libraries will work regardless of this problem. Nevertheless, you
6854 *** may want to report the problem to your system manager and/or to
6855 *** bug-libtool@gnu.org
6865 MAGIC_CMD="$lt_save_MAGIC_CMD"
6870 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6871 if test -n "$MAGIC_CMD"; then
6872 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6873 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6875 { echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6; }
6891 # Check whether --enable-libtool-lock was given.
6892 if test "${enable_libtool_lock+set}" = set; then
6893 enableval=$enable_libtool_lock;
6896 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6899 # Check whether --with-pic was given.
6900 if test "${with_pic+set}" = set; then
6901 withval=$with_pic; pic_mode="$withval"
6906 test -z "$pic_mode" && pic_mode=default
6908 # Use C for the default configuration in the libtool script
6912 ac_cpp='$CPP $CPPFLAGS'
6913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6918 # Source file extension for C test sources.
6921 # Object file extension for compiled C test sources.
6925 # Code to be used in simple compile tests
6926 lt_simple_compile_test_code="int some_variable = 0;\n"
6928 # Code to be used in simple link tests
6929 lt_simple_link_test_code='int main(){return(0);}\n'
6932 # If no C compiler was specified, use CC.
6935 # If no C compiler flags were specified, use CFLAGS.
6936 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6938 # Allow CC to be a program name with arguments.
6942 # save warnings/boilerplate of simple test code
6943 ac_outfile=conftest.$ac_objext
6944 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6945 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6946 _lt_compiler_boilerplate=`cat conftest.err`
6949 ac_outfile=conftest.$ac_objext
6950 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6951 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6952 _lt_linker_boilerplate=`cat conftest.err`
6957 ## There is no encapsulation within the following macros, do not change
6958 ## the running order or otherwise move them around unless you know exactly
6959 ## what you are doing...
6961 lt_prog_compiler_no_builtin_flag=
6963 if test "$GCC" = yes; then
6964 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6967 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6968 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6969 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 lt_cv_prog_compiler_rtti_exceptions=no
6973 ac_outfile=conftest.$ac_objext
6974 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6975 lt_compiler_flag="-fno-rtti -fno-exceptions"
6976 # Insert the option either (1) after the last *FLAGS variable, or
6977 # (2) before a word containing "conftest.", or (3) at the end.
6978 # Note that $ac_compile itself does not contain backslashes and begins
6979 # with a dollar sign (not a hyphen), so the echo should work correctly.
6980 # The option is referenced via a variable to avoid confusing sed.
6981 lt_compile=`echo "$ac_compile" | $SED \
6982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6984 -e 's:$: $lt_compiler_flag:'`
6985 (eval echo "\"\$as_me:6985: $lt_compile\"" >&5)
6986 (eval "$lt_compile" 2>conftest.err)
6988 cat conftest.err >&5
6989 echo "$as_me:6989: \$? = $ac_status" >&5
6990 if (exit $ac_status) && test -s "$ac_outfile"; then
6991 # The compiler can only warn and ignore the option if not recognized
6992 # So say no if there are warnings other than the usual output.
6993 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6995 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6996 lt_cv_prog_compiler_rtti_exceptions=yes
7002 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7003 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7005 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7006 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7013 lt_prog_compiler_wl=
7014 lt_prog_compiler_pic=
7015 lt_prog_compiler_static=
7017 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7018 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7020 if test "$GCC" = yes; then
7021 lt_prog_compiler_wl='-Wl,'
7022 lt_prog_compiler_static='-static'
7026 # All AIX code is PIC.
7027 if test "$host_cpu" = ia64; then
7028 # AIX 5 now supports IA64 processor
7029 lt_prog_compiler_static='-Bstatic'
7034 # FIXME: we need at least 68020 code to build shared libraries, but
7035 # adding the `-m68020' flag to GCC prevents building anything better,
7037 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7040 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7041 # PIC is the default for these OSes.
7044 mingw* | pw32* | os2*)
7045 # This hack is so that the source file can tell whether it is being
7046 # built for inclusion in a dll (and should export symbols for example).
7047 lt_prog_compiler_pic='-DDLL_EXPORT'
7050 darwin* | rhapsody*)
7051 # PIC is the default on this platform
7052 # Common symbols not allowed in MH_DYLIB files
7053 lt_prog_compiler_pic='-fno-common'
7057 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7058 # Instead, we relocate shared libraries at runtime.
7062 # Just because we use GCC doesn't mean we suddenly get shared libraries
7063 # on systems that don't support them.
7064 lt_prog_compiler_can_build_shared=no
7069 if test -d /usr/nec; then
7070 lt_prog_compiler_pic=-Kconform_pic
7075 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7082 lt_prog_compiler_pic='-fPIC'
7088 lt_prog_compiler_pic='-fPIC'
7092 # PORTME Check for flag to pass linker flags through the system compiler.
7095 lt_prog_compiler_wl='-Wl,'
7096 if test "$host_cpu" = ia64; then
7097 # AIX 5 now supports IA64 processor
7098 lt_prog_compiler_static='-Bstatic'
7100 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7104 # PIC is the default on this platform
7105 # Common symbols not allowed in MH_DYLIB files
7106 case $cc_basename in
7108 lt_prog_compiler_pic='-qnocommon'
7109 lt_prog_compiler_wl='-Wl,'
7114 mingw* | pw32* | os2*)
7115 # This hack is so that the source file can tell whether it is being
7116 # built for inclusion in a dll (and should export symbols for example).
7117 lt_prog_compiler_pic='-DDLL_EXPORT'
7120 hpux9* | hpux10* | hpux11*)
7121 lt_prog_compiler_wl='-Wl,'
7122 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7129 lt_prog_compiler_pic='+Z'
7132 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7133 lt_prog_compiler_static='${wl}-a ${wl}archive'
7136 irix5* | irix6* | nonstopux*)
7137 lt_prog_compiler_wl='-Wl,'
7138 # PIC (with -KPIC) is the default.
7139 lt_prog_compiler_static='-non_shared'
7143 lt_prog_compiler_pic='-KPIC'
7144 lt_prog_compiler_static='-Bstatic'
7148 case $cc_basename in
7150 lt_prog_compiler_wl='-Wl,'
7151 lt_prog_compiler_pic='-KPIC'
7152 lt_prog_compiler_static='-static'
7154 pgcc* | pgf77* | pgf90* | pgf95*)
7155 # Portland Group compilers (*not* the Pentium gcc compiler,
7156 # which looks to be a dead project)
7157 lt_prog_compiler_wl='-Wl,'
7158 lt_prog_compiler_pic='-fpic'
7159 lt_prog_compiler_static='-Bstatic'
7162 lt_prog_compiler_wl='-Wl,'
7163 # All Alpha code is PIC.
7164 lt_prog_compiler_static='-non_shared'
7169 osf3* | osf4* | osf5*)
7170 lt_prog_compiler_wl='-Wl,'
7171 # All OSF/1 code is PIC.
7172 lt_prog_compiler_static='-non_shared'
7176 lt_prog_compiler_pic='-KPIC'
7177 lt_prog_compiler_static='-Bstatic'
7178 case $cc_basename in
7180 lt_prog_compiler_wl='-Qoption ld ';;
7182 lt_prog_compiler_wl='-Wl,';;
7187 lt_prog_compiler_wl='-Qoption ld '
7188 lt_prog_compiler_pic='-PIC'
7189 lt_prog_compiler_static='-Bstatic'
7192 sysv4 | sysv4.2uw2* | sysv4.3*)
7193 lt_prog_compiler_wl='-Wl,'
7194 lt_prog_compiler_pic='-KPIC'
7195 lt_prog_compiler_static='-Bstatic'
7199 if test -d /usr/nec ;then
7200 lt_prog_compiler_pic='-Kconform_pic'
7201 lt_prog_compiler_static='-Bstatic'
7205 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7206 lt_prog_compiler_wl='-Wl,'
7207 lt_prog_compiler_pic='-KPIC'
7208 lt_prog_compiler_static='-Bstatic'
7212 lt_prog_compiler_wl='-Wl,'
7213 lt_prog_compiler_can_build_shared=no
7217 lt_prog_compiler_pic='-pic'
7218 lt_prog_compiler_static='-Bstatic'
7222 lt_prog_compiler_can_build_shared=no
7227 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7228 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7231 # Check to make sure the PIC flag actually works.
7233 if test -n "$lt_prog_compiler_pic"; then
7235 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7236 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7237 if test "${lt_prog_compiler_pic_works+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 lt_prog_compiler_pic_works=no
7241 ac_outfile=conftest.$ac_objext
7242 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7243 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7244 # Insert the option either (1) after the last *FLAGS variable, or
7245 # (2) before a word containing "conftest.", or (3) at the end.
7246 # Note that $ac_compile itself does not contain backslashes and begins
7247 # with a dollar sign (not a hyphen), so the echo should work correctly.
7248 # The option is referenced via a variable to avoid confusing sed.
7249 lt_compile=`echo "$ac_compile" | $SED \
7250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7252 -e 's:$: $lt_compiler_flag:'`
7253 (eval echo "\"\$as_me:7253: $lt_compile\"" >&5)
7254 (eval "$lt_compile" 2>conftest.err)
7256 cat conftest.err >&5
7257 echo "$as_me:7257: \$? = $ac_status" >&5
7258 if (exit $ac_status) && test -s "$ac_outfile"; then
7259 # The compiler can only warn and ignore the option if not recognized
7260 # So say no if there are warnings other than the usual output.
7261 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7263 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7264 lt_prog_compiler_pic_works=yes
7270 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7271 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7273 if test x"$lt_prog_compiler_pic_works" = xyes; then
7274 case $lt_prog_compiler_pic in
7276 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7279 lt_prog_compiler_pic=
7280 lt_prog_compiler_can_build_shared=no
7285 # For platforms which do not support PIC, -DPIC is meaningless:
7287 lt_prog_compiler_pic=
7290 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7295 # Check to make sure the static flag actually works.
7297 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7298 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7299 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7300 if test "${lt_prog_compiler_static_works+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 lt_prog_compiler_static_works=no
7304 save_LDFLAGS="$LDFLAGS"
7305 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7306 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7307 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7308 # The linker can only warn and ignore the option if not recognized
7309 # So say no if there are warnings
7310 if test -s conftest.err; then
7311 # Append any errors to the config.log.
7312 cat conftest.err 1>&5
7313 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7314 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7315 if diff conftest.exp conftest.er2 >/dev/null; then
7316 lt_prog_compiler_static_works=yes
7319 lt_prog_compiler_static_works=yes
7323 LDFLAGS="$save_LDFLAGS"
7326 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7327 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7329 if test x"$lt_prog_compiler_static_works" = xyes; then
7332 lt_prog_compiler_static=
7336 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7337 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7338 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 lt_cv_prog_compiler_c_o=no
7342 $rm -r conftest 2>/dev/null
7346 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7348 lt_compiler_flag="-o out/conftest2.$ac_objext"
7349 # Insert the option either (1) after the last *FLAGS variable, or
7350 # (2) before a word containing "conftest.", or (3) at the end.
7351 # Note that $ac_compile itself does not contain backslashes and begins
7352 # with a dollar sign (not a hyphen), so the echo should work correctly.
7353 lt_compile=`echo "$ac_compile" | $SED \
7354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7356 -e 's:$: $lt_compiler_flag:'`
7357 (eval echo "\"\$as_me:7357: $lt_compile\"" >&5)
7358 (eval "$lt_compile" 2>out/conftest.err)
7360 cat out/conftest.err >&5
7361 echo "$as_me:7361: \$? = $ac_status" >&5
7362 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7364 # The compiler can only warn and ignore the option if not recognized
7365 # So say no if there are warnings
7366 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7367 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7368 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7369 lt_cv_prog_compiler_c_o=yes
7374 # SGI C++ compiler will create directory out/ii_files/ for
7375 # template instantiation
7376 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7377 $rm out/* && rmdir out
7383 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7384 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7387 hard_links="nottested"
7388 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7389 # do not overwrite the value of need_locks provided by the user
7390 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7391 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7394 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7396 ln conftest.a conftest.b 2>&5 || hard_links=no
7397 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7398 { echo "$as_me:$LINENO: result: $hard_links" >&5
7399 echo "${ECHO_T}$hard_links" >&6; }
7400 if test "$hard_links" = no; then
7401 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7402 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7409 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7410 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7413 allow_undefined_flag=
7414 enable_shared_with_static_runtimes=no
7416 archive_expsym_cmds=
7417 old_archive_From_new_cmds=
7418 old_archive_from_expsyms_cmds=
7419 export_dynamic_flag_spec=
7420 whole_archive_flag_spec=
7421 thread_safe_flag_spec=
7422 hardcode_libdir_flag_spec=
7423 hardcode_libdir_flag_spec_ld=
7424 hardcode_libdir_separator=
7427 hardcode_shlibpath_var=unsupported
7428 link_all_deplibs=unknown
7429 hardcode_automatic=no
7432 always_export_symbols=no
7433 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7434 # include_expsyms should be a list of space-separated symbols to be *always*
7435 # included in the symbol list
7437 # exclude_expsyms can be an extended regexp of symbols to exclude
7438 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7439 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7440 # as well as any symbol that contains `d'.
7441 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7442 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7443 # platforms (ab)use it in PIC code, but their linkers get confused if
7444 # the symbol is explicitly referenced. Since portable code cannot
7445 # rely on this symbol name, it's probably fine to never include it in
7446 # preloaded symbol tables.
7447 extract_expsyms_cmds=
7448 # Just being paranoid about ensuring that cc_basename is set.
7449 for cc_temp in $compiler""; do
7451 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7452 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7457 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7460 cygwin* | mingw* | pw32*)
7461 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7462 # When not using gcc, we currently assume that we are using
7463 # Microsoft Visual C++.
7464 if test "$GCC" != yes; then
7469 # we just hope/assume this is gcc and not c89 (= MSVC++)
7478 if test "$with_gnu_ld" = yes; then
7479 # If archive_cmds runs LD, not CC, wlarc should be empty
7482 # Set some defaults for GNU ld with shared library support. These
7483 # are reset later if shared libraries are not supported. Putting them
7484 # here allows them to be overridden if necessary.
7485 runpath_var=LD_RUN_PATH
7486 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7487 export_dynamic_flag_spec='${wl}--export-dynamic'
7488 # ancient GNU ld didn't support --whole-archive et. al.
7489 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7490 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7492 whole_archive_flag_spec=
7494 supports_anon_versioning=no
7495 case `$LD -v 2>/dev/null` in
7496 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7497 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7498 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7499 *\ 2.11.*) ;; # other 2.11 versions
7500 *) supports_anon_versioning=yes ;;
7503 # See if GNU ld supports shared libraries.
7505 aix3* | aix4* | aix5*)
7506 # On AIX/PPC, the GNU linker is very broken
7507 if test "$host_cpu" != ia64; then
7511 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7512 *** to be unable to reliably create shared libraries on AIX.
7513 *** Therefore, libtool is disabling shared libraries support. If you
7514 *** really care for shared libraries, you may want to modify your PATH
7515 *** so that a non-GNU linker is found, and then restart.
7522 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)'
7523 hardcode_libdir_flag_spec='-L$libdir'
7524 hardcode_minus_L=yes
7526 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7527 # that the semantics of dynamic libraries on AmigaOS, at least up
7528 # to version 4, is to share data among multiple programs linked
7529 # with the same dynamic library. Since this doesn't match the
7530 # behavior of shared libraries on other platforms, we can't use
7536 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7537 allow_undefined_flag=unsupported
7538 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7539 # support --undefined. This deserves some investigation. FIXME
7540 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7546 cygwin* | mingw* | pw32*)
7547 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7548 # as there is no search path for DLLs.
7549 hardcode_libdir_flag_spec='-L$libdir'
7550 allow_undefined_flag=unsupported
7551 always_export_symbols=no
7552 enable_shared_with_static_runtimes=yes
7553 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7555 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7557 # If the export-symbols file already is a .def file (1st line
7558 # is EXPORTS), use it as is; otherwise, prepend...
7559 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7560 cp $export_symbols $output_objdir/$soname.def;
7562 echo EXPORTS > $output_objdir/$soname.def;
7563 cat $export_symbols >> $output_objdir/$soname.def;
7565 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7573 hardcode_shlibpath_var=no
7574 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7575 export_dynamic_flag_spec='${wl}-E'
7576 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7577 # Instead, shared libraries are loaded at an image base (0x10000000 by
7578 # default) and relocated if they conflict, which is a slow very memory
7579 # consuming and fragmenting process. To avoid this, we pick a random,
7580 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7581 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7582 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7583 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'
7587 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7589 case $cc_basename,$host_cpu in
7590 pgcc*) # Portland Group C compiler
7591 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'
7592 tmp_addflag=' $pic_flag'
7594 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7595 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'
7596 tmp_addflag=' $pic_flag -Mnomain' ;;
7597 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7598 tmp_addflag=' -i_dynamic' ;;
7599 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7600 tmp_addflag=' -i_dynamic -nofor_main' ;;
7601 ifc* | ifort*) # Intel Fortran compiler
7602 tmp_addflag=' -nofor_main' ;;
7604 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7606 if test $supports_anon_versioning = yes; then
7607 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7608 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7609 $echo "local: *; };" >> $output_objdir/$libname.ver~
7610 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7618 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7619 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7623 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7628 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7632 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7633 *** create shared libraries on Solaris systems. Therefore, libtool
7634 *** is disabling shared libraries support. We urge you to upgrade GNU
7635 *** binutils to release 2.9.1 or newer. Another option is to modify
7636 *** your PATH or compiler configuration so that the native linker is
7637 *** used, and then restart.
7640 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7642 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7649 case `$LD -v 2>&1` in
7650 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7654 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7655 *** reliably create shared libraries on SCO systems. Therefore, libtool
7656 *** is disabling shared libraries support. We urge you to upgrade GNU
7657 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7658 *** your PATH or compiler configuration so that the native linker is
7659 *** used, and then restart.
7664 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7665 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7667 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7676 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7679 hardcode_shlibpath_var=no
7683 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7685 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7692 if test "$ld_shlibs" = no; then
7694 hardcode_libdir_flag_spec=
7695 export_dynamic_flag_spec=
7696 whole_archive_flag_spec=
7699 # PORTME fill in a description of your system's linker (not GNU ld)
7702 allow_undefined_flag=unsupported
7703 always_export_symbols=yes
7704 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'
7705 # Note: this linker hardcodes the directories in LIBPATH if there
7706 # are no directories specified by -L.
7707 hardcode_minus_L=yes
7708 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7709 # Neither direct hardcoding nor static linking is supported with a
7711 hardcode_direct=unsupported
7716 if test "$host_cpu" = ia64; then
7717 # On IA64, the linker does run time linking by default, so we don't
7718 # have to do anything special.
7719 aix_use_runtimelinking=no
7720 exp_sym_flag='-Bexport'
7723 # If we're using GNU nm, then we don't want the "-C" option.
7724 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7725 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7726 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'
7728 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'
7730 aix_use_runtimelinking=no
7732 # Test if we are trying to use run time linking or normal
7733 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7734 # need to do runtime linking.
7735 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7736 for ld_flag in $LDFLAGS; do
7737 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7738 aix_use_runtimelinking=yes
7745 exp_sym_flag='-bexport'
7746 no_entry_flag='-bnoentry'
7749 # When large executables or shared objects are built, AIX ld can
7750 # have problems creating the table of contents. If linking a library
7751 # or program results in "error TOC overflow" add -mminimal-toc to
7752 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7753 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7757 hardcode_libdir_separator=':'
7758 link_all_deplibs=yes
7760 if test "$GCC" = yes; then
7761 case $host_os in aix4.[012]|aix4.[012].*)
7762 # We only want to do this on AIX 4.2 and lower, the check
7763 # below for broken collect2 doesn't work under 4.3+
7764 collect2name=`${CC} -print-prog-name=collect2`
7765 if test -f "$collect2name" && \
7766 strings "$collect2name" | grep resolve_lib_name >/dev/null
7768 # We have reworked collect2
7771 # We have old collect2
7772 hardcode_direct=unsupported
7773 # It fails to find uninstalled libraries when the uninstalled
7774 # path is not listed in the libpath. Setting hardcode_minus_L
7775 # to unsupported forces relinking
7776 hardcode_minus_L=yes
7777 hardcode_libdir_flag_spec='-L$libdir'
7778 hardcode_libdir_separator=
7782 shared_flag='-shared'
7783 if test "$aix_use_runtimelinking" = yes; then
7784 shared_flag="$shared_flag "'${wl}-G'
7788 if test "$host_cpu" = ia64; then
7789 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7790 # chokes on -Wl,-G. The following line is correct:
7793 if test "$aix_use_runtimelinking" = yes; then
7794 shared_flag='${wl}-G'
7796 shared_flag='${wl}-bM:SRE'
7801 # It seems that -bexpall does not export symbols beginning with
7802 # underscore (_), so it is better to generate a list of symbols to export.
7803 always_export_symbols=yes
7804 if test "$aix_use_runtimelinking" = yes; then
7805 # Warning - without using the other runtime loading flags (-brtl),
7806 # -berok will link without error, but may produce a broken library.
7807 allow_undefined_flag='-berok'
7808 # Determine the default libpath from the value encoded in an empty executable.
7809 cat >conftest.$ac_ext <<_ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h. */
7824 rm -f conftest.$ac_objext conftest$ac_exeext
7825 if { (ac_try="$ac_link"
7827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7828 *) ac_try_echo=$ac_try;;
7830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7831 (eval "$ac_link") 2>conftest.er1
7833 grep -v '^ *+' conftest.er1 >conftest.err
7835 cat conftest.err >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } && {
7838 test -z "$ac_c_werror_flag" ||
7839 test ! -s conftest.err
7840 } && test -s conftest$ac_exeext &&
7841 $as_test_x conftest$ac_exeext; then
7843 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7845 # Check for a 64-bit object if we didn't find anything.
7846 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; }
7849 echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7856 conftest$ac_exeext conftest.$ac_ext
7857 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7859 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7860 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"
7862 if test "$host_cpu" = ia64; then
7863 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7864 allow_undefined_flag="-z nodefs"
7865 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"
7867 # Determine the default libpath from the value encoded in an empty executable.
7868 cat >conftest.$ac_ext <<_ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7883 rm -f conftest.$ac_objext conftest$ac_exeext
7884 if { (ac_try="$ac_link"
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7890 (eval "$ac_link") 2>conftest.er1
7892 grep -v '^ *+' conftest.er1 >conftest.err
7894 cat conftest.err >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); } && {
7897 test -z "$ac_c_werror_flag" ||
7898 test ! -s conftest.err
7899 } && test -s conftest$ac_exeext &&
7900 $as_test_x conftest$ac_exeext; then
7902 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7904 # Check for a 64-bit object if we didn't find anything.
7905 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; }
7908 echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7915 conftest$ac_exeext conftest.$ac_ext
7916 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7918 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7919 # Warning - without using the other run time loading flags,
7920 # -berok will link without error, but may produce a broken library.
7921 no_undefined_flag=' ${wl}-bernotok'
7922 allow_undefined_flag=' ${wl}-berok'
7923 # Exported symbols can be pulled into shared objects from archives
7924 whole_archive_flag_spec='$convenience'
7925 archive_cmds_need_lc=yes
7926 # This is similar to how AIX traditionally builds its shared libraries.
7927 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'
7933 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)'
7934 hardcode_libdir_flag_spec='-L$libdir'
7935 hardcode_minus_L=yes
7936 # see comment about different semantics on the GNU ld section
7941 export_dynamic_flag_spec=-rdynamic
7944 cygwin* | mingw* | pw32*)
7945 # When not using gcc, we currently assume that we are using
7946 # Microsoft Visual C++.
7947 # hardcode_libdir_flag_spec is actually meaningless, as there is
7948 # no search path for DLLs.
7949 hardcode_libdir_flag_spec=' '
7950 allow_undefined_flag=unsupported
7951 # Tell ltmain to make .lib files, not .a files.
7953 # Tell ltmain to make .dll files, not .so files.
7955 # FIXME: Setting linknames here is a bad hack.
7956 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7957 # The linker will automatically build a .lib file if we build a DLL.
7958 old_archive_From_new_cmds='true'
7959 # FIXME: Should let the user specify the lib program.
7960 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7961 fix_srcfile_path='`cygpath -w "$srcfile"`'
7962 enable_shared_with_static_runtimes=yes
7965 darwin* | rhapsody*)
7967 rhapsody* | darwin1.[012])
7968 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7971 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7972 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7974 case ${MACOSX_DEPLOYMENT_TARGET} in
7976 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7979 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7985 archive_cmds_need_lc=no
7987 hardcode_automatic=yes
7988 hardcode_shlibpath_var=unsupported
7989 whole_archive_flag_spec=''
7990 link_all_deplibs=yes
7991 if test "$GCC" = yes ; then
7992 output_verbose_link_cmd='echo'
7993 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7994 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7995 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7996 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}'
7997 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}'
7999 case $cc_basename in
8001 output_verbose_link_cmd='echo'
8002 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8003 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8004 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8005 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}'
8006 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}'
8016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8017 hardcode_libdir_flag_spec='-L$libdir'
8018 hardcode_shlibpath_var=no
8025 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8026 # support. Future versions do this automatically, but an explicit c++rt0.o
8027 # does not break anything, and helps significantly (at the cost of a little
8030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8031 hardcode_libdir_flag_spec='-R$libdir'
8033 hardcode_shlibpath_var=no
8036 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8040 hardcode_minus_L=yes
8041 hardcode_shlibpath_var=no
8044 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8045 freebsd* | kfreebsd*-gnu | dragonfly*)
8046 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8047 hardcode_libdir_flag_spec='-R$libdir'
8049 hardcode_shlibpath_var=no
8053 if test "$GCC" = yes; then
8054 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'
8056 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'
8058 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8059 hardcode_libdir_separator=:
8062 # hardcode_minus_L: Not really in the search PATH,
8063 # but as the default location of the library.
8064 hardcode_minus_L=yes
8065 export_dynamic_flag_spec='${wl}-E'
8069 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8070 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8072 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8074 if test "$with_gnu_ld" = no; then
8075 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8076 hardcode_libdir_separator=:
8079 export_dynamic_flag_spec='${wl}-E'
8081 # hardcode_minus_L: Not really in the search PATH,
8082 # but as the default location of the library.
8083 hardcode_minus_L=yes
8088 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8091 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8094 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8097 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8103 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8106 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8109 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8113 if test "$with_gnu_ld" = no; then
8114 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8115 hardcode_libdir_separator=:
8119 hardcode_libdir_flag_spec_ld='+b $libdir'
8121 hardcode_shlibpath_var=no
8125 export_dynamic_flag_spec='${wl}-E'
8127 # hardcode_minus_L: Not really in the search PATH,
8128 # but as the default location of the library.
8129 hardcode_minus_L=yes
8135 irix5* | irix6* | nonstopux*)
8136 if test "$GCC" = yes; then
8137 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'
8139 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'
8140 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8142 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8143 hardcode_libdir_separator=:
8144 link_all_deplibs=yes
8148 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8151 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8153 hardcode_libdir_flag_spec='-R$libdir'
8155 hardcode_shlibpath_var=no
8159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8161 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8162 hardcode_libdir_separator=:
8163 hardcode_shlibpath_var=no
8168 hardcode_shlibpath_var=no
8169 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8170 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8171 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8172 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8173 export_dynamic_flag_spec='${wl}-E'
8176 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8177 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8178 hardcode_libdir_flag_spec='-R$libdir'
8181 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8182 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8189 hardcode_libdir_flag_spec='-L$libdir'
8190 hardcode_minus_L=yes
8191 allow_undefined_flag=unsupported
8192 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'
8193 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8197 if test "$GCC" = yes; then
8198 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8199 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'
8201 allow_undefined_flag=' -expect_unresolved \*'
8202 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'
8204 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8205 hardcode_libdir_separator=:
8208 osf4* | osf5*) # as osf3* with the addition of -msym flag
8209 if test "$GCC" = yes; then
8210 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8211 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'
8212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8214 allow_undefined_flag=' -expect_unresolved \*'
8215 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'
8216 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8217 $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'
8219 # Both c and cxx compiler support -rpath directly
8220 hardcode_libdir_flag_spec='-rpath $libdir'
8222 hardcode_libdir_separator=:
8226 no_undefined_flag=' -z text'
8227 if test "$GCC" = yes; then
8229 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8230 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8231 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8234 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8235 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8236 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8238 hardcode_libdir_flag_spec='-R$libdir'
8239 hardcode_shlibpath_var=no
8241 solaris2.[0-5] | solaris2.[0-5].*) ;;
8243 # The compiler driver will combine linker options so we
8244 # cannot just pass the convience library names through
8245 # without $wl, iff we do not link with $LD.
8246 # Luckily, gcc supports the same syntax we need for Sun Studio.
8247 # Supported since Solaris 2.6 (maybe 2.5.1?)
8250 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8252 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' ;;
8255 link_all_deplibs=yes
8259 if test "x$host_vendor" = xsequent; then
8260 # Use $CC to link under sequent, because it throws in some extra .o
8261 # files that make .init and .fini sections work.
8262 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8264 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8266 hardcode_libdir_flag_spec='-L$libdir'
8268 hardcode_minus_L=yes
8269 hardcode_shlibpath_var=no
8273 case $host_vendor in
8275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8276 hardcode_direct=yes # is this really true???
8279 ## LD is ld it makes a PLAMLIB
8280 ## CC just makes a GrossModule.
8281 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8282 reload_cmds='$CC -r -o $output$reload_objs'
8286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8287 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8290 runpath_var='LD_RUN_PATH'
8291 hardcode_shlibpath_var=no
8295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8296 hardcode_shlibpath_var=no
8297 export_dynamic_flag_spec='-Bexport'
8301 if test -d /usr/nec; then
8302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8303 hardcode_shlibpath_var=no
8304 runpath_var=LD_RUN_PATH
8305 hardcode_runpath_var=yes
8310 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8311 no_undefined_flag='${wl}-z,text'
8312 archive_cmds_need_lc=no
8313 hardcode_shlibpath_var=no
8314 runpath_var='LD_RUN_PATH'
8316 if test "$GCC" = yes; then
8317 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8318 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8320 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8321 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8325 sysv5* | sco3.2v5* | sco5v6*)
8326 # Note: We can NOT use -z defs as we might desire, because we do not
8327 # link with -lc, and that would cause any symbols used from libc to
8328 # always be unresolved, which means just about no library would
8329 # ever link correctly. If we're not using GNU ld we use -z text
8330 # though, which does catch some bad symbols but isn't as heavy-handed
8332 no_undefined_flag='${wl}-z,text'
8333 allow_undefined_flag='${wl}-z,nodefs'
8334 archive_cmds_need_lc=no
8335 hardcode_shlibpath_var=no
8336 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8337 hardcode_libdir_separator=':'
8338 link_all_deplibs=yes
8339 export_dynamic_flag_spec='${wl}-Bexport'
8340 runpath_var='LD_RUN_PATH'
8342 if test "$GCC" = yes; then
8343 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8344 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8346 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8347 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8353 hardcode_libdir_flag_spec='-L$libdir'
8354 hardcode_shlibpath_var=no
8363 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8364 echo "${ECHO_T}$ld_shlibs" >&6; }
8365 test "$ld_shlibs" = no && can_build_shared=no
8368 # Do we need to explicitly link libc?
8370 case "x$archive_cmds_need_lc" in
8372 # Assume -lc should be added
8373 archive_cmds_need_lc=yes
8375 if test "$enable_shared" = yes && test "$GCC" = yes; then
8376 case $archive_cmds in
8378 # FIXME: we may have to deal with multi-command sequences.
8381 # Test whether the compiler implicitly links with -lc since on some
8382 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8383 # to ld, don't add -lc before -lgcc.
8384 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8385 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8387 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8390 (eval $ac_compile) 2>&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } 2>conftest.err; then
8396 libobjs=conftest.$ac_objext
8398 wl=$lt_prog_compiler_wl
8399 pic_flag=$lt_prog_compiler_pic
8405 lt_save_allow_undefined_flag=$allow_undefined_flag
8406 allow_undefined_flag=
8407 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8408 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }
8413 archive_cmds_need_lc=no
8415 archive_cmds_need_lc=yes
8417 allow_undefined_flag=$lt_save_allow_undefined_flag
8419 cat conftest.err 1>&5
8422 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8423 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8430 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8431 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8433 libname_spec='lib$name'
8441 shlibpath_overrides_runpath=unknown
8443 dynamic_linker="$host_os ld.so"
8444 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8445 if test "$GCC" = yes; then
8446 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8447 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8448 # if the path contains ";" then we assume it to be the separator
8449 # otherwise default to the standard path separator (i.e. ":") - it is
8450 # assumed that no part of a normal pathname contains ";" but that should
8451 # okay in the real world where ";" in dirpaths is itself problematic.
8452 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8454 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8457 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8459 need_lib_prefix=unknown
8460 hardcode_into_libs=no
8462 # when you set need_version to no, make sure it does not cause -set_version
8463 # flags to be left without arguments
8464 need_version=unknown
8469 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8470 shlibpath_var=LIBPATH
8472 # AIX 3 has no versioning support, so we append a major version to the name.
8473 soname_spec='${libname}${release}${shared_ext}$major'
8480 hardcode_into_libs=yes
8481 if test "$host_cpu" = ia64; then
8482 # AIX 5 supports IA64
8483 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8484 shlibpath_var=LD_LIBRARY_PATH
8486 # With GCC up to 2.95.x, collect2 would create an import file
8487 # for dependence libraries. The import file would start with
8488 # the line `#! .'. This would cause the generated library to
8489 # depend on `.', always an invalid library. This was fixed in
8490 # development snapshots of GCC prior to 3.0.
8492 aix4 | aix4.[01] | aix4.[01].*)
8493 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8495 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8502 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8503 # soname into executable. Probably we can add versioning support to
8504 # collect2, so additional links can be useful in future.
8505 if test "$aix_use_runtimelinking" = yes; then
8506 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8507 # instead of lib<name>.a to let people know that these are not
8508 # typical AIX shared libraries.
8509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8511 # We preserve .a as extension for shared libraries through AIX4.2
8512 # and later when we are not doing run time linking.
8513 library_names_spec='${libname}${release}.a $libname.a'
8514 soname_spec='${libname}${release}${shared_ext}$major'
8516 shlibpath_var=LIBPATH
8521 library_names_spec='$libname.ixlibrary $libname.a'
8522 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8523 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'
8527 library_names_spec='${libname}${shared_ext}'
8528 dynamic_linker="$host_os ld.so"
8529 shlibpath_var=LIBRARY_PATH
8535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8536 soname_spec='${libname}${release}${shared_ext}$major'
8537 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8538 shlibpath_var=LD_LIBRARY_PATH
8539 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8540 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8541 # the default ld.so.conf also contains /usr/contrib/lib and
8542 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8543 # libtool to hard-code these into programs
8546 cygwin* | mingw* | pw32*)
8547 version_type=windows
8552 case $GCC,$host_os in
8553 yes,cygwin* | yes,mingw* | yes,pw32*)
8554 library_names_spec='$libname.dll.a'
8555 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8556 postinstall_cmds='base_file=`basename \${file}`~
8557 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8558 dldir=$destdir/`dirname \$dlpath`~
8559 test -d \$dldir || mkdir -p \$dldir~
8560 $install_prog $dir/$dlname \$dldir/$dlname~
8561 chmod a+x \$dldir/$dlname'
8562 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8563 dlpath=$dir/\$dldll~
8565 shlibpath_overrides_runpath=yes
8569 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8570 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8571 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8574 # MinGW DLLs use traditional 'lib' prefix
8575 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8576 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8577 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8578 # It is most probably a Windows format PATH printed by
8579 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8580 # path with ; separators, and with drive letters. We can handle the
8581 # drive letters (cygwin fileutils understands them), so leave them,
8582 # especially as we might pass files found there to a mingw objdump,
8583 # which wouldn't understand a cygwinified path. Ahh.
8584 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8586 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8590 # pw32 DLLs use 'pw' prefix rather than 'lib'
8591 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8597 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8600 dynamic_linker='Win32 ld.exe'
8601 # FIXME: first we should search . and the directory the executable is in
8605 darwin* | rhapsody*)
8606 dynamic_linker="$host_os dyld"
8610 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8611 soname_spec='${libname}${release}${major}$shared_ext'
8612 shlibpath_overrides_runpath=yes
8613 shlibpath_var=DYLD_LIBRARY_PATH
8614 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8615 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8616 if test "$GCC" = yes; then
8617 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"`
8619 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8621 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8629 soname_spec='${libname}${release}${shared_ext}$major'
8630 shlibpath_var=LD_LIBRARY_PATH
8641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8642 soname_spec='${libname}${release}${shared_ext}$major'
8643 shlibpath_var=LD_LIBRARY_PATH
8644 shlibpath_overrides_runpath=no
8645 hardcode_into_libs=yes
8646 dynamic_linker='GNU ld.so'
8649 freebsd* | dragonfly*)
8650 # DragonFly does not have aout. When/if they implement a new
8651 # versioning mechanism, adjust this.
8652 if test -x /usr/bin/objformat; then
8653 objformat=`/usr/bin/objformat`
8656 freebsd[123]*) objformat=aout ;;
8660 version_type=freebsd-$objformat
8661 case $version_type in
8663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8668 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8672 shlibpath_var=LD_LIBRARY_PATH
8675 shlibpath_overrides_runpath=yes
8677 freebsd3.[01]* | freebsdelf3.[01]*)
8678 shlibpath_overrides_runpath=yes
8679 hardcode_into_libs=yes
8681 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8682 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8683 shlibpath_overrides_runpath=no
8684 hardcode_into_libs=yes
8686 freebsd*) # from 4.6 on
8687 shlibpath_overrides_runpath=yes
8688 hardcode_into_libs=yes
8697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8698 soname_spec='${libname}${release}${shared_ext}$major'
8699 shlibpath_var=LD_LIBRARY_PATH
8700 hardcode_into_libs=yes
8703 hpux9* | hpux10* | hpux11*)
8704 # Give a soname corresponding to the major version so that dld.sl refuses to
8705 # link against other versions.
8712 hardcode_into_libs=yes
8713 dynamic_linker="$host_os dld.so"
8714 shlibpath_var=LD_LIBRARY_PATH
8715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8717 soname_spec='${libname}${release}${shared_ext}$major'
8718 if test "X$HPUX_IA64_MODE" = X32; then
8719 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8721 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8723 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8727 hardcode_into_libs=yes
8728 dynamic_linker="$host_os dld.sl"
8729 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8730 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8732 soname_spec='${libname}${release}${shared_ext}$major'
8733 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8734 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8738 dynamic_linker="$host_os dld.sl"
8739 shlibpath_var=SHLIB_PATH
8740 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8742 soname_spec='${libname}${release}${shared_ext}$major'
8745 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8746 postinstall_cmds='chmod 555 $lib'
8753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8754 soname_spec='${libname}${release}${shared_ext}$major'
8755 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8756 shlibpath_var=LD_LIBRARY_PATH
8757 shlibpath_overrides_runpath=no
8758 hardcode_into_libs=yes
8761 irix5* | irix6* | nonstopux*)
8763 nonstopux*) version_type=nonstopux ;;
8765 if test "$lt_cv_prog_gnu_ld" = yes; then
8773 soname_spec='${libname}${release}${shared_ext}$major'
8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8776 irix5* | nonstopux*)
8780 case $LD in # libtool.m4 will add one of these switches to LD
8781 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8782 libsuff= shlibsuff= libmagic=32-bit;;
8783 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8784 libsuff=32 shlibsuff=N32 libmagic=N32;;
8785 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8786 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8787 *) libsuff= shlibsuff= libmagic=never-match;;
8791 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8792 shlibpath_overrides_runpath=no
8793 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8794 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8795 hardcode_into_libs=yes
8798 # No shared lib support for Linux oldld, aout, or coff.
8799 linux*oldld* | linux*aout* | linux*coff*)
8803 # This must be Linux ELF.
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8809 soname_spec='${libname}${release}${shared_ext}$major'
8810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8811 shlibpath_var=LD_LIBRARY_PATH
8812 shlibpath_overrides_runpath=no
8813 # This implies no fast_install, which is unacceptable.
8814 # Some rework will be needed to allow for fast_install
8815 # before this can be enabled.
8816 hardcode_into_libs=yes
8818 # Append ld.so.conf contents to the search path
8819 if test -f /etc/ld.so.conf; then
8820 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' ' '`
8821 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8824 # We used to test for /lib/ld.so.1 and disable shared libraries on
8825 # powerpc, because MkLinux only supported shared libraries with the
8826 # GNU dynamic linker. Since this was broken with cross compilers,
8827 # most powerpc-linux boxes support dynamic linking these days and
8828 # people can always --disable-shared, the test was removed, and we
8829 # assume the GNU/Linux dynamic linker is in use.
8830 dynamic_linker='GNU/Linux ld.so'
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8838 soname_spec='${libname}${release}${shared_ext}$major'
8839 shlibpath_var=LD_LIBRARY_PATH
8840 shlibpath_overrides_runpath=no
8841 hardcode_into_libs=yes
8842 dynamic_linker='GNU ld.so'
8849 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8852 dynamic_linker='NetBSD (a.out) ld.so'
8854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8855 soname_spec='${libname}${release}${shared_ext}$major'
8856 dynamic_linker='NetBSD ld.elf_so'
8858 shlibpath_var=LD_LIBRARY_PATH
8859 shlibpath_overrides_runpath=yes
8860 hardcode_into_libs=yes
8865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8866 shlibpath_var=LD_LIBRARY_PATH
8867 shlibpath_overrides_runpath=yes
8874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8875 soname_spec='${libname}${release}${shared_ext}$major'
8876 shlibpath_var=LD_LIBRARY_PATH
8877 shlibpath_overrides_runpath=yes
8882 sys_lib_dlsearch_path_spec="/usr/lib"
8884 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8886 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8887 *) need_version=no ;;
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8891 shlibpath_var=LD_LIBRARY_PATH
8892 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8894 openbsd2.[89] | openbsd2.[89].*)
8895 shlibpath_overrides_runpath=no
8898 shlibpath_overrides_runpath=yes
8902 shlibpath_overrides_runpath=yes
8907 libname_spec='$name'
8910 library_names_spec='$libname${shared_ext} $libname.a'
8911 dynamic_linker='OS/2 ld.exe'
8912 shlibpath_var=LIBPATH
8915 osf3* | osf4* | osf5*)
8919 soname_spec='${libname}${release}${shared_ext}$major'
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921 shlibpath_var=LD_LIBRARY_PATH
8922 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8923 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8931 soname_spec='${libname}${release}${shared_ext}$major'
8932 shlibpath_var=LD_LIBRARY_PATH
8933 shlibpath_overrides_runpath=yes
8934 hardcode_into_libs=yes
8935 # ldd complains unless libraries are executable
8936 postinstall_cmds='chmod +x $lib'
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8942 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8943 shlibpath_var=LD_LIBRARY_PATH
8944 shlibpath_overrides_runpath=yes
8945 if test "$with_gnu_ld" = yes; then
8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8954 soname_spec='${libname}${release}${shared_ext}$major'
8955 shlibpath_var=LD_LIBRARY_PATH
8956 case $host_vendor in
8958 shlibpath_overrides_runpath=no
8960 export_dynamic_flag_spec='${wl}-Blargedynsym'
8961 runpath_var=LD_RUN_PATH
8969 shlibpath_overrides_runpath=no
8970 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8976 if test -d /usr/nec ;then
8978 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8979 soname_spec='$libname${shared_ext}.$major'
8980 shlibpath_var=LD_LIBRARY_PATH
8984 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8985 version_type=freebsd-elf
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 shlibpath_var=LD_LIBRARY_PATH
8991 hardcode_into_libs=yes
8992 if test "$with_gnu_ld" = yes; then
8993 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8994 shlibpath_overrides_runpath=no
8996 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8997 shlibpath_overrides_runpath=yes
9000 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9004 sys_lib_dlsearch_path_spec='/usr/lib'
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9010 soname_spec='${libname}${release}${shared_ext}$major'
9011 shlibpath_var=LD_LIBRARY_PATH
9018 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9019 echo "${ECHO_T}$dynamic_linker" >&6; }
9020 test "$dynamic_linker" = no && can_build_shared=no
9022 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9023 if test "$GCC" = yes; then
9024 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9027 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9028 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9030 if test -n "$hardcode_libdir_flag_spec" || \
9031 test -n "$runpath_var" || \
9032 test "X$hardcode_automatic" = "Xyes" ; then
9034 # We can hardcode non-existant directories.
9035 if test "$hardcode_direct" != no &&
9036 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9037 # have to relink, otherwise we might link with an installed library
9038 # when we should be linking with a yet-to-be-installed one
9039 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9040 test "$hardcode_minus_L" != no; then
9041 # Linking always hardcodes the temporary library directory.
9042 hardcode_action=relink
9044 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9045 hardcode_action=immediate
9048 # We cannot hardcode anything, or else we can only hardcode existing
9050 hardcode_action=unsupported
9052 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9053 echo "${ECHO_T}$hardcode_action" >&6; }
9055 if test "$hardcode_action" = relink; then
9056 # Fast installation is not supported
9057 enable_fast_install=no
9058 elif test "$shlibpath_overrides_runpath" = yes ||
9059 test "$enable_shared" = no; then
9060 # Fast installation is not necessary
9061 enable_fast_install=needless
9066 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9067 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9068 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9069 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9070 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9071 { echo "$as_me:$LINENO: result: yes" >&5
9072 echo "${ECHO_T}yes" >&6; }
9074 # FIXME - insert some real tests, host_os isn't really good enough
9077 if test -n "$STRIP" ; then
9078 striplib="$STRIP -x"
9079 { echo "$as_me:$LINENO: result: yes" >&5
9080 echo "${ECHO_T}yes" >&6; }
9082 { echo "$as_me:$LINENO: result: no" >&5
9083 echo "${ECHO_T}no" >&6; }
9087 { echo "$as_me:$LINENO: result: no" >&5
9088 echo "${ECHO_T}no" >&6; }
9093 if test "x$enable_dlopen" != xyes; then
9094 enable_dlopen=unknown
9095 enable_dlopen_self=unknown
9096 enable_dlopen_self_static=unknown
9103 lt_cv_dlopen="load_add_on"
9105 lt_cv_dlopen_self=yes
9109 lt_cv_dlopen="LoadLibrary"
9114 lt_cv_dlopen="dlopen"
9119 # if libdl is installed we need to link against it
9120 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9121 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9122 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9125 ac_check_lib_save_LIBS=$LIBS
9127 cat >conftest.$ac_ext <<_ACEOF
9130 cat confdefs.h >>conftest.$ac_ext
9131 cat >>conftest.$ac_ext <<_ACEOF
9132 /* end confdefs.h. */
9134 /* Override any GCC internal prototype to avoid an error.
9135 Use char because int might match the return type of a GCC
9136 builtin and then its argument prototype would still apply. */
9149 rm -f conftest.$ac_objext conftest$ac_exeext
9150 if { (ac_try="$ac_link"
9152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9153 *) ac_try_echo=$ac_try;;
9155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9156 (eval "$ac_link") 2>conftest.er1
9158 grep -v '^ *+' conftest.er1 >conftest.err
9160 cat conftest.err >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } && {
9163 test -z "$ac_c_werror_flag" ||
9164 test ! -s conftest.err
9165 } && test -s conftest$ac_exeext &&
9166 $as_test_x conftest$ac_exeext; then
9167 ac_cv_lib_dl_dlopen=yes
9169 echo "$as_me: failed program was:" >&5
9170 sed 's/^/| /' conftest.$ac_ext >&5
9172 ac_cv_lib_dl_dlopen=no
9175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9176 conftest$ac_exeext conftest.$ac_ext
9177 LIBS=$ac_check_lib_save_LIBS
9179 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9180 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9181 if test $ac_cv_lib_dl_dlopen = yes; then
9182 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9187 lt_cv_dlopen_self=yes
9194 { echo "$as_me:$LINENO: checking for shl_load" >&5
9195 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9196 if test "${ac_cv_func_shl_load+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 cat >conftest.$ac_ext <<_ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9205 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9207 #define shl_load innocuous_shl_load
9209 /* System header to define __stub macros and hopefully few prototypes,
9210 which can conflict with char shl_load (); below.
9211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9212 <limits.h> exists even on freestanding compilers. */
9215 # include <limits.h>
9217 # include <assert.h>
9222 /* Override any GCC internal prototype to avoid an error.
9223 Use char because int might match the return type of a GCC
9224 builtin and then its argument prototype would still apply. */
9229 /* The GNU C library defines this for functions which it implements
9230 to always fail with ENOSYS. Some functions are actually named
9231 something starting with __ and the normal name is an alias. */
9232 #if defined __stub_shl_load || defined __stub___shl_load
9244 rm -f conftest.$ac_objext conftest$ac_exeext
9245 if { (ac_try="$ac_link"
9247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248 *) ac_try_echo=$ac_try;;
9250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9251 (eval "$ac_link") 2>conftest.er1
9253 grep -v '^ *+' conftest.er1 >conftest.err
9255 cat conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } && {
9258 test -z "$ac_c_werror_flag" ||
9259 test ! -s conftest.err
9260 } && test -s conftest$ac_exeext &&
9261 $as_test_x conftest$ac_exeext; then
9262 ac_cv_func_shl_load=yes
9264 echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9267 ac_cv_func_shl_load=no
9270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9271 conftest$ac_exeext conftest.$ac_ext
9273 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9274 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9275 if test $ac_cv_func_shl_load = yes; then
9276 lt_cv_dlopen="shl_load"
9278 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9279 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9280 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9281 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 ac_check_lib_save_LIBS=$LIBS
9285 cat >conftest.$ac_ext <<_ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h. */
9292 /* Override any GCC internal prototype to avoid an error.
9293 Use char because int might match the return type of a GCC
9294 builtin and then its argument prototype would still apply. */
9307 rm -f conftest.$ac_objext conftest$ac_exeext
9308 if { (ac_try="$ac_link"
9310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9311 *) ac_try_echo=$ac_try;;
9313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9314 (eval "$ac_link") 2>conftest.er1
9316 grep -v '^ *+' conftest.er1 >conftest.err
9318 cat conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } && {
9321 test -z "$ac_c_werror_flag" ||
9322 test ! -s conftest.err
9323 } && test -s conftest$ac_exeext &&
9324 $as_test_x conftest$ac_exeext; then
9325 ac_cv_lib_dld_shl_load=yes
9327 echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.$ac_ext >&5
9330 ac_cv_lib_dld_shl_load=no
9333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9334 conftest$ac_exeext conftest.$ac_ext
9335 LIBS=$ac_check_lib_save_LIBS
9337 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9338 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9339 if test $ac_cv_lib_dld_shl_load = yes; then
9340 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9342 { echo "$as_me:$LINENO: checking for dlopen" >&5
9343 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9344 if test "${ac_cv_func_dlopen+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 cat >conftest.$ac_ext <<_ACEOF
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h. */
9353 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9355 #define dlopen innocuous_dlopen
9357 /* System header to define __stub macros and hopefully few prototypes,
9358 which can conflict with char dlopen (); below.
9359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9360 <limits.h> exists even on freestanding compilers. */
9363 # include <limits.h>
9365 # include <assert.h>
9370 /* Override any GCC internal prototype to avoid an error.
9371 Use char because int might match the return type of a GCC
9372 builtin and then its argument prototype would still apply. */
9377 /* The GNU C library defines this for functions which it implements
9378 to always fail with ENOSYS. Some functions are actually named
9379 something starting with __ and the normal name is an alias. */
9380 #if defined __stub_dlopen || defined __stub___dlopen
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (ac_try="$ac_link"
9395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396 *) ac_try_echo=$ac_try;;
9398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399 (eval "$ac_link") 2>conftest.er1
9401 grep -v '^ *+' conftest.er1 >conftest.err
9403 cat conftest.err >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } && {
9406 test -z "$ac_c_werror_flag" ||
9407 test ! -s conftest.err
9408 } && test -s conftest$ac_exeext &&
9409 $as_test_x conftest$ac_exeext; then
9410 ac_cv_func_dlopen=yes
9412 echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.$ac_ext >&5
9415 ac_cv_func_dlopen=no
9418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9419 conftest$ac_exeext conftest.$ac_ext
9421 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9422 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9423 if test $ac_cv_func_dlopen = yes; then
9424 lt_cv_dlopen="dlopen"
9426 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9427 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9428 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9431 ac_check_lib_save_LIBS=$LIBS
9433 cat >conftest.$ac_ext <<_ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9440 /* Override any GCC internal prototype to avoid an error.
9441 Use char because int might match the return type of a GCC
9442 builtin and then its argument prototype would still apply. */
9455 rm -f conftest.$ac_objext conftest$ac_exeext
9456 if { (ac_try="$ac_link"
9458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459 *) ac_try_echo=$ac_try;;
9461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9462 (eval "$ac_link") 2>conftest.er1
9464 grep -v '^ *+' conftest.er1 >conftest.err
9466 cat conftest.err >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); } && {
9469 test -z "$ac_c_werror_flag" ||
9470 test ! -s conftest.err
9471 } && test -s conftest$ac_exeext &&
9472 $as_test_x conftest$ac_exeext; then
9473 ac_cv_lib_dl_dlopen=yes
9475 echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9478 ac_cv_lib_dl_dlopen=no
9481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9482 conftest$ac_exeext conftest.$ac_ext
9483 LIBS=$ac_check_lib_save_LIBS
9485 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9486 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9487 if test $ac_cv_lib_dl_dlopen = yes; then
9488 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9490 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9491 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9492 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 ac_check_lib_save_LIBS=$LIBS
9497 cat >conftest.$ac_ext <<_ACEOF
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h. */
9504 /* Override any GCC internal prototype to avoid an error.
9505 Use char because int might match the return type of a GCC
9506 builtin and then its argument prototype would still apply. */
9519 rm -f conftest.$ac_objext conftest$ac_exeext
9520 if { (ac_try="$ac_link"
9522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9523 *) ac_try_echo=$ac_try;;
9525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9526 (eval "$ac_link") 2>conftest.er1
9528 grep -v '^ *+' conftest.er1 >conftest.err
9530 cat conftest.err >&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } && {
9533 test -z "$ac_c_werror_flag" ||
9534 test ! -s conftest.err
9535 } && test -s conftest$ac_exeext &&
9536 $as_test_x conftest$ac_exeext; then
9537 ac_cv_lib_svld_dlopen=yes
9539 echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9542 ac_cv_lib_svld_dlopen=no
9545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9546 conftest$ac_exeext conftest.$ac_ext
9547 LIBS=$ac_check_lib_save_LIBS
9549 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9550 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9551 if test $ac_cv_lib_svld_dlopen = yes; then
9552 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9554 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9555 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9556 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9559 ac_check_lib_save_LIBS=$LIBS
9561 cat >conftest.$ac_ext <<_ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9568 /* Override any GCC internal prototype to avoid an error.
9569 Use char because int might match the return type of a GCC
9570 builtin and then its argument prototype would still apply. */
9583 rm -f conftest.$ac_objext conftest$ac_exeext
9584 if { (ac_try="$ac_link"
9586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587 *) ac_try_echo=$ac_try;;
9589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9590 (eval "$ac_link") 2>conftest.er1
9592 grep -v '^ *+' conftest.er1 >conftest.err
9594 cat conftest.err >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); } && {
9597 test -z "$ac_c_werror_flag" ||
9598 test ! -s conftest.err
9599 } && test -s conftest$ac_exeext &&
9600 $as_test_x conftest$ac_exeext; then
9601 ac_cv_lib_dld_dld_link=yes
9603 echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9606 ac_cv_lib_dld_dld_link=no
9609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9610 conftest$ac_exeext conftest.$ac_ext
9611 LIBS=$ac_check_lib_save_LIBS
9613 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9614 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9615 if test $ac_cv_lib_dld_dld_link = yes; then
9616 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9637 if test "x$lt_cv_dlopen" != xno; then
9643 case $lt_cv_dlopen in
9645 save_CPPFLAGS="$CPPFLAGS"
9646 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9648 save_LDFLAGS="$LDFLAGS"
9649 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9652 LIBS="$lt_cv_dlopen_libs $LIBS"
9654 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9655 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9656 if test "${lt_cv_dlopen_self+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 if test "$cross_compiling" = yes; then :
9660 lt_cv_dlopen_self=cross
9662 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9663 lt_status=$lt_dlunknown
9664 cat > conftest.$ac_ext <<EOF
9665 #line 9665 "configure"
9666 #include "confdefs.h"
9675 # define LT_DLGLOBAL RTLD_GLOBAL
9678 # define LT_DLGLOBAL DL_GLOBAL
9680 # define LT_DLGLOBAL 0
9684 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9685 find out it does not work in some platform. */
9686 #ifndef LT_DLLAZY_OR_NOW
9688 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9691 # define LT_DLLAZY_OR_NOW DL_LAZY
9694 # define LT_DLLAZY_OR_NOW RTLD_NOW
9697 # define LT_DLLAZY_OR_NOW DL_NOW
9699 # define LT_DLLAZY_OR_NOW 0
9707 extern "C" void exit (int);
9710 void fnord() { int i=42;}
9713 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9714 int status = $lt_dlunknown;
9718 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9719 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9720 /* dlclose (self); */
9728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9729 (eval $ac_link) 2>&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9733 (./conftest; exit; ) >&5 2>/dev/null
9736 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9737 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9738 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9741 # compilation failed
9742 lt_cv_dlopen_self=no
9749 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9750 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9752 if test "x$lt_cv_dlopen_self" = xyes; then
9753 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9754 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9755 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9756 if test "${lt_cv_dlopen_self_static+set}" = set; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 if test "$cross_compiling" = yes; then :
9760 lt_cv_dlopen_self_static=cross
9762 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9763 lt_status=$lt_dlunknown
9764 cat > conftest.$ac_ext <<EOF
9765 #line 9765 "configure"
9766 #include "confdefs.h"
9775 # define LT_DLGLOBAL RTLD_GLOBAL
9778 # define LT_DLGLOBAL DL_GLOBAL
9780 # define LT_DLGLOBAL 0
9784 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9785 find out it does not work in some platform. */
9786 #ifndef LT_DLLAZY_OR_NOW
9788 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9791 # define LT_DLLAZY_OR_NOW DL_LAZY
9794 # define LT_DLLAZY_OR_NOW RTLD_NOW
9797 # define LT_DLLAZY_OR_NOW DL_NOW
9799 # define LT_DLLAZY_OR_NOW 0
9807 extern "C" void exit (int);
9810 void fnord() { int i=42;}
9813 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9814 int status = $lt_dlunknown;
9818 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9819 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9820 /* dlclose (self); */
9828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9829 (eval $ac_link) 2>&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9833 (./conftest; exit; ) >&5 2>/dev/null
9836 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9837 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9838 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9841 # compilation failed
9842 lt_cv_dlopen_self_static=no
9849 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9850 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9853 CPPFLAGS="$save_CPPFLAGS"
9854 LDFLAGS="$save_LDFLAGS"
9859 case $lt_cv_dlopen_self in
9860 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9861 *) enable_dlopen_self=unknown ;;
9864 case $lt_cv_dlopen_self_static in
9865 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9866 *) enable_dlopen_self_static=unknown ;;
9871 # Report which library types will actually be built
9872 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9873 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9874 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9875 echo "${ECHO_T}$can_build_shared" >&6; }
9877 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9878 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9879 test "$can_build_shared" = "no" && enable_shared=no
9881 # On AIX, shared libraries and static libraries use the same namespace, and
9882 # are all built from PIC.
9885 test "$enable_shared" = yes && enable_static=no
9886 if test -n "$RANLIB"; then
9887 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9888 postinstall_cmds='$RANLIB $lib'
9893 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9894 test "$enable_shared" = yes && enable_static=no
9898 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9899 echo "${ECHO_T}$enable_shared" >&6; }
9901 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9902 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9903 # Make sure either enable_shared or enable_static is yes.
9904 test "$enable_shared" = yes || enable_static=yes
9905 { echo "$as_me:$LINENO: result: $enable_static" >&5
9906 echo "${ECHO_T}$enable_static" >&6; }
9908 # The else clause should only fire when bootstrapping the
9909 # libtool distribution, otherwise you forgot to ship ltmain.sh
9910 # with your package, and you will get complaints that there are
9911 # no rules to generate ltmain.sh.
9912 if test -f "$ltmain"; then
9913 # See if we are running on zsh, and set the options which allow our commands through
9914 # without removal of \ escapes.
9915 if test -n "${ZSH_VERSION+set}" ; then
9916 setopt NO_GLOB_SUBST
9918 # Now quote all the things that may contain metacharacters while being
9919 # careful not to overquote the AC_SUBSTed values. We take copies of the
9920 # variables and quote the copies for generation of the libtool script.
9921 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9923 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9924 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9925 deplibs_check_method reload_flag reload_cmds need_locks \
9926 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9927 lt_cv_sys_global_symbol_to_c_name_address \
9928 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9929 old_postinstall_cmds old_postuninstall_cmds \
9933 lt_prog_compiler_wl \
9934 lt_prog_compiler_pic \
9935 lt_prog_compiler_static \
9936 lt_prog_compiler_no_builtin_flag \
9937 export_dynamic_flag_spec \
9938 thread_safe_flag_spec \
9939 whole_archive_flag_spec \
9940 enable_shared_with_static_runtimes \
9942 old_archive_from_new_cmds \
9947 compiler_lib_search_path \
9949 archive_expsym_cmds \
9951 postuninstall_cmds \
9952 old_archive_from_expsyms_cmds \
9953 allow_undefined_flag \
9955 export_symbols_cmds \
9956 hardcode_libdir_flag_spec \
9957 hardcode_libdir_flag_spec_ld \
9958 hardcode_libdir_separator \
9959 hardcode_automatic \
9961 module_expsym_cmds \
9962 lt_cv_prog_compiler_c_o \
9967 old_archive_cmds | \
9968 old_archive_from_new_cmds | \
9970 archive_expsym_cmds | \
9972 module_expsym_cmds | \
9973 old_archive_from_expsyms_cmds | \
9974 export_symbols_cmds | \
9975 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9976 postinstall_cmds | postuninstall_cmds | \
9977 old_postinstall_cmds | old_postuninstall_cmds | \
9978 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9979 # Double-quote double-evaled strings.
9980 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9983 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9989 *'\$0 --fallback-echo"')
9990 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9995 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9997 { echo "$as_me:$LINENO: creating $ofile" >&5
9998 echo "$as_me: creating $ofile" >&6;}
10000 cat <<__EOF__ >> "$cfgfile"
10003 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10004 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10005 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10007 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10008 # Free Software Foundation, Inc.
10010 # This file is part of GNU Libtool:
10011 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10013 # This program is free software; you can redistribute it and/or modify
10014 # it under the terms of the GNU General Public License as published by
10015 # the Free Software Foundation; either version 2 of the License, or
10016 # (at your option) any later version.
10018 # This program is distributed in the hope that it will be useful, but
10019 # WITHOUT ANY WARRANTY; without even the implied warranty of
10020 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10021 # General Public License for more details.
10023 # You should have received a copy of the GNU General Public License
10024 # along with this program; if not, write to the Free Software
10025 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10027 # As a special exception to the GNU General Public License, if you
10028 # distribute this file as part of a program that contains a
10029 # configuration script generated by Autoconf, you may include it under
10030 # the same distribution terms that you use for the rest of that program.
10032 # A sed program that does not truncate output.
10035 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10036 Xsed="$SED -e 1s/^X//"
10038 # The HP-UX ksh and POSIX shell print the target directory to stdout
10039 # if CDPATH is set.
10040 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10042 # The names of the tagged configurations supported by this script.
10045 # ### BEGIN LIBTOOL CONFIG
10047 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10049 # Shell to use when invoking shell scripts.
10052 # Whether or not to build shared libraries.
10053 build_libtool_libs=$enable_shared
10055 # Whether or not to build static libraries.
10056 build_old_libs=$enable_static
10058 # Whether or not to add -lc for building shared libraries.
10059 build_libtool_need_lc=$archive_cmds_need_lc
10061 # Whether or not to disallow shared libs when runtime libs are static
10062 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10064 # Whether or not to optimize for fast installation.
10065 fast_install=$enable_fast_install
10068 host_alias=$host_alias
10072 # The build system.
10073 build_alias=$build_alias
10077 # An echo program that does not interpret backslashes.
10082 AR_FLAGS=$lt_AR_FLAGS
10087 # LTCC compiler flags.
10088 LTCFLAGS=$lt_LTCFLAGS
10090 # A language-specific compiler.
10093 # Is the compiler the GNU C compiler?
10099 # The linker used to build libraries.
10102 # Whether we need hard or soft links.
10105 # A BSD-compatible nm program.
10108 # A symbol stripping program
10111 # Used to examine libraries when file_magic_cmd begins "file"
10112 MAGIC_CMD=$MAGIC_CMD
10114 # Used on cygwin: DLL creation program.
10117 # Used on cygwin: object dumper.
10120 # Used on cygwin: assembler.
10123 # The name of the directory that contains temporary libtool files.
10126 # How to create reloadable object files.
10127 reload_flag=$lt_reload_flag
10128 reload_cmds=$lt_reload_cmds
10130 # How to pass a linker flag through the compiler.
10131 wl=$lt_lt_prog_compiler_wl
10133 # Object file suffix (normally "o").
10134 objext="$ac_objext"
10136 # Old archive suffix (normally "a").
10139 # Shared library suffix (normally ".so").
10140 shrext_cmds='$shrext_cmds'
10142 # Executable file suffix (normally "").
10145 # Additional compiler flags for building library objects.
10146 pic_flag=$lt_lt_prog_compiler_pic
10149 # What is the maximum length of a command?
10150 max_cmd_len=$lt_cv_sys_max_cmd_len
10152 # Does compiler simultaneously support -c and -o options?
10153 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10155 # Must we lock files when doing compilation?
10156 need_locks=$lt_need_locks
10158 # Do we need the lib prefix for modules?
10159 need_lib_prefix=$need_lib_prefix
10161 # Do we need a version for libraries?
10162 need_version=$need_version
10164 # Whether dlopen is supported.
10165 dlopen_support=$enable_dlopen
10167 # Whether dlopen of programs is supported.
10168 dlopen_self=$enable_dlopen_self
10170 # Whether dlopen of statically linked programs is supported.
10171 dlopen_self_static=$enable_dlopen_self_static
10173 # Compiler flag to prevent dynamic linking.
10174 link_static_flag=$lt_lt_prog_compiler_static
10176 # Compiler flag to turn off builtin functions.
10177 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10179 # Compiler flag to allow reflexive dlopens.
10180 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10182 # Compiler flag to generate shared objects directly from archives.
10183 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10185 # Compiler flag to generate thread-safe objects.
10186 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10188 # Library versioning type.
10189 version_type=$version_type
10191 # Format of library name prefix.
10192 libname_spec=$lt_libname_spec
10194 # List of archive names. First name is the real one, the rest are links.
10195 # The last name is the one that the linker finds with -lNAME.
10196 library_names_spec=$lt_library_names_spec
10198 # The coded name of the library, if different from the real name.
10199 soname_spec=$lt_soname_spec
10201 # Commands used to build and install an old-style archive.
10203 old_archive_cmds=$lt_old_archive_cmds
10204 old_postinstall_cmds=$lt_old_postinstall_cmds
10205 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10207 # Create an old-style archive from a shared archive.
10208 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10210 # Create a temporary old-style archive to link instead of a shared archive.
10211 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10213 # Commands used to build and install a shared archive.
10214 archive_cmds=$lt_archive_cmds
10215 archive_expsym_cmds=$lt_archive_expsym_cmds
10216 postinstall_cmds=$lt_postinstall_cmds
10217 postuninstall_cmds=$lt_postuninstall_cmds
10219 # Commands used to build a loadable module (assumed same as above if empty)
10220 module_cmds=$lt_module_cmds
10221 module_expsym_cmds=$lt_module_expsym_cmds
10223 # Commands to strip libraries.
10224 old_striplib=$lt_old_striplib
10225 striplib=$lt_striplib
10227 # Dependencies to place before the objects being linked to create a
10229 predep_objects=$lt_predep_objects
10231 # Dependencies to place after the objects being linked to create a
10233 postdep_objects=$lt_postdep_objects
10235 # Dependencies to place before the objects being linked to create a
10237 predeps=$lt_predeps
10239 # Dependencies to place after the objects being linked to create a
10241 postdeps=$lt_postdeps
10243 # The library search path used internally by the compiler when linking
10244 # a shared library.
10245 compiler_lib_search_path=$lt_compiler_lib_search_path
10247 # Method to check whether dependent libraries are shared objects.
10248 deplibs_check_method=$lt_deplibs_check_method
10250 # Command to use when deplibs_check_method == file_magic.
10251 file_magic_cmd=$lt_file_magic_cmd
10253 # Flag that allows shared libraries with undefined symbols to be built.
10254 allow_undefined_flag=$lt_allow_undefined_flag
10256 # Flag that forces no undefined symbols.
10257 no_undefined_flag=$lt_no_undefined_flag
10259 # Commands used to finish a libtool library installation in a directory.
10260 finish_cmds=$lt_finish_cmds
10262 # Same as above, but a single script fragment to be evaled but not shown.
10263 finish_eval=$lt_finish_eval
10265 # Take the output of nm and produce a listing of raw symbols and C names.
10266 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10268 # Transform the output of nm in a proper C declaration
10269 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10271 # Transform the output of nm in a C name address pair
10272 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10274 # This is the shared library runtime path variable.
10275 runpath_var=$runpath_var
10277 # This is the shared library path variable.
10278 shlibpath_var=$shlibpath_var
10280 # Is shlibpath searched before the hard-coded library search path?
10281 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10283 # How to hardcode a shared library path into an executable.
10284 hardcode_action=$hardcode_action
10286 # Whether we should hardcode library paths into libraries.
10287 hardcode_into_libs=$hardcode_into_libs
10289 # Flag to hardcode \$libdir into a binary during linking.
10290 # This must work even if \$libdir does not exist.
10291 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10293 # If ld is used when linking, flag to hardcode \$libdir into
10294 # a binary during linking. This must work even if \$libdir does
10296 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10298 # Whether we need a single -rpath flag with a separated argument.
10299 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10301 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10302 # resulting binary.
10303 hardcode_direct=$hardcode_direct
10305 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10306 # resulting binary.
10307 hardcode_minus_L=$hardcode_minus_L
10309 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10310 # the resulting binary.
10311 hardcode_shlibpath_var=$hardcode_shlibpath_var
10313 # Set to yes if building a shared library automatically hardcodes DIR into the library
10314 # and all subsequent libraries and executables linked against it.
10315 hardcode_automatic=$hardcode_automatic
10317 # Variables whose values should be saved in libtool wrapper scripts and
10318 # restored at relink time.
10319 variables_saved_for_relink="$variables_saved_for_relink"
10321 # Whether libtool must link a program against all its dependency libraries.
10322 link_all_deplibs=$link_all_deplibs
10324 # Compile-time system search path for libraries
10325 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10327 # Run-time system search path for libraries
10328 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10330 # Fix the shell variable \$srcfile for the compiler.
10331 fix_srcfile_path="$fix_srcfile_path"
10333 # Set to yes if exported symbols are required.
10334 always_export_symbols=$always_export_symbols
10336 # The commands to list exported symbols.
10337 export_symbols_cmds=$lt_export_symbols_cmds
10339 # The commands to extract the exported symbol list from a shared archive.
10340 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10342 # Symbols that should not be listed in the preloaded symbols.
10343 exclude_expsyms=$lt_exclude_expsyms
10345 # Symbols that must always be exported.
10346 include_expsyms=$lt_include_expsyms
10348 # ### END LIBTOOL CONFIG
10355 cat <<\EOF >> "$cfgfile"
10357 # AIX sometimes has problems with the GCC collect2 program. For some
10358 # reason, if we set the COLLECT_NAMES environment variable, the problems
10359 # vanish in a puff of smoke.
10360 if test "X${COLLECT_NAMES+set}" != Xset; then
10362 export COLLECT_NAMES
10368 # We use sed instead of cat because bash on DJGPP gets confused if
10369 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10370 # text mode, it properly converts lines to CR/LF. This bash problem
10371 # is reportedly fixed, but why not run on old versions too?
10372 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10374 mv -f "$cfgfile" "$ofile" || \
10375 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10379 # If there is no Makefile yet, we rely on a make rule to execute
10380 # `config.status --recheck' to rerun these tests and create the
10381 # libtool script then.
10382 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10383 if test -f "$ltmain_in"; then
10384 test -f Makefile && make "$ltmain"
10390 ac_cpp='$CPP $CPPFLAGS'
10391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10398 # Check whether --with-tags was given.
10399 if test "${with_tags+set}" = set; then
10400 withval=$with_tags; tagnames="$withval"
10404 if test -f "$ltmain" && test -n "$tagnames"; then
10405 if test ! -f "${ofile}"; then
10406 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10407 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10410 if test -z "$LTCC"; then
10411 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10412 if test -z "$LTCC"; then
10413 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10414 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10416 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10417 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10420 if test -z "$LTCFLAGS"; then
10421 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10424 # Extract list of available tagged configurations in $ofile.
10425 # Note that this assumes the entire list is on one line.
10426 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10428 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10429 for tagname in $tagnames; do
10431 # Check whether tagname contains only valid characters
10432 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10434 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10435 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10436 { (exit 1); exit 1; }; }
10440 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10442 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10443 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10444 { (exit 1); exit 1; }; }
10447 # Update the list of available tags.
10448 if test -n "$tagname"; then
10449 echo appending configuration tag \"$tagname\" to $ofile
10453 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10454 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10455 (test "X$CXX" != "Xg++"))) ; then
10457 ac_cpp='$CXXCPP $CPPFLAGS'
10458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10465 archive_cmds_need_lc_CXX=no
10466 allow_undefined_flag_CXX=
10467 always_export_symbols_CXX=no
10468 archive_expsym_cmds_CXX=
10469 export_dynamic_flag_spec_CXX=
10470 hardcode_direct_CXX=no
10471 hardcode_libdir_flag_spec_CXX=
10472 hardcode_libdir_flag_spec_ld_CXX=
10473 hardcode_libdir_separator_CXX=
10474 hardcode_minus_L_CXX=no
10475 hardcode_shlibpath_var_CXX=unsupported
10476 hardcode_automatic_CXX=no
10478 module_expsym_cmds_CXX=
10479 link_all_deplibs_CXX=unknown
10480 old_archive_cmds_CXX=$old_archive_cmds
10481 no_undefined_flag_CXX=
10482 whole_archive_flag_spec_CXX=
10483 enable_shared_with_static_runtimes_CXX=no
10485 # Dependencies to place before and after the object being linked:
10486 predep_objects_CXX=
10487 postdep_objects_CXX=
10490 compiler_lib_search_path_CXX=
10492 # Source file extension for C++ test sources.
10495 # Object file extension for compiled C++ test sources.
10499 # Code to be used in simple compile tests
10500 lt_simple_compile_test_code="int some_variable = 0;\n"
10502 # Code to be used in simple link tests
10503 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10505 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10507 # If no C compiler was specified, use CC.
10510 # If no C compiler flags were specified, use CFLAGS.
10511 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10513 # Allow CC to be a program name with arguments.
10517 # save warnings/boilerplate of simple test code
10518 ac_outfile=conftest.$ac_objext
10519 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10520 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10521 _lt_compiler_boilerplate=`cat conftest.err`
10524 ac_outfile=conftest.$ac_objext
10525 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10526 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10527 _lt_linker_boilerplate=`cat conftest.err`
10531 # Allow CC to be a program name with arguments.
10536 lt_save_with_gnu_ld=$with_gnu_ld
10537 lt_save_path_LD=$lt_cv_path_LD
10538 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10539 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10541 $as_unset lt_cv_prog_gnu_ld
10543 if test -n "${lt_cv_path_LDCXX+set}"; then
10544 lt_cv_path_LD=$lt_cv_path_LDCXX
10546 $as_unset lt_cv_path_LD
10548 test -z "${LDCXX+set}" || LD=$LDCXX
10552 for cc_temp in $compiler""; do
10554 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10555 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10560 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10563 # We don't want -fno-exception wen compiling C++ code, so set the
10564 # no_builtin_flag separately
10565 if test "$GXX" = yes; then
10566 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10568 lt_prog_compiler_no_builtin_flag_CXX=
10571 if test "$GXX" = yes; then
10572 # Set up default GNU C++ configuration
10575 # Check whether --with-gnu-ld was given.
10576 if test "${with_gnu_ld+set}" = set; then
10577 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10583 if test "$GCC" = yes; then
10584 # Check if gcc -print-prog-name=ld gives a path.
10585 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10586 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10589 # gcc leaves a trailing carriage return which upsets mingw
10590 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10592 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10595 # Accept absolute paths.
10597 re_direlt='/[^/][^/]*/\.\./'
10598 # Canonicalize the pathname of ld
10599 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10600 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10601 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10603 test -z "$LD" && LD="$ac_prog"
10606 # If it fails, then pretend we aren't using GCC.
10610 # If it is relative, then search for the first ld in PATH.
10611 with_gnu_ld=unknown
10614 elif test "$with_gnu_ld" = yes; then
10615 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10616 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10618 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10619 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10621 if test "${lt_cv_path_LD+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10624 if test -z "$LD"; then
10625 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10626 for ac_dir in $PATH; do
10628 test -z "$ac_dir" && ac_dir=.
10629 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10630 lt_cv_path_LD="$ac_dir/$ac_prog"
10631 # Check to see if the program is GNU ld. I'd rather use --version,
10632 # but apparently some variants of GNU ld only accept -v.
10633 # Break only if it was the GNU/non-GNU ld that we prefer.
10634 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10635 *GNU* | *'with BFD'*)
10636 test "$with_gnu_ld" != no && break
10639 test "$with_gnu_ld" != yes && break
10646 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10650 LD="$lt_cv_path_LD"
10651 if test -n "$LD"; then
10652 { echo "$as_me:$LINENO: result: $LD" >&5
10653 echo "${ECHO_T}$LD" >&6; }
10655 { echo "$as_me:$LINENO: result: no" >&5
10656 echo "${ECHO_T}no" >&6; }
10658 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10659 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10660 { (exit 1); exit 1; }; }
10661 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10662 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10663 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10666 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10667 case `$LD -v 2>&1 </dev/null` in
10668 *GNU* | *'with BFD'*)
10669 lt_cv_prog_gnu_ld=yes
10672 lt_cv_prog_gnu_ld=no
10676 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10677 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10678 with_gnu_ld=$lt_cv_prog_gnu_ld
10682 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10683 # archiving commands below assume that GNU ld is being used.
10684 if test "$with_gnu_ld" = yes; then
10685 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10686 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'
10688 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10689 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10691 # If archive_cmds runs LD, not CC, wlarc should be empty
10692 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10693 # investigate it a little bit more. (MM)
10696 # ancient GNU ld didn't support --whole-archive et. al.
10697 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10698 grep 'no-whole-archive' > /dev/null; then
10699 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10701 whole_archive_flag_spec_CXX=
10707 # A generic and very simple default shared library creation
10708 # command for GNU C++ for the case where it uses the native
10709 # linker, instead of GNU ld. If possible, this setting should
10710 # overridden to take advantage of the native linker features on
10711 # the platform it is being used on.
10712 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10715 # Commands to make compiler produce verbose output that lists
10716 # what "hidden" libraries, object files and flags are used when
10717 # linking a shared library.
10718 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10726 # PORTME: fill in a description of your system's C++ link characteristics
10727 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10728 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10732 # FIXME: insert proper C++ library support
10736 if test "$host_cpu" = ia64; then
10737 # On IA64, the linker does run time linking by default, so we don't
10738 # have to do anything special.
10739 aix_use_runtimelinking=no
10740 exp_sym_flag='-Bexport'
10743 aix_use_runtimelinking=no
10745 # Test if we are trying to use run time linking or normal
10746 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10747 # need to do runtime linking.
10748 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10749 for ld_flag in $LDFLAGS; do
10752 aix_use_runtimelinking=yes
10760 exp_sym_flag='-bexport'
10761 no_entry_flag='-bnoentry'
10764 # When large executables or shared objects are built, AIX ld can
10765 # have problems creating the table of contents. If linking a library
10766 # or program results in "error TOC overflow" add -mminimal-toc to
10767 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10768 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10770 archive_cmds_CXX=''
10771 hardcode_direct_CXX=yes
10772 hardcode_libdir_separator_CXX=':'
10773 link_all_deplibs_CXX=yes
10775 if test "$GXX" = yes; then
10776 case $host_os in aix4.[012]|aix4.[012].*)
10777 # We only want to do this on AIX 4.2 and lower, the check
10778 # below for broken collect2 doesn't work under 4.3+
10779 collect2name=`${CC} -print-prog-name=collect2`
10780 if test -f "$collect2name" && \
10781 strings "$collect2name" | grep resolve_lib_name >/dev/null
10783 # We have reworked collect2
10784 hardcode_direct_CXX=yes
10786 # We have old collect2
10787 hardcode_direct_CXX=unsupported
10788 # It fails to find uninstalled libraries when the uninstalled
10789 # path is not listed in the libpath. Setting hardcode_minus_L
10790 # to unsupported forces relinking
10791 hardcode_minus_L_CXX=yes
10792 hardcode_libdir_flag_spec_CXX='-L$libdir'
10793 hardcode_libdir_separator_CXX=
10797 shared_flag='-shared'
10798 if test "$aix_use_runtimelinking" = yes; then
10799 shared_flag="$shared_flag "'${wl}-G'
10803 if test "$host_cpu" = ia64; then
10804 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10805 # chokes on -Wl,-G. The following line is correct:
10808 if test "$aix_use_runtimelinking" = yes; then
10809 shared_flag='${wl}-G'
10811 shared_flag='${wl}-bM:SRE'
10816 # It seems that -bexpall does not export symbols beginning with
10817 # underscore (_), so it is better to generate a list of symbols to export.
10818 always_export_symbols_CXX=yes
10819 if test "$aix_use_runtimelinking" = yes; then
10820 # Warning - without using the other runtime loading flags (-brtl),
10821 # -berok will link without error, but may produce a broken library.
10822 allow_undefined_flag_CXX='-berok'
10823 # Determine the default libpath from the value encoded in an empty executable.
10824 cat >conftest.$ac_ext <<_ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h. */
10839 rm -f conftest.$ac_objext conftest$ac_exeext
10840 if { (ac_try="$ac_link"
10841 case "(($ac_try" in
10842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843 *) ac_try_echo=$ac_try;;
10845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846 (eval "$ac_link") 2>conftest.er1
10848 grep -v '^ *+' conftest.er1 >conftest.err
10850 cat conftest.err >&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } && {
10853 test -z "$ac_cxx_werror_flag" ||
10854 test ! -s conftest.err
10855 } && test -s conftest$ac_exeext &&
10856 $as_test_x conftest$ac_exeext; then
10858 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10860 # Check for a 64-bit object if we didn't find anything.
10861 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; }
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10871 conftest$ac_exeext conftest.$ac_ext
10872 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10874 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10876 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"
10878 if test "$host_cpu" = ia64; then
10879 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10880 allow_undefined_flag_CXX="-z nodefs"
10881 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"
10883 # Determine the default libpath from the value encoded in an empty executable.
10884 cat >conftest.$ac_ext <<_ACEOF
10887 cat confdefs.h >>conftest.$ac_ext
10888 cat >>conftest.$ac_ext <<_ACEOF
10889 /* end confdefs.h. */
10899 rm -f conftest.$ac_objext conftest$ac_exeext
10900 if { (ac_try="$ac_link"
10901 case "(($ac_try" in
10902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903 *) ac_try_echo=$ac_try;;
10905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906 (eval "$ac_link") 2>conftest.er1
10908 grep -v '^ *+' conftest.er1 >conftest.err
10910 cat conftest.err >&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } && {
10913 test -z "$ac_cxx_werror_flag" ||
10914 test ! -s conftest.err
10915 } && test -s conftest$ac_exeext &&
10916 $as_test_x conftest$ac_exeext; then
10918 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10920 # Check for a 64-bit object if we didn't find anything.
10921 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; }
10924 echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10931 conftest$ac_exeext conftest.$ac_ext
10932 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10934 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10935 # Warning - without using the other run time loading flags,
10936 # -berok will link without error, but may produce a broken library.
10937 no_undefined_flag_CXX=' ${wl}-bernotok'
10938 allow_undefined_flag_CXX=' ${wl}-berok'
10939 # Exported symbols can be pulled into shared objects from archives
10940 whole_archive_flag_spec_CXX='$convenience'
10941 archive_cmds_need_lc_CXX=yes
10942 # This is similar to how AIX traditionally builds its shared libraries.
10943 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'
10949 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10950 allow_undefined_flag_CXX=unsupported
10951 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10952 # support --undefined. This deserves some investigation. FIXME
10953 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10960 case $cc_basename in
10962 # FIXME: insert proper C++ library support
10968 cygwin* | mingw* | pw32*)
10969 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10970 # as there is no search path for DLLs.
10971 hardcode_libdir_flag_spec_CXX='-L$libdir'
10972 allow_undefined_flag_CXX=unsupported
10973 always_export_symbols_CXX=no
10974 enable_shared_with_static_runtimes_CXX=yes
10976 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10977 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'
10978 # If the export-symbols file already is a .def file (1st line
10979 # is EXPORTS), use it as is; otherwise, prepend...
10980 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10981 cp $export_symbols $output_objdir/$soname.def;
10983 echo EXPORTS > $output_objdir/$soname.def;
10984 cat $export_symbols >> $output_objdir/$soname.def;
10986 $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'
10991 darwin* | rhapsody*)
10993 rhapsody* | darwin1.[012])
10994 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10997 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10998 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11000 case ${MACOSX_DEPLOYMENT_TARGET} in
11002 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11005 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11011 archive_cmds_need_lc_CXX=no
11012 hardcode_direct_CXX=no
11013 hardcode_automatic_CXX=yes
11014 hardcode_shlibpath_var_CXX=unsupported
11015 whole_archive_flag_spec_CXX=''
11016 link_all_deplibs_CXX=yes
11018 if test "$GXX" = yes ; then
11019 lt_int_apple_cc_single_mod=no
11020 output_verbose_link_cmd='echo'
11021 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11022 lt_int_apple_cc_single_mod=yes
11024 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11025 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11027 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'
11029 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11030 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11031 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11032 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}'
11034 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}'
11036 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}'
11038 case $cc_basename in
11040 output_verbose_link_cmd='echo'
11041 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'
11042 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11043 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11044 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}'
11045 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}'
11055 case $cc_basename in
11057 # FIXME: insert proper C++ library support
11061 # Green Hills C++ Compiler
11062 # FIXME: insert proper C++ library support
11066 # FIXME: insert proper C++ library support
11072 # C++ shared libraries reported to be fairly broken before switch to ELF
11076 archive_cmds_need_lc_CXX=no
11078 freebsd* | kfreebsd*-gnu | dragonfly*)
11079 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11086 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11087 hardcode_libdir_separator_CXX=:
11088 export_dynamic_flag_spec_CXX='${wl}-E'
11089 hardcode_direct_CXX=yes
11090 hardcode_minus_L_CXX=yes # Not in the search PATH,
11091 # but as the default
11092 # location of the library.
11094 case $cc_basename in
11096 # FIXME: insert proper C++ library support
11100 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'
11101 # Commands to make compiler produce verbose output that lists
11102 # what "hidden" libraries, object files and flags are used when
11103 # linking a shared library.
11105 # There doesn't appear to be a way to prevent this compiler from
11106 # explicitly linking system object files so we need to strip them
11107 # from the output so that they don't get included in the library
11109 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'
11112 if test "$GXX" = yes; then
11113 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'
11115 # FIXME: insert proper C++ library support
11122 if test $with_gnu_ld = no; then
11123 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11124 hardcode_libdir_separator_CXX=:
11128 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11131 export_dynamic_flag_spec_CXX='${wl}-E'
11137 hardcode_direct_CXX=no
11138 hardcode_shlibpath_var_CXX=no
11141 hardcode_direct_CXX=yes
11142 hardcode_minus_L_CXX=yes # Not in the search PATH,
11143 # but as the default
11144 # location of the library.
11148 case $cc_basename in
11150 # FIXME: insert proper C++ library support
11156 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11159 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11162 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11165 # Commands to make compiler produce verbose output that lists
11166 # what "hidden" libraries, object files and flags are used when
11167 # linking a shared library.
11169 # There doesn't appear to be a way to prevent this compiler from
11170 # explicitly linking system object files so we need to strip them
11171 # from the output so that they don't get included in the library
11173 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'
11176 if test "$GXX" = yes; then
11177 if test $with_gnu_ld = no; then
11180 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11183 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11186 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'
11191 # FIXME: insert proper C++ library support
11198 hardcode_direct_CXX=no
11199 hardcode_shlibpath_var_CXX=no
11200 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11201 export_dynamic_flag_spec_CXX='${wl}-E'
11202 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11203 # Instead, shared libraries are loaded at an image base (0x10000000 by
11204 # default) and relocated if they conflict, which is a slow very memory
11205 # consuming and fragmenting process. To avoid this, we pick a random,
11206 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11207 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11208 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'
11209 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'
11212 case $cc_basename in
11215 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'
11217 # Archives containing C++ object files must be created using
11218 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11219 # necessary to make sure instantiated templates are included
11221 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11224 if test "$GXX" = yes; then
11225 if test "$with_gnu_ld" = no; then
11226 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'
11228 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'
11231 link_all_deplibs_CXX=yes
11234 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11235 hardcode_libdir_separator_CXX=:
11238 case $cc_basename in
11240 # Kuck and Associates, Inc. (KAI) C++ Compiler
11242 # KCC will only create a shared library if the output file
11243 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11244 # to its proper name (with version) after linking.
11245 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'
11246 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'
11247 # Commands to make compiler produce verbose output that lists
11248 # what "hidden" libraries, object files and flags are used when
11249 # linking a shared library.
11251 # There doesn't appear to be a way to prevent this compiler from
11252 # explicitly linking system object files so we need to strip them
11253 # from the output so that they don't get included in the library
11255 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'
11257 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11258 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11260 # Archives containing C++ object files must be created using
11261 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11262 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11267 # version 8.0 and above of icpc choke on multiply defined symbols
11268 # if we add $predep_objects and $postdep_objects, however 7.1 and
11269 # earlier do not add the objects themselves.
11270 case `$CC -V 2>&1` in
11272 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11273 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'
11275 *) # Version 8.0 or newer
11278 ia64*) tmp_idyn=' -i_dynamic';;
11280 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11281 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'
11284 archive_cmds_need_lc_CXX=no
11285 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11286 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11287 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11290 # Portland Group C++ compiler
11291 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11292 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'
11294 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11295 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11296 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'
11300 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11301 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'
11303 runpath_var=LD_RUN_PATH
11304 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11305 hardcode_libdir_separator_CXX=:
11307 # Commands to make compiler produce verbose output that lists
11308 # what "hidden" libraries, object files and flags are used when
11309 # linking a shared library.
11311 # There doesn't appear to be a way to prevent this compiler from
11312 # explicitly linking system object files so we need to strip them
11313 # from the output so that they don't get included in the library
11315 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'
11320 # FIXME: insert proper C++ library support
11324 # FIXME: insert proper C++ library support
11328 case $cc_basename in
11330 # FIXME: insert proper C++ library support
11334 # FIXME: insert proper C++ library support
11340 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11341 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11343 hardcode_libdir_flag_spec_CXX='-R$libdir'
11344 hardcode_direct_CXX=yes
11345 hardcode_shlibpath_var_CXX=no
11347 # Workaround some broken pre-1.5 toolchains
11348 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11351 # C++ shared libraries are fairly broken
11355 hardcode_direct_CXX=yes
11356 hardcode_shlibpath_var_CXX=no
11357 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11358 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11359 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11360 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11361 export_dynamic_flag_spec_CXX='${wl}-E'
11362 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11364 output_verbose_link_cmd='echo'
11367 case $cc_basename in
11369 # Kuck and Associates, Inc. (KAI) C++ Compiler
11371 # KCC will only create a shared library if the output file
11372 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11373 # to its proper name (with version) after linking.
11374 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'
11376 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11377 hardcode_libdir_separator_CXX=:
11379 # Archives containing C++ object files must be created using
11380 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11381 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11385 # Rational C++ 2.4.1
11386 # FIXME: insert proper C++ library support
11390 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11391 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'
11393 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11394 hardcode_libdir_separator_CXX=:
11396 # Commands to make compiler produce verbose output that lists
11397 # what "hidden" libraries, object files and flags are used when
11398 # linking a shared library.
11400 # There doesn't appear to be a way to prevent this compiler from
11401 # explicitly linking system object files so we need to strip them
11402 # from the output so that they don't get included in the library
11404 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'
11407 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11408 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11409 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'
11411 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11412 hardcode_libdir_separator_CXX=:
11414 # Commands to make compiler produce verbose output that lists
11415 # what "hidden" libraries, object files and flags are used when
11416 # linking a shared library.
11417 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11420 # FIXME: insert proper C++ library support
11427 case $cc_basename in
11429 # Kuck and Associates, Inc. (KAI) C++ Compiler
11431 # KCC will only create a shared library if the output file
11432 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11433 # to its proper name (with version) after linking.
11434 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'
11436 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11437 hardcode_libdir_separator_CXX=:
11439 # Archives containing C++ object files must be created using
11440 # the KAI C++ compiler.
11441 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11444 # Rational C++ 2.4.1
11445 # FIXME: insert proper C++ library support
11449 allow_undefined_flag_CXX=' -expect_unresolved \*'
11450 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'
11451 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11452 echo "-hidden">> $lib.exp~
11453 $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~
11456 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11457 hardcode_libdir_separator_CXX=:
11459 # Commands to make compiler produce verbose output that lists
11460 # what "hidden" libraries, object files and flags are used when
11461 # linking a shared library.
11463 # There doesn't appear to be a way to prevent this compiler from
11464 # explicitly linking system object files so we need to strip them
11465 # from the output so that they don't get included in the library
11467 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'
11470 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11471 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11472 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'
11474 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11475 hardcode_libdir_separator_CXX=:
11477 # Commands to make compiler produce verbose output that lists
11478 # what "hidden" libraries, object files and flags are used when
11479 # linking a shared library.
11480 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11483 # FIXME: insert proper C++ library support
11490 # FIXME: insert proper C++ library support
11494 case $cc_basename in
11497 # FIXME: insert proper C++ library support
11502 # FIXME: insert proper C++ library support
11506 # FIXME: insert proper C++ library support
11512 case $cc_basename in
11514 # Sun C++ 4.2, 5.x and Centerline C++
11515 archive_cmds_need_lc_CXX=yes
11516 no_undefined_flag_CXX=' -zdefs'
11517 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11518 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11519 $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'
11521 hardcode_libdir_flag_spec_CXX='-R$libdir'
11522 hardcode_shlibpath_var_CXX=no
11524 solaris2.[0-5] | solaris2.[0-5].*) ;;
11526 # The C++ compiler is used as linker so we must use $wl
11527 # flag to pass the commands to the underlying system
11528 # linker. We must also pass each convience library through
11529 # to the system linker between allextract/defaultextract.
11530 # The C++ compiler will combine linker options so we
11531 # cannot just pass the convience library names through
11533 # Supported since Solaris 2.6 (maybe 2.5.1?)
11534 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'
11537 link_all_deplibs_CXX=yes
11539 output_verbose_link_cmd='echo'
11541 # Archives containing C++ object files must be created using
11542 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11543 # necessary to make sure instantiated templates are included
11545 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11548 # Green Hills C++ Compiler
11549 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11551 # The C++ compiler must be used to create the archive.
11552 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11555 # GNU C++ compiler with Solaris linker
11556 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11557 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11558 if $CC --version | grep -v '^2\.7' > /dev/null; then
11559 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11560 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11561 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11563 # Commands to make compiler produce verbose output that lists
11564 # what "hidden" libraries, object files and flags are used when
11565 # linking a shared library.
11566 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11568 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11570 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11571 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11572 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11574 # Commands to make compiler produce verbose output that lists
11575 # what "hidden" libraries, object files and flags are used when
11576 # linking a shared library.
11577 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11580 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11585 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11586 no_undefined_flag_CXX='${wl}-z,text'
11587 archive_cmds_need_lc_CXX=no
11588 hardcode_shlibpath_var_CXX=no
11589 runpath_var='LD_RUN_PATH'
11591 case $cc_basename in
11593 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11594 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11597 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11598 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11602 sysv5* | sco3.2v5* | sco5v6*)
11603 # Note: We can NOT use -z defs as we might desire, because we do not
11604 # link with -lc, and that would cause any symbols used from libc to
11605 # always be unresolved, which means just about no library would
11606 # ever link correctly. If we're not using GNU ld we use -z text
11607 # though, which does catch some bad symbols but isn't as heavy-handed
11609 # For security reasons, it is highly recommended that you always
11610 # use absolute paths for naming shared libraries, and exclude the
11611 # DT_RUNPATH tag from executables and libraries. But doing so
11612 # requires that you compile everything twice, which is a pain.
11613 # So that behaviour is only enabled if SCOABSPATH is set to a
11614 # non-empty value in the environment. Most likely only useful for
11615 # creating official distributions of packages.
11616 # This is a hack until libtool officially supports absolute path
11617 # names for shared libraries.
11618 no_undefined_flag_CXX='${wl}-z,text'
11619 allow_undefined_flag_CXX='${wl}-z,nodefs'
11620 archive_cmds_need_lc_CXX=no
11621 hardcode_shlibpath_var_CXX=no
11622 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11623 hardcode_libdir_separator_CXX=':'
11624 link_all_deplibs_CXX=yes
11625 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11626 runpath_var='LD_RUN_PATH'
11628 case $cc_basename in
11630 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11631 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11634 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11635 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11640 case $cc_basename in
11642 # NonStop-UX NCC 3.20
11643 # FIXME: insert proper C++ library support
11647 # FIXME: insert proper C++ library support
11653 # FIXME: insert proper C++ library support
11657 # FIXME: insert proper C++ library support
11661 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11662 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11663 test "$ld_shlibs_CXX" = no && can_build_shared=no
11669 ## There is no encapsulation within the following macros, do not change
11670 ## the running order or otherwise move them around unless you know exactly
11671 ## what you are doing...
11673 cat > conftest.$ac_ext <<EOF
11677 Foo (void) { a = 0; }
11683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11684 (eval $ac_compile) 2>&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; then
11688 # Parse the compiler output and extract the necessary
11689 # objects, libraries and library flags.
11691 # Sentinel used to keep track of whether or not we are before
11692 # the conftest object file.
11693 pre_test_object_deps_done=no
11695 # The `*' in the case matches for architectures that use `case' in
11696 # $output_verbose_cmd can trigger glob expansion during the loop
11697 # eval without this substitution.
11698 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11700 for p in `eval $output_verbose_link_cmd`; do
11704 # Some compilers place space between "-{L,R}" and the path.
11705 # Remove the space.
11706 if test $p = "-L" \
11707 || test $p = "-R"; then
11714 if test "$pre_test_object_deps_done" = no; then
11717 # Internal compiler library paths should come after those
11718 # provided the user. The postdeps already come after the
11719 # user supplied libs so there is no need to process them.
11720 if test -z "$compiler_lib_search_path_CXX"; then
11721 compiler_lib_search_path_CXX="${prev}${p}"
11723 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11726 # The "-l" case would never come before the object being
11727 # linked, so don't bother handling this case.
11730 if test -z "$postdeps_CXX"; then
11731 postdeps_CXX="${prev}${p}"
11733 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11739 # This assumes that the test object file only shows up
11740 # once in the compiler output.
11741 if test "$p" = "conftest.$objext"; then
11742 pre_test_object_deps_done=yes
11746 if test "$pre_test_object_deps_done" = no; then
11747 if test -z "$predep_objects_CXX"; then
11748 predep_objects_CXX="$p"
11750 predep_objects_CXX="$predep_objects_CXX $p"
11753 if test -z "$postdep_objects_CXX"; then
11754 postdep_objects_CXX="$p"
11756 postdep_objects_CXX="$postdep_objects_CXX $p"
11761 *) ;; # Ignore the rest.
11769 echo "libtool.m4: error: problem compiling CXX test program"
11772 $rm -f confest.$objext
11774 # PORTME: override above test on systems where it is broken
11777 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11778 # hack all around it, let's just trust "g++" to DTRT.
11779 predep_objects_CXX=
11780 postdep_objects_CXX=
11785 case $cc_basename in
11787 # Adding this requires a known-good setup of shared libraries for
11788 # Sun compiler versions before 5.6, else PIC objects from an old
11789 # archive will be linked into the output, leading to subtle bugs.
11790 postdeps_CXX='-lCstd -lCrun'
11797 case " $postdeps_CXX " in
11798 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11801 lt_prog_compiler_wl_CXX=
11802 lt_prog_compiler_pic_CXX=
11803 lt_prog_compiler_static_CXX=
11805 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11806 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11808 # C++ specific cases for pic, static, wl, etc.
11809 if test "$GXX" = yes; then
11810 lt_prog_compiler_wl_CXX='-Wl,'
11811 lt_prog_compiler_static_CXX='-static'
11815 # All AIX code is PIC.
11816 if test "$host_cpu" = ia64; then
11817 # AIX 5 now supports IA64 processor
11818 lt_prog_compiler_static_CXX='-Bstatic'
11822 # FIXME: we need at least 68020 code to build shared libraries, but
11823 # adding the `-m68020' flag to GCC prevents building anything better,
11825 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11827 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11828 # PIC is the default for these OSes.
11830 mingw* | os2* | pw32*)
11831 # This hack is so that the source file can tell whether it is being
11832 # built for inclusion in a dll (and should export symbols for example).
11833 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11835 darwin* | rhapsody*)
11836 # PIC is the default on this platform
11837 # Common symbols not allowed in MH_DYLIB files
11838 lt_prog_compiler_pic_CXX='-fno-common'
11841 # DJGPP does not support shared libraries at all
11842 lt_prog_compiler_pic_CXX=
11845 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11846 # Instead, we relocate shared libraries at runtime.
11849 if test -d /usr/nec; then
11850 lt_prog_compiler_pic_CXX=-Kconform_pic
11854 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11855 # not for PA HP-UX.
11860 lt_prog_compiler_pic_CXX='-fPIC'
11865 lt_prog_compiler_pic_CXX='-fPIC'
11871 # All AIX code is PIC.
11872 if test "$host_cpu" = ia64; then
11873 # AIX 5 now supports IA64 processor
11874 lt_prog_compiler_static_CXX='-Bstatic'
11876 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11880 case $cc_basename in
11882 # Green Hills C++ Compiler
11883 # _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"
11888 # PIC is the default on this platform
11889 # Common symbols not allowed in MH_DYLIB files
11890 case $cc_basename in
11892 lt_prog_compiler_pic_CXX='-qnocommon'
11893 lt_prog_compiler_wl_CXX='-Wl,'
11898 case $cc_basename in
11900 lt_prog_compiler_pic_CXX='-KPIC'
11903 # Green Hills C++ Compiler
11904 lt_prog_compiler_pic_CXX='-pic'
11910 freebsd* | kfreebsd*-gnu | dragonfly*)
11911 # FreeBSD uses GNU C++
11913 hpux9* | hpux10* | hpux11*)
11914 case $cc_basename in
11916 lt_prog_compiler_wl_CXX='-Wl,'
11917 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11918 if test "$host_cpu" != ia64; then
11919 lt_prog_compiler_pic_CXX='+Z'
11923 lt_prog_compiler_wl_CXX='-Wl,'
11924 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11930 lt_prog_compiler_pic_CXX='+Z'
11939 # This is c89, which is MS Visual C++ (no shared libs)
11940 # Anyone wants to do a port?
11942 irix5* | irix6* | nonstopux*)
11943 case $cc_basename in
11945 lt_prog_compiler_wl_CXX='-Wl,'
11946 lt_prog_compiler_static_CXX='-non_shared'
11947 # CC pic flag -KPIC is the default.
11954 case $cc_basename in
11957 lt_prog_compiler_wl_CXX='--backend -Wl,'
11958 lt_prog_compiler_pic_CXX='-fPIC'
11962 lt_prog_compiler_wl_CXX='-Wl,'
11963 lt_prog_compiler_pic_CXX='-KPIC'
11964 lt_prog_compiler_static_CXX='-static'
11967 # Portland Group C++ compiler.
11968 lt_prog_compiler_wl_CXX='-Wl,'
11969 lt_prog_compiler_pic_CXX='-fpic'
11970 lt_prog_compiler_static_CXX='-Bstatic'
11974 # Make sure the PIC flag is empty. It appears that all Alpha
11975 # Linux and Compaq Tru64 Unix objects are PIC.
11976 lt_prog_compiler_pic_CXX=
11977 lt_prog_compiler_static_CXX='-non_shared'
11988 case $cc_basename in
11990 lt_prog_compiler_pic_CXX='-W c,exportall'
11998 osf3* | osf4* | osf5*)
11999 case $cc_basename in
12001 lt_prog_compiler_wl_CXX='--backend -Wl,'
12004 # Rational C++ 2.4.1
12005 lt_prog_compiler_pic_CXX='-pic'
12008 # Digital/Compaq C++
12009 lt_prog_compiler_wl_CXX='-Wl,'
12010 # Make sure the PIC flag is empty. It appears that all Alpha
12011 # Linux and Compaq Tru64 Unix objects are PIC.
12012 lt_prog_compiler_pic_CXX=
12013 lt_prog_compiler_static_CXX='-non_shared'
12022 case $cc_basename in
12024 # Sun C++ 4.2, 5.x and Centerline C++
12025 lt_prog_compiler_pic_CXX='-KPIC'
12026 lt_prog_compiler_static_CXX='-Bstatic'
12027 lt_prog_compiler_wl_CXX='-Qoption ld '
12030 # Green Hills C++ Compiler
12031 lt_prog_compiler_pic_CXX='-PIC'
12038 case $cc_basename in
12041 lt_prog_compiler_pic_CXX='-pic'
12042 lt_prog_compiler_static_CXX='-Bstatic'
12046 lt_prog_compiler_pic_CXX='-pic'
12053 case $cc_basename in
12055 # NonStop-UX NCC 3.20
12056 lt_prog_compiler_pic_CXX='-KPIC'
12062 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12063 case $cc_basename in
12065 lt_prog_compiler_wl_CXX='-Wl,'
12066 lt_prog_compiler_pic_CXX='-KPIC'
12067 lt_prog_compiler_static_CXX='-Bstatic'
12074 lt_prog_compiler_can_build_shared_CXX=no
12079 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12080 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12083 # Check to make sure the PIC flag actually works.
12085 if test -n "$lt_prog_compiler_pic_CXX"; then
12087 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12088 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12089 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 lt_prog_compiler_pic_works_CXX=no
12093 ac_outfile=conftest.$ac_objext
12094 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12095 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12096 # Insert the option either (1) after the last *FLAGS variable, or
12097 # (2) before a word containing "conftest.", or (3) at the end.
12098 # Note that $ac_compile itself does not contain backslashes and begins
12099 # with a dollar sign (not a hyphen), so the echo should work correctly.
12100 # The option is referenced via a variable to avoid confusing sed.
12101 lt_compile=`echo "$ac_compile" | $SED \
12102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12104 -e 's:$: $lt_compiler_flag:'`
12105 (eval echo "\"\$as_me:12105: $lt_compile\"" >&5)
12106 (eval "$lt_compile" 2>conftest.err)
12108 cat conftest.err >&5
12109 echo "$as_me:12109: \$? = $ac_status" >&5
12110 if (exit $ac_status) && test -s "$ac_outfile"; then
12111 # The compiler can only warn and ignore the option if not recognized
12112 # So say no if there are warnings other than the usual output.
12113 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12115 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12116 lt_prog_compiler_pic_works_CXX=yes
12122 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12123 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12125 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12126 case $lt_prog_compiler_pic_CXX in
12128 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12131 lt_prog_compiler_pic_CXX=
12132 lt_prog_compiler_can_build_shared_CXX=no
12137 # For platforms which do not support PIC, -DPIC is meaningless:
12139 lt_prog_compiler_pic_CXX=
12142 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12147 # Check to make sure the static flag actually works.
12149 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12150 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12151 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12152 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 lt_prog_compiler_static_works_CXX=no
12156 save_LDFLAGS="$LDFLAGS"
12157 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12158 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12159 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12160 # The linker can only warn and ignore the option if not recognized
12161 # So say no if there are warnings
12162 if test -s conftest.err; then
12163 # Append any errors to the config.log.
12164 cat conftest.err 1>&5
12165 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12167 if diff conftest.exp conftest.er2 >/dev/null; then
12168 lt_prog_compiler_static_works_CXX=yes
12171 lt_prog_compiler_static_works_CXX=yes
12175 LDFLAGS="$save_LDFLAGS"
12178 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12179 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12181 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12184 lt_prog_compiler_static_CXX=
12188 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12189 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12190 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12193 lt_cv_prog_compiler_c_o_CXX=no
12194 $rm -r conftest 2>/dev/null
12198 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12200 lt_compiler_flag="-o out/conftest2.$ac_objext"
12201 # Insert the option either (1) after the last *FLAGS variable, or
12202 # (2) before a word containing "conftest.", or (3) at the end.
12203 # Note that $ac_compile itself does not contain backslashes and begins
12204 # with a dollar sign (not a hyphen), so the echo should work correctly.
12205 lt_compile=`echo "$ac_compile" | $SED \
12206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12208 -e 's:$: $lt_compiler_flag:'`
12209 (eval echo "\"\$as_me:12209: $lt_compile\"" >&5)
12210 (eval "$lt_compile" 2>out/conftest.err)
12212 cat out/conftest.err >&5
12213 echo "$as_me:12213: \$? = $ac_status" >&5
12214 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12216 # The compiler can only warn and ignore the option if not recognized
12217 # So say no if there are warnings
12218 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12219 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12220 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12221 lt_cv_prog_compiler_c_o_CXX=yes
12226 # SGI C++ compiler will create directory out/ii_files/ for
12227 # template instantiation
12228 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12229 $rm out/* && rmdir out
12235 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12236 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12239 hard_links="nottested"
12240 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12241 # do not overwrite the value of need_locks provided by the user
12242 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12243 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12246 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12248 ln conftest.a conftest.b 2>&5 || hard_links=no
12249 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12250 { echo "$as_me:$LINENO: result: $hard_links" >&5
12251 echo "${ECHO_T}$hard_links" >&6; }
12252 if test "$hard_links" = no; then
12253 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12254 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12261 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12262 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12264 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12267 # If we're using GNU nm, then we don't want the "-C" option.
12268 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12269 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12270 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'
12272 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'
12276 export_symbols_cmds_CXX="$ltdll_cmds"
12279 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'
12282 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12286 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12287 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12288 test "$ld_shlibs_CXX" = no && can_build_shared=no
12291 # Do we need to explicitly link libc?
12293 case "x$archive_cmds_need_lc_CXX" in
12295 # Assume -lc should be added
12296 archive_cmds_need_lc_CXX=yes
12298 if test "$enable_shared" = yes && test "$GCC" = yes; then
12299 case $archive_cmds_CXX in
12301 # FIXME: we may have to deal with multi-command sequences.
12304 # Test whether the compiler implicitly links with -lc since on some
12305 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12306 # to ld, don't add -lc before -lgcc.
12307 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12308 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12310 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12313 (eval $ac_compile) 2>&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } 2>conftest.err; then
12319 libobjs=conftest.$ac_objext
12321 wl=$lt_prog_compiler_wl_CXX
12322 pic_flag=$lt_prog_compiler_pic_CXX
12328 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12329 allow_undefined_flag_CXX=
12330 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12331 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }
12336 archive_cmds_need_lc_CXX=no
12338 archive_cmds_need_lc_CXX=yes
12340 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12342 cat conftest.err 1>&5
12345 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12346 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12353 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12354 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12355 library_names_spec=
12356 libname_spec='lib$name'
12360 postuninstall_cmds=
12364 shlibpath_overrides_runpath=unknown
12366 dynamic_linker="$host_os ld.so"
12367 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12368 if test "$GCC" = yes; then
12369 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12370 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12371 # if the path contains ";" then we assume it to be the separator
12372 # otherwise default to the standard path separator (i.e. ":") - it is
12373 # assumed that no part of a normal pathname contains ";" but that should
12374 # okay in the real world where ";" in dirpaths is itself problematic.
12375 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12377 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12380 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12382 need_lib_prefix=unknown
12383 hardcode_into_libs=no
12385 # when you set need_version to no, make sure it does not cause -set_version
12386 # flags to be left without arguments
12387 need_version=unknown
12392 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12393 shlibpath_var=LIBPATH
12395 # AIX 3 has no versioning support, so we append a major version to the name.
12396 soname_spec='${libname}${release}${shared_ext}$major'
12403 hardcode_into_libs=yes
12404 if test "$host_cpu" = ia64; then
12405 # AIX 5 supports IA64
12406 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12407 shlibpath_var=LD_LIBRARY_PATH
12409 # With GCC up to 2.95.x, collect2 would create an import file
12410 # for dependence libraries. The import file would start with
12411 # the line `#! .'. This would cause the generated library to
12412 # depend on `.', always an invalid library. This was fixed in
12413 # development snapshots of GCC prior to 3.0.
12415 aix4 | aix4.[01] | aix4.[01].*)
12416 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12418 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12421 can_build_shared=no
12425 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12426 # soname into executable. Probably we can add versioning support to
12427 # collect2, so additional links can be useful in future.
12428 if test "$aix_use_runtimelinking" = yes; then
12429 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12430 # instead of lib<name>.a to let people know that these are not
12431 # typical AIX shared libraries.
12432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12434 # We preserve .a as extension for shared libraries through AIX4.2
12435 # and later when we are not doing run time linking.
12436 library_names_spec='${libname}${release}.a $libname.a'
12437 soname_spec='${libname}${release}${shared_ext}$major'
12439 shlibpath_var=LIBPATH
12444 library_names_spec='$libname.ixlibrary $libname.a'
12445 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12446 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'
12450 library_names_spec='${libname}${shared_ext}'
12451 dynamic_linker="$host_os ld.so"
12452 shlibpath_var=LIBRARY_PATH
12458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12459 soname_spec='${libname}${release}${shared_ext}$major'
12460 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12461 shlibpath_var=LD_LIBRARY_PATH
12462 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12463 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12464 # the default ld.so.conf also contains /usr/contrib/lib and
12465 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12466 # libtool to hard-code these into programs
12469 cygwin* | mingw* | pw32*)
12470 version_type=windows
12475 case $GCC,$host_os in
12476 yes,cygwin* | yes,mingw* | yes,pw32*)
12477 library_names_spec='$libname.dll.a'
12478 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12479 postinstall_cmds='base_file=`basename \${file}`~
12480 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12481 dldir=$destdir/`dirname \$dlpath`~
12482 test -d \$dldir || mkdir -p \$dldir~
12483 $install_prog $dir/$dlname \$dldir/$dlname~
12484 chmod a+x \$dldir/$dlname'
12485 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12486 dlpath=$dir/\$dldll~
12488 shlibpath_overrides_runpath=yes
12492 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12493 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12494 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12497 # MinGW DLLs use traditional 'lib' prefix
12498 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12499 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12500 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12501 # It is most probably a Windows format PATH printed by
12502 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12503 # path with ; separators, and with drive letters. We can handle the
12504 # drive letters (cygwin fileutils understands them), so leave them,
12505 # especially as we might pass files found there to a mingw objdump,
12506 # which wouldn't understand a cygwinified path. Ahh.
12507 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12509 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12513 # pw32 DLLs use 'pw' prefix rather than 'lib'
12514 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12520 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12523 dynamic_linker='Win32 ld.exe'
12524 # FIXME: first we should search . and the directory the executable is in
12528 darwin* | rhapsody*)
12529 dynamic_linker="$host_os dyld"
12530 version_type=darwin
12533 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12534 soname_spec='${libname}${release}${major}$shared_ext'
12535 shlibpath_overrides_runpath=yes
12536 shlibpath_var=DYLD_LIBRARY_PATH
12537 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12538 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12539 if test "$GCC" = yes; then
12540 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"`
12542 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12544 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12552 soname_spec='${libname}${release}${shared_ext}$major'
12553 shlibpath_var=LD_LIBRARY_PATH
12564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12565 soname_spec='${libname}${release}${shared_ext}$major'
12566 shlibpath_var=LD_LIBRARY_PATH
12567 shlibpath_overrides_runpath=no
12568 hardcode_into_libs=yes
12569 dynamic_linker='GNU ld.so'
12572 freebsd* | dragonfly*)
12573 # DragonFly does not have aout. When/if they implement a new
12574 # versioning mechanism, adjust this.
12575 if test -x /usr/bin/objformat; then
12576 objformat=`/usr/bin/objformat`
12579 freebsd[123]*) objformat=aout ;;
12580 *) objformat=elf ;;
12583 version_type=freebsd-$objformat
12584 case $version_type in
12586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12591 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12595 shlibpath_var=LD_LIBRARY_PATH
12598 shlibpath_overrides_runpath=yes
12600 freebsd3.[01]* | freebsdelf3.[01]*)
12601 shlibpath_overrides_runpath=yes
12602 hardcode_into_libs=yes
12604 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12605 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12606 shlibpath_overrides_runpath=no
12607 hardcode_into_libs=yes
12609 freebsd*) # from 4.6 on
12610 shlibpath_overrides_runpath=yes
12611 hardcode_into_libs=yes
12620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12621 soname_spec='${libname}${release}${shared_ext}$major'
12622 shlibpath_var=LD_LIBRARY_PATH
12623 hardcode_into_libs=yes
12626 hpux9* | hpux10* | hpux11*)
12627 # Give a soname corresponding to the major version so that dld.sl refuses to
12628 # link against other versions.
12635 hardcode_into_libs=yes
12636 dynamic_linker="$host_os dld.so"
12637 shlibpath_var=LD_LIBRARY_PATH
12638 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12640 soname_spec='${libname}${release}${shared_ext}$major'
12641 if test "X$HPUX_IA64_MODE" = X32; then
12642 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12644 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12646 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12650 hardcode_into_libs=yes
12651 dynamic_linker="$host_os dld.sl"
12652 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12653 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12655 soname_spec='${libname}${release}${shared_ext}$major'
12656 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12657 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12661 dynamic_linker="$host_os dld.sl"
12662 shlibpath_var=SHLIB_PATH
12663 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12665 soname_spec='${libname}${release}${shared_ext}$major'
12668 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12669 postinstall_cmds='chmod 555 $lib'
12676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12677 soname_spec='${libname}${release}${shared_ext}$major'
12678 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12679 shlibpath_var=LD_LIBRARY_PATH
12680 shlibpath_overrides_runpath=no
12681 hardcode_into_libs=yes
12684 irix5* | irix6* | nonstopux*)
12686 nonstopux*) version_type=nonstopux ;;
12688 if test "$lt_cv_prog_gnu_ld" = yes; then
12696 soname_spec='${libname}${release}${shared_ext}$major'
12697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12699 irix5* | nonstopux*)
12700 libsuff= shlibsuff=
12703 case $LD in # libtool.m4 will add one of these switches to LD
12704 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12705 libsuff= shlibsuff= libmagic=32-bit;;
12706 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12707 libsuff=32 shlibsuff=N32 libmagic=N32;;
12708 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12709 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12710 *) libsuff= shlibsuff= libmagic=never-match;;
12714 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12715 shlibpath_overrides_runpath=no
12716 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12717 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12718 hardcode_into_libs=yes
12721 # No shared lib support for Linux oldld, aout, or coff.
12722 linux*oldld* | linux*aout* | linux*coff*)
12726 # This must be Linux ELF.
12731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12732 soname_spec='${libname}${release}${shared_ext}$major'
12733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12734 shlibpath_var=LD_LIBRARY_PATH
12735 shlibpath_overrides_runpath=no
12736 # This implies no fast_install, which is unacceptable.
12737 # Some rework will be needed to allow for fast_install
12738 # before this can be enabled.
12739 hardcode_into_libs=yes
12741 # Append ld.so.conf contents to the search path
12742 if test -f /etc/ld.so.conf; then
12743 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' ' '`
12744 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12747 # We used to test for /lib/ld.so.1 and disable shared libraries on
12748 # powerpc, because MkLinux only supported shared libraries with the
12749 # GNU dynamic linker. Since this was broken with cross compilers,
12750 # most powerpc-linux boxes support dynamic linking these days and
12751 # people can always --disable-shared, the test was removed, and we
12752 # assume the GNU/Linux dynamic linker is in use.
12753 dynamic_linker='GNU/Linux ld.so'
12760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12761 soname_spec='${libname}${release}${shared_ext}$major'
12762 shlibpath_var=LD_LIBRARY_PATH
12763 shlibpath_overrides_runpath=no
12764 hardcode_into_libs=yes
12765 dynamic_linker='GNU ld.so'
12772 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12775 dynamic_linker='NetBSD (a.out) ld.so'
12777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12778 soname_spec='${libname}${release}${shared_ext}$major'
12779 dynamic_linker='NetBSD ld.elf_so'
12781 shlibpath_var=LD_LIBRARY_PATH
12782 shlibpath_overrides_runpath=yes
12783 hardcode_into_libs=yes
12788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12789 shlibpath_var=LD_LIBRARY_PATH
12790 shlibpath_overrides_runpath=yes
12797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12798 soname_spec='${libname}${release}${shared_ext}$major'
12799 shlibpath_var=LD_LIBRARY_PATH
12800 shlibpath_overrides_runpath=yes
12805 sys_lib_dlsearch_path_spec="/usr/lib"
12807 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12809 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12810 *) need_version=no ;;
12812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12814 shlibpath_var=LD_LIBRARY_PATH
12815 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12817 openbsd2.[89] | openbsd2.[89].*)
12818 shlibpath_overrides_runpath=no
12821 shlibpath_overrides_runpath=yes
12825 shlibpath_overrides_runpath=yes
12830 libname_spec='$name'
12833 library_names_spec='$libname${shared_ext} $libname.a'
12834 dynamic_linker='OS/2 ld.exe'
12835 shlibpath_var=LIBPATH
12838 osf3* | osf4* | osf5*)
12842 soname_spec='${libname}${release}${shared_ext}$major'
12843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12844 shlibpath_var=LD_LIBRARY_PATH
12845 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12846 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12854 soname_spec='${libname}${release}${shared_ext}$major'
12855 shlibpath_var=LD_LIBRARY_PATH
12856 shlibpath_overrides_runpath=yes
12857 hardcode_into_libs=yes
12858 # ldd complains unless libraries are executable
12859 postinstall_cmds='chmod +x $lib'
12864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12865 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12866 shlibpath_var=LD_LIBRARY_PATH
12867 shlibpath_overrides_runpath=yes
12868 if test "$with_gnu_ld" = yes; then
12876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12877 soname_spec='${libname}${release}${shared_ext}$major'
12878 shlibpath_var=LD_LIBRARY_PATH
12879 case $host_vendor in
12881 shlibpath_overrides_runpath=no
12883 export_dynamic_flag_spec='${wl}-Blargedynsym'
12884 runpath_var=LD_RUN_PATH
12892 shlibpath_overrides_runpath=no
12893 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12899 if test -d /usr/nec ;then
12901 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12902 soname_spec='$libname${shared_ext}.$major'
12903 shlibpath_var=LD_LIBRARY_PATH
12907 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12908 version_type=freebsd-elf
12911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12912 soname_spec='${libname}${release}${shared_ext}$major'
12913 shlibpath_var=LD_LIBRARY_PATH
12914 hardcode_into_libs=yes
12915 if test "$with_gnu_ld" = yes; then
12916 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12917 shlibpath_overrides_runpath=no
12919 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12920 shlibpath_overrides_runpath=yes
12923 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12927 sys_lib_dlsearch_path_spec='/usr/lib'
12932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12933 soname_spec='${libname}${release}${shared_ext}$major'
12934 shlibpath_var=LD_LIBRARY_PATH
12941 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12942 echo "${ECHO_T}$dynamic_linker" >&6; }
12943 test "$dynamic_linker" = no && can_build_shared=no
12945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12946 if test "$GCC" = yes; then
12947 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12950 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12951 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12952 hardcode_action_CXX=
12953 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12954 test -n "$runpath_var_CXX" || \
12955 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12957 # We can hardcode non-existant directories.
12958 if test "$hardcode_direct_CXX" != no &&
12959 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12960 # have to relink, otherwise we might link with an installed library
12961 # when we should be linking with a yet-to-be-installed one
12962 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12963 test "$hardcode_minus_L_CXX" != no; then
12964 # Linking always hardcodes the temporary library directory.
12965 hardcode_action_CXX=relink
12967 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12968 hardcode_action_CXX=immediate
12971 # We cannot hardcode anything, or else we can only hardcode existing
12973 hardcode_action_CXX=unsupported
12975 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12976 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12978 if test "$hardcode_action_CXX" = relink; then
12979 # Fast installation is not supported
12980 enable_fast_install=no
12981 elif test "$shlibpath_overrides_runpath" = yes ||
12982 test "$enable_shared" = no; then
12983 # Fast installation is not necessary
12984 enable_fast_install=needless
12988 # The else clause should only fire when bootstrapping the
12989 # libtool distribution, otherwise you forgot to ship ltmain.sh
12990 # with your package, and you will get complaints that there are
12991 # no rules to generate ltmain.sh.
12992 if test -f "$ltmain"; then
12993 # See if we are running on zsh, and set the options which allow our commands through
12994 # without removal of \ escapes.
12995 if test -n "${ZSH_VERSION+set}" ; then
12996 setopt NO_GLOB_SUBST
12998 # Now quote all the things that may contain metacharacters while being
12999 # careful not to overquote the AC_SUBSTed values. We take copies of the
13000 # variables and quote the copies for generation of the libtool script.
13001 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13003 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13004 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13005 deplibs_check_method reload_flag reload_cmds need_locks \
13006 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13007 lt_cv_sys_global_symbol_to_c_name_address \
13008 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13009 old_postinstall_cmds old_postuninstall_cmds \
13013 lt_prog_compiler_wl_CXX \
13014 lt_prog_compiler_pic_CXX \
13015 lt_prog_compiler_static_CXX \
13016 lt_prog_compiler_no_builtin_flag_CXX \
13017 export_dynamic_flag_spec_CXX \
13018 thread_safe_flag_spec_CXX \
13019 whole_archive_flag_spec_CXX \
13020 enable_shared_with_static_runtimes_CXX \
13021 old_archive_cmds_CXX \
13022 old_archive_from_new_cmds_CXX \
13023 predep_objects_CXX \
13024 postdep_objects_CXX \
13027 compiler_lib_search_path_CXX \
13029 archive_expsym_cmds_CXX \
13030 postinstall_cmds_CXX \
13031 postuninstall_cmds_CXX \
13032 old_archive_from_expsyms_cmds_CXX \
13033 allow_undefined_flag_CXX \
13034 no_undefined_flag_CXX \
13035 export_symbols_cmds_CXX \
13036 hardcode_libdir_flag_spec_CXX \
13037 hardcode_libdir_flag_spec_ld_CXX \
13038 hardcode_libdir_separator_CXX \
13039 hardcode_automatic_CXX \
13041 module_expsym_cmds_CXX \
13042 lt_cv_prog_compiler_c_o_CXX \
13043 exclude_expsyms_CXX \
13044 include_expsyms_CXX; do
13047 old_archive_cmds_CXX | \
13048 old_archive_from_new_cmds_CXX | \
13049 archive_cmds_CXX | \
13050 archive_expsym_cmds_CXX | \
13051 module_cmds_CXX | \
13052 module_expsym_cmds_CXX | \
13053 old_archive_from_expsyms_cmds_CXX | \
13054 export_symbols_cmds_CXX | \
13055 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13056 postinstall_cmds | postuninstall_cmds | \
13057 old_postinstall_cmds | old_postuninstall_cmds | \
13058 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13059 # Double-quote double-evaled strings.
13060 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13063 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13069 *'\$0 --fallback-echo"')
13070 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13076 cat <<__EOF__ >> "$cfgfile"
13077 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13079 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13081 # Shell to use when invoking shell scripts.
13084 # Whether or not to build shared libraries.
13085 build_libtool_libs=$enable_shared
13087 # Whether or not to build static libraries.
13088 build_old_libs=$enable_static
13090 # Whether or not to add -lc for building shared libraries.
13091 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13093 # Whether or not to disallow shared libs when runtime libs are static
13094 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13096 # Whether or not to optimize for fast installation.
13097 fast_install=$enable_fast_install
13100 host_alias=$host_alias
13104 # The build system.
13105 build_alias=$build_alias
13109 # An echo program that does not interpret backslashes.
13114 AR_FLAGS=$lt_AR_FLAGS
13119 # LTCC compiler flags.
13120 LTCFLAGS=$lt_LTCFLAGS
13122 # A language-specific compiler.
13123 CC=$lt_compiler_CXX
13125 # Is the compiler the GNU C compiler?
13131 # The linker used to build libraries.
13134 # Whether we need hard or soft links.
13137 # A BSD-compatible nm program.
13140 # A symbol stripping program
13143 # Used to examine libraries when file_magic_cmd begins "file"
13144 MAGIC_CMD=$MAGIC_CMD
13146 # Used on cygwin: DLL creation program.
13149 # Used on cygwin: object dumper.
13152 # Used on cygwin: assembler.
13155 # The name of the directory that contains temporary libtool files.
13158 # How to create reloadable object files.
13159 reload_flag=$lt_reload_flag
13160 reload_cmds=$lt_reload_cmds
13162 # How to pass a linker flag through the compiler.
13163 wl=$lt_lt_prog_compiler_wl_CXX
13165 # Object file suffix (normally "o").
13166 objext="$ac_objext"
13168 # Old archive suffix (normally "a").
13171 # Shared library suffix (normally ".so").
13172 shrext_cmds='$shrext_cmds'
13174 # Executable file suffix (normally "").
13177 # Additional compiler flags for building library objects.
13178 pic_flag=$lt_lt_prog_compiler_pic_CXX
13181 # What is the maximum length of a command?
13182 max_cmd_len=$lt_cv_sys_max_cmd_len
13184 # Does compiler simultaneously support -c and -o options?
13185 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13187 # Must we lock files when doing compilation?
13188 need_locks=$lt_need_locks
13190 # Do we need the lib prefix for modules?
13191 need_lib_prefix=$need_lib_prefix
13193 # Do we need a version for libraries?
13194 need_version=$need_version
13196 # Whether dlopen is supported.
13197 dlopen_support=$enable_dlopen
13199 # Whether dlopen of programs is supported.
13200 dlopen_self=$enable_dlopen_self
13202 # Whether dlopen of statically linked programs is supported.
13203 dlopen_self_static=$enable_dlopen_self_static
13205 # Compiler flag to prevent dynamic linking.
13206 link_static_flag=$lt_lt_prog_compiler_static_CXX
13208 # Compiler flag to turn off builtin functions.
13209 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13211 # Compiler flag to allow reflexive dlopens.
13212 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13214 # Compiler flag to generate shared objects directly from archives.
13215 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13217 # Compiler flag to generate thread-safe objects.
13218 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13220 # Library versioning type.
13221 version_type=$version_type
13223 # Format of library name prefix.
13224 libname_spec=$lt_libname_spec
13226 # List of archive names. First name is the real one, the rest are links.
13227 # The last name is the one that the linker finds with -lNAME.
13228 library_names_spec=$lt_library_names_spec
13230 # The coded name of the library, if different from the real name.
13231 soname_spec=$lt_soname_spec
13233 # Commands used to build and install an old-style archive.
13235 old_archive_cmds=$lt_old_archive_cmds_CXX
13236 old_postinstall_cmds=$lt_old_postinstall_cmds
13237 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13239 # Create an old-style archive from a shared archive.
13240 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13242 # Create a temporary old-style archive to link instead of a shared archive.
13243 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13245 # Commands used to build and install a shared archive.
13246 archive_cmds=$lt_archive_cmds_CXX
13247 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13248 postinstall_cmds=$lt_postinstall_cmds
13249 postuninstall_cmds=$lt_postuninstall_cmds
13251 # Commands used to build a loadable module (assumed same as above if empty)
13252 module_cmds=$lt_module_cmds_CXX
13253 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13255 # Commands to strip libraries.
13256 old_striplib=$lt_old_striplib
13257 striplib=$lt_striplib
13259 # Dependencies to place before the objects being linked to create a
13261 predep_objects=$lt_predep_objects_CXX
13263 # Dependencies to place after the objects being linked to create a
13265 postdep_objects=$lt_postdep_objects_CXX
13267 # Dependencies to place before the objects being linked to create a
13269 predeps=$lt_predeps_CXX
13271 # Dependencies to place after the objects being linked to create a
13273 postdeps=$lt_postdeps_CXX
13275 # The library search path used internally by the compiler when linking
13276 # a shared library.
13277 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13279 # Method to check whether dependent libraries are shared objects.
13280 deplibs_check_method=$lt_deplibs_check_method
13282 # Command to use when deplibs_check_method == file_magic.
13283 file_magic_cmd=$lt_file_magic_cmd
13285 # Flag that allows shared libraries with undefined symbols to be built.
13286 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13288 # Flag that forces no undefined symbols.
13289 no_undefined_flag=$lt_no_undefined_flag_CXX
13291 # Commands used to finish a libtool library installation in a directory.
13292 finish_cmds=$lt_finish_cmds
13294 # Same as above, but a single script fragment to be evaled but not shown.
13295 finish_eval=$lt_finish_eval
13297 # Take the output of nm and produce a listing of raw symbols and C names.
13298 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13300 # Transform the output of nm in a proper C declaration
13301 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13303 # Transform the output of nm in a C name address pair
13304 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13306 # This is the shared library runtime path variable.
13307 runpath_var=$runpath_var
13309 # This is the shared library path variable.
13310 shlibpath_var=$shlibpath_var
13312 # Is shlibpath searched before the hard-coded library search path?
13313 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13315 # How to hardcode a shared library path into an executable.
13316 hardcode_action=$hardcode_action_CXX
13318 # Whether we should hardcode library paths into libraries.
13319 hardcode_into_libs=$hardcode_into_libs
13321 # Flag to hardcode \$libdir into a binary during linking.
13322 # This must work even if \$libdir does not exist.
13323 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13325 # If ld is used when linking, flag to hardcode \$libdir into
13326 # a binary during linking. This must work even if \$libdir does
13328 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13330 # Whether we need a single -rpath flag with a separated argument.
13331 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13333 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13334 # resulting binary.
13335 hardcode_direct=$hardcode_direct_CXX
13337 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13338 # resulting binary.
13339 hardcode_minus_L=$hardcode_minus_L_CXX
13341 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13342 # the resulting binary.
13343 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13345 # Set to yes if building a shared library automatically hardcodes DIR into the library
13346 # and all subsequent libraries and executables linked against it.
13347 hardcode_automatic=$hardcode_automatic_CXX
13349 # Variables whose values should be saved in libtool wrapper scripts and
13350 # restored at relink time.
13351 variables_saved_for_relink="$variables_saved_for_relink"
13353 # Whether libtool must link a program against all its dependency libraries.
13354 link_all_deplibs=$link_all_deplibs_CXX
13356 # Compile-time system search path for libraries
13357 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13359 # Run-time system search path for libraries
13360 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13362 # Fix the shell variable \$srcfile for the compiler.
13363 fix_srcfile_path="$fix_srcfile_path_CXX"
13365 # Set to yes if exported symbols are required.
13366 always_export_symbols=$always_export_symbols_CXX
13368 # The commands to list exported symbols.
13369 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13371 # The commands to extract the exported symbol list from a shared archive.
13372 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13374 # Symbols that should not be listed in the preloaded symbols.
13375 exclude_expsyms=$lt_exclude_expsyms_CXX
13377 # Symbols that must always be exported.
13378 include_expsyms=$lt_include_expsyms_CXX
13380 # ### END LIBTOOL TAG CONFIG: $tagname
13386 # If there is no Makefile yet, we rely on a make rule to execute
13387 # `config.status --recheck' to rerun these tests and create the
13388 # libtool script then.
13389 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13390 if test -f "$ltmain_in"; then
13391 test -f Makefile && make "$ltmain"
13397 ac_cpp='$CPP $CPPFLAGS'
13398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13406 with_gnu_ldcxx=$with_gnu_ld
13407 with_gnu_ld=$lt_save_with_gnu_ld
13408 lt_cv_path_LDCXX=$lt_cv_path_LD
13409 lt_cv_path_LD=$lt_save_path_LD
13410 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13411 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13419 if test -n "$F77" && test "X$F77" != "Xno"; then
13422 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13423 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13424 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13427 archive_cmds_need_lc_F77=no
13428 allow_undefined_flag_F77=
13429 always_export_symbols_F77=no
13430 archive_expsym_cmds_F77=
13431 export_dynamic_flag_spec_F77=
13432 hardcode_direct_F77=no
13433 hardcode_libdir_flag_spec_F77=
13434 hardcode_libdir_flag_spec_ld_F77=
13435 hardcode_libdir_separator_F77=
13436 hardcode_minus_L_F77=no
13437 hardcode_automatic_F77=no
13439 module_expsym_cmds_F77=
13440 link_all_deplibs_F77=unknown
13441 old_archive_cmds_F77=$old_archive_cmds
13442 no_undefined_flag_F77=
13443 whole_archive_flag_spec_F77=
13444 enable_shared_with_static_runtimes_F77=no
13446 # Source file extension for f77 test sources.
13449 # Object file extension for compiled f77 test sources.
13453 # Code to be used in simple compile tests
13454 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13456 # Code to be used in simple link tests
13457 lt_simple_link_test_code=" program t\n end\n"
13459 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13461 # If no C compiler was specified, use CC.
13464 # If no C compiler flags were specified, use CFLAGS.
13465 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13467 # Allow CC to be a program name with arguments.
13471 # save warnings/boilerplate of simple test code
13472 ac_outfile=conftest.$ac_objext
13473 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13474 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13475 _lt_compiler_boilerplate=`cat conftest.err`
13478 ac_outfile=conftest.$ac_objext
13479 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13480 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13481 _lt_linker_boilerplate=`cat conftest.err`
13485 # Allow CC to be a program name with arguments.
13490 for cc_temp in $compiler""; do
13492 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13493 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13498 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13501 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13502 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13503 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13504 echo "${ECHO_T}$can_build_shared" >&6; }
13506 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13507 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13508 test "$can_build_shared" = "no" && enable_shared=no
13510 # On AIX, shared libraries and static libraries use the same namespace, and
13511 # are all built from PIC.
13514 test "$enable_shared" = yes && enable_static=no
13515 if test -n "$RANLIB"; then
13516 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13517 postinstall_cmds='$RANLIB $lib'
13521 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13522 test "$enable_shared" = yes && enable_static=no
13526 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13527 echo "${ECHO_T}$enable_shared" >&6; }
13529 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13530 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13531 # Make sure either enable_shared or enable_static is yes.
13532 test "$enable_shared" = yes || enable_static=yes
13533 { echo "$as_me:$LINENO: result: $enable_static" >&5
13534 echo "${ECHO_T}$enable_static" >&6; }
13539 lt_prog_compiler_wl_F77=
13540 lt_prog_compiler_pic_F77=
13541 lt_prog_compiler_static_F77=
13543 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13544 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13546 if test "$GCC" = yes; then
13547 lt_prog_compiler_wl_F77='-Wl,'
13548 lt_prog_compiler_static_F77='-static'
13552 # All AIX code is PIC.
13553 if test "$host_cpu" = ia64; then
13554 # AIX 5 now supports IA64 processor
13555 lt_prog_compiler_static_F77='-Bstatic'
13560 # FIXME: we need at least 68020 code to build shared libraries, but
13561 # adding the `-m68020' flag to GCC prevents building anything better,
13563 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13566 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13567 # PIC is the default for these OSes.
13570 mingw* | pw32* | os2*)
13571 # This hack is so that the source file can tell whether it is being
13572 # built for inclusion in a dll (and should export symbols for example).
13573 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13576 darwin* | rhapsody*)
13577 # PIC is the default on this platform
13578 # Common symbols not allowed in MH_DYLIB files
13579 lt_prog_compiler_pic_F77='-fno-common'
13583 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13584 # Instead, we relocate shared libraries at runtime.
13588 # Just because we use GCC doesn't mean we suddenly get shared libraries
13589 # on systems that don't support them.
13590 lt_prog_compiler_can_build_shared_F77=no
13595 if test -d /usr/nec; then
13596 lt_prog_compiler_pic_F77=-Kconform_pic
13601 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13602 # not for PA HP-UX.
13608 lt_prog_compiler_pic_F77='-fPIC'
13614 lt_prog_compiler_pic_F77='-fPIC'
13618 # PORTME Check for flag to pass linker flags through the system compiler.
13621 lt_prog_compiler_wl_F77='-Wl,'
13622 if test "$host_cpu" = ia64; then
13623 # AIX 5 now supports IA64 processor
13624 lt_prog_compiler_static_F77='-Bstatic'
13626 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13630 # PIC is the default on this platform
13631 # Common symbols not allowed in MH_DYLIB files
13632 case $cc_basename in
13634 lt_prog_compiler_pic_F77='-qnocommon'
13635 lt_prog_compiler_wl_F77='-Wl,'
13640 mingw* | pw32* | os2*)
13641 # This hack is so that the source file can tell whether it is being
13642 # built for inclusion in a dll (and should export symbols for example).
13643 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13646 hpux9* | hpux10* | hpux11*)
13647 lt_prog_compiler_wl_F77='-Wl,'
13648 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13649 # not for PA HP-UX.
13655 lt_prog_compiler_pic_F77='+Z'
13658 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13659 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13662 irix5* | irix6* | nonstopux*)
13663 lt_prog_compiler_wl_F77='-Wl,'
13664 # PIC (with -KPIC) is the default.
13665 lt_prog_compiler_static_F77='-non_shared'
13669 lt_prog_compiler_pic_F77='-KPIC'
13670 lt_prog_compiler_static_F77='-Bstatic'
13674 case $cc_basename in
13676 lt_prog_compiler_wl_F77='-Wl,'
13677 lt_prog_compiler_pic_F77='-KPIC'
13678 lt_prog_compiler_static_F77='-static'
13680 pgcc* | pgf77* | pgf90* | pgf95*)
13681 # Portland Group compilers (*not* the Pentium gcc compiler,
13682 # which looks to be a dead project)
13683 lt_prog_compiler_wl_F77='-Wl,'
13684 lt_prog_compiler_pic_F77='-fpic'
13685 lt_prog_compiler_static_F77='-Bstatic'
13688 lt_prog_compiler_wl_F77='-Wl,'
13689 # All Alpha code is PIC.
13690 lt_prog_compiler_static_F77='-non_shared'
13695 osf3* | osf4* | osf5*)
13696 lt_prog_compiler_wl_F77='-Wl,'
13697 # All OSF/1 code is PIC.
13698 lt_prog_compiler_static_F77='-non_shared'
13702 lt_prog_compiler_pic_F77='-KPIC'
13703 lt_prog_compiler_static_F77='-Bstatic'
13704 case $cc_basename in
13705 f77* | f90* | f95*)
13706 lt_prog_compiler_wl_F77='-Qoption ld ';;
13708 lt_prog_compiler_wl_F77='-Wl,';;
13713 lt_prog_compiler_wl_F77='-Qoption ld '
13714 lt_prog_compiler_pic_F77='-PIC'
13715 lt_prog_compiler_static_F77='-Bstatic'
13718 sysv4 | sysv4.2uw2* | sysv4.3*)
13719 lt_prog_compiler_wl_F77='-Wl,'
13720 lt_prog_compiler_pic_F77='-KPIC'
13721 lt_prog_compiler_static_F77='-Bstatic'
13725 if test -d /usr/nec ;then
13726 lt_prog_compiler_pic_F77='-Kconform_pic'
13727 lt_prog_compiler_static_F77='-Bstatic'
13731 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13732 lt_prog_compiler_wl_F77='-Wl,'
13733 lt_prog_compiler_pic_F77='-KPIC'
13734 lt_prog_compiler_static_F77='-Bstatic'
13738 lt_prog_compiler_wl_F77='-Wl,'
13739 lt_prog_compiler_can_build_shared_F77=no
13743 lt_prog_compiler_pic_F77='-pic'
13744 lt_prog_compiler_static_F77='-Bstatic'
13748 lt_prog_compiler_can_build_shared_F77=no
13753 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13754 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13757 # Check to make sure the PIC flag actually works.
13759 if test -n "$lt_prog_compiler_pic_F77"; then
13761 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13762 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13763 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13764 echo $ECHO_N "(cached) $ECHO_C" >&6
13766 lt_prog_compiler_pic_works_F77=no
13767 ac_outfile=conftest.$ac_objext
13768 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13769 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13770 # Insert the option either (1) after the last *FLAGS variable, or
13771 # (2) before a word containing "conftest.", or (3) at the end.
13772 # Note that $ac_compile itself does not contain backslashes and begins
13773 # with a dollar sign (not a hyphen), so the echo should work correctly.
13774 # The option is referenced via a variable to avoid confusing sed.
13775 lt_compile=`echo "$ac_compile" | $SED \
13776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13778 -e 's:$: $lt_compiler_flag:'`
13779 (eval echo "\"\$as_me:13779: $lt_compile\"" >&5)
13780 (eval "$lt_compile" 2>conftest.err)
13782 cat conftest.err >&5
13783 echo "$as_me:13783: \$? = $ac_status" >&5
13784 if (exit $ac_status) && test -s "$ac_outfile"; then
13785 # The compiler can only warn and ignore the option if not recognized
13786 # So say no if there are warnings other than the usual output.
13787 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13789 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13790 lt_prog_compiler_pic_works_F77=yes
13796 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13797 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13799 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13800 case $lt_prog_compiler_pic_F77 in
13802 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13805 lt_prog_compiler_pic_F77=
13806 lt_prog_compiler_can_build_shared_F77=no
13811 # For platforms which do not support PIC, -DPIC is meaningless:
13813 lt_prog_compiler_pic_F77=
13816 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13821 # Check to make sure the static flag actually works.
13823 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13824 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13825 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13826 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13829 lt_prog_compiler_static_works_F77=no
13830 save_LDFLAGS="$LDFLAGS"
13831 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13832 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13833 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13834 # The linker can only warn and ignore the option if not recognized
13835 # So say no if there are warnings
13836 if test -s conftest.err; then
13837 # Append any errors to the config.log.
13838 cat conftest.err 1>&5
13839 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13840 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13841 if diff conftest.exp conftest.er2 >/dev/null; then
13842 lt_prog_compiler_static_works_F77=yes
13845 lt_prog_compiler_static_works_F77=yes
13849 LDFLAGS="$save_LDFLAGS"
13852 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13853 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13855 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13858 lt_prog_compiler_static_F77=
13862 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13863 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13864 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13867 lt_cv_prog_compiler_c_o_F77=no
13868 $rm -r conftest 2>/dev/null
13872 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13874 lt_compiler_flag="-o out/conftest2.$ac_objext"
13875 # Insert the option either (1) after the last *FLAGS variable, or
13876 # (2) before a word containing "conftest.", or (3) at the end.
13877 # Note that $ac_compile itself does not contain backslashes and begins
13878 # with a dollar sign (not a hyphen), so the echo should work correctly.
13879 lt_compile=`echo "$ac_compile" | $SED \
13880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13882 -e 's:$: $lt_compiler_flag:'`
13883 (eval echo "\"\$as_me:13883: $lt_compile\"" >&5)
13884 (eval "$lt_compile" 2>out/conftest.err)
13886 cat out/conftest.err >&5
13887 echo "$as_me:13887: \$? = $ac_status" >&5
13888 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13890 # The compiler can only warn and ignore the option if not recognized
13891 # So say no if there are warnings
13892 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13893 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13894 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13895 lt_cv_prog_compiler_c_o_F77=yes
13900 # SGI C++ compiler will create directory out/ii_files/ for
13901 # template instantiation
13902 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13903 $rm out/* && rmdir out
13909 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13910 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13913 hard_links="nottested"
13914 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13915 # do not overwrite the value of need_locks provided by the user
13916 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13917 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13920 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13922 ln conftest.a conftest.b 2>&5 || hard_links=no
13923 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13924 { echo "$as_me:$LINENO: result: $hard_links" >&5
13925 echo "${ECHO_T}$hard_links" >&6; }
13926 if test "$hard_links" = no; then
13927 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13928 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13935 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13936 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13939 allow_undefined_flag_F77=
13940 enable_shared_with_static_runtimes_F77=no
13942 archive_expsym_cmds_F77=
13943 old_archive_From_new_cmds_F77=
13944 old_archive_from_expsyms_cmds_F77=
13945 export_dynamic_flag_spec_F77=
13946 whole_archive_flag_spec_F77=
13947 thread_safe_flag_spec_F77=
13948 hardcode_libdir_flag_spec_F77=
13949 hardcode_libdir_flag_spec_ld_F77=
13950 hardcode_libdir_separator_F77=
13951 hardcode_direct_F77=no
13952 hardcode_minus_L_F77=no
13953 hardcode_shlibpath_var_F77=unsupported
13954 link_all_deplibs_F77=unknown
13955 hardcode_automatic_F77=no
13957 module_expsym_cmds_F77=
13958 always_export_symbols_F77=no
13959 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13960 # include_expsyms should be a list of space-separated symbols to be *always*
13961 # included in the symbol list
13962 include_expsyms_F77=
13963 # exclude_expsyms can be an extended regexp of symbols to exclude
13964 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13965 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13966 # as well as any symbol that contains `d'.
13967 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13968 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13969 # platforms (ab)use it in PIC code, but their linkers get confused if
13970 # the symbol is explicitly referenced. Since portable code cannot
13971 # rely on this symbol name, it's probably fine to never include it in
13972 # preloaded symbol tables.
13973 extract_expsyms_cmds=
13974 # Just being paranoid about ensuring that cc_basename is set.
13975 for cc_temp in $compiler""; do
13977 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13978 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13983 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13986 cygwin* | mingw* | pw32*)
13987 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13988 # When not using gcc, we currently assume that we are using
13989 # Microsoft Visual C++.
13990 if test "$GCC" != yes; then
13995 # we just hope/assume this is gcc and not c89 (= MSVC++)
14004 if test "$with_gnu_ld" = yes; then
14005 # If archive_cmds runs LD, not CC, wlarc should be empty
14008 # Set some defaults for GNU ld with shared library support. These
14009 # are reset later if shared libraries are not supported. Putting them
14010 # here allows them to be overridden if necessary.
14011 runpath_var=LD_RUN_PATH
14012 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14013 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14014 # ancient GNU ld didn't support --whole-archive et. al.
14015 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14016 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14018 whole_archive_flag_spec_F77=
14020 supports_anon_versioning=no
14021 case `$LD -v 2>/dev/null` in
14022 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14023 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14024 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14025 *\ 2.11.*) ;; # other 2.11 versions
14026 *) supports_anon_versioning=yes ;;
14029 # See if GNU ld supports shared libraries.
14031 aix3* | aix4* | aix5*)
14032 # On AIX/PPC, the GNU linker is very broken
14033 if test "$host_cpu" != ia64; then
14037 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14038 *** to be unable to reliably create shared libraries on AIX.
14039 *** Therefore, libtool is disabling shared libraries support. If you
14040 *** really care for shared libraries, you may want to modify your PATH
14041 *** so that a non-GNU linker is found, and then restart.
14048 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)'
14049 hardcode_libdir_flag_spec_F77='-L$libdir'
14050 hardcode_minus_L_F77=yes
14052 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14053 # that the semantics of dynamic libraries on AmigaOS, at least up
14054 # to version 4, is to share data among multiple programs linked
14055 # with the same dynamic library. Since this doesn't match the
14056 # behavior of shared libraries on other platforms, we can't use
14062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14063 allow_undefined_flag_F77=unsupported
14064 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14065 # support --undefined. This deserves some investigation. FIXME
14066 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14072 cygwin* | mingw* | pw32*)
14073 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14074 # as there is no search path for DLLs.
14075 hardcode_libdir_flag_spec_F77='-L$libdir'
14076 allow_undefined_flag_F77=unsupported
14077 always_export_symbols_F77=no
14078 enable_shared_with_static_runtimes_F77=yes
14079 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14081 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14082 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14083 # If the export-symbols file already is a .def file (1st line
14084 # is EXPORTS), use it as is; otherwise, prepend...
14085 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14086 cp $export_symbols $output_objdir/$soname.def;
14088 echo EXPORTS > $output_objdir/$soname.def;
14089 cat $export_symbols >> $output_objdir/$soname.def;
14091 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14098 hardcode_direct_F77=no
14099 hardcode_shlibpath_var_F77=no
14100 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14101 export_dynamic_flag_spec_F77='${wl}-E'
14102 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14103 # Instead, shared libraries are loaded at an image base (0x10000000 by
14104 # default) and relocated if they conflict, which is a slow very memory
14105 # consuming and fragmenting process. To avoid this, we pick a random,
14106 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14107 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14108 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'
14109 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'
14113 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14115 case $cc_basename,$host_cpu in
14116 pgcc*) # Portland Group C compiler
14117 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'
14118 tmp_addflag=' $pic_flag'
14120 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14121 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'
14122 tmp_addflag=' $pic_flag -Mnomain' ;;
14123 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14124 tmp_addflag=' -i_dynamic' ;;
14125 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14126 tmp_addflag=' -i_dynamic -nofor_main' ;;
14127 ifc* | ifort*) # Intel Fortran compiler
14128 tmp_addflag=' -nofor_main' ;;
14130 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14132 if test $supports_anon_versioning = yes; then
14133 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14134 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14135 $echo "local: *; };" >> $output_objdir/$libname.ver~
14136 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14144 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14145 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14148 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14149 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14154 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14158 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14159 *** create shared libraries on Solaris systems. Therefore, libtool
14160 *** is disabling shared libraries support. We urge you to upgrade GNU
14161 *** binutils to release 2.9.1 or newer. Another option is to modify
14162 *** your PATH or compiler configuration so that the native linker is
14163 *** used, and then restart.
14166 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14167 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14168 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14174 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14175 case `$LD -v 2>&1` in
14176 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14180 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14181 *** reliably create shared libraries on SCO systems. Therefore, libtool
14182 *** is disabling shared libraries support. We urge you to upgrade GNU
14183 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14184 *** your PATH or compiler configuration so that the native linker is
14185 *** used, and then restart.
14190 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14191 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14192 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14193 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14202 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14204 hardcode_direct_F77=yes
14205 hardcode_shlibpath_var_F77=no
14209 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14210 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14211 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14218 if test "$ld_shlibs_F77" = no; then
14220 hardcode_libdir_flag_spec_F77=
14221 export_dynamic_flag_spec_F77=
14222 whole_archive_flag_spec_F77=
14225 # PORTME fill in a description of your system's linker (not GNU ld)
14228 allow_undefined_flag_F77=unsupported
14229 always_export_symbols_F77=yes
14230 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'
14231 # Note: this linker hardcodes the directories in LIBPATH if there
14232 # are no directories specified by -L.
14233 hardcode_minus_L_F77=yes
14234 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14235 # Neither direct hardcoding nor static linking is supported with a
14237 hardcode_direct_F77=unsupported
14242 if test "$host_cpu" = ia64; then
14243 # On IA64, the linker does run time linking by default, so we don't
14244 # have to do anything special.
14245 aix_use_runtimelinking=no
14246 exp_sym_flag='-Bexport'
14249 # If we're using GNU nm, then we don't want the "-C" option.
14250 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14251 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14252 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'
14254 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'
14256 aix_use_runtimelinking=no
14258 # Test if we are trying to use run time linking or normal
14259 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14260 # need to do runtime linking.
14261 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14262 for ld_flag in $LDFLAGS; do
14263 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14264 aix_use_runtimelinking=yes
14271 exp_sym_flag='-bexport'
14272 no_entry_flag='-bnoentry'
14275 # When large executables or shared objects are built, AIX ld can
14276 # have problems creating the table of contents. If linking a library
14277 # or program results in "error TOC overflow" add -mminimal-toc to
14278 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14279 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14281 archive_cmds_F77=''
14282 hardcode_direct_F77=yes
14283 hardcode_libdir_separator_F77=':'
14284 link_all_deplibs_F77=yes
14286 if test "$GCC" = yes; then
14287 case $host_os in aix4.[012]|aix4.[012].*)
14288 # We only want to do this on AIX 4.2 and lower, the check
14289 # below for broken collect2 doesn't work under 4.3+
14290 collect2name=`${CC} -print-prog-name=collect2`
14291 if test -f "$collect2name" && \
14292 strings "$collect2name" | grep resolve_lib_name >/dev/null
14294 # We have reworked collect2
14295 hardcode_direct_F77=yes
14297 # We have old collect2
14298 hardcode_direct_F77=unsupported
14299 # It fails to find uninstalled libraries when the uninstalled
14300 # path is not listed in the libpath. Setting hardcode_minus_L
14301 # to unsupported forces relinking
14302 hardcode_minus_L_F77=yes
14303 hardcode_libdir_flag_spec_F77='-L$libdir'
14304 hardcode_libdir_separator_F77=
14308 shared_flag='-shared'
14309 if test "$aix_use_runtimelinking" = yes; then
14310 shared_flag="$shared_flag "'${wl}-G'
14314 if test "$host_cpu" = ia64; then
14315 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14316 # chokes on -Wl,-G. The following line is correct:
14319 if test "$aix_use_runtimelinking" = yes; then
14320 shared_flag='${wl}-G'
14322 shared_flag='${wl}-bM:SRE'
14327 # It seems that -bexpall does not export symbols beginning with
14328 # underscore (_), so it is better to generate a list of symbols to export.
14329 always_export_symbols_F77=yes
14330 if test "$aix_use_runtimelinking" = yes; then
14331 # Warning - without using the other runtime loading flags (-brtl),
14332 # -berok will link without error, but may produce a broken library.
14333 allow_undefined_flag_F77='-berok'
14334 # Determine the default libpath from the value encoded in an empty executable.
14335 cat >conftest.$ac_ext <<_ACEOF
14340 rm -f conftest.$ac_objext conftest$ac_exeext
14341 if { (ac_try="$ac_link"
14342 case "(($ac_try" in
14343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344 *) ac_try_echo=$ac_try;;
14346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347 (eval "$ac_link") 2>conftest.er1
14349 grep -v '^ *+' conftest.er1 >conftest.err
14351 cat conftest.err >&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } && {
14354 test -z "$ac_f77_werror_flag" ||
14355 test ! -s conftest.err
14356 } && test -s conftest$ac_exeext &&
14357 $as_test_x conftest$ac_exeext; then
14359 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14361 # Check for a 64-bit object if we didn't find anything.
14362 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; }
14365 echo "$as_me: failed program was:" >&5
14366 sed 's/^/| /' conftest.$ac_ext >&5
14371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14372 conftest$ac_exeext conftest.$ac_ext
14373 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14375 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14376 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"
14378 if test "$host_cpu" = ia64; then
14379 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14380 allow_undefined_flag_F77="-z nodefs"
14381 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"
14383 # Determine the default libpath from the value encoded in an empty executable.
14384 cat >conftest.$ac_ext <<_ACEOF
14389 rm -f conftest.$ac_objext conftest$ac_exeext
14390 if { (ac_try="$ac_link"
14391 case "(($ac_try" in
14392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393 *) ac_try_echo=$ac_try;;
14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396 (eval "$ac_link") 2>conftest.er1
14398 grep -v '^ *+' conftest.er1 >conftest.err
14400 cat conftest.err >&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } && {
14403 test -z "$ac_f77_werror_flag" ||
14404 test ! -s conftest.err
14405 } && test -s conftest$ac_exeext &&
14406 $as_test_x conftest$ac_exeext; then
14408 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14410 # Check for a 64-bit object if we didn't find anything.
14411 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; }
14414 echo "$as_me: failed program was:" >&5
14415 sed 's/^/| /' conftest.$ac_ext >&5
14420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14421 conftest$ac_exeext conftest.$ac_ext
14422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14424 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14425 # Warning - without using the other run time loading flags,
14426 # -berok will link without error, but may produce a broken library.
14427 no_undefined_flag_F77=' ${wl}-bernotok'
14428 allow_undefined_flag_F77=' ${wl}-berok'
14429 # Exported symbols can be pulled into shared objects from archives
14430 whole_archive_flag_spec_F77='$convenience'
14431 archive_cmds_need_lc_F77=yes
14432 # This is similar to how AIX traditionally builds its shared libraries.
14433 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'
14439 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)'
14440 hardcode_libdir_flag_spec_F77='-L$libdir'
14441 hardcode_minus_L_F77=yes
14442 # see comment about different semantics on the GNU ld section
14447 export_dynamic_flag_spec_F77=-rdynamic
14450 cygwin* | mingw* | pw32*)
14451 # When not using gcc, we currently assume that we are using
14452 # Microsoft Visual C++.
14453 # hardcode_libdir_flag_spec is actually meaningless, as there is
14454 # no search path for DLLs.
14455 hardcode_libdir_flag_spec_F77=' '
14456 allow_undefined_flag_F77=unsupported
14457 # Tell ltmain to make .lib files, not .a files.
14459 # Tell ltmain to make .dll files, not .so files.
14461 # FIXME: Setting linknames here is a bad hack.
14462 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14463 # The linker will automatically build a .lib file if we build a DLL.
14464 old_archive_From_new_cmds_F77='true'
14465 # FIXME: Should let the user specify the lib program.
14466 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14467 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14468 enable_shared_with_static_runtimes_F77=yes
14471 darwin* | rhapsody*)
14473 rhapsody* | darwin1.[012])
14474 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14477 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14478 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14480 case ${MACOSX_DEPLOYMENT_TARGET} in
14482 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14485 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14491 archive_cmds_need_lc_F77=no
14492 hardcode_direct_F77=no
14493 hardcode_automatic_F77=yes
14494 hardcode_shlibpath_var_F77=unsupported
14495 whole_archive_flag_spec_F77=''
14496 link_all_deplibs_F77=yes
14497 if test "$GCC" = yes ; then
14498 output_verbose_link_cmd='echo'
14499 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14500 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14501 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14502 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}'
14503 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}'
14505 case $cc_basename in
14507 output_verbose_link_cmd='echo'
14508 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14509 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14510 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14511 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}'
14512 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}'
14522 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14523 hardcode_libdir_flag_spec_F77='-L$libdir'
14524 hardcode_shlibpath_var_F77=no
14531 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14532 # support. Future versions do this automatically, but an explicit c++rt0.o
14533 # does not break anything, and helps significantly (at the cost of a little
14536 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14537 hardcode_libdir_flag_spec_F77='-R$libdir'
14538 hardcode_direct_F77=yes
14539 hardcode_shlibpath_var_F77=no
14542 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14544 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14545 hardcode_direct_F77=yes
14546 hardcode_minus_L_F77=yes
14547 hardcode_shlibpath_var_F77=no
14550 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14551 freebsd* | kfreebsd*-gnu | dragonfly*)
14552 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14553 hardcode_libdir_flag_spec_F77='-R$libdir'
14554 hardcode_direct_F77=yes
14555 hardcode_shlibpath_var_F77=no
14559 if test "$GCC" = yes; then
14560 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'
14562 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'
14564 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14565 hardcode_libdir_separator_F77=:
14566 hardcode_direct_F77=yes
14568 # hardcode_minus_L: Not really in the search PATH,
14569 # but as the default location of the library.
14570 hardcode_minus_L_F77=yes
14571 export_dynamic_flag_spec_F77='${wl}-E'
14575 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14576 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14578 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14580 if test "$with_gnu_ld" = no; then
14581 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14582 hardcode_libdir_separator_F77=:
14584 hardcode_direct_F77=yes
14585 export_dynamic_flag_spec_F77='${wl}-E'
14587 # hardcode_minus_L: Not really in the search PATH,
14588 # but as the default location of the library.
14589 hardcode_minus_L_F77=yes
14594 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14597 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14600 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14603 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14609 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14612 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14615 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14619 if test "$with_gnu_ld" = no; then
14620 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14621 hardcode_libdir_separator_F77=:
14625 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14626 hardcode_direct_F77=no
14627 hardcode_shlibpath_var_F77=no
14630 hardcode_direct_F77=yes
14631 export_dynamic_flag_spec_F77='${wl}-E'
14633 # hardcode_minus_L: Not really in the search PATH,
14634 # but as the default location of the library.
14635 hardcode_minus_L_F77=yes
14641 irix5* | irix6* | nonstopux*)
14642 if test "$GCC" = yes; then
14643 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'
14645 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'
14646 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14648 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14649 hardcode_libdir_separator_F77=:
14650 link_all_deplibs_F77=yes
14654 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14655 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14657 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14659 hardcode_libdir_flag_spec_F77='-R$libdir'
14660 hardcode_direct_F77=yes
14661 hardcode_shlibpath_var_F77=no
14665 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14666 hardcode_direct_F77=yes
14667 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14668 hardcode_libdir_separator_F77=:
14669 hardcode_shlibpath_var_F77=no
14673 hardcode_direct_F77=yes
14674 hardcode_shlibpath_var_F77=no
14675 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14676 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14677 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14678 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14679 export_dynamic_flag_spec_F77='${wl}-E'
14682 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14683 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14684 hardcode_libdir_flag_spec_F77='-R$libdir'
14687 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14688 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14695 hardcode_libdir_flag_spec_F77='-L$libdir'
14696 hardcode_minus_L_F77=yes
14697 allow_undefined_flag_F77=unsupported
14698 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'
14699 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14703 if test "$GCC" = yes; then
14704 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14705 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'
14707 allow_undefined_flag_F77=' -expect_unresolved \*'
14708 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'
14710 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14711 hardcode_libdir_separator_F77=:
14714 osf4* | osf5*) # as osf3* with the addition of -msym flag
14715 if test "$GCC" = yes; then
14716 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14717 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'
14718 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14720 allow_undefined_flag_F77=' -expect_unresolved \*'
14721 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'
14722 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~
14723 $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'
14725 # Both c and cxx compiler support -rpath directly
14726 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14728 hardcode_libdir_separator_F77=:
14732 no_undefined_flag_F77=' -z text'
14733 if test "$GCC" = yes; then
14735 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14736 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14737 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14740 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14741 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14742 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14744 hardcode_libdir_flag_spec_F77='-R$libdir'
14745 hardcode_shlibpath_var_F77=no
14747 solaris2.[0-5] | solaris2.[0-5].*) ;;
14749 # The compiler driver will combine linker options so we
14750 # cannot just pass the convience library names through
14751 # without $wl, iff we do not link with $LD.
14752 # Luckily, gcc supports the same syntax we need for Sun Studio.
14753 # Supported since Solaris 2.6 (maybe 2.5.1?)
14756 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14758 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' ;;
14761 link_all_deplibs_F77=yes
14765 if test "x$host_vendor" = xsequent; then
14766 # Use $CC to link under sequent, because it throws in some extra .o
14767 # files that make .init and .fini sections work.
14768 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14770 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14772 hardcode_libdir_flag_spec_F77='-L$libdir'
14773 hardcode_direct_F77=yes
14774 hardcode_minus_L_F77=yes
14775 hardcode_shlibpath_var_F77=no
14779 case $host_vendor in
14781 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14782 hardcode_direct_F77=yes # is this really true???
14785 ## LD is ld it makes a PLAMLIB
14786 ## CC just makes a GrossModule.
14787 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14788 reload_cmds_F77='$CC -r -o $output$reload_objs'
14789 hardcode_direct_F77=no
14792 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14793 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14796 runpath_var='LD_RUN_PATH'
14797 hardcode_shlibpath_var_F77=no
14801 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14802 hardcode_shlibpath_var_F77=no
14803 export_dynamic_flag_spec_F77='-Bexport'
14807 if test -d /usr/nec; then
14808 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14809 hardcode_shlibpath_var_F77=no
14810 runpath_var=LD_RUN_PATH
14811 hardcode_runpath_var=yes
14816 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14817 no_undefined_flag_F77='${wl}-z,text'
14818 archive_cmds_need_lc_F77=no
14819 hardcode_shlibpath_var_F77=no
14820 runpath_var='LD_RUN_PATH'
14822 if test "$GCC" = yes; then
14823 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14824 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14826 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14827 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14831 sysv5* | sco3.2v5* | sco5v6*)
14832 # Note: We can NOT use -z defs as we might desire, because we do not
14833 # link with -lc, and that would cause any symbols used from libc to
14834 # always be unresolved, which means just about no library would
14835 # ever link correctly. If we're not using GNU ld we use -z text
14836 # though, which does catch some bad symbols but isn't as heavy-handed
14838 no_undefined_flag_F77='${wl}-z,text'
14839 allow_undefined_flag_F77='${wl}-z,nodefs'
14840 archive_cmds_need_lc_F77=no
14841 hardcode_shlibpath_var_F77=no
14842 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14843 hardcode_libdir_separator_F77=':'
14844 link_all_deplibs_F77=yes
14845 export_dynamic_flag_spec_F77='${wl}-Bexport'
14846 runpath_var='LD_RUN_PATH'
14848 if test "$GCC" = yes; then
14849 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14850 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14852 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14853 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14858 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14859 hardcode_libdir_flag_spec_F77='-L$libdir'
14860 hardcode_shlibpath_var_F77=no
14869 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14870 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14871 test "$ld_shlibs_F77" = no && can_build_shared=no
14874 # Do we need to explicitly link libc?
14876 case "x$archive_cmds_need_lc_F77" in
14878 # Assume -lc should be added
14879 archive_cmds_need_lc_F77=yes
14881 if test "$enable_shared" = yes && test "$GCC" = yes; then
14882 case $archive_cmds_F77 in
14884 # FIXME: we may have to deal with multi-command sequences.
14887 # Test whether the compiler implicitly links with -lc since on some
14888 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14889 # to ld, don't add -lc before -lgcc.
14890 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14891 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14893 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14896 (eval $ac_compile) 2>&5
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); } 2>conftest.err; then
14902 libobjs=conftest.$ac_objext
14904 wl=$lt_prog_compiler_wl_F77
14905 pic_flag=$lt_prog_compiler_pic_F77
14911 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14912 allow_undefined_flag_F77=
14913 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14914 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }
14919 archive_cmds_need_lc_F77=no
14921 archive_cmds_need_lc_F77=yes
14923 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14925 cat conftest.err 1>&5
14928 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14929 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14936 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14937 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14938 library_names_spec=
14939 libname_spec='lib$name'
14943 postuninstall_cmds=
14947 shlibpath_overrides_runpath=unknown
14949 dynamic_linker="$host_os ld.so"
14950 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14951 if test "$GCC" = yes; then
14952 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14953 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14954 # if the path contains ";" then we assume it to be the separator
14955 # otherwise default to the standard path separator (i.e. ":") - it is
14956 # assumed that no part of a normal pathname contains ";" but that should
14957 # okay in the real world where ";" in dirpaths is itself problematic.
14958 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14960 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14963 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14965 need_lib_prefix=unknown
14966 hardcode_into_libs=no
14968 # when you set need_version to no, make sure it does not cause -set_version
14969 # flags to be left without arguments
14970 need_version=unknown
14975 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14976 shlibpath_var=LIBPATH
14978 # AIX 3 has no versioning support, so we append a major version to the name.
14979 soname_spec='${libname}${release}${shared_ext}$major'
14986 hardcode_into_libs=yes
14987 if test "$host_cpu" = ia64; then
14988 # AIX 5 supports IA64
14989 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14990 shlibpath_var=LD_LIBRARY_PATH
14992 # With GCC up to 2.95.x, collect2 would create an import file
14993 # for dependence libraries. The import file would start with
14994 # the line `#! .'. This would cause the generated library to
14995 # depend on `.', always an invalid library. This was fixed in
14996 # development snapshots of GCC prior to 3.0.
14998 aix4 | aix4.[01] | aix4.[01].*)
14999 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15001 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15004 can_build_shared=no
15008 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15009 # soname into executable. Probably we can add versioning support to
15010 # collect2, so additional links can be useful in future.
15011 if test "$aix_use_runtimelinking" = yes; then
15012 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15013 # instead of lib<name>.a to let people know that these are not
15014 # typical AIX shared libraries.
15015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15017 # We preserve .a as extension for shared libraries through AIX4.2
15018 # and later when we are not doing run time linking.
15019 library_names_spec='${libname}${release}.a $libname.a'
15020 soname_spec='${libname}${release}${shared_ext}$major'
15022 shlibpath_var=LIBPATH
15027 library_names_spec='$libname.ixlibrary $libname.a'
15028 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15029 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'
15033 library_names_spec='${libname}${shared_ext}'
15034 dynamic_linker="$host_os ld.so"
15035 shlibpath_var=LIBRARY_PATH
15041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15042 soname_spec='${libname}${release}${shared_ext}$major'
15043 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15044 shlibpath_var=LD_LIBRARY_PATH
15045 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15046 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15047 # the default ld.so.conf also contains /usr/contrib/lib and
15048 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15049 # libtool to hard-code these into programs
15052 cygwin* | mingw* | pw32*)
15053 version_type=windows
15058 case $GCC,$host_os in
15059 yes,cygwin* | yes,mingw* | yes,pw32*)
15060 library_names_spec='$libname.dll.a'
15061 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15062 postinstall_cmds='base_file=`basename \${file}`~
15063 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15064 dldir=$destdir/`dirname \$dlpath`~
15065 test -d \$dldir || mkdir -p \$dldir~
15066 $install_prog $dir/$dlname \$dldir/$dlname~
15067 chmod a+x \$dldir/$dlname'
15068 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15069 dlpath=$dir/\$dldll~
15071 shlibpath_overrides_runpath=yes
15075 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15076 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15077 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15080 # MinGW DLLs use traditional 'lib' prefix
15081 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15082 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15083 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15084 # It is most probably a Windows format PATH printed by
15085 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15086 # path with ; separators, and with drive letters. We can handle the
15087 # drive letters (cygwin fileutils understands them), so leave them,
15088 # especially as we might pass files found there to a mingw objdump,
15089 # which wouldn't understand a cygwinified path. Ahh.
15090 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15092 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15096 # pw32 DLLs use 'pw' prefix rather than 'lib'
15097 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15103 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15106 dynamic_linker='Win32 ld.exe'
15107 # FIXME: first we should search . and the directory the executable is in
15111 darwin* | rhapsody*)
15112 dynamic_linker="$host_os dyld"
15113 version_type=darwin
15116 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15117 soname_spec='${libname}${release}${major}$shared_ext'
15118 shlibpath_overrides_runpath=yes
15119 shlibpath_var=DYLD_LIBRARY_PATH
15120 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15121 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15122 if test "$GCC" = yes; then
15123 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"`
15125 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15127 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15135 soname_spec='${libname}${release}${shared_ext}$major'
15136 shlibpath_var=LD_LIBRARY_PATH
15147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15148 soname_spec='${libname}${release}${shared_ext}$major'
15149 shlibpath_var=LD_LIBRARY_PATH
15150 shlibpath_overrides_runpath=no
15151 hardcode_into_libs=yes
15152 dynamic_linker='GNU ld.so'
15155 freebsd* | dragonfly*)
15156 # DragonFly does not have aout. When/if they implement a new
15157 # versioning mechanism, adjust this.
15158 if test -x /usr/bin/objformat; then
15159 objformat=`/usr/bin/objformat`
15162 freebsd[123]*) objformat=aout ;;
15163 *) objformat=elf ;;
15166 version_type=freebsd-$objformat
15167 case $version_type in
15169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15178 shlibpath_var=LD_LIBRARY_PATH
15181 shlibpath_overrides_runpath=yes
15183 freebsd3.[01]* | freebsdelf3.[01]*)
15184 shlibpath_overrides_runpath=yes
15185 hardcode_into_libs=yes
15187 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15188 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15189 shlibpath_overrides_runpath=no
15190 hardcode_into_libs=yes
15192 freebsd*) # from 4.6 on
15193 shlibpath_overrides_runpath=yes
15194 hardcode_into_libs=yes
15203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15204 soname_spec='${libname}${release}${shared_ext}$major'
15205 shlibpath_var=LD_LIBRARY_PATH
15206 hardcode_into_libs=yes
15209 hpux9* | hpux10* | hpux11*)
15210 # Give a soname corresponding to the major version so that dld.sl refuses to
15211 # link against other versions.
15218 hardcode_into_libs=yes
15219 dynamic_linker="$host_os dld.so"
15220 shlibpath_var=LD_LIBRARY_PATH
15221 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15223 soname_spec='${libname}${release}${shared_ext}$major'
15224 if test "X$HPUX_IA64_MODE" = X32; then
15225 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15227 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15229 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15233 hardcode_into_libs=yes
15234 dynamic_linker="$host_os dld.sl"
15235 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15236 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238 soname_spec='${libname}${release}${shared_ext}$major'
15239 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15244 dynamic_linker="$host_os dld.sl"
15245 shlibpath_var=SHLIB_PATH
15246 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15248 soname_spec='${libname}${release}${shared_ext}$major'
15251 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15252 postinstall_cmds='chmod 555 $lib'
15259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15260 soname_spec='${libname}${release}${shared_ext}$major'
15261 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15262 shlibpath_var=LD_LIBRARY_PATH
15263 shlibpath_overrides_runpath=no
15264 hardcode_into_libs=yes
15267 irix5* | irix6* | nonstopux*)
15269 nonstopux*) version_type=nonstopux ;;
15271 if test "$lt_cv_prog_gnu_ld" = yes; then
15279 soname_spec='${libname}${release}${shared_ext}$major'
15280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15282 irix5* | nonstopux*)
15283 libsuff= shlibsuff=
15286 case $LD in # libtool.m4 will add one of these switches to LD
15287 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15288 libsuff= shlibsuff= libmagic=32-bit;;
15289 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15290 libsuff=32 shlibsuff=N32 libmagic=N32;;
15291 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15292 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15293 *) libsuff= shlibsuff= libmagic=never-match;;
15297 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15298 shlibpath_overrides_runpath=no
15299 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15300 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15301 hardcode_into_libs=yes
15304 # No shared lib support for Linux oldld, aout, or coff.
15305 linux*oldld* | linux*aout* | linux*coff*)
15309 # This must be Linux ELF.
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15315 soname_spec='${libname}${release}${shared_ext}$major'
15316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15317 shlibpath_var=LD_LIBRARY_PATH
15318 shlibpath_overrides_runpath=no
15319 # This implies no fast_install, which is unacceptable.
15320 # Some rework will be needed to allow for fast_install
15321 # before this can be enabled.
15322 hardcode_into_libs=yes
15324 # Append ld.so.conf contents to the search path
15325 if test -f /etc/ld.so.conf; then
15326 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' ' '`
15327 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15330 # We used to test for /lib/ld.so.1 and disable shared libraries on
15331 # powerpc, because MkLinux only supported shared libraries with the
15332 # GNU dynamic linker. Since this was broken with cross compilers,
15333 # most powerpc-linux boxes support dynamic linking these days and
15334 # people can always --disable-shared, the test was removed, and we
15335 # assume the GNU/Linux dynamic linker is in use.
15336 dynamic_linker='GNU/Linux ld.so'
15343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15344 soname_spec='${libname}${release}${shared_ext}$major'
15345 shlibpath_var=LD_LIBRARY_PATH
15346 shlibpath_overrides_runpath=no
15347 hardcode_into_libs=yes
15348 dynamic_linker='GNU ld.so'
15355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15358 dynamic_linker='NetBSD (a.out) ld.so'
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15361 soname_spec='${libname}${release}${shared_ext}$major'
15362 dynamic_linker='NetBSD ld.elf_so'
15364 shlibpath_var=LD_LIBRARY_PATH
15365 shlibpath_overrides_runpath=yes
15366 hardcode_into_libs=yes
15371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15372 shlibpath_var=LD_LIBRARY_PATH
15373 shlibpath_overrides_runpath=yes
15380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15381 soname_spec='${libname}${release}${shared_ext}$major'
15382 shlibpath_var=LD_LIBRARY_PATH
15383 shlibpath_overrides_runpath=yes
15388 sys_lib_dlsearch_path_spec="/usr/lib"
15390 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15392 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15393 *) need_version=no ;;
15395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15397 shlibpath_var=LD_LIBRARY_PATH
15398 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15400 openbsd2.[89] | openbsd2.[89].*)
15401 shlibpath_overrides_runpath=no
15404 shlibpath_overrides_runpath=yes
15408 shlibpath_overrides_runpath=yes
15413 libname_spec='$name'
15416 library_names_spec='$libname${shared_ext} $libname.a'
15417 dynamic_linker='OS/2 ld.exe'
15418 shlibpath_var=LIBPATH
15421 osf3* | osf4* | osf5*)
15425 soname_spec='${libname}${release}${shared_ext}$major'
15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15427 shlibpath_var=LD_LIBRARY_PATH
15428 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15429 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15437 soname_spec='${libname}${release}${shared_ext}$major'
15438 shlibpath_var=LD_LIBRARY_PATH
15439 shlibpath_overrides_runpath=yes
15440 hardcode_into_libs=yes
15441 # ldd complains unless libraries are executable
15442 postinstall_cmds='chmod +x $lib'
15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15448 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15449 shlibpath_var=LD_LIBRARY_PATH
15450 shlibpath_overrides_runpath=yes
15451 if test "$with_gnu_ld" = yes; then
15459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15460 soname_spec='${libname}${release}${shared_ext}$major'
15461 shlibpath_var=LD_LIBRARY_PATH
15462 case $host_vendor in
15464 shlibpath_overrides_runpath=no
15466 export_dynamic_flag_spec='${wl}-Blargedynsym'
15467 runpath_var=LD_RUN_PATH
15475 shlibpath_overrides_runpath=no
15476 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15482 if test -d /usr/nec ;then
15484 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15485 soname_spec='$libname${shared_ext}.$major'
15486 shlibpath_var=LD_LIBRARY_PATH
15490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15491 version_type=freebsd-elf
15494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15495 soname_spec='${libname}${release}${shared_ext}$major'
15496 shlibpath_var=LD_LIBRARY_PATH
15497 hardcode_into_libs=yes
15498 if test "$with_gnu_ld" = yes; then
15499 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15500 shlibpath_overrides_runpath=no
15502 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15503 shlibpath_overrides_runpath=yes
15506 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15510 sys_lib_dlsearch_path_spec='/usr/lib'
15515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15516 soname_spec='${libname}${release}${shared_ext}$major'
15517 shlibpath_var=LD_LIBRARY_PATH
15524 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15525 echo "${ECHO_T}$dynamic_linker" >&6; }
15526 test "$dynamic_linker" = no && can_build_shared=no
15528 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15529 if test "$GCC" = yes; then
15530 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15533 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15534 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15535 hardcode_action_F77=
15536 if test -n "$hardcode_libdir_flag_spec_F77" || \
15537 test -n "$runpath_var_F77" || \
15538 test "X$hardcode_automatic_F77" = "Xyes" ; then
15540 # We can hardcode non-existant directories.
15541 if test "$hardcode_direct_F77" != no &&
15542 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15543 # have to relink, otherwise we might link with an installed library
15544 # when we should be linking with a yet-to-be-installed one
15545 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15546 test "$hardcode_minus_L_F77" != no; then
15547 # Linking always hardcodes the temporary library directory.
15548 hardcode_action_F77=relink
15550 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15551 hardcode_action_F77=immediate
15554 # We cannot hardcode anything, or else we can only hardcode existing
15556 hardcode_action_F77=unsupported
15558 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15559 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15561 if test "$hardcode_action_F77" = relink; then
15562 # Fast installation is not supported
15563 enable_fast_install=no
15564 elif test "$shlibpath_overrides_runpath" = yes ||
15565 test "$enable_shared" = no; then
15566 # Fast installation is not necessary
15567 enable_fast_install=needless
15571 # The else clause should only fire when bootstrapping the
15572 # libtool distribution, otherwise you forgot to ship ltmain.sh
15573 # with your package, and you will get complaints that there are
15574 # no rules to generate ltmain.sh.
15575 if test -f "$ltmain"; then
15576 # See if we are running on zsh, and set the options which allow our commands through
15577 # without removal of \ escapes.
15578 if test -n "${ZSH_VERSION+set}" ; then
15579 setopt NO_GLOB_SUBST
15581 # Now quote all the things that may contain metacharacters while being
15582 # careful not to overquote the AC_SUBSTed values. We take copies of the
15583 # variables and quote the copies for generation of the libtool script.
15584 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15586 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15587 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15588 deplibs_check_method reload_flag reload_cmds need_locks \
15589 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15590 lt_cv_sys_global_symbol_to_c_name_address \
15591 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15592 old_postinstall_cmds old_postuninstall_cmds \
15596 lt_prog_compiler_wl_F77 \
15597 lt_prog_compiler_pic_F77 \
15598 lt_prog_compiler_static_F77 \
15599 lt_prog_compiler_no_builtin_flag_F77 \
15600 export_dynamic_flag_spec_F77 \
15601 thread_safe_flag_spec_F77 \
15602 whole_archive_flag_spec_F77 \
15603 enable_shared_with_static_runtimes_F77 \
15604 old_archive_cmds_F77 \
15605 old_archive_from_new_cmds_F77 \
15606 predep_objects_F77 \
15607 postdep_objects_F77 \
15610 compiler_lib_search_path_F77 \
15612 archive_expsym_cmds_F77 \
15613 postinstall_cmds_F77 \
15614 postuninstall_cmds_F77 \
15615 old_archive_from_expsyms_cmds_F77 \
15616 allow_undefined_flag_F77 \
15617 no_undefined_flag_F77 \
15618 export_symbols_cmds_F77 \
15619 hardcode_libdir_flag_spec_F77 \
15620 hardcode_libdir_flag_spec_ld_F77 \
15621 hardcode_libdir_separator_F77 \
15622 hardcode_automatic_F77 \
15624 module_expsym_cmds_F77 \
15625 lt_cv_prog_compiler_c_o_F77 \
15626 exclude_expsyms_F77 \
15627 include_expsyms_F77; do
15630 old_archive_cmds_F77 | \
15631 old_archive_from_new_cmds_F77 | \
15632 archive_cmds_F77 | \
15633 archive_expsym_cmds_F77 | \
15634 module_cmds_F77 | \
15635 module_expsym_cmds_F77 | \
15636 old_archive_from_expsyms_cmds_F77 | \
15637 export_symbols_cmds_F77 | \
15638 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15639 postinstall_cmds | postuninstall_cmds | \
15640 old_postinstall_cmds | old_postuninstall_cmds | \
15641 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15642 # Double-quote double-evaled strings.
15643 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15646 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15652 *'\$0 --fallback-echo"')
15653 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15659 cat <<__EOF__ >> "$cfgfile"
15660 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15664 # Shell to use when invoking shell scripts.
15667 # Whether or not to build shared libraries.
15668 build_libtool_libs=$enable_shared
15670 # Whether or not to build static libraries.
15671 build_old_libs=$enable_static
15673 # Whether or not to add -lc for building shared libraries.
15674 build_libtool_need_lc=$archive_cmds_need_lc_F77
15676 # Whether or not to disallow shared libs when runtime libs are static
15677 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15679 # Whether or not to optimize for fast installation.
15680 fast_install=$enable_fast_install
15683 host_alias=$host_alias
15687 # The build system.
15688 build_alias=$build_alias
15692 # An echo program that does not interpret backslashes.
15697 AR_FLAGS=$lt_AR_FLAGS
15702 # LTCC compiler flags.
15703 LTCFLAGS=$lt_LTCFLAGS
15705 # A language-specific compiler.
15706 CC=$lt_compiler_F77
15708 # Is the compiler the GNU C compiler?
15714 # The linker used to build libraries.
15717 # Whether we need hard or soft links.
15720 # A BSD-compatible nm program.
15723 # A symbol stripping program
15726 # Used to examine libraries when file_magic_cmd begins "file"
15727 MAGIC_CMD=$MAGIC_CMD
15729 # Used on cygwin: DLL creation program.
15732 # Used on cygwin: object dumper.
15735 # Used on cygwin: assembler.
15738 # The name of the directory that contains temporary libtool files.
15741 # How to create reloadable object files.
15742 reload_flag=$lt_reload_flag
15743 reload_cmds=$lt_reload_cmds
15745 # How to pass a linker flag through the compiler.
15746 wl=$lt_lt_prog_compiler_wl_F77
15748 # Object file suffix (normally "o").
15749 objext="$ac_objext"
15751 # Old archive suffix (normally "a").
15754 # Shared library suffix (normally ".so").
15755 shrext_cmds='$shrext_cmds'
15757 # Executable file suffix (normally "").
15760 # Additional compiler flags for building library objects.
15761 pic_flag=$lt_lt_prog_compiler_pic_F77
15764 # What is the maximum length of a command?
15765 max_cmd_len=$lt_cv_sys_max_cmd_len
15767 # Does compiler simultaneously support -c and -o options?
15768 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15770 # Must we lock files when doing compilation?
15771 need_locks=$lt_need_locks
15773 # Do we need the lib prefix for modules?
15774 need_lib_prefix=$need_lib_prefix
15776 # Do we need a version for libraries?
15777 need_version=$need_version
15779 # Whether dlopen is supported.
15780 dlopen_support=$enable_dlopen
15782 # Whether dlopen of programs is supported.
15783 dlopen_self=$enable_dlopen_self
15785 # Whether dlopen of statically linked programs is supported.
15786 dlopen_self_static=$enable_dlopen_self_static
15788 # Compiler flag to prevent dynamic linking.
15789 link_static_flag=$lt_lt_prog_compiler_static_F77
15791 # Compiler flag to turn off builtin functions.
15792 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15794 # Compiler flag to allow reflexive dlopens.
15795 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15797 # Compiler flag to generate shared objects directly from archives.
15798 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15800 # Compiler flag to generate thread-safe objects.
15801 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15803 # Library versioning type.
15804 version_type=$version_type
15806 # Format of library name prefix.
15807 libname_spec=$lt_libname_spec
15809 # List of archive names. First name is the real one, the rest are links.
15810 # The last name is the one that the linker finds with -lNAME.
15811 library_names_spec=$lt_library_names_spec
15813 # The coded name of the library, if different from the real name.
15814 soname_spec=$lt_soname_spec
15816 # Commands used to build and install an old-style archive.
15818 old_archive_cmds=$lt_old_archive_cmds_F77
15819 old_postinstall_cmds=$lt_old_postinstall_cmds
15820 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15822 # Create an old-style archive from a shared archive.
15823 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15825 # Create a temporary old-style archive to link instead of a shared archive.
15826 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15828 # Commands used to build and install a shared archive.
15829 archive_cmds=$lt_archive_cmds_F77
15830 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15831 postinstall_cmds=$lt_postinstall_cmds
15832 postuninstall_cmds=$lt_postuninstall_cmds
15834 # Commands used to build a loadable module (assumed same as above if empty)
15835 module_cmds=$lt_module_cmds_F77
15836 module_expsym_cmds=$lt_module_expsym_cmds_F77
15838 # Commands to strip libraries.
15839 old_striplib=$lt_old_striplib
15840 striplib=$lt_striplib
15842 # Dependencies to place before the objects being linked to create a
15844 predep_objects=$lt_predep_objects_F77
15846 # Dependencies to place after the objects being linked to create a
15848 postdep_objects=$lt_postdep_objects_F77
15850 # Dependencies to place before the objects being linked to create a
15852 predeps=$lt_predeps_F77
15854 # Dependencies to place after the objects being linked to create a
15856 postdeps=$lt_postdeps_F77
15858 # The library search path used internally by the compiler when linking
15859 # a shared library.
15860 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15862 # Method to check whether dependent libraries are shared objects.
15863 deplibs_check_method=$lt_deplibs_check_method
15865 # Command to use when deplibs_check_method == file_magic.
15866 file_magic_cmd=$lt_file_magic_cmd
15868 # Flag that allows shared libraries with undefined symbols to be built.
15869 allow_undefined_flag=$lt_allow_undefined_flag_F77
15871 # Flag that forces no undefined symbols.
15872 no_undefined_flag=$lt_no_undefined_flag_F77
15874 # Commands used to finish a libtool library installation in a directory.
15875 finish_cmds=$lt_finish_cmds
15877 # Same as above, but a single script fragment to be evaled but not shown.
15878 finish_eval=$lt_finish_eval
15880 # Take the output of nm and produce a listing of raw symbols and C names.
15881 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15883 # Transform the output of nm in a proper C declaration
15884 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15886 # Transform the output of nm in a C name address pair
15887 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15889 # This is the shared library runtime path variable.
15890 runpath_var=$runpath_var
15892 # This is the shared library path variable.
15893 shlibpath_var=$shlibpath_var
15895 # Is shlibpath searched before the hard-coded library search path?
15896 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15898 # How to hardcode a shared library path into an executable.
15899 hardcode_action=$hardcode_action_F77
15901 # Whether we should hardcode library paths into libraries.
15902 hardcode_into_libs=$hardcode_into_libs
15904 # Flag to hardcode \$libdir into a binary during linking.
15905 # This must work even if \$libdir does not exist.
15906 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15908 # If ld is used when linking, flag to hardcode \$libdir into
15909 # a binary during linking. This must work even if \$libdir does
15911 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15913 # Whether we need a single -rpath flag with a separated argument.
15914 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15916 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15917 # resulting binary.
15918 hardcode_direct=$hardcode_direct_F77
15920 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15921 # resulting binary.
15922 hardcode_minus_L=$hardcode_minus_L_F77
15924 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15925 # the resulting binary.
15926 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15928 # Set to yes if building a shared library automatically hardcodes DIR into the library
15929 # and all subsequent libraries and executables linked against it.
15930 hardcode_automatic=$hardcode_automatic_F77
15932 # Variables whose values should be saved in libtool wrapper scripts and
15933 # restored at relink time.
15934 variables_saved_for_relink="$variables_saved_for_relink"
15936 # Whether libtool must link a program against all its dependency libraries.
15937 link_all_deplibs=$link_all_deplibs_F77
15939 # Compile-time system search path for libraries
15940 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15942 # Run-time system search path for libraries
15943 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15945 # Fix the shell variable \$srcfile for the compiler.
15946 fix_srcfile_path="$fix_srcfile_path_F77"
15948 # Set to yes if exported symbols are required.
15949 always_export_symbols=$always_export_symbols_F77
15951 # The commands to list exported symbols.
15952 export_symbols_cmds=$lt_export_symbols_cmds_F77
15954 # The commands to extract the exported symbol list from a shared archive.
15955 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15957 # Symbols that should not be listed in the preloaded symbols.
15958 exclude_expsyms=$lt_exclude_expsyms_F77
15960 # Symbols that must always be exported.
15961 include_expsyms=$lt_include_expsyms_F77
15963 # ### END LIBTOOL TAG CONFIG: $tagname
15969 # If there is no Makefile yet, we rely on a make rule to execute
15970 # `config.status --recheck' to rerun these tests and create the
15971 # libtool script then.
15972 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15973 if test -f "$ltmain_in"; then
15974 test -f Makefile && make "$ltmain"
15980 ac_cpp='$CPP $CPPFLAGS'
15981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15993 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15996 # Source file extension for Java test sources.
15999 # Object file extension for compiled Java test sources.
16003 # Code to be used in simple compile tests
16004 lt_simple_compile_test_code="class foo {}\n"
16006 # Code to be used in simple link tests
16007 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16009 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16011 # If no C compiler was specified, use CC.
16014 # If no C compiler flags were specified, use CFLAGS.
16015 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16017 # Allow CC to be a program name with arguments.
16021 # save warnings/boilerplate of simple test code
16022 ac_outfile=conftest.$ac_objext
16023 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16024 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16025 _lt_compiler_boilerplate=`cat conftest.err`
16028 ac_outfile=conftest.$ac_objext
16029 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16030 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16031 _lt_linker_boilerplate=`cat conftest.err`
16035 # Allow CC to be a program name with arguments.
16040 for cc_temp in $compiler""; do
16042 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16043 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16048 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16051 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16052 archive_cmds_need_lc_GCJ=no
16054 old_archive_cmds_GCJ=$old_archive_cmds
16057 ## There is no encapsulation within the following macros, do not change
16058 ## the running order or otherwise move them around unless you know exactly
16059 ## what you are doing...
16061 lt_prog_compiler_no_builtin_flag_GCJ=
16063 if test "$GCC" = yes; then
16064 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16067 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16068 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16069 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16070 echo $ECHO_N "(cached) $ECHO_C" >&6
16072 lt_cv_prog_compiler_rtti_exceptions=no
16073 ac_outfile=conftest.$ac_objext
16074 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16075 lt_compiler_flag="-fno-rtti -fno-exceptions"
16076 # Insert the option either (1) after the last *FLAGS variable, or
16077 # (2) before a word containing "conftest.", or (3) at the end.
16078 # Note that $ac_compile itself does not contain backslashes and begins
16079 # with a dollar sign (not a hyphen), so the echo should work correctly.
16080 # The option is referenced via a variable to avoid confusing sed.
16081 lt_compile=`echo "$ac_compile" | $SED \
16082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16084 -e 's:$: $lt_compiler_flag:'`
16085 (eval echo "\"\$as_me:16085: $lt_compile\"" >&5)
16086 (eval "$lt_compile" 2>conftest.err)
16088 cat conftest.err >&5
16089 echo "$as_me:16089: \$? = $ac_status" >&5
16090 if (exit $ac_status) && test -s "$ac_outfile"; then
16091 # The compiler can only warn and ignore the option if not recognized
16092 # So say no if there are warnings other than the usual output.
16093 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16094 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16095 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16096 lt_cv_prog_compiler_rtti_exceptions=yes
16102 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16103 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16105 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16106 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16113 lt_prog_compiler_wl_GCJ=
16114 lt_prog_compiler_pic_GCJ=
16115 lt_prog_compiler_static_GCJ=
16117 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16118 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16120 if test "$GCC" = yes; then
16121 lt_prog_compiler_wl_GCJ='-Wl,'
16122 lt_prog_compiler_static_GCJ='-static'
16126 # All AIX code is PIC.
16127 if test "$host_cpu" = ia64; then
16128 # AIX 5 now supports IA64 processor
16129 lt_prog_compiler_static_GCJ='-Bstatic'
16134 # FIXME: we need at least 68020 code to build shared libraries, but
16135 # adding the `-m68020' flag to GCC prevents building anything better,
16137 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16140 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16141 # PIC is the default for these OSes.
16144 mingw* | pw32* | os2*)
16145 # This hack is so that the source file can tell whether it is being
16146 # built for inclusion in a dll (and should export symbols for example).
16147 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16150 darwin* | rhapsody*)
16151 # PIC is the default on this platform
16152 # Common symbols not allowed in MH_DYLIB files
16153 lt_prog_compiler_pic_GCJ='-fno-common'
16157 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16158 # Instead, we relocate shared libraries at runtime.
16162 # Just because we use GCC doesn't mean we suddenly get shared libraries
16163 # on systems that don't support them.
16164 lt_prog_compiler_can_build_shared_GCJ=no
16169 if test -d /usr/nec; then
16170 lt_prog_compiler_pic_GCJ=-Kconform_pic
16175 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16176 # not for PA HP-UX.
16182 lt_prog_compiler_pic_GCJ='-fPIC'
16188 lt_prog_compiler_pic_GCJ='-fPIC'
16192 # PORTME Check for flag to pass linker flags through the system compiler.
16195 lt_prog_compiler_wl_GCJ='-Wl,'
16196 if test "$host_cpu" = ia64; then
16197 # AIX 5 now supports IA64 processor
16198 lt_prog_compiler_static_GCJ='-Bstatic'
16200 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16204 # PIC is the default on this platform
16205 # Common symbols not allowed in MH_DYLIB files
16206 case $cc_basename in
16208 lt_prog_compiler_pic_GCJ='-qnocommon'
16209 lt_prog_compiler_wl_GCJ='-Wl,'
16214 mingw* | pw32* | os2*)
16215 # This hack is so that the source file can tell whether it is being
16216 # built for inclusion in a dll (and should export symbols for example).
16217 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16220 hpux9* | hpux10* | hpux11*)
16221 lt_prog_compiler_wl_GCJ='-Wl,'
16222 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16223 # not for PA HP-UX.
16229 lt_prog_compiler_pic_GCJ='+Z'
16232 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16233 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16236 irix5* | irix6* | nonstopux*)
16237 lt_prog_compiler_wl_GCJ='-Wl,'
16238 # PIC (with -KPIC) is the default.
16239 lt_prog_compiler_static_GCJ='-non_shared'
16243 lt_prog_compiler_pic_GCJ='-KPIC'
16244 lt_prog_compiler_static_GCJ='-Bstatic'
16248 case $cc_basename in
16250 lt_prog_compiler_wl_GCJ='-Wl,'
16251 lt_prog_compiler_pic_GCJ='-KPIC'
16252 lt_prog_compiler_static_GCJ='-static'
16254 pgcc* | pgf77* | pgf90* | pgf95*)
16255 # Portland Group compilers (*not* the Pentium gcc compiler,
16256 # which looks to be a dead project)
16257 lt_prog_compiler_wl_GCJ='-Wl,'
16258 lt_prog_compiler_pic_GCJ='-fpic'
16259 lt_prog_compiler_static_GCJ='-Bstatic'
16262 lt_prog_compiler_wl_GCJ='-Wl,'
16263 # All Alpha code is PIC.
16264 lt_prog_compiler_static_GCJ='-non_shared'
16269 osf3* | osf4* | osf5*)
16270 lt_prog_compiler_wl_GCJ='-Wl,'
16271 # All OSF/1 code is PIC.
16272 lt_prog_compiler_static_GCJ='-non_shared'
16276 lt_prog_compiler_pic_GCJ='-KPIC'
16277 lt_prog_compiler_static_GCJ='-Bstatic'
16278 case $cc_basename in
16279 f77* | f90* | f95*)
16280 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16282 lt_prog_compiler_wl_GCJ='-Wl,';;
16287 lt_prog_compiler_wl_GCJ='-Qoption ld '
16288 lt_prog_compiler_pic_GCJ='-PIC'
16289 lt_prog_compiler_static_GCJ='-Bstatic'
16292 sysv4 | sysv4.2uw2* | sysv4.3*)
16293 lt_prog_compiler_wl_GCJ='-Wl,'
16294 lt_prog_compiler_pic_GCJ='-KPIC'
16295 lt_prog_compiler_static_GCJ='-Bstatic'
16299 if test -d /usr/nec ;then
16300 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16301 lt_prog_compiler_static_GCJ='-Bstatic'
16305 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16306 lt_prog_compiler_wl_GCJ='-Wl,'
16307 lt_prog_compiler_pic_GCJ='-KPIC'
16308 lt_prog_compiler_static_GCJ='-Bstatic'
16312 lt_prog_compiler_wl_GCJ='-Wl,'
16313 lt_prog_compiler_can_build_shared_GCJ=no
16317 lt_prog_compiler_pic_GCJ='-pic'
16318 lt_prog_compiler_static_GCJ='-Bstatic'
16322 lt_prog_compiler_can_build_shared_GCJ=no
16327 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16328 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16331 # Check to make sure the PIC flag actually works.
16333 if test -n "$lt_prog_compiler_pic_GCJ"; then
16335 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16336 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16337 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16338 echo $ECHO_N "(cached) $ECHO_C" >&6
16340 lt_prog_compiler_pic_works_GCJ=no
16341 ac_outfile=conftest.$ac_objext
16342 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16343 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16344 # Insert the option either (1) after the last *FLAGS variable, or
16345 # (2) before a word containing "conftest.", or (3) at the end.
16346 # Note that $ac_compile itself does not contain backslashes and begins
16347 # with a dollar sign (not a hyphen), so the echo should work correctly.
16348 # The option is referenced via a variable to avoid confusing sed.
16349 lt_compile=`echo "$ac_compile" | $SED \
16350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16352 -e 's:$: $lt_compiler_flag:'`
16353 (eval echo "\"\$as_me:16353: $lt_compile\"" >&5)
16354 (eval "$lt_compile" 2>conftest.err)
16356 cat conftest.err >&5
16357 echo "$as_me:16357: \$? = $ac_status" >&5
16358 if (exit $ac_status) && test -s "$ac_outfile"; then
16359 # The compiler can only warn and ignore the option if not recognized
16360 # So say no if there are warnings other than the usual output.
16361 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16363 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16364 lt_prog_compiler_pic_works_GCJ=yes
16370 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16371 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16373 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16374 case $lt_prog_compiler_pic_GCJ in
16376 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16379 lt_prog_compiler_pic_GCJ=
16380 lt_prog_compiler_can_build_shared_GCJ=no
16385 # For platforms which do not support PIC, -DPIC is meaningless:
16387 lt_prog_compiler_pic_GCJ=
16390 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16395 # Check to make sure the static flag actually works.
16397 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16398 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16399 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16400 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16401 echo $ECHO_N "(cached) $ECHO_C" >&6
16403 lt_prog_compiler_static_works_GCJ=no
16404 save_LDFLAGS="$LDFLAGS"
16405 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16406 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16407 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16408 # The linker can only warn and ignore the option if not recognized
16409 # So say no if there are warnings
16410 if test -s conftest.err; then
16411 # Append any errors to the config.log.
16412 cat conftest.err 1>&5
16413 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16415 if diff conftest.exp conftest.er2 >/dev/null; then
16416 lt_prog_compiler_static_works_GCJ=yes
16419 lt_prog_compiler_static_works_GCJ=yes
16423 LDFLAGS="$save_LDFLAGS"
16426 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16427 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16429 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16432 lt_prog_compiler_static_GCJ=
16436 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16437 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16438 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
16441 lt_cv_prog_compiler_c_o_GCJ=no
16442 $rm -r conftest 2>/dev/null
16446 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16448 lt_compiler_flag="-o out/conftest2.$ac_objext"
16449 # Insert the option either (1) after the last *FLAGS variable, or
16450 # (2) before a word containing "conftest.", or (3) at the end.
16451 # Note that $ac_compile itself does not contain backslashes and begins
16452 # with a dollar sign (not a hyphen), so the echo should work correctly.
16453 lt_compile=`echo "$ac_compile" | $SED \
16454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16456 -e 's:$: $lt_compiler_flag:'`
16457 (eval echo "\"\$as_me:16457: $lt_compile\"" >&5)
16458 (eval "$lt_compile" 2>out/conftest.err)
16460 cat out/conftest.err >&5
16461 echo "$as_me:16461: \$? = $ac_status" >&5
16462 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16464 # The compiler can only warn and ignore the option if not recognized
16465 # So say no if there are warnings
16466 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16467 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16468 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16469 lt_cv_prog_compiler_c_o_GCJ=yes
16474 # SGI C++ compiler will create directory out/ii_files/ for
16475 # template instantiation
16476 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16477 $rm out/* && rmdir out
16483 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16484 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16487 hard_links="nottested"
16488 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16489 # do not overwrite the value of need_locks provided by the user
16490 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16491 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16494 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16496 ln conftest.a conftest.b 2>&5 || hard_links=no
16497 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16498 { echo "$as_me:$LINENO: result: $hard_links" >&5
16499 echo "${ECHO_T}$hard_links" >&6; }
16500 if test "$hard_links" = no; then
16501 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16502 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16509 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16510 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16513 allow_undefined_flag_GCJ=
16514 enable_shared_with_static_runtimes_GCJ=no
16516 archive_expsym_cmds_GCJ=
16517 old_archive_From_new_cmds_GCJ=
16518 old_archive_from_expsyms_cmds_GCJ=
16519 export_dynamic_flag_spec_GCJ=
16520 whole_archive_flag_spec_GCJ=
16521 thread_safe_flag_spec_GCJ=
16522 hardcode_libdir_flag_spec_GCJ=
16523 hardcode_libdir_flag_spec_ld_GCJ=
16524 hardcode_libdir_separator_GCJ=
16525 hardcode_direct_GCJ=no
16526 hardcode_minus_L_GCJ=no
16527 hardcode_shlibpath_var_GCJ=unsupported
16528 link_all_deplibs_GCJ=unknown
16529 hardcode_automatic_GCJ=no
16531 module_expsym_cmds_GCJ=
16532 always_export_symbols_GCJ=no
16533 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16534 # include_expsyms should be a list of space-separated symbols to be *always*
16535 # included in the symbol list
16536 include_expsyms_GCJ=
16537 # exclude_expsyms can be an extended regexp of symbols to exclude
16538 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16539 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16540 # as well as any symbol that contains `d'.
16541 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16542 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16543 # platforms (ab)use it in PIC code, but their linkers get confused if
16544 # the symbol is explicitly referenced. Since portable code cannot
16545 # rely on this symbol name, it's probably fine to never include it in
16546 # preloaded symbol tables.
16547 extract_expsyms_cmds=
16548 # Just being paranoid about ensuring that cc_basename is set.
16549 for cc_temp in $compiler""; do
16551 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16552 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16557 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16560 cygwin* | mingw* | pw32*)
16561 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16562 # When not using gcc, we currently assume that we are using
16563 # Microsoft Visual C++.
16564 if test "$GCC" != yes; then
16569 # we just hope/assume this is gcc and not c89 (= MSVC++)
16578 if test "$with_gnu_ld" = yes; then
16579 # If archive_cmds runs LD, not CC, wlarc should be empty
16582 # Set some defaults for GNU ld with shared library support. These
16583 # are reset later if shared libraries are not supported. Putting them
16584 # here allows them to be overridden if necessary.
16585 runpath_var=LD_RUN_PATH
16586 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16587 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16588 # ancient GNU ld didn't support --whole-archive et. al.
16589 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16590 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16592 whole_archive_flag_spec_GCJ=
16594 supports_anon_versioning=no
16595 case `$LD -v 2>/dev/null` in
16596 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16597 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16598 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16599 *\ 2.11.*) ;; # other 2.11 versions
16600 *) supports_anon_versioning=yes ;;
16603 # See if GNU ld supports shared libraries.
16605 aix3* | aix4* | aix5*)
16606 # On AIX/PPC, the GNU linker is very broken
16607 if test "$host_cpu" != ia64; then
16611 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16612 *** to be unable to reliably create shared libraries on AIX.
16613 *** Therefore, libtool is disabling shared libraries support. If you
16614 *** really care for shared libraries, you may want to modify your PATH
16615 *** so that a non-GNU linker is found, and then restart.
16622 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)'
16623 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16624 hardcode_minus_L_GCJ=yes
16626 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16627 # that the semantics of dynamic libraries on AmigaOS, at least up
16628 # to version 4, is to share data among multiple programs linked
16629 # with the same dynamic library. Since this doesn't match the
16630 # behavior of shared libraries on other platforms, we can't use
16636 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16637 allow_undefined_flag_GCJ=unsupported
16638 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16639 # support --undefined. This deserves some investigation. FIXME
16640 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16646 cygwin* | mingw* | pw32*)
16647 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16648 # as there is no search path for DLLs.
16649 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16650 allow_undefined_flag_GCJ=unsupported
16651 always_export_symbols_GCJ=no
16652 enable_shared_with_static_runtimes_GCJ=yes
16653 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16655 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16656 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16657 # If the export-symbols file already is a .def file (1st line
16658 # is EXPORTS), use it as is; otherwise, prepend...
16659 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16660 cp $export_symbols $output_objdir/$soname.def;
16662 echo EXPORTS > $output_objdir/$soname.def;
16663 cat $export_symbols >> $output_objdir/$soname.def;
16665 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16672 hardcode_direct_GCJ=no
16673 hardcode_shlibpath_var_GCJ=no
16674 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16675 export_dynamic_flag_spec_GCJ='${wl}-E'
16676 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16677 # Instead, shared libraries are loaded at an image base (0x10000000 by
16678 # default) and relocated if they conflict, which is a slow very memory
16679 # consuming and fragmenting process. To avoid this, we pick a random,
16680 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16681 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16682 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'
16683 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'
16687 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16689 case $cc_basename,$host_cpu in
16690 pgcc*) # Portland Group C compiler
16691 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'
16692 tmp_addflag=' $pic_flag'
16694 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16695 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'
16696 tmp_addflag=' $pic_flag -Mnomain' ;;
16697 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16698 tmp_addflag=' -i_dynamic' ;;
16699 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16700 tmp_addflag=' -i_dynamic -nofor_main' ;;
16701 ifc* | ifort*) # Intel Fortran compiler
16702 tmp_addflag=' -nofor_main' ;;
16704 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16706 if test $supports_anon_versioning = yes; then
16707 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16708 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16709 $echo "local: *; };" >> $output_objdir/$libname.ver~
16710 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16718 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16719 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16722 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16723 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16728 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16732 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16733 *** create shared libraries on Solaris systems. Therefore, libtool
16734 *** is disabling shared libraries support. We urge you to upgrade GNU
16735 *** binutils to release 2.9.1 or newer. Another option is to modify
16736 *** your PATH or compiler configuration so that the native linker is
16737 *** used, and then restart.
16740 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16741 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16742 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16748 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16749 case `$LD -v 2>&1` in
16750 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16754 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16755 *** reliably create shared libraries on SCO systems. Therefore, libtool
16756 *** is disabling shared libraries support. We urge you to upgrade GNU
16757 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16758 *** your PATH or compiler configuration so that the native linker is
16759 *** used, and then restart.
16764 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16765 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16766 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16767 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16776 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16778 hardcode_direct_GCJ=yes
16779 hardcode_shlibpath_var_GCJ=no
16783 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16784 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16785 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16792 if test "$ld_shlibs_GCJ" = no; then
16794 hardcode_libdir_flag_spec_GCJ=
16795 export_dynamic_flag_spec_GCJ=
16796 whole_archive_flag_spec_GCJ=
16799 # PORTME fill in a description of your system's linker (not GNU ld)
16802 allow_undefined_flag_GCJ=unsupported
16803 always_export_symbols_GCJ=yes
16804 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'
16805 # Note: this linker hardcodes the directories in LIBPATH if there
16806 # are no directories specified by -L.
16807 hardcode_minus_L_GCJ=yes
16808 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16809 # Neither direct hardcoding nor static linking is supported with a
16811 hardcode_direct_GCJ=unsupported
16816 if test "$host_cpu" = ia64; then
16817 # On IA64, the linker does run time linking by default, so we don't
16818 # have to do anything special.
16819 aix_use_runtimelinking=no
16820 exp_sym_flag='-Bexport'
16823 # If we're using GNU nm, then we don't want the "-C" option.
16824 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16825 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16826 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'
16828 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'
16830 aix_use_runtimelinking=no
16832 # Test if we are trying to use run time linking or normal
16833 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16834 # need to do runtime linking.
16835 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16836 for ld_flag in $LDFLAGS; do
16837 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16838 aix_use_runtimelinking=yes
16845 exp_sym_flag='-bexport'
16846 no_entry_flag='-bnoentry'
16849 # When large executables or shared objects are built, AIX ld can
16850 # have problems creating the table of contents. If linking a library
16851 # or program results in "error TOC overflow" add -mminimal-toc to
16852 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16853 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16855 archive_cmds_GCJ=''
16856 hardcode_direct_GCJ=yes
16857 hardcode_libdir_separator_GCJ=':'
16858 link_all_deplibs_GCJ=yes
16860 if test "$GCC" = yes; then
16861 case $host_os in aix4.[012]|aix4.[012].*)
16862 # We only want to do this on AIX 4.2 and lower, the check
16863 # below for broken collect2 doesn't work under 4.3+
16864 collect2name=`${CC} -print-prog-name=collect2`
16865 if test -f "$collect2name" && \
16866 strings "$collect2name" | grep resolve_lib_name >/dev/null
16868 # We have reworked collect2
16869 hardcode_direct_GCJ=yes
16871 # We have old collect2
16872 hardcode_direct_GCJ=unsupported
16873 # It fails to find uninstalled libraries when the uninstalled
16874 # path is not listed in the libpath. Setting hardcode_minus_L
16875 # to unsupported forces relinking
16876 hardcode_minus_L_GCJ=yes
16877 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16878 hardcode_libdir_separator_GCJ=
16882 shared_flag='-shared'
16883 if test "$aix_use_runtimelinking" = yes; then
16884 shared_flag="$shared_flag "'${wl}-G'
16888 if test "$host_cpu" = ia64; then
16889 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16890 # chokes on -Wl,-G. The following line is correct:
16893 if test "$aix_use_runtimelinking" = yes; then
16894 shared_flag='${wl}-G'
16896 shared_flag='${wl}-bM:SRE'
16901 # It seems that -bexpall does not export symbols beginning with
16902 # underscore (_), so it is better to generate a list of symbols to export.
16903 always_export_symbols_GCJ=yes
16904 if test "$aix_use_runtimelinking" = yes; then
16905 # Warning - without using the other runtime loading flags (-brtl),
16906 # -berok will link without error, but may produce a broken library.
16907 allow_undefined_flag_GCJ='-berok'
16908 # Determine the default libpath from the value encoded in an empty executable.
16909 cat >conftest.$ac_ext <<_ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h. */
16924 rm -f conftest.$ac_objext conftest$ac_exeext
16925 if { (ac_try="$ac_link"
16926 case "(($ac_try" in
16927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16928 *) ac_try_echo=$ac_try;;
16930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16931 (eval "$ac_link") 2>conftest.er1
16933 grep -v '^ *+' conftest.er1 >conftest.err
16935 cat conftest.err >&5
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); } && {
16938 test -z "$ac_c_werror_flag" ||
16939 test ! -s conftest.err
16940 } && test -s conftest$ac_exeext &&
16941 $as_test_x conftest$ac_exeext; then
16943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16945 # Check for a 64-bit object if we didn't find anything.
16946 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; }
16949 echo "$as_me: failed program was:" >&5
16950 sed 's/^/| /' conftest.$ac_ext >&5
16955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16956 conftest$ac_exeext conftest.$ac_ext
16957 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16959 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16960 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"
16962 if test "$host_cpu" = ia64; then
16963 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16964 allow_undefined_flag_GCJ="-z nodefs"
16965 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"
16967 # Determine the default libpath from the value encoded in an empty executable.
16968 cat >conftest.$ac_ext <<_ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16983 rm -f conftest.$ac_objext conftest$ac_exeext
16984 if { (ac_try="$ac_link"
16985 case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_link") 2>conftest.er1
16992 grep -v '^ *+' conftest.er1 >conftest.err
16994 cat conftest.err >&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } && {
16997 test -z "$ac_c_werror_flag" ||
16998 test ! -s conftest.err
16999 } && test -s conftest$ac_exeext &&
17000 $as_test_x conftest$ac_exeext; then
17002 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17004 # Check for a 64-bit object if we didn't find anything.
17005 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; }
17008 echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17015 conftest$ac_exeext conftest.$ac_ext
17016 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17018 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17019 # Warning - without using the other run time loading flags,
17020 # -berok will link without error, but may produce a broken library.
17021 no_undefined_flag_GCJ=' ${wl}-bernotok'
17022 allow_undefined_flag_GCJ=' ${wl}-berok'
17023 # Exported symbols can be pulled into shared objects from archives
17024 whole_archive_flag_spec_GCJ='$convenience'
17025 archive_cmds_need_lc_GCJ=yes
17026 # This is similar to how AIX traditionally builds its shared libraries.
17027 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'
17033 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)'
17034 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17035 hardcode_minus_L_GCJ=yes
17036 # see comment about different semantics on the GNU ld section
17041 export_dynamic_flag_spec_GCJ=-rdynamic
17044 cygwin* | mingw* | pw32*)
17045 # When not using gcc, we currently assume that we are using
17046 # Microsoft Visual C++.
17047 # hardcode_libdir_flag_spec is actually meaningless, as there is
17048 # no search path for DLLs.
17049 hardcode_libdir_flag_spec_GCJ=' '
17050 allow_undefined_flag_GCJ=unsupported
17051 # Tell ltmain to make .lib files, not .a files.
17053 # Tell ltmain to make .dll files, not .so files.
17055 # FIXME: Setting linknames here is a bad hack.
17056 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17057 # The linker will automatically build a .lib file if we build a DLL.
17058 old_archive_From_new_cmds_GCJ='true'
17059 # FIXME: Should let the user specify the lib program.
17060 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17061 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17062 enable_shared_with_static_runtimes_GCJ=yes
17065 darwin* | rhapsody*)
17067 rhapsody* | darwin1.[012])
17068 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17071 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17072 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17074 case ${MACOSX_DEPLOYMENT_TARGET} in
17076 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17079 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17085 archive_cmds_need_lc_GCJ=no
17086 hardcode_direct_GCJ=no
17087 hardcode_automatic_GCJ=yes
17088 hardcode_shlibpath_var_GCJ=unsupported
17089 whole_archive_flag_spec_GCJ=''
17090 link_all_deplibs_GCJ=yes
17091 if test "$GCC" = yes ; then
17092 output_verbose_link_cmd='echo'
17093 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17094 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17095 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17096 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}'
17097 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}'
17099 case $cc_basename in
17101 output_verbose_link_cmd='echo'
17102 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17103 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17104 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17105 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}'
17106 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}'
17116 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17117 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17118 hardcode_shlibpath_var_GCJ=no
17125 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17126 # support. Future versions do this automatically, but an explicit c++rt0.o
17127 # does not break anything, and helps significantly (at the cost of a little
17130 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17131 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17132 hardcode_direct_GCJ=yes
17133 hardcode_shlibpath_var_GCJ=no
17136 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17138 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17139 hardcode_direct_GCJ=yes
17140 hardcode_minus_L_GCJ=yes
17141 hardcode_shlibpath_var_GCJ=no
17144 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17145 freebsd* | kfreebsd*-gnu | dragonfly*)
17146 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17147 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17148 hardcode_direct_GCJ=yes
17149 hardcode_shlibpath_var_GCJ=no
17153 if test "$GCC" = yes; then
17154 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'
17156 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'
17158 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17159 hardcode_libdir_separator_GCJ=:
17160 hardcode_direct_GCJ=yes
17162 # hardcode_minus_L: Not really in the search PATH,
17163 # but as the default location of the library.
17164 hardcode_minus_L_GCJ=yes
17165 export_dynamic_flag_spec_GCJ='${wl}-E'
17169 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17170 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17172 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17174 if test "$with_gnu_ld" = no; then
17175 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17176 hardcode_libdir_separator_GCJ=:
17178 hardcode_direct_GCJ=yes
17179 export_dynamic_flag_spec_GCJ='${wl}-E'
17181 # hardcode_minus_L: Not really in the search PATH,
17182 # but as the default location of the library.
17183 hardcode_minus_L_GCJ=yes
17188 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17191 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17194 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17197 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17203 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17206 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17209 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17213 if test "$with_gnu_ld" = no; then
17214 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17215 hardcode_libdir_separator_GCJ=:
17219 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17220 hardcode_direct_GCJ=no
17221 hardcode_shlibpath_var_GCJ=no
17224 hardcode_direct_GCJ=yes
17225 export_dynamic_flag_spec_GCJ='${wl}-E'
17227 # hardcode_minus_L: Not really in the search PATH,
17228 # but as the default location of the library.
17229 hardcode_minus_L_GCJ=yes
17235 irix5* | irix6* | nonstopux*)
17236 if test "$GCC" = yes; then
17237 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'
17239 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'
17240 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17242 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17243 hardcode_libdir_separator_GCJ=:
17244 link_all_deplibs_GCJ=yes
17248 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17249 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17251 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17253 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17254 hardcode_direct_GCJ=yes
17255 hardcode_shlibpath_var_GCJ=no
17259 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17260 hardcode_direct_GCJ=yes
17261 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17262 hardcode_libdir_separator_GCJ=:
17263 hardcode_shlibpath_var_GCJ=no
17267 hardcode_direct_GCJ=yes
17268 hardcode_shlibpath_var_GCJ=no
17269 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17270 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17271 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17272 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17273 export_dynamic_flag_spec_GCJ='${wl}-E'
17276 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17277 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17278 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17281 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17282 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17289 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17290 hardcode_minus_L_GCJ=yes
17291 allow_undefined_flag_GCJ=unsupported
17292 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'
17293 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17297 if test "$GCC" = yes; then
17298 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17299 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'
17301 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17302 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'
17304 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17305 hardcode_libdir_separator_GCJ=:
17308 osf4* | osf5*) # as osf3* with the addition of -msym flag
17309 if test "$GCC" = yes; then
17310 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17311 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'
17312 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17314 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17315 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'
17316 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~
17317 $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'
17319 # Both c and cxx compiler support -rpath directly
17320 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17322 hardcode_libdir_separator_GCJ=:
17326 no_undefined_flag_GCJ=' -z text'
17327 if test "$GCC" = yes; then
17329 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17330 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17331 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17334 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17335 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17336 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17338 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17339 hardcode_shlibpath_var_GCJ=no
17341 solaris2.[0-5] | solaris2.[0-5].*) ;;
17343 # The compiler driver will combine linker options so we
17344 # cannot just pass the convience library names through
17345 # without $wl, iff we do not link with $LD.
17346 # Luckily, gcc supports the same syntax we need for Sun Studio.
17347 # Supported since Solaris 2.6 (maybe 2.5.1?)
17350 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17352 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' ;;
17355 link_all_deplibs_GCJ=yes
17359 if test "x$host_vendor" = xsequent; then
17360 # Use $CC to link under sequent, because it throws in some extra .o
17361 # files that make .init and .fini sections work.
17362 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17364 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17366 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17367 hardcode_direct_GCJ=yes
17368 hardcode_minus_L_GCJ=yes
17369 hardcode_shlibpath_var_GCJ=no
17373 case $host_vendor in
17375 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17376 hardcode_direct_GCJ=yes # is this really true???
17379 ## LD is ld it makes a PLAMLIB
17380 ## CC just makes a GrossModule.
17381 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17382 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17383 hardcode_direct_GCJ=no
17386 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17387 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17390 runpath_var='LD_RUN_PATH'
17391 hardcode_shlibpath_var_GCJ=no
17395 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17396 hardcode_shlibpath_var_GCJ=no
17397 export_dynamic_flag_spec_GCJ='-Bexport'
17401 if test -d /usr/nec; then
17402 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17403 hardcode_shlibpath_var_GCJ=no
17404 runpath_var=LD_RUN_PATH
17405 hardcode_runpath_var=yes
17410 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17411 no_undefined_flag_GCJ='${wl}-z,text'
17412 archive_cmds_need_lc_GCJ=no
17413 hardcode_shlibpath_var_GCJ=no
17414 runpath_var='LD_RUN_PATH'
17416 if test "$GCC" = yes; then
17417 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17418 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17420 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17421 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17425 sysv5* | sco3.2v5* | sco5v6*)
17426 # Note: We can NOT use -z defs as we might desire, because we do not
17427 # link with -lc, and that would cause any symbols used from libc to
17428 # always be unresolved, which means just about no library would
17429 # ever link correctly. If we're not using GNU ld we use -z text
17430 # though, which does catch some bad symbols but isn't as heavy-handed
17432 no_undefined_flag_GCJ='${wl}-z,text'
17433 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17434 archive_cmds_need_lc_GCJ=no
17435 hardcode_shlibpath_var_GCJ=no
17436 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17437 hardcode_libdir_separator_GCJ=':'
17438 link_all_deplibs_GCJ=yes
17439 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17440 runpath_var='LD_RUN_PATH'
17442 if test "$GCC" = yes; then
17443 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17444 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17446 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17447 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17452 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17453 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17454 hardcode_shlibpath_var_GCJ=no
17463 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17464 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17465 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17468 # Do we need to explicitly link libc?
17470 case "x$archive_cmds_need_lc_GCJ" in
17472 # Assume -lc should be added
17473 archive_cmds_need_lc_GCJ=yes
17475 if test "$enable_shared" = yes && test "$GCC" = yes; then
17476 case $archive_cmds_GCJ in
17478 # FIXME: we may have to deal with multi-command sequences.
17481 # Test whether the compiler implicitly links with -lc since on some
17482 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17483 # to ld, don't add -lc before -lgcc.
17484 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17485 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17487 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17490 (eval $ac_compile) 2>&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } 2>conftest.err; then
17496 libobjs=conftest.$ac_objext
17498 wl=$lt_prog_compiler_wl_GCJ
17499 pic_flag=$lt_prog_compiler_pic_GCJ
17505 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17506 allow_undefined_flag_GCJ=
17507 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17508 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }
17513 archive_cmds_need_lc_GCJ=no
17515 archive_cmds_need_lc_GCJ=yes
17517 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17519 cat conftest.err 1>&5
17522 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17523 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17530 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17531 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17532 library_names_spec=
17533 libname_spec='lib$name'
17537 postuninstall_cmds=
17541 shlibpath_overrides_runpath=unknown
17543 dynamic_linker="$host_os ld.so"
17544 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17545 if test "$GCC" = yes; then
17546 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17547 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17548 # if the path contains ";" then we assume it to be the separator
17549 # otherwise default to the standard path separator (i.e. ":") - it is
17550 # assumed that no part of a normal pathname contains ";" but that should
17551 # okay in the real world where ";" in dirpaths is itself problematic.
17552 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17554 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17557 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17559 need_lib_prefix=unknown
17560 hardcode_into_libs=no
17562 # when you set need_version to no, make sure it does not cause -set_version
17563 # flags to be left without arguments
17564 need_version=unknown
17569 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17570 shlibpath_var=LIBPATH
17572 # AIX 3 has no versioning support, so we append a major version to the name.
17573 soname_spec='${libname}${release}${shared_ext}$major'
17580 hardcode_into_libs=yes
17581 if test "$host_cpu" = ia64; then
17582 # AIX 5 supports IA64
17583 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17584 shlibpath_var=LD_LIBRARY_PATH
17586 # With GCC up to 2.95.x, collect2 would create an import file
17587 # for dependence libraries. The import file would start with
17588 # the line `#! .'. This would cause the generated library to
17589 # depend on `.', always an invalid library. This was fixed in
17590 # development snapshots of GCC prior to 3.0.
17592 aix4 | aix4.[01] | aix4.[01].*)
17593 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17595 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17598 can_build_shared=no
17602 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17603 # soname into executable. Probably we can add versioning support to
17604 # collect2, so additional links can be useful in future.
17605 if test "$aix_use_runtimelinking" = yes; then
17606 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17607 # instead of lib<name>.a to let people know that these are not
17608 # typical AIX shared libraries.
17609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17611 # We preserve .a as extension for shared libraries through AIX4.2
17612 # and later when we are not doing run time linking.
17613 library_names_spec='${libname}${release}.a $libname.a'
17614 soname_spec='${libname}${release}${shared_ext}$major'
17616 shlibpath_var=LIBPATH
17621 library_names_spec='$libname.ixlibrary $libname.a'
17622 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17623 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'
17627 library_names_spec='${libname}${shared_ext}'
17628 dynamic_linker="$host_os ld.so"
17629 shlibpath_var=LIBRARY_PATH
17635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17636 soname_spec='${libname}${release}${shared_ext}$major'
17637 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17638 shlibpath_var=LD_LIBRARY_PATH
17639 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17640 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17641 # the default ld.so.conf also contains /usr/contrib/lib and
17642 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17643 # libtool to hard-code these into programs
17646 cygwin* | mingw* | pw32*)
17647 version_type=windows
17652 case $GCC,$host_os in
17653 yes,cygwin* | yes,mingw* | yes,pw32*)
17654 library_names_spec='$libname.dll.a'
17655 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17656 postinstall_cmds='base_file=`basename \${file}`~
17657 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17658 dldir=$destdir/`dirname \$dlpath`~
17659 test -d \$dldir || mkdir -p \$dldir~
17660 $install_prog $dir/$dlname \$dldir/$dlname~
17661 chmod a+x \$dldir/$dlname'
17662 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17663 dlpath=$dir/\$dldll~
17665 shlibpath_overrides_runpath=yes
17669 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17670 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17671 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17674 # MinGW DLLs use traditional 'lib' prefix
17675 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17676 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17677 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17678 # It is most probably a Windows format PATH printed by
17679 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17680 # path with ; separators, and with drive letters. We can handle the
17681 # drive letters (cygwin fileutils understands them), so leave them,
17682 # especially as we might pass files found there to a mingw objdump,
17683 # which wouldn't understand a cygwinified path. Ahh.
17684 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17686 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17690 # pw32 DLLs use 'pw' prefix rather than 'lib'
17691 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17697 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17700 dynamic_linker='Win32 ld.exe'
17701 # FIXME: first we should search . and the directory the executable is in
17705 darwin* | rhapsody*)
17706 dynamic_linker="$host_os dyld"
17707 version_type=darwin
17710 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17711 soname_spec='${libname}${release}${major}$shared_ext'
17712 shlibpath_overrides_runpath=yes
17713 shlibpath_var=DYLD_LIBRARY_PATH
17714 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17715 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17716 if test "$GCC" = yes; then
17717 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"`
17719 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17721 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17729 soname_spec='${libname}${release}${shared_ext}$major'
17730 shlibpath_var=LD_LIBRARY_PATH
17741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17742 soname_spec='${libname}${release}${shared_ext}$major'
17743 shlibpath_var=LD_LIBRARY_PATH
17744 shlibpath_overrides_runpath=no
17745 hardcode_into_libs=yes
17746 dynamic_linker='GNU ld.so'
17749 freebsd* | dragonfly*)
17750 # DragonFly does not have aout. When/if they implement a new
17751 # versioning mechanism, adjust this.
17752 if test -x /usr/bin/objformat; then
17753 objformat=`/usr/bin/objformat`
17756 freebsd[123]*) objformat=aout ;;
17757 *) objformat=elf ;;
17760 version_type=freebsd-$objformat
17761 case $version_type in
17763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17768 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17772 shlibpath_var=LD_LIBRARY_PATH
17775 shlibpath_overrides_runpath=yes
17777 freebsd3.[01]* | freebsdelf3.[01]*)
17778 shlibpath_overrides_runpath=yes
17779 hardcode_into_libs=yes
17781 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17782 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17783 shlibpath_overrides_runpath=no
17784 hardcode_into_libs=yes
17786 freebsd*) # from 4.6 on
17787 shlibpath_overrides_runpath=yes
17788 hardcode_into_libs=yes
17797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17798 soname_spec='${libname}${release}${shared_ext}$major'
17799 shlibpath_var=LD_LIBRARY_PATH
17800 hardcode_into_libs=yes
17803 hpux9* | hpux10* | hpux11*)
17804 # Give a soname corresponding to the major version so that dld.sl refuses to
17805 # link against other versions.
17812 hardcode_into_libs=yes
17813 dynamic_linker="$host_os dld.so"
17814 shlibpath_var=LD_LIBRARY_PATH
17815 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17817 soname_spec='${libname}${release}${shared_ext}$major'
17818 if test "X$HPUX_IA64_MODE" = X32; then
17819 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17821 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17827 hardcode_into_libs=yes
17828 dynamic_linker="$host_os dld.sl"
17829 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17832 soname_spec='${libname}${release}${shared_ext}$major'
17833 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17838 dynamic_linker="$host_os dld.sl"
17839 shlibpath_var=SHLIB_PATH
17840 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17842 soname_spec='${libname}${release}${shared_ext}$major'
17845 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17846 postinstall_cmds='chmod 555 $lib'
17853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17854 soname_spec='${libname}${release}${shared_ext}$major'
17855 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17856 shlibpath_var=LD_LIBRARY_PATH
17857 shlibpath_overrides_runpath=no
17858 hardcode_into_libs=yes
17861 irix5* | irix6* | nonstopux*)
17863 nonstopux*) version_type=nonstopux ;;
17865 if test "$lt_cv_prog_gnu_ld" = yes; then
17873 soname_spec='${libname}${release}${shared_ext}$major'
17874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17876 irix5* | nonstopux*)
17877 libsuff= shlibsuff=
17880 case $LD in # libtool.m4 will add one of these switches to LD
17881 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17882 libsuff= shlibsuff= libmagic=32-bit;;
17883 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17884 libsuff=32 shlibsuff=N32 libmagic=N32;;
17885 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17886 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17887 *) libsuff= shlibsuff= libmagic=never-match;;
17891 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17892 shlibpath_overrides_runpath=no
17893 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17894 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17895 hardcode_into_libs=yes
17898 # No shared lib support for Linux oldld, aout, or coff.
17899 linux*oldld* | linux*aout* | linux*coff*)
17903 # This must be Linux ELF.
17908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17909 soname_spec='${libname}${release}${shared_ext}$major'
17910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17911 shlibpath_var=LD_LIBRARY_PATH
17912 shlibpath_overrides_runpath=no
17913 # This implies no fast_install, which is unacceptable.
17914 # Some rework will be needed to allow for fast_install
17915 # before this can be enabled.
17916 hardcode_into_libs=yes
17918 # Append ld.so.conf contents to the search path
17919 if test -f /etc/ld.so.conf; then
17920 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' ' '`
17921 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17924 # We used to test for /lib/ld.so.1 and disable shared libraries on
17925 # powerpc, because MkLinux only supported shared libraries with the
17926 # GNU dynamic linker. Since this was broken with cross compilers,
17927 # most powerpc-linux boxes support dynamic linking these days and
17928 # people can always --disable-shared, the test was removed, and we
17929 # assume the GNU/Linux dynamic linker is in use.
17930 dynamic_linker='GNU/Linux ld.so'
17937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17938 soname_spec='${libname}${release}${shared_ext}$major'
17939 shlibpath_var=LD_LIBRARY_PATH
17940 shlibpath_overrides_runpath=no
17941 hardcode_into_libs=yes
17942 dynamic_linker='GNU ld.so'
17949 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17952 dynamic_linker='NetBSD (a.out) ld.so'
17954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17955 soname_spec='${libname}${release}${shared_ext}$major'
17956 dynamic_linker='NetBSD ld.elf_so'
17958 shlibpath_var=LD_LIBRARY_PATH
17959 shlibpath_overrides_runpath=yes
17960 hardcode_into_libs=yes
17965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17966 shlibpath_var=LD_LIBRARY_PATH
17967 shlibpath_overrides_runpath=yes
17974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17975 soname_spec='${libname}${release}${shared_ext}$major'
17976 shlibpath_var=LD_LIBRARY_PATH
17977 shlibpath_overrides_runpath=yes
17982 sys_lib_dlsearch_path_spec="/usr/lib"
17984 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17986 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17987 *) need_version=no ;;
17989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17991 shlibpath_var=LD_LIBRARY_PATH
17992 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17994 openbsd2.[89] | openbsd2.[89].*)
17995 shlibpath_overrides_runpath=no
17998 shlibpath_overrides_runpath=yes
18002 shlibpath_overrides_runpath=yes
18007 libname_spec='$name'
18010 library_names_spec='$libname${shared_ext} $libname.a'
18011 dynamic_linker='OS/2 ld.exe'
18012 shlibpath_var=LIBPATH
18015 osf3* | osf4* | osf5*)
18019 soname_spec='${libname}${release}${shared_ext}$major'
18020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18021 shlibpath_var=LD_LIBRARY_PATH
18022 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18023 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18031 soname_spec='${libname}${release}${shared_ext}$major'
18032 shlibpath_var=LD_LIBRARY_PATH
18033 shlibpath_overrides_runpath=yes
18034 hardcode_into_libs=yes
18035 # ldd complains unless libraries are executable
18036 postinstall_cmds='chmod +x $lib'
18041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18042 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18043 shlibpath_var=LD_LIBRARY_PATH
18044 shlibpath_overrides_runpath=yes
18045 if test "$with_gnu_ld" = yes; then
18053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18054 soname_spec='${libname}${release}${shared_ext}$major'
18055 shlibpath_var=LD_LIBRARY_PATH
18056 case $host_vendor in
18058 shlibpath_overrides_runpath=no
18060 export_dynamic_flag_spec='${wl}-Blargedynsym'
18061 runpath_var=LD_RUN_PATH
18069 shlibpath_overrides_runpath=no
18070 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18076 if test -d /usr/nec ;then
18078 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18079 soname_spec='$libname${shared_ext}.$major'
18080 shlibpath_var=LD_LIBRARY_PATH
18084 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18085 version_type=freebsd-elf
18088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18089 soname_spec='${libname}${release}${shared_ext}$major'
18090 shlibpath_var=LD_LIBRARY_PATH
18091 hardcode_into_libs=yes
18092 if test "$with_gnu_ld" = yes; then
18093 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18094 shlibpath_overrides_runpath=no
18096 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18097 shlibpath_overrides_runpath=yes
18100 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18104 sys_lib_dlsearch_path_spec='/usr/lib'
18109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18110 soname_spec='${libname}${release}${shared_ext}$major'
18111 shlibpath_var=LD_LIBRARY_PATH
18118 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18119 echo "${ECHO_T}$dynamic_linker" >&6; }
18120 test "$dynamic_linker" = no && can_build_shared=no
18122 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18123 if test "$GCC" = yes; then
18124 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18127 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18128 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18129 hardcode_action_GCJ=
18130 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18131 test -n "$runpath_var_GCJ" || \
18132 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18134 # We can hardcode non-existant directories.
18135 if test "$hardcode_direct_GCJ" != no &&
18136 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18137 # have to relink, otherwise we might link with an installed library
18138 # when we should be linking with a yet-to-be-installed one
18139 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18140 test "$hardcode_minus_L_GCJ" != no; then
18141 # Linking always hardcodes the temporary library directory.
18142 hardcode_action_GCJ=relink
18144 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18145 hardcode_action_GCJ=immediate
18148 # We cannot hardcode anything, or else we can only hardcode existing
18150 hardcode_action_GCJ=unsupported
18152 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18153 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18155 if test "$hardcode_action_GCJ" = relink; then
18156 # Fast installation is not supported
18157 enable_fast_install=no
18158 elif test "$shlibpath_overrides_runpath" = yes ||
18159 test "$enable_shared" = no; then
18160 # Fast installation is not necessary
18161 enable_fast_install=needless
18165 # The else clause should only fire when bootstrapping the
18166 # libtool distribution, otherwise you forgot to ship ltmain.sh
18167 # with your package, and you will get complaints that there are
18168 # no rules to generate ltmain.sh.
18169 if test -f "$ltmain"; then
18170 # See if we are running on zsh, and set the options which allow our commands through
18171 # without removal of \ escapes.
18172 if test -n "${ZSH_VERSION+set}" ; then
18173 setopt NO_GLOB_SUBST
18175 # Now quote all the things that may contain metacharacters while being
18176 # careful not to overquote the AC_SUBSTed values. We take copies of the
18177 # variables and quote the copies for generation of the libtool script.
18178 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18180 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18181 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18182 deplibs_check_method reload_flag reload_cmds need_locks \
18183 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18184 lt_cv_sys_global_symbol_to_c_name_address \
18185 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18186 old_postinstall_cmds old_postuninstall_cmds \
18190 lt_prog_compiler_wl_GCJ \
18191 lt_prog_compiler_pic_GCJ \
18192 lt_prog_compiler_static_GCJ \
18193 lt_prog_compiler_no_builtin_flag_GCJ \
18194 export_dynamic_flag_spec_GCJ \
18195 thread_safe_flag_spec_GCJ \
18196 whole_archive_flag_spec_GCJ \
18197 enable_shared_with_static_runtimes_GCJ \
18198 old_archive_cmds_GCJ \
18199 old_archive_from_new_cmds_GCJ \
18200 predep_objects_GCJ \
18201 postdep_objects_GCJ \
18204 compiler_lib_search_path_GCJ \
18206 archive_expsym_cmds_GCJ \
18207 postinstall_cmds_GCJ \
18208 postuninstall_cmds_GCJ \
18209 old_archive_from_expsyms_cmds_GCJ \
18210 allow_undefined_flag_GCJ \
18211 no_undefined_flag_GCJ \
18212 export_symbols_cmds_GCJ \
18213 hardcode_libdir_flag_spec_GCJ \
18214 hardcode_libdir_flag_spec_ld_GCJ \
18215 hardcode_libdir_separator_GCJ \
18216 hardcode_automatic_GCJ \
18218 module_expsym_cmds_GCJ \
18219 lt_cv_prog_compiler_c_o_GCJ \
18220 exclude_expsyms_GCJ \
18221 include_expsyms_GCJ; do
18224 old_archive_cmds_GCJ | \
18225 old_archive_from_new_cmds_GCJ | \
18226 archive_cmds_GCJ | \
18227 archive_expsym_cmds_GCJ | \
18228 module_cmds_GCJ | \
18229 module_expsym_cmds_GCJ | \
18230 old_archive_from_expsyms_cmds_GCJ | \
18231 export_symbols_cmds_GCJ | \
18232 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18233 postinstall_cmds | postuninstall_cmds | \
18234 old_postinstall_cmds | old_postuninstall_cmds | \
18235 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18236 # Double-quote double-evaled strings.
18237 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18240 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18246 *'\$0 --fallback-echo"')
18247 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18253 cat <<__EOF__ >> "$cfgfile"
18254 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18256 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18258 # Shell to use when invoking shell scripts.
18261 # Whether or not to build shared libraries.
18262 build_libtool_libs=$enable_shared
18264 # Whether or not to build static libraries.
18265 build_old_libs=$enable_static
18267 # Whether or not to add -lc for building shared libraries.
18268 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18270 # Whether or not to disallow shared libs when runtime libs are static
18271 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18273 # Whether or not to optimize for fast installation.
18274 fast_install=$enable_fast_install
18277 host_alias=$host_alias
18281 # The build system.
18282 build_alias=$build_alias
18286 # An echo program that does not interpret backslashes.
18291 AR_FLAGS=$lt_AR_FLAGS
18296 # LTCC compiler flags.
18297 LTCFLAGS=$lt_LTCFLAGS
18299 # A language-specific compiler.
18300 CC=$lt_compiler_GCJ
18302 # Is the compiler the GNU C compiler?
18308 # The linker used to build libraries.
18311 # Whether we need hard or soft links.
18314 # A BSD-compatible nm program.
18317 # A symbol stripping program
18320 # Used to examine libraries when file_magic_cmd begins "file"
18321 MAGIC_CMD=$MAGIC_CMD
18323 # Used on cygwin: DLL creation program.
18326 # Used on cygwin: object dumper.
18329 # Used on cygwin: assembler.
18332 # The name of the directory that contains temporary libtool files.
18335 # How to create reloadable object files.
18336 reload_flag=$lt_reload_flag
18337 reload_cmds=$lt_reload_cmds
18339 # How to pass a linker flag through the compiler.
18340 wl=$lt_lt_prog_compiler_wl_GCJ
18342 # Object file suffix (normally "o").
18343 objext="$ac_objext"
18345 # Old archive suffix (normally "a").
18348 # Shared library suffix (normally ".so").
18349 shrext_cmds='$shrext_cmds'
18351 # Executable file suffix (normally "").
18354 # Additional compiler flags for building library objects.
18355 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18358 # What is the maximum length of a command?
18359 max_cmd_len=$lt_cv_sys_max_cmd_len
18361 # Does compiler simultaneously support -c and -o options?
18362 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18364 # Must we lock files when doing compilation?
18365 need_locks=$lt_need_locks
18367 # Do we need the lib prefix for modules?
18368 need_lib_prefix=$need_lib_prefix
18370 # Do we need a version for libraries?
18371 need_version=$need_version
18373 # Whether dlopen is supported.
18374 dlopen_support=$enable_dlopen
18376 # Whether dlopen of programs is supported.
18377 dlopen_self=$enable_dlopen_self
18379 # Whether dlopen of statically linked programs is supported.
18380 dlopen_self_static=$enable_dlopen_self_static
18382 # Compiler flag to prevent dynamic linking.
18383 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18385 # Compiler flag to turn off builtin functions.
18386 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18388 # Compiler flag to allow reflexive dlopens.
18389 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18391 # Compiler flag to generate shared objects directly from archives.
18392 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18394 # Compiler flag to generate thread-safe objects.
18395 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18397 # Library versioning type.
18398 version_type=$version_type
18400 # Format of library name prefix.
18401 libname_spec=$lt_libname_spec
18403 # List of archive names. First name is the real one, the rest are links.
18404 # The last name is the one that the linker finds with -lNAME.
18405 library_names_spec=$lt_library_names_spec
18407 # The coded name of the library, if different from the real name.
18408 soname_spec=$lt_soname_spec
18410 # Commands used to build and install an old-style archive.
18412 old_archive_cmds=$lt_old_archive_cmds_GCJ
18413 old_postinstall_cmds=$lt_old_postinstall_cmds
18414 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18416 # Create an old-style archive from a shared archive.
18417 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18419 # Create a temporary old-style archive to link instead of a shared archive.
18420 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18422 # Commands used to build and install a shared archive.
18423 archive_cmds=$lt_archive_cmds_GCJ
18424 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18425 postinstall_cmds=$lt_postinstall_cmds
18426 postuninstall_cmds=$lt_postuninstall_cmds
18428 # Commands used to build a loadable module (assumed same as above if empty)
18429 module_cmds=$lt_module_cmds_GCJ
18430 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18432 # Commands to strip libraries.
18433 old_striplib=$lt_old_striplib
18434 striplib=$lt_striplib
18436 # Dependencies to place before the objects being linked to create a
18438 predep_objects=$lt_predep_objects_GCJ
18440 # Dependencies to place after the objects being linked to create a
18442 postdep_objects=$lt_postdep_objects_GCJ
18444 # Dependencies to place before the objects being linked to create a
18446 predeps=$lt_predeps_GCJ
18448 # Dependencies to place after the objects being linked to create a
18450 postdeps=$lt_postdeps_GCJ
18452 # The library search path used internally by the compiler when linking
18453 # a shared library.
18454 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18456 # Method to check whether dependent libraries are shared objects.
18457 deplibs_check_method=$lt_deplibs_check_method
18459 # Command to use when deplibs_check_method == file_magic.
18460 file_magic_cmd=$lt_file_magic_cmd
18462 # Flag that allows shared libraries with undefined symbols to be built.
18463 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18465 # Flag that forces no undefined symbols.
18466 no_undefined_flag=$lt_no_undefined_flag_GCJ
18468 # Commands used to finish a libtool library installation in a directory.
18469 finish_cmds=$lt_finish_cmds
18471 # Same as above, but a single script fragment to be evaled but not shown.
18472 finish_eval=$lt_finish_eval
18474 # Take the output of nm and produce a listing of raw symbols and C names.
18475 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18477 # Transform the output of nm in a proper C declaration
18478 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18480 # Transform the output of nm in a C name address pair
18481 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18483 # This is the shared library runtime path variable.
18484 runpath_var=$runpath_var
18486 # This is the shared library path variable.
18487 shlibpath_var=$shlibpath_var
18489 # Is shlibpath searched before the hard-coded library search path?
18490 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18492 # How to hardcode a shared library path into an executable.
18493 hardcode_action=$hardcode_action_GCJ
18495 # Whether we should hardcode library paths into libraries.
18496 hardcode_into_libs=$hardcode_into_libs
18498 # Flag to hardcode \$libdir into a binary during linking.
18499 # This must work even if \$libdir does not exist.
18500 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18502 # If ld is used when linking, flag to hardcode \$libdir into
18503 # a binary during linking. This must work even if \$libdir does
18505 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18507 # Whether we need a single -rpath flag with a separated argument.
18508 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18510 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18511 # resulting binary.
18512 hardcode_direct=$hardcode_direct_GCJ
18514 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18515 # resulting binary.
18516 hardcode_minus_L=$hardcode_minus_L_GCJ
18518 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18519 # the resulting binary.
18520 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18522 # Set to yes if building a shared library automatically hardcodes DIR into the library
18523 # and all subsequent libraries and executables linked against it.
18524 hardcode_automatic=$hardcode_automatic_GCJ
18526 # Variables whose values should be saved in libtool wrapper scripts and
18527 # restored at relink time.
18528 variables_saved_for_relink="$variables_saved_for_relink"
18530 # Whether libtool must link a program against all its dependency libraries.
18531 link_all_deplibs=$link_all_deplibs_GCJ
18533 # Compile-time system search path for libraries
18534 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18536 # Run-time system search path for libraries
18537 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18539 # Fix the shell variable \$srcfile for the compiler.
18540 fix_srcfile_path="$fix_srcfile_path_GCJ"
18542 # Set to yes if exported symbols are required.
18543 always_export_symbols=$always_export_symbols_GCJ
18545 # The commands to list exported symbols.
18546 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18548 # The commands to extract the exported symbol list from a shared archive.
18549 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18551 # Symbols that should not be listed in the preloaded symbols.
18552 exclude_expsyms=$lt_exclude_expsyms_GCJ
18554 # Symbols that must always be exported.
18555 include_expsyms=$lt_include_expsyms_GCJ
18557 # ### END LIBTOOL TAG CONFIG: $tagname
18563 # If there is no Makefile yet, we rely on a make rule to execute
18564 # `config.status --recheck' to rerun these tests and create the
18565 # libtool script then.
18566 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18567 if test -f "$ltmain_in"; then
18568 test -f Makefile && make "$ltmain"
18574 ac_cpp='$CPP $CPPFLAGS'
18575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18589 # Source file extension for RC test sources.
18592 # Object file extension for compiled RC test sources.
18596 # Code to be used in simple compile tests
18597 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18599 # Code to be used in simple link tests
18600 lt_simple_link_test_code="$lt_simple_compile_test_code"
18602 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18604 # If no C compiler was specified, use CC.
18607 # If no C compiler flags were specified, use CFLAGS.
18608 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18610 # Allow CC to be a program name with arguments.
18614 # save warnings/boilerplate of simple test code
18615 ac_outfile=conftest.$ac_objext
18616 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18617 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18618 _lt_compiler_boilerplate=`cat conftest.err`
18621 ac_outfile=conftest.$ac_objext
18622 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18623 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18624 _lt_linker_boilerplate=`cat conftest.err`
18628 # Allow CC to be a program name with arguments.
18633 for cc_temp in $compiler""; do
18635 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18636 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18641 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18643 lt_cv_prog_compiler_c_o_RC=yes
18645 # The else clause should only fire when bootstrapping the
18646 # libtool distribution, otherwise you forgot to ship ltmain.sh
18647 # with your package, and you will get complaints that there are
18648 # no rules to generate ltmain.sh.
18649 if test -f "$ltmain"; then
18650 # See if we are running on zsh, and set the options which allow our commands through
18651 # without removal of \ escapes.
18652 if test -n "${ZSH_VERSION+set}" ; then
18653 setopt NO_GLOB_SUBST
18655 # Now quote all the things that may contain metacharacters while being
18656 # careful not to overquote the AC_SUBSTed values. We take copies of the
18657 # variables and quote the copies for generation of the libtool script.
18658 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18660 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18661 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18662 deplibs_check_method reload_flag reload_cmds need_locks \
18663 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18664 lt_cv_sys_global_symbol_to_c_name_address \
18665 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18666 old_postinstall_cmds old_postuninstall_cmds \
18670 lt_prog_compiler_wl_RC \
18671 lt_prog_compiler_pic_RC \
18672 lt_prog_compiler_static_RC \
18673 lt_prog_compiler_no_builtin_flag_RC \
18674 export_dynamic_flag_spec_RC \
18675 thread_safe_flag_spec_RC \
18676 whole_archive_flag_spec_RC \
18677 enable_shared_with_static_runtimes_RC \
18678 old_archive_cmds_RC \
18679 old_archive_from_new_cmds_RC \
18680 predep_objects_RC \
18681 postdep_objects_RC \
18684 compiler_lib_search_path_RC \
18686 archive_expsym_cmds_RC \
18687 postinstall_cmds_RC \
18688 postuninstall_cmds_RC \
18689 old_archive_from_expsyms_cmds_RC \
18690 allow_undefined_flag_RC \
18691 no_undefined_flag_RC \
18692 export_symbols_cmds_RC \
18693 hardcode_libdir_flag_spec_RC \
18694 hardcode_libdir_flag_spec_ld_RC \
18695 hardcode_libdir_separator_RC \
18696 hardcode_automatic_RC \
18698 module_expsym_cmds_RC \
18699 lt_cv_prog_compiler_c_o_RC \
18700 exclude_expsyms_RC \
18701 include_expsyms_RC; do
18704 old_archive_cmds_RC | \
18705 old_archive_from_new_cmds_RC | \
18706 archive_cmds_RC | \
18707 archive_expsym_cmds_RC | \
18709 module_expsym_cmds_RC | \
18710 old_archive_from_expsyms_cmds_RC | \
18711 export_symbols_cmds_RC | \
18712 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18713 postinstall_cmds | postuninstall_cmds | \
18714 old_postinstall_cmds | old_postuninstall_cmds | \
18715 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18716 # Double-quote double-evaled strings.
18717 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18720 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18726 *'\$0 --fallback-echo"')
18727 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18733 cat <<__EOF__ >> "$cfgfile"
18734 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18736 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18738 # Shell to use when invoking shell scripts.
18741 # Whether or not to build shared libraries.
18742 build_libtool_libs=$enable_shared
18744 # Whether or not to build static libraries.
18745 build_old_libs=$enable_static
18747 # Whether or not to add -lc for building shared libraries.
18748 build_libtool_need_lc=$archive_cmds_need_lc_RC
18750 # Whether or not to disallow shared libs when runtime libs are static
18751 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18753 # Whether or not to optimize for fast installation.
18754 fast_install=$enable_fast_install
18757 host_alias=$host_alias
18761 # The build system.
18762 build_alias=$build_alias
18766 # An echo program that does not interpret backslashes.
18771 AR_FLAGS=$lt_AR_FLAGS
18776 # LTCC compiler flags.
18777 LTCFLAGS=$lt_LTCFLAGS
18779 # A language-specific compiler.
18782 # Is the compiler the GNU C compiler?
18788 # The linker used to build libraries.
18791 # Whether we need hard or soft links.
18794 # A BSD-compatible nm program.
18797 # A symbol stripping program
18800 # Used to examine libraries when file_magic_cmd begins "file"
18801 MAGIC_CMD=$MAGIC_CMD
18803 # Used on cygwin: DLL creation program.
18806 # Used on cygwin: object dumper.
18809 # Used on cygwin: assembler.
18812 # The name of the directory that contains temporary libtool files.
18815 # How to create reloadable object files.
18816 reload_flag=$lt_reload_flag
18817 reload_cmds=$lt_reload_cmds
18819 # How to pass a linker flag through the compiler.
18820 wl=$lt_lt_prog_compiler_wl_RC
18822 # Object file suffix (normally "o").
18823 objext="$ac_objext"
18825 # Old archive suffix (normally "a").
18828 # Shared library suffix (normally ".so").
18829 shrext_cmds='$shrext_cmds'
18831 # Executable file suffix (normally "").
18834 # Additional compiler flags for building library objects.
18835 pic_flag=$lt_lt_prog_compiler_pic_RC
18838 # What is the maximum length of a command?
18839 max_cmd_len=$lt_cv_sys_max_cmd_len
18841 # Does compiler simultaneously support -c and -o options?
18842 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18844 # Must we lock files when doing compilation?
18845 need_locks=$lt_need_locks
18847 # Do we need the lib prefix for modules?
18848 need_lib_prefix=$need_lib_prefix
18850 # Do we need a version for libraries?
18851 need_version=$need_version
18853 # Whether dlopen is supported.
18854 dlopen_support=$enable_dlopen
18856 # Whether dlopen of programs is supported.
18857 dlopen_self=$enable_dlopen_self
18859 # Whether dlopen of statically linked programs is supported.
18860 dlopen_self_static=$enable_dlopen_self_static
18862 # Compiler flag to prevent dynamic linking.
18863 link_static_flag=$lt_lt_prog_compiler_static_RC
18865 # Compiler flag to turn off builtin functions.
18866 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18868 # Compiler flag to allow reflexive dlopens.
18869 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18871 # Compiler flag to generate shared objects directly from archives.
18872 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18874 # Compiler flag to generate thread-safe objects.
18875 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18877 # Library versioning type.
18878 version_type=$version_type
18880 # Format of library name prefix.
18881 libname_spec=$lt_libname_spec
18883 # List of archive names. First name is the real one, the rest are links.
18884 # The last name is the one that the linker finds with -lNAME.
18885 library_names_spec=$lt_library_names_spec
18887 # The coded name of the library, if different from the real name.
18888 soname_spec=$lt_soname_spec
18890 # Commands used to build and install an old-style archive.
18892 old_archive_cmds=$lt_old_archive_cmds_RC
18893 old_postinstall_cmds=$lt_old_postinstall_cmds
18894 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18896 # Create an old-style archive from a shared archive.
18897 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18899 # Create a temporary old-style archive to link instead of a shared archive.
18900 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18902 # Commands used to build and install a shared archive.
18903 archive_cmds=$lt_archive_cmds_RC
18904 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18905 postinstall_cmds=$lt_postinstall_cmds
18906 postuninstall_cmds=$lt_postuninstall_cmds
18908 # Commands used to build a loadable module (assumed same as above if empty)
18909 module_cmds=$lt_module_cmds_RC
18910 module_expsym_cmds=$lt_module_expsym_cmds_RC
18912 # Commands to strip libraries.
18913 old_striplib=$lt_old_striplib
18914 striplib=$lt_striplib
18916 # Dependencies to place before the objects being linked to create a
18918 predep_objects=$lt_predep_objects_RC
18920 # Dependencies to place after the objects being linked to create a
18922 postdep_objects=$lt_postdep_objects_RC
18924 # Dependencies to place before the objects being linked to create a
18926 predeps=$lt_predeps_RC
18928 # Dependencies to place after the objects being linked to create a
18930 postdeps=$lt_postdeps_RC
18932 # The library search path used internally by the compiler when linking
18933 # a shared library.
18934 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18936 # Method to check whether dependent libraries are shared objects.
18937 deplibs_check_method=$lt_deplibs_check_method
18939 # Command to use when deplibs_check_method == file_magic.
18940 file_magic_cmd=$lt_file_magic_cmd
18942 # Flag that allows shared libraries with undefined symbols to be built.
18943 allow_undefined_flag=$lt_allow_undefined_flag_RC
18945 # Flag that forces no undefined symbols.
18946 no_undefined_flag=$lt_no_undefined_flag_RC
18948 # Commands used to finish a libtool library installation in a directory.
18949 finish_cmds=$lt_finish_cmds
18951 # Same as above, but a single script fragment to be evaled but not shown.
18952 finish_eval=$lt_finish_eval
18954 # Take the output of nm and produce a listing of raw symbols and C names.
18955 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18957 # Transform the output of nm in a proper C declaration
18958 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18960 # Transform the output of nm in a C name address pair
18961 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18963 # This is the shared library runtime path variable.
18964 runpath_var=$runpath_var
18966 # This is the shared library path variable.
18967 shlibpath_var=$shlibpath_var
18969 # Is shlibpath searched before the hard-coded library search path?
18970 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18972 # How to hardcode a shared library path into an executable.
18973 hardcode_action=$hardcode_action_RC
18975 # Whether we should hardcode library paths into libraries.
18976 hardcode_into_libs=$hardcode_into_libs
18978 # Flag to hardcode \$libdir into a binary during linking.
18979 # This must work even if \$libdir does not exist.
18980 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18982 # If ld is used when linking, flag to hardcode \$libdir into
18983 # a binary during linking. This must work even if \$libdir does
18985 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18987 # Whether we need a single -rpath flag with a separated argument.
18988 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18990 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18991 # resulting binary.
18992 hardcode_direct=$hardcode_direct_RC
18994 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18995 # resulting binary.
18996 hardcode_minus_L=$hardcode_minus_L_RC
18998 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18999 # the resulting binary.
19000 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19002 # Set to yes if building a shared library automatically hardcodes DIR into the library
19003 # and all subsequent libraries and executables linked against it.
19004 hardcode_automatic=$hardcode_automatic_RC
19006 # Variables whose values should be saved in libtool wrapper scripts and
19007 # restored at relink time.
19008 variables_saved_for_relink="$variables_saved_for_relink"
19010 # Whether libtool must link a program against all its dependency libraries.
19011 link_all_deplibs=$link_all_deplibs_RC
19013 # Compile-time system search path for libraries
19014 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19016 # Run-time system search path for libraries
19017 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19019 # Fix the shell variable \$srcfile for the compiler.
19020 fix_srcfile_path="$fix_srcfile_path_RC"
19022 # Set to yes if exported symbols are required.
19023 always_export_symbols=$always_export_symbols_RC
19025 # The commands to list exported symbols.
19026 export_symbols_cmds=$lt_export_symbols_cmds_RC
19028 # The commands to extract the exported symbol list from a shared archive.
19029 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19031 # Symbols that should not be listed in the preloaded symbols.
19032 exclude_expsyms=$lt_exclude_expsyms_RC
19034 # Symbols that must always be exported.
19035 include_expsyms=$lt_include_expsyms_RC
19037 # ### END LIBTOOL TAG CONFIG: $tagname
19043 # If there is no Makefile yet, we rely on a make rule to execute
19044 # `config.status --recheck' to rerun these tests and create the
19045 # libtool script then.
19046 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19047 if test -f "$ltmain_in"; then
19048 test -f Makefile && make "$ltmain"
19054 ac_cpp='$CPP $CPPFLAGS'
19055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19064 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19065 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19066 { (exit 1); exit 1; }; }
19070 # Append the new tag name to the list of available tags.
19071 if test -n "$tagname" ; then
19072 available_tags="$available_tags $tagname"
19078 # Now substitute the updated list of available tags.
19079 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19080 mv "${ofile}T" "$ofile"
19084 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19085 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19086 { (exit 1); exit 1; }; }
19092 # This can be used to rebuild libtool when needed
19093 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19095 # Always use our own libtool.
19096 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19098 # Prevent multiple expansion
19111 # Check whether --with-system-libtool was given.
19112 if test "${with_system_libtool+set}" = set; then
19113 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
19114 set dummy libtool; ac_word=$2
19115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19117 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19118 echo $ECHO_N "(cached) $ECHO_C" >&6
19122 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19126 as_dummy="$PATH:/usr/local/bin"
19127 for as_dir in $as_dummy
19130 test -z "$as_dir" && as_dir=.
19131 for ac_exec_ext in '' $ac_executable_extensions; do
19132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19133 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19144 LIBTOOL=$ac_cv_path_LIBTOOL
19145 if test -n "$LIBTOOL"; then
19146 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19147 echo "${ECHO_T}$LIBTOOL" >&6; }
19149 { echo "$as_me:$LINENO: result: no" >&5
19150 echo "${ECHO_T}no" >&6; }
19156 LIBTOOL="`pwd`/libtool"
19176 # Check whether --enable-strict-dependencies was given.
19177 if test "${enable_strict_dependencies+set}" = set; then
19178 enableval=$enable_strict_dependencies;
19182 docdir='${datadir}/doc/freeradius'
19183 { echo "$as_me:$LINENO: checking docdir" >&5
19184 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
19186 # Check whether --with-docdir was given.
19187 if test "${with_docdir+set}" = set; then
19188 withval=$with_docdir; case "$withval" in
19194 [\\/$]* | ?:[\\/]* )
19198 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19199 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19200 { (exit 1); exit 1; }; }
19207 { echo "$as_me:$LINENO: result: $docdir" >&5
19208 echo "${ECHO_T}$docdir" >&6; }
19209 if test "x$docdir" = xno; then
19210 { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
19211 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19214 logdir='${localstatedir}/log/radius'
19215 { echo "$as_me:$LINENO: checking logdir" >&5
19216 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
19218 # Check whether --with-logdir was given.
19219 if test "${with_logdir+set}" = set; then
19220 withval=$with_logdir; case "$withval" in
19222 { { echo "$as_me:$LINENO: error: Need logdir" >&5
19223 echo "$as_me: error: Need logdir" >&2;}
19224 { (exit 1); exit 1; }; }
19228 [\\/$]* | ?:[\\/]* )
19232 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19233 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19234 { (exit 1); exit 1; }; }
19241 { echo "$as_me:$LINENO: result: $logdir" >&5
19242 echo "${ECHO_T}$logdir" >&6; }
19244 radacctdir='${logdir}/radacct'
19245 { echo "$as_me:$LINENO: checking radacctdir" >&5
19246 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
19248 # Check whether --with-radacctdir was given.
19249 if test "${with_radacctdir+set}" = set; then
19250 withval=$with_radacctdir; case "$withval" in
19252 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19253 echo "$as_me: error: Need radacctdir" >&2;}
19254 { (exit 1); exit 1; }; }
19258 [\\/$]* | ?:[\\/]* )
19259 radacctdir="$withval"
19262 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19263 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19264 { (exit 1); exit 1; }; }
19271 { echo "$as_me:$LINENO: result: $radacctdir" >&5
19272 echo "${ECHO_T}$radacctdir" >&6; }
19274 raddbdir='${sysconfdir}/raddb'
19275 { echo "$as_me:$LINENO: checking raddbdir" >&5
19276 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
19278 # Check whether --with-raddbdir was given.
19279 if test "${with_raddbdir+set}" = set; then
19280 withval=$with_raddbdir; case "$withval" in
19282 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19283 echo "$as_me: error: Need raddbdir" >&2;}
19284 { (exit 1); exit 1; }; }
19288 [\\/$]* | ?:[\\/]* )
19289 raddbdir="$withval"
19292 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19293 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19294 { (exit 1); exit 1; }; }
19301 { echo "$as_me:$LINENO: result: $raddbdir" >&5
19302 echo "${ECHO_T}$raddbdir" >&6; }
19306 # Check whether --with-ascend-binary was given.
19307 if test "${with_ascend_binary+set}" = set; then
19308 withval=$with_ascend_binary; case "$withval" in
19317 if test "X$ASCEND_BINARY" = "Xyes"; then
19318 cat >>confdefs.h <<\_ACEOF
19319 #define ASCEND_BINARY 1
19326 # Check whether --with-threads was given.
19327 if test "${with_threads+set}" = set; then
19328 withval=$with_threads; case "$withval" in
19340 # Check whether --with-snmp was given.
19341 if test "${with_snmp+set}" = set; then
19342 withval=$with_snmp; case "$withval" in
19353 # Check whether --with-snmp-include-dir was given.
19354 if test "${with_snmp_include_dir+set}" = set; then
19355 withval=$with_snmp_include_dir; case "$withval" in
19363 rad_enable_largefiles=no
19365 # Check whether --with-large-files was given.
19366 if test "${with_large_files+set}" = set; then
19367 withval=$with_large_files; case "$withval" in
19369 rad_enable_largefiles=yes
19381 # Check whether --with-static_modules was given.
19382 if test "${with_static_modules+set}" = set; then
19383 withval=$with_static_modules;
19384 for i in $withval; do
19385 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19393 # Check whether --with-modules was given.
19394 if test "${with_modules+set}" = set; then
19395 withval=$with_modules;
19396 for i in $withval; do
19397 MODULES="$MODULES $i"
19403 # Check whether --enable-developer was given.
19404 if test "${enable_developer+set}" = set; then
19405 enableval=$enable_developer; case "$enableval" in
19416 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19422 # Check whether --with-experimental-modules was given.
19423 if test "${with_experimental_modules+set}" = set; then
19424 withval=$with_experimental_modules; case "$withval" in
19434 OPENSSL_INCLUDE_DIR=
19436 # Check whether --with-openssl-includes was given.
19437 if test "${with_openssl_includes+set}" = set; then
19438 withval=$with_openssl_includes; case "$withval" in
19439 *) OPENSSL_INCLUDE_DIR="$withval"
19448 # Check whether --with-openssl-libraries was given.
19449 if test "${with_openssl_libraries+set}" = set; then
19450 withval=$with_openssl_libraries; case "$withval" in
19451 *) OPENSSL_LIB_DIR="$withval"
19460 # Check whether --with-rlm-FOO-lib-dir was given.
19461 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19462 withval=$with_rlm_FOO_lib_dir; case "$withval" in
19471 # Check whether --with-rlm-FOO-include-dir was given.
19472 if test "${with_rlm_FOO_include_dir+set}" = set; then
19473 withval=$with_rlm_FOO_include_dir; case "$withval" in
19484 # Check whether --with-udpfromto was given.
19485 if test "${with_udpfromto+set}" = set; then
19486 withval=$with_udpfromto; case "$withval" in
19497 if test "x$WITH_UDPFROMTO" = "xyes"; then
19498 cat >>confdefs.h <<\_ACEOF
19499 #define WITH_UDPFROMTO 1
19505 # Check whether --with-edir was given.
19506 if test "${with_edir+set}" = set; then
19507 withval=$with_edir;
19512 CHECKRAD=checkrad.pl
19513 # Extract the first word of "perl", so it can be a program name with args.
19514 set dummy perl; ac_word=$2
19515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19517 if test "${ac_cv_path_PERL+set}" = set; then
19518 echo $ECHO_N "(cached) $ECHO_C" >&6
19522 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19526 for as_dir in $PATH
19529 test -z "$as_dir" && as_dir=.
19530 for ac_exec_ext in '' $ac_executable_extensions; do
19531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19532 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19540 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19544 PERL=$ac_cv_path_PERL
19545 if test -n "$PERL"; then
19546 { echo "$as_me:$LINENO: result: $PERL" >&5
19547 echo "${ECHO_T}$PERL" >&6; }
19549 { echo "$as_me:$LINENO: result: no" >&5
19550 echo "${ECHO_T}no" >&6; }
19554 if test "x$ac_cv_path_PERL" = "x"; then
19555 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19556 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19558 # Extract the first word of "snmpget", so it can be a program name with args.
19559 set dummy snmpget; ac_word=$2
19560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19562 if test "${ac_cv_path_SNMPGET+set}" = set; then
19563 echo $ECHO_N "(cached) $ECHO_C" >&6
19567 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19571 for as_dir in $PATH
19574 test -z "$as_dir" && as_dir=.
19575 for ac_exec_ext in '' $ac_executable_extensions; do
19576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19577 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19588 SNMPGET=$ac_cv_path_SNMPGET
19589 if test -n "$SNMPGET"; then
19590 { echo "$as_me:$LINENO: result: $SNMPGET" >&5
19591 echo "${ECHO_T}$SNMPGET" >&6; }
19593 { echo "$as_me:$LINENO: result: no" >&5
19594 echo "${ECHO_T}no" >&6; }
19598 if test "x$ac_cv_path_SNMPGET" = "x"; then
19599 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19600 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19603 # Extract the first word of "snmpwalk", so it can be a program name with args.
19604 set dummy snmpwalk; ac_word=$2
19605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19607 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19608 echo $ECHO_N "(cached) $ECHO_C" >&6
19612 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19616 for as_dir in $PATH
19619 test -z "$as_dir" && as_dir=.
19620 for ac_exec_ext in '' $ac_executable_extensions; do
19621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19622 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19633 SNMPWALK=$ac_cv_path_SNMPWALK
19634 if test -n "$SNMPWALK"; then
19635 { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19636 echo "${ECHO_T}$SNMPWALK" >&6; }
19638 { echo "$as_me:$LINENO: result: no" >&5
19639 echo "${ECHO_T}no" >&6; }
19643 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19644 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19645 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19648 # Extract the first word of "rusers", so it can be a program name with args.
19649 set dummy rusers; ac_word=$2
19650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19652 if test "${ac_cv_path_RUSERS+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
19657 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19661 for as_dir in $PATH
19664 test -z "$as_dir" && as_dir=.
19665 for ac_exec_ext in '' $ac_executable_extensions; do
19666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19667 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19675 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19679 RUSERS=$ac_cv_path_RUSERS
19680 if test -n "$RUSERS"; then
19681 { echo "$as_me:$LINENO: result: $RUSERS" >&5
19682 echo "${ECHO_T}$RUSERS" >&6; }
19684 { echo "$as_me:$LINENO: result: no" >&5
19685 echo "${ECHO_T}no" >&6; }
19690 missing_dir=`cd $ac_aux_dir && pwd`
19691 { echo "$as_me:$LINENO: checking for working aclocal" >&5
19692 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6; }
19693 # Run test in a subshell; some versions of sh will print an error if
19694 # an executable is not found, even if stderr is redirected.
19695 # Redirect stdin to placate older versions of autoconf. Sigh.
19696 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
19698 { echo "$as_me:$LINENO: result: found" >&5
19699 echo "${ECHO_T}found" >&6; }
19701 ACLOCAL="$missing_dir/missing aclocal"
19702 { echo "$as_me:$LINENO: result: missing" >&5
19703 echo "${ECHO_T}missing" >&6; }
19706 { echo "$as_me:$LINENO: checking for working autoconf" >&5
19707 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6; }
19708 # Run test in a subshell; some versions of sh will print an error if
19709 # an executable is not found, even if stderr is redirected.
19710 # Redirect stdin to placate older versions of autoconf. Sigh.
19711 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
19713 { echo "$as_me:$LINENO: result: found" >&5
19714 echo "${ECHO_T}found" >&6; }
19716 AUTOCONF="$missing_dir/missing autoconf"
19717 { echo "$as_me:$LINENO: result: missing" >&5
19718 echo "${ECHO_T}missing" >&6; }
19721 { echo "$as_me:$LINENO: checking for working autoheader" >&5
19722 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6; }
19723 # Run test in a subshell; some versions of sh will print an error if
19724 # an executable is not found, even if stderr is redirected.
19725 # Redirect stdin to placate older versions of autoconf. Sigh.
19726 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
19727 AUTOHEADER=autoheader
19728 { echo "$as_me:$LINENO: result: found" >&5
19729 echo "${ECHO_T}found" >&6; }
19731 AUTOHEADER="$missing_dir/missing autoheader"
19732 { echo "$as_me:$LINENO: result: missing" >&5
19733 echo "${ECHO_T}missing" >&6; }
19737 # Extract the first word of "locate", so it can be a program name with args.
19738 set dummy locate; ac_word=$2
19739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19741 if test "${ac_cv_path_LOCATE+set}" = set; then
19742 echo $ECHO_N "(cached) $ECHO_C" >&6
19746 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19750 for as_dir in $PATH
19753 test -z "$as_dir" && as_dir=.
19754 for ac_exec_ext in '' $ac_executable_extensions; do
19755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19756 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19767 LOCATE=$ac_cv_path_LOCATE
19768 if test -n "$LOCATE"; then
19769 { echo "$as_me:$LINENO: result: $LOCATE" >&5
19770 echo "${ECHO_T}$LOCATE" >&6; }
19772 { echo "$as_me:$LINENO: result: no" >&5
19773 echo "${ECHO_T}no" >&6; }
19777 # Extract the first word of "dirname", so it can be a program name with args.
19778 set dummy dirname; ac_word=$2
19779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19781 if test "${ac_cv_path_DIRNAME+set}" = set; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19786 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19790 for as_dir in $PATH
19793 test -z "$as_dir" && as_dir=.
19794 for ac_exec_ext in '' $ac_executable_extensions; do
19795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19796 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19807 DIRNAME=$ac_cv_path_DIRNAME
19808 if test -n "$DIRNAME"; then
19809 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
19810 echo "${ECHO_T}$DIRNAME" >&6; }
19812 { echo "$as_me:$LINENO: result: no" >&5
19813 echo "${ECHO_T}no" >&6; }
19817 # Extract the first word of "grep", so it can be a program name with args.
19818 set dummy grep; ac_word=$2
19819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19821 if test "${ac_cv_path_GREP+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19826 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19830 for as_dir in $PATH
19833 test -z "$as_dir" && as_dir=.
19834 for ac_exec_ext in '' $ac_executable_extensions; do
19835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19836 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19847 GREP=$ac_cv_path_GREP
19848 if test -n "$GREP"; then
19849 { echo "$as_me:$LINENO: result: $GREP" >&5
19850 echo "${ECHO_T}$GREP" >&6; }
19852 { echo "$as_me:$LINENO: result: no" >&5
19853 echo "${ECHO_T}no" >&6; }
19860 if test "x$WITH_THREADS" = "xyes"; then
19861 if test $ac_cv_prog_suncc = "yes"; then
19862 CFLAGS="$CFLAGS -mt"
19866 for ac_header in pthread.h
19868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
19875 ac_res=`eval echo '${'$as_ac_Header'}'`
19876 { echo "$as_me:$LINENO: result: $ac_res" >&5
19877 echo "${ECHO_T}$ac_res" >&6; }
19879 # Is the header compilable?
19880 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19882 cat >conftest.$ac_ext <<_ACEOF
19885 cat confdefs.h >>conftest.$ac_ext
19886 cat >>conftest.$ac_ext <<_ACEOF
19887 /* end confdefs.h. */
19888 $ac_includes_default
19889 #include <$ac_header>
19891 rm -f conftest.$ac_objext
19892 if { (ac_try="$ac_compile"
19893 case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898 (eval "$ac_compile") 2>conftest.er1
19900 grep -v '^ *+' conftest.er1 >conftest.err
19902 cat conftest.err >&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); } && {
19905 test -z "$ac_c_werror_flag" ||
19906 test ! -s conftest.err
19907 } && test -s conftest.$ac_objext; then
19908 ac_header_compiler=yes
19910 echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19913 ac_header_compiler=no
19916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19918 echo "${ECHO_T}$ac_header_compiler" >&6; }
19920 # Is the header present?
19921 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19923 cat >conftest.$ac_ext <<_ACEOF
19926 cat confdefs.h >>conftest.$ac_ext
19927 cat >>conftest.$ac_ext <<_ACEOF
19928 /* end confdefs.h. */
19929 #include <$ac_header>
19931 if { (ac_try="$ac_cpp conftest.$ac_ext"
19932 case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19939 grep -v '^ *+' conftest.er1 >conftest.err
19941 cat conftest.err >&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } >/dev/null && {
19944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19945 test ! -s conftest.err
19947 ac_header_preproc=yes
19949 echo "$as_me: failed program was:" >&5
19950 sed 's/^/| /' conftest.$ac_ext >&5
19952 ac_header_preproc=no
19955 rm -f conftest.err conftest.$ac_ext
19956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19957 echo "${ECHO_T}$ac_header_preproc" >&6; }
19959 # So? What about this header?
19960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19966 ac_header_preproc=yes
19969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19972 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19976 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19987 echo $ECHO_N "(cached) $ECHO_C" >&6
19989 eval "$as_ac_Header=\$ac_header_preproc"
19991 ac_res=`eval echo '${'$as_ac_Header'}'`
19992 { echo "$as_me:$LINENO: result: $ac_res" >&5
19993 echo "${ECHO_T}$ac_res" >&6; }
19996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19997 cat >>confdefs.h <<_ACEOF
19998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20008 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20009 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20010 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20011 echo $ECHO_N "(cached) $ECHO_C" >&6
20013 ac_check_lib_save_LIBS=$LIBS
20014 LIBS="-lpthread $LIBS"
20015 cat >conftest.$ac_ext <<_ACEOF
20018 cat confdefs.h >>conftest.$ac_ext
20019 cat >>conftest.$ac_ext <<_ACEOF
20020 /* end confdefs.h. */
20022 /* Override any GCC internal prototype to avoid an error.
20023 Use char because int might match the return type of a GCC
20024 builtin and then its argument prototype would still apply. */
20028 char pthread_create ();
20032 return pthread_create ();
20037 rm -f conftest.$ac_objext conftest$ac_exeext
20038 if { (ac_try="$ac_link"
20039 case "(($ac_try" in
20040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20041 *) ac_try_echo=$ac_try;;
20043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20044 (eval "$ac_link") 2>conftest.er1
20046 grep -v '^ *+' conftest.er1 >conftest.err
20048 cat conftest.err >&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); } && {
20051 test -z "$ac_c_werror_flag" ||
20052 test ! -s conftest.err
20053 } && test -s conftest$ac_exeext &&
20054 $as_test_x conftest$ac_exeext; then
20055 ac_cv_lib_pthread_pthread_create=yes
20057 echo "$as_me: failed program was:" >&5
20058 sed 's/^/| /' conftest.$ac_ext >&5
20060 ac_cv_lib_pthread_pthread_create=no
20063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20064 conftest$ac_exeext conftest.$ac_ext
20065 LIBS=$ac_check_lib_save_LIBS
20067 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20068 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20069 if test $ac_cv_lib_pthread_pthread_create = yes; then
20070 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20071 LIBS="$LIBS -lpthread"
20073 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20074 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20075 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20078 ac_check_lib_save_LIBS=$LIBS
20080 cat >conftest.$ac_ext <<_ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20087 /* Override any GCC internal prototype to avoid an error.
20088 Use char because int might match the return type of a GCC
20089 builtin and then its argument prototype would still apply. */
20093 char pthread_create ();
20097 return pthread_create ();
20102 rm -f conftest.$ac_objext conftest$ac_exeext
20103 if { (ac_try="$ac_link"
20104 case "(($ac_try" in
20105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106 *) ac_try_echo=$ac_try;;
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109 (eval "$ac_link") 2>conftest.er1
20111 grep -v '^ *+' conftest.er1 >conftest.err
20113 cat conftest.err >&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); } && {
20116 test -z "$ac_c_werror_flag" ||
20117 test ! -s conftest.err
20118 } && test -s conftest$ac_exeext &&
20119 $as_test_x conftest$ac_exeext; then
20120 ac_cv_lib_c_r_pthread_create=yes
20122 echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20125 ac_cv_lib_c_r_pthread_create=no
20128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20129 conftest$ac_exeext conftest.$ac_ext
20130 LIBS=$ac_check_lib_save_LIBS
20132 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20133 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20134 if test $ac_cv_lib_c_r_pthread_create = yes; then
20135 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20146 if test "x$WITH_THREADS" != "xyes"; then
20148 ac_cv_header_pthread_h="no"
20152 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20153 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20154 if test "${ac_cv_search_sem_init+set}" = set; then
20155 echo $ECHO_N "(cached) $ECHO_C" >&6
20157 ac_func_search_save_LIBS=$LIBS
20158 cat >conftest.$ac_ext <<_ACEOF
20161 cat confdefs.h >>conftest.$ac_ext
20162 cat >>conftest.$ac_ext <<_ACEOF
20163 /* end confdefs.h. */
20165 /* Override any GCC internal prototype to avoid an error.
20166 Use char because int might match the return type of a GCC
20167 builtin and then its argument prototype would still apply. */
20175 return sem_init ();
20180 for ac_lib in '' pthread sem posix4 rt; do
20181 if test -z "$ac_lib"; then
20182 ac_res="none required"
20185 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20187 rm -f conftest.$ac_objext conftest$ac_exeext
20188 if { (ac_try="$ac_link"
20189 case "(($ac_try" in
20190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20191 *) ac_try_echo=$ac_try;;
20193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20194 (eval "$ac_link") 2>conftest.er1
20196 grep -v '^ *+' conftest.er1 >conftest.err
20198 cat conftest.err >&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } && {
20201 test -z "$ac_c_werror_flag" ||
20202 test ! -s conftest.err
20203 } && test -s conftest$ac_exeext &&
20204 $as_test_x conftest$ac_exeext; then
20205 ac_cv_search_sem_init=$ac_res
20207 echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20215 if test "${ac_cv_search_sem_init+set}" = set; then
20219 if test "${ac_cv_search_sem_init+set}" = set; then
20222 ac_cv_search_sem_init=no
20224 rm conftest.$ac_ext
20225 LIBS=$ac_func_search_save_LIBS
20227 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20228 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20229 ac_res=$ac_cv_search_sem_init
20230 if test "$ac_res" != no; then
20231 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20234 { { 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
20235 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;}
20236 { (exit 1); exit 1; }; }
20243 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20244 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20245 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20246 echo $ECHO_N "(cached) $ECHO_C" >&6
20248 ac_check_lib_save_LIBS=$LIBS
20249 LIBS="-lsocket $LIBS"
20250 cat >conftest.$ac_ext <<_ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20257 /* Override any GCC internal prototype to avoid an error.
20258 Use char because int might match the return type of a GCC
20259 builtin and then its argument prototype would still apply. */
20263 char getsockname ();
20267 return getsockname ();
20272 rm -f conftest.$ac_objext conftest$ac_exeext
20273 if { (ac_try="$ac_link"
20274 case "(($ac_try" in
20275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276 *) ac_try_echo=$ac_try;;
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279 (eval "$ac_link") 2>conftest.er1
20281 grep -v '^ *+' conftest.er1 >conftest.err
20283 cat conftest.err >&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); } && {
20286 test -z "$ac_c_werror_flag" ||
20287 test ! -s conftest.err
20288 } && test -s conftest$ac_exeext &&
20289 $as_test_x conftest$ac_exeext; then
20290 ac_cv_lib_socket_getsockname=yes
20292 echo "$as_me: failed program was:" >&5
20293 sed 's/^/| /' conftest.$ac_ext >&5
20295 ac_cv_lib_socket_getsockname=no
20298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20299 conftest$ac_exeext conftest.$ac_ext
20300 LIBS=$ac_check_lib_save_LIBS
20302 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20303 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20304 if test $ac_cv_lib_socket_getsockname = yes; then
20305 cat >>confdefs.h <<_ACEOF
20306 #define HAVE_LIBSOCKET 1
20309 LIBS="-lsocket $LIBS"
20315 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20316 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20317 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
20320 ac_check_lib_save_LIBS=$LIBS
20321 LIBS="-lresolv $LIBS"
20322 cat >conftest.$ac_ext <<_ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h. */
20329 /* Override any GCC internal prototype to avoid an error.
20330 Use char because int might match the return type of a GCC
20331 builtin and then its argument prototype would still apply. */
20339 return inet_aton ();
20344 rm -f conftest.$ac_objext conftest$ac_exeext
20345 if { (ac_try="$ac_link"
20346 case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_link") 2>conftest.er1
20353 grep -v '^ *+' conftest.er1 >conftest.err
20355 cat conftest.err >&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } && {
20358 test -z "$ac_c_werror_flag" ||
20359 test ! -s conftest.err
20360 } && test -s conftest$ac_exeext &&
20361 $as_test_x conftest$ac_exeext; then
20362 ac_cv_lib_resolv_inet_aton=yes
20364 echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20367 ac_cv_lib_resolv_inet_aton=no
20370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20371 conftest$ac_exeext conftest.$ac_ext
20372 LIBS=$ac_check_lib_save_LIBS
20374 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20375 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20376 if test $ac_cv_lib_resolv_inet_aton = yes; then
20377 cat >>confdefs.h <<_ACEOF
20378 #define HAVE_LIBRESOLV 1
20381 LIBS="-lresolv $LIBS"
20387 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20388 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
20389 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20392 ac_check_lib_save_LIBS=$LIBS
20394 cat >conftest.$ac_ext <<_ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20401 /* Override any GCC internal prototype to avoid an error.
20402 Use char because int might match the return type of a GCC
20403 builtin and then its argument prototype would still apply. */
20411 return inet_ntoa ();
20416 rm -f conftest.$ac_objext conftest$ac_exeext
20417 if { (ac_try="$ac_link"
20418 case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_link") 2>conftest.er1
20425 grep -v '^ *+' conftest.er1 >conftest.err
20427 cat conftest.err >&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } && {
20430 test -z "$ac_c_werror_flag" ||
20431 test ! -s conftest.err
20432 } && test -s conftest$ac_exeext &&
20433 $as_test_x conftest$ac_exeext; then
20434 ac_cv_lib_nsl_inet_ntoa=yes
20436 echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20439 ac_cv_lib_nsl_inet_ntoa=no
20442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20443 conftest$ac_exeext conftest.$ac_ext
20444 LIBS=$ac_check_lib_save_LIBS
20446 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20447 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
20448 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20449 cat >>confdefs.h <<_ACEOF
20450 #define HAVE_LIBNSL 1
20460 if test "x$OPENSSL_LIB_DIR" != "x"; then
20461 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20463 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20464 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
20465 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20468 ac_check_lib_save_LIBS=$LIBS
20469 LIBS="-lcrypto $LIBS"
20470 cat >conftest.$ac_ext <<_ACEOF
20473 cat confdefs.h >>conftest.$ac_ext
20474 cat >>conftest.$ac_ext <<_ACEOF
20475 /* end confdefs.h. */
20477 /* Override any GCC internal prototype to avoid an error.
20478 Use char because int might match the return type of a GCC
20479 builtin and then its argument prototype would still apply. */
20492 rm -f conftest.$ac_objext conftest$ac_exeext
20493 if { (ac_try="$ac_link"
20494 case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_link") 2>conftest.er1
20501 grep -v '^ *+' conftest.er1 >conftest.err
20503 cat conftest.err >&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } && {
20506 test -z "$ac_c_werror_flag" ||
20507 test ! -s conftest.err
20508 } && test -s conftest$ac_exeext &&
20509 $as_test_x conftest$ac_exeext; then
20510 ac_cv_lib_crypto_DH_new=yes
20512 echo "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.$ac_ext >&5
20515 ac_cv_lib_crypto_DH_new=no
20518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20519 conftest$ac_exeext conftest.$ac_ext
20520 LIBS=$ac_check_lib_save_LIBS
20522 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20523 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
20524 if test $ac_cv_lib_crypto_DH_new = yes; then
20527 cat >>confdefs.h <<\_ACEOF
20528 #define HAVE_LIBCRYPTO 1
20531 { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20532 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
20533 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20536 ac_check_lib_save_LIBS=$LIBS
20538 cat >conftest.$ac_ext <<_ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h. */
20545 /* Override any GCC internal prototype to avoid an error.
20546 Use char because int might match the return type of a GCC
20547 builtin and then its argument prototype would still apply. */
20560 rm -f conftest.$ac_objext conftest$ac_exeext
20561 if { (ac_try="$ac_link"
20562 case "(($ac_try" in
20563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564 *) ac_try_echo=$ac_try;;
20566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20567 (eval "$ac_link") 2>conftest.er1
20569 grep -v '^ *+' conftest.er1 >conftest.err
20571 cat conftest.err >&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); } && {
20574 test -z "$ac_c_werror_flag" ||
20575 test ! -s conftest.err
20576 } && test -s conftest$ac_exeext &&
20577 $as_test_x conftest$ac_exeext; then
20578 ac_cv_lib_ssl_SSL_new=yes
20580 echo "$as_me: failed program was:" >&5
20581 sed 's/^/| /' conftest.$ac_ext >&5
20583 ac_cv_lib_ssl_SSL_new=no
20586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20587 conftest$ac_exeext conftest.$ac_ext
20588 LIBS=$ac_check_lib_save_LIBS
20590 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20591 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
20592 if test $ac_cv_lib_ssl_SSL_new = yes; then
20595 cat >>confdefs.h <<\_ACEOF
20596 #define HAVE_LIBSSL 1
20599 if test "x$OPENSSL_LIB_DIR" != "x"; then
20600 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20602 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20614 CFLAGS="$CFLAGS -D_ALL_SOURCE"
20617 CFLAGS="$CFLAGS -DDARWIN"
20626 ac_header_dirent=no
20627 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20628 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20629 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20630 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20632 echo $ECHO_N "(cached) $ECHO_C" >&6
20634 cat >conftest.$ac_ext <<_ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20640 #include <sys/types.h>
20652 rm -f conftest.$ac_objext
20653 if { (ac_try="$ac_compile"
20654 case "(($ac_try" in
20655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656 *) ac_try_echo=$ac_try;;
20658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659 (eval "$ac_compile") 2>conftest.er1
20661 grep -v '^ *+' conftest.er1 >conftest.err
20663 cat conftest.err >&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); } && {
20666 test -z "$ac_c_werror_flag" ||
20667 test ! -s conftest.err
20668 } && test -s conftest.$ac_objext; then
20669 eval "$as_ac_Header=yes"
20671 echo "$as_me: failed program was:" >&5
20672 sed 's/^/| /' conftest.$ac_ext >&5
20674 eval "$as_ac_Header=no"
20677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20679 ac_res=`eval echo '${'$as_ac_Header'}'`
20680 { echo "$as_me:$LINENO: result: $ac_res" >&5
20681 echo "${ECHO_T}$ac_res" >&6; }
20682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20683 cat >>confdefs.h <<_ACEOF
20684 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20687 ac_header_dirent=$ac_hdr; break
20691 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20692 if test $ac_header_dirent = dirent.h; then
20693 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20694 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20695 if test "${ac_cv_search_opendir+set}" = set; then
20696 echo $ECHO_N "(cached) $ECHO_C" >&6
20698 ac_func_search_save_LIBS=$LIBS
20699 cat >conftest.$ac_ext <<_ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h. */
20706 /* Override any GCC internal prototype to avoid an error.
20707 Use char because int might match the return type of a GCC
20708 builtin and then its argument prototype would still apply. */
20721 for ac_lib in '' dir; do
20722 if test -z "$ac_lib"; then
20723 ac_res="none required"
20726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20728 rm -f conftest.$ac_objext conftest$ac_exeext
20729 if { (ac_try="$ac_link"
20730 case "(($ac_try" in
20731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732 *) ac_try_echo=$ac_try;;
20734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735 (eval "$ac_link") 2>conftest.er1
20737 grep -v '^ *+' conftest.er1 >conftest.err
20739 cat conftest.err >&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); } && {
20742 test -z "$ac_c_werror_flag" ||
20743 test ! -s conftest.err
20744 } && test -s conftest$ac_exeext &&
20745 $as_test_x conftest$ac_exeext; then
20746 ac_cv_search_opendir=$ac_res
20748 echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20756 if test "${ac_cv_search_opendir+set}" = set; then
20760 if test "${ac_cv_search_opendir+set}" = set; then
20763 ac_cv_search_opendir=no
20765 rm conftest.$ac_ext
20766 LIBS=$ac_func_search_save_LIBS
20768 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20769 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20770 ac_res=$ac_cv_search_opendir
20771 if test "$ac_res" != no; then
20772 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20777 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20778 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20779 if test "${ac_cv_search_opendir+set}" = set; then
20780 echo $ECHO_N "(cached) $ECHO_C" >&6
20782 ac_func_search_save_LIBS=$LIBS
20783 cat >conftest.$ac_ext <<_ACEOF
20786 cat confdefs.h >>conftest.$ac_ext
20787 cat >>conftest.$ac_ext <<_ACEOF
20788 /* end confdefs.h. */
20790 /* Override any GCC internal prototype to avoid an error.
20791 Use char because int might match the return type of a GCC
20792 builtin and then its argument prototype would still apply. */
20805 for ac_lib in '' x; do
20806 if test -z "$ac_lib"; then
20807 ac_res="none required"
20810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20812 rm -f conftest.$ac_objext conftest$ac_exeext
20813 if { (ac_try="$ac_link"
20814 case "(($ac_try" in
20815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20816 *) ac_try_echo=$ac_try;;
20818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20819 (eval "$ac_link") 2>conftest.er1
20821 grep -v '^ *+' conftest.er1 >conftest.err
20823 cat conftest.err >&5
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); } && {
20826 test -z "$ac_c_werror_flag" ||
20827 test ! -s conftest.err
20828 } && test -s conftest$ac_exeext &&
20829 $as_test_x conftest$ac_exeext; then
20830 ac_cv_search_opendir=$ac_res
20832 echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20840 if test "${ac_cv_search_opendir+set}" = set; then
20844 if test "${ac_cv_search_opendir+set}" = set; then
20847 ac_cv_search_opendir=no
20849 rm conftest.$ac_ext
20850 LIBS=$ac_func_search_save_LIBS
20852 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20853 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20854 ac_res=$ac_cv_search_opendir
20855 if test "$ac_res" != no; then
20856 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20862 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20863 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20864 if test "${ac_cv_header_stdc+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20867 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 #include <stdlib.h>
20874 #include <stdarg.h>
20875 #include <string.h>
20886 rm -f conftest.$ac_objext
20887 if { (ac_try="$ac_compile"
20888 case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_compile") 2>conftest.er1
20895 grep -v '^ *+' conftest.er1 >conftest.err
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } && {
20900 test -z "$ac_c_werror_flag" ||
20901 test ! -s conftest.err
20902 } && test -s conftest.$ac_objext; then
20903 ac_cv_header_stdc=yes
20905 echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20908 ac_cv_header_stdc=no
20911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20913 if test $ac_cv_header_stdc = yes; then
20914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20915 cat >conftest.$ac_ext <<_ACEOF
20918 cat confdefs.h >>conftest.$ac_ext
20919 cat >>conftest.$ac_ext <<_ACEOF
20920 /* end confdefs.h. */
20921 #include <string.h>
20924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20925 $EGREP "memchr" >/dev/null 2>&1; then
20928 ac_cv_header_stdc=no
20934 if test $ac_cv_header_stdc = yes; then
20935 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20936 cat >conftest.$ac_ext <<_ACEOF
20939 cat confdefs.h >>conftest.$ac_ext
20940 cat >>conftest.$ac_ext <<_ACEOF
20941 /* end confdefs.h. */
20942 #include <stdlib.h>
20945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20946 $EGREP "free" >/dev/null 2>&1; then
20949 ac_cv_header_stdc=no
20955 if test $ac_cv_header_stdc = yes; then
20956 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20957 if test "$cross_compiling" = yes; then
20960 cat >conftest.$ac_ext <<_ACEOF
20963 cat confdefs.h >>conftest.$ac_ext
20964 cat >>conftest.$ac_ext <<_ACEOF
20965 /* end confdefs.h. */
20967 #include <stdlib.h>
20968 #if ((' ' & 0x0FF) == 0x020)
20969 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20970 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20972 # define ISLOWER(c) \
20973 (('a' <= (c) && (c) <= 'i') \
20974 || ('j' <= (c) && (c) <= 'r') \
20975 || ('s' <= (c) && (c) <= 'z'))
20976 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20979 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20984 for (i = 0; i < 256; i++)
20985 if (XOR (islower (i), ISLOWER (i))
20986 || toupper (i) != TOUPPER (i))
20991 rm -f conftest$ac_exeext
20992 if { (ac_try="$ac_link"
20993 case "(($ac_try" in
20994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20995 *) ac_try_echo=$ac_try;;
20997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20998 (eval "$ac_link") 2>&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21002 { (case "(($ac_try" in
21003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21004 *) ac_try_echo=$ac_try;;
21006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21007 (eval "$ac_try") 2>&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; }; then
21013 echo "$as_me: program exited with status $ac_status" >&5
21014 echo "$as_me: failed program was:" >&5
21015 sed 's/^/| /' conftest.$ac_ext >&5
21017 ( exit $ac_status )
21018 ac_cv_header_stdc=no
21020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21026 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21027 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21028 if test $ac_cv_header_stdc = yes; then
21030 cat >>confdefs.h <<\_ACEOF
21031 #define STDC_HEADERS 1
21036 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21037 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21038 if test "${ac_cv_header_time+set}" = set; then
21039 echo $ECHO_N "(cached) $ECHO_C" >&6
21041 cat >conftest.$ac_ext <<_ACEOF
21044 cat confdefs.h >>conftest.$ac_ext
21045 cat >>conftest.$ac_ext <<_ACEOF
21046 /* end confdefs.h. */
21047 #include <sys/types.h>
21048 #include <sys/time.h>
21054 if ((struct tm *) 0)
21060 rm -f conftest.$ac_objext
21061 if { (ac_try="$ac_compile"
21062 case "(($ac_try" in
21063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064 *) ac_try_echo=$ac_try;;
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_compile") 2>conftest.er1
21069 grep -v '^ *+' conftest.er1 >conftest.err
21071 cat conftest.err >&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } && {
21074 test -z "$ac_c_werror_flag" ||
21075 test ! -s conftest.err
21076 } && test -s conftest.$ac_objext; then
21077 ac_cv_header_time=yes
21079 echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.$ac_ext >&5
21082 ac_cv_header_time=no
21085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21087 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21088 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21089 if test $ac_cv_header_time = yes; then
21091 cat >>confdefs.h <<\_ACEOF
21092 #define TIME_WITH_SYS_TIME 1
21097 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21098 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21099 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21100 echo $ECHO_N "(cached) $ECHO_C" >&6
21102 cat >conftest.$ac_ext <<_ACEOF
21105 cat confdefs.h >>conftest.$ac_ext
21106 cat >>conftest.$ac_ext <<_ACEOF
21107 /* end confdefs.h. */
21108 #include <sys/types.h>
21109 #include <sys/wait.h>
21110 #ifndef WEXITSTATUS
21111 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21114 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21122 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21127 rm -f conftest.$ac_objext
21128 if { (ac_try="$ac_compile"
21129 case "(($ac_try" in
21130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21131 *) ac_try_echo=$ac_try;;
21133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21134 (eval "$ac_compile") 2>conftest.er1
21136 grep -v '^ *+' conftest.er1 >conftest.err
21138 cat conftest.err >&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); } && {
21141 test -z "$ac_c_werror_flag" ||
21142 test ! -s conftest.err
21143 } && test -s conftest.$ac_objext; then
21144 ac_cv_header_sys_wait_h=yes
21146 echo "$as_me: failed program was:" >&5
21147 sed 's/^/| /' conftest.$ac_ext >&5
21149 ac_cv_header_sys_wait_h=no
21152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21154 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21155 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21156 if test $ac_cv_header_sys_wait_h = yes; then
21158 cat >>confdefs.h <<\_ACEOF
21159 #define HAVE_SYS_WAIT_H 1
21228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21233 echo $ECHO_N "(cached) $ECHO_C" >&6
21235 ac_res=`eval echo '${'$as_ac_Header'}'`
21236 { echo "$as_me:$LINENO: result: $ac_res" >&5
21237 echo "${ECHO_T}$ac_res" >&6; }
21239 # Is the header compilable?
21240 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21242 cat >conftest.$ac_ext <<_ACEOF
21245 cat confdefs.h >>conftest.$ac_ext
21246 cat >>conftest.$ac_ext <<_ACEOF
21247 /* end confdefs.h. */
21248 $ac_includes_default
21249 #include <$ac_header>
21251 rm -f conftest.$ac_objext
21252 if { (ac_try="$ac_compile"
21253 case "(($ac_try" in
21254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255 *) ac_try_echo=$ac_try;;
21257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21258 (eval "$ac_compile") 2>conftest.er1
21260 grep -v '^ *+' conftest.er1 >conftest.err
21262 cat conftest.err >&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } && {
21265 test -z "$ac_c_werror_flag" ||
21266 test ! -s conftest.err
21267 } && test -s conftest.$ac_objext; then
21268 ac_header_compiler=yes
21270 echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21273 ac_header_compiler=no
21276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21278 echo "${ECHO_T}$ac_header_compiler" >&6; }
21280 # Is the header present?
21281 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21283 cat >conftest.$ac_ext <<_ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289 #include <$ac_header>
21291 if { (ac_try="$ac_cpp conftest.$ac_ext"
21292 case "(($ac_try" in
21293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21294 *) ac_try_echo=$ac_try;;
21296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21299 grep -v '^ *+' conftest.er1 >conftest.err
21301 cat conftest.err >&5
21302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); } >/dev/null && {
21304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21305 test ! -s conftest.err
21307 ac_header_preproc=yes
21309 echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21312 ac_header_preproc=no
21315 rm -f conftest.err conftest.$ac_ext
21316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21317 echo "${ECHO_T}$ac_header_preproc" >&6; }
21319 # So? What about this header?
21320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21326 ac_header_preproc=yes
21329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21347 echo $ECHO_N "(cached) $ECHO_C" >&6
21349 eval "$as_ac_Header=\$ac_header_preproc"
21351 ac_res=`eval echo '${'$as_ac_Header'}'`
21352 { echo "$as_me:$LINENO: result: $ac_res" >&5
21353 echo "${ECHO_T}$ac_res" >&6; }
21356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21357 cat >>confdefs.h <<_ACEOF
21358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21367 if test "${ac_cv_header_regex_h+set}" = set; then
21368 { echo "$as_me:$LINENO: checking for regex.h" >&5
21369 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21370 if test "${ac_cv_header_regex_h+set}" = set; then
21371 echo $ECHO_N "(cached) $ECHO_C" >&6
21373 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21374 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21376 # Is the header compilable?
21377 { echo "$as_me:$LINENO: checking regex.h usability" >&5
21378 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
21379 cat >conftest.$ac_ext <<_ACEOF
21382 cat confdefs.h >>conftest.$ac_ext
21383 cat >>conftest.$ac_ext <<_ACEOF
21384 /* end confdefs.h. */
21385 $ac_includes_default
21388 rm -f conftest.$ac_objext
21389 if { (ac_try="$ac_compile"
21390 case "(($ac_try" in
21391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21392 *) ac_try_echo=$ac_try;;
21394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21395 (eval "$ac_compile") 2>conftest.er1
21397 grep -v '^ *+' conftest.er1 >conftest.err
21399 cat conftest.err >&5
21400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); } && {
21402 test -z "$ac_c_werror_flag" ||
21403 test ! -s conftest.err
21404 } && test -s conftest.$ac_objext; then
21405 ac_header_compiler=yes
21407 echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21410 ac_header_compiler=no
21413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21415 echo "${ECHO_T}$ac_header_compiler" >&6; }
21417 # Is the header present?
21418 { echo "$as_me:$LINENO: checking regex.h presence" >&5
21419 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
21420 cat >conftest.$ac_ext <<_ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h. */
21428 if { (ac_try="$ac_cpp conftest.$ac_ext"
21429 case "(($ac_try" in
21430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21431 *) ac_try_echo=$ac_try;;
21433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21436 grep -v '^ *+' conftest.er1 >conftest.err
21438 cat conftest.err >&5
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } >/dev/null && {
21441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21442 test ! -s conftest.err
21444 ac_header_preproc=yes
21446 echo "$as_me: failed program was:" >&5
21447 sed 's/^/| /' conftest.$ac_ext >&5
21449 ac_header_preproc=no
21452 rm -f conftest.err conftest.$ac_ext
21453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21454 echo "${ECHO_T}$ac_header_preproc" >&6; }
21456 # So? What about this header?
21457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21459 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21460 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21461 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21462 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21463 ac_header_preproc=yes
21466 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21467 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
21468 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
21469 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
21470 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21471 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21472 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
21473 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
21474 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21475 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
21476 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21477 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
21481 { echo "$as_me:$LINENO: checking for regex.h" >&5
21482 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21483 if test "${ac_cv_header_regex_h+set}" = set; then
21484 echo $ECHO_N "(cached) $ECHO_C" >&6
21486 ac_cv_header_regex_h=$ac_header_preproc
21488 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21489 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21492 if test $ac_cv_header_regex_h = yes; then
21493 cat >>confdefs.h <<\_ACEOF
21494 #define HAVE_REGEX_H 1
21500 if test "x$ac_cv_header_regex_h" = "xyes"; then
21503 cat >conftest.$ac_ext <<_ACEOF
21506 cat confdefs.h >>conftest.$ac_ext
21507 cat >>conftest.$ac_ext <<_ACEOF
21508 /* end confdefs.h. */
21510 #ifdef REG_EXTENDED
21515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21516 $EGREP "yes" >/dev/null 2>&1; then
21517 cat >>confdefs.h <<\_ACEOF
21518 #define HAVE_REG_EXTENDED 1
21528 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21530 cat >>confdefs.h <<\_ACEOF
21536 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21538 cat >>confdefs.h <<\_ACEOF
21544 OPENSSL_INCLUDE="-DNO_OPENSSL"
21545 if test "x$OPENSSL_LIBS" = "x"; then
21546 { echo "$as_me:$LINENO: WARNING: skipping test for openssl/ssl.h" >&5
21547 echo "$as_me: WARNING: skipping test for openssl/ssl.h" >&2;}
21549 old_CPPFLAGS=$CPPFLAGS
21550 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21551 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21553 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21569 echo $ECHO_N "(cached) $ECHO_C" >&6
21571 ac_res=`eval echo '${'$as_ac_Header'}'`
21572 { echo "$as_me:$LINENO: result: $ac_res" >&5
21573 echo "${ECHO_T}$ac_res" >&6; }
21575 # Is the header compilable?
21576 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21578 cat >conftest.$ac_ext <<_ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h. */
21584 $ac_includes_default
21585 #include <$ac_header>
21587 rm -f conftest.$ac_objext
21588 if { (ac_try="$ac_compile"
21589 case "(($ac_try" in
21590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21591 *) ac_try_echo=$ac_try;;
21593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21594 (eval "$ac_compile") 2>conftest.er1
21596 grep -v '^ *+' conftest.er1 >conftest.err
21598 cat conftest.err >&5
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); } && {
21601 test -z "$ac_c_werror_flag" ||
21602 test ! -s conftest.err
21603 } && test -s conftest.$ac_objext; then
21604 ac_header_compiler=yes
21606 echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21609 ac_header_compiler=no
21612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21613 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21614 echo "${ECHO_T}$ac_header_compiler" >&6; }
21616 # Is the header present?
21617 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21619 cat >conftest.$ac_ext <<_ACEOF
21622 cat confdefs.h >>conftest.$ac_ext
21623 cat >>conftest.$ac_ext <<_ACEOF
21624 /* end confdefs.h. */
21625 #include <$ac_header>
21627 if { (ac_try="$ac_cpp conftest.$ac_ext"
21628 case "(($ac_try" in
21629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21630 *) ac_try_echo=$ac_try;;
21632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21635 grep -v '^ *+' conftest.er1 >conftest.err
21637 cat conftest.err >&5
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); } >/dev/null && {
21640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21641 test ! -s conftest.err
21643 ac_header_preproc=yes
21645 echo "$as_me: failed program was:" >&5
21646 sed 's/^/| /' conftest.$ac_ext >&5
21648 ac_header_preproc=no
21651 rm -f conftest.err conftest.$ac_ext
21652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21653 echo "${ECHO_T}$ac_header_preproc" >&6; }
21655 # So? What about this header?
21656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21662 ac_header_preproc=yes
21665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21683 echo $ECHO_N "(cached) $ECHO_C" >&6
21685 eval "$as_ac_Header=\$ac_header_preproc"
21687 ac_res=`eval echo '${'$as_ac_Header'}'`
21688 { echo "$as_me:$LINENO: result: $ac_res" >&5
21689 echo "${ECHO_T}$ac_res" >&6; }
21692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21693 cat >>confdefs.h <<_ACEOF
21694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21704 if test "x$OPENSSL_LIBS" != "x"; then
21705 { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
21706 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
21707 cat >conftest.$ac_ext <<_ACEOF
21710 cat confdefs.h >>conftest.$ac_ext
21711 cat >>conftest.$ac_ext <<_ACEOF
21712 /* end confdefs.h. */
21713 #include <openssl/crypto.h>
21714 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21720 $EGREP "yes" >/dev/null 2>&1; then
21725 if test "x$goodssl" != "xyes"; then
21726 { echo "$as_me:$LINENO: result: no" >&5
21727 echo "${ECHO_T}no" >&6; }
21730 { echo "$as_me:$LINENO: result: yes" >&5
21731 echo "${ECHO_T}yes" >&6; }
21732 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21733 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21735 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21739 CPPFLAGS=$old_CPPFLAGS
21743 export OPENSSL_LIBS
21746 { echo "$as_me:$LINENO: checking for off_t" >&5
21747 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21748 if test "${ac_cv_type_off_t+set}" = set; then
21749 echo $ECHO_N "(cached) $ECHO_C" >&6
21751 cat >conftest.$ac_ext <<_ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h. */
21757 $ac_includes_default
21758 typedef off_t ac__type_new_;
21762 if ((ac__type_new_ *) 0)
21764 if (sizeof (ac__type_new_))
21770 rm -f conftest.$ac_objext
21771 if { (ac_try="$ac_compile"
21772 case "(($ac_try" in
21773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21774 *) ac_try_echo=$ac_try;;
21776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21777 (eval "$ac_compile") 2>conftest.er1
21779 grep -v '^ *+' conftest.er1 >conftest.err
21781 cat conftest.err >&5
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); } && {
21784 test -z "$ac_c_werror_flag" ||
21785 test ! -s conftest.err
21786 } && test -s conftest.$ac_objext; then
21787 ac_cv_type_off_t=yes
21789 echo "$as_me: failed program was:" >&5
21790 sed 's/^/| /' conftest.$ac_ext >&5
21792 ac_cv_type_off_t=no
21795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21797 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21798 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21799 if test $ac_cv_type_off_t = yes; then
21803 cat >>confdefs.h <<_ACEOF
21804 #define off_t long int
21809 { echo "$as_me:$LINENO: checking for pid_t" >&5
21810 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21811 if test "${ac_cv_type_pid_t+set}" = set; then
21812 echo $ECHO_N "(cached) $ECHO_C" >&6
21814 cat >conftest.$ac_ext <<_ACEOF
21817 cat confdefs.h >>conftest.$ac_ext
21818 cat >>conftest.$ac_ext <<_ACEOF
21819 /* end confdefs.h. */
21820 $ac_includes_default
21821 typedef pid_t ac__type_new_;
21825 if ((ac__type_new_ *) 0)
21827 if (sizeof (ac__type_new_))
21833 rm -f conftest.$ac_objext
21834 if { (ac_try="$ac_compile"
21835 case "(($ac_try" in
21836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837 *) ac_try_echo=$ac_try;;
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840 (eval "$ac_compile") 2>conftest.er1
21842 grep -v '^ *+' conftest.er1 >conftest.err
21844 cat conftest.err >&5
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } && {
21847 test -z "$ac_c_werror_flag" ||
21848 test ! -s conftest.err
21849 } && test -s conftest.$ac_objext; then
21850 ac_cv_type_pid_t=yes
21852 echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21855 ac_cv_type_pid_t=no
21858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21860 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21861 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21862 if test $ac_cv_type_pid_t = yes; then
21866 cat >>confdefs.h <<_ACEOF
21872 { echo "$as_me:$LINENO: checking for size_t" >&5
21873 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21874 if test "${ac_cv_type_size_t+set}" = set; then
21875 echo $ECHO_N "(cached) $ECHO_C" >&6
21877 cat >conftest.$ac_ext <<_ACEOF
21880 cat confdefs.h >>conftest.$ac_ext
21881 cat >>conftest.$ac_ext <<_ACEOF
21882 /* end confdefs.h. */
21883 $ac_includes_default
21884 typedef size_t ac__type_new_;
21888 if ((ac__type_new_ *) 0)
21890 if (sizeof (ac__type_new_))
21896 rm -f conftest.$ac_objext
21897 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
21905 grep -v '^ *+' conftest.er1 >conftest.err
21907 cat conftest.err >&5
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); } && {
21910 test -z "$ac_c_werror_flag" ||
21911 test ! -s conftest.err
21912 } && test -s conftest.$ac_objext; then
21913 ac_cv_type_size_t=yes
21915 echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21918 ac_cv_type_size_t=no
21921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21923 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21924 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21925 if test $ac_cv_type_size_t = yes; then
21929 cat >>confdefs.h <<_ACEOF
21930 #define size_t unsigned int
21935 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21936 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21937 if test "${ac_cv_type_uid_t+set}" = set; then
21938 echo $ECHO_N "(cached) $ECHO_C" >&6
21940 cat >conftest.$ac_ext <<_ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h. */
21946 #include <sys/types.h>
21949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21950 $EGREP "uid_t" >/dev/null 2>&1; then
21951 ac_cv_type_uid_t=yes
21953 ac_cv_type_uid_t=no
21958 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21959 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21960 if test $ac_cv_type_uid_t = no; then
21962 cat >>confdefs.h <<\_ACEOF
21967 cat >>confdefs.h <<\_ACEOF
21975 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21976 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21977 if test "${ac_cv_type_socklen_t+set}" = set; then
21978 echo $ECHO_N "(cached) $ECHO_C" >&6
21980 ac_cv_type_socklen_t=no
21981 cat >conftest.$ac_ext <<_ACEOF
21984 cat confdefs.h >>conftest.$ac_ext
21985 cat >>conftest.$ac_ext <<_ACEOF
21986 /* end confdefs.h. */
21987 #ifdef HAVE_SYS_TYPES_H
21988 #include <sys/types.h>
21990 #ifdef HAVE_SYS_SOCKET_H
21991 #include <sys/socket.h>
22002 rm -f conftest.$ac_objext
22003 if { (ac_try="$ac_compile"
22004 case "(($ac_try" in
22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_compile") 2>conftest.er1
22011 grep -v '^ *+' conftest.er1 >conftest.err
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } && {
22016 test -z "$ac_c_werror_flag" ||
22017 test ! -s conftest.err
22018 } && test -s conftest.$ac_objext; then
22019 ac_cv_type_socklen_t=yes
22021 echo "$as_me: failed program was:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22031 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22032 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22034 if test "$ac_cv_type_socklen_t" != "yes"; then
22035 cat >>confdefs.h <<\_ACEOF
22036 #define socklen_t int
22043 { echo "$as_me:$LINENO: checking for uint8_t" >&5
22044 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
22045 if test "${ac_cv_type_uint8_t+set}" = set; then
22046 echo $ECHO_N "(cached) $ECHO_C" >&6
22048 ac_cv_type_uint8_t=no
22049 cat >conftest.$ac_ext <<_ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h. */
22055 #ifdef HAVE_INTTYPES_H
22056 #include <inttypes.h>
22058 #ifdef HAVE_STDINT_H
22059 #include <stdint.h>
22070 rm -f conftest.$ac_objext
22071 if { (ac_try="$ac_compile"
22072 case "(($ac_try" in
22073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22074 *) ac_try_echo=$ac_try;;
22076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22077 (eval "$ac_compile") 2>conftest.er1
22079 grep -v '^ *+' conftest.er1 >conftest.err
22081 cat conftest.err >&5
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); } && {
22084 test -z "$ac_c_werror_flag" ||
22085 test ! -s conftest.err
22086 } && test -s conftest.$ac_objext; then
22087 ac_cv_type_uint8_t=yes
22089 echo "$as_me: failed program was:" >&5
22090 sed 's/^/| /' conftest.$ac_ext >&5
22095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22099 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22100 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
22102 if test "$ac_cv_type_uint8_t" != "yes"; then
22103 cat >>confdefs.h <<\_ACEOF
22104 #define uint8_t unsigned char
22111 { echo "$as_me:$LINENO: checking for uint16_t" >&5
22112 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22113 if test "${ac_cv_type_uint16_t+set}" = set; then
22114 echo $ECHO_N "(cached) $ECHO_C" >&6
22116 ac_cv_type_uint16_t=no
22117 cat >conftest.$ac_ext <<_ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h. */
22123 #ifdef HAVE_INTTYPES_H
22124 #include <inttypes.h>
22126 #ifdef HAVE_STDINT_H
22127 #include <stdint.h>
22138 rm -f conftest.$ac_objext
22139 if { (ac_try="$ac_compile"
22140 case "(($ac_try" in
22141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22142 *) ac_try_echo=$ac_try;;
22144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22145 (eval "$ac_compile") 2>conftest.er1
22147 grep -v '^ *+' conftest.er1 >conftest.err
22149 cat conftest.err >&5
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); } && {
22152 test -z "$ac_c_werror_flag" ||
22153 test ! -s conftest.err
22154 } && test -s conftest.$ac_objext; then
22155 ac_cv_type_uint16_t=yes
22157 echo "$as_me: failed program was:" >&5
22158 sed 's/^/| /' conftest.$ac_ext >&5
22163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22167 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22168 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22170 if test "$ac_cv_type_uint16_t" != "yes"; then
22171 cat >>confdefs.h <<\_ACEOF
22172 #define uint16_t unsigned short
22179 { echo "$as_me:$LINENO: checking for uint32_t" >&5
22180 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
22181 if test "${ac_cv_type_uint32_t+set}" = set; then
22182 echo $ECHO_N "(cached) $ECHO_C" >&6
22184 ac_cv_type_uint32_t=no
22185 cat >conftest.$ac_ext <<_ACEOF
22188 cat confdefs.h >>conftest.$ac_ext
22189 cat >>conftest.$ac_ext <<_ACEOF
22190 /* end confdefs.h. */
22191 #ifdef HAVE_INTTYPES_H
22192 #include <inttypes.h>
22194 #ifdef HAVE_STDINT_H
22195 #include <stdint.h>
22206 rm -f conftest.$ac_objext
22207 if { (ac_try="$ac_compile"
22208 case "(($ac_try" in
22209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22210 *) ac_try_echo=$ac_try;;
22212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22213 (eval "$ac_compile") 2>conftest.er1
22215 grep -v '^ *+' conftest.er1 >conftest.err
22217 cat conftest.err >&5
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); } && {
22220 test -z "$ac_c_werror_flag" ||
22221 test ! -s conftest.err
22222 } && test -s conftest.$ac_objext; then
22223 ac_cv_type_uint32_t=yes
22225 echo "$as_me: failed program was:" >&5
22226 sed 's/^/| /' conftest.$ac_ext >&5
22231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22235 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22236 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
22238 if test "$ac_cv_type_uint32_t" != "yes"; then
22239 cat >>confdefs.h <<\_ACEOF
22240 #define uint32_t unsigned int
22297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22298 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22300 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22301 echo $ECHO_N "(cached) $ECHO_C" >&6
22303 cat >conftest.$ac_ext <<_ACEOF
22306 cat confdefs.h >>conftest.$ac_ext
22307 cat >>conftest.$ac_ext <<_ACEOF
22308 /* end confdefs.h. */
22309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22311 #define $ac_func innocuous_$ac_func
22313 /* System header to define __stub macros and hopefully few prototypes,
22314 which can conflict with char $ac_func (); below.
22315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22316 <limits.h> exists even on freestanding compilers. */
22319 # include <limits.h>
22321 # include <assert.h>
22326 /* Override any GCC internal prototype to avoid an error.
22327 Use char because int might match the return type of a GCC
22328 builtin and then its argument prototype would still apply. */
22333 /* The GNU C library defines this for functions which it implements
22334 to always fail with ENOSYS. Some functions are actually named
22335 something starting with __ and the normal name is an alias. */
22336 #if defined __stub_$ac_func || defined __stub___$ac_func
22343 return $ac_func ();
22348 rm -f conftest.$ac_objext conftest$ac_exeext
22349 if { (ac_try="$ac_link"
22350 case "(($ac_try" in
22351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22352 *) ac_try_echo=$ac_try;;
22354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22355 (eval "$ac_link") 2>conftest.er1
22357 grep -v '^ *+' conftest.er1 >conftest.err
22359 cat conftest.err >&5
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); } && {
22362 test -z "$ac_c_werror_flag" ||
22363 test ! -s conftest.err
22364 } && test -s conftest$ac_exeext &&
22365 $as_test_x conftest$ac_exeext; then
22366 eval "$as_ac_var=yes"
22368 echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22371 eval "$as_ac_var=no"
22374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22375 conftest$ac_exeext conftest.$ac_ext
22377 ac_res=`eval echo '${'$as_ac_var'}'`
22378 { echo "$as_me:$LINENO: result: $ac_res" >&5
22379 echo "${ECHO_T}$ac_res" >&6; }
22380 if test `eval echo '${'$as_ac_var'}'` = yes; then
22381 cat >>confdefs.h <<_ACEOF
22382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22399 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
22400 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
22401 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
22402 echo $ECHO_N "(cached) $ECHO_C" >&6
22404 cat >conftest.$ac_ext <<_ACEOF
22407 cat confdefs.h >>conftest.$ac_ext
22408 cat >>conftest.$ac_ext <<_ACEOF
22409 /* end confdefs.h. */
22412 #include <string.h>
22413 #ifdef HAVE_UNISTD_H
22414 #include <unistd.h>
22416 #ifdef HAVE_CRYPT_H
22419 #ifdef HAVE_ERRNO_H
22422 #ifdef HAVE_RESOURCE_H
22423 #include <resource.h>
22425 #ifdef HAVE_GETOPT_H
22426 #include <getopt.h>
22428 #ifdef HAVE_MALLOC_H
22429 #include <malloc.h>
22434 #ifdef HAVE_UTMPX_H
22437 #ifdef HAVE_SYS_SELECT_H
22438 #include <sys/select.h>
22440 #ifdef HAVE_DLFCN_H
22443 #ifdef HAVE_REGEX_H
22446 #ifdef HAVE_SYSLOG_H
22447 #include <syslog.h>
22449 #ifdef HAVE_INTTYPES_H
22450 #include <inttypes.h>
22452 #ifdef HAVE_STDINT_H
22453 #include <stdint.h>
22455 #ifdef HAVE_ARPA_INET_H
22456 #include <arpa/inet.h>
22462 char *(*pfn) = (char *(*)) $ac_func
22467 rm -f conftest.$ac_objext
22468 if { (ac_try="$ac_compile"
22469 case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474 (eval "$ac_compile") 2>conftest.er1
22476 grep -v '^ *+' conftest.er1 >conftest.err
22478 cat conftest.err >&5
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); } && {
22481 test -z "$ac_c_werror_flag" ||
22482 test ! -s conftest.err
22483 } && test -s conftest.$ac_objext; then
22484 eval "radius_cv_decl_needed_$ac_func=no"
22486 echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22489 eval "radius_cv_decl_needed_$ac_func=yes"
22492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22495 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22496 { echo "$as_me:$LINENO: result: yes" >&5
22497 echo "${ECHO_T}yes" >&6; }
22498 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22499 cat >>confdefs.h <<_ACEOF
22500 #define $radius_tr_decl 1
22504 { echo "$as_me:$LINENO: result: no" >&5
22505 echo "${ECHO_T}no" >&6; }
22511 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22512 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22513 if test "${ac_cv_type_signal+set}" = set; then
22514 echo $ECHO_N "(cached) $ECHO_C" >&6
22516 cat >conftest.$ac_ext <<_ACEOF
22519 cat confdefs.h >>conftest.$ac_ext
22520 cat >>conftest.$ac_ext <<_ACEOF
22521 /* end confdefs.h. */
22522 #include <sys/types.h>
22523 #include <signal.h>
22528 return *(signal (0, 0)) (0) == 1;
22533 rm -f conftest.$ac_objext
22534 if { (ac_try="$ac_compile"
22535 case "(($ac_try" in
22536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22537 *) ac_try_echo=$ac_try;;
22539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22540 (eval "$ac_compile") 2>conftest.er1
22542 grep -v '^ *+' conftest.er1 >conftest.err
22544 cat conftest.err >&5
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); } && {
22547 test -z "$ac_c_werror_flag" ||
22548 test ! -s conftest.err
22549 } && test -s conftest.$ac_objext; then
22550 ac_cv_type_signal=int
22552 echo "$as_me: failed program was:" >&5
22553 sed 's/^/| /' conftest.$ac_ext >&5
22555 ac_cv_type_signal=void
22558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22560 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22561 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22563 cat >>confdefs.h <<_ACEOF
22564 #define RETSIGTYPE $ac_cv_type_signal
22569 if test "x$ac_cv_header_utmpx_h" = "xyes"
22572 { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
22573 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
22576 cat >conftest.$ac_ext <<_ACEOF
22579 cat confdefs.h >>conftest.$ac_ext
22580 cat >>conftest.$ac_ext <<_ACEOF
22581 /* end confdefs.h. */
22585 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22591 int foo = offsetof(struct utmpx, ut_xtime)
22596 rm -f conftest.$ac_objext
22597 if { (ac_try="$ac_compile"
22598 case "(($ac_try" in
22599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22600 *) ac_try_echo=$ac_try;;
22602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22603 (eval "$ac_compile") 2>conftest.er1
22605 grep -v '^ *+' conftest.er1 >conftest.err
22607 cat conftest.err >&5
22608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); } && {
22610 test -z "$ac_c_werror_flag" ||
22611 test ! -s conftest.err
22612 } && test -s conftest.$ac_objext; then
22615 echo "$as_me: failed program was:" >&5
22616 sed 's/^/| /' conftest.$ac_ext >&5
22621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22623 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22624 if test "x$has_element" != "x"; then
22625 { echo "$as_me:$LINENO: result: yes" >&5
22626 echo "${ECHO_T}yes" >&6; }
22627 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22629 { echo "$as_me:$LINENO: result: no" >&5
22630 echo "${ECHO_T}no" >&6; }
22631 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22634 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22636 cat >>confdefs.h <<\_ACEOF
22637 #define ut_xtime ut_tv.tv_sec
22644 { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
22645 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
22648 cat >conftest.$ac_ext <<_ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h. */
22655 #include <netinet/in.h>
22657 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22663 int foo = offsetof(struct in_pktinfo, ipi_addr)
22668 rm -f conftest.$ac_objext
22669 if { (ac_try="$ac_compile"
22670 case "(($ac_try" in
22671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22672 *) ac_try_echo=$ac_try;;
22674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22675 (eval "$ac_compile") 2>conftest.er1
22677 grep -v '^ *+' conftest.er1 >conftest.err
22679 cat conftest.err >&5
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); } && {
22682 test -z "$ac_c_werror_flag" ||
22683 test ! -s conftest.err
22684 } && test -s conftest.$ac_objext; then
22687 echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22695 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22696 if test "x$has_element" != "x"; then
22697 { echo "$as_me:$LINENO: result: yes" >&5
22698 echo "${ECHO_T}yes" >&6; }
22699 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22701 { echo "$as_me:$LINENO: result: no" >&5
22702 echo "${ECHO_T}no" >&6; }
22703 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22706 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22708 cat >>confdefs.h <<\_ACEOF
22709 #define HAVE_IP_PKTINFO 1
22715 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22716 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22717 if test "${ac_cv_c_const+set}" = set; then
22718 echo $ECHO_N "(cached) $ECHO_C" >&6
22720 cat >conftest.$ac_ext <<_ACEOF
22723 cat confdefs.h >>conftest.$ac_ext
22724 cat >>conftest.$ac_ext <<_ACEOF
22725 /* end confdefs.h. */
22730 /* FIXME: Include the comments suggested by Paul. */
22731 #ifndef __cplusplus
22732 /* Ultrix mips cc rejects this. */
22733 typedef int charset[2];
22735 /* SunOS 4.1.1 cc rejects this. */
22736 char const *const *pcpcc;
22738 /* NEC SVR4.0.2 mips cc rejects this. */
22739 struct point {int x, y;};
22740 static struct point const zero = {0,0};
22741 /* AIX XL C 1.02.0.0 rejects this.
22742 It does not let you subtract one const X* pointer from another in
22743 an arm of an if-expression whose if-part is not a constant
22745 const char *g = "string";
22746 pcpcc = &g + (g ? g-g : 0);
22747 /* HPUX 7.0 cc rejects these. */
22749 ppc = (char**) pcpcc;
22750 pcpcc = (char const *const *) ppc;
22751 { /* SCO 3.2v4 cc rejects this. */
22753 char const *s = 0 ? (char *) 0 : (char const *) 0;
22758 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22759 int x[] = {25, 17};
22760 const int *foo = &x[0];
22763 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22764 typedef const int *iptr;
22768 { /* AIX XL C 1.02.0.0 rejects this saying
22769 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22770 struct s { int j; const int *ap[3]; };
22771 struct s *b; b->j = 5;
22773 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22774 const int foo = 10;
22775 if (!foo) return 0;
22777 return !cs[0] && !zero.x;
22784 rm -f conftest.$ac_objext
22785 if { (ac_try="$ac_compile"
22786 case "(($ac_try" in
22787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22788 *) ac_try_echo=$ac_try;;
22790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22791 (eval "$ac_compile") 2>conftest.er1
22793 grep -v '^ *+' conftest.er1 >conftest.err
22795 cat conftest.err >&5
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); } && {
22798 test -z "$ac_c_werror_flag" ||
22799 test ! -s conftest.err
22800 } && test -s conftest.$ac_objext; then
22803 echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22811 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22812 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22813 if test $ac_cv_c_const = no; then
22815 cat >>confdefs.h <<\_ACEOF
22822 { echo "$as_me:$LINENO: checking type of OS" >&5
22823 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
22825 { echo "$as_me:$LINENO: result: $OS" >&5
22826 echo "${ECHO_T}$OS" >&6; }
22827 if test "$OS" = "OS/2"; then
22834 if test "x$GCC" = "xyes"; then
22835 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22838 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22839 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
22840 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22841 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22842 CFLAGS="$CFLAGS $devflags"
22844 { echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
22845 echo "${ECHO_T}yes. Using $devflags" >&6; }
22848 CFLAGS="$CFLAGS -DNDEBUG"
22850 { echo "$as_me:$LINENO: result: no." >&5
22851 echo "${ECHO_T}no." >&6; }
22855 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22856 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22857 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22858 echo $ECHO_N "(cached) $ECHO_C" >&6
22860 ac_check_lib_save_LIBS=$LIBS
22861 LIBS="-lcrypt $LIBS"
22862 cat >conftest.$ac_ext <<_ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h. */
22869 /* Override any GCC internal prototype to avoid an error.
22870 Use char because int might match the return type of a GCC
22871 builtin and then its argument prototype would still apply. */
22884 rm -f conftest.$ac_objext conftest$ac_exeext
22885 if { (ac_try="$ac_link"
22886 case "(($ac_try" in
22887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22888 *) ac_try_echo=$ac_try;;
22890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22891 (eval "$ac_link") 2>conftest.er1
22893 grep -v '^ *+' conftest.er1 >conftest.err
22895 cat conftest.err >&5
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); } && {
22898 test -z "$ac_c_werror_flag" ||
22899 test ! -s conftest.err
22900 } && test -s conftest$ac_exeext &&
22901 $as_test_x conftest$ac_exeext; then
22902 ac_cv_lib_crypt_crypt=yes
22904 echo "$as_me: failed program was:" >&5
22905 sed 's/^/| /' conftest.$ac_ext >&5
22907 ac_cv_lib_crypt_crypt=no
22910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22911 conftest$ac_exeext conftest.$ac_ext
22912 LIBS=$ac_check_lib_save_LIBS
22914 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22915 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22916 if test $ac_cv_lib_crypt_crypt = yes; then
22921 if test "$CRYPTLIB" != ""; then
22922 cat >>confdefs.h <<\_ACEOF
22923 #define HAVE_CRYPT 1
22927 { echo "$as_me:$LINENO: checking for crypt" >&5
22928 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
22929 if test "${ac_cv_func_crypt+set}" = set; then
22930 echo $ECHO_N "(cached) $ECHO_C" >&6
22932 cat >conftest.$ac_ext <<_ACEOF
22935 cat confdefs.h >>conftest.$ac_ext
22936 cat >>conftest.$ac_ext <<_ACEOF
22937 /* end confdefs.h. */
22938 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
22939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22940 #define crypt innocuous_crypt
22942 /* System header to define __stub macros and hopefully few prototypes,
22943 which can conflict with char crypt (); below.
22944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22945 <limits.h> exists even on freestanding compilers. */
22948 # include <limits.h>
22950 # include <assert.h>
22955 /* Override any GCC internal prototype to avoid an error.
22956 Use char because int might match the return type of a GCC
22957 builtin and then its argument prototype would still apply. */
22962 /* The GNU C library defines this for functions which it implements
22963 to always fail with ENOSYS. Some functions are actually named
22964 something starting with __ and the normal name is an alias. */
22965 #if defined __stub_crypt || defined __stub___crypt
22977 rm -f conftest.$ac_objext conftest$ac_exeext
22978 if { (ac_try="$ac_link"
22979 case "(($ac_try" in
22980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22981 *) ac_try_echo=$ac_try;;
22983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22984 (eval "$ac_link") 2>conftest.er1
22986 grep -v '^ *+' conftest.er1 >conftest.err
22988 cat conftest.err >&5
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); } && {
22991 test -z "$ac_c_werror_flag" ||
22992 test ! -s conftest.err
22993 } && test -s conftest$ac_exeext &&
22994 $as_test_x conftest$ac_exeext; then
22995 ac_cv_func_crypt=yes
22997 echo "$as_me: failed program was:" >&5
22998 sed 's/^/| /' conftest.$ac_ext >&5
23000 ac_cv_func_crypt=no
23003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23004 conftest$ac_exeext conftest.$ac_ext
23006 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
23007 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
23008 if test $ac_cv_func_crypt = yes; then
23009 cat >>confdefs.h <<\_ACEOF
23010 #define HAVE_CRYPT 1
23017 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
23018 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
23019 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
23020 echo $ECHO_N "(cached) $ECHO_C" >&6
23022 ac_check_lib_save_LIBS=$LIBS
23023 LIBS="-lcipher $LIBS"
23024 cat >conftest.$ac_ext <<_ACEOF
23027 cat confdefs.h >>conftest.$ac_ext
23028 cat >>conftest.$ac_ext <<_ACEOF
23029 /* end confdefs.h. */
23031 /* Override any GCC internal prototype to avoid an error.
23032 Use char because int might match the return type of a GCC
23033 builtin and then its argument prototype would still apply. */
23046 rm -f conftest.$ac_objext conftest$ac_exeext
23047 if { (ac_try="$ac_link"
23048 case "(($ac_try" in
23049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23050 *) ac_try_echo=$ac_try;;
23052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23053 (eval "$ac_link") 2>conftest.er1
23055 grep -v '^ *+' conftest.er1 >conftest.err
23057 cat conftest.err >&5
23058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); } && {
23060 test -z "$ac_c_werror_flag" ||
23061 test ! -s conftest.err
23062 } && test -s conftest$ac_exeext &&
23063 $as_test_x conftest$ac_exeext; then
23064 ac_cv_lib_cipher_setkey=yes
23066 echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23069 ac_cv_lib_cipher_setkey=no
23072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23073 conftest$ac_exeext conftest.$ac_ext
23074 LIBS=$ac_check_lib_save_LIBS
23076 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
23077 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
23078 if test $ac_cv_lib_cipher_setkey = yes; then
23079 CRYPTLIB="${CRYPTLIB} -lcipher"
23085 if test "x$WITH_SNMP" = "xyes"; then
23090 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
23091 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
23093 cat >conftest.$ac_ext <<_ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h. */
23100 #ifdef HAVE_SYS_TYPES_H
23101 #include <sys/types.h>
23103 #ifdef HAVE_STDINT_H
23104 #include <stdint.h>
23106 #ifdef HAVE_STDIO_H
23109 #ifdef HAVE_NETDB_H
23112 #ifdef HAVE_UNISTD_H
23113 #include <unistd.h>
23115 #include <ucd-snmp/ucd-snmp-config.h>
23116 #include <ucd-snmp/asn1.h>
23117 #include <ucd-snmp/snmp.h>
23118 #include <ucd-snmp/snmp_impl.h>
23127 rm -f conftest.$ac_objext
23128 if { (ac_try="$ac_compile"
23129 case "(($ac_try" in
23130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23131 *) ac_try_echo=$ac_try;;
23133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23134 (eval "$ac_compile") 2>conftest.er1
23136 grep -v '^ *+' conftest.er1 >conftest.err
23138 cat conftest.err >&5
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); } && {
23141 test -z "$ac_c_werror_flag" ||
23142 test ! -s conftest.err
23143 } && test -s conftest.$ac_objext; then
23144 SNMP_INCLUDE="";ucdsnmp=yes
23146 echo "$as_me: failed program was:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23154 if test "x$ucdsnmp" = "x"; then
23155 old_CFLAGS="$CFLAGS"
23156 for try in /usr/include /usr/local/include $with_snmp_include_dir; do
23157 CFLAGS="$old_CFLAGS -I$try"
23158 cat >conftest.$ac_ext <<_ACEOF
23161 cat confdefs.h >>conftest.$ac_ext
23162 cat >>conftest.$ac_ext <<_ACEOF
23163 /* end confdefs.h. */
23165 #ifdef HAVE_SYS_TYPES_H
23166 #include <sys/types.h>
23168 #ifdef HAVE_STDINT_H
23169 #include <stdint.h>
23171 #ifdef HAVE_STDIO_H
23174 #ifdef HAVE_NETDB_H
23177 #ifdef HAVE_UNISTD_H
23178 #include <unistd.h>
23180 #include <ucd-snmp/ucd-snmp-config.h>
23181 #include <ucd-snmp/asn1.h>
23182 #include <ucd-snmp/snmp.h>
23183 #include <ucd-snmp/snmp_impl.h>
23192 rm -f conftest.$ac_objext
23193 if { (ac_try="$ac_compile"
23194 case "(($ac_try" in
23195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23196 *) ac_try_echo=$ac_try;;
23198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23199 (eval "$ac_compile") 2>conftest.er1
23201 grep -v '^ *+' conftest.er1 >conftest.err
23203 cat conftest.err >&5
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); } && {
23206 test -z "$ac_c_werror_flag" ||
23207 test ! -s conftest.err
23208 } && test -s conftest.$ac_objext; then
23209 SNMP_INCLUDE="-I$try";ucdsnmp=yes
23211 echo "$as_me: failed program was:" >&5
23212 sed 's/^/| /' conftest.$ac_ext >&5
23217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23218 if test "x$ucdsnmp" != "x"; then
23222 CFLAGS="$old_CFLAGS"
23225 if test "x$ucdsnmp" = "x"; then
23226 old_CFLAGS="$CFLAGS"
23227 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
23228 CFLAGS="$old_CFLAGS -I$try"
23229 cat >conftest.$ac_ext <<_ACEOF
23232 cat confdefs.h >>conftest.$ac_ext
23233 cat >>conftest.$ac_ext <<_ACEOF
23234 /* end confdefs.h. */
23236 #ifdef HAVE_SYS_TYPES_H
23237 #include <sys/types.h>
23239 #ifdef HAVE_STDINT_H
23240 #include <stdint.h>
23242 #ifdef HAVE_STDIO_H
23245 #ifdef HAVE_NETDB_H
23248 #ifdef HAVE_UNISTD_H
23249 #include <unistd.h>
23253 #include <snmp_impl.h>
23262 rm -f conftest.$ac_objext
23263 if { (ac_try="$ac_compile"
23264 case "(($ac_try" in
23265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266 *) ac_try_echo=$ac_try;;
23268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23269 (eval "$ac_compile") 2>conftest.er1
23271 grep -v '^ *+' conftest.er1 >conftest.err
23273 cat conftest.err >&5
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); } && {
23276 test -z "$ac_c_werror_flag" ||
23277 test ! -s conftest.err
23278 } && test -s conftest.$ac_objext; then
23279 SNMP_INCLUDE="";ucdsnmp=no
23281 echo "$as_me: failed program was:" >&5
23282 sed 's/^/| /' conftest.$ac_ext >&5
23287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23288 if test "x$ucdsnmp" != "x"; then
23292 CFLAGS="$old_CFLAGS"
23295 if test "x$ucdsnmp" = "x"; then
23296 old_CFLAGS="$CFLAGS"
23297 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
23298 CFLAGS="$old_CFLAGS -I$try"
23299 cat >conftest.$ac_ext <<_ACEOF
23302 cat confdefs.h >>conftest.$ac_ext
23303 cat >>conftest.$ac_ext <<_ACEOF
23304 /* end confdefs.h. */
23306 #ifdef HAVE_SYS_TYPES_H
23307 #include <sys/types.h>
23309 #ifdef HAVE_STDINT_H
23310 #include <stdint.h>
23312 #ifdef HAVE_STDIO_H
23315 #ifdef HAVE_NETDB_H
23318 #ifdef HAVE_UNISTD_H
23319 #include <unistd.h>
23323 #include <snmp_impl.h>
23332 rm -f conftest.$ac_objext
23333 if { (ac_try="$ac_compile"
23334 case "(($ac_try" in
23335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23336 *) ac_try_echo=$ac_try;;
23338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23339 (eval "$ac_compile") 2>conftest.er1
23341 grep -v '^ *+' conftest.er1 >conftest.err
23343 cat conftest.err >&5
23344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345 (exit $ac_status); } && {
23346 test -z "$ac_c_werror_flag" ||
23347 test ! -s conftest.err
23348 } && test -s conftest.$ac_objext; then
23349 SNMP_INCLUDE="-I$try";ucdsnmp=no
23351 echo "$as_me: failed program was:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23358 if test "x$ucdsnmp" != "x"; then
23362 CFLAGS="$old_CFLAGS"
23365 if test "x$ucdsnmp" = "x"; then
23366 { echo "$as_me:$LINENO: result: no" >&5
23367 echo "${ECHO_T}no" >&6; }
23369 if test "x$ucdsnmp" = "xyes"; then
23370 { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
23371 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
23372 cat >>confdefs.h <<\_ACEOF
23373 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
23377 { echo "$as_me:$LINENO: result: yes" >&5
23378 echo "${ECHO_T}yes" >&6; }
23379 cat >>confdefs.h <<\_ACEOF
23380 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
23384 { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
23385 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
23388 LIBS="$old_LIBS -lsnmp"
23389 cat >conftest.$ac_ext <<_ACEOF
23392 cat confdefs.h >>conftest.$ac_ext
23393 cat >>conftest.$ac_ext <<_ACEOF
23394 /* end confdefs.h. */
23395 extern char snmp_build_var_op();
23399 snmp_build_var_op()
23404 rm -f conftest.$ac_objext conftest$ac_exeext
23405 if { (ac_try="$ac_link"
23406 case "(($ac_try" in
23407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23408 *) ac_try_echo=$ac_try;;
23410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23411 (eval "$ac_link") 2>conftest.er1
23413 grep -v '^ *+' conftest.er1 >conftest.err
23415 cat conftest.err >&5
23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417 (exit $ac_status); } && {
23418 test -z "$ac_c_werror_flag" ||
23419 test ! -s conftest.err
23420 } && test -s conftest$ac_exeext &&
23421 $as_test_x conftest$ac_exeext; then
23424 echo "$as_me: failed program was:" >&5
23425 sed 's/^/| /' conftest.$ac_ext >&5
23430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23431 conftest$ac_exeext conftest.$ac_ext
23433 if test "x$SNMP_LIBS" = "x"; then
23434 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
23435 LIBS="$old_LIBS -L$try -lsnmp"
23436 cat >conftest.$ac_ext <<_ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h. */
23442 extern char snmp_build_var_op();
23446 snmp_build_var_op()
23451 rm -f conftest.$ac_objext conftest$ac_exeext
23452 if { (ac_try="$ac_link"
23453 case "(($ac_try" in
23454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23455 *) ac_try_echo=$ac_try;;
23457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23458 (eval "$ac_link") 2>conftest.er1
23460 grep -v '^ *+' conftest.er1 >conftest.err
23462 cat conftest.err >&5
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); } && {
23465 test -z "$ac_c_werror_flag" ||
23466 test ! -s conftest.err
23467 } && test -s conftest$ac_exeext &&
23468 $as_test_x conftest$ac_exeext; then
23469 SNMP_LIBS="-L$try -lsnmp"
23471 echo "$as_me: failed program was:" >&5
23472 sed 's/^/| /' conftest.$ac_ext >&5
23477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23478 conftest$ac_exeext conftest.$ac_ext
23479 if test "x$SNMP_LIBS" != "x"; then
23482 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
23483 cat >conftest.$ac_ext <<_ACEOF
23486 cat confdefs.h >>conftest.$ac_ext
23487 cat >>conftest.$ac_ext <<_ACEOF
23488 /* end confdefs.h. */
23489 extern char snmp_build_var_op();
23493 snmp_build_var_op()
23498 rm -f conftest.$ac_objext conftest$ac_exeext
23499 if { (ac_try="$ac_link"
23500 case "(($ac_try" in
23501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23502 *) ac_try_echo=$ac_try;;
23504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23505 (eval "$ac_link") 2>conftest.er1
23507 grep -v '^ *+' conftest.er1 >conftest.err
23509 cat conftest.err >&5
23510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511 (exit $ac_status); } && {
23512 test -z "$ac_c_werror_flag" ||
23513 test ! -s conftest.err
23514 } && test -s conftest$ac_exeext &&
23515 $as_test_x conftest$ac_exeext; then
23516 SNMP_LIBS="-L$try -lsnmp -lcrypto"
23518 echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23525 conftest$ac_exeext conftest.$ac_ext
23526 if test "x$SNMP_LIBS" != "x"; then
23529 LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
23530 cat >conftest.$ac_ext <<_ACEOF
23533 cat confdefs.h >>conftest.$ac_ext
23534 cat >>conftest.$ac_ext <<_ACEOF
23535 /* end confdefs.h. */
23536 extern char snmp_build_var_op();
23540 snmp_build_var_op()
23545 rm -f conftest.$ac_objext conftest$ac_exeext
23546 if { (ac_try="$ac_link"
23547 case "(($ac_try" in
23548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23549 *) ac_try_echo=$ac_try;;
23551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23552 (eval "$ac_link") 2>conftest.er1
23554 grep -v '^ *+' conftest.er1 >conftest.err
23556 cat conftest.err >&5
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); } && {
23559 test -z "$ac_c_werror_flag" ||
23560 test ! -s conftest.err
23561 } && test -s conftest$ac_exeext &&
23562 $as_test_x conftest$ac_exeext; then
23563 SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
23565 echo "$as_me: failed program was:" >&5
23566 sed 's/^/| /' conftest.$ac_ext >&5
23571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23572 conftest$ac_exeext conftest.$ac_ext
23573 if test "x$SNMP_LIBS" != "x"; then
23580 CFLAGS="$old_CFLAGS"
23581 if test "x$SNMP_LIBS" = "x"; then
23582 { echo "$as_me:$LINENO: result: no" >&5
23583 echo "${ECHO_T}no" >&6; }
23586 { echo "$as_me:$LINENO: result: yes" >&5
23587 echo "${ECHO_T}yes" >&6; }
23588 cat >>confdefs.h <<\_ACEOF
23589 #define WITH_SNMP 1
23592 cat >>confdefs.h <<\_ACEOF
23593 #define HAVE_LIBSNMP 1
23601 gethostbyaddrrstyle=""
23602 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
23603 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
23606 { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
23607 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
23608 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
23609 echo $ECHO_N "(cached) $ECHO_C" >&6
23611 cat >conftest.$ac_ext <<_ACEOF
23614 cat confdefs.h >>conftest.$ac_ext
23615 cat >>conftest.$ac_ext <<_ACEOF
23616 /* end confdefs.h. */
23618 #ifdef HAVE_NETDB_H
23626 #ifndef gethostbyaddr_r
23627 (void) gethostbyaddr_r;
23634 rm -f conftest.$ac_objext
23635 if { (ac_try="$ac_compile"
23636 case "(($ac_try" in
23637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23638 *) ac_try_echo=$ac_try;;
23640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23641 (eval "$ac_compile") 2>conftest.er1
23643 grep -v '^ *+' conftest.er1 >conftest.err
23645 cat conftest.err >&5
23646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647 (exit $ac_status); } && {
23648 test -z "$ac_c_werror_flag" ||
23649 test ! -s conftest.err
23650 } && test -s conftest.$ac_objext; then
23651 ac_cv_have_decl_gethostbyaddr_r=yes
23653 echo "$as_me: failed program was:" >&5
23654 sed 's/^/| /' conftest.$ac_ext >&5
23656 ac_cv_have_decl_gethostbyaddr_r=no
23659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23661 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
23662 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
23663 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
23665 cat >>confdefs.h <<_ACEOF
23666 #define HAVE_DECL_GETHOSTBYADDR_R 1
23671 cat >>confdefs.h <<_ACEOF
23672 #define HAVE_DECL_GETHOSTBYADDR_R 0
23677 cat >>confdefs.h <<\_ACEOF
23678 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23681 gethostbyaddrrstyle=BSD
23682 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
23683 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
23690 if test "x$gethostbyaddrrstyle" = "x"; then
23691 cat >conftest.$ac_ext <<_ACEOF
23694 cat confdefs.h >>conftest.$ac_ext
23695 cat >>conftest.$ac_ext <<_ACEOF
23696 /* end confdefs.h. */
23704 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
23709 rm -f conftest.$ac_objext conftest$ac_exeext
23710 if { (ac_try="$ac_link"
23711 case "(($ac_try" in
23712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23713 *) ac_try_echo=$ac_try;;
23715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23716 (eval "$ac_link") 2>conftest.er1
23718 grep -v '^ *+' conftest.er1 >conftest.err
23720 cat conftest.err >&5
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); } && {
23723 test -z "$ac_c_werror_flag" ||
23724 test ! -s conftest.err
23725 } && test -s conftest$ac_exeext &&
23726 $as_test_x conftest$ac_exeext; then
23728 cat >>confdefs.h <<\_ACEOF
23729 #define GETHOSTBYADDRRSTYLE GNUSTYLE
23732 gethostbyaddrrstyle=GNU
23735 echo "$as_me: failed program was:" >&5
23736 sed 's/^/| /' conftest.$ac_ext >&5
23741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23742 conftest$ac_exeext conftest.$ac_ext
23744 if test "x$gethostbyaddrrstyle" = "x"; then
23745 cat >conftest.$ac_ext <<_ACEOF
23748 cat confdefs.h >>conftest.$ac_ext
23749 cat >>conftest.$ac_ext <<_ACEOF
23750 /* end confdefs.h. */
23758 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
23763 rm -f conftest.$ac_objext conftest$ac_exeext
23764 if { (ac_try="$ac_link"
23765 case "(($ac_try" in
23766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23767 *) ac_try_echo=$ac_try;;
23769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23770 (eval "$ac_link") 2>conftest.er1
23772 grep -v '^ *+' conftest.er1 >conftest.err
23774 cat conftest.err >&5
23775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776 (exit $ac_status); } && {
23777 test -z "$ac_c_werror_flag" ||
23778 test ! -s conftest.err
23779 } && test -s conftest$ac_exeext &&
23780 $as_test_x conftest$ac_exeext; then
23782 cat >>confdefs.h <<\_ACEOF
23783 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
23786 gethostbyaddrrstyle=SYSV
23789 echo "$as_me: failed program was:" >&5
23790 sed 's/^/| /' conftest.$ac_ext >&5
23795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23796 conftest$ac_exeext conftest.$ac_ext
23798 if test "x$gethostbyaddrrstyle" = "x"; then
23799 cat >conftest.$ac_ext <<_ACEOF
23802 cat confdefs.h >>conftest.$ac_ext
23803 cat >>conftest.$ac_ext <<_ACEOF
23804 /* end confdefs.h. */
23812 gethostbyaddr(NULL, 0, 0)
23817 rm -f conftest.$ac_objext conftest$ac_exeext
23818 if { (ac_try="$ac_link"
23819 case "(($ac_try" in
23820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23821 *) ac_try_echo=$ac_try;;
23823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23824 (eval "$ac_link") 2>conftest.er1
23826 grep -v '^ *+' conftest.er1 >conftest.err
23828 cat conftest.err >&5
23829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); } && {
23831 test -z "$ac_c_werror_flag" ||
23832 test ! -s conftest.err
23833 } && test -s conftest$ac_exeext &&
23834 $as_test_x conftest$ac_exeext; then
23836 cat >>confdefs.h <<\_ACEOF
23837 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23840 gethostbyaddrrstyle=BSD
23843 echo "$as_me: failed program was:" >&5
23844 sed 's/^/| /' conftest.$ac_ext >&5
23849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23850 conftest$ac_exeext conftest.$ac_ext
23853 if test "x$gethostbyaddrrstyle" = "x"; then
23854 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
23855 echo "${ECHO_T}none! It must not exist, here." >&6; }
23857 { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
23858 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
23861 if test "x$gethostbyaddrrstyle" = "xBSD"; then
23862 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
23863 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
23866 gethostbynamerstyle=""
23867 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
23868 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
23869 cat >conftest.$ac_ext <<_ACEOF
23872 cat confdefs.h >>conftest.$ac_ext
23873 cat >>conftest.$ac_ext <<_ACEOF
23874 /* end confdefs.h. */
23882 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
23887 rm -f conftest.$ac_objext conftest$ac_exeext
23888 if { (ac_try="$ac_link"
23889 case "(($ac_try" in
23890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23891 *) ac_try_echo=$ac_try;;
23893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23894 (eval "$ac_link") 2>conftest.er1
23896 grep -v '^ *+' conftest.er1 >conftest.err
23898 cat conftest.err >&5
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); } && {
23901 test -z "$ac_c_werror_flag" ||
23902 test ! -s conftest.err
23903 } && test -s conftest$ac_exeext &&
23904 $as_test_x conftest$ac_exeext; then
23906 cat >>confdefs.h <<\_ACEOF
23907 #define GETHOSTBYNAMERSTYLE GNUSTYLE
23910 gethostbynamerstyle=GNU
23913 echo "$as_me: failed program was:" >&5
23914 sed 's/^/| /' conftest.$ac_ext >&5
23919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23920 conftest$ac_exeext conftest.$ac_ext
23921 if test "x$gethostbynamerstyle" = "x"; then
23922 cat >conftest.$ac_ext <<_ACEOF
23925 cat confdefs.h >>conftest.$ac_ext
23926 cat >>conftest.$ac_ext <<_ACEOF
23927 /* end confdefs.h. */
23935 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
23940 rm -f conftest.$ac_objext conftest$ac_exeext
23941 if { (ac_try="$ac_link"
23942 case "(($ac_try" in
23943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23944 *) ac_try_echo=$ac_try;;
23946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23947 (eval "$ac_link") 2>conftest.er1
23949 grep -v '^ *+' conftest.er1 >conftest.err
23951 cat conftest.err >&5
23952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953 (exit $ac_status); } && {
23954 test -z "$ac_c_werror_flag" ||
23955 test ! -s conftest.err
23956 } && test -s conftest$ac_exeext &&
23957 $as_test_x conftest$ac_exeext; then
23959 cat >>confdefs.h <<\_ACEOF
23960 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
23963 gethostbynamerstyle=SYSV
23966 echo "$as_me: failed program was:" >&5
23967 sed 's/^/| /' conftest.$ac_ext >&5
23972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23973 conftest$ac_exeext conftest.$ac_ext
23975 if test "x$gethostbynamerstyle" = "x"; then
23976 cat >conftest.$ac_ext <<_ACEOF
23979 cat confdefs.h >>conftest.$ac_ext
23980 cat >>conftest.$ac_ext <<_ACEOF
23981 /* end confdefs.h. */
23989 gethostbyname(NULL)
23994 rm -f conftest.$ac_objext conftest$ac_exeext
23995 if { (ac_try="$ac_link"
23996 case "(($ac_try" in
23997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23998 *) ac_try_echo=$ac_try;;
24000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24001 (eval "$ac_link") 2>conftest.er1
24003 grep -v '^ *+' conftest.er1 >conftest.err
24005 cat conftest.err >&5
24006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007 (exit $ac_status); } && {
24008 test -z "$ac_c_werror_flag" ||
24009 test ! -s conftest.err
24010 } && test -s conftest$ac_exeext &&
24011 $as_test_x conftest$ac_exeext; then
24013 cat >>confdefs.h <<\_ACEOF
24014 #define GETHOSTBYNAMERSTYLE BSDSTYLE
24017 gethostbynamerstyle=BSD
24020 echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24027 conftest$ac_exeext conftest.$ac_ext
24030 if test "x$gethostbynamerstyle" = "x"; then
24031 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24032 echo "${ECHO_T}none! It must not exist, here." >&6; }
24034 { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
24035 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
24038 if test "x$gethostbynamerstyle" = "xBSD"; then
24039 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
24040 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
24044 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
24045 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
24046 cat >conftest.$ac_ext <<_ACEOF
24049 cat confdefs.h >>conftest.$ac_ext
24050 cat >>conftest.$ac_ext <<_ACEOF
24051 /* end confdefs.h. */
24058 ctime_r(NULL, NULL, 0)
24063 rm -f conftest.$ac_objext conftest$ac_exeext
24064 if { (ac_try="$ac_link"
24065 case "(($ac_try" in
24066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24067 *) ac_try_echo=$ac_try;;
24069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24070 (eval "$ac_link") 2>conftest.er1
24072 grep -v '^ *+' conftest.er1 >conftest.err
24074 cat conftest.err >&5
24075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076 (exit $ac_status); } && {
24077 test -z "$ac_c_werror_flag" ||
24078 test ! -s conftest.err
24079 } && test -s conftest$ac_exeext &&
24080 $as_test_x conftest$ac_exeext; then
24082 cat >>confdefs.h <<\_ACEOF
24083 #define CTIMERSTYLE SOLARISSTYLE
24086 ctimerstyle="SOLARIS"
24089 echo "$as_me: failed program was:" >&5
24090 sed 's/^/| /' conftest.$ac_ext >&5
24095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24096 conftest$ac_exeext conftest.$ac_ext
24097 if test "x$ctimerstyle" = "x"; then
24098 cat >conftest.$ac_ext <<_ACEOF
24101 cat confdefs.h >>conftest.$ac_ext
24102 cat >>conftest.$ac_ext <<_ACEOF
24103 /* end confdefs.h. */
24110 ctime_r(NULL, NULL)
24115 rm -f conftest.$ac_objext conftest$ac_exeext
24116 if { (ac_try="$ac_link"
24117 case "(($ac_try" in
24118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24119 *) ac_try_echo=$ac_try;;
24121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24122 (eval "$ac_link") 2>conftest.er1
24124 grep -v '^ *+' conftest.er1 >conftest.err
24126 cat conftest.err >&5
24127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128 (exit $ac_status); } && {
24129 test -z "$ac_c_werror_flag" ||
24130 test ! -s conftest.err
24131 } && test -s conftest$ac_exeext &&
24132 $as_test_x conftest$ac_exeext; then
24134 cat >>confdefs.h <<\_ACEOF
24135 #define CTIMERSTYLE POSIXSTYLE
24138 ctimerstyle="POSIX"
24141 echo "$as_me: failed program was:" >&5
24142 sed 's/^/| /' conftest.$ac_ext >&5
24147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24148 conftest$ac_exeext conftest.$ac_ext
24151 if test "x$ctimerstyle" = "x"; then
24152 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24153 echo "${ECHO_T}none! It must not exist, here." >&6; }
24155 { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
24156 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
24160 if test x"$rad_enable_largefiles" = xyes ; then
24161 { echo "$as_me:$LINENO: checking for largefile linkage" >&5
24162 echo $ECHO_N "checking for largefile linkage... $ECHO_C" >&6; }
24165 { echo "$as_me:$LINENO: result: no" >&5
24166 echo "${ECHO_T}no" >&6; }
24167 { { echo "$as_me:$LINENO: error: AIX before 4.2 does not support large files" >&5
24168 echo "$as_me: error: AIX before 4.2 does not support large files" >&2;}
24169 { (exit 1); exit 1; }; }
24172 { echo "$as_me:$LINENO: result: ok" >&5
24173 echo "${ECHO_T}ok" >&6; }
24174 LFS_CFLAGS="-D_LARGE_FILES"
24179 { echo "$as_me:$LINENO: result: ok" >&5
24180 echo "${ECHO_T}ok" >&6; }
24181 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24186 { echo "$as_me:$LINENO: result: no" >&5
24187 echo "${ECHO_T}no" >&6; }
24188 { { echo "$as_me:$LINENO: error: Large files not supported on this platform" >&5
24189 echo "$as_me: error: Large files not supported on this platform" >&2;}
24190 { (exit 1); exit 1; }; }
24193 { echo "$as_me:$LINENO: result: maybe" >&5
24194 echo "${ECHO_T}maybe" >&6; }
24195 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24199 cat >>confdefs.h <<\_ACEOF
24200 #define _GNU_SOURCE 1
24205 { echo "$as_me:$LINENO: result: ok" >&5
24206 echo "${ECHO_T}ok" >&6; }
24207 # Extract the first word of "getconf", so it can be a program name with args.
24208 set dummy getconf; ac_word=$2
24209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24211 if test "${ac_cv_path_GETCONF+set}" = set; then
24212 echo $ECHO_N "(cached) $ECHO_C" >&6
24216 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
24219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24220 for as_dir in $PATH
24223 test -z "$as_dir" && as_dir=.
24224 for ac_exec_ext in '' $ac_executable_extensions; do
24225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24226 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
24227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24237 GETCONF=$ac_cv_path_GETCONF
24238 if test -n "$GETCONF"; then
24239 { echo "$as_me:$LINENO: result: $GETCONF" >&5
24240 echo "${ECHO_T}$GETCONF" >&6; }
24242 { echo "$as_me:$LINENO: result: no" >&5
24243 echo "${ECHO_T}no" >&6; }
24247 if test -z "$GETCONF" ; then
24248 { { echo "$as_me:$LINENO: error: getconf required to configure large file support" >&5
24249 echo "$as_me: error: getconf required to configure large file support" >&2;}
24250 { (exit 1); exit 1; }; }
24252 LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
24253 LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
24254 LFS_LIBS=`$GETCONF LFS_LIBS`
24257 { echo "$as_me:$LINENO: result: maybe" >&5
24258 echo "${ECHO_T}maybe" >&6; }
24259 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24274 export top_builddir
24275 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
24276 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
24283 if test "x$EXPERIMENTAL" = "xyes"; then
24284 bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
24285 mysubdirs=`echo $bar`
24287 for bar in `cat src/modules/stable`; do
24288 if test -f src/modules/$bar/configure; then
24289 mysubdirs="$mysubdirs src/modules/$bar"
24294 if test "x$EXPERIMENTAL" = "xyes"; then
24295 for foo in `ls -1 src/modules | grep rlm_`; do
24296 MODULES="$MODULES $foo"
24299 for foo in `cat src/modules/stable`; do
24300 MODULES="$MODULES $foo"
24304 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
24312 USE_SHARED_LIBS=$enable_shared
24314 USE_STATIC_LIBS=$enable_static
24322 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"
24324 cat >confcache <<\_ACEOF
24325 # This file is a shell script that caches the results of configure
24326 # tests run on this system so they can be shared between configure
24327 # scripts and configure runs, see configure's option --config-cache.
24328 # It is not useful on other systems. If it contains results you don't
24329 # want to keep, you may remove or edit it.
24331 # config.status only pays attention to the cache file if you give it
24332 # the --recheck option to rerun configure.
24334 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24335 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24336 # following values.
24340 # The following way of writing the cache mishandles newlines in values,
24341 # but we know of no workaround that is simple, portable, and efficient.
24342 # So, we kill variables containing newlines.
24343 # Ultrix sh set writes to stderr and can't be redirected directly,
24344 # and sets the high bit in the cache file unless we assign to the vars.
24346 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24347 eval ac_val=\$$ac_var
24351 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24352 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24355 _ | IFS | as_nl) ;; #(
24356 *) $as_unset $ac_var ;;
24362 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24363 *${as_nl}ac_space=\ *)
24364 # `set' does not quote correctly, so add quotes (double-quote
24365 # substitution turns \\\\ into \\, and sed turns \\ into \).
24368 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24371 # `set' quotes correctly as required by POSIX, so do not add quotes.
24372 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24381 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24383 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24385 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24386 if test -w "$cache_file"; then
24387 test "x$cache_file" != "x/dev/null" &&
24388 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24389 echo "$as_me: updating cache $cache_file" >&6;}
24390 cat confcache >$cache_file
24392 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24393 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24398 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24399 # Let make expand exec_prefix.
24400 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24402 DEFS=-DHAVE_CONFIG_H
24406 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24407 # 1. Remove the extension, and $U if already installed.
24408 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24409 ac_i=`echo "$ac_i" | sed "$ac_script"`
24410 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24411 # will be set to the directory where LIBOBJS objects are built.
24412 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24413 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24415 LIBOBJS=$ac_libobjs
24417 LTLIBOBJS=$ac_ltlibobjs
24421 : ${CONFIG_STATUS=./config.status}
24422 ac_clean_files_save=$ac_clean_files
24423 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24424 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24425 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24426 cat >$CONFIG_STATUS <<_ACEOF
24428 # Generated by $as_me.
24429 # Run this file to recreate the current configuration.
24430 # Compiler output produced by configure, useful for debugging
24431 # configure, is in config.log if it exists.
24434 ac_cs_recheck=false
24436 SHELL=\${CONFIG_SHELL-$SHELL}
24439 cat >>$CONFIG_STATUS <<\_ACEOF
24440 ## --------------------- ##
24441 ## M4sh Initialization. ##
24442 ## --------------------- ##
24444 # Be more Bourne compatible
24445 DUALCASE=1; export DUALCASE # for MKS sh
24446 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24449 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24450 # is contrary to our usage. Disable this feature.
24451 alias -g '${1+"$@"}'='"$@"'
24452 setopt NO_GLOB_SUBST
24454 case `(set -o) 2>/dev/null` in
24455 *posix*) set -o posix ;;
24464 # Avoid depending upon Character Ranges.
24465 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24466 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24467 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24468 as_cr_digits='0123456789'
24469 as_cr_alnum=$as_cr_Letters$as_cr_digits
24471 # The user is always right.
24472 if test "${PATH_SEPARATOR+set}" != set; then
24473 echo "#! /bin/sh" >conf$$.sh
24474 echo "exit 0" >>conf$$.sh
24476 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24484 # Support unset when possible.
24485 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24493 # We need space, tab and new line, in precisely that order. Quoting is
24494 # there to prevent editors from complaining about space-tab.
24495 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24496 # splitting by setting IFS to empty value.)
24501 # Find who we are. Look in the path if we contain no directory separator.
24503 *[\\/]* ) as_myself=$0 ;;
24504 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24505 for as_dir in $PATH
24508 test -z "$as_dir" && as_dir=.
24509 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24515 # We did not find ourselves, most probably we were run as `sh COMMAND'
24516 # in which case we are not to be found in the path.
24517 if test "x$as_myself" = x; then
24520 if test ! -f "$as_myself"; then
24521 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24522 { (exit 1); exit 1; }
24525 # Work around bugs in pre-3.0 UWIN ksh.
24526 for as_var in ENV MAIL MAILPATH
24527 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24535 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24536 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24537 LC_TELEPHONE LC_TIME
24539 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24540 eval $as_var=C; export $as_var
24542 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24546 # Required to use basename.
24547 if expr a : '\(a\)' >/dev/null 2>&1 &&
24548 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24554 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24555 as_basename=basename
24561 # Name of the executable.
24562 as_me=`$as_basename -- "$0" ||
24563 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24564 X"$0" : 'X\(//\)$' \| \
24565 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24567 sed '/^.*\/\([^/][^/]*\)\/*$/{
24586 as_lineno_1=$LINENO
24587 as_lineno_2=$LINENO
24588 test "x$as_lineno_1" != "x$as_lineno_2" &&
24589 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24591 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24592 # uniformly replaced by the line number. The first 'sed' inserts a
24593 # line-number line after each line using $LINENO; the second 'sed'
24594 # does the real work. The second script uses 'N' to pair each
24595 # line-number line with the line containing $LINENO, and appends
24596 # trailing '-' during substitution so that $LINENO is not a special
24597 # case at line end.
24598 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24599 # scripts with optimization help from Paolo Bonzini. Blame Lee
24600 # E. McMahon (1931-1989) for sed's syntax. :-)
24612 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24615 ' >$as_me.lineno &&
24616 chmod +x "$as_me.lineno" ||
24617 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24618 { (exit 1); exit 1; }; }
24620 # Don't try to exec as it changes $[0], causing all sort of problems
24621 # (the dirname of $[0] is not the place where we might find the
24622 # original and so on. Autoconf is especially sensitive to this).
24623 . "./$as_me.lineno"
24624 # Exit status is that of the last command.
24629 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24635 ECHO_C= ECHO_N= ECHO_T=
24636 case `echo -n x` in
24638 case `echo 'x\c'` in
24639 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24646 if expr a : '\(a\)' >/dev/null 2>&1 &&
24647 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24653 rm -f conf$$ conf$$.exe conf$$.file
24654 if test -d conf$$.dir; then
24655 rm -f conf$$.dir/conf$$.file
24661 if ln -s conf$$.file conf$$ 2>/dev/null; then
24663 # ... but there are two gotchas:
24664 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24665 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24666 # In both cases, we have to default to `cp -p'.
24667 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24669 elif ln conf$$.file conf$$ 2>/dev/null; then
24674 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24675 rmdir conf$$.dir 2>/dev/null
24677 if mkdir -p . 2>/dev/null; then
24680 test -d ./-p && rmdir ./-p
24684 if test -x / >/dev/null 2>&1; then
24685 as_test_x='test -x'
24687 if ls -dL / >/dev/null 2>&1; then
24694 if test -d "$1"; then
24700 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24701 ???[sx]*):;;*)false;;esac;fi
24705 as_executable_p=$as_test_x
24707 # Sed expression to map a string onto a valid CPP name.
24708 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24710 # Sed expression to map a string onto a valid variable name.
24711 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24716 # Save the log message, to keep $[0] and so on meaningful, and to
24717 # report actual input values of CONFIG_FILES etc. instead of their
24718 # values after options handling.
24720 This file was extended by $as_me, which was
24721 generated by GNU Autoconf 2.61. Invocation command line was
24723 CONFIG_FILES = $CONFIG_FILES
24724 CONFIG_HEADERS = $CONFIG_HEADERS
24725 CONFIG_LINKS = $CONFIG_LINKS
24726 CONFIG_COMMANDS = $CONFIG_COMMANDS
24729 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24734 cat >>$CONFIG_STATUS <<_ACEOF
24735 # Files that config.status was made for.
24736 config_files="$ac_config_files"
24737 config_headers="$ac_config_headers"
24741 cat >>$CONFIG_STATUS <<\_ACEOF
24743 \`$as_me' instantiates files from templates according to the
24744 current configuration.
24746 Usage: $0 [OPTIONS] [FILE]...
24748 -h, --help print this help, then exit
24749 -V, --version print version number and configuration settings, then exit
24750 -q, --quiet do not print progress messages
24751 -d, --debug don't remove temporary files
24752 --recheck update $as_me by reconfiguring in the same conditions
24753 --file=FILE[:TEMPLATE]
24754 instantiate the configuration file FILE
24755 --header=FILE[:TEMPLATE]
24756 instantiate the configuration header FILE
24758 Configuration files:
24761 Configuration headers:
24764 Report bugs to <bug-autoconf@gnu.org>."
24767 cat >>$CONFIG_STATUS <<_ACEOF
24770 configured by $0, generated by GNU Autoconf 2.61,
24771 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24773 Copyright (C) 2006 Free Software Foundation, Inc.
24774 This config.status script is free software; the Free Software Foundation
24775 gives unlimited permission to copy, distribute and modify it."
24781 cat >>$CONFIG_STATUS <<\_ACEOF
24782 # If no file are specified by the user, then we need to provide default
24783 # value. By we need to know if files were specified by the user.
24789 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24790 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24801 # Handling of the options.
24802 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24804 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24805 echo "$ac_cs_version"; exit ;;
24806 --debug | --debu | --deb | --de | --d | -d )
24808 --file | --fil | --fi | --f )
24810 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24811 ac_need_defaults=false;;
24812 --header | --heade | --head | --hea )
24814 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24815 ac_need_defaults=false;;
24817 # Conflict between --help and --header
24818 { echo "$as_me: error: ambiguous option: $1
24819 Try \`$0 --help' for more information." >&2
24820 { (exit 1); exit 1; }; };;
24821 --help | --hel | -h )
24822 echo "$ac_cs_usage"; exit ;;
24823 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24824 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24827 # This is an error.
24828 -*) { echo "$as_me: error: unrecognized option: $1
24829 Try \`$0 --help' for more information." >&2
24830 { (exit 1); exit 1; }; } ;;
24832 *) ac_config_targets="$ac_config_targets $1"
24833 ac_need_defaults=false ;;
24839 ac_configure_extra_args=
24841 if $ac_cs_silent; then
24843 ac_configure_extra_args="$ac_configure_extra_args --silent"
24847 cat >>$CONFIG_STATUS <<_ACEOF
24848 if \$ac_cs_recheck; then
24849 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24850 CONFIG_SHELL=$SHELL
24851 export CONFIG_SHELL
24852 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24856 cat >>$CONFIG_STATUS <<\_ACEOF
24860 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24861 ## Running $as_me. ##
24867 cat >>$CONFIG_STATUS <<_ACEOF
24870 cat >>$CONFIG_STATUS <<\_ACEOF
24872 # Handling of arguments.
24873 for ac_config_target in $ac_config_targets
24875 case $ac_config_target in
24876 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
24877 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
24878 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
24879 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
24880 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
24881 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
24882 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
24883 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
24884 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
24885 "./scripts/check-radiusd-config") CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
24886 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
24887 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
24888 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
24889 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
24890 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
24892 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24893 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24894 { (exit 1); exit 1; }; };;
24899 # If the user did not use the arguments to specify the items to instantiate,
24900 # then the envvar interface is used. Set only those that are not.
24901 # We use the long form for the default assignment because of an extremely
24902 # bizarre bug on SunOS 4.1.3.
24903 if $ac_need_defaults; then
24904 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24905 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24908 # Have a temporary directory for convenience. Make it in the build tree
24909 # simply because there is no reason against having it here, and in addition,
24910 # creating and moving files from /tmp can sometimes cause problems.
24911 # Hook for its removal unless debugging.
24912 # Note that there is a small window in which the directory will not be cleaned:
24913 # after its creation but before its name has been assigned to `$tmp'.
24917 trap 'exit_status=$?
24918 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24920 trap '{ (exit 1); exit 1; }' 1 2 13 15
24922 # Create a (secure) tmp directory for tmp files.
24925 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24926 test -n "$tmp" && test -d "$tmp"
24929 tmp=./conf$$-$RANDOM
24930 (umask 077 && mkdir "$tmp")
24933 echo "$me: cannot create a temporary directory in ." >&2
24934 { (exit 1); exit 1; }
24938 # Set up the sed scripts for CONFIG_FILES section.
24941 # No need to generate the scripts if there are no CONFIG_FILES.
24942 # This happens for instance when ./config.status config.h
24943 if test -n "$CONFIG_FILES"; then
24950 for ac_last_try in false false false false false :; do
24951 cat >conf$$subs.sed <<_ACEOF
24952 SHELL!$SHELL$ac_delim
24953 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24954 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24955 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24956 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24957 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24958 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24959 exec_prefix!$exec_prefix$ac_delim
24960 prefix!$prefix$ac_delim
24961 program_transform_name!$program_transform_name$ac_delim
24962 bindir!$bindir$ac_delim
24963 sbindir!$sbindir$ac_delim
24964 libexecdir!$libexecdir$ac_delim
24965 datarootdir!$datarootdir$ac_delim
24966 datadir!$datadir$ac_delim
24967 sysconfdir!$sysconfdir$ac_delim
24968 sharedstatedir!$sharedstatedir$ac_delim
24969 localstatedir!$localstatedir$ac_delim
24970 includedir!$includedir$ac_delim
24971 oldincludedir!$oldincludedir$ac_delim
24972 docdir!$docdir$ac_delim
24973 infodir!$infodir$ac_delim
24974 htmldir!$htmldir$ac_delim
24975 dvidir!$dvidir$ac_delim
24976 pdfdir!$pdfdir$ac_delim
24977 psdir!$psdir$ac_delim
24978 libdir!$libdir$ac_delim
24979 localedir!$localedir$ac_delim
24980 mandir!$mandir$ac_delim
24981 DEFS!$DEFS$ac_delim
24982 ECHO_C!$ECHO_C$ac_delim
24983 ECHO_N!$ECHO_N$ac_delim
24984 ECHO_T!$ECHO_T$ac_delim
24985 LIBS!$LIBS$ac_delim
24986 build_alias!$build_alias$ac_delim
24987 host_alias!$host_alias$ac_delim
24988 target_alias!$target_alias$ac_delim
24990 CFLAGS!$CFLAGS$ac_delim
24991 LDFLAGS!$LDFLAGS$ac_delim
24992 CPPFLAGS!$CPPFLAGS$ac_delim
24993 ac_ct_CC!$ac_ct_CC$ac_delim
24994 EXEEXT!$EXEEXT$ac_delim
24995 OBJEXT!$OBJEXT$ac_delim
24997 GREP!$GREP$ac_delim
24998 EGREP!$EGREP$ac_delim
24999 RANLIB!$RANLIB$ac_delim
25000 abs_top_builddir!$abs_top_builddir$ac_delim
25001 GMAKE!$GMAKE$ac_delim
25002 MAKE!$MAKE$ac_delim
25003 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
25004 LIBTOOL!$LIBTOOL$ac_delim
25005 build!$build$ac_delim
25006 build_cpu!$build_cpu$ac_delim
25007 build_vendor!$build_vendor$ac_delim
25008 build_os!$build_os$ac_delim
25009 host!$host$ac_delim
25010 host_cpu!$host_cpu$ac_delim
25011 host_vendor!$host_vendor$ac_delim
25012 host_os!$host_os$ac_delim
25013 LN_S!$LN_S$ac_delim
25014 ECHO!$ECHO$ac_delim
25016 STRIP!$STRIP$ac_delim
25018 CXXFLAGS!$CXXFLAGS$ac_delim
25019 ac_ct_CXX!$ac_ct_CXX$ac_delim
25020 CXXCPP!$CXXCPP$ac_delim
25022 FFLAGS!$FFLAGS$ac_delim
25023 ac_ct_F77!$ac_ct_F77$ac_delim
25024 logdir!$logdir$ac_delim
25025 radacctdir!$radacctdir$ac_delim
25026 raddbdir!$raddbdir$ac_delim
25027 PERL!$PERL$ac_delim
25028 SNMPGET!$SNMPGET$ac_delim
25029 SNMPWALK!$SNMPWALK$ac_delim
25030 RUSERS!$RUSERS$ac_delim
25031 ACLOCAL!$ACLOCAL$ac_delim
25032 AUTOCONF!$AUTOCONF$ac_delim
25033 AUTOHEADER!$AUTOHEADER$ac_delim
25034 LOCATE!$LOCATE$ac_delim
25035 DIRNAME!$DIRNAME$ac_delim
25036 REGEX!$REGEX$ac_delim
25037 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
25038 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
25039 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
25040 LIBPREFIX!$LIBPREFIX$ac_delim
25041 CRYPTLIB!$CRYPTLIB$ac_delim
25042 SNMP_LIBS!$SNMP_LIBS$ac_delim
25043 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
25044 GETCONF!$GETCONF$ac_delim
25045 LFS_CFLAGS!$LFS_CFLAGS$ac_delim
25046 LFS_LDFLAGS!$LFS_LDFLAGS$ac_delim
25047 LFS_LIBS!$LFS_LIBS$ac_delim
25048 HOSTINFO!$HOSTINFO$ac_delim
25051 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25053 elif $ac_last_try; then
25054 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25055 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25056 { (exit 1); exit 1; }; }
25058 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25062 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25063 if test -n "$ac_eof"; then
25064 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25065 ac_eof=`expr $ac_eof + 1`
25068 cat >>$CONFIG_STATUS <<_ACEOF
25069 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25070 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25073 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25074 s/^/s,@/; s/!/@,|#_!!_#|/
25077 s/'"$ac_delim"'$/,g/; t
25079 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25080 ' >>$CONFIG_STATUS <conf$$subs.sed
25081 rm -f conf$$subs.sed
25082 cat >>$CONFIG_STATUS <<_ACEOF
25088 for ac_last_try in false false false false false :; do
25089 cat >conf$$subs.sed <<_ACEOF
25090 LIBLTDL!$LIBLTDL$ac_delim
25091 INCLTDL!$INCLTDL$ac_delim
25092 subdirs!$subdirs$ac_delim
25093 MODULES!$MODULES$ac_delim
25094 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
25095 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
25096 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
25097 STATIC_MODULES!$STATIC_MODULES$ac_delim
25098 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
25099 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
25100 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
25101 LIBOBJS!$LIBOBJS$ac_delim
25102 LTLIBOBJS!$LTLIBOBJS$ac_delim
25105 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
25107 elif $ac_last_try; then
25108 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25109 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25110 { (exit 1); exit 1; }; }
25112 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25116 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25117 if test -n "$ac_eof"; then
25118 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25119 ac_eof=`expr $ac_eof + 1`
25122 cat >>$CONFIG_STATUS <<_ACEOF
25123 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25124 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25127 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25128 s/^/s,@/; s/!/@,|#_!!_#|/
25131 s/'"$ac_delim"'$/,g/; t
25133 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25134 ' >>$CONFIG_STATUS <conf$$subs.sed
25135 rm -f conf$$subs.sed
25136 cat >>$CONFIG_STATUS <<_ACEOF
25143 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25144 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25145 # trailing colons and then remove the whole line if VPATH becomes empty
25146 # (actually we leave an empty line to preserve line numbers).
25147 if test "x$srcdir" = x.; then
25148 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25149 s/:*\$(srcdir):*/:/
25150 s/:*\${srcdir}:*/:/
25152 s/^\([^=]*=[ ]*\):*/\1/
25158 cat >>$CONFIG_STATUS <<\_ACEOF
25159 fi # test -n "$CONFIG_FILES"
25162 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
25165 :[FHLC]) ac_mode=$ac_tag; continue;;
25167 case $ac_mode$ac_tag in
25169 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25170 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25171 { (exit 1); exit 1; }; };;
25172 :[FH]-) ac_tag=-:-;;
25173 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25190 -) ac_f="$tmp/stdin";;
25191 *) # Look for the file first in the build tree, then in the source tree
25192 # (if the path is not absolute). The absolute path cannot be DOS-style,
25193 # because $ac_f cannot contain `:'.
25197 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25199 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25200 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25201 { (exit 1); exit 1; }; };;
25203 ac_file_inputs="$ac_file_inputs $ac_f"
25206 # Let's still pretend it is `configure' which instantiates (i.e., don't
25207 # use $as_me), people would be surprised to read:
25208 # /* config.h. Generated by config.status. */
25209 configure_input="Generated from "`IFS=:
25210 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25211 if test x"$ac_file" != x-; then
25212 configure_input="$ac_file. $configure_input"
25213 { echo "$as_me:$LINENO: creating $ac_file" >&5
25214 echo "$as_me: creating $ac_file" >&6;}
25218 *:-:* | *:-) cat >"$tmp/stdin";;
25223 ac_dir=`$as_dirname -- "$ac_file" ||
25224 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25225 X"$ac_file" : 'X\(//\)[^/]' \| \
25226 X"$ac_file" : 'X\(//\)$' \| \
25227 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25233 /^X\(\/\/\)[^/].*/{
25248 -*) as_dir=./$as_dir;;
25250 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25254 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25255 *) as_qdir=$as_dir;;
25257 as_dirs="'$as_qdir' $as_dirs"
25258 as_dir=`$as_dirname -- "$as_dir" ||
25259 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25260 X"$as_dir" : 'X\(//\)[^/]' \| \
25261 X"$as_dir" : 'X\(//\)$' \| \
25262 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25268 /^X\(\/\/\)[^/].*/{
25281 test -d "$as_dir" && break
25283 test -z "$as_dirs" || eval "mkdir $as_dirs"
25284 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25285 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25286 { (exit 1); exit 1; }; }; }
25290 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25292 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25293 # A ".." for each directory in $ac_dir_suffix.
25294 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25295 case $ac_top_builddir_sub in
25296 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25297 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25300 ac_abs_top_builddir=$ac_pwd
25301 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25302 # for backward compatibility:
25303 ac_top_builddir=$ac_top_build_prefix
25306 .) # We are building in place.
25308 ac_top_srcdir=$ac_top_builddir_sub
25309 ac_abs_top_srcdir=$ac_pwd ;;
25310 [\\/]* | ?:[\\/]* ) # Absolute name.
25311 ac_srcdir=$srcdir$ac_dir_suffix;
25312 ac_top_srcdir=$srcdir
25313 ac_abs_top_srcdir=$srcdir ;;
25314 *) # Relative name.
25315 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25316 ac_top_srcdir=$ac_top_build_prefix$srcdir
25317 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25319 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25330 cat >>$CONFIG_STATUS <<\_ACEOF
25331 # If the template does not know about datarootdir, expand it.
25332 # FIXME: This hack should be removed a few years after 2.60.
25333 ac_datarootdir_hack=; ac_datarootdir_seen=
25335 case `sed -n '/datarootdir/ {
25344 ' $ac_file_inputs` in
25345 *datarootdir*) ac_datarootdir_seen=yes;;
25346 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25347 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25348 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25350 cat >>$CONFIG_STATUS <<_ACEOF
25351 ac_datarootdir_hack='
25352 s&@datadir@&$datadir&g
25353 s&@docdir@&$docdir&g
25354 s&@infodir@&$infodir&g
25355 s&@localedir@&$localedir&g
25356 s&@mandir@&$mandir&g
25357 s&\\\${datarootdir}&$datarootdir&g' ;;
25361 # Neutralize VPATH when `$srcdir' = `.'.
25362 # Shell code in configure.ac might set extrasub.
25363 # FIXME: do we really want to maintain this feature?
25364 cat >>$CONFIG_STATUS <<_ACEOF
25368 cat >>$CONFIG_STATUS <<\_ACEOF
25370 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25371 s&@configure_input@&$configure_input&;t t
25372 s&@top_builddir@&$ac_top_builddir_sub&;t t
25373 s&@srcdir@&$ac_srcdir&;t t
25374 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25375 s&@top_srcdir@&$ac_top_srcdir&;t t
25376 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25377 s&@builddir@&$ac_builddir&;t t
25378 s&@abs_builddir@&$ac_abs_builddir&;t t
25379 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25380 $ac_datarootdir_hack
25381 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25383 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25384 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25385 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25386 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25387 which seems to be undefined. Please make sure it is defined." >&5
25388 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25389 which seems to be undefined. Please make sure it is defined." >&2;}
25393 -) cat "$tmp/out"; rm -f "$tmp/out";;
25394 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25403 # Transform confdefs.h into a sed script `conftest.defines', that
25404 # substitutes the proper values into config.h.in to produce config.h.
25405 rm -f conftest.defines conftest.tail
25406 # First, append a space to every undef/define line, to ease matching.
25407 echo 's/$/ /' >conftest.defines
25408 # Then, protect against being on the right side of a sed subst, or in
25409 # an unquoted here document, in config.status. If some macros were
25410 # called several times there might be several #defines for the same
25411 # symbol, which is useless. But do not sort them, since the last
25412 # AC_DEFINE must be honored.
25413 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25414 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25415 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25416 # PARAMS is the parameter list in the macro definition--in most cases, it's
25417 # just an empty string.
25418 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25419 ac_dB='\\)[ (].*,\\1define\\2'
25427 s/^[ ]*#[ ]*define[ ][ ]*//
25432 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25433 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25434 ' >>conftest.defines
25436 # Remove the space that was appended to ease matching.
25437 # Then replace #undef with comments. This is necessary, for
25438 # example, in the case of _POSIX_SOURCE, which is predefined and required
25439 # on some systems where configure will not decide to define it.
25440 # (The regexp can be short, since the line contains either #define or #undef.)
25442 s,^[ #]*u.*,/* & */,' >>conftest.defines
25444 # Break up conftest.defines:
25445 ac_max_sed_lines=50
25447 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25448 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25449 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25451 ac_in='$ac_file_inputs'
25452 ac_out='"$tmp/out1"'
25453 ac_nxt='"$tmp/out2"'
25457 # Write a here document:
25458 cat >>$CONFIG_STATUS <<_ACEOF
25459 # First, check the format of the line:
25460 cat >"\$tmp/defines.sed" <<\\CEOF
25461 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25462 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25466 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25468 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25469 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25470 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25471 grep . conftest.tail >/dev/null || break
25472 rm -f conftest.defines
25473 mv conftest.tail conftest.defines
25475 rm -f conftest.defines conftest.tail
25477 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25478 cat >>$CONFIG_STATUS <<\_ACEOF
25479 if test x"$ac_file" != x-; then
25480 echo "/* $configure_input */" >"$tmp/config.h"
25481 cat "$ac_result" >>"$tmp/config.h"
25482 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25483 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25484 echo "$as_me: $ac_file is unchanged" >&6;}
25487 mv "$tmp/config.h" $ac_file
25490 echo "/* $configure_input */"
25502 { (exit 0); exit 0; }
25504 chmod +x $CONFIG_STATUS
25505 ac_clean_files=$ac_clean_files_save
25508 # configure is writing to config.log, and then calls config.status.
25509 # config.status does its own redirection, appending to config.log.
25510 # Unfortunately, on DOS this fails, as config.log is still kept open
25511 # by configure, so config.status won't be able to write to it; its
25512 # output is simply discarded. So we exec the FD to /dev/null,
25513 # effectively closing config.log, so it can be properly (re)opened and
25514 # appended to by config.status. When coming back to configure, we
25515 # need to make the FD available again.
25516 if test "$no_create" != yes; then
25518 ac_config_status_args=
25519 test "$silent" = yes &&
25520 ac_config_status_args="$ac_config_status_args --quiet"
25522 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25524 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25525 # would make configure fail if this is the last instruction.
25526 $ac_cs_success || { (exit 1); exit 1; }
25530 # CONFIG_SUBDIRS section.
25532 if test "$no_recursion" != yes; then
25534 # Remove --cache-file and --srcdir arguments so they do not pile up.
25535 ac_sub_configure_args=
25537 eval "set x $ac_configure_args"
25541 if test -n "$ac_prev"; then
25546 -cache-file | --cache-file | --cache-fil | --cache-fi \
25547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25548 ac_prev=cache_file ;;
25549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25553 --config-cache | -C)
25555 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25557 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25559 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25561 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25565 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25567 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
25571 # Always prepend --prefix to ensure using the same prefix
25572 # in subdir configurations.
25573 ac_arg="--prefix=$prefix"
25575 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25577 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
25580 if test "$silent" = yes; then
25581 ac_sub_configure_args="--silent $ac_sub_configure_args"
25585 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25587 # Do not complain, so a configure script can configure whichever
25588 # parts of a large source tree are present.
25589 test -d "$srcdir/$ac_dir" || continue
25591 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
25592 echo "$as_me:$LINENO: $ac_msg" >&5
25596 -*) as_dir=./$as_dir;;
25598 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25602 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25603 *) as_qdir=$as_dir;;
25605 as_dirs="'$as_qdir' $as_dirs"
25606 as_dir=`$as_dirname -- "$as_dir" ||
25607 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25608 X"$as_dir" : 'X\(//\)[^/]' \| \
25609 X"$as_dir" : 'X\(//\)$' \| \
25610 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25616 /^X\(\/\/\)[^/].*/{
25629 test -d "$as_dir" && break
25631 test -z "$as_dirs" || eval "mkdir $as_dirs"
25632 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25633 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25634 { (exit 1); exit 1; }; }; }
25638 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25640 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25641 # A ".." for each directory in $ac_dir_suffix.
25642 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25643 case $ac_top_builddir_sub in
25644 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25645 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25648 ac_abs_top_builddir=$ac_pwd
25649 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25650 # for backward compatibility:
25651 ac_top_builddir=$ac_top_build_prefix
25654 .) # We are building in place.
25656 ac_top_srcdir=$ac_top_builddir_sub
25657 ac_abs_top_srcdir=$ac_pwd ;;
25658 [\\/]* | ?:[\\/]* ) # Absolute name.
25659 ac_srcdir=$srcdir$ac_dir_suffix;
25660 ac_top_srcdir=$srcdir
25661 ac_abs_top_srcdir=$srcdir ;;
25662 *) # Relative name.
25663 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25664 ac_top_srcdir=$ac_top_build_prefix$srcdir
25665 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25667 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25672 # Check for guested configure; otherwise get Cygnus style configure.
25673 if test -f "$ac_srcdir/configure.gnu"; then
25674 ac_sub_configure=$ac_srcdir/configure.gnu
25675 elif test -f "$ac_srcdir/configure"; then
25676 ac_sub_configure=$ac_srcdir/configure
25677 elif test -f "$ac_srcdir/configure.in"; then
25678 # This should be Cygnus configure.
25679 ac_sub_configure=$ac_aux_dir/configure
25681 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25682 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25686 # The recursion is here.
25687 if test -n "$ac_sub_configure"; then
25688 # Make the cache file name correct relative to the subdirectory.
25689 case $cache_file in
25690 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25691 *) # Relative name.
25692 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
25695 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25696 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25697 # The eval makes quoting arguments work.
25698 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
25699 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
25700 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25701 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25702 { (exit 1); exit 1; }; }
25710 ac_config_commands="$ac_config_commands default-1"
25712 ac_config_commands="$ac_config_commands default-2"
25714 ac_config_commands="$ac_config_commands default-3"
25716 ac_config_commands="$ac_config_commands default-4"