2 # From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#35 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for OpenBSM 1.0.
6 # Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir=.
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
261 CONFIG_SHELL=$as_shell
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
289 as_func_ret_success () {
292 as_func_ret_failure () {
297 if as_func_success; then
301 echo as_func_success failed.
304 if as_func_failure; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
475 ECHO_C= ECHO_N= ECHO_T=
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 elif ln conf$$.file conf$$ 2>/dev/null; then
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
520 test -d ./-p && rmdir ./-p
524 if test -x / >/dev/null 2>&1; then
527 if ls -dL / >/dev/null 2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Remove one level of quotation (which was required for Make).
562 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
567 if test "X$1" = X--no-reexec; then
568 # Discard the --no-reexec flag, and continue.
570 elif test "X$1" = X--fallback-echo; then
571 # Avoid inline document here, it may be left over
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574 # Yippee, $echo works!
577 # Restart under the correct shell.
578 exec $SHELL "$0" --no-reexec ${1+"$@"}
581 if test "X$1" = X--fallback-echo; then
582 # used as fallback echo
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600 echo_test_string=`eval $cmd` &&
601 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # The Solaris, AIX, and Digital Unix default echo programs unquote
614 # backslashes. This makes it impossible to quote backslashes using
615 # echo "$something" | sed 's/\\/\\\\/g'
617 # So, first we look for a working echo in the user's PATH.
619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620 for dir in $PATH /usr/ucb; do
622 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
632 if test "X$echo" = Xecho; then
633 # We didn't find a better echo, so look for alternatives.
634 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 # This shell has a builtin print -r that does the trick.
639 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640 test "X$CONFIG_SHELL" != X/bin/ksh; then
641 # If we have ksh, try running configure again with it.
642 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643 export ORIGINAL_CONFIG_SHELL
644 CONFIG_SHELL=/bin/ksh
646 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
650 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652 test "X$echo_testing_string" = "X$echo_test_string"; then
655 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656 test "X$echo_testing_string" = 'X\t' &&
657 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658 test "X$echo_testing_string" = "X$echo_test_string"; then
659 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 SHELL="$CONFIG_SHELL"
663 echo="$CONFIG_SHELL $0 --fallback-echo"
664 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665 test "X$echo_testing_string" = 'X\t' &&
666 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667 test "X$echo_testing_string" = "X$echo_test_string"; then
668 echo="$CONFIG_SHELL $0 --fallback-echo"
670 # maybe with a smaller string...
673 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
681 if test "$prev" != 'sed 50q "$0"'; then
682 echo_test_string=`eval $prev`
683 export echo_test_string
684 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 # Oops. We lost completely, so just stick with echo.
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
705 tagnames=${tagnames+${tagnames},}CXX
707 tagnames=${tagnames+${tagnames},}F77
709 exec 7<&0 </dev/null 6>&1
712 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713 # so uname gets run too.
714 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
719 ac_default_prefix=/usr/local
721 ac_config_libobj_dir=.
727 SHELL=${CONFIG_SHELL-/bin/sh}
729 # Identity of this package.
730 PACKAGE_NAME='OpenBSM'
731 PACKAGE_TARNAME='openbsm'
732 PACKAGE_VERSION='1.0'
733 PACKAGE_STRING='OpenBSM 1.0'
734 PACKAGE_BUGREPORT='trustedbsd-audit@TrustesdBSD.org'
736 ac_unique_file="bin/auditreduce/auditreduce.c"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
750 # ifdef HAVE_STDLIB_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
784 program_transform_name
813 MAINTAINER_MODE_FALSE
860 INSTALL_STRIP_PROGRAM
881 HAVE_AUDIT_SYSCALLS_TRUE
882 HAVE_AUDIT_SYSCALLS_FALSE
885 ac_precious_vars='build_alias
902 # Initialize some variables set by options.
904 ac_init_version=false
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
914 program_transform_name=s,x,x,
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939 infodir='${datarootdir}/info'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
954 eval $ac_prev=\$ac_option
960 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964 # Accept the important Cygnus configure options, so we can diagnose typos.
966 case $ac_dashdash$ac_option in
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
988 cache_file=config.cache ;;
990 -datadir | --datadir | --datadi | --datad)
992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
993 datadir=$ac_optarg ;;
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1002 -disable-* | --disable-*)
1003 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007 { (exit 1); exit 1; }; }
1008 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009 eval enable_$ac_feature=no ;;
1011 -docdir | --docdir | --docdi | --doc | --do)
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
1021 -enable-* | --enable-*)
1022 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026 { (exit 1); exit 1; }; }
1027 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028 eval enable_$ac_feature=\$ac_optarg ;;
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
1037 exec_prefix=$ac_optarg ;;
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
1050 -host | --host | --hos | --ho)
1051 ac_prev=host_alias ;;
1052 -host=* | --host=* | --hos=* | --ho=*)
1053 host_alias=$ac_optarg ;;
1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 htmldir=$ac_optarg ;;
1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
1066 includedir=$ac_optarg ;;
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071 infodir=$ac_optarg ;;
1073 -libdir | --libdir | --libdi | --libd)
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076 libdir=$ac_optarg ;;
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
1083 libexecdir=$ac_optarg ;;
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
1091 | --localstate | --localstat | --localsta | --localst | --locals)
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095 localstatedir=$ac_optarg ;;
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100 mandir=$ac_optarg ;;
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107 | --no-cr | --no-c | -n)
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121 oldincludedir=$ac_optarg ;;
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126 prefix=$ac_optarg ;;
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133 program_prefix=$ac_optarg ;;
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140 program_suffix=$ac_optarg ;;
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
1157 program_transform_name=$ac_optarg ;;
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1164 -psdir | --psdir | --psdi | --psd | --ps)
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 sbindir=$ac_optarg ;;
1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181 | --sharedst | --shareds | --shared | --share | --shar \
1183 ac_prev=sharedstatedir ;;
1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 sharedstatedir=$ac_optarg ;;
1190 -site | --site | --sit)
1192 -site=* | --site=* | --sit=*)
1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198 srcdir=$ac_optarg ;;
1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201 | --syscon | --sysco | --sysc | --sys | --sy)
1202 ac_prev=sysconfdir ;;
1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205 sysconfdir=$ac_optarg ;;
1207 -target | --target | --targe | --targ | --tar | --ta | --t)
1208 ac_prev=target_alias ;;
1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210 target_alias=$ac_optarg ;;
1212 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 -version | --version | --versio | --versi | --vers | -V)
1216 ac_init_version=: ;;
1219 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 { echo "$as_me: error: invalid package name: $ac_package" >&2
1223 { (exit 1); exit 1; }; }
1224 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225 eval with_$ac_package=\$ac_optarg ;;
1227 -without-* | --without-*)
1228 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 { echo "$as_me: error: invalid package name: $ac_package" >&2
1232 { (exit 1); exit 1; }; }
1233 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234 eval with_$ac_package=no ;;
1237 # Obsolete; use --with-x.
1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241 | --x-incl | --x-inc | --x-in | --x-i)
1242 ac_prev=x_includes ;;
1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245 x_includes=$ac_optarg ;;
1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249 ac_prev=x_libraries ;;
1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252 x_libraries=$ac_optarg ;;
1254 -*) { echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256 { (exit 1); exit 1; }; }
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264 { (exit 1); exit 1; }; }
1265 eval $ac_envvar=\$ac_optarg
1266 export $ac_envvar ;;
1269 # FIXME: should be removed in autoconf 3.0.
1270 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1279 if test -n "$ac_prev"; then
1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281 { echo "$as_me: error: missing argument to $ac_option" >&2
1282 { (exit 1); exit 1; }; }
1285 # Be sure to have absolute directory names.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1291 eval ac_val=\$$ac_var
1293 [\\/$]* | ?:[\\/]* ) continue;;
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1297 { (exit 1); exit 1; }; }
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1305 target=$target_alias
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
1311 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1312 If a cross compiler is detected then cross compile mode will be used." >&2
1313 elif test "x$build_alias" != "x$host_alias"; then
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321 test "$silent" = yes && exec 6>/dev/null
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 { echo "$as_me: error: Working directory cannot be determined" >&2
1328 { (exit 1); exit 1; }; }
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330 { echo "$as_me: error: pwd does not report name of working directory" >&2
1331 { (exit 1); exit 1; }; }
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
1337 # Try the directory containing this script, then the parent directory.
1338 ac_confdir=`$as_dirname -- "$0" ||
1339 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$0" : 'X\(//\)[^/]' \| \
1341 X"$0" : 'X\(//\)$' \| \
1342 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1366 ac_srcdir_defaulted=no
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1371 { (exit 1); exit 1; }; }
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1376 { (exit 1); exit 1; }; }
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 # Report the --help message.
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1402 \`configure' configures OpenBSM 1.0 to adapt to many kinds of systems.
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1409 Defaults for the options are specified in brackets.
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1433 For better control, use the options below.
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/openbsm]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1470 if test -n "$ac_init_help"; then
1471 case $ac_init_help in
1472 short | recursive ) echo "Configuration of OpenBSM 1.0:";;
1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1479 --enable-maintainer-mode enable make rules and dependencies not useful
1480 (and sometimes confusing) to the casual installer
1481 --enable-shared[=PKGS] build shared libraries [default=yes]
1482 --enable-static[=PKGS] build static libraries [default=yes]
1483 --enable-fast-install[=PKGS]
1484 optimize for fast installation [default=yes]
1485 --disable-libtool-lock avoid locking (might break parallel builds)
1486 --disable-dependency-tracking speeds up one-time build
1487 --enable-dependency-tracking do not reject slow dependency extractors
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1493 --with-pic try to use only PIC/non-PIC objects [default=use
1495 --with-tags[=TAGS] include additional configurations [automatic]
1497 Some influential environment variables:
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
1502 LIBS libraries to pass to the linker, e.g. -l<library>
1503 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1504 you have headers in a nonstandard directory <include dir>
1506 CXX C++ compiler command
1507 CXXFLAGS C++ compiler flags
1508 CXXCPP C++ preprocessor
1509 F77 Fortran 77 compiler command
1510 FFLAGS Fortran 77 compiler flags
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1515 Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
1520 if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523 test -d "$ac_dir" || continue
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1543 .) # We are building in place.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1567 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1576 OpenBSM configure 1.0
1577 generated by GNU Autoconf 2.61
1579 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1580 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1586 cat >config.log <<_ACEOF
1587 This file contains any messages produced by compilers while
1588 running configure, to aid debugging if configure makes a mistake.
1590 It was created by OpenBSM $as_me 1.0, which was
1591 generated by GNU Autoconf 2.61. Invocation command line was
1603 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1604 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1605 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1606 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1607 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1609 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1610 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1612 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1613 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1614 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1615 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1616 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1617 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1618 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 test -z "$as_dir" && as_dir=.
1627 echo "PATH: $as_dir"
1643 # Keep a trace of the command line.
1644 # Strip out --no-create and --no-recursion so they do not pile up.
1645 # Strip out --silent because we don't want to record it for future runs.
1646 # Also quote any args containing shell meta-characters.
1647 # Make two passes to allow for proper duplicate-argument suppression.
1651 ac_must_keep_next=false
1657 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1659 | -silent | --silent | --silen | --sile | --sil)
1662 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1665 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1667 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1668 if test $ac_must_keep_next = true; then
1669 ac_must_keep_next=false # Got value, back to normal.
1672 *=* | --config-cache | -C | -disable-* | --disable-* \
1673 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1674 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1675 | -with-* | --with-* | -without-* | --without-* | --x)
1676 case "$ac_configure_args0 " in
1677 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1680 -* ) ac_must_keep_next=true ;;
1683 ac_configure_args="$ac_configure_args '$ac_arg'"
1688 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1689 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1691 # When interrupted or exit'd, cleanup temporary files, and complete
1692 # config.log. We remove comments because anyway the quotes in there
1693 # would cause problems or look ugly.
1694 # WARNING: Use '\'' to represent an apostrophe within the trap.
1695 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1696 trap 'exit_status=$?
1697 # Save into config.log some information that might help in debugging.
1702 ## ---------------- ##
1703 ## Cache variables. ##
1704 ## ---------------- ##
1707 # The following way of writing the cache mishandles newlines in values,
1709 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1710 eval ac_val=\$$ac_var
1714 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1715 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1718 _ | IFS | as_nl) ;; #(
1719 *) $as_unset $ac_var ;;
1724 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1725 *${as_nl}ac_space=\ *)
1727 "s/'\''/'\''\\\\'\'''\''/g;
1728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1739 ## ----------------- ##
1740 ## Output variables. ##
1741 ## ----------------- ##
1744 for ac_var in $ac_subst_vars
1746 eval ac_val=\$$ac_var
1748 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750 echo "$ac_var='\''$ac_val'\''"
1754 if test -n "$ac_subst_files"; then
1756 ## ------------------- ##
1757 ## File substitutions. ##
1758 ## ------------------- ##
1761 for ac_var in $ac_subst_files
1763 eval ac_val=\$$ac_var
1765 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1767 echo "$ac_var='\''$ac_val'\''"
1772 if test -s confdefs.h; then
1782 test "$ac_signal" != 0 &&
1783 echo "$as_me: caught signal $ac_signal"
1784 echo "$as_me: exit $exit_status"
1786 rm -f core *.core core.conftest.* &&
1787 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1790 for ac_signal in 1 2 13 15; do
1791 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1795 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1796 rm -f -r conftest* confdefs.h
1798 # Predefined preprocessor variables.
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_NAME "$PACKAGE_NAME"
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_STRING "$PACKAGE_STRING"
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1825 # Let the site file select an alternate cache file if it wants to.
1826 # Prefer explicitly selected file to automatically selected ones.
1827 if test -n "$CONFIG_SITE"; then
1828 set x "$CONFIG_SITE"
1829 elif test "x$prefix" != xNONE; then
1830 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1832 set x "$ac_default_prefix/share/config.site" \
1833 "$ac_default_prefix/etc/config.site"
1838 if test -r "$ac_site_file"; then
1839 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1840 echo "$as_me: loading site script $ac_site_file" >&6;}
1841 sed 's/^/| /' "$ac_site_file" >&5
1846 if test -r "$cache_file"; then
1847 # Some versions of bash will fail to source /dev/null (special
1848 # files actually), so we avoid doing that.
1849 if test -f "$cache_file"; then
1850 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1851 echo "$as_me: loading cache $cache_file" >&6;}
1853 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1854 *) . "./$cache_file";;
1858 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1859 echo "$as_me: creating cache $cache_file" >&6;}
1863 ac_header_list="$ac_header_list sys/time.h"
1864 ac_header_list="$ac_header_list unistd.h"
1865 ac_func_list="$ac_func_list alarm"
1866 # Check that the precious variables saved in the cache have kept the same
1868 ac_cache_corrupted=false
1869 for ac_var in $ac_precious_vars; do
1870 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1871 eval ac_new_set=\$ac_env_${ac_var}_set
1872 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1873 eval ac_new_val=\$ac_env_${ac_var}_value
1874 case $ac_old_set,$ac_new_set in
1876 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1877 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1878 ac_cache_corrupted=: ;;
1880 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1881 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1882 ac_cache_corrupted=: ;;
1885 if test "x$ac_old_val" != "x$ac_new_val"; then
1886 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1887 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1888 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1889 echo "$as_me: former value: $ac_old_val" >&2;}
1890 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1891 echo "$as_me: current value: $ac_new_val" >&2;}
1892 ac_cache_corrupted=:
1895 # Pass precious variables to config.status.
1896 if test "$ac_new_set" = set; then
1898 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1899 *) ac_arg=$ac_var=$ac_new_val ;;
1901 case " $ac_configure_args " in
1902 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1903 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1907 if $ac_cache_corrupted; then
1908 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1909 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1910 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1911 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1912 { (exit 1); exit 1; }; }
1940 ac_cpp='$CPP $CPPFLAGS'
1941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1949 for ac_dir in config "$srcdir"/config; do
1950 if test -f "$ac_dir/install-sh"; then
1952 ac_install_sh="$ac_aux_dir/install-sh -c"
1954 elif test -f "$ac_dir/install.sh"; then
1956 ac_install_sh="$ac_aux_dir/install.sh -c"
1958 elif test -f "$ac_dir/shtool"; then
1960 ac_install_sh="$ac_aux_dir/shtool install -c"
1964 if test -z "$ac_aux_dir"; then
1965 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1966 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1967 { (exit 1); exit 1; }; }
1970 # These three variables are undocumented and unsupported,
1971 # and are intended to be withdrawn in a future Autoconf release.
1972 # They can cause serious problems if a builder's source tree is in a directory
1973 # whose full name contains unusual characters.
1974 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1975 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1976 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1979 ac_config_headers="$ac_config_headers config/config.h"
1981 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1982 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
1983 # Check whether --enable-maintainer-mode was given.
1984 if test "${enable_maintainer_mode+set}" = set; then
1985 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1987 USE_MAINTAINER_MODE=no
1990 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1991 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
1992 if test $USE_MAINTAINER_MODE = yes; then
1993 MAINTAINER_MODE_TRUE=
1994 MAINTAINER_MODE_FALSE='#'
1996 MAINTAINER_MODE_TRUE='#'
1997 MAINTAINER_MODE_FALSE=
2000 MAINT=$MAINTAINER_MODE_TRUE
2004 # Checks for programs.
2006 ac_cpp='$CPP $CPPFLAGS'
2007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010 if test -n "$ac_tool_prefix"; then
2011 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2012 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 if test -n "$CC"; then
2019 ac_cv_prog_CC="$CC" # Let the user override the test.
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 if test -n "$CC"; then
2040 { echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6; }
2043 { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2049 if test -z "$ac_cv_prog_CC"; then
2051 # Extract the first word of "gcc", so it can be a program name with args.
2052 set dummy gcc; ac_word=$2
2053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 if test -n "$ac_ct_CC"; then
2059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2068 ac_cv_prog_ac_ct_CC="gcc"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2079 if test -n "$ac_ct_CC"; then
2080 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2081 echo "${ECHO_T}$ac_ct_CC" >&6; }
2083 { echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6; }
2087 if test "x$ac_ct_CC" = x; then
2090 case $cross_compiling:$ac_tool_warned in
2092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2093 whose name does not start with the host triplet. If you think this
2094 configuration is useful to you, please write to autoconf@gnu.org." >&5
2095 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2096 whose name does not start with the host triplet. If you think this
2097 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2098 ac_tool_warned=yes ;;
2106 if test -z "$CC"; then
2107 if test -n "$ac_tool_prefix"; then
2108 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2109 set dummy ${ac_tool_prefix}cc; ac_word=$2
2110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2112 if test "${ac_cv_prog_CC+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 if test -n "$CC"; then
2116 ac_cv_prog_CC="$CC" # Let the user override the test.
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 test -z "$as_dir" && as_dir=.
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2125 ac_cv_prog_CC="${ac_tool_prefix}cc"
2126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136 if test -n "$CC"; then
2137 { echo "$as_me:$LINENO: result: $CC" >&5
2138 echo "${ECHO_T}$CC" >&6; }
2140 { echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6; }
2147 if test -z "$CC"; then
2148 # Extract the first word of "cc", so it can be a program name with args.
2149 set dummy cc; ac_word=$2
2150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2152 if test "${ac_cv_prog_CC+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 if test -n "$CC"; then
2156 ac_cv_prog_CC="$CC" # Let the user override the test.
2159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 test -z "$as_dir" && as_dir=.
2164 for ac_exec_ext in '' $ac_executable_extensions; do
2165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2166 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2167 ac_prog_rejected=yes
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178 if test $ac_prog_rejected = yes; then
2179 # We found a bogon in the path, so make sure we never use it.
2180 set dummy $ac_cv_prog_CC
2182 if test $# != 0; then
2183 # We chose a different compiler from the bogus one.
2184 # However, it has the same basename, so the bogon will be chosen
2185 # first if we set CC to just the basename; use the full file name.
2187 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2193 if test -n "$CC"; then
2194 { echo "$as_me:$LINENO: result: $CC" >&5
2195 echo "${ECHO_T}$CC" >&6; }
2197 { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2203 if test -z "$CC"; then
2204 if test -n "$ac_tool_prefix"; then
2205 for ac_prog in cl.exe
2207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2211 if test "${ac_cv_prog_CC+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 if test -n "$CC"; then
2215 ac_cv_prog_CC="$CC" # Let the user override the test.
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 test -z "$as_dir" && as_dir=.
2222 for ac_exec_ext in '' $ac_executable_extensions; do
2223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2224 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235 if test -n "$CC"; then
2236 { echo "$as_me:$LINENO: result: $CC" >&5
2237 echo "${ECHO_T}$CC" >&6; }
2239 { echo "$as_me:$LINENO: result: no" >&5
2240 echo "${ECHO_T}no" >&6; }
2244 test -n "$CC" && break
2247 if test -z "$CC"; then
2249 for ac_prog in cl.exe
2251 # Extract the first word of "$ac_prog", so it can be a program name with args.
2252 set dummy $ac_prog; ac_word=$2
2253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2255 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 if test -n "$ac_ct_CC"; then
2259 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 test -z "$as_dir" && as_dir=.
2266 for ac_exec_ext in '' $ac_executable_extensions; do
2267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2268 ac_cv_prog_ac_ct_CC="$ac_prog"
2269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2279 if test -n "$ac_ct_CC"; then
2280 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2281 echo "${ECHO_T}$ac_ct_CC" >&6; }
2283 { echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6; }
2288 test -n "$ac_ct_CC" && break
2291 if test "x$ac_ct_CC" = x; then
2294 case $cross_compiling:$ac_tool_warned in
2296 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2297 whose name does not start with the host triplet. If you think this
2298 configuration is useful to you, please write to autoconf@gnu.org." >&5
2299 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2300 whose name does not start with the host triplet. If you think this
2301 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2302 ac_tool_warned=yes ;;
2311 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2312 See \`config.log' for more details." >&5
2313 echo "$as_me: error: no acceptable C compiler found in \$PATH
2314 See \`config.log' for more details." >&2;}
2315 { (exit 1); exit 1; }; }
2317 # Provide some information about the compiler.
2318 echo "$as_me:$LINENO: checking for C compiler version" >&5
2319 ac_compiler=`set X $ac_compile; echo $2`
2320 { (ac_try="$ac_compiler --version >&5"
2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2326 (eval "$ac_compiler --version >&5") 2>&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }
2330 { (ac_try="$ac_compiler -v >&5"
2332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333 *) ac_try_echo=$ac_try;;
2335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2336 (eval "$ac_compiler -v >&5") 2>&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }
2340 { (ac_try="$ac_compiler -V >&5"
2342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2343 *) ac_try_echo=$ac_try;;
2345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2346 (eval "$ac_compiler -V >&5") 2>&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }
2351 cat >conftest.$ac_ext <<_ACEOF
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h. */
2366 ac_clean_files_save=$ac_clean_files
2367 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2368 # Try to create an executable without -o first, disregard a.out.
2369 # It will help us diagnose broken compilers, and finding out an intuition
2371 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2372 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2373 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2375 # List of possible output files, starting from the most likely.
2376 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2377 # only as a last resort. b.out is created by i960 compilers.
2378 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2380 # The IRIX 6 linker writes into existing files which may not be
2381 # executable, retaining their permissions. Remove them first so a
2382 # subsequent execution test works.
2384 for ac_file in $ac_files
2387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2388 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2393 if { (ac_try="$ac_link_default"
2395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396 *) ac_try_echo=$ac_try;;
2398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2399 (eval "$ac_link_default") 2>&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; then
2403 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2404 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2405 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2406 # so that the user can short-circuit this test for compilers unknown to
2408 for ac_file in $ac_files ''
2410 test -f "$ac_file" || continue
2412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2415 # We found the default executable, but exeext='' is most
2419 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2421 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2423 # We set ac_cv_exeext here because the later test for it is not
2424 # safe: cross compilers may not add the suffix if given an `-o'
2425 # argument, so we may need to know it at that point already.
2426 # Even if this section looks crufty: it has the advantage of
2433 test "$ac_cv_exeext" = no && ac_cv_exeext=
2439 { echo "$as_me:$LINENO: result: $ac_file" >&5
2440 echo "${ECHO_T}$ac_file" >&6; }
2441 if test -z "$ac_file"; then
2442 echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2445 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2446 See \`config.log' for more details." >&5
2447 echo "$as_me: error: C compiler cannot create executables
2448 See \`config.log' for more details." >&2;}
2449 { (exit 77); exit 77; }; }
2452 ac_exeext=$ac_cv_exeext
2454 # Check that the compiler produces executables we can run. If not, either
2455 # the compiler is broken, or we cross compile.
2456 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2457 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2458 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2459 # If not cross compiling, check that we can run a simple program.
2460 if test "$cross_compiling" != yes; then
2461 if { ac_try='./$ac_file'
2462 { (case "(($ac_try" in
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467 (eval "$ac_try") 2>&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
2473 if test "$cross_compiling" = maybe; then
2476 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2477 If you meant to cross compile, use \`--host'.
2478 See \`config.log' for more details." >&5
2479 echo "$as_me: error: cannot run C compiled programs.
2480 If you meant to cross compile, use \`--host'.
2481 See \`config.log' for more details." >&2;}
2482 { (exit 1); exit 1; }; }
2486 { echo "$as_me:$LINENO: result: yes" >&5
2487 echo "${ECHO_T}yes" >&6; }
2489 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2490 ac_clean_files=$ac_clean_files_save
2491 # Check that the compiler produces executables we can run. If not, either
2492 # the compiler is broken, or we cross compile.
2493 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2494 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2495 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2496 echo "${ECHO_T}$cross_compiling" >&6; }
2498 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2499 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2500 if { (ac_try="$ac_link"
2502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503 *) ac_try_echo=$ac_try;;
2505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2506 (eval "$ac_link") 2>&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; then
2510 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2511 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2512 # work properly (i.e., refer to `conftest.exe'), while it won't with
2514 for ac_file in conftest.exe conftest conftest.*; do
2515 test -f "$ac_file" || continue
2517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2518 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2524 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2525 See \`config.log' for more details." >&5
2526 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2527 See \`config.log' for more details." >&2;}
2528 { (exit 1); exit 1; }; }
2531 rm -f conftest$ac_cv_exeext
2532 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2533 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2535 rm -f conftest.$ac_ext
2536 EXEEXT=$ac_cv_exeext
2538 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2539 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2540 if test "${ac_cv_objext+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 cat >conftest.$ac_ext <<_ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2558 rm -f conftest.o conftest.obj
2559 if { (ac_try="$ac_compile"
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_compile") 2>&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; then
2569 for ac_file in conftest.o conftest.obj conftest.*; do
2570 test -f "$ac_file" || continue;
2572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2573 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2578 echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2581 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2582 See \`config.log' for more details." >&5
2583 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2584 See \`config.log' for more details." >&2;}
2585 { (exit 1); exit 1; }; }
2588 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2590 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2591 echo "${ECHO_T}$ac_cv_objext" >&6; }
2592 OBJEXT=$ac_cv_objext
2594 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2595 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2596 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 cat >conftest.$ac_ext <<_ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h. */
2617 rm -f conftest.$ac_objext
2618 if { (ac_try="$ac_compile"
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2624 (eval "$ac_compile") 2>conftest.er1
2626 grep -v '^ *+' conftest.er1 >conftest.err
2628 cat conftest.err >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); } && {
2631 test -z "$ac_c_werror_flag" ||
2632 test ! -s conftest.err
2633 } && test -s conftest.$ac_objext; then
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2646 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2647 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2648 GCC=`test $ac_compiler_gnu = yes && echo yes`
2649 ac_test_CFLAGS=${CFLAGS+set}
2650 ac_save_CFLAGS=$CFLAGS
2651 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2652 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2653 if test "${ac_cv_prog_cc_g+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2656 ac_save_c_werror_flag=$ac_c_werror_flag
2657 ac_c_werror_flag=yes
2660 cat >conftest.$ac_ext <<_ACEOF
2663 cat confdefs.h >>conftest.$ac_ext
2664 cat >>conftest.$ac_ext <<_ACEOF
2665 /* end confdefs.h. */
2675 rm -f conftest.$ac_objext
2676 if { (ac_try="$ac_compile"
2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2682 (eval "$ac_compile") 2>conftest.er1
2684 grep -v '^ *+' conftest.er1 >conftest.err
2686 cat conftest.err >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } && {
2689 test -z "$ac_c_werror_flag" ||
2690 test ! -s conftest.err
2691 } && test -s conftest.$ac_objext; then
2694 echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2698 cat >conftest.$ac_ext <<_ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h. */
2713 rm -f conftest.$ac_objext
2714 if { (ac_try="$ac_compile"
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_compile") 2>conftest.er1
2722 grep -v '^ *+' conftest.er1 >conftest.err
2724 cat conftest.err >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } && {
2727 test -z "$ac_c_werror_flag" ||
2728 test ! -s conftest.err
2729 } && test -s conftest.$ac_objext; then
2732 echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2735 ac_c_werror_flag=$ac_save_c_werror_flag
2737 cat >conftest.$ac_ext <<_ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h. */
2752 rm -f conftest.$ac_objext
2753 if { (ac_try="$ac_compile"
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_compile") 2>conftest.er1
2761 grep -v '^ *+' conftest.er1 >conftest.err
2763 cat conftest.err >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } && {
2766 test -z "$ac_c_werror_flag" ||
2767 test ! -s conftest.err
2768 } && test -s conftest.$ac_objext; then
2771 echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 ac_c_werror_flag=$ac_save_c_werror_flag
2786 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2787 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2788 if test "$ac_test_CFLAGS" = set; then
2789 CFLAGS=$ac_save_CFLAGS
2790 elif test $ac_cv_prog_cc_g = yes; then
2791 if test "$GCC" = yes; then
2797 if test "$GCC" = yes; then
2803 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2804 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2805 if test "${ac_cv_prog_cc_c89+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 ac_cv_prog_cc_c89=no
2810 cat >conftest.$ac_ext <<_ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2818 #include <sys/types.h>
2819 #include <sys/stat.h>
2820 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2821 struct buf { int x; };
2822 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2823 static char *e (p, i)
2829 static char *f (char * (*g) (char **, int), char **p, ...)
2834 s = g (p, va_arg (v,int));
2839 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2840 function prototypes and stuff, but not '\xHH' hex character constants.
2841 These don't provoke an error unfortunately, instead are silently treated
2842 as 'x'. The following induces an error, until -std is added to get
2843 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2844 array size at least. It's necessary to write '\x00'==0 to get something
2845 that's true only with -std. */
2846 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2848 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2849 inside strings and character constants. */
2851 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2853 int test (int i, double x);
2854 struct s1 {int (*f) (int a);};
2855 struct s2 {int (*f) (double a);};
2856 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2862 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2867 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2868 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2870 CC="$ac_save_CC $ac_arg"
2871 rm -f conftest.$ac_objext
2872 if { (ac_try="$ac_compile"
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_compile") 2>conftest.er1
2880 grep -v '^ *+' conftest.er1 >conftest.err
2882 cat conftest.err >&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } && {
2885 test -z "$ac_c_werror_flag" ||
2886 test ! -s conftest.err
2887 } && test -s conftest.$ac_objext; then
2888 ac_cv_prog_cc_c89=$ac_arg
2890 echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2896 rm -f core conftest.err conftest.$ac_objext
2897 test "x$ac_cv_prog_cc_c89" != "xno" && break
2899 rm -f conftest.$ac_ext
2904 case "x$ac_cv_prog_cc_c89" in
2906 { echo "$as_me:$LINENO: result: none needed" >&5
2907 echo "${ECHO_T}none needed" >&6; } ;;
2909 { echo "$as_me:$LINENO: result: unsupported" >&5
2910 echo "${ECHO_T}unsupported" >&6; } ;;
2912 CC="$CC $ac_cv_prog_cc_c89"
2913 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2914 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2919 ac_cpp='$CPP $CPPFLAGS'
2920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2924 # Find a good install program. We prefer a C program (faster),
2925 # so one script is as good as another. But avoid the broken or
2926 # incompatible versions:
2927 # SysV /etc/install, /usr/sbin/install
2928 # SunOS /usr/etc/install
2929 # IRIX /sbin/install
2931 # AmigaOS /C/install, which installs bootblocks on floppy discs
2932 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2933 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2934 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2935 # OS/2's system install, which has a completely different semantic
2936 # ./install, which can be erroneously created by make from ./install.sh.
2937 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2938 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2939 if test -z "$INSTALL"; then
2940 if test "${ac_cv_path_install+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 test -z "$as_dir" && as_dir=.
2948 # Account for people who put trailing slashes in PATH elements.
2950 ./ | .// | /cC/* | \
2951 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2952 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2955 # OSF1 and SCO ODT 3.0 have their own names for install.
2956 # Don't use installbsd from OSF since it installs stuff as root
2958 for ac_prog in ginstall scoinst install; do
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2961 if test $ac_prog = install &&
2962 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2963 # AIX install. It has an incompatible calling convention.
2965 elif test $ac_prog = install &&
2966 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2967 # program-specific install script used by HP pwplus--don't use.
2970 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2983 if test "${ac_cv_path_install+set}" = set; then
2984 INSTALL=$ac_cv_path_install
2986 # As a last resort, use the slow shell script. Don't cache a
2987 # value for INSTALL within a source directory, because that will
2988 # break other packages using the cache if that directory is
2989 # removed, or if the value is a relative name.
2990 INSTALL=$ac_install_sh
2993 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2994 echo "${ECHO_T}$INSTALL" >&6; }
2996 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2997 # It thinks the first close brace ends the variable substitution.
2998 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3000 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3002 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3004 # Check whether --enable-shared was given.
3005 if test "${enable_shared+set}" = set; then
3006 enableval=$enable_shared; p=${PACKAGE-default}
3008 yes) enable_shared=yes ;;
3009 no) enable_shared=no ;;
3012 # Look at the argument we got. We use all the common list separators.
3013 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3014 for pkg in $enableval; do
3016 if test "X$pkg" = "X$p"; then
3028 # Check whether --enable-static was given.
3029 if test "${enable_static+set}" = set; then
3030 enableval=$enable_static; p=${PACKAGE-default}
3032 yes) enable_static=yes ;;
3033 no) enable_static=no ;;
3036 # Look at the argument we got. We use all the common list separators.
3037 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3038 for pkg in $enableval; do
3040 if test "X$pkg" = "X$p"; then
3052 # Check whether --enable-fast-install was given.
3053 if test "${enable_fast_install+set}" = set; then
3054 enableval=$enable_fast_install; p=${PACKAGE-default}
3056 yes) enable_fast_install=yes ;;
3057 no) enable_fast_install=no ;;
3059 enable_fast_install=no
3060 # Look at the argument we got. We use all the common list separators.
3061 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3062 for pkg in $enableval; do
3064 if test "X$pkg" = "X$p"; then
3065 enable_fast_install=yes
3072 enable_fast_install=yes
3076 # Make sure we can run config.sub.
3077 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3078 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3079 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3080 { (exit 1); exit 1; }; }
3082 { echo "$as_me:$LINENO: checking build system type" >&5
3083 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3084 if test "${ac_cv_build+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 ac_build_alias=$build_alias
3088 test "x$ac_build_alias" = x &&
3089 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3090 test "x$ac_build_alias" = x &&
3091 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3092 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3093 { (exit 1); exit 1; }; }
3094 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3095 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3096 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3097 { (exit 1); exit 1; }; }
3100 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3101 echo "${ECHO_T}$ac_cv_build" >&6; }
3102 case $ac_cv_build in
3104 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3105 echo "$as_me: error: invalid value of canonical build" >&2;}
3106 { (exit 1); exit 1; }; };;
3109 ac_save_IFS=$IFS; IFS='-'
3115 # Remember, the first character of IFS is used to create $*,
3116 # except with old shells:
3119 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3122 { echo "$as_me:$LINENO: checking host system type" >&5
3123 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3124 if test "${ac_cv_host+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 if test "x$host_alias" = x; then
3128 ac_cv_host=$ac_cv_build
3130 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3131 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3132 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3133 { (exit 1); exit 1; }; }
3137 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3138 echo "${ECHO_T}$ac_cv_host" >&6; }
3141 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3142 echo "$as_me: error: invalid value of canonical host" >&2;}
3143 { (exit 1); exit 1; }; };;
3146 ac_save_IFS=$IFS; IFS='-'
3152 # Remember, the first character of IFS is used to create $*,
3153 # except with old shells:
3156 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3159 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3160 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3161 if test "${lt_cv_path_SED+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 # Loop through the user's path and test for sed and gsed.
3165 # Then use that list of sed's as ones to test for truncation.
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 test -z "$as_dir" && as_dir=.
3171 for lt_ac_prog in sed gsed; do
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3174 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3182 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3183 # along with /bin/sed that truncates output.
3184 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3185 test ! -f $lt_ac_sed && continue
3186 cat /dev/null > conftest.in
3188 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3189 # Check for GNU sed and select it if it is found.
3190 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3191 lt_cv_path_SED=$lt_ac_sed
3195 cat conftest.in conftest.in >conftest.tmp
3196 mv conftest.tmp conftest.in
3197 cp conftest.in conftest.nl
3199 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3200 cmp -s conftest.out conftest.nl || break
3201 # 10000 chars as input seems more than enough
3202 test $lt_ac_count -gt 10 && break
3203 lt_ac_count=`expr $lt_ac_count + 1`
3204 if test $lt_ac_count -gt $lt_ac_max; then
3205 lt_ac_max=$lt_ac_count
3206 lt_cv_path_SED=$lt_ac_sed
3215 { echo "$as_me:$LINENO: result: $SED" >&5
3216 echo "${ECHO_T}$SED" >&6; }
3218 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3219 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3220 if test "${ac_cv_path_GREP+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 # Extract the first word of "grep ggrep" to use in msg output
3224 if test -z "$GREP"; then
3225 set dummy grep ggrep; ac_prog_name=$2
3226 if test "${ac_cv_path_GREP+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 ac_path_GREP_found=false
3230 # Loop through the user's path and test for each of PROGNAME-LIST
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3235 test -z "$as_dir" && as_dir=.
3236 for ac_prog in grep ggrep; do
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3239 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3240 # Check for GNU ac_path_GREP and select it if it is found.
3241 # Check for GNU $ac_path_GREP
3242 case `"$ac_path_GREP" --version 2>&1` in
3244 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3247 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3250 cat "conftest.in" "conftest.in" >"conftest.tmp"
3251 mv "conftest.tmp" "conftest.in"
3252 cp "conftest.in" "conftest.nl"
3253 echo 'GREP' >> "conftest.nl"
3254 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3256 ac_count=`expr $ac_count + 1`
3257 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3258 # Best one so far, save it but keep looking for a better one
3259 ac_cv_path_GREP="$ac_path_GREP"
3260 ac_path_GREP_max=$ac_count
3262 # 10*(2^10) chars as input seems more than enough
3263 test $ac_count -gt 10 && break
3265 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3269 $ac_path_GREP_found && break 3
3279 GREP="$ac_cv_path_GREP"
3280 if test -z "$GREP"; then
3281 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3282 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3283 { (exit 1); exit 1; }; }
3287 ac_cv_path_GREP=$GREP
3292 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3293 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3294 GREP="$ac_cv_path_GREP"
3297 { echo "$as_me:$LINENO: checking for egrep" >&5
3298 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3299 if test "${ac_cv_path_EGREP+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3303 then ac_cv_path_EGREP="$GREP -E"
3305 # Extract the first word of "egrep" to use in msg output
3306 if test -z "$EGREP"; then
3307 set dummy egrep; ac_prog_name=$2
3308 if test "${ac_cv_path_EGREP+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 ac_path_EGREP_found=false
3312 # Loop through the user's path and test for each of PROGNAME-LIST
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3317 test -z "$as_dir" && as_dir=.
3318 for ac_prog in egrep; do
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3321 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3322 # Check for GNU ac_path_EGREP and select it if it is found.
3323 # Check for GNU $ac_path_EGREP
3324 case `"$ac_path_EGREP" --version 2>&1` in
3326 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3329 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3332 cat "conftest.in" "conftest.in" >"conftest.tmp"
3333 mv "conftest.tmp" "conftest.in"
3334 cp "conftest.in" "conftest.nl"
3335 echo 'EGREP' >> "conftest.nl"
3336 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3337 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3338 ac_count=`expr $ac_count + 1`
3339 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3340 # Best one so far, save it but keep looking for a better one
3341 ac_cv_path_EGREP="$ac_path_EGREP"
3342 ac_path_EGREP_max=$ac_count
3344 # 10*(2^10) chars as input seems more than enough
3345 test $ac_count -gt 10 && break
3347 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3351 $ac_path_EGREP_found && break 3
3361 EGREP="$ac_cv_path_EGREP"
3362 if test -z "$EGREP"; then
3363 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3364 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3365 { (exit 1); exit 1; }; }
3369 ac_cv_path_EGREP=$EGREP
3375 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3376 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3377 EGREP="$ac_cv_path_EGREP"
3381 # Check whether --with-gnu-ld was given.
3382 if test "${with_gnu_ld+set}" = set; then
3383 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3389 if test "$GCC" = yes; then
3390 # Check if gcc -print-prog-name=ld gives a path.
3391 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3392 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3395 # gcc leaves a trailing carriage return which upsets mingw
3396 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3398 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3401 # Accept absolute paths.
3403 re_direlt='/[^/][^/]*/\.\./'
3404 # Canonicalize the pathname of ld
3405 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3406 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3407 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3409 test -z "$LD" && LD="$ac_prog"
3412 # If it fails, then pretend we aren't using GCC.
3416 # If it is relative, then search for the first ld in PATH.
3420 elif test "$with_gnu_ld" = yes; then
3421 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3422 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3424 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3425 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3427 if test "${lt_cv_path_LD+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3430 if test -z "$LD"; then
3431 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3432 for ac_dir in $PATH; do
3434 test -z "$ac_dir" && ac_dir=.
3435 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3436 lt_cv_path_LD="$ac_dir/$ac_prog"
3437 # Check to see if the program is GNU ld. I'd rather use --version,
3438 # but apparently some variants of GNU ld only accept -v.
3439 # Break only if it was the GNU/non-GNU ld that we prefer.
3440 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3441 *GNU* | *'with BFD'*)
3442 test "$with_gnu_ld" != no && break
3445 test "$with_gnu_ld" != yes && break
3452 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3457 if test -n "$LD"; then
3458 { echo "$as_me:$LINENO: result: $LD" >&5
3459 echo "${ECHO_T}$LD" >&6; }
3461 { echo "$as_me:$LINENO: result: no" >&5
3462 echo "${ECHO_T}no" >&6; }
3464 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3465 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3466 { (exit 1); exit 1; }; }
3467 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3468 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3469 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3473 case `$LD -v 2>&1 </dev/null` in
3474 *GNU* | *'with BFD'*)
3475 lt_cv_prog_gnu_ld=yes
3478 lt_cv_prog_gnu_ld=no
3482 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3483 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3484 with_gnu_ld=$lt_cv_prog_gnu_ld
3487 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3488 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3489 if test "${lt_cv_ld_reload_flag+set}" = set; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 lt_cv_ld_reload_flag='-r'
3494 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3495 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3496 reload_flag=$lt_cv_ld_reload_flag
3497 case $reload_flag in
3499 *) reload_flag=" $reload_flag" ;;
3501 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3504 if test "$GCC" = yes; then
3505 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3507 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3512 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3513 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3514 if test "${lt_cv_path_NM+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 if test -n "$NM"; then
3518 # Let the user override the test.
3521 lt_nm_to_check="${ac_tool_prefix}nm"
3522 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3523 lt_nm_to_check="$lt_nm_to_check nm"
3525 for lt_tmp_nm in $lt_nm_to_check; do
3526 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3527 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3529 test -z "$ac_dir" && ac_dir=.
3530 tmp_nm="$ac_dir/$lt_tmp_nm"
3531 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3532 # Check to see if the nm accepts a BSD-compat flag.
3533 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3534 # nm: unknown option "B" ignored
3535 # Tru64's nm complains that /dev/null is an invalid object file
3536 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3537 */dev/null* | *'Invalid file or object type'*)
3538 lt_cv_path_NM="$tmp_nm -B"
3542 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3544 lt_cv_path_NM="$tmp_nm -p"
3548 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3549 continue # so that we can try to find one that supports BSD flags
3558 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3561 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3562 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3565 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3566 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3568 if test "$LN_S" = "ln -s"; then
3569 { echo "$as_me:$LINENO: result: yes" >&5
3570 echo "${ECHO_T}yes" >&6; }
3572 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3573 echo "${ECHO_T}no, using $LN_S" >&6; }
3576 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3577 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
3578 if test "${lt_cv_deplibs_check_method+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 lt_cv_file_magic_cmd='$MAGIC_CMD'
3582 lt_cv_file_magic_test_file=
3583 lt_cv_deplibs_check_method='unknown'
3584 # Need to set the preceding variable on all platforms that support
3585 # interlibrary dependencies.
3586 # 'none' -- dependencies not supported.
3587 # `unknown' -- same as none, but documents that we really don't know.
3588 # 'pass_all' -- all dependencies passed with no checks.
3589 # 'test_compile' -- check by making test program.
3590 # 'file_magic [[regex]]' -- check by looking for files in library path
3591 # which responds to the $file_magic_cmd with a given extended regex.
3592 # If you have `file' or equivalent on your system and you're not sure
3593 # whether `pass_all' will *always* work, you probably want this one.
3597 lt_cv_deplibs_check_method=pass_all
3601 lt_cv_deplibs_check_method=pass_all
3605 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3606 lt_cv_file_magic_cmd='/usr/bin/file -L'
3607 lt_cv_file_magic_test_file=/shlib/libc.so
3611 # func_win32_libid is a shell function defined in ltmain.sh
3612 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3613 lt_cv_file_magic_cmd='func_win32_libid'
3617 # Base MSYS/MinGW do not provide the 'file' command needed by
3618 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3619 # unless we find 'file', for example because we are cross-compiling.
3620 if ( file / ) >/dev/null 2>&1; then
3621 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3622 lt_cv_file_magic_cmd='func_win32_libid'
3624 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3625 lt_cv_file_magic_cmd='$OBJDUMP -f'
3629 darwin* | rhapsody*)
3630 lt_cv_deplibs_check_method=pass_all
3633 freebsd* | dragonfly*)
3634 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3637 # Not sure whether the presence of OpenBSD here was a mistake.
3638 # Let's accept both of them until this is cleared up.
3639 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3640 lt_cv_file_magic_cmd=/usr/bin/file
3641 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3645 lt_cv_deplibs_check_method=pass_all
3650 lt_cv_deplibs_check_method=pass_all
3653 hpux10.20* | hpux11*)
3654 lt_cv_file_magic_cmd=/usr/bin/file
3657 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3658 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3661 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]'
3662 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3665 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3666 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3672 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3676 irix5* | irix6* | nonstopux*)
3678 *-32|*"-32 ") libmagic=32-bit;;
3679 *-n32|*"-n32 ") libmagic=N32;;
3680 *-64|*"-64 ") libmagic=64-bit;;
3681 *) libmagic=never-match;;
3683 lt_cv_deplibs_check_method=pass_all
3686 # This must be Linux ELF.
3687 linux* | k*bsd*-gnu)
3688 lt_cv_deplibs_check_method=pass_all
3692 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3701 lt_cv_file_magic_cmd=/usr/bin/file
3702 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3706 lt_cv_deplibs_check_method=unknown
3710 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3717 osf3* | osf4* | osf5*)
3718 lt_cv_deplibs_check_method=pass_all
3722 lt_cv_deplibs_check_method=pass_all
3726 lt_cv_deplibs_check_method=pass_all
3730 case $host_vendor in
3732 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]'
3733 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3736 lt_cv_deplibs_check_method=pass_all
3739 lt_cv_file_magic_cmd='/bin/file'
3740 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3743 lt_cv_file_magic_cmd='/bin/file'
3744 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3745 lt_cv_file_magic_test_file=/lib/libc.so
3748 lt_cv_deplibs_check_method=pass_all
3751 lt_cv_deplibs_check_method=pass_all
3756 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3757 lt_cv_deplibs_check_method=pass_all
3762 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3763 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3764 file_magic_cmd=$lt_cv_file_magic_cmd
3765 deplibs_check_method=$lt_cv_deplibs_check_method
3766 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3771 # If no C compiler was specified, use CC.
3774 # If no C compiler flags were specified, use CFLAGS.
3775 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3777 # Allow CC to be a program name with arguments.
3781 # Check whether --enable-libtool-lock was given.
3782 if test "${enable_libtool_lock+set}" = set; then
3783 enableval=$enable_libtool_lock;
3786 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3788 # Some flags need to be propagated to the compiler or linker for good
3792 # Find out which ABI we are using.
3793 echo 'int i;' > conftest.$ac_ext
3794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3795 (eval $ac_compile) 2>&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; then
3799 case `/usr/bin/file conftest.$ac_objext` in
3811 # Find out which ABI we are using.
3812 echo '#line 3812 "configure"' > conftest.$ac_ext
3813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3814 (eval $ac_compile) 2>&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; then
3818 if test "$lt_cv_prog_gnu_ld" = yes; then
3819 case `/usr/bin/file conftest.$ac_objext` in
3821 LD="${LD-ld} -melf32bsmip"
3824 LD="${LD-ld} -melf32bmipn32"
3827 LD="${LD-ld} -melf64bmip"
3831 case `/usr/bin/file conftest.$ac_objext` in
3847 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
3848 s390*-*linux*|sparc*-*linux*)
3849 # Find out which ABI we are using.
3850 echo 'int i;' > conftest.$ac_ext
3851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3852 (eval $ac_compile) 2>&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; then
3856 case `/usr/bin/file conftest.o` in
3859 x86_64-*kfreebsd*-gnu)
3860 LD="${LD-ld} -m elf_i386_fbsd"
3863 LD="${LD-ld} -m elf_i386"
3865 ppc64-*linux*|powerpc64-*linux*)
3866 LD="${LD-ld} -m elf32ppclinux"
3869 LD="${LD-ld} -m elf_s390"
3872 LD="${LD-ld} -m elf32_sparc"
3878 x86_64-*kfreebsd*-gnu)
3879 LD="${LD-ld} -m elf_x86_64_fbsd"
3882 LD="${LD-ld} -m elf_x86_64"
3884 ppc*-*linux*|powerpc*-*linux*)
3885 LD="${LD-ld} -m elf64ppc"
3888 LD="${LD-ld} -m elf64_s390"
3891 LD="${LD-ld} -m elf64_sparc"
3901 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3902 SAVE_CFLAGS="$CFLAGS"
3903 CFLAGS="$CFLAGS -belf"
3904 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3905 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3906 if test "${lt_cv_cc_needs_belf+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 ac_cpp='$CPP $CPPFLAGS'
3911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3915 cat >conftest.$ac_ext <<_ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3930 rm -f conftest.$ac_objext conftest$ac_exeext
3931 if { (ac_try="$ac_link"
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3937 (eval "$ac_link") 2>conftest.er1
3939 grep -v '^ *+' conftest.er1 >conftest.err
3941 cat conftest.err >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); } && {
3944 test -z "$ac_c_werror_flag" ||
3945 test ! -s conftest.err
3946 } && test -s conftest$ac_exeext &&
3947 $as_test_x conftest$ac_exeext; then
3948 lt_cv_cc_needs_belf=yes
3950 echo "$as_me: failed program was:" >&5
3951 sed 's/^/| /' conftest.$ac_ext >&5
3953 lt_cv_cc_needs_belf=no
3956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3957 conftest$ac_exeext conftest.$ac_ext
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3965 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3966 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
3967 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3968 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3969 CFLAGS="$SAVE_CFLAGS"
3973 # Find out which ABI we are using.
3974 echo 'int i;' > conftest.$ac_ext
3975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3976 (eval $ac_compile) 2>&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; then
3980 case `/usr/bin/file conftest.o` in
3982 case $lt_cv_prog_gnu_ld in
3983 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3984 *) LD="${LD-ld} -64" ;;
3995 need_locks="$enable_libtool_lock"
3999 ac_cpp='$CPP $CPPFLAGS'
4000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4003 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4004 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4005 # On Suns, sometimes $CPP names a directory.
4006 if test -n "$CPP" && test -d "$CPP"; then
4009 if test -z "$CPP"; then
4010 if test "${ac_cv_prog_CPP+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 # Double quotes because CPP needs to be expanded
4014 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4017 for ac_c_preproc_warn_flag in '' yes
4019 # Use a header file that comes with gcc, so configuring glibc
4020 # with a fresh cross-compiler works.
4021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4022 # <limits.h> exists even on freestanding compilers.
4023 # On the NeXT, cc -E runs the code through the compiler's parser,
4024 # not just through cpp. "Syntax error" is here to catch this case.
4025 cat >conftest.$ac_ext <<_ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4032 # include <limits.h>
4034 # include <assert.h>
4038 if { (ac_try="$ac_cpp conftest.$ac_ext"
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4046 grep -v '^ *+' conftest.er1 >conftest.err
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } >/dev/null && {
4051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4052 test ! -s conftest.err
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4059 # Broken: fails on valid input.
4063 rm -f conftest.err conftest.$ac_ext
4065 # OK, works on sane cases. Now check whether nonexistent headers
4066 # can be detected and how.
4067 cat >conftest.$ac_ext <<_ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4073 #include <ac_nonexistent.h>
4075 if { (ac_try="$ac_cpp conftest.$ac_ext"
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4083 grep -v '^ *+' conftest.er1 >conftest.err
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } >/dev/null && {
4088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4089 test ! -s conftest.err
4091 # Broken: success on invalid input.
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4097 # Passes both tests.
4102 rm -f conftest.err conftest.$ac_ext
4105 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4106 rm -f conftest.err conftest.$ac_ext
4107 if $ac_preproc_ok; then
4119 { echo "$as_me:$LINENO: result: $CPP" >&5
4120 echo "${ECHO_T}$CPP" >&6; }
4122 for ac_c_preproc_warn_flag in '' yes
4124 # Use a header file that comes with gcc, so configuring glibc
4125 # with a fresh cross-compiler works.
4126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4127 # <limits.h> exists even on freestanding compilers.
4128 # On the NeXT, cc -E runs the code through the compiler's parser,
4129 # not just through cpp. "Syntax error" is here to catch this case.
4130 cat >conftest.$ac_ext <<_ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h. */
4137 # include <limits.h>
4139 # include <assert.h>
4143 if { (ac_try="$ac_cpp conftest.$ac_ext"
4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146 *) ac_try_echo=$ac_try;;
4148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4151 grep -v '^ *+' conftest.er1 >conftest.err
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } >/dev/null && {
4156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4157 test ! -s conftest.err
4161 echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4164 # Broken: fails on valid input.
4168 rm -f conftest.err conftest.$ac_ext
4170 # OK, works on sane cases. Now check whether nonexistent headers
4171 # can be detected and how.
4172 cat >conftest.$ac_ext <<_ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h. */
4178 #include <ac_nonexistent.h>
4180 if { (ac_try="$ac_cpp conftest.$ac_ext"
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4188 grep -v '^ *+' conftest.er1 >conftest.err
4190 cat conftest.err >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } >/dev/null && {
4193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4194 test ! -s conftest.err
4196 # Broken: success on invalid input.
4199 echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4202 # Passes both tests.
4207 rm -f conftest.err conftest.$ac_ext
4210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4211 rm -f conftest.err conftest.$ac_ext
4212 if $ac_preproc_ok; then
4215 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4216 See \`config.log' for more details." >&5
4217 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4218 See \`config.log' for more details." >&2;}
4219 { (exit 1); exit 1; }; }
4223 ac_cpp='$CPP $CPPFLAGS'
4224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4230 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4231 if test "${ac_cv_header_stdc+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 cat >conftest.$ac_ext <<_ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4253 rm -f conftest.$ac_objext
4254 if { (ac_try="$ac_compile"
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4260 (eval "$ac_compile") 2>conftest.er1
4262 grep -v '^ *+' conftest.er1 >conftest.err
4264 cat conftest.err >&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } && {
4267 test -z "$ac_c_werror_flag" ||
4268 test ! -s conftest.err
4269 } && test -s conftest.$ac_objext; then
4270 ac_cv_header_stdc=yes
4272 echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4275 ac_cv_header_stdc=no
4278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4280 if test $ac_cv_header_stdc = yes; then
4281 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4282 cat >conftest.$ac_ext <<_ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4292 $EGREP "memchr" >/dev/null 2>&1; then
4295 ac_cv_header_stdc=no
4301 if test $ac_cv_header_stdc = yes; then
4302 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4303 cat >conftest.$ac_ext <<_ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h. */
4312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4313 $EGREP "free" >/dev/null 2>&1; then
4316 ac_cv_header_stdc=no
4322 if test $ac_cv_header_stdc = yes; then
4323 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4324 if test "$cross_compiling" = yes; then
4327 cat >conftest.$ac_ext <<_ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4335 #if ((' ' & 0x0FF) == 0x020)
4336 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4337 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4339 # define ISLOWER(c) \
4340 (('a' <= (c) && (c) <= 'i') \
4341 || ('j' <= (c) && (c) <= 'r') \
4342 || ('s' <= (c) && (c) <= 'z'))
4343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4351 for (i = 0; i < 256; i++)
4352 if (XOR (islower (i), ISLOWER (i))
4353 || toupper (i) != TOUPPER (i))
4358 rm -f conftest$ac_exeext
4359 if { (ac_try="$ac_link"
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4365 (eval "$ac_link") 2>&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4369 { (case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_try") 2>&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4380 echo "$as_me: program exited with status $ac_status" >&5
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4385 ac_cv_header_stdc=no
4387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4393 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4394 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4395 if test $ac_cv_header_stdc = yes; then
4397 cat >>confdefs.h <<\_ACEOF
4398 #define STDC_HEADERS 1
4403 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4413 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4414 inttypes.h stdint.h unistd.h
4416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 cat >conftest.$ac_ext <<_ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4428 $ac_includes_default
4430 #include <$ac_header>
4432 rm -f conftest.$ac_objext
4433 if { (ac_try="$ac_compile"
4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439 (eval "$ac_compile") 2>conftest.er1
4441 grep -v '^ *+' conftest.er1 >conftest.err
4443 cat conftest.err >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } && {
4446 test -z "$ac_c_werror_flag" ||
4447 test ! -s conftest.err
4448 } && test -s conftest.$ac_objext; then
4449 eval "$as_ac_Header=yes"
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4454 eval "$as_ac_Header=no"
4457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4459 ac_res=`eval echo '${'$as_ac_Header'}'`
4460 { echo "$as_me:$LINENO: result: $ac_res" >&5
4461 echo "${ECHO_T}$ac_res" >&6; }
4462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4463 cat >>confdefs.h <<_ACEOF
4464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4473 for ac_header in dlfcn.h
4475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 ac_res=`eval echo '${'$as_ac_Header'}'`
4483 { echo "$as_me:$LINENO: result: $ac_res" >&5
4484 echo "${ECHO_T}$ac_res" >&6; }
4486 # Is the header compilable?
4487 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4489 cat >conftest.$ac_ext <<_ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h. */
4495 $ac_includes_default
4496 #include <$ac_header>
4498 rm -f conftest.$ac_objext
4499 if { (ac_try="$ac_compile"
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4505 (eval "$ac_compile") 2>conftest.er1
4507 grep -v '^ *+' conftest.er1 >conftest.err
4509 cat conftest.err >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } && {
4512 test -z "$ac_c_werror_flag" ||
4513 test ! -s conftest.err
4514 } && test -s conftest.$ac_objext; then
4515 ac_header_compiler=yes
4517 echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4520 ac_header_compiler=no
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4525 echo "${ECHO_T}$ac_header_compiler" >&6; }
4527 # Is the header present?
4528 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4530 cat >conftest.$ac_ext <<_ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4536 #include <$ac_header>
4538 if { (ac_try="$ac_cpp conftest.$ac_ext"
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4546 grep -v '^ *+' conftest.er1 >conftest.err
4548 cat conftest.err >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } >/dev/null && {
4551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4552 test ! -s conftest.err
4554 ac_header_preproc=yes
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4559 ac_header_preproc=no
4562 rm -f conftest.err conftest.$ac_ext
4563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4564 echo "${ECHO_T}$ac_header_preproc" >&6; }
4566 # So? What about this header?
4567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4573 ac_header_preproc=yes
4576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4583 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4589 ## ----------------------------------------------- ##
4590 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
4591 ## ----------------------------------------------- ##
4593 ) | sed "s/^/$as_me: WARNING: /" >&2
4596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 eval "$as_ac_Header=\$ac_header_preproc"
4603 ac_res=`eval echo '${'$as_ac_Header'}'`
4604 { echo "$as_me:$LINENO: result: $ac_res" >&5
4605 echo "${ECHO_T}$ac_res" >&6; }
4608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4609 cat >>confdefs.h <<_ACEOF
4610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4618 ac_cpp='$CXXCPP $CPPFLAGS'
4619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4622 if test -z "$CXX"; then
4623 if test -n "$CCC"; then
4626 if test -n "$ac_tool_prefix"; then
4627 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4633 if test "${ac_cv_prog_CXX+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 if test -n "$CXX"; then
4637 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 if test -n "$CXX"; then
4658 { echo "$as_me:$LINENO: result: $CXX" >&5
4659 echo "${ECHO_T}$CXX" >&6; }
4661 { echo "$as_me:$LINENO: result: no" >&5
4662 echo "${ECHO_T}no" >&6; }
4666 test -n "$CXX" && break
4669 if test -z "$CXX"; then
4671 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4673 # Extract the first word of "$ac_prog", so it can be a program name with args.
4674 set dummy $ac_prog; ac_word=$2
4675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4677 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 if test -n "$ac_ct_CXX"; then
4681 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690 ac_cv_prog_ac_ct_CXX="$ac_prog"
4691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4701 if test -n "$ac_ct_CXX"; then
4702 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4703 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4705 { echo "$as_me:$LINENO: result: no" >&5
4706 echo "${ECHO_T}no" >&6; }
4710 test -n "$ac_ct_CXX" && break
4713 if test "x$ac_ct_CXX" = x; then
4716 case $cross_compiling:$ac_tool_warned in
4718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4719 whose name does not start with the host triplet. If you think this
4720 configuration is useful to you, please write to autoconf@gnu.org." >&5
4721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4722 whose name does not start with the host triplet. If you think this
4723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4724 ac_tool_warned=yes ;;
4732 # Provide some information about the compiler.
4733 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4734 ac_compiler=`set X $ac_compile; echo $2`
4735 { (ac_try="$ac_compiler --version >&5"
4737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738 *) ac_try_echo=$ac_try;;
4740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4741 (eval "$ac_compiler --version >&5") 2>&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }
4745 { (ac_try="$ac_compiler -v >&5"
4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751 (eval "$ac_compiler -v >&5") 2>&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }
4755 { (ac_try="$ac_compiler -V >&5"
4757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758 *) ac_try_echo=$ac_try;;
4760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761 (eval "$ac_compiler -V >&5") 2>&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }
4766 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4767 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4768 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4769 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 cat >conftest.$ac_ext <<_ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4789 rm -f conftest.$ac_objext
4790 if { (ac_try="$ac_compile"
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796 (eval "$ac_compile") 2>conftest.er1
4798 grep -v '^ *+' conftest.er1 >conftest.err
4800 cat conftest.err >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } && {
4803 test -z "$ac_cxx_werror_flag" ||
4804 test ! -s conftest.err
4805 } && test -s conftest.$ac_objext; then
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4818 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4819 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4820 GXX=`test $ac_compiler_gnu = yes && echo yes`
4821 ac_test_CXXFLAGS=${CXXFLAGS+set}
4822 ac_save_CXXFLAGS=$CXXFLAGS
4823 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4824 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4825 if test "${ac_cv_prog_cxx_g+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4829 ac_cxx_werror_flag=yes
4832 cat >conftest.$ac_ext <<_ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4847 rm -f conftest.$ac_objext
4848 if { (ac_try="$ac_compile"
4850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4854 (eval "$ac_compile") 2>conftest.er1
4856 grep -v '^ *+' conftest.er1 >conftest.err
4858 cat conftest.err >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } && {
4861 test -z "$ac_cxx_werror_flag" ||
4862 test ! -s conftest.err
4863 } && test -s conftest.$ac_objext; then
4864 ac_cv_prog_cxx_g=yes
4866 echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4870 cat >conftest.$ac_ext <<_ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4885 rm -f conftest.$ac_objext
4886 if { (ac_try="$ac_compile"
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892 (eval "$ac_compile") 2>conftest.er1
4894 grep -v '^ *+' conftest.er1 >conftest.err
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } && {
4899 test -z "$ac_cxx_werror_flag" ||
4900 test ! -s conftest.err
4901 } && test -s conftest.$ac_objext; then
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4907 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4909 cat >conftest.$ac_ext <<_ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4924 rm -f conftest.$ac_objext
4925 if { (ac_try="$ac_compile"
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931 (eval "$ac_compile") 2>conftest.er1
4933 grep -v '^ *+' conftest.er1 >conftest.err
4935 cat conftest.err >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } && {
4938 test -z "$ac_cxx_werror_flag" ||
4939 test ! -s conftest.err
4940 } && test -s conftest.$ac_objext; then
4941 ac_cv_prog_cxx_g=yes
4943 echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4958 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4959 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4960 if test "$ac_test_CXXFLAGS" = set; then
4961 CXXFLAGS=$ac_save_CXXFLAGS
4962 elif test $ac_cv_prog_cxx_g = yes; then
4963 if test "$GXX" = yes; then
4969 if test "$GXX" = yes; then
4976 ac_cpp='$CXXCPP $CPPFLAGS'
4977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4983 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4984 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4985 (test "X$CXX" != "Xg++"))) ; then
4987 ac_cpp='$CXXCPP $CPPFLAGS'
4988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4991 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4992 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4993 if test -z "$CXXCPP"; then
4994 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 # Double quotes because CXXCPP needs to be expanded
4998 for CXXCPP in "$CXX -E" "/lib/cpp"
5001 for ac_cxx_preproc_warn_flag in '' yes
5003 # Use a header file that comes with gcc, so configuring glibc
5004 # with a fresh cross-compiler works.
5005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5006 # <limits.h> exists even on freestanding compilers.
5007 # On the NeXT, cc -E runs the code through the compiler's parser,
5008 # not just through cpp. "Syntax error" is here to catch this case.
5009 cat >conftest.$ac_ext <<_ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5016 # include <limits.h>
5018 # include <assert.h>
5022 if { (ac_try="$ac_cpp conftest.$ac_ext"
5024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025 *) ac_try_echo=$ac_try;;
5027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5030 grep -v '^ *+' conftest.er1 >conftest.err
5032 cat conftest.err >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } >/dev/null && {
5035 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5036 test ! -s conftest.err
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5043 # Broken: fails on valid input.
5047 rm -f conftest.err conftest.$ac_ext
5049 # OK, works on sane cases. Now check whether nonexistent headers
5050 # can be detected and how.
5051 cat >conftest.$ac_ext <<_ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 #include <ac_nonexistent.h>
5059 if { (ac_try="$ac_cpp conftest.$ac_ext"
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5067 grep -v '^ *+' conftest.er1 >conftest.err
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } >/dev/null && {
5072 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5073 test ! -s conftest.err
5075 # Broken: success on invalid input.
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5081 # Passes both tests.
5086 rm -f conftest.err conftest.$ac_ext
5089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5090 rm -f conftest.err conftest.$ac_ext
5091 if $ac_preproc_ok; then
5096 ac_cv_prog_CXXCPP=$CXXCPP
5099 CXXCPP=$ac_cv_prog_CXXCPP
5101 ac_cv_prog_CXXCPP=$CXXCPP
5103 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5104 echo "${ECHO_T}$CXXCPP" >&6; }
5106 for ac_cxx_preproc_warn_flag in '' yes
5108 # Use a header file that comes with gcc, so configuring glibc
5109 # with a fresh cross-compiler works.
5110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5111 # <limits.h> exists even on freestanding compilers.
5112 # On the NeXT, cc -E runs the code through the compiler's parser,
5113 # not just through cpp. "Syntax error" is here to catch this case.
5114 cat >conftest.$ac_ext <<_ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5121 # include <limits.h>
5123 # include <assert.h>
5127 if { (ac_try="$ac_cpp conftest.$ac_ext"
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5135 grep -v '^ *+' conftest.er1 >conftest.err
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } >/dev/null && {
5140 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5141 test ! -s conftest.err
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5148 # Broken: fails on valid input.
5152 rm -f conftest.err conftest.$ac_ext
5154 # OK, works on sane cases. Now check whether nonexistent headers
5155 # can be detected and how.
5156 cat >conftest.$ac_ext <<_ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 #include <ac_nonexistent.h>
5164 if { (ac_try="$ac_cpp conftest.$ac_ext"
5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5172 grep -v '^ *+' conftest.er1 >conftest.err
5174 cat conftest.err >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } >/dev/null && {
5177 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5178 test ! -s conftest.err
5180 # Broken: success on invalid input.
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5186 # Passes both tests.
5191 rm -f conftest.err conftest.$ac_ext
5194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5195 rm -f conftest.err conftest.$ac_ext
5196 if $ac_preproc_ok; then
5199 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5200 See \`config.log' for more details." >&5
5201 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5202 See \`config.log' for more details." >&2;}
5203 { (exit 1); exit 1; }; }
5207 ac_cpp='$CXXCPP $CPPFLAGS'
5208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5216 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5217 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5219 if test -n "$ac_tool_prefix"; then
5220 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
5222 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5223 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5226 if test "${ac_cv_prog_F77+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 if test -n "$F77"; then
5230 ac_cv_prog_F77="$F77" # Let the user override the test.
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 if test -n "$F77"; then
5251 { echo "$as_me:$LINENO: result: $F77" >&5
5252 echo "${ECHO_T}$F77" >&6; }
5254 { echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6; }
5259 test -n "$F77" && break
5262 if test -z "$F77"; then
5264 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
5266 # Extract the first word of "$ac_prog", so it can be a program name with args.
5267 set dummy $ac_prog; ac_word=$2
5268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5270 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 if test -n "$ac_ct_F77"; then
5274 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283 ac_cv_prog_ac_ct_F77="$ac_prog"
5284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5294 if test -n "$ac_ct_F77"; then
5295 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5296 echo "${ECHO_T}$ac_ct_F77" >&6; }
5298 { echo "$as_me:$LINENO: result: no" >&5
5299 echo "${ECHO_T}no" >&6; }
5303 test -n "$ac_ct_F77" && break
5306 if test "x$ac_ct_F77" = x; then
5309 case $cross_compiling:$ac_tool_warned in
5311 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5312 whose name does not start with the host triplet. If you think this
5313 configuration is useful to you, please write to autoconf@gnu.org." >&5
5314 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5315 whose name does not start with the host triplet. If you think this
5316 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5317 ac_tool_warned=yes ;;
5324 # Provide some information about the compiler.
5325 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5326 ac_compiler=`set X $ac_compile; echo $2`
5327 { (ac_try="$ac_compiler --version >&5"
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_compiler --version >&5") 2>&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }
5337 { (ac_try="$ac_compiler -v >&5"
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_compiler -v >&5") 2>&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }
5347 { (ac_try="$ac_compiler -V >&5"
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_compiler -V >&5") 2>&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }
5359 # If we don't use `.F' as extension, the preprocessor is not run on the
5360 # input file. (Note that this only needs to work for GNU compilers.)
5363 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5364 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5365 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 cat >conftest.$ac_ext <<_ACEOF
5376 rm -f conftest.$ac_objext
5377 if { (ac_try="$ac_compile"
5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383 (eval "$ac_compile") 2>conftest.er1
5385 grep -v '^ *+' conftest.er1 >conftest.err
5387 cat conftest.err >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } && {
5390 test -z "$ac_f77_werror_flag" ||
5391 test ! -s conftest.err
5392 } && test -s conftest.$ac_objext; then
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5405 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5406 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5408 ac_test_FFLAGS=${FFLAGS+set}
5409 ac_save_FFLAGS=$FFLAGS
5411 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5412 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5413 if test "${ac_cv_prog_f77_g+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 cat >conftest.$ac_ext <<_ACEOF
5422 rm -f conftest.$ac_objext
5423 if { (ac_try="$ac_compile"
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429 (eval "$ac_compile") 2>conftest.er1
5431 grep -v '^ *+' conftest.er1 >conftest.err
5433 cat conftest.err >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); } && {
5436 test -z "$ac_f77_werror_flag" ||
5437 test ! -s conftest.err
5438 } && test -s conftest.$ac_objext; then
5439 ac_cv_prog_f77_g=yes
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5451 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5452 if test "$ac_test_FFLAGS" = set; then
5453 FFLAGS=$ac_save_FFLAGS
5454 elif test $ac_cv_prog_f77_g = yes; then
5455 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5461 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5468 G77=`test $ac_compiler_gnu = yes && echo yes`
5470 ac_cpp='$CPP $CPPFLAGS'
5471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5477 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5479 # find the maximum length of command line arguments
5480 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5481 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5482 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 # On DJGPP, this test can blow up pretty badly due to problems in libc
5491 # (any single argument exceeding 2000 bytes causes a buffer overrun
5492 # during glob expansion). Even if it were fixed, the result of this
5493 # check would be larger than it should be.
5494 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5498 # Under GNU Hurd, this test is not required because there is
5499 # no limit to the length of command line arguments.
5500 # Libtool will interpret -1 as no limit whatsoever
5501 lt_cv_sys_max_cmd_len=-1;
5505 # On Win9x/ME, this test blows up -- it succeeds, but takes
5506 # about 5 minutes as the teststring grows exponentially.
5507 # Worse, since 9x/ME are not pre-emptively multitasking,
5508 # you end up with a "frozen" computer, even though with patience
5509 # the test eventually succeeds (with a max line length of 256k).
5510 # Instead, let's just punt: use the minimum linelength reported by
5511 # all of the supported platforms: 8192 (on NT/2K/XP).
5512 lt_cv_sys_max_cmd_len=8192;
5516 # On AmigaOS with pdksh, this test takes hours, literally.
5517 # So we just punt and use a minimum line length of 8192.
5518 lt_cv_sys_max_cmd_len=8192;
5521 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5522 # This has been around since 386BSD, at least. Likely further.
5523 if test -x /sbin/sysctl; then
5524 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5525 elif test -x /usr/sbin/sysctl; then
5526 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5528 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5530 # And add a safety zone
5531 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5532 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5536 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5537 lt_cv_sys_max_cmd_len=196608
5541 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5542 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5543 # nice to cause kernel panics so lets avoid the loop below.
5544 # First set a reasonable default.
5545 lt_cv_sys_max_cmd_len=16384
5547 if test -x /sbin/sysconfig; then
5548 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5549 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5554 lt_cv_sys_max_cmd_len=102400
5556 sysv5* | sco5v6* | sysv4.2uw2*)
5557 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5558 if test -n "$kargmax"; then
5559 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5561 lt_cv_sys_max_cmd_len=32768
5565 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5566 if test -n "$lt_cv_sys_max_cmd_len"; then
5567 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5568 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5570 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5571 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5572 = "XX$teststring") >/dev/null 2>&1 &&
5573 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5574 lt_cv_sys_max_cmd_len=$new_result &&
5575 test $i != 17 # 1/2 MB should be enough
5578 teststring=$teststring$teststring
5581 # Add a significant safety factor because C++ compilers can tack on massive
5582 # amounts of additional arguments before passing them to the linker.
5583 # It appears as though 1/2 is a usable value.
5584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5591 if test -n $lt_cv_sys_max_cmd_len ; then
5592 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5593 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5595 { echo "$as_me:$LINENO: result: none" >&5
5596 echo "${ECHO_T}none" >&6; }
5603 # Check for command to grab the raw symbol name followed by C symbol from nm.
5604 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5605 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5606 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 # These are sane defaults that work on at least a few old systems.
5611 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5613 # Character class describing NM global symbol codes.
5614 symcode='[BCDEGRST]'
5616 # Regexp to match symbols that can be accessed directly from C.
5617 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5619 # Transform an extracted symbol line into a proper C declaration
5620 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5622 # Transform an extracted symbol line into symbol name and symbol address
5623 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'"
5625 # Define system-specific variables.
5630 cygwin* | mingw* | pw32*)
5631 symcode='[ABCDGISTW]'
5633 hpux*) # Its linker distinguishes data from code symbols
5634 if test "$host_cpu" = ia64; then
5635 symcode='[ABCDEGRST]'
5637 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5638 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'"
5640 linux* | k*bsd*-gnu)
5641 if test "$host_cpu" = ia64; then
5642 symcode='[ABCDGIRSTW]'
5643 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5644 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'"
5648 symcode='[BCDEGRST]'
5651 symcode='[BCDEGQRST]'
5662 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5670 # Handle CRLF in mingw tool chain
5674 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5678 # If we're using GNU nm, then use its standard symbol codes.
5679 case `$NM -V 2>&1` in
5680 *GNU* | *'with BFD'*)
5681 symcode='[ABCDGIRSTW]' ;;
5684 # Try without a prefix undercore, then with it.
5685 for ac_symprfx in "" "_"; do
5687 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5688 symxfrm="\\1 $ac_symprfx\\2 \\2"
5690 # Write the raw and C identifiers.
5691 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5693 # Check to see that the pipe works correctly.
5697 cat > conftest.$ac_ext <<EOF
5702 void nm_test_func(){}
5706 int main(){nm_test_var='a';nm_test_func();return(0);}
5709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5710 (eval $ac_compile) 2>&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; then
5714 # Now try to grab the symbols.
5716 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5717 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } && test -s "$nlist"; then
5721 # Try sorting and uniquifying the output.
5722 if sort "$nlist" | uniq > "$nlist"T; then
5723 mv -f "$nlist"T "$nlist"
5728 # Make sure that we snagged all the symbols we need.
5729 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5730 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5731 cat <<EOF > conftest.$ac_ext
5737 # Now generate the symbol file.
5738 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5740 cat <<EOF >> conftest.$ac_ext
5741 #if defined (__STDC__) && __STDC__
5742 # define lt_ptr_t void *
5744 # define lt_ptr_t char *
5748 /* The mapping between symbol names and symbols. */
5753 lt_preloaded_symbols[] =
5756 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5757 cat <<\EOF >> conftest.$ac_ext
5765 # Now try linking the two files.
5766 mv conftest.$ac_objext conftstm.$ac_objext
5767 lt_save_LIBS="$LIBS"
5768 lt_save_CFLAGS="$CFLAGS"
5769 LIBS="conftstm.$ac_objext"
5770 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5772 (eval $ac_link) 2>&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5778 LIBS="$lt_save_LIBS"
5779 CFLAGS="$lt_save_CFLAGS"
5781 echo "cannot find nm_test_func in $nlist" >&5
5784 echo "cannot find nm_test_var in $nlist" >&5
5787 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5790 echo "$progname: failed program was:" >&5
5791 cat conftest.$ac_ext >&5
5793 rm -f conftest* conftst*
5795 # Do not use the global_symbol_pipe unless it works.
5796 if test "$pipe_works" = yes; then
5799 lt_cv_sys_global_symbol_pipe=
5805 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5806 lt_cv_sys_global_symbol_to_cdecl=
5808 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5809 { echo "$as_me:$LINENO: result: failed" >&5
5810 echo "${ECHO_T}failed" >&6; }
5812 { echo "$as_me:$LINENO: result: ok" >&5
5813 echo "${ECHO_T}ok" >&6; }
5816 { echo "$as_me:$LINENO: checking for objdir" >&5
5817 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5818 if test "${lt_cv_objdir+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 rm -f .libs 2>/dev/null
5822 mkdir .libs 2>/dev/null
5823 if test -d .libs; then
5826 # MS-DOS does not allow filenames that begin with a dot.
5829 rmdir .libs 2>/dev/null
5831 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5832 echo "${ECHO_T}$lt_cv_objdir" >&6; }
5833 objdir=$lt_cv_objdir
5841 # AIX sometimes has problems with the GCC collect2 program. For some
5842 # reason, if we set the COLLECT_NAMES environment variable, the problems
5843 # vanish in a puff of smoke.
5844 if test "X${COLLECT_NAMES+set}" != Xset; then
5846 export COLLECT_NAMES
5851 # Sed substitution that helps us do robust quoting. It backslashifies
5852 # metacharacters that are still active within double-quoted strings.
5853 Xsed='sed -e 1s/^X//'
5854 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5856 # Same as above, but do not quote variable references.
5857 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5859 # Sed substitution to delay expansion of an escaped shell variable in a
5860 # double_quote_subst'ed string.
5861 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5863 # Sed substitution to avoid accidental globbing in evaled expressions
5864 no_glob_subst='s/\*/\\\*/g'
5870 default_ofile=libtool
5871 can_build_shared=yes
5873 # All known linkers require a `.a' archive for static linking (except MSVC,
5874 # which needs '.lib').
5876 ltmain="$ac_aux_dir/ltmain.sh"
5877 ofile="$default_ofile"
5878 with_gnu_ld="$lt_cv_prog_gnu_ld"
5880 if test -n "$ac_tool_prefix"; then
5881 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5882 set dummy ${ac_tool_prefix}ar; ac_word=$2
5883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5885 if test "${ac_cv_prog_AR+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 if test -n "$AR"; then
5889 ac_cv_prog_AR="$AR" # Let the user override the test.
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5898 ac_cv_prog_AR="${ac_tool_prefix}ar"
5899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 if test -n "$AR"; then
5910 { echo "$as_me:$LINENO: result: $AR" >&5
5911 echo "${ECHO_T}$AR" >&6; }
5913 { echo "$as_me:$LINENO: result: no" >&5
5914 echo "${ECHO_T}no" >&6; }
5919 if test -z "$ac_cv_prog_AR"; then
5921 # Extract the first word of "ar", so it can be a program name with args.
5922 set dummy ar; ac_word=$2
5923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 if test -n "$ac_ct_AR"; then
5929 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938 ac_cv_prog_ac_ct_AR="ar"
5939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5949 if test -n "$ac_ct_AR"; then
5950 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5951 echo "${ECHO_T}$ac_ct_AR" >&6; }
5953 { echo "$as_me:$LINENO: result: no" >&5
5954 echo "${ECHO_T}no" >&6; }
5957 if test "x$ac_ct_AR" = x; then
5960 case $cross_compiling:$ac_tool_warned in
5962 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5963 whose name does not start with the host triplet. If you think this
5964 configuration is useful to you, please write to autoconf@gnu.org." >&5
5965 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5966 whose name does not start with the host triplet. If you think this
5967 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5968 ac_tool_warned=yes ;;
5976 if test -n "$ac_tool_prefix"; then
5977 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5978 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5981 if test "${ac_cv_prog_RANLIB+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 if test -n "$RANLIB"; then
5985 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5994 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 RANLIB=$ac_cv_prog_RANLIB
6005 if test -n "$RANLIB"; then
6006 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6007 echo "${ECHO_T}$RANLIB" >&6; }
6009 { echo "$as_me:$LINENO: result: no" >&5
6010 echo "${ECHO_T}no" >&6; }
6015 if test -z "$ac_cv_prog_RANLIB"; then
6016 ac_ct_RANLIB=$RANLIB
6017 # Extract the first word of "ranlib", so it can be a program name with args.
6018 set dummy ranlib; ac_word=$2
6019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6021 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 if test -n "$ac_ct_RANLIB"; then
6025 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 test -z "$as_dir" && as_dir=.
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6034 ac_cv_prog_ac_ct_RANLIB="ranlib"
6035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6045 if test -n "$ac_ct_RANLIB"; then
6046 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6047 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6049 { echo "$as_me:$LINENO: result: no" >&5
6050 echo "${ECHO_T}no" >&6; }
6053 if test "x$ac_ct_RANLIB" = x; then
6056 case $cross_compiling:$ac_tool_warned in
6058 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6059 whose name does not start with the host triplet. If you think this
6060 configuration is useful to you, please write to autoconf@gnu.org." >&5
6061 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6062 whose name does not start with the host triplet. If you think this
6063 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6064 ac_tool_warned=yes ;;
6066 RANLIB=$ac_ct_RANLIB
6069 RANLIB="$ac_cv_prog_RANLIB"
6072 if test -n "$ac_tool_prefix"; then
6073 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6074 set dummy ${ac_tool_prefix}strip; ac_word=$2
6075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6077 if test "${ac_cv_prog_STRIP+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 if test -n "$STRIP"; then
6081 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6090 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6100 STRIP=$ac_cv_prog_STRIP
6101 if test -n "$STRIP"; then
6102 { echo "$as_me:$LINENO: result: $STRIP" >&5
6103 echo "${ECHO_T}$STRIP" >&6; }
6105 { echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6; }
6111 if test -z "$ac_cv_prog_STRIP"; then
6113 # Extract the first word of "strip", so it can be a program name with args.
6114 set dummy strip; ac_word=$2
6115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6117 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 if test -n "$ac_ct_STRIP"; then
6121 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6130 ac_cv_prog_ac_ct_STRIP="strip"
6131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6141 if test -n "$ac_ct_STRIP"; then
6142 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6143 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6145 { echo "$as_me:$LINENO: result: no" >&5
6146 echo "${ECHO_T}no" >&6; }
6149 if test "x$ac_ct_STRIP" = x; then
6152 case $cross_compiling:$ac_tool_warned in
6154 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6155 whose name does not start with the host triplet. If you think this
6156 configuration is useful to you, please write to autoconf@gnu.org." >&5
6157 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6158 whose name does not start with the host triplet. If you think this
6159 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6160 ac_tool_warned=yes ;;
6165 STRIP="$ac_cv_prog_STRIP"
6170 old_CFLAGS="$CFLAGS"
6172 # Set sane defaults for various variables
6173 test -z "$AR" && AR=ar
6174 test -z "$AR_FLAGS" && AR_FLAGS=cru
6175 test -z "$AS" && AS=as
6176 test -z "$CC" && CC=cc
6177 test -z "$LTCC" && LTCC=$CC
6178 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6179 test -z "$DLLTOOL" && DLLTOOL=dlltool
6180 test -z "$LD" && LD=ld
6181 test -z "$LN_S" && LN_S="ln -s"
6182 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6183 test -z "$NM" && NM=nm
6184 test -z "$SED" && SED=sed
6185 test -z "$OBJDUMP" && OBJDUMP=objdump
6186 test -z "$RANLIB" && RANLIB=:
6187 test -z "$STRIP" && STRIP=:
6188 test -z "$ac_objext" && ac_objext=o
6190 # Determine commands to create old-style static archives.
6191 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6192 old_postinstall_cmds='chmod 644 $oldlib'
6193 old_postuninstall_cmds=
6195 if test -n "$RANLIB"; then
6198 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6201 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6204 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6207 for cc_temp in $compiler""; do
6209 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6210 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6215 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6218 # Only perform the check for file, if the check method requires it
6219 case $deplibs_check_method in
6221 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6222 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6223 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6224 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6232 lt_save_MAGIC_CMD="$MAGIC_CMD"
6233 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6234 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6235 for ac_dir in $ac_dummy; do
6237 test -z "$ac_dir" && ac_dir=.
6238 if test -f $ac_dir/${ac_tool_prefix}file; then
6239 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6240 if test -n "$file_magic_test_file"; then
6241 case $deplibs_check_method in
6243 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6245 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6246 $EGREP "$file_magic_regex" > /dev/null; then
6251 *** Warning: the command libtool uses to detect shared libraries,
6252 *** $file_magic_cmd, produces output that libtool cannot recognize.
6253 *** The result is that libtool may fail to recognize shared libraries
6254 *** as such. This will affect the creation of libtool libraries that
6255 *** depend on shared libraries, but programs linked with such libtool
6256 *** libraries will work regardless of this problem. Nevertheless, you
6257 *** may want to report the problem to your system manager and/or to
6258 *** bug-libtool@gnu.org
6268 MAGIC_CMD="$lt_save_MAGIC_CMD"
6273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6274 if test -n "$MAGIC_CMD"; then
6275 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6276 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6278 { echo "$as_me:$LINENO: result: no" >&5
6279 echo "${ECHO_T}no" >&6; }
6282 if test -z "$lt_cv_path_MAGIC_CMD"; then
6283 if test -n "$ac_tool_prefix"; then
6284 { echo "$as_me:$LINENO: checking for file" >&5
6285 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6286 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6291 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6294 lt_save_MAGIC_CMD="$MAGIC_CMD"
6295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6296 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6297 for ac_dir in $ac_dummy; do
6299 test -z "$ac_dir" && ac_dir=.
6300 if test -f $ac_dir/file; then
6301 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6302 if test -n "$file_magic_test_file"; then
6303 case $deplibs_check_method in
6305 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6306 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6307 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6308 $EGREP "$file_magic_regex" > /dev/null; then
6313 *** Warning: the command libtool uses to detect shared libraries,
6314 *** $file_magic_cmd, produces output that libtool cannot recognize.
6315 *** The result is that libtool may fail to recognize shared libraries
6316 *** as such. This will affect the creation of libtool libraries that
6317 *** depend on shared libraries, but programs linked with such libtool
6318 *** libraries will work regardless of this problem. Nevertheless, you
6319 *** may want to report the problem to your system manager and/or to
6320 *** bug-libtool@gnu.org
6330 MAGIC_CMD="$lt_save_MAGIC_CMD"
6335 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6336 if test -n "$MAGIC_CMD"; then
6337 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6338 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6340 { echo "$as_me:$LINENO: result: no" >&5
6341 echo "${ECHO_T}no" >&6; }
6356 # Check whether --enable-libtool-lock was given.
6357 if test "${enable_libtool_lock+set}" = set; then
6358 enableval=$enable_libtool_lock;
6361 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6364 # Check whether --with-pic was given.
6365 if test "${with_pic+set}" = set; then
6366 withval=$with_pic; pic_mode="$withval"
6371 test -z "$pic_mode" && pic_mode=default
6373 # Use C for the default configuration in the libtool script
6377 ac_cpp='$CPP $CPPFLAGS'
6378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6383 # Source file extension for C test sources.
6386 # Object file extension for compiled C test sources.
6390 # Code to be used in simple compile tests
6391 lt_simple_compile_test_code="int some_variable = 0;"
6393 # Code to be used in simple link tests
6394 lt_simple_link_test_code='int main(){return(0);}'
6397 # If no C compiler was specified, use CC.
6400 # If no C compiler flags were specified, use CFLAGS.
6401 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6403 # Allow CC to be a program name with arguments.
6407 # save warnings/boilerplate of simple test code
6408 ac_outfile=conftest.$ac_objext
6409 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6410 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6411 _lt_compiler_boilerplate=`cat conftest.err`
6414 ac_outfile=conftest.$ac_objext
6415 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6416 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6417 _lt_linker_boilerplate=`cat conftest.err`
6422 lt_prog_compiler_no_builtin_flag=
6424 if test "$GCC" = yes; then
6425 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6428 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6429 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6430 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 lt_cv_prog_compiler_rtti_exceptions=no
6434 ac_outfile=conftest.$ac_objext
6435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6436 lt_compiler_flag="-fno-rtti -fno-exceptions"
6437 # Insert the option either (1) after the last *FLAGS variable, or
6438 # (2) before a word containing "conftest.", or (3) at the end.
6439 # Note that $ac_compile itself does not contain backslashes and begins
6440 # with a dollar sign (not a hyphen), so the echo should work correctly.
6441 # The option is referenced via a variable to avoid confusing sed.
6442 lt_compile=`echo "$ac_compile" | $SED \
6443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6445 -e 's:$: $lt_compiler_flag:'`
6446 (eval echo "\"\$as_me:6446: $lt_compile\"" >&5)
6447 (eval "$lt_compile" 2>conftest.err)
6449 cat conftest.err >&5
6450 echo "$as_me:6450: \$? = $ac_status" >&5
6451 if (exit $ac_status) && test -s "$ac_outfile"; then
6452 # The compiler can only warn and ignore the option if not recognized
6453 # So say no if there are warnings other than the usual output.
6454 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6456 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6457 lt_cv_prog_compiler_rtti_exceptions=yes
6463 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6464 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6466 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6467 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6474 lt_prog_compiler_wl=
6475 lt_prog_compiler_pic=
6476 lt_prog_compiler_static=
6478 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6479 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6481 if test "$GCC" = yes; then
6482 lt_prog_compiler_wl='-Wl,'
6483 lt_prog_compiler_static='-static'
6487 # All AIX code is PIC.
6488 if test "$host_cpu" = ia64; then
6489 # AIX 5 now supports IA64 processor
6490 lt_prog_compiler_static='-Bstatic'
6495 # FIXME: we need at least 68020 code to build shared libraries, but
6496 # adding the `-m68020' flag to GCC prevents building anything better,
6498 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6501 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6502 # PIC is the default for these OSes.
6505 mingw* | cygwin* | pw32* | os2*)
6506 # This hack is so that the source file can tell whether it is being
6507 # built for inclusion in a dll (and should export symbols for example).
6508 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6509 # (--disable-auto-import) libraries
6510 lt_prog_compiler_pic='-DDLL_EXPORT'
6513 darwin* | rhapsody*)
6514 # PIC is the default on this platform
6515 # Common symbols not allowed in MH_DYLIB files
6516 lt_prog_compiler_pic='-fno-common'
6520 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6521 # Instead, we relocate shared libraries at runtime.
6525 # Just because we use GCC doesn't mean we suddenly get shared libraries
6526 # on systems that don't support them.
6527 lt_prog_compiler_can_build_shared=no
6532 if test -d /usr/nec; then
6533 lt_prog_compiler_pic=-Kconform_pic
6538 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6545 lt_prog_compiler_pic='-fPIC'
6551 lt_prog_compiler_pic='-fPIC'
6555 # PORTME Check for flag to pass linker flags through the system compiler.
6558 lt_prog_compiler_wl='-Wl,'
6559 if test "$host_cpu" = ia64; then
6560 # AIX 5 now supports IA64 processor
6561 lt_prog_compiler_static='-Bstatic'
6563 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6567 # PIC is the default on this platform
6568 # Common symbols not allowed in MH_DYLIB files
6569 case $cc_basename in
6571 lt_prog_compiler_pic='-qnocommon'
6572 lt_prog_compiler_wl='-Wl,'
6577 mingw* | cygwin* | pw32* | os2*)
6578 # This hack is so that the source file can tell whether it is being
6579 # built for inclusion in a dll (and should export symbols for example).
6580 lt_prog_compiler_pic='-DDLL_EXPORT'
6583 hpux9* | hpux10* | hpux11*)
6584 lt_prog_compiler_wl='-Wl,'
6585 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6592 lt_prog_compiler_pic='+Z'
6595 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6596 lt_prog_compiler_static='${wl}-a ${wl}archive'
6599 irix5* | irix6* | nonstopux*)
6600 lt_prog_compiler_wl='-Wl,'
6601 # PIC (with -KPIC) is the default.
6602 lt_prog_compiler_static='-non_shared'
6606 lt_prog_compiler_pic='-KPIC'
6607 lt_prog_compiler_static='-Bstatic'
6610 linux* | k*bsd*-gnu)
6611 case $cc_basename in
6613 lt_prog_compiler_wl='-Wl,'
6614 lt_prog_compiler_pic='-KPIC'
6615 lt_prog_compiler_static='-static'
6617 pgcc* | pgf77* | pgf90* | pgf95*)
6618 # Portland Group compilers (*not* the Pentium gcc compiler,
6619 # which looks to be a dead project)
6620 lt_prog_compiler_wl='-Wl,'
6621 lt_prog_compiler_pic='-fpic'
6622 lt_prog_compiler_static='-Bstatic'
6625 lt_prog_compiler_wl='-Wl,'
6626 # All Alpha code is PIC.
6627 lt_prog_compiler_static='-non_shared'
6630 case `$CC -V 2>&1 | sed 5q` in
6633 lt_prog_compiler_pic='-KPIC'
6634 lt_prog_compiler_static='-Bstatic'
6635 lt_prog_compiler_wl='-Wl,'
6638 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6639 lt_prog_compiler_pic='-KPIC'
6640 lt_prog_compiler_static='-Bstatic'
6641 lt_prog_compiler_wl=''
6648 osf3* | osf4* | osf5*)
6649 lt_prog_compiler_wl='-Wl,'
6650 # All OSF/1 code is PIC.
6651 lt_prog_compiler_static='-non_shared'
6655 lt_prog_compiler_static='-non_shared'
6659 lt_prog_compiler_pic='-KPIC'
6660 lt_prog_compiler_static='-Bstatic'
6661 case $cc_basename in
6663 lt_prog_compiler_wl='-Qoption ld ';;
6665 lt_prog_compiler_wl='-Wl,';;
6670 lt_prog_compiler_wl='-Qoption ld '
6671 lt_prog_compiler_pic='-PIC'
6672 lt_prog_compiler_static='-Bstatic'
6675 sysv4 | sysv4.2uw2* | sysv4.3*)
6676 lt_prog_compiler_wl='-Wl,'
6677 lt_prog_compiler_pic='-KPIC'
6678 lt_prog_compiler_static='-Bstatic'
6682 if test -d /usr/nec ;then
6683 lt_prog_compiler_pic='-Kconform_pic'
6684 lt_prog_compiler_static='-Bstatic'
6688 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6689 lt_prog_compiler_wl='-Wl,'
6690 lt_prog_compiler_pic='-KPIC'
6691 lt_prog_compiler_static='-Bstatic'
6695 lt_prog_compiler_wl='-Wl,'
6696 lt_prog_compiler_can_build_shared=no
6700 lt_prog_compiler_pic='-pic'
6701 lt_prog_compiler_static='-Bstatic'
6705 lt_prog_compiler_can_build_shared=no
6710 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6711 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6714 # Check to make sure the PIC flag actually works.
6716 if test -n "$lt_prog_compiler_pic"; then
6718 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6719 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6720 if test "${lt_prog_compiler_pic_works+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 lt_prog_compiler_pic_works=no
6724 ac_outfile=conftest.$ac_objext
6725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6726 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6727 # Insert the option either (1) after the last *FLAGS variable, or
6728 # (2) before a word containing "conftest.", or (3) at the end.
6729 # Note that $ac_compile itself does not contain backslashes and begins
6730 # with a dollar sign (not a hyphen), so the echo should work correctly.
6731 # The option is referenced via a variable to avoid confusing sed.
6732 lt_compile=`echo "$ac_compile" | $SED \
6733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6735 -e 's:$: $lt_compiler_flag:'`
6736 (eval echo "\"\$as_me:6736: $lt_compile\"" >&5)
6737 (eval "$lt_compile" 2>conftest.err)
6739 cat conftest.err >&5
6740 echo "$as_me:6740: \$? = $ac_status" >&5
6741 if (exit $ac_status) && test -s "$ac_outfile"; then
6742 # The compiler can only warn and ignore the option if not recognized
6743 # So say no if there are warnings other than the usual output.
6744 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6746 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6747 lt_prog_compiler_pic_works=yes
6753 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6754 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6756 if test x"$lt_prog_compiler_pic_works" = xyes; then
6757 case $lt_prog_compiler_pic in
6759 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6762 lt_prog_compiler_pic=
6763 lt_prog_compiler_can_build_shared=no
6768 # For platforms which do not support PIC, -DPIC is meaningless:
6770 lt_prog_compiler_pic=
6773 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6778 # Check to make sure the static flag actually works.
6780 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6781 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6782 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
6783 if test "${lt_prog_compiler_static_works+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 lt_prog_compiler_static_works=no
6787 save_LDFLAGS="$LDFLAGS"
6788 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6789 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6790 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6791 # The linker can only warn and ignore the option if not recognized
6792 # So say no if there are warnings
6793 if test -s conftest.err; then
6794 # Append any errors to the config.log.
6795 cat conftest.err 1>&5
6796 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6798 if diff conftest.exp conftest.er2 >/dev/null; then
6799 lt_prog_compiler_static_works=yes
6802 lt_prog_compiler_static_works=yes
6806 LDFLAGS="$save_LDFLAGS"
6809 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6810 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6812 if test x"$lt_prog_compiler_static_works" = xyes; then
6815 lt_prog_compiler_static=
6819 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6820 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6821 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 lt_cv_prog_compiler_c_o=no
6825 $rm -r conftest 2>/dev/null
6829 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6831 lt_compiler_flag="-o out/conftest2.$ac_objext"
6832 # Insert the option either (1) after the last *FLAGS variable, or
6833 # (2) before a word containing "conftest.", or (3) at the end.
6834 # Note that $ac_compile itself does not contain backslashes and begins
6835 # with a dollar sign (not a hyphen), so the echo should work correctly.
6836 lt_compile=`echo "$ac_compile" | $SED \
6837 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6838 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6839 -e 's:$: $lt_compiler_flag:'`
6840 (eval echo "\"\$as_me:6840: $lt_compile\"" >&5)
6841 (eval "$lt_compile" 2>out/conftest.err)
6843 cat out/conftest.err >&5
6844 echo "$as_me:6844: \$? = $ac_status" >&5
6845 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6847 # The compiler can only warn and ignore the option if not recognized
6848 # So say no if there are warnings
6849 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6850 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6851 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6852 lt_cv_prog_compiler_c_o=yes
6857 # SGI C++ compiler will create directory out/ii_files/ for
6858 # template instantiation
6859 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6860 $rm out/* && rmdir out
6866 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6867 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6870 hard_links="nottested"
6871 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6872 # do not overwrite the value of need_locks provided by the user
6873 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6874 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6877 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6879 ln conftest.a conftest.b 2>&5 || hard_links=no
6880 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6881 { echo "$as_me:$LINENO: result: $hard_links" >&5
6882 echo "${ECHO_T}$hard_links" >&6; }
6883 if test "$hard_links" = no; then
6884 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6885 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6892 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6893 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6896 allow_undefined_flag=
6897 enable_shared_with_static_runtimes=no
6899 archive_expsym_cmds=
6900 old_archive_From_new_cmds=
6901 old_archive_from_expsyms_cmds=
6902 export_dynamic_flag_spec=
6903 whole_archive_flag_spec=
6904 thread_safe_flag_spec=
6905 hardcode_libdir_flag_spec=
6906 hardcode_libdir_flag_spec_ld=
6907 hardcode_libdir_separator=
6910 hardcode_shlibpath_var=unsupported
6911 link_all_deplibs=unknown
6912 hardcode_automatic=no
6915 always_export_symbols=no
6916 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6917 # include_expsyms should be a list of space-separated symbols to be *always*
6918 # included in the symbol list
6920 # exclude_expsyms can be an extended regexp of symbols to exclude
6921 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6922 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6923 # as well as any symbol that contains `d'.
6924 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6925 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6926 # platforms (ab)use it in PIC code, but their linkers get confused if
6927 # the symbol is explicitly referenced. Since portable code cannot
6928 # rely on this symbol name, it's probably fine to never include it in
6929 # preloaded symbol tables.
6930 extract_expsyms_cmds=
6931 # Just being paranoid about ensuring that cc_basename is set.
6932 for cc_temp in $compiler""; do
6934 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6935 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6940 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6943 cygwin* | mingw* | pw32*)
6944 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6945 # When not using gcc, we currently assume that we are using
6946 # Microsoft Visual C++.
6947 if test "$GCC" != yes; then
6952 # we just hope/assume this is gcc and not c89 (= MSVC++)
6961 if test "$with_gnu_ld" = yes; then
6962 # If archive_cmds runs LD, not CC, wlarc should be empty
6965 # Set some defaults for GNU ld with shared library support. These
6966 # are reset later if shared libraries are not supported. Putting them
6967 # here allows them to be overridden if necessary.
6968 runpath_var=LD_RUN_PATH
6969 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6970 export_dynamic_flag_spec='${wl}--export-dynamic'
6971 # ancient GNU ld didn't support --whole-archive et. al.
6972 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6973 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6975 whole_archive_flag_spec=
6977 supports_anon_versioning=no
6978 case `$LD -v 2>/dev/null` in
6979 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6980 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6981 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6982 *\ 2.11.*) ;; # other 2.11 versions
6983 *) supports_anon_versioning=yes ;;
6986 # See if GNU ld supports shared libraries.
6988 aix3* | aix4* | aix5*)
6989 # On AIX/PPC, the GNU linker is very broken
6990 if test "$host_cpu" != ia64; then
6994 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6995 *** to be unable to reliably create shared libraries on AIX.
6996 *** Therefore, libtool is disabling shared libraries support. If you
6997 *** really care for shared libraries, you may want to modify your PATH
6998 *** so that a non-GNU linker is found, and then restart.
7005 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)'
7006 hardcode_libdir_flag_spec='-L$libdir'
7007 hardcode_minus_L=yes
7009 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7010 # that the semantics of dynamic libraries on AmigaOS, at least up
7011 # to version 4, is to share data among multiple programs linked
7012 # with the same dynamic library. Since this doesn't match the
7013 # behavior of shared libraries on other platforms, we can't use
7019 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7020 allow_undefined_flag=unsupported
7021 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7022 # support --undefined. This deserves some investigation. FIXME
7023 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7029 cygwin* | mingw* | pw32*)
7030 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7031 # as there is no search path for DLLs.
7032 hardcode_libdir_flag_spec='-L$libdir'
7033 allow_undefined_flag=unsupported
7034 always_export_symbols=no
7035 enable_shared_with_static_runtimes=yes
7036 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7038 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7039 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7040 # If the export-symbols file already is a .def file (1st line
7041 # is EXPORTS), use it as is; otherwise, prepend...
7042 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7043 cp $export_symbols $output_objdir/$soname.def;
7045 echo EXPORTS > $output_objdir/$soname.def;
7046 cat $export_symbols >> $output_objdir/$soname.def;
7048 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7056 hardcode_shlibpath_var=no
7057 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7058 export_dynamic_flag_spec='${wl}-E'
7059 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7060 # Instead, shared libraries are loaded at an image base (0x10000000 by
7061 # default) and relocated if they conflict, which is a slow very memory
7062 # consuming and fragmenting process. To avoid this, we pick a random,
7063 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7064 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7065 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7066 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'
7069 gnu* | linux* | k*bsd*-gnu)
7070 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7072 case $cc_basename,$host_cpu in
7073 pgcc*) # Portland Group C compiler
7074 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'
7075 tmp_addflag=' $pic_flag'
7077 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7078 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'
7079 tmp_addflag=' $pic_flag -Mnomain' ;;
7080 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7081 tmp_addflag=' -i_dynamic' ;;
7082 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7083 tmp_addflag=' -i_dynamic -nofor_main' ;;
7084 ifc* | ifort*) # Intel Fortran compiler
7085 tmp_addflag=' -nofor_main' ;;
7087 case `$CC -V 2>&1 | sed 5q` in
7088 *Sun\ C*) # Sun C 5.9
7089 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7090 tmp_sharedflag='-G' ;;
7091 *Sun\ F*) # Sun Fortran 8.3
7092 tmp_sharedflag='-G' ;;
7094 tmp_sharedflag='-shared' ;;
7096 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7098 if test $supports_anon_versioning = yes; then
7099 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7100 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7101 $echo "local: *; };" >> $output_objdir/$libname.ver~
7102 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7110 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7111 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7114 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7115 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7120 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7124 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7125 *** create shared libraries on Solaris systems. Therefore, libtool
7126 *** is disabling shared libraries support. We urge you to upgrade GNU
7127 *** binutils to release 2.9.1 or newer. Another option is to modify
7128 *** your PATH or compiler configuration so that the native linker is
7129 *** used, and then restart.
7132 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7134 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7140 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7141 case `$LD -v 2>&1` in
7142 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7146 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7147 *** reliably create shared libraries on SCO systems. Therefore, libtool
7148 *** is disabling shared libraries support. We urge you to upgrade GNU
7149 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7150 *** your PATH or compiler configuration so that the native linker is
7151 *** used, and then restart.
7156 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7157 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7159 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7168 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7171 hardcode_shlibpath_var=no
7175 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7177 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7184 if test "$ld_shlibs" = no; then
7186 hardcode_libdir_flag_spec=
7187 export_dynamic_flag_spec=
7188 whole_archive_flag_spec=
7191 # PORTME fill in a description of your system's linker (not GNU ld)
7194 allow_undefined_flag=unsupported
7195 always_export_symbols=yes
7196 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'
7197 # Note: this linker hardcodes the directories in LIBPATH if there
7198 # are no directories specified by -L.
7199 hardcode_minus_L=yes
7200 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7201 # Neither direct hardcoding nor static linking is supported with a
7203 hardcode_direct=unsupported
7208 if test "$host_cpu" = ia64; then
7209 # On IA64, the linker does run time linking by default, so we don't
7210 # have to do anything special.
7211 aix_use_runtimelinking=no
7212 exp_sym_flag='-Bexport'
7215 # If we're using GNU nm, then we don't want the "-C" option.
7216 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7217 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7218 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'
7220 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'
7222 aix_use_runtimelinking=no
7224 # Test if we are trying to use run time linking or normal
7225 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7226 # need to do runtime linking.
7227 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7228 for ld_flag in $LDFLAGS; do
7229 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7230 aix_use_runtimelinking=yes
7237 exp_sym_flag='-bexport'
7238 no_entry_flag='-bnoentry'
7241 # When large executables or shared objects are built, AIX ld can
7242 # have problems creating the table of contents. If linking a library
7243 # or program results in "error TOC overflow" add -mminimal-toc to
7244 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7245 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7249 hardcode_libdir_separator=':'
7250 link_all_deplibs=yes
7252 if test "$GCC" = yes; then
7253 case $host_os in aix4.[012]|aix4.[012].*)
7254 # We only want to do this on AIX 4.2 and lower, the check
7255 # below for broken collect2 doesn't work under 4.3+
7256 collect2name=`${CC} -print-prog-name=collect2`
7257 if test -f "$collect2name" && \
7258 strings "$collect2name" | grep resolve_lib_name >/dev/null
7260 # We have reworked collect2
7263 # We have old collect2
7264 hardcode_direct=unsupported
7265 # It fails to find uninstalled libraries when the uninstalled
7266 # path is not listed in the libpath. Setting hardcode_minus_L
7267 # to unsupported forces relinking
7268 hardcode_minus_L=yes
7269 hardcode_libdir_flag_spec='-L$libdir'
7270 hardcode_libdir_separator=
7274 shared_flag='-shared'
7275 if test "$aix_use_runtimelinking" = yes; then
7276 shared_flag="$shared_flag "'${wl}-G'
7280 if test "$host_cpu" = ia64; then
7281 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7282 # chokes on -Wl,-G. The following line is correct:
7285 if test "$aix_use_runtimelinking" = yes; then
7286 shared_flag='${wl}-G'
7288 shared_flag='${wl}-bM:SRE'
7293 # It seems that -bexpall does not export symbols beginning with
7294 # underscore (_), so it is better to generate a list of symbols to export.
7295 always_export_symbols=yes
7296 if test "$aix_use_runtimelinking" = yes; then
7297 # Warning - without using the other runtime loading flags (-brtl),
7298 # -berok will link without error, but may produce a broken library.
7299 allow_undefined_flag='-berok'
7300 # Determine the default libpath from the value encoded in an empty executable.
7301 cat >conftest.$ac_ext <<_ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7316 rm -f conftest.$ac_objext conftest$ac_exeext
7317 if { (ac_try="$ac_link"
7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320 *) ac_try_echo=$ac_try;;
7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323 (eval "$ac_link") 2>conftest.er1
7325 grep -v '^ *+' conftest.er1 >conftest.err
7327 cat conftest.err >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } && {
7330 test -z "$ac_c_werror_flag" ||
7331 test ! -s conftest.err
7332 } && test -s conftest$ac_exeext &&
7333 $as_test_x conftest$ac_exeext; then
7335 lt_aix_libpath_sed='
7336 /Import File Strings/,/^$/ {
7342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7343 # Check for a 64-bit object if we didn't find anything.
7344 if test -z "$aix_libpath"; then
7345 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7348 echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7355 conftest$ac_exeext conftest.$ac_ext
7356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7358 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7359 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"
7361 if test "$host_cpu" = ia64; then
7362 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7363 allow_undefined_flag="-z nodefs"
7364 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"
7366 # Determine the default libpath from the value encoded in an empty executable.
7367 cat >conftest.$ac_ext <<_ACEOF
7370 cat confdefs.h >>conftest.$ac_ext
7371 cat >>conftest.$ac_ext <<_ACEOF
7372 /* end confdefs.h. */
7382 rm -f conftest.$ac_objext conftest$ac_exeext
7383 if { (ac_try="$ac_link"
7385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7386 *) ac_try_echo=$ac_try;;
7388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7389 (eval "$ac_link") 2>conftest.er1
7391 grep -v '^ *+' conftest.er1 >conftest.err
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } && {
7396 test -z "$ac_c_werror_flag" ||
7397 test ! -s conftest.err
7398 } && test -s conftest$ac_exeext &&
7399 $as_test_x conftest$ac_exeext; then
7401 lt_aix_libpath_sed='
7402 /Import File Strings/,/^$/ {
7408 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7409 # Check for a 64-bit object if we didn't find anything.
7410 if test -z "$aix_libpath"; then
7411 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7421 conftest$ac_exeext conftest.$ac_ext
7422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7424 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7425 # Warning - without using the other run time loading flags,
7426 # -berok will link without error, but may produce a broken library.
7427 no_undefined_flag=' ${wl}-bernotok'
7428 allow_undefined_flag=' ${wl}-berok'
7429 # Exported symbols can be pulled into shared objects from archives
7430 whole_archive_flag_spec='$convenience'
7431 archive_cmds_need_lc=yes
7432 # This is similar to how AIX traditionally builds its shared libraries.
7433 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'
7439 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)'
7440 hardcode_libdir_flag_spec='-L$libdir'
7441 hardcode_minus_L=yes
7442 # see comment about different semantics on the GNU ld section
7447 export_dynamic_flag_spec=-rdynamic
7450 cygwin* | mingw* | pw32*)
7451 # When not using gcc, we currently assume that we are using
7452 # Microsoft Visual C++.
7453 # hardcode_libdir_flag_spec is actually meaningless, as there is
7454 # no search path for DLLs.
7455 hardcode_libdir_flag_spec=' '
7456 allow_undefined_flag=unsupported
7457 # Tell ltmain to make .lib files, not .a files.
7459 # Tell ltmain to make .dll files, not .so files.
7461 # FIXME: Setting linknames here is a bad hack.
7462 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7463 # The linker will automatically build a .lib file if we build a DLL.
7464 old_archive_From_new_cmds='true'
7465 # FIXME: Should let the user specify the lib program.
7466 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7467 fix_srcfile_path='`cygpath -w "$srcfile"`'
7468 enable_shared_with_static_runtimes=yes
7471 darwin* | rhapsody*)
7473 rhapsody* | darwin1.[012])
7474 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7477 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7478 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7480 case ${MACOSX_DEPLOYMENT_TARGET} in
7482 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7485 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7491 archive_cmds_need_lc=no
7493 hardcode_automatic=yes
7494 hardcode_shlibpath_var=unsupported
7495 whole_archive_flag_spec=''
7496 link_all_deplibs=yes
7497 if test "$GCC" = yes ; then
7498 output_verbose_link_cmd='echo'
7499 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7500 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7501 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7502 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}'
7503 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}'
7505 case $cc_basename in
7507 output_verbose_link_cmd='echo'
7508 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7509 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7510 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7511 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7512 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}'
7522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7523 hardcode_libdir_flag_spec='-L$libdir'
7524 hardcode_shlibpath_var=no
7531 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7532 # support. Future versions do this automatically, but an explicit c++rt0.o
7533 # does not break anything, and helps significantly (at the cost of a little
7536 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7537 hardcode_libdir_flag_spec='-R$libdir'
7539 hardcode_shlibpath_var=no
7542 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7546 hardcode_minus_L=yes
7547 hardcode_shlibpath_var=no
7550 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7551 freebsd* | dragonfly*)
7552 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7553 hardcode_libdir_flag_spec='-R$libdir'
7555 hardcode_shlibpath_var=no
7559 if test "$GCC" = yes; then
7560 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'
7562 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'
7564 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7565 hardcode_libdir_separator=:
7568 # hardcode_minus_L: Not really in the search PATH,
7569 # but as the default location of the library.
7570 hardcode_minus_L=yes
7571 export_dynamic_flag_spec='${wl}-E'
7575 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7576 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7578 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7580 if test "$with_gnu_ld" = no; then
7581 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7582 hardcode_libdir_separator=:
7585 export_dynamic_flag_spec='${wl}-E'
7587 # hardcode_minus_L: Not really in the search PATH,
7588 # but as the default location of the library.
7589 hardcode_minus_L=yes
7594 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7597 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7600 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7603 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7609 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7612 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7615 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7619 if test "$with_gnu_ld" = no; then
7620 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7621 hardcode_libdir_separator=:
7625 hardcode_libdir_flag_spec_ld='+b $libdir'
7627 hardcode_shlibpath_var=no
7631 export_dynamic_flag_spec='${wl}-E'
7633 # hardcode_minus_L: Not really in the search PATH,
7634 # but as the default location of the library.
7635 hardcode_minus_L=yes
7641 irix5* | irix6* | nonstopux*)
7642 if test "$GCC" = yes; then
7643 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'
7645 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'
7646 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7649 hardcode_libdir_separator=:
7650 link_all_deplibs=yes
7654 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7657 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7659 hardcode_libdir_flag_spec='-R$libdir'
7661 hardcode_shlibpath_var=no
7665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7668 hardcode_libdir_separator=:
7669 hardcode_shlibpath_var=no
7673 if test -f /usr/libexec/ld.so; then
7675 hardcode_shlibpath_var=no
7676 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7677 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7678 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7679 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7680 export_dynamic_flag_spec='${wl}-E'
7683 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7684 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7685 hardcode_libdir_flag_spec='-R$libdir'
7688 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7689 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7699 hardcode_libdir_flag_spec='-L$libdir'
7700 hardcode_minus_L=yes
7701 allow_undefined_flag=unsupported
7702 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'
7703 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7707 if test "$GCC" = yes; then
7708 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7709 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'
7711 allow_undefined_flag=' -expect_unresolved \*'
7712 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'
7714 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7715 hardcode_libdir_separator=:
7718 osf4* | osf5*) # as osf3* with the addition of -msym flag
7719 if test "$GCC" = yes; then
7720 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7721 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'
7722 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7724 allow_undefined_flag=' -expect_unresolved \*'
7725 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'
7726 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7727 $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'
7729 # Both c and cxx compiler support -rpath directly
7730 hardcode_libdir_flag_spec='-rpath $libdir'
7732 hardcode_libdir_separator=:
7736 no_undefined_flag=' -z text'
7737 if test "$GCC" = yes; then
7739 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7740 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7741 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7744 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7745 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7746 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7748 hardcode_libdir_flag_spec='-R$libdir'
7749 hardcode_shlibpath_var=no
7751 solaris2.[0-5] | solaris2.[0-5].*) ;;
7753 # The compiler driver will combine and reorder linker options,
7754 # but understands `-z linker_flag'. GCC discards it without `$wl',
7755 # but is careful enough not to reorder.
7756 # Supported since Solaris 2.6 (maybe 2.5.1?)
7757 if test "$GCC" = yes; then
7758 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7760 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7764 link_all_deplibs=yes
7768 if test "x$host_vendor" = xsequent; then
7769 # Use $CC to link under sequent, because it throws in some extra .o
7770 # files that make .init and .fini sections work.
7771 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7773 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7775 hardcode_libdir_flag_spec='-L$libdir'
7777 hardcode_minus_L=yes
7778 hardcode_shlibpath_var=no
7782 case $host_vendor in
7784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7785 hardcode_direct=yes # is this really true???
7788 ## LD is ld it makes a PLAMLIB
7789 ## CC just makes a GrossModule.
7790 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7791 reload_cmds='$CC -r -o $output$reload_objs'
7795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7796 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7799 runpath_var='LD_RUN_PATH'
7800 hardcode_shlibpath_var=no
7804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7805 hardcode_shlibpath_var=no
7806 export_dynamic_flag_spec='-Bexport'
7810 if test -d /usr/nec; then
7811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7812 hardcode_shlibpath_var=no
7813 runpath_var=LD_RUN_PATH
7814 hardcode_runpath_var=yes
7819 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7820 no_undefined_flag='${wl}-z,text'
7821 archive_cmds_need_lc=no
7822 hardcode_shlibpath_var=no
7823 runpath_var='LD_RUN_PATH'
7825 if test "$GCC" = yes; then
7826 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7827 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7829 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7830 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7834 sysv5* | sco3.2v5* | sco5v6*)
7835 # Note: We can NOT use -z defs as we might desire, because we do not
7836 # link with -lc, and that would cause any symbols used from libc to
7837 # always be unresolved, which means just about no library would
7838 # ever link correctly. If we're not using GNU ld we use -z text
7839 # though, which does catch some bad symbols but isn't as heavy-handed
7841 no_undefined_flag='${wl}-z,text'
7842 allow_undefined_flag='${wl}-z,nodefs'
7843 archive_cmds_need_lc=no
7844 hardcode_shlibpath_var=no
7845 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7846 hardcode_libdir_separator=':'
7847 link_all_deplibs=yes
7848 export_dynamic_flag_spec='${wl}-Bexport'
7849 runpath_var='LD_RUN_PATH'
7851 if test "$GCC" = yes; then
7852 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7853 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7855 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7856 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7862 hardcode_libdir_flag_spec='-L$libdir'
7863 hardcode_shlibpath_var=no
7872 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7873 echo "${ECHO_T}$ld_shlibs" >&6; }
7874 test "$ld_shlibs" = no && can_build_shared=no
7877 # Do we need to explicitly link libc?
7879 case "x$archive_cmds_need_lc" in
7881 # Assume -lc should be added
7882 archive_cmds_need_lc=yes
7884 if test "$enable_shared" = yes && test "$GCC" = yes; then
7885 case $archive_cmds in
7887 # FIXME: we may have to deal with multi-command sequences.
7890 # Test whether the compiler implicitly links with -lc since on some
7891 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7892 # to ld, don't add -lc before -lgcc.
7893 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7894 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7899 (eval $ac_compile) 2>&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } 2>conftest.err; then
7905 libobjs=conftest.$ac_objext
7907 wl=$lt_prog_compiler_wl
7908 pic_flag=$lt_prog_compiler_pic
7914 lt_save_allow_undefined_flag=$allow_undefined_flag
7915 allow_undefined_flag=
7916 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7917 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }
7922 archive_cmds_need_lc=no
7924 archive_cmds_need_lc=yes
7926 allow_undefined_flag=$lt_save_allow_undefined_flag
7928 cat conftest.err 1>&5
7931 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7932 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7939 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7940 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7942 libname_spec='lib$name'
7950 shlibpath_overrides_runpath=unknown
7952 dynamic_linker="$host_os ld.so"
7953 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7955 if test "$GCC" = yes; then
7957 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7958 *) lt_awk_arg="/^libraries:/" ;;
7960 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7961 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
7962 # if the path contains ";" then we assume it to be the separator
7963 # otherwise default to the standard path separator (i.e. ":") - it is
7964 # assumed that no part of a normal pathname contains ";" but that should
7965 # okay in the real world where ";" in dirpaths is itself problematic.
7966 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7968 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7970 # Ok, now we have the path, separated by spaces, we can step through it
7971 # and add multilib dir if necessary.
7972 lt_tmp_lt_search_path_spec=
7973 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7974 for lt_sys_path in $lt_search_path_spec; do
7975 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7976 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7978 test -d "$lt_sys_path" && \
7979 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7982 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
7983 BEGIN {RS=" "; FS="/|\n";} {
7986 for (lt_i = NF; lt_i > 0; lt_i--) {
7987 if ($lt_i != "" && $lt_i != ".") {
7988 if ($lt_i == "..") {
7991 if (lt_count == 0) {
7992 lt_foo="/" $lt_i lt_foo;
7999 if (lt_foo != "") { lt_freq[lt_foo]++; }
8000 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8002 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8004 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8006 need_lib_prefix=unknown
8007 hardcode_into_libs=no
8009 # when you set need_version to no, make sure it does not cause -set_version
8010 # flags to be left without arguments
8011 need_version=unknown
8016 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8017 shlibpath_var=LIBPATH
8019 # AIX 3 has no versioning support, so we append a major version to the name.
8020 soname_spec='${libname}${release}${shared_ext}$major'
8027 hardcode_into_libs=yes
8028 if test "$host_cpu" = ia64; then
8029 # AIX 5 supports IA64
8030 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8031 shlibpath_var=LD_LIBRARY_PATH
8033 # With GCC up to 2.95.x, collect2 would create an import file
8034 # for dependence libraries. The import file would start with
8035 # the line `#! .'. This would cause the generated library to
8036 # depend on `.', always an invalid library. This was fixed in
8037 # development snapshots of GCC prior to 3.0.
8039 aix4 | aix4.[01] | aix4.[01].*)
8040 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8042 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8049 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8050 # soname into executable. Probably we can add versioning support to
8051 # collect2, so additional links can be useful in future.
8052 if test "$aix_use_runtimelinking" = yes; then
8053 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8054 # instead of lib<name>.a to let people know that these are not
8055 # typical AIX shared libraries.
8056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8058 # We preserve .a as extension for shared libraries through AIX4.2
8059 # and later when we are not doing run time linking.
8060 library_names_spec='${libname}${release}.a $libname.a'
8061 soname_spec='${libname}${release}${shared_ext}$major'
8063 shlibpath_var=LIBPATH
8068 library_names_spec='$libname.ixlibrary $libname.a'
8069 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8070 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'
8074 library_names_spec='${libname}${shared_ext}'
8075 dynamic_linker="$host_os ld.so"
8076 shlibpath_var=LIBRARY_PATH
8082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8083 soname_spec='${libname}${release}${shared_ext}$major'
8084 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8085 shlibpath_var=LD_LIBRARY_PATH
8086 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8087 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8088 # the default ld.so.conf also contains /usr/contrib/lib and
8089 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8090 # libtool to hard-code these into programs
8093 cygwin* | mingw* | pw32*)
8094 version_type=windows
8099 case $GCC,$host_os in
8100 yes,cygwin* | yes,mingw* | yes,pw32*)
8101 library_names_spec='$libname.dll.a'
8102 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8103 postinstall_cmds='base_file=`basename \${file}`~
8104 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8105 dldir=$destdir/`dirname \$dlpath`~
8106 test -d \$dldir || mkdir -p \$dldir~
8107 $install_prog $dir/$dlname \$dldir/$dlname~
8108 chmod a+x \$dldir/$dlname'
8109 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8110 dlpath=$dir/\$dldll~
8112 shlibpath_overrides_runpath=yes
8116 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8117 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8118 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8121 # MinGW DLLs use traditional 'lib' prefix
8122 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8123 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8124 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8125 # It is most probably a Windows format PATH printed by
8126 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8127 # path with ; separators, and with drive letters. We can handle the
8128 # drive letters (cygwin fileutils understands them), so leave them,
8129 # especially as we might pass files found there to a mingw objdump,
8130 # which wouldn't understand a cygwinified path. Ahh.
8131 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8133 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8137 # pw32 DLLs use 'pw' prefix rather than 'lib'
8138 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8144 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8147 dynamic_linker='Win32 ld.exe'
8148 # FIXME: first we should search . and the directory the executable is in
8152 darwin* | rhapsody*)
8153 dynamic_linker="$host_os dyld"
8157 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8158 soname_spec='${libname}${release}${major}$shared_ext'
8159 shlibpath_overrides_runpath=yes
8160 shlibpath_var=DYLD_LIBRARY_PATH
8161 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8163 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8164 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8172 soname_spec='${libname}${release}${shared_ext}$major'
8173 shlibpath_var=LD_LIBRARY_PATH
8180 freebsd* | dragonfly*)
8181 # DragonFly does not have aout. When/if they implement a new
8182 # versioning mechanism, adjust this.
8183 if test -x /usr/bin/objformat; then
8184 objformat=`/usr/bin/objformat`
8187 freebsd[123]*) objformat=aout ;;
8191 version_type=freebsd-$objformat
8192 case $version_type in
8194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8199 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8203 shlibpath_var=LD_LIBRARY_PATH
8206 shlibpath_overrides_runpath=yes
8208 freebsd3.[01]* | freebsdelf3.[01]*)
8209 shlibpath_overrides_runpath=yes
8210 hardcode_into_libs=yes
8212 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8213 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8214 shlibpath_overrides_runpath=no
8215 hardcode_into_libs=yes
8217 *) # from 4.6 on, and DragonFly
8218 shlibpath_overrides_runpath=yes
8219 hardcode_into_libs=yes
8228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8229 soname_spec='${libname}${release}${shared_ext}$major'
8230 shlibpath_var=LD_LIBRARY_PATH
8231 hardcode_into_libs=yes
8234 hpux9* | hpux10* | hpux11*)
8235 # Give a soname corresponding to the major version so that dld.sl refuses to
8236 # link against other versions.
8243 hardcode_into_libs=yes
8244 dynamic_linker="$host_os dld.so"
8245 shlibpath_var=LD_LIBRARY_PATH
8246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8248 soname_spec='${libname}${release}${shared_ext}$major'
8249 if test "X$HPUX_IA64_MODE" = X32; then
8250 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8252 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8254 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8258 hardcode_into_libs=yes
8259 dynamic_linker="$host_os dld.sl"
8260 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8261 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8263 soname_spec='${libname}${release}${shared_ext}$major'
8264 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8269 dynamic_linker="$host_os dld.sl"
8270 shlibpath_var=SHLIB_PATH
8271 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8273 soname_spec='${libname}${release}${shared_ext}$major'
8276 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8277 postinstall_cmds='chmod 555 $lib'
8284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8285 soname_spec='${libname}${release}${shared_ext}$major'
8286 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8287 shlibpath_var=LD_LIBRARY_PATH
8288 shlibpath_overrides_runpath=no
8289 hardcode_into_libs=yes
8292 irix5* | irix6* | nonstopux*)
8294 nonstopux*) version_type=nonstopux ;;
8296 if test "$lt_cv_prog_gnu_ld" = yes; then
8304 soname_spec='${libname}${release}${shared_ext}$major'
8305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8307 irix5* | nonstopux*)
8311 case $LD in # libtool.m4 will add one of these switches to LD
8312 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8313 libsuff= shlibsuff= libmagic=32-bit;;
8314 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8315 libsuff=32 shlibsuff=N32 libmagic=N32;;
8316 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8317 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8318 *) libsuff= shlibsuff= libmagic=never-match;;
8322 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8323 shlibpath_overrides_runpath=no
8324 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8325 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8326 hardcode_into_libs=yes
8329 # No shared lib support for Linux oldld, aout, or coff.
8330 linux*oldld* | linux*aout* | linux*coff*)
8334 # This must be Linux ELF.
8335 linux* | k*bsd*-gnu)
8339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8340 soname_spec='${libname}${release}${shared_ext}$major'
8341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8342 shlibpath_var=LD_LIBRARY_PATH
8343 shlibpath_overrides_runpath=no
8344 # This implies no fast_install, which is unacceptable.
8345 # Some rework will be needed to allow for fast_install
8346 # before this can be enabled.
8347 hardcode_into_libs=yes
8349 # Append ld.so.conf contents to the search path
8350 if test -f /etc/ld.so.conf; then
8351 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8352 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8355 # We used to test for /lib/ld.so.1 and disable shared libraries on
8356 # powerpc, because MkLinux only supported shared libraries with the
8357 # GNU dynamic linker. Since this was broken with cross compilers,
8358 # most powerpc-linux boxes support dynamic linking these days and
8359 # people can always --disable-shared, the test was removed, and we
8360 # assume the GNU/Linux dynamic linker is in use.
8361 dynamic_linker='GNU/Linux ld.so'
8368 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8371 dynamic_linker='NetBSD (a.out) ld.so'
8373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8374 soname_spec='${libname}${release}${shared_ext}$major'
8375 dynamic_linker='NetBSD ld.elf_so'
8377 shlibpath_var=LD_LIBRARY_PATH
8378 shlibpath_overrides_runpath=yes
8379 hardcode_into_libs=yes
8384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8385 shlibpath_var=LD_LIBRARY_PATH
8386 shlibpath_overrides_runpath=yes
8393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8394 soname_spec='${libname}${release}${shared_ext}$major'
8395 shlibpath_var=LD_LIBRARY_PATH
8396 shlibpath_overrides_runpath=yes
8401 sys_lib_dlsearch_path_spec="/usr/lib"
8403 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8405 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8406 *) need_version=no ;;
8408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8410 shlibpath_var=LD_LIBRARY_PATH
8411 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8413 openbsd2.[89] | openbsd2.[89].*)
8414 shlibpath_overrides_runpath=no
8417 shlibpath_overrides_runpath=yes
8421 shlibpath_overrides_runpath=yes
8426 libname_spec='$name'
8429 library_names_spec='$libname${shared_ext} $libname.a'
8430 dynamic_linker='OS/2 ld.exe'
8431 shlibpath_var=LIBPATH
8434 osf3* | osf4* | osf5*)
8438 soname_spec='${libname}${release}${shared_ext}$major'
8439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8440 shlibpath_var=LD_LIBRARY_PATH
8441 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8442 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8454 soname_spec='${libname}${release}${shared_ext}$major'
8455 shlibpath_var=LD_LIBRARY_PATH
8456 shlibpath_overrides_runpath=yes
8457 hardcode_into_libs=yes
8458 # ldd complains unless libraries are executable
8459 postinstall_cmds='chmod +x $lib'
8464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8465 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8466 shlibpath_var=LD_LIBRARY_PATH
8467 shlibpath_overrides_runpath=yes
8468 if test "$with_gnu_ld" = yes; then
8476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8477 soname_spec='${libname}${release}${shared_ext}$major'
8478 shlibpath_var=LD_LIBRARY_PATH
8479 case $host_vendor in
8481 shlibpath_overrides_runpath=no
8483 export_dynamic_flag_spec='${wl}-Blargedynsym'
8484 runpath_var=LD_RUN_PATH
8492 shlibpath_overrides_runpath=no
8493 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8499 if test -d /usr/nec ;then
8501 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8502 soname_spec='$libname${shared_ext}.$major'
8503 shlibpath_var=LD_LIBRARY_PATH
8507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8508 version_type=freebsd-elf
8511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8512 soname_spec='${libname}${release}${shared_ext}$major'
8513 shlibpath_var=LD_LIBRARY_PATH
8514 hardcode_into_libs=yes
8515 if test "$with_gnu_ld" = yes; then
8516 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8517 shlibpath_overrides_runpath=no
8519 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8520 shlibpath_overrides_runpath=yes
8523 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8527 sys_lib_dlsearch_path_spec='/usr/lib'
8532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8533 soname_spec='${libname}${release}${shared_ext}$major'
8534 shlibpath_var=LD_LIBRARY_PATH
8541 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8542 echo "${ECHO_T}$dynamic_linker" >&6; }
8543 test "$dynamic_linker" = no && can_build_shared=no
8545 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8546 if test "$GCC" = yes; then
8547 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8550 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8551 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8553 if test -n "$hardcode_libdir_flag_spec" || \
8554 test -n "$runpath_var" || \
8555 test "X$hardcode_automatic" = "Xyes" ; then
8557 # We can hardcode non-existant directories.
8558 if test "$hardcode_direct" != no &&
8559 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8560 # have to relink, otherwise we might link with an installed library
8561 # when we should be linking with a yet-to-be-installed one
8562 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8563 test "$hardcode_minus_L" != no; then
8564 # Linking always hardcodes the temporary library directory.
8565 hardcode_action=relink
8567 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8568 hardcode_action=immediate
8571 # We cannot hardcode anything, or else we can only hardcode existing
8573 hardcode_action=unsupported
8575 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8576 echo "${ECHO_T}$hardcode_action" >&6; }
8578 if test "$hardcode_action" = relink; then
8579 # Fast installation is not supported
8580 enable_fast_install=no
8581 elif test "$shlibpath_overrides_runpath" = yes ||
8582 test "$enable_shared" = no; then
8583 # Fast installation is not necessary
8584 enable_fast_install=needless
8589 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8590 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8591 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8592 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8593 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8594 { echo "$as_me:$LINENO: result: yes" >&5
8595 echo "${ECHO_T}yes" >&6; }
8597 # FIXME - insert some real tests, host_os isn't really good enough
8600 if test -n "$STRIP" ; then
8601 striplib="$STRIP -x"
8602 old_striplib="$STRIP -S"
8603 { echo "$as_me:$LINENO: result: yes" >&5
8604 echo "${ECHO_T}yes" >&6; }
8606 { echo "$as_me:$LINENO: result: no" >&5
8607 echo "${ECHO_T}no" >&6; }
8611 { echo "$as_me:$LINENO: result: no" >&5
8612 echo "${ECHO_T}no" >&6; }
8617 if test "x$enable_dlopen" != xyes; then
8618 enable_dlopen=unknown
8619 enable_dlopen_self=unknown
8620 enable_dlopen_self_static=unknown
8627 lt_cv_dlopen="load_add_on"
8629 lt_cv_dlopen_self=yes
8633 lt_cv_dlopen="LoadLibrary"
8638 lt_cv_dlopen="dlopen"
8643 # if libdl is installed we need to link against it
8644 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8645 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8646 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8649 ac_check_lib_save_LIBS=$LIBS
8651 cat >conftest.$ac_ext <<_ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8658 /* Override any GCC internal prototype to avoid an error.
8659 Use char because int might match the return type of a GCC
8660 builtin and then its argument prototype would still apply. */
8673 rm -f conftest.$ac_objext conftest$ac_exeext
8674 if { (ac_try="$ac_link"
8676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677 *) ac_try_echo=$ac_try;;
8679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8680 (eval "$ac_link") 2>conftest.er1
8682 grep -v '^ *+' conftest.er1 >conftest.err
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } && {
8687 test -z "$ac_c_werror_flag" ||
8688 test ! -s conftest.err
8689 } && test -s conftest$ac_exeext &&
8690 $as_test_x conftest$ac_exeext; then
8691 ac_cv_lib_dl_dlopen=yes
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8696 ac_cv_lib_dl_dlopen=no
8699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8700 conftest$ac_exeext conftest.$ac_ext
8701 LIBS=$ac_check_lib_save_LIBS
8703 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8704 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8705 if test $ac_cv_lib_dl_dlopen = yes; then
8706 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8711 lt_cv_dlopen_self=yes
8718 { echo "$as_me:$LINENO: checking for shl_load" >&5
8719 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8720 if test "${ac_cv_func_shl_load+set}" = set; then
8721 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 cat >conftest.$ac_ext <<_ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8729 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8731 #define shl_load innocuous_shl_load
8733 /* System header to define __stub macros and hopefully few prototypes,
8734 which can conflict with char shl_load (); below.
8735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8736 <limits.h> exists even on freestanding compilers. */
8739 # include <limits.h>
8741 # include <assert.h>
8746 /* Override any GCC internal prototype to avoid an error.
8747 Use char because int might match the return type of a GCC
8748 builtin and then its argument prototype would still apply. */
8753 /* The GNU C library defines this for functions which it implements
8754 to always fail with ENOSYS. Some functions are actually named
8755 something starting with __ and the normal name is an alias. */
8756 #if defined __stub_shl_load || defined __stub___shl_load
8768 rm -f conftest.$ac_objext conftest$ac_exeext
8769 if { (ac_try="$ac_link"
8771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772 *) ac_try_echo=$ac_try;;
8774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8775 (eval "$ac_link") 2>conftest.er1
8777 grep -v '^ *+' conftest.er1 >conftest.err
8779 cat conftest.err >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } && {
8782 test -z "$ac_c_werror_flag" ||
8783 test ! -s conftest.err
8784 } && test -s conftest$ac_exeext &&
8785 $as_test_x conftest$ac_exeext; then
8786 ac_cv_func_shl_load=yes
8788 echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8791 ac_cv_func_shl_load=no
8794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8795 conftest$ac_exeext conftest.$ac_ext
8797 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8798 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8799 if test $ac_cv_func_shl_load = yes; then
8800 lt_cv_dlopen="shl_load"
8802 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8803 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8804 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8807 ac_check_lib_save_LIBS=$LIBS
8809 cat >conftest.$ac_ext <<_ACEOF
8812 cat confdefs.h >>conftest.$ac_ext
8813 cat >>conftest.$ac_ext <<_ACEOF
8814 /* end confdefs.h. */
8816 /* Override any GCC internal prototype to avoid an error.
8817 Use char because int might match the return type of a GCC
8818 builtin and then its argument prototype would still apply. */
8831 rm -f conftest.$ac_objext conftest$ac_exeext
8832 if { (ac_try="$ac_link"
8834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8835 *) ac_try_echo=$ac_try;;
8837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8838 (eval "$ac_link") 2>conftest.er1
8840 grep -v '^ *+' conftest.er1 >conftest.err
8842 cat conftest.err >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } && {
8845 test -z "$ac_c_werror_flag" ||
8846 test ! -s conftest.err
8847 } && test -s conftest$ac_exeext &&
8848 $as_test_x conftest$ac_exeext; then
8849 ac_cv_lib_dld_shl_load=yes
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 ac_cv_lib_dld_shl_load=no
8857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8858 conftest$ac_exeext conftest.$ac_ext
8859 LIBS=$ac_check_lib_save_LIBS
8861 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8862 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8863 if test $ac_cv_lib_dld_shl_load = yes; then
8864 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8866 { echo "$as_me:$LINENO: checking for dlopen" >&5
8867 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8868 if test "${ac_cv_func_dlopen+set}" = set; then
8869 echo $ECHO_N "(cached) $ECHO_C" >&6
8871 cat >conftest.$ac_ext <<_ACEOF
8874 cat confdefs.h >>conftest.$ac_ext
8875 cat >>conftest.$ac_ext <<_ACEOF
8876 /* end confdefs.h. */
8877 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8879 #define dlopen innocuous_dlopen
8881 /* System header to define __stub macros and hopefully few prototypes,
8882 which can conflict with char dlopen (); below.
8883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8884 <limits.h> exists even on freestanding compilers. */
8887 # include <limits.h>
8889 # include <assert.h>
8894 /* Override any GCC internal prototype to avoid an error.
8895 Use char because int might match the return type of a GCC
8896 builtin and then its argument prototype would still apply. */
8901 /* The GNU C library defines this for functions which it implements
8902 to always fail with ENOSYS. Some functions are actually named
8903 something starting with __ and the normal name is an alias. */
8904 #if defined __stub_dlopen || defined __stub___dlopen
8916 rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (ac_try="$ac_link"
8919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920 *) ac_try_echo=$ac_try;;
8922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923 (eval "$ac_link") 2>conftest.er1
8925 grep -v '^ *+' conftest.er1 >conftest.err
8927 cat conftest.err >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } && {
8930 test -z "$ac_c_werror_flag" ||
8931 test ! -s conftest.err
8932 } && test -s conftest$ac_exeext &&
8933 $as_test_x conftest$ac_exeext; then
8934 ac_cv_func_dlopen=yes
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8939 ac_cv_func_dlopen=no
8942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8943 conftest$ac_exeext conftest.$ac_ext
8945 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8946 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8947 if test $ac_cv_func_dlopen = yes; then
8948 lt_cv_dlopen="dlopen"
8950 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8951 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8952 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 ac_check_lib_save_LIBS=$LIBS
8957 cat >conftest.$ac_ext <<_ACEOF
8960 cat confdefs.h >>conftest.$ac_ext
8961 cat >>conftest.$ac_ext <<_ACEOF
8962 /* end confdefs.h. */
8964 /* Override any GCC internal prototype to avoid an error.
8965 Use char because int might match the return type of a GCC
8966 builtin and then its argument prototype would still apply. */
8979 rm -f conftest.$ac_objext conftest$ac_exeext
8980 if { (ac_try="$ac_link"
8982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8983 *) ac_try_echo=$ac_try;;
8985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8986 (eval "$ac_link") 2>conftest.er1
8988 grep -v '^ *+' conftest.er1 >conftest.err
8990 cat conftest.err >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } && {
8993 test -z "$ac_c_werror_flag" ||
8994 test ! -s conftest.err
8995 } && test -s conftest$ac_exeext &&
8996 $as_test_x conftest$ac_exeext; then
8997 ac_cv_lib_dl_dlopen=yes
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9002 ac_cv_lib_dl_dlopen=no
9005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9006 conftest$ac_exeext conftest.$ac_ext
9007 LIBS=$ac_check_lib_save_LIBS
9009 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9010 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9011 if test $ac_cv_lib_dl_dlopen = yes; then
9012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9014 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9015 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9016 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 ac_check_lib_save_LIBS=$LIBS
9021 cat >conftest.$ac_ext <<_ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h. */
9028 /* Override any GCC internal prototype to avoid an error.
9029 Use char because int might match the return type of a GCC
9030 builtin and then its argument prototype would still apply. */
9043 rm -f conftest.$ac_objext conftest$ac_exeext
9044 if { (ac_try="$ac_link"
9046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9047 *) ac_try_echo=$ac_try;;
9049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9050 (eval "$ac_link") 2>conftest.er1
9052 grep -v '^ *+' conftest.er1 >conftest.err
9054 cat conftest.err >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } && {
9057 test -z "$ac_c_werror_flag" ||
9058 test ! -s conftest.err
9059 } && test -s conftest$ac_exeext &&
9060 $as_test_x conftest$ac_exeext; then
9061 ac_cv_lib_svld_dlopen=yes
9063 echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9066 ac_cv_lib_svld_dlopen=no
9069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9070 conftest$ac_exeext conftest.$ac_ext
9071 LIBS=$ac_check_lib_save_LIBS
9073 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9074 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9075 if test $ac_cv_lib_svld_dlopen = yes; then
9076 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9078 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9079 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9080 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9083 ac_check_lib_save_LIBS=$LIBS
9085 cat >conftest.$ac_ext <<_ACEOF
9088 cat confdefs.h >>conftest.$ac_ext
9089 cat >>conftest.$ac_ext <<_ACEOF
9090 /* end confdefs.h. */
9092 /* Override any GCC internal prototype to avoid an error.
9093 Use char because int might match the return type of a GCC
9094 builtin and then its argument prototype would still apply. */
9107 rm -f conftest.$ac_objext conftest$ac_exeext
9108 if { (ac_try="$ac_link"
9110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111 *) ac_try_echo=$ac_try;;
9113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114 (eval "$ac_link") 2>conftest.er1
9116 grep -v '^ *+' conftest.er1 >conftest.err
9118 cat conftest.err >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } && {
9121 test -z "$ac_c_werror_flag" ||
9122 test ! -s conftest.err
9123 } && test -s conftest$ac_exeext &&
9124 $as_test_x conftest$ac_exeext; then
9125 ac_cv_lib_dld_dld_link=yes
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9130 ac_cv_lib_dld_dld_link=no
9133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9134 conftest$ac_exeext conftest.$ac_ext
9135 LIBS=$ac_check_lib_save_LIBS
9137 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9138 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9139 if test $ac_cv_lib_dld_dld_link = yes; then
9140 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9161 if test "x$lt_cv_dlopen" != xno; then
9167 case $lt_cv_dlopen in
9169 save_CPPFLAGS="$CPPFLAGS"
9170 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9172 save_LDFLAGS="$LDFLAGS"
9173 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9176 LIBS="$lt_cv_dlopen_libs $LIBS"
9178 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9179 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9180 if test "${lt_cv_dlopen_self+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9183 if test "$cross_compiling" = yes; then :
9184 lt_cv_dlopen_self=cross
9186 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9187 lt_status=$lt_dlunknown
9188 cat > conftest.$ac_ext <<EOF
9189 #line 9189 "configure"
9190 #include "confdefs.h"
9199 # define LT_DLGLOBAL RTLD_GLOBAL
9202 # define LT_DLGLOBAL DL_GLOBAL
9204 # define LT_DLGLOBAL 0
9208 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9209 find out it does not work in some platform. */
9210 #ifndef LT_DLLAZY_OR_NOW
9212 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9215 # define LT_DLLAZY_OR_NOW DL_LAZY
9218 # define LT_DLLAZY_OR_NOW RTLD_NOW
9221 # define LT_DLLAZY_OR_NOW DL_NOW
9223 # define LT_DLLAZY_OR_NOW 0
9231 extern "C" void exit (int);
9234 void fnord() { int i=42;}
9237 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9238 int status = $lt_dlunknown;
9242 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9243 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9244 /* dlclose (self); */
9252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253 (eval $ac_link) 2>&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9257 (./conftest; exit; ) >&5 2>/dev/null
9260 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9261 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9262 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9265 # compilation failed
9266 lt_cv_dlopen_self=no
9273 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9274 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9276 if test "x$lt_cv_dlopen_self" = xyes; then
9277 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9278 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9279 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9280 if test "${lt_cv_dlopen_self_static+set}" = set; then
9281 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 if test "$cross_compiling" = yes; then :
9284 lt_cv_dlopen_self_static=cross
9286 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9287 lt_status=$lt_dlunknown
9288 cat > conftest.$ac_ext <<EOF
9289 #line 9289 "configure"
9290 #include "confdefs.h"
9299 # define LT_DLGLOBAL RTLD_GLOBAL
9302 # define LT_DLGLOBAL DL_GLOBAL
9304 # define LT_DLGLOBAL 0
9308 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9309 find out it does not work in some platform. */
9310 #ifndef LT_DLLAZY_OR_NOW
9312 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9315 # define LT_DLLAZY_OR_NOW DL_LAZY
9318 # define LT_DLLAZY_OR_NOW RTLD_NOW
9321 # define LT_DLLAZY_OR_NOW DL_NOW
9323 # define LT_DLLAZY_OR_NOW 0
9331 extern "C" void exit (int);
9334 void fnord() { int i=42;}
9337 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9338 int status = $lt_dlunknown;
9342 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9343 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9344 /* dlclose (self); */
9352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9353 (eval $ac_link) 2>&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9357 (./conftest; exit; ) >&5 2>/dev/null
9360 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9361 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9362 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9365 # compilation failed
9366 lt_cv_dlopen_self_static=no
9373 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9374 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9377 CPPFLAGS="$save_CPPFLAGS"
9378 LDFLAGS="$save_LDFLAGS"
9383 case $lt_cv_dlopen_self in
9384 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9385 *) enable_dlopen_self=unknown ;;
9388 case $lt_cv_dlopen_self_static in
9389 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9390 *) enable_dlopen_self_static=unknown ;;
9395 # Report which library types will actually be built
9396 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9397 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9398 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9399 echo "${ECHO_T}$can_build_shared" >&6; }
9401 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9402 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9403 test "$can_build_shared" = "no" && enable_shared=no
9405 # On AIX, shared libraries and static libraries use the same namespace, and
9406 # are all built from PIC.
9409 test "$enable_shared" = yes && enable_static=no
9410 if test -n "$RANLIB"; then
9411 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9412 postinstall_cmds='$RANLIB $lib'
9417 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9418 test "$enable_shared" = yes && enable_static=no
9422 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9423 echo "${ECHO_T}$enable_shared" >&6; }
9425 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9426 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9427 # Make sure either enable_shared or enable_static is yes.
9428 test "$enable_shared" = yes || enable_static=yes
9429 { echo "$as_me:$LINENO: result: $enable_static" >&5
9430 echo "${ECHO_T}$enable_static" >&6; }
9432 # The else clause should only fire when bootstrapping the
9433 # libtool distribution, otherwise you forgot to ship ltmain.sh
9434 # with your package, and you will get complaints that there are
9435 # no rules to generate ltmain.sh.
9436 if test -f "$ltmain"; then
9437 # See if we are running on zsh, and set the options which allow our commands through
9438 # without removal of \ escapes.
9439 if test -n "${ZSH_VERSION+set}" ; then
9440 setopt NO_GLOB_SUBST
9442 # Now quote all the things that may contain metacharacters while being
9443 # careful not to overquote the AC_SUBSTed values. We take copies of the
9444 # variables and quote the copies for generation of the libtool script.
9445 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9447 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9448 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9449 deplibs_check_method reload_flag reload_cmds need_locks \
9450 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9451 lt_cv_sys_global_symbol_to_c_name_address \
9452 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9453 old_postinstall_cmds old_postuninstall_cmds \
9457 lt_prog_compiler_wl \
9458 lt_prog_compiler_pic \
9459 lt_prog_compiler_static \
9460 lt_prog_compiler_no_builtin_flag \
9461 export_dynamic_flag_spec \
9462 thread_safe_flag_spec \
9463 whole_archive_flag_spec \
9464 enable_shared_with_static_runtimes \
9466 old_archive_from_new_cmds \
9471 compiler_lib_search_path \
9473 archive_expsym_cmds \
9475 postuninstall_cmds \
9476 old_archive_from_expsyms_cmds \
9477 allow_undefined_flag \
9479 export_symbols_cmds \
9480 hardcode_libdir_flag_spec \
9481 hardcode_libdir_flag_spec_ld \
9482 hardcode_libdir_separator \
9483 hardcode_automatic \
9485 module_expsym_cmds \
9486 lt_cv_prog_compiler_c_o \
9492 old_archive_cmds | \
9493 old_archive_from_new_cmds | \
9495 archive_expsym_cmds | \
9497 module_expsym_cmds | \
9498 old_archive_from_expsyms_cmds | \
9499 export_symbols_cmds | \
9500 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9501 postinstall_cmds | postuninstall_cmds | \
9502 old_postinstall_cmds | old_postuninstall_cmds | \
9503 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9504 # Double-quote double-evaled strings.
9505 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9508 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9514 *'\$0 --fallback-echo"')
9515 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9520 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9522 { echo "$as_me:$LINENO: creating $ofile" >&5
9523 echo "$as_me: creating $ofile" >&6;}
9525 cat <<__EOF__ >> "$cfgfile"
9528 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9529 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9530 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9532 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
9533 # Free Software Foundation, Inc.
9535 # This file is part of GNU Libtool:
9536 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9538 # This program is free software; you can redistribute it and/or modify
9539 # it under the terms of the GNU General Public License as published by
9540 # the Free Software Foundation; either version 2 of the License, or
9541 # (at your option) any later version.
9543 # This program is distributed in the hope that it will be useful, but
9544 # WITHOUT ANY WARRANTY; without even the implied warranty of
9545 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9546 # General Public License for more details.
9548 # You should have received a copy of the GNU General Public License
9549 # along with this program; if not, write to the Free Software
9550 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9552 # As a special exception to the GNU General Public License, if you
9553 # distribute this file as part of a program that contains a
9554 # configuration script generated by Autoconf, you may include it under
9555 # the same distribution terms that you use for the rest of that program.
9557 # A sed program that does not truncate output.
9560 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9561 Xsed="$SED -e 1s/^X//"
9563 # The HP-UX ksh and POSIX shell print the target directory to stdout
9565 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9567 # The names of the tagged configurations supported by this script.
9570 # ### BEGIN LIBTOOL CONFIG
9572 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9574 # Shell to use when invoking shell scripts.
9577 # Whether or not to build shared libraries.
9578 build_libtool_libs=$enable_shared
9580 # Whether or not to build static libraries.
9581 build_old_libs=$enable_static
9583 # Whether or not to add -lc for building shared libraries.
9584 build_libtool_need_lc=$archive_cmds_need_lc
9586 # Whether or not to disallow shared libs when runtime libs are static
9587 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9589 # Whether or not to optimize for fast installation.
9590 fast_install=$enable_fast_install
9593 host_alias=$host_alias
9598 build_alias=$build_alias
9602 # An echo program that does not interpret backslashes.
9607 AR_FLAGS=$lt_AR_FLAGS
9612 # LTCC compiler flags.
9613 LTCFLAGS=$lt_LTCFLAGS
9615 # A language-specific compiler.
9618 # Is the compiler the GNU C compiler?
9624 # The linker used to build libraries.
9627 # Whether we need hard or soft links.
9630 # A BSD-compatible nm program.
9633 # A symbol stripping program
9636 # Used to examine libraries when file_magic_cmd begins "file"
9637 MAGIC_CMD=$MAGIC_CMD
9639 # Used on cygwin: DLL creation program.
9642 # Used on cygwin: object dumper.
9645 # Used on cygwin: assembler.
9648 # The name of the directory that contains temporary libtool files.
9651 # How to create reloadable object files.
9652 reload_flag=$lt_reload_flag
9653 reload_cmds=$lt_reload_cmds
9655 # How to pass a linker flag through the compiler.
9656 wl=$lt_lt_prog_compiler_wl
9658 # Object file suffix (normally "o").
9661 # Old archive suffix (normally "a").
9664 # Shared library suffix (normally ".so").
9665 shrext_cmds='$shrext_cmds'
9667 # Executable file suffix (normally "").
9670 # Additional compiler flags for building library objects.
9671 pic_flag=$lt_lt_prog_compiler_pic
9674 # What is the maximum length of a command?
9675 max_cmd_len=$lt_cv_sys_max_cmd_len
9677 # Does compiler simultaneously support -c and -o options?
9678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9680 # Must we lock files when doing compilation?
9681 need_locks=$lt_need_locks
9683 # Do we need the lib prefix for modules?
9684 need_lib_prefix=$need_lib_prefix
9686 # Do we need a version for libraries?
9687 need_version=$need_version
9689 # Whether dlopen is supported.
9690 dlopen_support=$enable_dlopen
9692 # Whether dlopen of programs is supported.
9693 dlopen_self=$enable_dlopen_self
9695 # Whether dlopen of statically linked programs is supported.
9696 dlopen_self_static=$enable_dlopen_self_static
9698 # Compiler flag to prevent dynamic linking.
9699 link_static_flag=$lt_lt_prog_compiler_static
9701 # Compiler flag to turn off builtin functions.
9702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9704 # Compiler flag to allow reflexive dlopens.
9705 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9707 # Compiler flag to generate shared objects directly from archives.
9708 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9710 # Compiler flag to generate thread-safe objects.
9711 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9713 # Library versioning type.
9714 version_type=$version_type
9716 # Format of library name prefix.
9717 libname_spec=$lt_libname_spec
9719 # List of archive names. First name is the real one, the rest are links.
9720 # The last name is the one that the linker finds with -lNAME.
9721 library_names_spec=$lt_library_names_spec
9723 # The coded name of the library, if different from the real name.
9724 soname_spec=$lt_soname_spec
9726 # Commands used to build and install an old-style archive.
9728 old_archive_cmds=$lt_old_archive_cmds
9729 old_postinstall_cmds=$lt_old_postinstall_cmds
9730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9732 # Create an old-style archive from a shared archive.
9733 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9735 # Create a temporary old-style archive to link instead of a shared archive.
9736 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9738 # Commands used to build and install a shared archive.
9739 archive_cmds=$lt_archive_cmds
9740 archive_expsym_cmds=$lt_archive_expsym_cmds
9741 postinstall_cmds=$lt_postinstall_cmds
9742 postuninstall_cmds=$lt_postuninstall_cmds
9744 # Commands used to build a loadable module (assumed same as above if empty)
9745 module_cmds=$lt_module_cmds
9746 module_expsym_cmds=$lt_module_expsym_cmds
9748 # Commands to strip libraries.
9749 old_striplib=$lt_old_striplib
9750 striplib=$lt_striplib
9752 # Dependencies to place before the objects being linked to create a
9754 predep_objects=$lt_predep_objects
9756 # Dependencies to place after the objects being linked to create a
9758 postdep_objects=$lt_postdep_objects
9760 # Dependencies to place before the objects being linked to create a
9764 # Dependencies to place after the objects being linked to create a
9766 postdeps=$lt_postdeps
9768 # The library search path used internally by the compiler when linking
9770 compiler_lib_search_path=$lt_compiler_lib_search_path
9772 # Method to check whether dependent libraries are shared objects.
9773 deplibs_check_method=$lt_deplibs_check_method
9775 # Command to use when deplibs_check_method == file_magic.
9776 file_magic_cmd=$lt_file_magic_cmd
9778 # Flag that allows shared libraries with undefined symbols to be built.
9779 allow_undefined_flag=$lt_allow_undefined_flag
9781 # Flag that forces no undefined symbols.
9782 no_undefined_flag=$lt_no_undefined_flag
9784 # Commands used to finish a libtool library installation in a directory.
9785 finish_cmds=$lt_finish_cmds
9787 # Same as above, but a single script fragment to be evaled but not shown.
9788 finish_eval=$lt_finish_eval
9790 # Take the output of nm and produce a listing of raw symbols and C names.
9791 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9793 # Transform the output of nm in a proper C declaration
9794 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9796 # Transform the output of nm in a C name address pair
9797 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9799 # This is the shared library runtime path variable.
9800 runpath_var=$runpath_var
9802 # This is the shared library path variable.
9803 shlibpath_var=$shlibpath_var
9805 # Is shlibpath searched before the hard-coded library search path?
9806 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9808 # How to hardcode a shared library path into an executable.
9809 hardcode_action=$hardcode_action
9811 # Whether we should hardcode library paths into libraries.
9812 hardcode_into_libs=$hardcode_into_libs
9814 # Flag to hardcode \$libdir into a binary during linking.
9815 # This must work even if \$libdir does not exist.
9816 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9818 # If ld is used when linking, flag to hardcode \$libdir into
9819 # a binary during linking. This must work even if \$libdir does
9821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9823 # Whether we need a single -rpath flag with a separated argument.
9824 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9826 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9828 hardcode_direct=$hardcode_direct
9830 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9832 hardcode_minus_L=$hardcode_minus_L
9834 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9835 # the resulting binary.
9836 hardcode_shlibpath_var=$hardcode_shlibpath_var
9838 # Set to yes if building a shared library automatically hardcodes DIR into the library
9839 # and all subsequent libraries and executables linked against it.
9840 hardcode_automatic=$hardcode_automatic
9842 # Variables whose values should be saved in libtool wrapper scripts and
9843 # restored at relink time.
9844 variables_saved_for_relink="$variables_saved_for_relink"
9846 # Whether libtool must link a program against all its dependency libraries.
9847 link_all_deplibs=$link_all_deplibs
9849 # Compile-time system search path for libraries
9850 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9852 # Run-time system search path for libraries
9853 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9855 # Fix the shell variable \$srcfile for the compiler.
9856 fix_srcfile_path=$lt_fix_srcfile_path
9858 # Set to yes if exported symbols are required.
9859 always_export_symbols=$always_export_symbols
9861 # The commands to list exported symbols.
9862 export_symbols_cmds=$lt_export_symbols_cmds
9864 # The commands to extract the exported symbol list from a shared archive.
9865 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9867 # Symbols that should not be listed in the preloaded symbols.
9868 exclude_expsyms=$lt_exclude_expsyms
9870 # Symbols that must always be exported.
9871 include_expsyms=$lt_include_expsyms
9873 # ### END LIBTOOL CONFIG
9880 cat <<\EOF >> "$cfgfile"
9882 # AIX sometimes has problems with the GCC collect2 program. For some
9883 # reason, if we set the COLLECT_NAMES environment variable, the problems
9884 # vanish in a puff of smoke.
9885 if test "X${COLLECT_NAMES+set}" != Xset; then
9887 export COLLECT_NAMES
9893 # We use sed instead of cat because bash on DJGPP gets confused if
9894 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9895 # text mode, it properly converts lines to CR/LF. This bash problem
9896 # is reportedly fixed, but why not run on old versions too?
9897 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9899 mv -f "$cfgfile" "$ofile" || \
9900 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9904 # If there is no Makefile yet, we rely on a make rule to execute
9905 # `config.status --recheck' to rerun these tests and create the
9906 # libtool script then.
9907 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9908 if test -f "$ltmain_in"; then
9909 test -f Makefile && make "$ltmain"
9915 ac_cpp='$CPP $CPPFLAGS'
9916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9923 # Check whether --with-tags was given.
9924 if test "${with_tags+set}" = set; then
9925 withval=$with_tags; tagnames="$withval"
9929 if test -f "$ltmain" && test -n "$tagnames"; then
9930 if test ! -f "${ofile}"; then
9931 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9932 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9935 if test -z "$LTCC"; then
9936 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9937 if test -z "$LTCC"; then
9938 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9939 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9941 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9942 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9945 if test -z "$LTCFLAGS"; then
9946 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9949 # Extract list of available tagged configurations in $ofile.
9950 # Note that this assumes the entire list is on one line.
9951 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9953 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9954 for tagname in $tagnames; do
9956 # Check whether tagname contains only valid characters
9957 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9959 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9960 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9961 { (exit 1); exit 1; }; }
9965 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9967 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9968 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9969 { (exit 1); exit 1; }; }
9972 # Update the list of available tags.
9973 if test -n "$tagname"; then
9974 echo appending configuration tag \"$tagname\" to $ofile
9978 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9979 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9980 (test "X$CXX" != "Xg++"))) ; then
9982 ac_cpp='$CXXCPP $CPPFLAGS'
9983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9990 archive_cmds_need_lc_CXX=no
9991 allow_undefined_flag_CXX=
9992 always_export_symbols_CXX=no
9993 archive_expsym_cmds_CXX=
9994 export_dynamic_flag_spec_CXX=
9995 hardcode_direct_CXX=no
9996 hardcode_libdir_flag_spec_CXX=
9997 hardcode_libdir_flag_spec_ld_CXX=
9998 hardcode_libdir_separator_CXX=
9999 hardcode_minus_L_CXX=no
10000 hardcode_shlibpath_var_CXX=unsupported
10001 hardcode_automatic_CXX=no
10003 module_expsym_cmds_CXX=
10004 link_all_deplibs_CXX=unknown
10005 old_archive_cmds_CXX=$old_archive_cmds
10006 no_undefined_flag_CXX=
10007 whole_archive_flag_spec_CXX=
10008 enable_shared_with_static_runtimes_CXX=no
10010 # Dependencies to place before and after the object being linked:
10011 predep_objects_CXX=
10012 postdep_objects_CXX=
10015 compiler_lib_search_path_CXX=
10017 # Source file extension for C++ test sources.
10020 # Object file extension for compiled C++ test sources.
10024 # Code to be used in simple compile tests
10025 lt_simple_compile_test_code="int some_variable = 0;"
10027 # Code to be used in simple link tests
10028 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10030 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10032 # If no C compiler was specified, use CC.
10035 # If no C compiler flags were specified, use CFLAGS.
10036 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10038 # Allow CC to be a program name with arguments.
10042 # save warnings/boilerplate of simple test code
10043 ac_outfile=conftest.$ac_objext
10044 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10045 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10046 _lt_compiler_boilerplate=`cat conftest.err`
10049 ac_outfile=conftest.$ac_objext
10050 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10051 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10052 _lt_linker_boilerplate=`cat conftest.err`
10056 # Allow CC to be a program name with arguments.
10061 lt_save_with_gnu_ld=$with_gnu_ld
10062 lt_save_path_LD=$lt_cv_path_LD
10063 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10064 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10066 $as_unset lt_cv_prog_gnu_ld
10068 if test -n "${lt_cv_path_LDCXX+set}"; then
10069 lt_cv_path_LD=$lt_cv_path_LDCXX
10071 $as_unset lt_cv_path_LD
10073 test -z "${LDCXX+set}" || LD=$LDCXX
10077 for cc_temp in $compiler""; do
10079 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10080 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10085 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10088 # We don't want -fno-exception wen compiling C++ code, so set the
10089 # no_builtin_flag separately
10090 if test "$GXX" = yes; then
10091 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10093 lt_prog_compiler_no_builtin_flag_CXX=
10096 if test "$GXX" = yes; then
10097 # Set up default GNU C++ configuration
10100 # Check whether --with-gnu-ld was given.
10101 if test "${with_gnu_ld+set}" = set; then
10102 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10108 if test "$GCC" = yes; then
10109 # Check if gcc -print-prog-name=ld gives a path.
10110 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10111 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10114 # gcc leaves a trailing carriage return which upsets mingw
10115 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10117 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10120 # Accept absolute paths.
10122 re_direlt='/[^/][^/]*/\.\./'
10123 # Canonicalize the pathname of ld
10124 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10125 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10126 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10128 test -z "$LD" && LD="$ac_prog"
10131 # If it fails, then pretend we aren't using GCC.
10135 # If it is relative, then search for the first ld in PATH.
10136 with_gnu_ld=unknown
10139 elif test "$with_gnu_ld" = yes; then
10140 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10141 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10143 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10144 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10146 if test "${lt_cv_path_LD+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 if test -z "$LD"; then
10150 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10151 for ac_dir in $PATH; do
10153 test -z "$ac_dir" && ac_dir=.
10154 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10155 lt_cv_path_LD="$ac_dir/$ac_prog"
10156 # Check to see if the program is GNU ld. I'd rather use --version,
10157 # but apparently some variants of GNU ld only accept -v.
10158 # Break only if it was the GNU/non-GNU ld that we prefer.
10159 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10160 *GNU* | *'with BFD'*)
10161 test "$with_gnu_ld" != no && break
10164 test "$with_gnu_ld" != yes && break
10171 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10175 LD="$lt_cv_path_LD"
10176 if test -n "$LD"; then
10177 { echo "$as_me:$LINENO: result: $LD" >&5
10178 echo "${ECHO_T}$LD" >&6; }
10180 { echo "$as_me:$LINENO: result: no" >&5
10181 echo "${ECHO_T}no" >&6; }
10183 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10184 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10185 { (exit 1); exit 1; }; }
10186 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10187 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10188 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10192 case `$LD -v 2>&1 </dev/null` in
10193 *GNU* | *'with BFD'*)
10194 lt_cv_prog_gnu_ld=yes
10197 lt_cv_prog_gnu_ld=no
10201 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10202 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10203 with_gnu_ld=$lt_cv_prog_gnu_ld
10207 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10208 # archiving commands below assume that GNU ld is being used.
10209 if test "$with_gnu_ld" = yes; then
10210 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10211 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'
10213 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10214 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10216 # If archive_cmds runs LD, not CC, wlarc should be empty
10217 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10218 # investigate it a little bit more. (MM)
10221 # ancient GNU ld didn't support --whole-archive et. al.
10222 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10223 grep 'no-whole-archive' > /dev/null; then
10224 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10226 whole_archive_flag_spec_CXX=
10232 # A generic and very simple default shared library creation
10233 # command for GNU C++ for the case where it uses the native
10234 # linker, instead of GNU ld. If possible, this setting should
10235 # overridden to take advantage of the native linker features on
10236 # the platform it is being used on.
10237 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10240 # Commands to make compiler produce verbose output that lists
10241 # what "hidden" libraries, object files and flags are used when
10242 # linking a shared library.
10243 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10251 # PORTME: fill in a description of your system's C++ link characteristics
10252 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10253 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10257 # FIXME: insert proper C++ library support
10261 if test "$host_cpu" = ia64; then
10262 # On IA64, the linker does run time linking by default, so we don't
10263 # have to do anything special.
10264 aix_use_runtimelinking=no
10265 exp_sym_flag='-Bexport'
10268 aix_use_runtimelinking=no
10270 # Test if we are trying to use run time linking or normal
10271 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10272 # need to do runtime linking.
10273 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10274 for ld_flag in $LDFLAGS; do
10277 aix_use_runtimelinking=yes
10285 exp_sym_flag='-bexport'
10286 no_entry_flag='-bnoentry'
10289 # When large executables or shared objects are built, AIX ld can
10290 # have problems creating the table of contents. If linking a library
10291 # or program results in "error TOC overflow" add -mminimal-toc to
10292 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10293 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10295 archive_cmds_CXX=''
10296 hardcode_direct_CXX=yes
10297 hardcode_libdir_separator_CXX=':'
10298 link_all_deplibs_CXX=yes
10300 if test "$GXX" = yes; then
10301 case $host_os in aix4.[012]|aix4.[012].*)
10302 # We only want to do this on AIX 4.2 and lower, the check
10303 # below for broken collect2 doesn't work under 4.3+
10304 collect2name=`${CC} -print-prog-name=collect2`
10305 if test -f "$collect2name" && \
10306 strings "$collect2name" | grep resolve_lib_name >/dev/null
10308 # We have reworked collect2
10311 # We have old collect2
10312 hardcode_direct_CXX=unsupported
10313 # It fails to find uninstalled libraries when the uninstalled
10314 # path is not listed in the libpath. Setting hardcode_minus_L
10315 # to unsupported forces relinking
10316 hardcode_minus_L_CXX=yes
10317 hardcode_libdir_flag_spec_CXX='-L$libdir'
10318 hardcode_libdir_separator_CXX=
10322 shared_flag='-shared'
10323 if test "$aix_use_runtimelinking" = yes; then
10324 shared_flag="$shared_flag "'${wl}-G'
10328 if test "$host_cpu" = ia64; then
10329 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10330 # chokes on -Wl,-G. The following line is correct:
10333 if test "$aix_use_runtimelinking" = yes; then
10334 shared_flag='${wl}-G'
10336 shared_flag='${wl}-bM:SRE'
10341 # It seems that -bexpall does not export symbols beginning with
10342 # underscore (_), so it is better to generate a list of symbols to export.
10343 always_export_symbols_CXX=yes
10344 if test "$aix_use_runtimelinking" = yes; then
10345 # Warning - without using the other runtime loading flags (-brtl),
10346 # -berok will link without error, but may produce a broken library.
10347 allow_undefined_flag_CXX='-berok'
10348 # Determine the default libpath from the value encoded in an empty executable.
10349 cat >conftest.$ac_ext <<_ACEOF
10352 cat confdefs.h >>conftest.$ac_ext
10353 cat >>conftest.$ac_ext <<_ACEOF
10354 /* end confdefs.h. */
10364 rm -f conftest.$ac_objext conftest$ac_exeext
10365 if { (ac_try="$ac_link"
10366 case "(($ac_try" in
10367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368 *) ac_try_echo=$ac_try;;
10370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371 (eval "$ac_link") 2>conftest.er1
10373 grep -v '^ *+' conftest.er1 >conftest.err
10375 cat conftest.err >&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } && {
10378 test -z "$ac_cxx_werror_flag" ||
10379 test ! -s conftest.err
10380 } && test -s conftest$ac_exeext &&
10381 $as_test_x conftest$ac_exeext; then
10383 lt_aix_libpath_sed='
10384 /Import File Strings/,/^$/ {
10390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10391 # Check for a 64-bit object if we didn't find anything.
10392 if test -z "$aix_libpath"; then
10393 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10396 echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10403 conftest$ac_exeext conftest.$ac_ext
10404 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10406 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10408 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"
10410 if test "$host_cpu" = ia64; then
10411 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10412 allow_undefined_flag_CXX="-z nodefs"
10413 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"
10415 # Determine the default libpath from the value encoded in an empty executable.
10416 cat >conftest.$ac_ext <<_ACEOF
10419 cat confdefs.h >>conftest.$ac_ext
10420 cat >>conftest.$ac_ext <<_ACEOF
10421 /* end confdefs.h. */
10431 rm -f conftest.$ac_objext conftest$ac_exeext
10432 if { (ac_try="$ac_link"
10433 case "(($ac_try" in
10434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435 *) ac_try_echo=$ac_try;;
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438 (eval "$ac_link") 2>conftest.er1
10440 grep -v '^ *+' conftest.er1 >conftest.err
10442 cat conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } && {
10445 test -z "$ac_cxx_werror_flag" ||
10446 test ! -s conftest.err
10447 } && test -s conftest$ac_exeext &&
10448 $as_test_x conftest$ac_exeext; then
10450 lt_aix_libpath_sed='
10451 /Import File Strings/,/^$/ {
10457 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10458 # Check for a 64-bit object if we didn't find anything.
10459 if test -z "$aix_libpath"; then
10460 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10463 echo "$as_me: failed program was:" >&5
10464 sed 's/^/| /' conftest.$ac_ext >&5
10469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10470 conftest$ac_exeext conftest.$ac_ext
10471 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10473 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10474 # Warning - without using the other run time loading flags,
10475 # -berok will link without error, but may produce a broken library.
10476 no_undefined_flag_CXX=' ${wl}-bernotok'
10477 allow_undefined_flag_CXX=' ${wl}-berok'
10478 # Exported symbols can be pulled into shared objects from archives
10479 whole_archive_flag_spec_CXX='$convenience'
10480 archive_cmds_need_lc_CXX=yes
10481 # This is similar to how AIX traditionally builds its shared libraries.
10482 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'
10488 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10489 allow_undefined_flag_CXX=unsupported
10490 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10491 # support --undefined. This deserves some investigation. FIXME
10492 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10499 case $cc_basename in
10501 # FIXME: insert proper C++ library support
10507 cygwin* | mingw* | pw32*)
10508 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10509 # as there is no search path for DLLs.
10510 hardcode_libdir_flag_spec_CXX='-L$libdir'
10511 allow_undefined_flag_CXX=unsupported
10512 always_export_symbols_CXX=no
10513 enable_shared_with_static_runtimes_CXX=yes
10515 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10516 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'
10517 # If the export-symbols file already is a .def file (1st line
10518 # is EXPORTS), use it as is; otherwise, prepend...
10519 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10520 cp $export_symbols $output_objdir/$soname.def;
10522 echo EXPORTS > $output_objdir/$soname.def;
10523 cat $export_symbols >> $output_objdir/$soname.def;
10525 $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'
10530 darwin* | rhapsody*)
10532 rhapsody* | darwin1.[012])
10533 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10536 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10537 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10539 case ${MACOSX_DEPLOYMENT_TARGET} in
10541 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10544 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10550 archive_cmds_need_lc_CXX=no
10551 hardcode_direct_CXX=no
10552 hardcode_automatic_CXX=yes
10553 hardcode_shlibpath_var_CXX=unsupported
10554 whole_archive_flag_spec_CXX=''
10555 link_all_deplibs_CXX=yes
10557 if test "$GXX" = yes ; then
10558 lt_int_apple_cc_single_mod=no
10559 output_verbose_link_cmd='echo'
10560 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10561 lt_int_apple_cc_single_mod=yes
10563 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10564 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10566 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'
10568 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10569 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10570 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10571 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}'
10573 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}'
10575 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}'
10577 case $cc_basename in
10579 output_verbose_link_cmd='echo'
10580 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10581 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10582 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10583 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10584 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}'
10594 case $cc_basename in
10596 # FIXME: insert proper C++ library support
10600 # Green Hills C++ Compiler
10601 # FIXME: insert proper C++ library support
10605 # FIXME: insert proper C++ library support
10611 # C++ shared libraries reported to be fairly broken before switch to ELF
10615 archive_cmds_need_lc_CXX=no
10617 freebsd* | dragonfly*)
10618 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10625 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10626 hardcode_libdir_separator_CXX=:
10627 export_dynamic_flag_spec_CXX='${wl}-E'
10628 hardcode_direct_CXX=yes
10629 hardcode_minus_L_CXX=yes # Not in the search PATH,
10630 # but as the default
10631 # location of the library.
10633 case $cc_basename in
10635 # FIXME: insert proper C++ library support
10639 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'
10640 # Commands to make compiler produce verbose output that lists
10641 # what "hidden" libraries, object files and flags are used when
10642 # linking a shared library.
10644 # There doesn't appear to be a way to prevent this compiler from
10645 # explicitly linking system object files so we need to strip them
10646 # from the output so that they don't get included in the library
10648 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'
10651 if test "$GXX" = yes; then
10652 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'
10654 # FIXME: insert proper C++ library support
10661 if test $with_gnu_ld = no; then
10662 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10663 hardcode_libdir_separator_CXX=:
10668 export_dynamic_flag_spec_CXX='${wl}-E'
10674 hardcode_direct_CXX=no
10675 hardcode_shlibpath_var_CXX=no
10678 hardcode_direct_CXX=yes
10679 hardcode_minus_L_CXX=yes # Not in the search PATH,
10680 # but as the default
10681 # location of the library.
10685 case $cc_basename in
10687 # FIXME: insert proper C++ library support
10693 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10696 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10699 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10702 # Commands to make compiler produce verbose output that lists
10703 # what "hidden" libraries, object files and flags are used when
10704 # linking a shared library.
10706 # There doesn't appear to be a way to prevent this compiler from
10707 # explicitly linking system object files so we need to strip them
10708 # from the output so that they don't get included in the library
10710 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'
10713 if test "$GXX" = yes; then
10714 if test $with_gnu_ld = no; then
10717 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10720 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10723 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'
10728 # FIXME: insert proper C++ library support
10735 hardcode_direct_CXX=no
10736 hardcode_shlibpath_var_CXX=no
10737 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10738 export_dynamic_flag_spec_CXX='${wl}-E'
10739 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10740 # Instead, shared libraries are loaded at an image base (0x10000000 by
10741 # default) and relocated if they conflict, which is a slow very memory
10742 # consuming and fragmenting process. To avoid this, we pick a random,
10743 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10744 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10745 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'
10746 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'
10749 case $cc_basename in
10752 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'
10754 # Archives containing C++ object files must be created using
10755 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10756 # necessary to make sure instantiated templates are included
10758 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10761 if test "$GXX" = yes; then
10762 if test "$with_gnu_ld" = no; then
10763 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'
10765 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'
10768 link_all_deplibs_CXX=yes
10771 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10772 hardcode_libdir_separator_CXX=:
10774 linux* | k*bsd*-gnu)
10775 case $cc_basename in
10777 # Kuck and Associates, Inc. (KAI) C++ Compiler
10779 # KCC will only create a shared library if the output file
10780 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10781 # to its proper name (with version) after linking.
10782 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'
10783 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'
10784 # Commands to make compiler produce verbose output that lists
10785 # what "hidden" libraries, object files and flags are used when
10786 # linking a shared library.
10788 # There doesn't appear to be a way to prevent this compiler from
10789 # explicitly linking system object files so we need to strip them
10790 # from the output so that they don't get included in the library
10792 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'
10794 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10795 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10797 # Archives containing C++ object files must be created using
10798 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10799 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10804 # version 8.0 and above of icpc choke on multiply defined symbols
10805 # if we add $predep_objects and $postdep_objects, however 7.1 and
10806 # earlier do not add the objects themselves.
10807 case `$CC -V 2>&1` in
10809 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10810 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'
10812 *) # Version 8.0 or newer
10815 ia64*) tmp_idyn=' -i_dynamic';;
10817 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10818 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'
10821 archive_cmds_need_lc_CXX=no
10822 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10823 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10824 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10827 # Portland Group C++ compiler
10828 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10829 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'
10831 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10832 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10833 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'
10837 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10838 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'
10840 runpath_var=LD_RUN_PATH
10841 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10842 hardcode_libdir_separator_CXX=:
10844 # Commands to make compiler produce verbose output that lists
10845 # what "hidden" libraries, object files and flags are used when
10846 # linking a shared library.
10848 # There doesn't appear to be a way to prevent this compiler from
10849 # explicitly linking system object files so we need to strip them
10850 # from the output so that they don't get included in the library
10852 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'
10855 case `$CC -V 2>&1 | sed 5q` in
10858 no_undefined_flag_CXX=' -zdefs'
10859 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10860 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
10861 hardcode_libdir_flag_spec_CXX='-R$libdir'
10862 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10864 # Not sure whether something based on
10865 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
10867 output_verbose_link_cmd='echo'
10869 # Archives containing C++ object files must be created using
10870 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10871 # necessary to make sure instantiated templates are included
10873 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10880 # FIXME: insert proper C++ library support
10884 # FIXME: insert proper C++ library support
10888 case $cc_basename in
10890 # FIXME: insert proper C++ library support
10894 # FIXME: insert proper C++ library support
10900 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10901 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10903 hardcode_libdir_flag_spec_CXX='-R$libdir'
10904 hardcode_direct_CXX=yes
10905 hardcode_shlibpath_var_CXX=no
10907 # Workaround some broken pre-1.5 toolchains
10908 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10911 # C++ shared libraries are fairly broken
10915 if test -f /usr/libexec/ld.so; then
10916 hardcode_direct_CXX=yes
10917 hardcode_shlibpath_var_CXX=no
10918 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10919 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10920 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10921 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10922 export_dynamic_flag_spec_CXX='${wl}-E'
10923 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10925 output_verbose_link_cmd='echo'
10931 case $cc_basename in
10933 # Kuck and Associates, Inc. (KAI) C++ Compiler
10935 # KCC will only create a shared library if the output file
10936 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10937 # to its proper name (with version) after linking.
10938 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'
10940 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10941 hardcode_libdir_separator_CXX=:
10943 # Archives containing C++ object files must be created using
10944 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10945 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10949 # Rational C++ 2.4.1
10950 # FIXME: insert proper C++ library support
10954 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10955 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'
10957 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10958 hardcode_libdir_separator_CXX=:
10960 # Commands to make compiler produce verbose output that lists
10961 # what "hidden" libraries, object files and flags are used when
10962 # linking a shared library.
10964 # There doesn't appear to be a way to prevent this compiler from
10965 # explicitly linking system object files so we need to strip them
10966 # from the output so that they don't get included in the library
10968 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'
10971 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10972 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10973 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'
10975 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10976 hardcode_libdir_separator_CXX=:
10978 # Commands to make compiler produce verbose output that lists
10979 # what "hidden" libraries, object files and flags are used when
10980 # linking a shared library.
10981 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10984 # FIXME: insert proper C++ library support
10991 case $cc_basename in
10993 # Kuck and Associates, Inc. (KAI) C++ Compiler
10995 # KCC will only create a shared library if the output file
10996 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10997 # to its proper name (with version) after linking.
10998 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'
11000 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11001 hardcode_libdir_separator_CXX=:
11003 # Archives containing C++ object files must be created using
11004 # the KAI C++ compiler.
11005 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11008 # Rational C++ 2.4.1
11009 # FIXME: insert proper C++ library support
11013 allow_undefined_flag_CXX=' -expect_unresolved \*'
11014 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'
11015 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11016 echo "-hidden">> $lib.exp~
11017 $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~
11020 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11021 hardcode_libdir_separator_CXX=:
11023 # Commands to make compiler produce verbose output that lists
11024 # what "hidden" libraries, object files and flags are used when
11025 # linking a shared library.
11027 # There doesn't appear to be a way to prevent this compiler from
11028 # explicitly linking system object files so we need to strip them
11029 # from the output so that they don't get included in the library
11031 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'
11034 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11035 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11036 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'
11038 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11039 hardcode_libdir_separator_CXX=:
11041 # Commands to make compiler produce verbose output that lists
11042 # what "hidden" libraries, object files and flags are used when
11043 # linking a shared library.
11044 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11047 # FIXME: insert proper C++ library support
11054 # FIXME: insert proper C++ library support
11058 case $cc_basename in
11061 # FIXME: insert proper C++ library support
11066 # FIXME: insert proper C++ library support
11070 # FIXME: insert proper C++ library support
11076 case $cc_basename in
11078 # Sun C++ 4.2, 5.x and Centerline C++
11079 archive_cmds_need_lc_CXX=yes
11080 no_undefined_flag_CXX=' -zdefs'
11081 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11082 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11083 $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'
11085 hardcode_libdir_flag_spec_CXX='-R$libdir'
11086 hardcode_shlibpath_var_CXX=no
11088 solaris2.[0-5] | solaris2.[0-5].*) ;;
11090 # The compiler driver will combine and reorder linker options,
11091 # but understands `-z linker_flag'.
11092 # Supported since Solaris 2.6 (maybe 2.5.1?)
11093 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11096 link_all_deplibs_CXX=yes
11098 output_verbose_link_cmd='echo'
11100 # Archives containing C++ object files must be created using
11101 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11102 # necessary to make sure instantiated templates are included
11104 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11107 # Green Hills C++ Compiler
11108 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11110 # The C++ compiler must be used to create the archive.
11111 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11114 # GNU C++ compiler with Solaris linker
11115 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11116 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11117 if $CC --version | grep -v '^2\.7' > /dev/null; then
11118 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11119 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11120 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11122 # Commands to make compiler produce verbose output that lists
11123 # what "hidden" libraries, object files and flags are used when
11124 # linking a shared library.
11125 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11127 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11129 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11130 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11131 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11133 # Commands to make compiler produce verbose output that lists
11134 # what "hidden" libraries, object files and flags are used when
11135 # linking a shared library.
11136 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11139 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11141 solaris2.[0-5] | solaris2.[0-5].*) ;;
11143 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11150 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11151 no_undefined_flag_CXX='${wl}-z,text'
11152 archive_cmds_need_lc_CXX=no
11153 hardcode_shlibpath_var_CXX=no
11154 runpath_var='LD_RUN_PATH'
11156 case $cc_basename in
11158 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11159 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11162 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11163 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11167 sysv5* | sco3.2v5* | sco5v6*)
11168 # Note: We can NOT use -z defs as we might desire, because we do not
11169 # link with -lc, and that would cause any symbols used from libc to
11170 # always be unresolved, which means just about no library would
11171 # ever link correctly. If we're not using GNU ld we use -z text
11172 # though, which does catch some bad symbols but isn't as heavy-handed
11174 # For security reasons, it is highly recommended that you always
11175 # use absolute paths for naming shared libraries, and exclude the
11176 # DT_RUNPATH tag from executables and libraries. But doing so
11177 # requires that you compile everything twice, which is a pain.
11178 # So that behaviour is only enabled if SCOABSPATH is set to a
11179 # non-empty value in the environment. Most likely only useful for
11180 # creating official distributions of packages.
11181 # This is a hack until libtool officially supports absolute path
11182 # names for shared libraries.
11183 no_undefined_flag_CXX='${wl}-z,text'
11184 allow_undefined_flag_CXX='${wl}-z,nodefs'
11185 archive_cmds_need_lc_CXX=no
11186 hardcode_shlibpath_var_CXX=no
11187 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11188 hardcode_libdir_separator_CXX=':'
11189 link_all_deplibs_CXX=yes
11190 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11191 runpath_var='LD_RUN_PATH'
11193 case $cc_basename in
11195 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11196 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11199 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11200 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11205 case $cc_basename in
11207 # NonStop-UX NCC 3.20
11208 # FIXME: insert proper C++ library support
11212 # FIXME: insert proper C++ library support
11218 # FIXME: insert proper C++ library support
11222 # FIXME: insert proper C++ library support
11226 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11227 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11228 test "$ld_shlibs_CXX" = no && can_build_shared=no
11234 cat > conftest.$ac_ext <<EOF
11238 Foo (void) { a = 0; }
11244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11245 (eval $ac_compile) 2>&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; then
11249 # Parse the compiler output and extract the necessary
11250 # objects, libraries and library flags.
11252 # Sentinel used to keep track of whether or not we are before
11253 # the conftest object file.
11254 pre_test_object_deps_done=no
11256 # The `*' in the case matches for architectures that use `case' in
11257 # $output_verbose_cmd can trigger glob expansion during the loop
11258 # eval without this substitution.
11259 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11261 for p in `eval $output_verbose_link_cmd`; do
11265 # Some compilers place space between "-{L,R}" and the path.
11266 # Remove the space.
11267 if test $p = "-L" \
11268 || test $p = "-R"; then
11275 if test "$pre_test_object_deps_done" = no; then
11278 # Internal compiler library paths should come after those
11279 # provided the user. The postdeps already come after the
11280 # user supplied libs so there is no need to process them.
11281 if test -z "$compiler_lib_search_path_CXX"; then
11282 compiler_lib_search_path_CXX="${prev}${p}"
11284 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11287 # The "-l" case would never come before the object being
11288 # linked, so don't bother handling this case.
11291 if test -z "$postdeps_CXX"; then
11292 postdeps_CXX="${prev}${p}"
11294 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11300 # This assumes that the test object file only shows up
11301 # once in the compiler output.
11302 if test "$p" = "conftest.$objext"; then
11303 pre_test_object_deps_done=yes
11307 if test "$pre_test_object_deps_done" = no; then
11308 if test -z "$predep_objects_CXX"; then
11309 predep_objects_CXX="$p"
11311 predep_objects_CXX="$predep_objects_CXX $p"
11314 if test -z "$postdep_objects_CXX"; then
11315 postdep_objects_CXX="$p"
11317 postdep_objects_CXX="$postdep_objects_CXX $p"
11322 *) ;; # Ignore the rest.
11330 echo "libtool.m4: error: problem compiling CXX test program"
11333 $rm -f confest.$objext
11335 # PORTME: override above test on systems where it is broken
11338 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11339 # hack all around it, let's just trust "g++" to DTRT.
11340 predep_objects_CXX=
11341 postdep_objects_CXX=
11346 case `$CC -V 2>&1 | sed 5q` in
11350 # The more standards-conforming stlport4 library is
11351 # incompatible with the Cstd library. Avoid specifying
11352 # it if it's in CXXFLAGS. Ignore libCrun as
11353 # -library=stlport4 depends on it.
11354 case " $CXX $CXXFLAGS " in
11355 *" -library=stlport4 "*)
11356 solaris_use_stlport4=yes
11359 if test "$solaris_use_stlport4" != yes; then
11360 postdeps_CXX='-library=Cstd -library=Crun'
11367 case $cc_basename in
11369 # The more standards-conforming stlport4 library is
11370 # incompatible with the Cstd library. Avoid specifying
11371 # it if it's in CXXFLAGS. Ignore libCrun as
11372 # -library=stlport4 depends on it.
11373 case " $CXX $CXXFLAGS " in
11374 *" -library=stlport4 "*)
11375 solaris_use_stlport4=yes
11379 # Adding this requires a known-good setup of shared libraries for
11380 # Sun compiler versions before 5.6, else PIC objects from an old
11381 # archive will be linked into the output, leading to subtle bugs.
11382 if test "$solaris_use_stlport4" != yes; then
11383 postdeps_CXX='-library=Cstd -library=Crun'
11391 case " $postdeps_CXX " in
11392 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11395 lt_prog_compiler_wl_CXX=
11396 lt_prog_compiler_pic_CXX=
11397 lt_prog_compiler_static_CXX=
11399 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11400 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11402 # C++ specific cases for pic, static, wl, etc.
11403 if test "$GXX" = yes; then
11404 lt_prog_compiler_wl_CXX='-Wl,'
11405 lt_prog_compiler_static_CXX='-static'
11409 # All AIX code is PIC.
11410 if test "$host_cpu" = ia64; then
11411 # AIX 5 now supports IA64 processor
11412 lt_prog_compiler_static_CXX='-Bstatic'
11416 # FIXME: we need at least 68020 code to build shared libraries, but
11417 # adding the `-m68020' flag to GCC prevents building anything better,
11419 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11421 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11422 # PIC is the default for these OSes.
11424 mingw* | cygwin* | os2* | pw32*)
11425 # This hack is so that the source file can tell whether it is being
11426 # built for inclusion in a dll (and should export symbols for example).
11427 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11428 # (--disable-auto-import) libraries
11429 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11431 darwin* | rhapsody*)
11432 # PIC is the default on this platform
11433 # Common symbols not allowed in MH_DYLIB files
11434 lt_prog_compiler_pic_CXX='-fno-common'
11437 # DJGPP does not support shared libraries at all
11438 lt_prog_compiler_pic_CXX=
11441 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11442 # Instead, we relocate shared libraries at runtime.
11445 if test -d /usr/nec; then
11446 lt_prog_compiler_pic_CXX=-Kconform_pic
11450 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11451 # not for PA HP-UX.
11456 lt_prog_compiler_pic_CXX='-fPIC'
11461 lt_prog_compiler_pic_CXX='-fPIC'
11467 # All AIX code is PIC.
11468 if test "$host_cpu" = ia64; then
11469 # AIX 5 now supports IA64 processor
11470 lt_prog_compiler_static_CXX='-Bstatic'
11472 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11476 case $cc_basename in
11478 # Green Hills C++ Compiler
11479 # _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"
11484 # PIC is the default on this platform
11485 # Common symbols not allowed in MH_DYLIB files
11486 case $cc_basename in
11488 lt_prog_compiler_pic_CXX='-qnocommon'
11489 lt_prog_compiler_wl_CXX='-Wl,'
11494 case $cc_basename in
11496 lt_prog_compiler_pic_CXX='-KPIC'
11499 # Green Hills C++ Compiler
11500 lt_prog_compiler_pic_CXX='-pic'
11506 freebsd* | dragonfly*)
11507 # FreeBSD uses GNU C++
11509 hpux9* | hpux10* | hpux11*)
11510 case $cc_basename in
11512 lt_prog_compiler_wl_CXX='-Wl,'
11513 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11514 if test "$host_cpu" != ia64; then
11515 lt_prog_compiler_pic_CXX='+Z'
11519 lt_prog_compiler_wl_CXX='-Wl,'
11520 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11526 lt_prog_compiler_pic_CXX='+Z'
11535 # This is c89, which is MS Visual C++ (no shared libs)
11536 # Anyone wants to do a port?
11538 irix5* | irix6* | nonstopux*)
11539 case $cc_basename in
11541 lt_prog_compiler_wl_CXX='-Wl,'
11542 lt_prog_compiler_static_CXX='-non_shared'
11543 # CC pic flag -KPIC is the default.
11549 linux* | k*bsd*-gnu)
11550 case $cc_basename in
11553 lt_prog_compiler_wl_CXX='--backend -Wl,'
11554 lt_prog_compiler_pic_CXX='-fPIC'
11558 lt_prog_compiler_wl_CXX='-Wl,'
11559 lt_prog_compiler_pic_CXX='-KPIC'
11560 lt_prog_compiler_static_CXX='-static'
11563 # Portland Group C++ compiler.
11564 lt_prog_compiler_wl_CXX='-Wl,'
11565 lt_prog_compiler_pic_CXX='-fpic'
11566 lt_prog_compiler_static_CXX='-Bstatic'
11570 # Make sure the PIC flag is empty. It appears that all Alpha
11571 # Linux and Compaq Tru64 Unix objects are PIC.
11572 lt_prog_compiler_pic_CXX=
11573 lt_prog_compiler_static_CXX='-non_shared'
11576 case `$CC -V 2>&1 | sed 5q` in
11579 lt_prog_compiler_pic_CXX='-KPIC'
11580 lt_prog_compiler_static_CXX='-Bstatic'
11581 lt_prog_compiler_wl_CXX='-Qoption ld '
11592 case $cc_basename in
11594 lt_prog_compiler_pic_CXX='-W c,exportall'
11602 osf3* | osf4* | osf5*)
11603 case $cc_basename in
11605 lt_prog_compiler_wl_CXX='--backend -Wl,'
11608 # Rational C++ 2.4.1
11609 lt_prog_compiler_pic_CXX='-pic'
11612 # Digital/Compaq C++
11613 lt_prog_compiler_wl_CXX='-Wl,'
11614 # Make sure the PIC flag is empty. It appears that all Alpha
11615 # Linux and Compaq Tru64 Unix objects are PIC.
11616 lt_prog_compiler_pic_CXX=
11617 lt_prog_compiler_static_CXX='-non_shared'
11626 case $cc_basename in
11628 # Sun C++ 4.2, 5.x and Centerline C++
11629 lt_prog_compiler_pic_CXX='-KPIC'
11630 lt_prog_compiler_static_CXX='-Bstatic'
11631 lt_prog_compiler_wl_CXX='-Qoption ld '
11634 # Green Hills C++ Compiler
11635 lt_prog_compiler_pic_CXX='-PIC'
11642 case $cc_basename in
11645 lt_prog_compiler_pic_CXX='-pic'
11646 lt_prog_compiler_static_CXX='-Bstatic'
11650 lt_prog_compiler_pic_CXX='-pic'
11657 case $cc_basename in
11659 # NonStop-UX NCC 3.20
11660 lt_prog_compiler_pic_CXX='-KPIC'
11666 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11667 case $cc_basename in
11669 lt_prog_compiler_wl_CXX='-Wl,'
11670 lt_prog_compiler_pic_CXX='-KPIC'
11671 lt_prog_compiler_static_CXX='-Bstatic'
11678 lt_prog_compiler_can_build_shared_CXX=no
11683 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11684 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11687 # Check to make sure the PIC flag actually works.
11689 if test -n "$lt_prog_compiler_pic_CXX"; then
11691 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11692 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11693 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11694 echo $ECHO_N "(cached) $ECHO_C" >&6
11696 lt_prog_compiler_pic_works_CXX=no
11697 ac_outfile=conftest.$ac_objext
11698 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11699 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11700 # Insert the option either (1) after the last *FLAGS variable, or
11701 # (2) before a word containing "conftest.", or (3) at the end.
11702 # Note that $ac_compile itself does not contain backslashes and begins
11703 # with a dollar sign (not a hyphen), so the echo should work correctly.
11704 # The option is referenced via a variable to avoid confusing sed.
11705 lt_compile=`echo "$ac_compile" | $SED \
11706 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11708 -e 's:$: $lt_compiler_flag:'`
11709 (eval echo "\"\$as_me:11709: $lt_compile\"" >&5)
11710 (eval "$lt_compile" 2>conftest.err)
11712 cat conftest.err >&5
11713 echo "$as_me:11713: \$? = $ac_status" >&5
11714 if (exit $ac_status) && test -s "$ac_outfile"; then
11715 # The compiler can only warn and ignore the option if not recognized
11716 # So say no if there are warnings other than the usual output.
11717 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11719 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11720 lt_prog_compiler_pic_works_CXX=yes
11726 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11727 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11729 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11730 case $lt_prog_compiler_pic_CXX in
11732 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11735 lt_prog_compiler_pic_CXX=
11736 lt_prog_compiler_can_build_shared_CXX=no
11741 # For platforms which do not support PIC, -DPIC is meaningless:
11743 lt_prog_compiler_pic_CXX=
11746 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11751 # Check to make sure the static flag actually works.
11753 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11754 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11755 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
11756 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 lt_prog_compiler_static_works_CXX=no
11760 save_LDFLAGS="$LDFLAGS"
11761 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11762 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11763 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11764 # The linker can only warn and ignore the option if not recognized
11765 # So say no if there are warnings
11766 if test -s conftest.err; then
11767 # Append any errors to the config.log.
11768 cat conftest.err 1>&5
11769 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11771 if diff conftest.exp conftest.er2 >/dev/null; then
11772 lt_prog_compiler_static_works_CXX=yes
11775 lt_prog_compiler_static_works_CXX=yes
11779 LDFLAGS="$save_LDFLAGS"
11782 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11783 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
11785 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11788 lt_prog_compiler_static_CXX=
11792 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11793 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11794 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 lt_cv_prog_compiler_c_o_CXX=no
11798 $rm -r conftest 2>/dev/null
11802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11804 lt_compiler_flag="-o out/conftest2.$ac_objext"
11805 # Insert the option either (1) after the last *FLAGS variable, or
11806 # (2) before a word containing "conftest.", or (3) at the end.
11807 # Note that $ac_compile itself does not contain backslashes and begins
11808 # with a dollar sign (not a hyphen), so the echo should work correctly.
11809 lt_compile=`echo "$ac_compile" | $SED \
11810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11812 -e 's:$: $lt_compiler_flag:'`
11813 (eval echo "\"\$as_me:11813: $lt_compile\"" >&5)
11814 (eval "$lt_compile" 2>out/conftest.err)
11816 cat out/conftest.err >&5
11817 echo "$as_me:11817: \$? = $ac_status" >&5
11818 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11820 # The compiler can only warn and ignore the option if not recognized
11821 # So say no if there are warnings
11822 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11823 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11824 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11825 lt_cv_prog_compiler_c_o_CXX=yes
11830 # SGI C++ compiler will create directory out/ii_files/ for
11831 # template instantiation
11832 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11833 $rm out/* && rmdir out
11839 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11840 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11843 hard_links="nottested"
11844 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11845 # do not overwrite the value of need_locks provided by the user
11846 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11847 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11850 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11852 ln conftest.a conftest.b 2>&5 || hard_links=no
11853 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11854 { echo "$as_me:$LINENO: result: $hard_links" >&5
11855 echo "${ECHO_T}$hard_links" >&6; }
11856 if test "$hard_links" = no; then
11857 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11858 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11865 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11866 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11868 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11871 # If we're using GNU nm, then we don't want the "-C" option.
11872 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11873 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11874 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'
11876 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'
11880 export_symbols_cmds_CXX="$ltdll_cmds"
11883 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'
11886 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11890 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11891 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11892 test "$ld_shlibs_CXX" = no && can_build_shared=no
11895 # Do we need to explicitly link libc?
11897 case "x$archive_cmds_need_lc_CXX" in
11899 # Assume -lc should be added
11900 archive_cmds_need_lc_CXX=yes
11902 if test "$enable_shared" = yes && test "$GCC" = yes; then
11903 case $archive_cmds_CXX in
11905 # FIXME: we may have to deal with multi-command sequences.
11908 # Test whether the compiler implicitly links with -lc since on some
11909 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11910 # to ld, don't add -lc before -lgcc.
11911 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11912 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11917 (eval $ac_compile) 2>&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } 2>conftest.err; then
11923 libobjs=conftest.$ac_objext
11925 wl=$lt_prog_compiler_wl_CXX
11926 pic_flag=$lt_prog_compiler_pic_CXX
11932 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11933 allow_undefined_flag_CXX=
11934 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11935 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }
11940 archive_cmds_need_lc_CXX=no
11942 archive_cmds_need_lc_CXX=yes
11944 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11946 cat conftest.err 1>&5
11949 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11950 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11957 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11958 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11959 library_names_spec=
11960 libname_spec='lib$name'
11964 postuninstall_cmds=
11968 shlibpath_overrides_runpath=unknown
11970 dynamic_linker="$host_os ld.so"
11971 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11973 need_lib_prefix=unknown
11974 hardcode_into_libs=no
11976 # when you set need_version to no, make sure it does not cause -set_version
11977 # flags to be left without arguments
11978 need_version=unknown
11983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11984 shlibpath_var=LIBPATH
11986 # AIX 3 has no versioning support, so we append a major version to the name.
11987 soname_spec='${libname}${release}${shared_ext}$major'
11994 hardcode_into_libs=yes
11995 if test "$host_cpu" = ia64; then
11996 # AIX 5 supports IA64
11997 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11998 shlibpath_var=LD_LIBRARY_PATH
12000 # With GCC up to 2.95.x, collect2 would create an import file
12001 # for dependence libraries. The import file would start with
12002 # the line `#! .'. This would cause the generated library to
12003 # depend on `.', always an invalid library. This was fixed in
12004 # development snapshots of GCC prior to 3.0.
12006 aix4 | aix4.[01] | aix4.[01].*)
12007 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12009 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12012 can_build_shared=no
12016 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12017 # soname into executable. Probably we can add versioning support to
12018 # collect2, so additional links can be useful in future.
12019 if test "$aix_use_runtimelinking" = yes; then
12020 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12021 # instead of lib<name>.a to let people know that these are not
12022 # typical AIX shared libraries.
12023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12025 # We preserve .a as extension for shared libraries through AIX4.2
12026 # and later when we are not doing run time linking.
12027 library_names_spec='${libname}${release}.a $libname.a'
12028 soname_spec='${libname}${release}${shared_ext}$major'
12030 shlibpath_var=LIBPATH
12035 library_names_spec='$libname.ixlibrary $libname.a'
12036 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12037 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'
12041 library_names_spec='${libname}${shared_ext}'
12042 dynamic_linker="$host_os ld.so"
12043 shlibpath_var=LIBRARY_PATH
12049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12050 soname_spec='${libname}${release}${shared_ext}$major'
12051 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12052 shlibpath_var=LD_LIBRARY_PATH
12053 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12054 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12055 # the default ld.so.conf also contains /usr/contrib/lib and
12056 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12057 # libtool to hard-code these into programs
12060 cygwin* | mingw* | pw32*)
12061 version_type=windows
12066 case $GCC,$host_os in
12067 yes,cygwin* | yes,mingw* | yes,pw32*)
12068 library_names_spec='$libname.dll.a'
12069 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12070 postinstall_cmds='base_file=`basename \${file}`~
12071 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12072 dldir=$destdir/`dirname \$dlpath`~
12073 test -d \$dldir || mkdir -p \$dldir~
12074 $install_prog $dir/$dlname \$dldir/$dlname~
12075 chmod a+x \$dldir/$dlname'
12076 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12077 dlpath=$dir/\$dldll~
12079 shlibpath_overrides_runpath=yes
12083 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12084 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12085 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12088 # MinGW DLLs use traditional 'lib' prefix
12089 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12090 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12091 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12092 # It is most probably a Windows format PATH printed by
12093 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12094 # path with ; separators, and with drive letters. We can handle the
12095 # drive letters (cygwin fileutils understands them), so leave them,
12096 # especially as we might pass files found there to a mingw objdump,
12097 # which wouldn't understand a cygwinified path. Ahh.
12098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12100 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12104 # pw32 DLLs use 'pw' prefix rather than 'lib'
12105 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12111 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12114 dynamic_linker='Win32 ld.exe'
12115 # FIXME: first we should search . and the directory the executable is in
12119 darwin* | rhapsody*)
12120 dynamic_linker="$host_os dyld"
12121 version_type=darwin
12124 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12125 soname_spec='${libname}${release}${major}$shared_ext'
12126 shlibpath_overrides_runpath=yes
12127 shlibpath_var=DYLD_LIBRARY_PATH
12128 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12130 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12138 soname_spec='${libname}${release}${shared_ext}$major'
12139 shlibpath_var=LD_LIBRARY_PATH
12146 freebsd* | dragonfly*)
12147 # DragonFly does not have aout. When/if they implement a new
12148 # versioning mechanism, adjust this.
12149 if test -x /usr/bin/objformat; then
12150 objformat=`/usr/bin/objformat`
12153 freebsd[123]*) objformat=aout ;;
12154 *) objformat=elf ;;
12157 version_type=freebsd-$objformat
12158 case $version_type in
12160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12165 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12169 shlibpath_var=LD_LIBRARY_PATH
12172 shlibpath_overrides_runpath=yes
12174 freebsd3.[01]* | freebsdelf3.[01]*)
12175 shlibpath_overrides_runpath=yes
12176 hardcode_into_libs=yes
12178 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12179 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12180 shlibpath_overrides_runpath=no
12181 hardcode_into_libs=yes
12183 *) # from 4.6 on, and DragonFly
12184 shlibpath_overrides_runpath=yes
12185 hardcode_into_libs=yes
12194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12195 soname_spec='${libname}${release}${shared_ext}$major'
12196 shlibpath_var=LD_LIBRARY_PATH
12197 hardcode_into_libs=yes
12200 hpux9* | hpux10* | hpux11*)
12201 # Give a soname corresponding to the major version so that dld.sl refuses to
12202 # link against other versions.
12209 hardcode_into_libs=yes
12210 dynamic_linker="$host_os dld.so"
12211 shlibpath_var=LD_LIBRARY_PATH
12212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12214 soname_spec='${libname}${release}${shared_ext}$major'
12215 if test "X$HPUX_IA64_MODE" = X32; then
12216 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12218 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12224 hardcode_into_libs=yes
12225 dynamic_linker="$host_os dld.sl"
12226 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12229 soname_spec='${libname}${release}${shared_ext}$major'
12230 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12231 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12235 dynamic_linker="$host_os dld.sl"
12236 shlibpath_var=SHLIB_PATH
12237 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12239 soname_spec='${libname}${release}${shared_ext}$major'
12242 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12243 postinstall_cmds='chmod 555 $lib'
12250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12251 soname_spec='${libname}${release}${shared_ext}$major'
12252 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12253 shlibpath_var=LD_LIBRARY_PATH
12254 shlibpath_overrides_runpath=no
12255 hardcode_into_libs=yes
12258 irix5* | irix6* | nonstopux*)
12260 nonstopux*) version_type=nonstopux ;;
12262 if test "$lt_cv_prog_gnu_ld" = yes; then
12270 soname_spec='${libname}${release}${shared_ext}$major'
12271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12273 irix5* | nonstopux*)
12274 libsuff= shlibsuff=
12277 case $LD in # libtool.m4 will add one of these switches to LD
12278 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12279 libsuff= shlibsuff= libmagic=32-bit;;
12280 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12281 libsuff=32 shlibsuff=N32 libmagic=N32;;
12282 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12283 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12284 *) libsuff= shlibsuff= libmagic=never-match;;
12288 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12289 shlibpath_overrides_runpath=no
12290 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12291 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12292 hardcode_into_libs=yes
12295 # No shared lib support for Linux oldld, aout, or coff.
12296 linux*oldld* | linux*aout* | linux*coff*)
12300 # This must be Linux ELF.
12301 linux* | k*bsd*-gnu)
12305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12306 soname_spec='${libname}${release}${shared_ext}$major'
12307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12308 shlibpath_var=LD_LIBRARY_PATH
12309 shlibpath_overrides_runpath=no
12310 # This implies no fast_install, which is unacceptable.
12311 # Some rework will be needed to allow for fast_install
12312 # before this can be enabled.
12313 hardcode_into_libs=yes
12315 # Append ld.so.conf contents to the search path
12316 if test -f /etc/ld.so.conf; then
12317 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12318 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12321 # We used to test for /lib/ld.so.1 and disable shared libraries on
12322 # powerpc, because MkLinux only supported shared libraries with the
12323 # GNU dynamic linker. Since this was broken with cross compilers,
12324 # most powerpc-linux boxes support dynamic linking these days and
12325 # people can always --disable-shared, the test was removed, and we
12326 # assume the GNU/Linux dynamic linker is in use.
12327 dynamic_linker='GNU/Linux ld.so'
12334 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12337 dynamic_linker='NetBSD (a.out) ld.so'
12339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12340 soname_spec='${libname}${release}${shared_ext}$major'
12341 dynamic_linker='NetBSD ld.elf_so'
12343 shlibpath_var=LD_LIBRARY_PATH
12344 shlibpath_overrides_runpath=yes
12345 hardcode_into_libs=yes
12350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12351 shlibpath_var=LD_LIBRARY_PATH
12352 shlibpath_overrides_runpath=yes
12359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12360 soname_spec='${libname}${release}${shared_ext}$major'
12361 shlibpath_var=LD_LIBRARY_PATH
12362 shlibpath_overrides_runpath=yes
12367 sys_lib_dlsearch_path_spec="/usr/lib"
12369 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12371 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12372 *) need_version=no ;;
12374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12376 shlibpath_var=LD_LIBRARY_PATH
12377 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12379 openbsd2.[89] | openbsd2.[89].*)
12380 shlibpath_overrides_runpath=no
12383 shlibpath_overrides_runpath=yes
12387 shlibpath_overrides_runpath=yes
12392 libname_spec='$name'
12395 library_names_spec='$libname${shared_ext} $libname.a'
12396 dynamic_linker='OS/2 ld.exe'
12397 shlibpath_var=LIBPATH
12400 osf3* | osf4* | osf5*)
12404 soname_spec='${libname}${release}${shared_ext}$major'
12405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12406 shlibpath_var=LD_LIBRARY_PATH
12407 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12408 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12420 soname_spec='${libname}${release}${shared_ext}$major'
12421 shlibpath_var=LD_LIBRARY_PATH
12422 shlibpath_overrides_runpath=yes
12423 hardcode_into_libs=yes
12424 # ldd complains unless libraries are executable
12425 postinstall_cmds='chmod +x $lib'
12430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12431 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12432 shlibpath_var=LD_LIBRARY_PATH
12433 shlibpath_overrides_runpath=yes
12434 if test "$with_gnu_ld" = yes; then
12442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12443 soname_spec='${libname}${release}${shared_ext}$major'
12444 shlibpath_var=LD_LIBRARY_PATH
12445 case $host_vendor in
12447 shlibpath_overrides_runpath=no
12449 export_dynamic_flag_spec='${wl}-Blargedynsym'
12450 runpath_var=LD_RUN_PATH
12458 shlibpath_overrides_runpath=no
12459 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12465 if test -d /usr/nec ;then
12467 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12468 soname_spec='$libname${shared_ext}.$major'
12469 shlibpath_var=LD_LIBRARY_PATH
12473 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12474 version_type=freebsd-elf
12477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12478 soname_spec='${libname}${release}${shared_ext}$major'
12479 shlibpath_var=LD_LIBRARY_PATH
12480 hardcode_into_libs=yes
12481 if test "$with_gnu_ld" = yes; then
12482 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12483 shlibpath_overrides_runpath=no
12485 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12486 shlibpath_overrides_runpath=yes
12489 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12493 sys_lib_dlsearch_path_spec='/usr/lib'
12498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12499 soname_spec='${libname}${release}${shared_ext}$major'
12500 shlibpath_var=LD_LIBRARY_PATH
12507 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12508 echo "${ECHO_T}$dynamic_linker" >&6; }
12509 test "$dynamic_linker" = no && can_build_shared=no
12511 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12512 if test "$GCC" = yes; then
12513 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12516 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12517 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12518 hardcode_action_CXX=
12519 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12520 test -n "$runpath_var_CXX" || \
12521 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12523 # We can hardcode non-existant directories.
12524 if test "$hardcode_direct_CXX" != no &&
12525 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12526 # have to relink, otherwise we might link with an installed library
12527 # when we should be linking with a yet-to-be-installed one
12528 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12529 test "$hardcode_minus_L_CXX" != no; then
12530 # Linking always hardcodes the temporary library directory.
12531 hardcode_action_CXX=relink
12533 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12534 hardcode_action_CXX=immediate
12537 # We cannot hardcode anything, or else we can only hardcode existing
12539 hardcode_action_CXX=unsupported
12541 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12542 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12544 if test "$hardcode_action_CXX" = relink; then
12545 # Fast installation is not supported
12546 enable_fast_install=no
12547 elif test "$shlibpath_overrides_runpath" = yes ||
12548 test "$enable_shared" = no; then
12549 # Fast installation is not necessary
12550 enable_fast_install=needless
12554 # The else clause should only fire when bootstrapping the
12555 # libtool distribution, otherwise you forgot to ship ltmain.sh
12556 # with your package, and you will get complaints that there are
12557 # no rules to generate ltmain.sh.
12558 if test -f "$ltmain"; then
12559 # See if we are running on zsh, and set the options which allow our commands through
12560 # without removal of \ escapes.
12561 if test -n "${ZSH_VERSION+set}" ; then
12562 setopt NO_GLOB_SUBST
12564 # Now quote all the things that may contain metacharacters while being
12565 # careful not to overquote the AC_SUBSTed values. We take copies of the
12566 # variables and quote the copies for generation of the libtool script.
12567 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12569 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12570 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12571 deplibs_check_method reload_flag reload_cmds need_locks \
12572 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12573 lt_cv_sys_global_symbol_to_c_name_address \
12574 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12575 old_postinstall_cmds old_postuninstall_cmds \
12579 lt_prog_compiler_wl_CXX \
12580 lt_prog_compiler_pic_CXX \
12581 lt_prog_compiler_static_CXX \
12582 lt_prog_compiler_no_builtin_flag_CXX \
12583 export_dynamic_flag_spec_CXX \
12584 thread_safe_flag_spec_CXX \
12585 whole_archive_flag_spec_CXX \
12586 enable_shared_with_static_runtimes_CXX \
12587 old_archive_cmds_CXX \
12588 old_archive_from_new_cmds_CXX \
12589 predep_objects_CXX \
12590 postdep_objects_CXX \
12593 compiler_lib_search_path_CXX \
12595 archive_expsym_cmds_CXX \
12596 postinstall_cmds_CXX \
12597 postuninstall_cmds_CXX \
12598 old_archive_from_expsyms_cmds_CXX \
12599 allow_undefined_flag_CXX \
12600 no_undefined_flag_CXX \
12601 export_symbols_cmds_CXX \
12602 hardcode_libdir_flag_spec_CXX \
12603 hardcode_libdir_flag_spec_ld_CXX \
12604 hardcode_libdir_separator_CXX \
12605 hardcode_automatic_CXX \
12607 module_expsym_cmds_CXX \
12608 lt_cv_prog_compiler_c_o_CXX \
12609 fix_srcfile_path_CXX \
12610 exclude_expsyms_CXX \
12611 include_expsyms_CXX; do
12614 old_archive_cmds_CXX | \
12615 old_archive_from_new_cmds_CXX | \
12616 archive_cmds_CXX | \
12617 archive_expsym_cmds_CXX | \
12618 module_cmds_CXX | \
12619 module_expsym_cmds_CXX | \
12620 old_archive_from_expsyms_cmds_CXX | \
12621 export_symbols_cmds_CXX | \
12622 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12623 postinstall_cmds | postuninstall_cmds | \
12624 old_postinstall_cmds | old_postuninstall_cmds | \
12625 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12626 # Double-quote double-evaled strings.
12627 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12630 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12636 *'\$0 --fallback-echo"')
12637 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12643 cat <<__EOF__ >> "$cfgfile"
12644 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12646 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12648 # Shell to use when invoking shell scripts.
12651 # Whether or not to build shared libraries.
12652 build_libtool_libs=$enable_shared
12654 # Whether or not to build static libraries.
12655 build_old_libs=$enable_static
12657 # Whether or not to add -lc for building shared libraries.
12658 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12660 # Whether or not to disallow shared libs when runtime libs are static
12661 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12663 # Whether or not to optimize for fast installation.
12664 fast_install=$enable_fast_install
12667 host_alias=$host_alias
12671 # The build system.
12672 build_alias=$build_alias
12676 # An echo program that does not interpret backslashes.
12681 AR_FLAGS=$lt_AR_FLAGS
12686 # LTCC compiler flags.
12687 LTCFLAGS=$lt_LTCFLAGS
12689 # A language-specific compiler.
12690 CC=$lt_compiler_CXX
12692 # Is the compiler the GNU C compiler?
12698 # The linker used to build libraries.
12701 # Whether we need hard or soft links.
12704 # A BSD-compatible nm program.
12707 # A symbol stripping program
12710 # Used to examine libraries when file_magic_cmd begins "file"
12711 MAGIC_CMD=$MAGIC_CMD
12713 # Used on cygwin: DLL creation program.
12716 # Used on cygwin: object dumper.
12719 # Used on cygwin: assembler.
12722 # The name of the directory that contains temporary libtool files.
12725 # How to create reloadable object files.
12726 reload_flag=$lt_reload_flag
12727 reload_cmds=$lt_reload_cmds
12729 # How to pass a linker flag through the compiler.
12730 wl=$lt_lt_prog_compiler_wl_CXX
12732 # Object file suffix (normally "o").
12733 objext="$ac_objext"
12735 # Old archive suffix (normally "a").
12738 # Shared library suffix (normally ".so").
12739 shrext_cmds='$shrext_cmds'
12741 # Executable file suffix (normally "").
12744 # Additional compiler flags for building library objects.
12745 pic_flag=$lt_lt_prog_compiler_pic_CXX
12748 # What is the maximum length of a command?
12749 max_cmd_len=$lt_cv_sys_max_cmd_len
12751 # Does compiler simultaneously support -c and -o options?
12752 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12754 # Must we lock files when doing compilation?
12755 need_locks=$lt_need_locks
12757 # Do we need the lib prefix for modules?
12758 need_lib_prefix=$need_lib_prefix
12760 # Do we need a version for libraries?
12761 need_version=$need_version
12763 # Whether dlopen is supported.
12764 dlopen_support=$enable_dlopen
12766 # Whether dlopen of programs is supported.
12767 dlopen_self=$enable_dlopen_self
12769 # Whether dlopen of statically linked programs is supported.
12770 dlopen_self_static=$enable_dlopen_self_static
12772 # Compiler flag to prevent dynamic linking.
12773 link_static_flag=$lt_lt_prog_compiler_static_CXX
12775 # Compiler flag to turn off builtin functions.
12776 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12778 # Compiler flag to allow reflexive dlopens.
12779 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12781 # Compiler flag to generate shared objects directly from archives.
12782 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12784 # Compiler flag to generate thread-safe objects.
12785 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12787 # Library versioning type.
12788 version_type=$version_type
12790 # Format of library name prefix.
12791 libname_spec=$lt_libname_spec
12793 # List of archive names. First name is the real one, the rest are links.
12794 # The last name is the one that the linker finds with -lNAME.
12795 library_names_spec=$lt_library_names_spec
12797 # The coded name of the library, if different from the real name.
12798 soname_spec=$lt_soname_spec
12800 # Commands used to build and install an old-style archive.
12802 old_archive_cmds=$lt_old_archive_cmds_CXX
12803 old_postinstall_cmds=$lt_old_postinstall_cmds
12804 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12806 # Create an old-style archive from a shared archive.
12807 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12809 # Create a temporary old-style archive to link instead of a shared archive.
12810 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12812 # Commands used to build and install a shared archive.
12813 archive_cmds=$lt_archive_cmds_CXX
12814 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12815 postinstall_cmds=$lt_postinstall_cmds
12816 postuninstall_cmds=$lt_postuninstall_cmds
12818 # Commands used to build a loadable module (assumed same as above if empty)
12819 module_cmds=$lt_module_cmds_CXX
12820 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12822 # Commands to strip libraries.
12823 old_striplib=$lt_old_striplib
12824 striplib=$lt_striplib
12826 # Dependencies to place before the objects being linked to create a
12828 predep_objects=$lt_predep_objects_CXX
12830 # Dependencies to place after the objects being linked to create a
12832 postdep_objects=$lt_postdep_objects_CXX
12834 # Dependencies to place before the objects being linked to create a
12836 predeps=$lt_predeps_CXX
12838 # Dependencies to place after the objects being linked to create a
12840 postdeps=$lt_postdeps_CXX
12842 # The library search path used internally by the compiler when linking
12843 # a shared library.
12844 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12846 # Method to check whether dependent libraries are shared objects.
12847 deplibs_check_method=$lt_deplibs_check_method
12849 # Command to use when deplibs_check_method == file_magic.
12850 file_magic_cmd=$lt_file_magic_cmd
12852 # Flag that allows shared libraries with undefined symbols to be built.
12853 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12855 # Flag that forces no undefined symbols.
12856 no_undefined_flag=$lt_no_undefined_flag_CXX
12858 # Commands used to finish a libtool library installation in a directory.
12859 finish_cmds=$lt_finish_cmds
12861 # Same as above, but a single script fragment to be evaled but not shown.
12862 finish_eval=$lt_finish_eval
12864 # Take the output of nm and produce a listing of raw symbols and C names.
12865 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12867 # Transform the output of nm in a proper C declaration
12868 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12870 # Transform the output of nm in a C name address pair
12871 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12873 # This is the shared library runtime path variable.
12874 runpath_var=$runpath_var
12876 # This is the shared library path variable.
12877 shlibpath_var=$shlibpath_var
12879 # Is shlibpath searched before the hard-coded library search path?
12880 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12882 # How to hardcode a shared library path into an executable.
12883 hardcode_action=$hardcode_action_CXX
12885 # Whether we should hardcode library paths into libraries.
12886 hardcode_into_libs=$hardcode_into_libs
12888 # Flag to hardcode \$libdir into a binary during linking.
12889 # This must work even if \$libdir does not exist.
12890 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12892 # If ld is used when linking, flag to hardcode \$libdir into
12893 # a binary during linking. This must work even if \$libdir does
12895 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12897 # Whether we need a single -rpath flag with a separated argument.
12898 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12900 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12901 # resulting binary.
12902 hardcode_direct=$hardcode_direct_CXX
12904 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12905 # resulting binary.
12906 hardcode_minus_L=$hardcode_minus_L_CXX
12908 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12909 # the resulting binary.
12910 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12912 # Set to yes if building a shared library automatically hardcodes DIR into the library
12913 # and all subsequent libraries and executables linked against it.
12914 hardcode_automatic=$hardcode_automatic_CXX
12916 # Variables whose values should be saved in libtool wrapper scripts and
12917 # restored at relink time.
12918 variables_saved_for_relink="$variables_saved_for_relink"
12920 # Whether libtool must link a program against all its dependency libraries.
12921 link_all_deplibs=$link_all_deplibs_CXX
12923 # Compile-time system search path for libraries
12924 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12926 # Run-time system search path for libraries
12927 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12929 # Fix the shell variable \$srcfile for the compiler.
12930 fix_srcfile_path=$lt_fix_srcfile_path
12932 # Set to yes if exported symbols are required.
12933 always_export_symbols=$always_export_symbols_CXX
12935 # The commands to list exported symbols.
12936 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12938 # The commands to extract the exported symbol list from a shared archive.
12939 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12941 # Symbols that should not be listed in the preloaded symbols.
12942 exclude_expsyms=$lt_exclude_expsyms_CXX
12944 # Symbols that must always be exported.
12945 include_expsyms=$lt_include_expsyms_CXX
12947 # ### END LIBTOOL TAG CONFIG: $tagname
12953 # If there is no Makefile yet, we rely on a make rule to execute
12954 # `config.status --recheck' to rerun these tests and create the
12955 # libtool script then.
12956 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12957 if test -f "$ltmain_in"; then
12958 test -f Makefile && make "$ltmain"
12964 ac_cpp='$CPP $CPPFLAGS'
12965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12973 with_gnu_ldcxx=$with_gnu_ld
12974 with_gnu_ld=$lt_save_with_gnu_ld
12975 lt_cv_path_LDCXX=$lt_cv_path_LD
12976 lt_cv_path_LD=$lt_save_path_LD
12977 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12978 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12986 if test -n "$F77" && test "X$F77" != "Xno"; then
12989 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12990 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12991 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12994 archive_cmds_need_lc_F77=no
12995 allow_undefined_flag_F77=
12996 always_export_symbols_F77=no
12997 archive_expsym_cmds_F77=
12998 export_dynamic_flag_spec_F77=
12999 hardcode_direct_F77=no
13000 hardcode_libdir_flag_spec_F77=
13001 hardcode_libdir_flag_spec_ld_F77=
13002 hardcode_libdir_separator_F77=
13003 hardcode_minus_L_F77=no
13004 hardcode_automatic_F77=no
13006 module_expsym_cmds_F77=
13007 link_all_deplibs_F77=unknown
13008 old_archive_cmds_F77=$old_archive_cmds
13009 no_undefined_flag_F77=
13010 whole_archive_flag_spec_F77=
13011 enable_shared_with_static_runtimes_F77=no
13013 # Source file extension for f77 test sources.
13016 # Object file extension for compiled f77 test sources.
13020 # Code to be used in simple compile tests
13021 lt_simple_compile_test_code="\
13027 # Code to be used in simple link tests
13028 lt_simple_link_test_code="\
13033 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13035 # If no C compiler was specified, use CC.
13038 # If no C compiler flags were specified, use CFLAGS.
13039 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13041 # Allow CC to be a program name with arguments.
13045 # save warnings/boilerplate of simple test code
13046 ac_outfile=conftest.$ac_objext
13047 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13048 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13049 _lt_compiler_boilerplate=`cat conftest.err`
13052 ac_outfile=conftest.$ac_objext
13053 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13054 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13055 _lt_linker_boilerplate=`cat conftest.err`
13059 # Allow CC to be a program name with arguments.
13064 for cc_temp in $compiler""; do
13066 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13067 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13072 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13075 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13076 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13077 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13078 echo "${ECHO_T}$can_build_shared" >&6; }
13080 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13081 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13082 test "$can_build_shared" = "no" && enable_shared=no
13084 # On AIX, shared libraries and static libraries use the same namespace, and
13085 # are all built from PIC.
13088 test "$enable_shared" = yes && enable_static=no
13089 if test -n "$RANLIB"; then
13090 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13091 postinstall_cmds='$RANLIB $lib'
13095 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13096 test "$enable_shared" = yes && enable_static=no
13100 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13101 echo "${ECHO_T}$enable_shared" >&6; }
13103 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13104 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13105 # Make sure either enable_shared or enable_static is yes.
13106 test "$enable_shared" = yes || enable_static=yes
13107 { echo "$as_me:$LINENO: result: $enable_static" >&5
13108 echo "${ECHO_T}$enable_static" >&6; }
13113 lt_prog_compiler_wl_F77=
13114 lt_prog_compiler_pic_F77=
13115 lt_prog_compiler_static_F77=
13117 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13118 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13120 if test "$GCC" = yes; then
13121 lt_prog_compiler_wl_F77='-Wl,'
13122 lt_prog_compiler_static_F77='-static'
13126 # All AIX code is PIC.
13127 if test "$host_cpu" = ia64; then
13128 # AIX 5 now supports IA64 processor
13129 lt_prog_compiler_static_F77='-Bstatic'
13134 # FIXME: we need at least 68020 code to build shared libraries, but
13135 # adding the `-m68020' flag to GCC prevents building anything better,
13137 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13140 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13141 # PIC is the default for these OSes.
13144 mingw* | cygwin* | pw32* | os2*)
13145 # This hack is so that the source file can tell whether it is being
13146 # built for inclusion in a dll (and should export symbols for example).
13147 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13148 # (--disable-auto-import) libraries
13149 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13152 darwin* | rhapsody*)
13153 # PIC is the default on this platform
13154 # Common symbols not allowed in MH_DYLIB files
13155 lt_prog_compiler_pic_F77='-fno-common'
13159 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13160 # Instead, we relocate shared libraries at runtime.
13164 # Just because we use GCC doesn't mean we suddenly get shared libraries
13165 # on systems that don't support them.
13166 lt_prog_compiler_can_build_shared_F77=no
13171 if test -d /usr/nec; then
13172 lt_prog_compiler_pic_F77=-Kconform_pic
13177 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13178 # not for PA HP-UX.
13184 lt_prog_compiler_pic_F77='-fPIC'
13190 lt_prog_compiler_pic_F77='-fPIC'
13194 # PORTME Check for flag to pass linker flags through the system compiler.
13197 lt_prog_compiler_wl_F77='-Wl,'
13198 if test "$host_cpu" = ia64; then
13199 # AIX 5 now supports IA64 processor
13200 lt_prog_compiler_static_F77='-Bstatic'
13202 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13206 # PIC is the default on this platform
13207 # Common symbols not allowed in MH_DYLIB files
13208 case $cc_basename in
13210 lt_prog_compiler_pic_F77='-qnocommon'
13211 lt_prog_compiler_wl_F77='-Wl,'
13216 mingw* | cygwin* | pw32* | os2*)
13217 # This hack is so that the source file can tell whether it is being
13218 # built for inclusion in a dll (and should export symbols for example).
13219 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13222 hpux9* | hpux10* | hpux11*)
13223 lt_prog_compiler_wl_F77='-Wl,'
13224 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13225 # not for PA HP-UX.
13231 lt_prog_compiler_pic_F77='+Z'
13234 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13235 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13238 irix5* | irix6* | nonstopux*)
13239 lt_prog_compiler_wl_F77='-Wl,'
13240 # PIC (with -KPIC) is the default.
13241 lt_prog_compiler_static_F77='-non_shared'
13245 lt_prog_compiler_pic_F77='-KPIC'
13246 lt_prog_compiler_static_F77='-Bstatic'
13249 linux* | k*bsd*-gnu)
13250 case $cc_basename in
13252 lt_prog_compiler_wl_F77='-Wl,'
13253 lt_prog_compiler_pic_F77='-KPIC'
13254 lt_prog_compiler_static_F77='-static'
13256 pgcc* | pgf77* | pgf90* | pgf95*)
13257 # Portland Group compilers (*not* the Pentium gcc compiler,
13258 # which looks to be a dead project)
13259 lt_prog_compiler_wl_F77='-Wl,'
13260 lt_prog_compiler_pic_F77='-fpic'
13261 lt_prog_compiler_static_F77='-Bstatic'
13264 lt_prog_compiler_wl_F77='-Wl,'
13265 # All Alpha code is PIC.
13266 lt_prog_compiler_static_F77='-non_shared'
13269 case `$CC -V 2>&1 | sed 5q` in
13272 lt_prog_compiler_pic_F77='-KPIC'
13273 lt_prog_compiler_static_F77='-Bstatic'
13274 lt_prog_compiler_wl_F77='-Wl,'
13277 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13278 lt_prog_compiler_pic_F77='-KPIC'
13279 lt_prog_compiler_static_F77='-Bstatic'
13280 lt_prog_compiler_wl_F77=''
13287 osf3* | osf4* | osf5*)
13288 lt_prog_compiler_wl_F77='-Wl,'
13289 # All OSF/1 code is PIC.
13290 lt_prog_compiler_static_F77='-non_shared'
13294 lt_prog_compiler_static_F77='-non_shared'
13298 lt_prog_compiler_pic_F77='-KPIC'
13299 lt_prog_compiler_static_F77='-Bstatic'
13300 case $cc_basename in
13301 f77* | f90* | f95*)
13302 lt_prog_compiler_wl_F77='-Qoption ld ';;
13304 lt_prog_compiler_wl_F77='-Wl,';;
13309 lt_prog_compiler_wl_F77='-Qoption ld '
13310 lt_prog_compiler_pic_F77='-PIC'
13311 lt_prog_compiler_static_F77='-Bstatic'
13314 sysv4 | sysv4.2uw2* | sysv4.3*)
13315 lt_prog_compiler_wl_F77='-Wl,'
13316 lt_prog_compiler_pic_F77='-KPIC'
13317 lt_prog_compiler_static_F77='-Bstatic'
13321 if test -d /usr/nec ;then
13322 lt_prog_compiler_pic_F77='-Kconform_pic'
13323 lt_prog_compiler_static_F77='-Bstatic'
13327 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13328 lt_prog_compiler_wl_F77='-Wl,'
13329 lt_prog_compiler_pic_F77='-KPIC'
13330 lt_prog_compiler_static_F77='-Bstatic'
13334 lt_prog_compiler_wl_F77='-Wl,'
13335 lt_prog_compiler_can_build_shared_F77=no
13339 lt_prog_compiler_pic_F77='-pic'
13340 lt_prog_compiler_static_F77='-Bstatic'
13344 lt_prog_compiler_can_build_shared_F77=no
13349 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13350 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13353 # Check to make sure the PIC flag actually works.
13355 if test -n "$lt_prog_compiler_pic_F77"; then
13357 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13358 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13359 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13362 lt_prog_compiler_pic_works_F77=no
13363 ac_outfile=conftest.$ac_objext
13364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13365 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13366 # Insert the option either (1) after the last *FLAGS variable, or
13367 # (2) before a word containing "conftest.", or (3) at the end.
13368 # Note that $ac_compile itself does not contain backslashes and begins
13369 # with a dollar sign (not a hyphen), so the echo should work correctly.
13370 # The option is referenced via a variable to avoid confusing sed.
13371 lt_compile=`echo "$ac_compile" | $SED \
13372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13374 -e 's:$: $lt_compiler_flag:'`
13375 (eval echo "\"\$as_me:13375: $lt_compile\"" >&5)
13376 (eval "$lt_compile" 2>conftest.err)
13378 cat conftest.err >&5
13379 echo "$as_me:13379: \$? = $ac_status" >&5
13380 if (exit $ac_status) && test -s "$ac_outfile"; then
13381 # The compiler can only warn and ignore the option if not recognized
13382 # So say no if there are warnings other than the usual output.
13383 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13385 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13386 lt_prog_compiler_pic_works_F77=yes
13392 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13393 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13395 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13396 case $lt_prog_compiler_pic_F77 in
13398 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13401 lt_prog_compiler_pic_F77=
13402 lt_prog_compiler_can_build_shared_F77=no
13407 # For platforms which do not support PIC, -DPIC is meaningless:
13409 lt_prog_compiler_pic_F77=
13412 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13417 # Check to make sure the static flag actually works.
13419 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13420 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13421 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13422 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13423 echo $ECHO_N "(cached) $ECHO_C" >&6
13425 lt_prog_compiler_static_works_F77=no
13426 save_LDFLAGS="$LDFLAGS"
13427 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13428 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13429 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13430 # The linker can only warn and ignore the option if not recognized
13431 # So say no if there are warnings
13432 if test -s conftest.err; then
13433 # Append any errors to the config.log.
13434 cat conftest.err 1>&5
13435 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13437 if diff conftest.exp conftest.er2 >/dev/null; then
13438 lt_prog_compiler_static_works_F77=yes
13441 lt_prog_compiler_static_works_F77=yes
13445 LDFLAGS="$save_LDFLAGS"
13448 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13449 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13451 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13454 lt_prog_compiler_static_F77=
13458 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13459 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13460 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 lt_cv_prog_compiler_c_o_F77=no
13464 $rm -r conftest 2>/dev/null
13468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13470 lt_compiler_flag="-o out/conftest2.$ac_objext"
13471 # Insert the option either (1) after the last *FLAGS variable, or
13472 # (2) before a word containing "conftest.", or (3) at the end.
13473 # Note that $ac_compile itself does not contain backslashes and begins
13474 # with a dollar sign (not a hyphen), so the echo should work correctly.
13475 lt_compile=`echo "$ac_compile" | $SED \
13476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13478 -e 's:$: $lt_compiler_flag:'`
13479 (eval echo "\"\$as_me:13479: $lt_compile\"" >&5)
13480 (eval "$lt_compile" 2>out/conftest.err)
13482 cat out/conftest.err >&5
13483 echo "$as_me:13483: \$? = $ac_status" >&5
13484 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13486 # The compiler can only warn and ignore the option if not recognized
13487 # So say no if there are warnings
13488 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13489 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13490 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13491 lt_cv_prog_compiler_c_o_F77=yes
13496 # SGI C++ compiler will create directory out/ii_files/ for
13497 # template instantiation
13498 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13499 $rm out/* && rmdir out
13505 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13506 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13509 hard_links="nottested"
13510 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13511 # do not overwrite the value of need_locks provided by the user
13512 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13513 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13516 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13518 ln conftest.a conftest.b 2>&5 || hard_links=no
13519 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13520 { echo "$as_me:$LINENO: result: $hard_links" >&5
13521 echo "${ECHO_T}$hard_links" >&6; }
13522 if test "$hard_links" = no; then
13523 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13524 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13531 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13532 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13535 allow_undefined_flag_F77=
13536 enable_shared_with_static_runtimes_F77=no
13538 archive_expsym_cmds_F77=
13539 old_archive_From_new_cmds_F77=
13540 old_archive_from_expsyms_cmds_F77=
13541 export_dynamic_flag_spec_F77=
13542 whole_archive_flag_spec_F77=
13543 thread_safe_flag_spec_F77=
13544 hardcode_libdir_flag_spec_F77=
13545 hardcode_libdir_flag_spec_ld_F77=
13546 hardcode_libdir_separator_F77=
13547 hardcode_direct_F77=no
13548 hardcode_minus_L_F77=no
13549 hardcode_shlibpath_var_F77=unsupported
13550 link_all_deplibs_F77=unknown
13551 hardcode_automatic_F77=no
13553 module_expsym_cmds_F77=
13554 always_export_symbols_F77=no
13555 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13556 # include_expsyms should be a list of space-separated symbols to be *always*
13557 # included in the symbol list
13558 include_expsyms_F77=
13559 # exclude_expsyms can be an extended regexp of symbols to exclude
13560 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13561 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13562 # as well as any symbol that contains `d'.
13563 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13564 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13565 # platforms (ab)use it in PIC code, but their linkers get confused if
13566 # the symbol is explicitly referenced. Since portable code cannot
13567 # rely on this symbol name, it's probably fine to never include it in
13568 # preloaded symbol tables.
13569 extract_expsyms_cmds=
13570 # Just being paranoid about ensuring that cc_basename is set.
13571 for cc_temp in $compiler""; do
13573 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13574 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13579 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13582 cygwin* | mingw* | pw32*)
13583 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13584 # When not using gcc, we currently assume that we are using
13585 # Microsoft Visual C++.
13586 if test "$GCC" != yes; then
13591 # we just hope/assume this is gcc and not c89 (= MSVC++)
13600 if test "$with_gnu_ld" = yes; then
13601 # If archive_cmds runs LD, not CC, wlarc should be empty
13604 # Set some defaults for GNU ld with shared library support. These
13605 # are reset later if shared libraries are not supported. Putting them
13606 # here allows them to be overridden if necessary.
13607 runpath_var=LD_RUN_PATH
13608 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13609 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13610 # ancient GNU ld didn't support --whole-archive et. al.
13611 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13612 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13614 whole_archive_flag_spec_F77=
13616 supports_anon_versioning=no
13617 case `$LD -v 2>/dev/null` in
13618 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13619 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13620 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13621 *\ 2.11.*) ;; # other 2.11 versions
13622 *) supports_anon_versioning=yes ;;
13625 # See if GNU ld supports shared libraries.
13627 aix3* | aix4* | aix5*)
13628 # On AIX/PPC, the GNU linker is very broken
13629 if test "$host_cpu" != ia64; then
13633 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13634 *** to be unable to reliably create shared libraries on AIX.
13635 *** Therefore, libtool is disabling shared libraries support. If you
13636 *** really care for shared libraries, you may want to modify your PATH
13637 *** so that a non-GNU linker is found, and then restart.
13644 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)'
13645 hardcode_libdir_flag_spec_F77='-L$libdir'
13646 hardcode_minus_L_F77=yes
13648 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13649 # that the semantics of dynamic libraries on AmigaOS, at least up
13650 # to version 4, is to share data among multiple programs linked
13651 # with the same dynamic library. Since this doesn't match the
13652 # behavior of shared libraries on other platforms, we can't use
13658 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13659 allow_undefined_flag_F77=unsupported
13660 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13661 # support --undefined. This deserves some investigation. FIXME
13662 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13668 cygwin* | mingw* | pw32*)
13669 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13670 # as there is no search path for DLLs.
13671 hardcode_libdir_flag_spec_F77='-L$libdir'
13672 allow_undefined_flag_F77=unsupported
13673 always_export_symbols_F77=no
13674 enable_shared_with_static_runtimes_F77=yes
13675 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13677 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13678 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13679 # If the export-symbols file already is a .def file (1st line
13680 # is EXPORTS), use it as is; otherwise, prepend...
13681 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13682 cp $export_symbols $output_objdir/$soname.def;
13684 echo EXPORTS > $output_objdir/$soname.def;
13685 cat $export_symbols >> $output_objdir/$soname.def;
13687 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13694 hardcode_direct_F77=no
13695 hardcode_shlibpath_var_F77=no
13696 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13697 export_dynamic_flag_spec_F77='${wl}-E'
13698 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13699 # Instead, shared libraries are loaded at an image base (0x10000000 by
13700 # default) and relocated if they conflict, which is a slow very memory
13701 # consuming and fragmenting process. To avoid this, we pick a random,
13702 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13703 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13704 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'
13705 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'
13708 gnu* | linux* | k*bsd*-gnu)
13709 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13711 case $cc_basename,$host_cpu in
13712 pgcc*) # Portland Group C compiler
13713 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'
13714 tmp_addflag=' $pic_flag'
13716 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13717 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'
13718 tmp_addflag=' $pic_flag -Mnomain' ;;
13719 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13720 tmp_addflag=' -i_dynamic' ;;
13721 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13722 tmp_addflag=' -i_dynamic -nofor_main' ;;
13723 ifc* | ifort*) # Intel Fortran compiler
13724 tmp_addflag=' -nofor_main' ;;
13726 case `$CC -V 2>&1 | sed 5q` in
13727 *Sun\ C*) # Sun C 5.9
13728 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13729 tmp_sharedflag='-G' ;;
13730 *Sun\ F*) # Sun Fortran 8.3
13731 tmp_sharedflag='-G' ;;
13733 tmp_sharedflag='-shared' ;;
13735 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13737 if test $supports_anon_versioning = yes; then
13738 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13739 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13740 $echo "local: *; };" >> $output_objdir/$libname.ver~
13741 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13749 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13750 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13753 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13754 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13759 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13763 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13764 *** create shared libraries on Solaris systems. Therefore, libtool
13765 *** is disabling shared libraries support. We urge you to upgrade GNU
13766 *** binutils to release 2.9.1 or newer. Another option is to modify
13767 *** your PATH or compiler configuration so that the native linker is
13768 *** used, and then restart.
13771 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13772 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13773 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13780 case `$LD -v 2>&1` in
13781 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13785 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13786 *** reliably create shared libraries on SCO systems. Therefore, libtool
13787 *** is disabling shared libraries support. We urge you to upgrade GNU
13788 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13789 *** your PATH or compiler configuration so that the native linker is
13790 *** used, and then restart.
13795 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13796 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13797 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13798 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13807 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13809 hardcode_direct_F77=yes
13810 hardcode_shlibpath_var_F77=no
13814 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13815 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13816 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13823 if test "$ld_shlibs_F77" = no; then
13825 hardcode_libdir_flag_spec_F77=
13826 export_dynamic_flag_spec_F77=
13827 whole_archive_flag_spec_F77=
13830 # PORTME fill in a description of your system's linker (not GNU ld)
13833 allow_undefined_flag_F77=unsupported
13834 always_export_symbols_F77=yes
13835 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'
13836 # Note: this linker hardcodes the directories in LIBPATH if there
13837 # are no directories specified by -L.
13838 hardcode_minus_L_F77=yes
13839 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13840 # Neither direct hardcoding nor static linking is supported with a
13842 hardcode_direct_F77=unsupported
13847 if test "$host_cpu" = ia64; then
13848 # On IA64, the linker does run time linking by default, so we don't
13849 # have to do anything special.
13850 aix_use_runtimelinking=no
13851 exp_sym_flag='-Bexport'
13854 # If we're using GNU nm, then we don't want the "-C" option.
13855 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13856 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13857 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'
13859 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'
13861 aix_use_runtimelinking=no
13863 # Test if we are trying to use run time linking or normal
13864 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13865 # need to do runtime linking.
13866 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13867 for ld_flag in $LDFLAGS; do
13868 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13869 aix_use_runtimelinking=yes
13876 exp_sym_flag='-bexport'
13877 no_entry_flag='-bnoentry'
13880 # When large executables or shared objects are built, AIX ld can
13881 # have problems creating the table of contents. If linking a library
13882 # or program results in "error TOC overflow" add -mminimal-toc to
13883 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13884 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13886 archive_cmds_F77=''
13887 hardcode_direct_F77=yes
13888 hardcode_libdir_separator_F77=':'
13889 link_all_deplibs_F77=yes
13891 if test "$GCC" = yes; then
13892 case $host_os in aix4.[012]|aix4.[012].*)
13893 # We only want to do this on AIX 4.2 and lower, the check
13894 # below for broken collect2 doesn't work under 4.3+
13895 collect2name=`${CC} -print-prog-name=collect2`
13896 if test -f "$collect2name" && \
13897 strings "$collect2name" | grep resolve_lib_name >/dev/null
13899 # We have reworked collect2
13902 # We have old collect2
13903 hardcode_direct_F77=unsupported
13904 # It fails to find uninstalled libraries when the uninstalled
13905 # path is not listed in the libpath. Setting hardcode_minus_L
13906 # to unsupported forces relinking
13907 hardcode_minus_L_F77=yes
13908 hardcode_libdir_flag_spec_F77='-L$libdir'
13909 hardcode_libdir_separator_F77=
13913 shared_flag='-shared'
13914 if test "$aix_use_runtimelinking" = yes; then
13915 shared_flag="$shared_flag "'${wl}-G'
13919 if test "$host_cpu" = ia64; then
13920 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13921 # chokes on -Wl,-G. The following line is correct:
13924 if test "$aix_use_runtimelinking" = yes; then
13925 shared_flag='${wl}-G'
13927 shared_flag='${wl}-bM:SRE'
13932 # It seems that -bexpall does not export symbols beginning with
13933 # underscore (_), so it is better to generate a list of symbols to export.
13934 always_export_symbols_F77=yes
13935 if test "$aix_use_runtimelinking" = yes; then
13936 # Warning - without using the other runtime loading flags (-brtl),
13937 # -berok will link without error, but may produce a broken library.
13938 allow_undefined_flag_F77='-berok'
13939 # Determine the default libpath from the value encoded in an empty executable.
13940 cat >conftest.$ac_ext <<_ACEOF
13945 rm -f conftest.$ac_objext conftest$ac_exeext
13946 if { (ac_try="$ac_link"
13947 case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 (eval "$ac_link") 2>conftest.er1
13954 grep -v '^ *+' conftest.er1 >conftest.err
13956 cat conftest.err >&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); } && {
13959 test -z "$ac_f77_werror_flag" ||
13960 test ! -s conftest.err
13961 } && test -s conftest$ac_exeext &&
13962 $as_test_x conftest$ac_exeext; then
13964 lt_aix_libpath_sed='
13965 /Import File Strings/,/^$/ {
13971 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13972 # Check for a 64-bit object if we didn't find anything.
13973 if test -z "$aix_libpath"; then
13974 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13977 echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13984 conftest$ac_exeext conftest.$ac_ext
13985 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13987 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13988 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"
13990 if test "$host_cpu" = ia64; then
13991 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13992 allow_undefined_flag_F77="-z nodefs"
13993 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"
13995 # Determine the default libpath from the value encoded in an empty executable.
13996 cat >conftest.$ac_ext <<_ACEOF
14001 rm -f conftest.$ac_objext conftest$ac_exeext
14002 if { (ac_try="$ac_link"
14003 case "(($ac_try" in
14004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14005 *) ac_try_echo=$ac_try;;
14007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14008 (eval "$ac_link") 2>conftest.er1
14010 grep -v '^ *+' conftest.er1 >conftest.err
14012 cat conftest.err >&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); } && {
14015 test -z "$ac_f77_werror_flag" ||
14016 test ! -s conftest.err
14017 } && test -s conftest$ac_exeext &&
14018 $as_test_x conftest$ac_exeext; then
14020 lt_aix_libpath_sed='
14021 /Import File Strings/,/^$/ {
14027 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14028 # Check for a 64-bit object if we didn't find anything.
14029 if test -z "$aix_libpath"; then
14030 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14040 conftest$ac_exeext conftest.$ac_ext
14041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14043 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14044 # Warning - without using the other run time loading flags,
14045 # -berok will link without error, but may produce a broken library.
14046 no_undefined_flag_F77=' ${wl}-bernotok'
14047 allow_undefined_flag_F77=' ${wl}-berok'
14048 # Exported symbols can be pulled into shared objects from archives
14049 whole_archive_flag_spec_F77='$convenience'
14050 archive_cmds_need_lc_F77=yes
14051 # This is similar to how AIX traditionally builds its shared libraries.
14052 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'
14058 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)'
14059 hardcode_libdir_flag_spec_F77='-L$libdir'
14060 hardcode_minus_L_F77=yes
14061 # see comment about different semantics on the GNU ld section
14066 export_dynamic_flag_spec_F77=-rdynamic
14069 cygwin* | mingw* | pw32*)
14070 # When not using gcc, we currently assume that we are using
14071 # Microsoft Visual C++.
14072 # hardcode_libdir_flag_spec is actually meaningless, as there is
14073 # no search path for DLLs.
14074 hardcode_libdir_flag_spec_F77=' '
14075 allow_undefined_flag_F77=unsupported
14076 # Tell ltmain to make .lib files, not .a files.
14078 # Tell ltmain to make .dll files, not .so files.
14080 # FIXME: Setting linknames here is a bad hack.
14081 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14082 # The linker will automatically build a .lib file if we build a DLL.
14083 old_archive_From_new_cmds_F77='true'
14084 # FIXME: Should let the user specify the lib program.
14085 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14086 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14087 enable_shared_with_static_runtimes_F77=yes
14090 darwin* | rhapsody*)
14092 rhapsody* | darwin1.[012])
14093 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14096 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14097 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14099 case ${MACOSX_DEPLOYMENT_TARGET} in
14101 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14104 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14110 archive_cmds_need_lc_F77=no
14111 hardcode_direct_F77=no
14112 hardcode_automatic_F77=yes
14113 hardcode_shlibpath_var_F77=unsupported
14114 whole_archive_flag_spec_F77=''
14115 link_all_deplibs_F77=yes
14116 if test "$GCC" = yes ; then
14117 output_verbose_link_cmd='echo'
14118 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14119 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14120 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14121 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}'
14122 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}'
14124 case $cc_basename in
14126 output_verbose_link_cmd='echo'
14127 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14128 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14129 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14130 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14131 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}'
14141 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14142 hardcode_libdir_flag_spec_F77='-L$libdir'
14143 hardcode_shlibpath_var_F77=no
14150 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14151 # support. Future versions do this automatically, but an explicit c++rt0.o
14152 # does not break anything, and helps significantly (at the cost of a little
14155 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14156 hardcode_libdir_flag_spec_F77='-R$libdir'
14157 hardcode_direct_F77=yes
14158 hardcode_shlibpath_var_F77=no
14161 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14163 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14164 hardcode_direct_F77=yes
14165 hardcode_minus_L_F77=yes
14166 hardcode_shlibpath_var_F77=no
14169 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14170 freebsd* | dragonfly*)
14171 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14172 hardcode_libdir_flag_spec_F77='-R$libdir'
14173 hardcode_direct_F77=yes
14174 hardcode_shlibpath_var_F77=no
14178 if test "$GCC" = yes; then
14179 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'
14181 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'
14183 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14184 hardcode_libdir_separator_F77=:
14185 hardcode_direct_F77=yes
14187 # hardcode_minus_L: Not really in the search PATH,
14188 # but as the default location of the library.
14189 hardcode_minus_L_F77=yes
14190 export_dynamic_flag_spec_F77='${wl}-E'
14194 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14195 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14197 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14199 if test "$with_gnu_ld" = no; then
14200 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14201 hardcode_libdir_separator_F77=:
14203 hardcode_direct_F77=yes
14204 export_dynamic_flag_spec_F77='${wl}-E'
14206 # hardcode_minus_L: Not really in the search PATH,
14207 # but as the default location of the library.
14208 hardcode_minus_L_F77=yes
14213 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14216 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14219 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14222 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14228 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14231 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14234 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14238 if test "$with_gnu_ld" = no; then
14239 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14240 hardcode_libdir_separator_F77=:
14244 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14245 hardcode_direct_F77=no
14246 hardcode_shlibpath_var_F77=no
14249 hardcode_direct_F77=yes
14250 export_dynamic_flag_spec_F77='${wl}-E'
14252 # hardcode_minus_L: Not really in the search PATH,
14253 # but as the default location of the library.
14254 hardcode_minus_L_F77=yes
14260 irix5* | irix6* | nonstopux*)
14261 if test "$GCC" = yes; then
14262 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'
14264 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'
14265 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14267 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14268 hardcode_libdir_separator_F77=:
14269 link_all_deplibs_F77=yes
14273 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14274 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14276 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14278 hardcode_libdir_flag_spec_F77='-R$libdir'
14279 hardcode_direct_F77=yes
14280 hardcode_shlibpath_var_F77=no
14284 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14285 hardcode_direct_F77=yes
14286 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14287 hardcode_libdir_separator_F77=:
14288 hardcode_shlibpath_var_F77=no
14292 if test -f /usr/libexec/ld.so; then
14293 hardcode_direct_F77=yes
14294 hardcode_shlibpath_var_F77=no
14295 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14296 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14297 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14298 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14299 export_dynamic_flag_spec_F77='${wl}-E'
14302 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14303 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14304 hardcode_libdir_flag_spec_F77='-R$libdir'
14307 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14308 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14318 hardcode_libdir_flag_spec_F77='-L$libdir'
14319 hardcode_minus_L_F77=yes
14320 allow_undefined_flag_F77=unsupported
14321 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'
14322 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14326 if test "$GCC" = yes; then
14327 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14328 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'
14330 allow_undefined_flag_F77=' -expect_unresolved \*'
14331 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'
14333 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14334 hardcode_libdir_separator_F77=:
14337 osf4* | osf5*) # as osf3* with the addition of -msym flag
14338 if test "$GCC" = yes; then
14339 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14340 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'
14341 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14343 allow_undefined_flag_F77=' -expect_unresolved \*'
14344 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'
14345 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~
14346 $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'
14348 # Both c and cxx compiler support -rpath directly
14349 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14351 hardcode_libdir_separator_F77=:
14355 no_undefined_flag_F77=' -z text'
14356 if test "$GCC" = yes; then
14358 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14359 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14360 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14363 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14364 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14365 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14367 hardcode_libdir_flag_spec_F77='-R$libdir'
14368 hardcode_shlibpath_var_F77=no
14370 solaris2.[0-5] | solaris2.[0-5].*) ;;
14372 # The compiler driver will combine and reorder linker options,
14373 # but understands `-z linker_flag'. GCC discards it without `$wl',
14374 # but is careful enough not to reorder.
14375 # Supported since Solaris 2.6 (maybe 2.5.1?)
14376 if test "$GCC" = yes; then
14377 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14379 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14383 link_all_deplibs_F77=yes
14387 if test "x$host_vendor" = xsequent; then
14388 # Use $CC to link under sequent, because it throws in some extra .o
14389 # files that make .init and .fini sections work.
14390 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14392 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14394 hardcode_libdir_flag_spec_F77='-L$libdir'
14395 hardcode_direct_F77=yes
14396 hardcode_minus_L_F77=yes
14397 hardcode_shlibpath_var_F77=no
14401 case $host_vendor in
14403 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14404 hardcode_direct_F77=yes # is this really true???
14407 ## LD is ld it makes a PLAMLIB
14408 ## CC just makes a GrossModule.
14409 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14410 reload_cmds_F77='$CC -r -o $output$reload_objs'
14411 hardcode_direct_F77=no
14414 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14415 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14418 runpath_var='LD_RUN_PATH'
14419 hardcode_shlibpath_var_F77=no
14423 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14424 hardcode_shlibpath_var_F77=no
14425 export_dynamic_flag_spec_F77='-Bexport'
14429 if test -d /usr/nec; then
14430 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14431 hardcode_shlibpath_var_F77=no
14432 runpath_var=LD_RUN_PATH
14433 hardcode_runpath_var=yes
14438 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14439 no_undefined_flag_F77='${wl}-z,text'
14440 archive_cmds_need_lc_F77=no
14441 hardcode_shlibpath_var_F77=no
14442 runpath_var='LD_RUN_PATH'
14444 if test "$GCC" = yes; then
14445 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14446 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14448 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14449 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14453 sysv5* | sco3.2v5* | sco5v6*)
14454 # Note: We can NOT use -z defs as we might desire, because we do not
14455 # link with -lc, and that would cause any symbols used from libc to
14456 # always be unresolved, which means just about no library would
14457 # ever link correctly. If we're not using GNU ld we use -z text
14458 # though, which does catch some bad symbols but isn't as heavy-handed
14460 no_undefined_flag_F77='${wl}-z,text'
14461 allow_undefined_flag_F77='${wl}-z,nodefs'
14462 archive_cmds_need_lc_F77=no
14463 hardcode_shlibpath_var_F77=no
14464 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14465 hardcode_libdir_separator_F77=':'
14466 link_all_deplibs_F77=yes
14467 export_dynamic_flag_spec_F77='${wl}-Bexport'
14468 runpath_var='LD_RUN_PATH'
14470 if test "$GCC" = yes; then
14471 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14472 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14474 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14475 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14480 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14481 hardcode_libdir_flag_spec_F77='-L$libdir'
14482 hardcode_shlibpath_var_F77=no
14491 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14492 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14493 test "$ld_shlibs_F77" = no && can_build_shared=no
14496 # Do we need to explicitly link libc?
14498 case "x$archive_cmds_need_lc_F77" in
14500 # Assume -lc should be added
14501 archive_cmds_need_lc_F77=yes
14503 if test "$enable_shared" = yes && test "$GCC" = yes; then
14504 case $archive_cmds_F77 in
14506 # FIXME: we may have to deal with multi-command sequences.
14509 # Test whether the compiler implicitly links with -lc since on some
14510 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14511 # to ld, don't add -lc before -lgcc.
14512 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14513 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14518 (eval $ac_compile) 2>&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } 2>conftest.err; then
14524 libobjs=conftest.$ac_objext
14526 wl=$lt_prog_compiler_wl_F77
14527 pic_flag=$lt_prog_compiler_pic_F77
14533 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14534 allow_undefined_flag_F77=
14535 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14536 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }
14541 archive_cmds_need_lc_F77=no
14543 archive_cmds_need_lc_F77=yes
14545 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14547 cat conftest.err 1>&5
14550 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14551 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14558 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14559 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14560 library_names_spec=
14561 libname_spec='lib$name'
14565 postuninstall_cmds=
14569 shlibpath_overrides_runpath=unknown
14571 dynamic_linker="$host_os ld.so"
14572 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14574 need_lib_prefix=unknown
14575 hardcode_into_libs=no
14577 # when you set need_version to no, make sure it does not cause -set_version
14578 # flags to be left without arguments
14579 need_version=unknown
14584 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14585 shlibpath_var=LIBPATH
14587 # AIX 3 has no versioning support, so we append a major version to the name.
14588 soname_spec='${libname}${release}${shared_ext}$major'
14595 hardcode_into_libs=yes
14596 if test "$host_cpu" = ia64; then
14597 # AIX 5 supports IA64
14598 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14599 shlibpath_var=LD_LIBRARY_PATH
14601 # With GCC up to 2.95.x, collect2 would create an import file
14602 # for dependence libraries. The import file would start with
14603 # the line `#! .'. This would cause the generated library to
14604 # depend on `.', always an invalid library. This was fixed in
14605 # development snapshots of GCC prior to 3.0.
14607 aix4 | aix4.[01] | aix4.[01].*)
14608 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14610 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14613 can_build_shared=no
14617 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14618 # soname into executable. Probably we can add versioning support to
14619 # collect2, so additional links can be useful in future.
14620 if test "$aix_use_runtimelinking" = yes; then
14621 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14622 # instead of lib<name>.a to let people know that these are not
14623 # typical AIX shared libraries.
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14626 # We preserve .a as extension for shared libraries through AIX4.2
14627 # and later when we are not doing run time linking.
14628 library_names_spec='${libname}${release}.a $libname.a'
14629 soname_spec='${libname}${release}${shared_ext}$major'
14631 shlibpath_var=LIBPATH
14636 library_names_spec='$libname.ixlibrary $libname.a'
14637 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14638 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'
14642 library_names_spec='${libname}${shared_ext}'
14643 dynamic_linker="$host_os ld.so"
14644 shlibpath_var=LIBRARY_PATH
14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14651 soname_spec='${libname}${release}${shared_ext}$major'
14652 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14653 shlibpath_var=LD_LIBRARY_PATH
14654 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14655 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14656 # the default ld.so.conf also contains /usr/contrib/lib and
14657 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14658 # libtool to hard-code these into programs
14661 cygwin* | mingw* | pw32*)
14662 version_type=windows
14667 case $GCC,$host_os in
14668 yes,cygwin* | yes,mingw* | yes,pw32*)
14669 library_names_spec='$libname.dll.a'
14670 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14671 postinstall_cmds='base_file=`basename \${file}`~
14672 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14673 dldir=$destdir/`dirname \$dlpath`~
14674 test -d \$dldir || mkdir -p \$dldir~
14675 $install_prog $dir/$dlname \$dldir/$dlname~
14676 chmod a+x \$dldir/$dlname'
14677 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14678 dlpath=$dir/\$dldll~
14680 shlibpath_overrides_runpath=yes
14684 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14685 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14686 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14689 # MinGW DLLs use traditional 'lib' prefix
14690 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14691 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14692 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14693 # It is most probably a Windows format PATH printed by
14694 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14695 # path with ; separators, and with drive letters. We can handle the
14696 # drive letters (cygwin fileutils understands them), so leave them,
14697 # especially as we might pass files found there to a mingw objdump,
14698 # which wouldn't understand a cygwinified path. Ahh.
14699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14705 # pw32 DLLs use 'pw' prefix rather than 'lib'
14706 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14712 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14715 dynamic_linker='Win32 ld.exe'
14716 # FIXME: first we should search . and the directory the executable is in
14720 darwin* | rhapsody*)
14721 dynamic_linker="$host_os dyld"
14722 version_type=darwin
14725 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14726 soname_spec='${libname}${release}${major}$shared_ext'
14727 shlibpath_overrides_runpath=yes
14728 shlibpath_var=DYLD_LIBRARY_PATH
14729 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14731 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14739 soname_spec='${libname}${release}${shared_ext}$major'
14740 shlibpath_var=LD_LIBRARY_PATH
14747 freebsd* | dragonfly*)
14748 # DragonFly does not have aout. When/if they implement a new
14749 # versioning mechanism, adjust this.
14750 if test -x /usr/bin/objformat; then
14751 objformat=`/usr/bin/objformat`
14754 freebsd[123]*) objformat=aout ;;
14755 *) objformat=elf ;;
14758 version_type=freebsd-$objformat
14759 case $version_type in
14761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14766 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14770 shlibpath_var=LD_LIBRARY_PATH
14773 shlibpath_overrides_runpath=yes
14775 freebsd3.[01]* | freebsdelf3.[01]*)
14776 shlibpath_overrides_runpath=yes
14777 hardcode_into_libs=yes
14779 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14780 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14781 shlibpath_overrides_runpath=no
14782 hardcode_into_libs=yes
14784 *) # from 4.6 on, and DragonFly
14785 shlibpath_overrides_runpath=yes
14786 hardcode_into_libs=yes
14795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14796 soname_spec='${libname}${release}${shared_ext}$major'
14797 shlibpath_var=LD_LIBRARY_PATH
14798 hardcode_into_libs=yes
14801 hpux9* | hpux10* | hpux11*)
14802 # Give a soname corresponding to the major version so that dld.sl refuses to
14803 # link against other versions.
14810 hardcode_into_libs=yes
14811 dynamic_linker="$host_os dld.so"
14812 shlibpath_var=LD_LIBRARY_PATH
14813 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14815 soname_spec='${libname}${release}${shared_ext}$major'
14816 if test "X$HPUX_IA64_MODE" = X32; then
14817 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14819 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14821 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14825 hardcode_into_libs=yes
14826 dynamic_linker="$host_os dld.sl"
14827 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14828 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14830 soname_spec='${libname}${release}${shared_ext}$major'
14831 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14832 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14836 dynamic_linker="$host_os dld.sl"
14837 shlibpath_var=SHLIB_PATH
14838 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14840 soname_spec='${libname}${release}${shared_ext}$major'
14843 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14844 postinstall_cmds='chmod 555 $lib'
14851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14852 soname_spec='${libname}${release}${shared_ext}$major'
14853 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14854 shlibpath_var=LD_LIBRARY_PATH
14855 shlibpath_overrides_runpath=no
14856 hardcode_into_libs=yes
14859 irix5* | irix6* | nonstopux*)
14861 nonstopux*) version_type=nonstopux ;;
14863 if test "$lt_cv_prog_gnu_ld" = yes; then
14871 soname_spec='${libname}${release}${shared_ext}$major'
14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14874 irix5* | nonstopux*)
14875 libsuff= shlibsuff=
14878 case $LD in # libtool.m4 will add one of these switches to LD
14879 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14880 libsuff= shlibsuff= libmagic=32-bit;;
14881 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14882 libsuff=32 shlibsuff=N32 libmagic=N32;;
14883 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14884 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14885 *) libsuff= shlibsuff= libmagic=never-match;;
14889 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14890 shlibpath_overrides_runpath=no
14891 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14892 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14893 hardcode_into_libs=yes
14896 # No shared lib support for Linux oldld, aout, or coff.
14897 linux*oldld* | linux*aout* | linux*coff*)
14901 # This must be Linux ELF.
14902 linux* | k*bsd*-gnu)
14906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14907 soname_spec='${libname}${release}${shared_ext}$major'
14908 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14909 shlibpath_var=LD_LIBRARY_PATH
14910 shlibpath_overrides_runpath=no
14911 # This implies no fast_install, which is unacceptable.
14912 # Some rework will be needed to allow for fast_install
14913 # before this can be enabled.
14914 hardcode_into_libs=yes
14916 # Append ld.so.conf contents to the search path
14917 if test -f /etc/ld.so.conf; then
14918 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14919 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14922 # We used to test for /lib/ld.so.1 and disable shared libraries on
14923 # powerpc, because MkLinux only supported shared libraries with the
14924 # GNU dynamic linker. Since this was broken with cross compilers,
14925 # most powerpc-linux boxes support dynamic linking these days and
14926 # people can always --disable-shared, the test was removed, and we
14927 # assume the GNU/Linux dynamic linker is in use.
14928 dynamic_linker='GNU/Linux ld.so'
14935 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14938 dynamic_linker='NetBSD (a.out) ld.so'
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14941 soname_spec='${libname}${release}${shared_ext}$major'
14942 dynamic_linker='NetBSD ld.elf_so'
14944 shlibpath_var=LD_LIBRARY_PATH
14945 shlibpath_overrides_runpath=yes
14946 hardcode_into_libs=yes
14951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14952 shlibpath_var=LD_LIBRARY_PATH
14953 shlibpath_overrides_runpath=yes
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14961 soname_spec='${libname}${release}${shared_ext}$major'
14962 shlibpath_var=LD_LIBRARY_PATH
14963 shlibpath_overrides_runpath=yes
14968 sys_lib_dlsearch_path_spec="/usr/lib"
14970 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14972 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14973 *) need_version=no ;;
14975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14977 shlibpath_var=LD_LIBRARY_PATH
14978 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14980 openbsd2.[89] | openbsd2.[89].*)
14981 shlibpath_overrides_runpath=no
14984 shlibpath_overrides_runpath=yes
14988 shlibpath_overrides_runpath=yes
14993 libname_spec='$name'
14996 library_names_spec='$libname${shared_ext} $libname.a'
14997 dynamic_linker='OS/2 ld.exe'
14998 shlibpath_var=LIBPATH
15001 osf3* | osf4* | osf5*)
15005 soname_spec='${libname}${release}${shared_ext}$major'
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15007 shlibpath_var=LD_LIBRARY_PATH
15008 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15009 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15021 soname_spec='${libname}${release}${shared_ext}$major'
15022 shlibpath_var=LD_LIBRARY_PATH
15023 shlibpath_overrides_runpath=yes
15024 hardcode_into_libs=yes
15025 # ldd complains unless libraries are executable
15026 postinstall_cmds='chmod +x $lib'
15031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15032 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15033 shlibpath_var=LD_LIBRARY_PATH
15034 shlibpath_overrides_runpath=yes
15035 if test "$with_gnu_ld" = yes; then
15043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15044 soname_spec='${libname}${release}${shared_ext}$major'
15045 shlibpath_var=LD_LIBRARY_PATH
15046 case $host_vendor in
15048 shlibpath_overrides_runpath=no
15050 export_dynamic_flag_spec='${wl}-Blargedynsym'
15051 runpath_var=LD_RUN_PATH
15059 shlibpath_overrides_runpath=no
15060 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15066 if test -d /usr/nec ;then
15068 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15069 soname_spec='$libname${shared_ext}.$major'
15070 shlibpath_var=LD_LIBRARY_PATH
15074 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15075 version_type=freebsd-elf
15078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15079 soname_spec='${libname}${release}${shared_ext}$major'
15080 shlibpath_var=LD_LIBRARY_PATH
15081 hardcode_into_libs=yes
15082 if test "$with_gnu_ld" = yes; then
15083 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15084 shlibpath_overrides_runpath=no
15086 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15087 shlibpath_overrides_runpath=yes
15090 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15094 sys_lib_dlsearch_path_spec='/usr/lib'
15099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15100 soname_spec='${libname}${release}${shared_ext}$major'
15101 shlibpath_var=LD_LIBRARY_PATH
15108 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15109 echo "${ECHO_T}$dynamic_linker" >&6; }
15110 test "$dynamic_linker" = no && can_build_shared=no
15112 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15113 if test "$GCC" = yes; then
15114 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15117 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15118 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15119 hardcode_action_F77=
15120 if test -n "$hardcode_libdir_flag_spec_F77" || \
15121 test -n "$runpath_var_F77" || \
15122 test "X$hardcode_automatic_F77" = "Xyes" ; then
15124 # We can hardcode non-existant directories.
15125 if test "$hardcode_direct_F77" != no &&
15126 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15127 # have to relink, otherwise we might link with an installed library
15128 # when we should be linking with a yet-to-be-installed one
15129 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15130 test "$hardcode_minus_L_F77" != no; then
15131 # Linking always hardcodes the temporary library directory.
15132 hardcode_action_F77=relink
15134 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15135 hardcode_action_F77=immediate
15138 # We cannot hardcode anything, or else we can only hardcode existing
15140 hardcode_action_F77=unsupported
15142 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15143 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15145 if test "$hardcode_action_F77" = relink; then
15146 # Fast installation is not supported
15147 enable_fast_install=no
15148 elif test "$shlibpath_overrides_runpath" = yes ||
15149 test "$enable_shared" = no; then
15150 # Fast installation is not necessary
15151 enable_fast_install=needless
15155 # The else clause should only fire when bootstrapping the
15156 # libtool distribution, otherwise you forgot to ship ltmain.sh
15157 # with your package, and you will get complaints that there are
15158 # no rules to generate ltmain.sh.
15159 if test -f "$ltmain"; then
15160 # See if we are running on zsh, and set the options which allow our commands through
15161 # without removal of \ escapes.
15162 if test -n "${ZSH_VERSION+set}" ; then
15163 setopt NO_GLOB_SUBST
15165 # Now quote all the things that may contain metacharacters while being
15166 # careful not to overquote the AC_SUBSTed values. We take copies of the
15167 # variables and quote the copies for generation of the libtool script.
15168 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15170 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15171 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15172 deplibs_check_method reload_flag reload_cmds need_locks \
15173 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15174 lt_cv_sys_global_symbol_to_c_name_address \
15175 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15176 old_postinstall_cmds old_postuninstall_cmds \
15180 lt_prog_compiler_wl_F77 \
15181 lt_prog_compiler_pic_F77 \
15182 lt_prog_compiler_static_F77 \
15183 lt_prog_compiler_no_builtin_flag_F77 \
15184 export_dynamic_flag_spec_F77 \
15185 thread_safe_flag_spec_F77 \
15186 whole_archive_flag_spec_F77 \
15187 enable_shared_with_static_runtimes_F77 \
15188 old_archive_cmds_F77 \
15189 old_archive_from_new_cmds_F77 \
15190 predep_objects_F77 \
15191 postdep_objects_F77 \
15194 compiler_lib_search_path_F77 \
15196 archive_expsym_cmds_F77 \
15197 postinstall_cmds_F77 \
15198 postuninstall_cmds_F77 \
15199 old_archive_from_expsyms_cmds_F77 \
15200 allow_undefined_flag_F77 \
15201 no_undefined_flag_F77 \
15202 export_symbols_cmds_F77 \
15203 hardcode_libdir_flag_spec_F77 \
15204 hardcode_libdir_flag_spec_ld_F77 \
15205 hardcode_libdir_separator_F77 \
15206 hardcode_automatic_F77 \
15208 module_expsym_cmds_F77 \
15209 lt_cv_prog_compiler_c_o_F77 \
15210 fix_srcfile_path_F77 \
15211 exclude_expsyms_F77 \
15212 include_expsyms_F77; do
15215 old_archive_cmds_F77 | \
15216 old_archive_from_new_cmds_F77 | \
15217 archive_cmds_F77 | \
15218 archive_expsym_cmds_F77 | \
15219 module_cmds_F77 | \
15220 module_expsym_cmds_F77 | \
15221 old_archive_from_expsyms_cmds_F77 | \
15222 export_symbols_cmds_F77 | \
15223 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15224 postinstall_cmds | postuninstall_cmds | \
15225 old_postinstall_cmds | old_postuninstall_cmds | \
15226 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15227 # Double-quote double-evaled strings.
15228 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15231 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15237 *'\$0 --fallback-echo"')
15238 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15244 cat <<__EOF__ >> "$cfgfile"
15245 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15247 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15249 # Shell to use when invoking shell scripts.
15252 # Whether or not to build shared libraries.
15253 build_libtool_libs=$enable_shared
15255 # Whether or not to build static libraries.
15256 build_old_libs=$enable_static
15258 # Whether or not to add -lc for building shared libraries.
15259 build_libtool_need_lc=$archive_cmds_need_lc_F77
15261 # Whether or not to disallow shared libs when runtime libs are static
15262 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15264 # Whether or not to optimize for fast installation.
15265 fast_install=$enable_fast_install
15268 host_alias=$host_alias
15272 # The build system.
15273 build_alias=$build_alias
15277 # An echo program that does not interpret backslashes.
15282 AR_FLAGS=$lt_AR_FLAGS
15287 # LTCC compiler flags.
15288 LTCFLAGS=$lt_LTCFLAGS
15290 # A language-specific compiler.
15291 CC=$lt_compiler_F77
15293 # Is the compiler the GNU C compiler?
15299 # The linker used to build libraries.
15302 # Whether we need hard or soft links.
15305 # A BSD-compatible nm program.
15308 # A symbol stripping program
15311 # Used to examine libraries when file_magic_cmd begins "file"
15312 MAGIC_CMD=$MAGIC_CMD
15314 # Used on cygwin: DLL creation program.
15317 # Used on cygwin: object dumper.
15320 # Used on cygwin: assembler.
15323 # The name of the directory that contains temporary libtool files.
15326 # How to create reloadable object files.
15327 reload_flag=$lt_reload_flag
15328 reload_cmds=$lt_reload_cmds
15330 # How to pass a linker flag through the compiler.
15331 wl=$lt_lt_prog_compiler_wl_F77
15333 # Object file suffix (normally "o").
15334 objext="$ac_objext"
15336 # Old archive suffix (normally "a").
15339 # Shared library suffix (normally ".so").
15340 shrext_cmds='$shrext_cmds'
15342 # Executable file suffix (normally "").
15345 # Additional compiler flags for building library objects.
15346 pic_flag=$lt_lt_prog_compiler_pic_F77
15349 # What is the maximum length of a command?
15350 max_cmd_len=$lt_cv_sys_max_cmd_len
15352 # Does compiler simultaneously support -c and -o options?
15353 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15355 # Must we lock files when doing compilation?
15356 need_locks=$lt_need_locks
15358 # Do we need the lib prefix for modules?
15359 need_lib_prefix=$need_lib_prefix
15361 # Do we need a version for libraries?
15362 need_version=$need_version
15364 # Whether dlopen is supported.
15365 dlopen_support=$enable_dlopen
15367 # Whether dlopen of programs is supported.
15368 dlopen_self=$enable_dlopen_self
15370 # Whether dlopen of statically linked programs is supported.
15371 dlopen_self_static=$enable_dlopen_self_static
15373 # Compiler flag to prevent dynamic linking.
15374 link_static_flag=$lt_lt_prog_compiler_static_F77
15376 # Compiler flag to turn off builtin functions.
15377 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15379 # Compiler flag to allow reflexive dlopens.
15380 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15382 # Compiler flag to generate shared objects directly from archives.
15383 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15385 # Compiler flag to generate thread-safe objects.
15386 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15388 # Library versioning type.
15389 version_type=$version_type
15391 # Format of library name prefix.
15392 libname_spec=$lt_libname_spec
15394 # List of archive names. First name is the real one, the rest are links.
15395 # The last name is the one that the linker finds with -lNAME.
15396 library_names_spec=$lt_library_names_spec
15398 # The coded name of the library, if different from the real name.
15399 soname_spec=$lt_soname_spec
15401 # Commands used to build and install an old-style archive.
15403 old_archive_cmds=$lt_old_archive_cmds_F77
15404 old_postinstall_cmds=$lt_old_postinstall_cmds
15405 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15407 # Create an old-style archive from a shared archive.
15408 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15410 # Create a temporary old-style archive to link instead of a shared archive.
15411 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15413 # Commands used to build and install a shared archive.
15414 archive_cmds=$lt_archive_cmds_F77
15415 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15416 postinstall_cmds=$lt_postinstall_cmds
15417 postuninstall_cmds=$lt_postuninstall_cmds
15419 # Commands used to build a loadable module (assumed same as above if empty)
15420 module_cmds=$lt_module_cmds_F77
15421 module_expsym_cmds=$lt_module_expsym_cmds_F77
15423 # Commands to strip libraries.
15424 old_striplib=$lt_old_striplib
15425 striplib=$lt_striplib
15427 # Dependencies to place before the objects being linked to create a
15429 predep_objects=$lt_predep_objects_F77
15431 # Dependencies to place after the objects being linked to create a
15433 postdep_objects=$lt_postdep_objects_F77
15435 # Dependencies to place before the objects being linked to create a
15437 predeps=$lt_predeps_F77
15439 # Dependencies to place after the objects being linked to create a
15441 postdeps=$lt_postdeps_F77
15443 # The library search path used internally by the compiler when linking
15444 # a shared library.
15445 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15447 # Method to check whether dependent libraries are shared objects.
15448 deplibs_check_method=$lt_deplibs_check_method
15450 # Command to use when deplibs_check_method == file_magic.
15451 file_magic_cmd=$lt_file_magic_cmd
15453 # Flag that allows shared libraries with undefined symbols to be built.
15454 allow_undefined_flag=$lt_allow_undefined_flag_F77
15456 # Flag that forces no undefined symbols.
15457 no_undefined_flag=$lt_no_undefined_flag_F77
15459 # Commands used to finish a libtool library installation in a directory.
15460 finish_cmds=$lt_finish_cmds
15462 # Same as above, but a single script fragment to be evaled but not shown.
15463 finish_eval=$lt_finish_eval
15465 # Take the output of nm and produce a listing of raw symbols and C names.
15466 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15468 # Transform the output of nm in a proper C declaration
15469 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15471 # Transform the output of nm in a C name address pair
15472 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15474 # This is the shared library runtime path variable.
15475 runpath_var=$runpath_var
15477 # This is the shared library path variable.
15478 shlibpath_var=$shlibpath_var
15480 # Is shlibpath searched before the hard-coded library search path?
15481 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15483 # How to hardcode a shared library path into an executable.
15484 hardcode_action=$hardcode_action_F77
15486 # Whether we should hardcode library paths into libraries.
15487 hardcode_into_libs=$hardcode_into_libs
15489 # Flag to hardcode \$libdir into a binary during linking.
15490 # This must work even if \$libdir does not exist.
15491 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15493 # If ld is used when linking, flag to hardcode \$libdir into
15494 # a binary during linking. This must work even if \$libdir does
15496 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15498 # Whether we need a single -rpath flag with a separated argument.
15499 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15501 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15502 # resulting binary.
15503 hardcode_direct=$hardcode_direct_F77
15505 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15506 # resulting binary.
15507 hardcode_minus_L=$hardcode_minus_L_F77
15509 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15510 # the resulting binary.
15511 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15513 # Set to yes if building a shared library automatically hardcodes DIR into the library
15514 # and all subsequent libraries and executables linked against it.
15515 hardcode_automatic=$hardcode_automatic_F77
15517 # Variables whose values should be saved in libtool wrapper scripts and
15518 # restored at relink time.
15519 variables_saved_for_relink="$variables_saved_for_relink"
15521 # Whether libtool must link a program against all its dependency libraries.
15522 link_all_deplibs=$link_all_deplibs_F77
15524 # Compile-time system search path for libraries
15525 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15527 # Run-time system search path for libraries
15528 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15530 # Fix the shell variable \$srcfile for the compiler.
15531 fix_srcfile_path=$lt_fix_srcfile_path
15533 # Set to yes if exported symbols are required.
15534 always_export_symbols=$always_export_symbols_F77
15536 # The commands to list exported symbols.
15537 export_symbols_cmds=$lt_export_symbols_cmds_F77
15539 # The commands to extract the exported symbol list from a shared archive.
15540 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15542 # Symbols that should not be listed in the preloaded symbols.
15543 exclude_expsyms=$lt_exclude_expsyms_F77
15545 # Symbols that must always be exported.
15546 include_expsyms=$lt_include_expsyms_F77
15548 # ### END LIBTOOL TAG CONFIG: $tagname
15554 # If there is no Makefile yet, we rely on a make rule to execute
15555 # `config.status --recheck' to rerun these tests and create the
15556 # libtool script then.
15557 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15558 if test -f "$ltmain_in"; then
15559 test -f Makefile && make "$ltmain"
15565 ac_cpp='$CPP $CPPFLAGS'
15566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15578 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15581 # Source file extension for Java test sources.
15584 # Object file extension for compiled Java test sources.
15588 # Code to be used in simple compile tests
15589 lt_simple_compile_test_code="class foo {}"
15591 # Code to be used in simple link tests
15592 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15594 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15596 # If no C compiler was specified, use CC.
15599 # If no C compiler flags were specified, use CFLAGS.
15600 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15602 # Allow CC to be a program name with arguments.
15606 # save warnings/boilerplate of simple test code
15607 ac_outfile=conftest.$ac_objext
15608 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15609 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15610 _lt_compiler_boilerplate=`cat conftest.err`
15613 ac_outfile=conftest.$ac_objext
15614 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15615 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15616 _lt_linker_boilerplate=`cat conftest.err`
15620 # Allow CC to be a program name with arguments.
15625 for cc_temp in $compiler""; do
15627 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15628 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15633 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15636 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15637 archive_cmds_need_lc_GCJ=no
15639 old_archive_cmds_GCJ=$old_archive_cmds
15642 lt_prog_compiler_no_builtin_flag_GCJ=
15644 if test "$GCC" = yes; then
15645 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15648 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15649 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15650 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15651 echo $ECHO_N "(cached) $ECHO_C" >&6
15653 lt_cv_prog_compiler_rtti_exceptions=no
15654 ac_outfile=conftest.$ac_objext
15655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15656 lt_compiler_flag="-fno-rtti -fno-exceptions"
15657 # Insert the option either (1) after the last *FLAGS variable, or
15658 # (2) before a word containing "conftest.", or (3) at the end.
15659 # Note that $ac_compile itself does not contain backslashes and begins
15660 # with a dollar sign (not a hyphen), so the echo should work correctly.
15661 # The option is referenced via a variable to avoid confusing sed.
15662 lt_compile=`echo "$ac_compile" | $SED \
15663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15665 -e 's:$: $lt_compiler_flag:'`
15666 (eval echo "\"\$as_me:15666: $lt_compile\"" >&5)
15667 (eval "$lt_compile" 2>conftest.err)
15669 cat conftest.err >&5
15670 echo "$as_me:15670: \$? = $ac_status" >&5
15671 if (exit $ac_status) && test -s "$ac_outfile"; then
15672 # The compiler can only warn and ignore the option if not recognized
15673 # So say no if there are warnings other than the usual output.
15674 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15675 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15676 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15677 lt_cv_prog_compiler_rtti_exceptions=yes
15683 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15684 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15686 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15687 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15694 lt_prog_compiler_wl_GCJ=
15695 lt_prog_compiler_pic_GCJ=
15696 lt_prog_compiler_static_GCJ=
15698 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15699 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15701 if test "$GCC" = yes; then
15702 lt_prog_compiler_wl_GCJ='-Wl,'
15703 lt_prog_compiler_static_GCJ='-static'
15707 # All AIX code is PIC.
15708 if test "$host_cpu" = ia64; then
15709 # AIX 5 now supports IA64 processor
15710 lt_prog_compiler_static_GCJ='-Bstatic'
15715 # FIXME: we need at least 68020 code to build shared libraries, but
15716 # adding the `-m68020' flag to GCC prevents building anything better,
15718 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15721 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15722 # PIC is the default for these OSes.
15725 mingw* | cygwin* | pw32* | os2*)
15726 # This hack is so that the source file can tell whether it is being
15727 # built for inclusion in a dll (and should export symbols for example).
15728 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15729 # (--disable-auto-import) libraries
15730 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15733 darwin* | rhapsody*)
15734 # PIC is the default on this platform
15735 # Common symbols not allowed in MH_DYLIB files
15736 lt_prog_compiler_pic_GCJ='-fno-common'
15740 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15741 # Instead, we relocate shared libraries at runtime.
15745 # Just because we use GCC doesn't mean we suddenly get shared libraries
15746 # on systems that don't support them.
15747 lt_prog_compiler_can_build_shared_GCJ=no
15752 if test -d /usr/nec; then
15753 lt_prog_compiler_pic_GCJ=-Kconform_pic
15758 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15759 # not for PA HP-UX.
15765 lt_prog_compiler_pic_GCJ='-fPIC'
15771 lt_prog_compiler_pic_GCJ='-fPIC'
15775 # PORTME Check for flag to pass linker flags through the system compiler.
15778 lt_prog_compiler_wl_GCJ='-Wl,'
15779 if test "$host_cpu" = ia64; then
15780 # AIX 5 now supports IA64 processor
15781 lt_prog_compiler_static_GCJ='-Bstatic'
15783 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15787 # PIC is the default on this platform
15788 # Common symbols not allowed in MH_DYLIB files
15789 case $cc_basename in
15791 lt_prog_compiler_pic_GCJ='-qnocommon'
15792 lt_prog_compiler_wl_GCJ='-Wl,'
15797 mingw* | cygwin* | pw32* | os2*)
15798 # This hack is so that the source file can tell whether it is being
15799 # built for inclusion in a dll (and should export symbols for example).
15800 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15803 hpux9* | hpux10* | hpux11*)
15804 lt_prog_compiler_wl_GCJ='-Wl,'
15805 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15806 # not for PA HP-UX.
15812 lt_prog_compiler_pic_GCJ='+Z'
15815 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15816 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15819 irix5* | irix6* | nonstopux*)
15820 lt_prog_compiler_wl_GCJ='-Wl,'
15821 # PIC (with -KPIC) is the default.
15822 lt_prog_compiler_static_GCJ='-non_shared'
15826 lt_prog_compiler_pic_GCJ='-KPIC'
15827 lt_prog_compiler_static_GCJ='-Bstatic'
15830 linux* | k*bsd*-gnu)
15831 case $cc_basename in
15833 lt_prog_compiler_wl_GCJ='-Wl,'
15834 lt_prog_compiler_pic_GCJ='-KPIC'
15835 lt_prog_compiler_static_GCJ='-static'
15837 pgcc* | pgf77* | pgf90* | pgf95*)
15838 # Portland Group compilers (*not* the Pentium gcc compiler,
15839 # which looks to be a dead project)
15840 lt_prog_compiler_wl_GCJ='-Wl,'
15841 lt_prog_compiler_pic_GCJ='-fpic'
15842 lt_prog_compiler_static_GCJ='-Bstatic'
15845 lt_prog_compiler_wl_GCJ='-Wl,'
15846 # All Alpha code is PIC.
15847 lt_prog_compiler_static_GCJ='-non_shared'
15850 case `$CC -V 2>&1 | sed 5q` in
15853 lt_prog_compiler_pic_GCJ='-KPIC'
15854 lt_prog_compiler_static_GCJ='-Bstatic'
15855 lt_prog_compiler_wl_GCJ='-Wl,'
15858 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15859 lt_prog_compiler_pic_GCJ='-KPIC'
15860 lt_prog_compiler_static_GCJ='-Bstatic'
15861 lt_prog_compiler_wl_GCJ=''
15868 osf3* | osf4* | osf5*)
15869 lt_prog_compiler_wl_GCJ='-Wl,'
15870 # All OSF/1 code is PIC.
15871 lt_prog_compiler_static_GCJ='-non_shared'
15875 lt_prog_compiler_static_GCJ='-non_shared'
15879 lt_prog_compiler_pic_GCJ='-KPIC'
15880 lt_prog_compiler_static_GCJ='-Bstatic'
15881 case $cc_basename in
15882 f77* | f90* | f95*)
15883 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15885 lt_prog_compiler_wl_GCJ='-Wl,';;
15890 lt_prog_compiler_wl_GCJ='-Qoption ld '
15891 lt_prog_compiler_pic_GCJ='-PIC'
15892 lt_prog_compiler_static_GCJ='-Bstatic'
15895 sysv4 | sysv4.2uw2* | sysv4.3*)
15896 lt_prog_compiler_wl_GCJ='-Wl,'
15897 lt_prog_compiler_pic_GCJ='-KPIC'
15898 lt_prog_compiler_static_GCJ='-Bstatic'
15902 if test -d /usr/nec ;then
15903 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15904 lt_prog_compiler_static_GCJ='-Bstatic'
15908 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15909 lt_prog_compiler_wl_GCJ='-Wl,'
15910 lt_prog_compiler_pic_GCJ='-KPIC'
15911 lt_prog_compiler_static_GCJ='-Bstatic'
15915 lt_prog_compiler_wl_GCJ='-Wl,'
15916 lt_prog_compiler_can_build_shared_GCJ=no
15920 lt_prog_compiler_pic_GCJ='-pic'
15921 lt_prog_compiler_static_GCJ='-Bstatic'
15925 lt_prog_compiler_can_build_shared_GCJ=no
15930 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15931 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15934 # Check to make sure the PIC flag actually works.
15936 if test -n "$lt_prog_compiler_pic_GCJ"; then
15938 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15939 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15940 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15941 echo $ECHO_N "(cached) $ECHO_C" >&6
15943 lt_prog_compiler_pic_works_GCJ=no
15944 ac_outfile=conftest.$ac_objext
15945 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15946 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15947 # Insert the option either (1) after the last *FLAGS variable, or
15948 # (2) before a word containing "conftest.", or (3) at the end.
15949 # Note that $ac_compile itself does not contain backslashes and begins
15950 # with a dollar sign (not a hyphen), so the echo should work correctly.
15951 # The option is referenced via a variable to avoid confusing sed.
15952 lt_compile=`echo "$ac_compile" | $SED \
15953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15955 -e 's:$: $lt_compiler_flag:'`
15956 (eval echo "\"\$as_me:15956: $lt_compile\"" >&5)
15957 (eval "$lt_compile" 2>conftest.err)
15959 cat conftest.err >&5
15960 echo "$as_me:15960: \$? = $ac_status" >&5
15961 if (exit $ac_status) && test -s "$ac_outfile"; then
15962 # The compiler can only warn and ignore the option if not recognized
15963 # So say no if there are warnings other than the usual output.
15964 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15966 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15967 lt_prog_compiler_pic_works_GCJ=yes
15973 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15974 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15976 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15977 case $lt_prog_compiler_pic_GCJ in
15979 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15982 lt_prog_compiler_pic_GCJ=
15983 lt_prog_compiler_can_build_shared_GCJ=no
15988 # For platforms which do not support PIC, -DPIC is meaningless:
15990 lt_prog_compiler_pic_GCJ=
15993 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15998 # Check to make sure the static flag actually works.
16000 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16001 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16002 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16003 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16004 echo $ECHO_N "(cached) $ECHO_C" >&6
16006 lt_prog_compiler_static_works_GCJ=no
16007 save_LDFLAGS="$LDFLAGS"
16008 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16009 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16010 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16011 # The linker can only warn and ignore the option if not recognized
16012 # So say no if there are warnings
16013 if test -s conftest.err; then
16014 # Append any errors to the config.log.
16015 cat conftest.err 1>&5
16016 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16017 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16018 if diff conftest.exp conftest.er2 >/dev/null; then
16019 lt_prog_compiler_static_works_GCJ=yes
16022 lt_prog_compiler_static_works_GCJ=yes
16026 LDFLAGS="$save_LDFLAGS"
16029 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16030 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16032 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16035 lt_prog_compiler_static_GCJ=
16039 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16040 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16041 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16042 echo $ECHO_N "(cached) $ECHO_C" >&6
16044 lt_cv_prog_compiler_c_o_GCJ=no
16045 $rm -r conftest 2>/dev/null
16049 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16051 lt_compiler_flag="-o out/conftest2.$ac_objext"
16052 # Insert the option either (1) after the last *FLAGS variable, or
16053 # (2) before a word containing "conftest.", or (3) at the end.
16054 # Note that $ac_compile itself does not contain backslashes and begins
16055 # with a dollar sign (not a hyphen), so the echo should work correctly.
16056 lt_compile=`echo "$ac_compile" | $SED \
16057 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16059 -e 's:$: $lt_compiler_flag:'`
16060 (eval echo "\"\$as_me:16060: $lt_compile\"" >&5)
16061 (eval "$lt_compile" 2>out/conftest.err)
16063 cat out/conftest.err >&5
16064 echo "$as_me:16064: \$? = $ac_status" >&5
16065 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16067 # The compiler can only warn and ignore the option if not recognized
16068 # So say no if there are warnings
16069 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16070 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16071 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16072 lt_cv_prog_compiler_c_o_GCJ=yes
16077 # SGI C++ compiler will create directory out/ii_files/ for
16078 # template instantiation
16079 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16080 $rm out/* && rmdir out
16086 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16087 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16090 hard_links="nottested"
16091 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16092 # do not overwrite the value of need_locks provided by the user
16093 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16094 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16097 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16099 ln conftest.a conftest.b 2>&5 || hard_links=no
16100 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16101 { echo "$as_me:$LINENO: result: $hard_links" >&5
16102 echo "${ECHO_T}$hard_links" >&6; }
16103 if test "$hard_links" = no; then
16104 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16105 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16112 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16113 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16116 allow_undefined_flag_GCJ=
16117 enable_shared_with_static_runtimes_GCJ=no
16119 archive_expsym_cmds_GCJ=
16120 old_archive_From_new_cmds_GCJ=
16121 old_archive_from_expsyms_cmds_GCJ=
16122 export_dynamic_flag_spec_GCJ=
16123 whole_archive_flag_spec_GCJ=
16124 thread_safe_flag_spec_GCJ=
16125 hardcode_libdir_flag_spec_GCJ=
16126 hardcode_libdir_flag_spec_ld_GCJ=
16127 hardcode_libdir_separator_GCJ=
16128 hardcode_direct_GCJ=no
16129 hardcode_minus_L_GCJ=no
16130 hardcode_shlibpath_var_GCJ=unsupported
16131 link_all_deplibs_GCJ=unknown
16132 hardcode_automatic_GCJ=no
16134 module_expsym_cmds_GCJ=
16135 always_export_symbols_GCJ=no
16136 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16137 # include_expsyms should be a list of space-separated symbols to be *always*
16138 # included in the symbol list
16139 include_expsyms_GCJ=
16140 # exclude_expsyms can be an extended regexp of symbols to exclude
16141 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16142 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16143 # as well as any symbol that contains `d'.
16144 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16145 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16146 # platforms (ab)use it in PIC code, but their linkers get confused if
16147 # the symbol is explicitly referenced. Since portable code cannot
16148 # rely on this symbol name, it's probably fine to never include it in
16149 # preloaded symbol tables.
16150 extract_expsyms_cmds=
16151 # Just being paranoid about ensuring that cc_basename is set.
16152 for cc_temp in $compiler""; do
16154 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16155 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16160 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16163 cygwin* | mingw* | pw32*)
16164 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16165 # When not using gcc, we currently assume that we are using
16166 # Microsoft Visual C++.
16167 if test "$GCC" != yes; then
16172 # we just hope/assume this is gcc and not c89 (= MSVC++)
16181 if test "$with_gnu_ld" = yes; then
16182 # If archive_cmds runs LD, not CC, wlarc should be empty
16185 # Set some defaults for GNU ld with shared library support. These
16186 # are reset later if shared libraries are not supported. Putting them
16187 # here allows them to be overridden if necessary.
16188 runpath_var=LD_RUN_PATH
16189 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16190 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16191 # ancient GNU ld didn't support --whole-archive et. al.
16192 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16193 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16195 whole_archive_flag_spec_GCJ=
16197 supports_anon_versioning=no
16198 case `$LD -v 2>/dev/null` in
16199 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16200 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16201 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16202 *\ 2.11.*) ;; # other 2.11 versions
16203 *) supports_anon_versioning=yes ;;
16206 # See if GNU ld supports shared libraries.
16208 aix3* | aix4* | aix5*)
16209 # On AIX/PPC, the GNU linker is very broken
16210 if test "$host_cpu" != ia64; then
16214 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16215 *** to be unable to reliably create shared libraries on AIX.
16216 *** Therefore, libtool is disabling shared libraries support. If you
16217 *** really care for shared libraries, you may want to modify your PATH
16218 *** so that a non-GNU linker is found, and then restart.
16225 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)'
16226 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16227 hardcode_minus_L_GCJ=yes
16229 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16230 # that the semantics of dynamic libraries on AmigaOS, at least up
16231 # to version 4, is to share data among multiple programs linked
16232 # with the same dynamic library. Since this doesn't match the
16233 # behavior of shared libraries on other platforms, we can't use
16239 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16240 allow_undefined_flag_GCJ=unsupported
16241 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16242 # support --undefined. This deserves some investigation. FIXME
16243 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16249 cygwin* | mingw* | pw32*)
16250 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16251 # as there is no search path for DLLs.
16252 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16253 allow_undefined_flag_GCJ=unsupported
16254 always_export_symbols_GCJ=no
16255 enable_shared_with_static_runtimes_GCJ=yes
16256 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16258 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16259 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16260 # If the export-symbols file already is a .def file (1st line
16261 # is EXPORTS), use it as is; otherwise, prepend...
16262 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16263 cp $export_symbols $output_objdir/$soname.def;
16265 echo EXPORTS > $output_objdir/$soname.def;
16266 cat $export_symbols >> $output_objdir/$soname.def;
16268 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16275 hardcode_direct_GCJ=no
16276 hardcode_shlibpath_var_GCJ=no
16277 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16278 export_dynamic_flag_spec_GCJ='${wl}-E'
16279 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16280 # Instead, shared libraries are loaded at an image base (0x10000000 by
16281 # default) and relocated if they conflict, which is a slow very memory
16282 # consuming and fragmenting process. To avoid this, we pick a random,
16283 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16284 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16285 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'
16286 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'
16289 gnu* | linux* | k*bsd*-gnu)
16290 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16292 case $cc_basename,$host_cpu in
16293 pgcc*) # Portland Group C compiler
16294 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'
16295 tmp_addflag=' $pic_flag'
16297 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16298 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'
16299 tmp_addflag=' $pic_flag -Mnomain' ;;
16300 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16301 tmp_addflag=' -i_dynamic' ;;
16302 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16303 tmp_addflag=' -i_dynamic -nofor_main' ;;
16304 ifc* | ifort*) # Intel Fortran compiler
16305 tmp_addflag=' -nofor_main' ;;
16307 case `$CC -V 2>&1 | sed 5q` in
16308 *Sun\ C*) # Sun C 5.9
16309 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16310 tmp_sharedflag='-G' ;;
16311 *Sun\ F*) # Sun Fortran 8.3
16312 tmp_sharedflag='-G' ;;
16314 tmp_sharedflag='-shared' ;;
16316 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16318 if test $supports_anon_versioning = yes; then
16319 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16320 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16321 $echo "local: *; };" >> $output_objdir/$libname.ver~
16322 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16330 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16331 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16334 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16335 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16340 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16344 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16345 *** create shared libraries on Solaris systems. Therefore, libtool
16346 *** is disabling shared libraries support. We urge you to upgrade GNU
16347 *** binutils to release 2.9.1 or newer. Another option is to modify
16348 *** your PATH or compiler configuration so that the native linker is
16349 *** used, and then restart.
16352 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16353 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16354 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16360 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16361 case `$LD -v 2>&1` in
16362 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16366 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16367 *** reliably create shared libraries on SCO systems. Therefore, libtool
16368 *** is disabling shared libraries support. We urge you to upgrade GNU
16369 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16370 *** your PATH or compiler configuration so that the native linker is
16371 *** used, and then restart.
16376 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16377 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16378 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16379 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16388 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16390 hardcode_direct_GCJ=yes
16391 hardcode_shlibpath_var_GCJ=no
16395 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16396 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16397 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16404 if test "$ld_shlibs_GCJ" = no; then
16406 hardcode_libdir_flag_spec_GCJ=
16407 export_dynamic_flag_spec_GCJ=
16408 whole_archive_flag_spec_GCJ=
16411 # PORTME fill in a description of your system's linker (not GNU ld)
16414 allow_undefined_flag_GCJ=unsupported
16415 always_export_symbols_GCJ=yes
16416 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'
16417 # Note: this linker hardcodes the directories in LIBPATH if there
16418 # are no directories specified by -L.
16419 hardcode_minus_L_GCJ=yes
16420 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16421 # Neither direct hardcoding nor static linking is supported with a
16423 hardcode_direct_GCJ=unsupported
16428 if test "$host_cpu" = ia64; then
16429 # On IA64, the linker does run time linking by default, so we don't
16430 # have to do anything special.
16431 aix_use_runtimelinking=no
16432 exp_sym_flag='-Bexport'
16435 # If we're using GNU nm, then we don't want the "-C" option.
16436 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16437 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16438 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'
16440 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'
16442 aix_use_runtimelinking=no
16444 # Test if we are trying to use run time linking or normal
16445 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16446 # need to do runtime linking.
16447 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16448 for ld_flag in $LDFLAGS; do
16449 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16450 aix_use_runtimelinking=yes
16457 exp_sym_flag='-bexport'
16458 no_entry_flag='-bnoentry'
16461 # When large executables or shared objects are built, AIX ld can
16462 # have problems creating the table of contents. If linking a library
16463 # or program results in "error TOC overflow" add -mminimal-toc to
16464 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16465 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16467 archive_cmds_GCJ=''
16468 hardcode_direct_GCJ=yes
16469 hardcode_libdir_separator_GCJ=':'
16470 link_all_deplibs_GCJ=yes
16472 if test "$GCC" = yes; then
16473 case $host_os in aix4.[012]|aix4.[012].*)
16474 # We only want to do this on AIX 4.2 and lower, the check
16475 # below for broken collect2 doesn't work under 4.3+
16476 collect2name=`${CC} -print-prog-name=collect2`
16477 if test -f "$collect2name" && \
16478 strings "$collect2name" | grep resolve_lib_name >/dev/null
16480 # We have reworked collect2
16483 # We have old collect2
16484 hardcode_direct_GCJ=unsupported
16485 # It fails to find uninstalled libraries when the uninstalled
16486 # path is not listed in the libpath. Setting hardcode_minus_L
16487 # to unsupported forces relinking
16488 hardcode_minus_L_GCJ=yes
16489 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16490 hardcode_libdir_separator_GCJ=
16494 shared_flag='-shared'
16495 if test "$aix_use_runtimelinking" = yes; then
16496 shared_flag="$shared_flag "'${wl}-G'
16500 if test "$host_cpu" = ia64; then
16501 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16502 # chokes on -Wl,-G. The following line is correct:
16505 if test "$aix_use_runtimelinking" = yes; then
16506 shared_flag='${wl}-G'
16508 shared_flag='${wl}-bM:SRE'
16513 # It seems that -bexpall does not export symbols beginning with
16514 # underscore (_), so it is better to generate a list of symbols to export.
16515 always_export_symbols_GCJ=yes
16516 if test "$aix_use_runtimelinking" = yes; then
16517 # Warning - without using the other runtime loading flags (-brtl),
16518 # -berok will link without error, but may produce a broken library.
16519 allow_undefined_flag_GCJ='-berok'
16520 # Determine the default libpath from the value encoded in an empty executable.
16521 cat >conftest.$ac_ext <<_ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h. */
16536 rm -f conftest.$ac_objext conftest$ac_exeext
16537 if { (ac_try="$ac_link"
16538 case "(($ac_try" in
16539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540 *) ac_try_echo=$ac_try;;
16542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16543 (eval "$ac_link") 2>conftest.er1
16545 grep -v '^ *+' conftest.er1 >conftest.err
16547 cat conftest.err >&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); } && {
16550 test -z "$ac_c_werror_flag" ||
16551 test ! -s conftest.err
16552 } && test -s conftest$ac_exeext &&
16553 $as_test_x conftest$ac_exeext; then
16555 lt_aix_libpath_sed='
16556 /Import File Strings/,/^$/ {
16562 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16563 # Check for a 64-bit object if we didn't find anything.
16564 if test -z "$aix_libpath"; then
16565 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16568 echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16575 conftest$ac_exeext conftest.$ac_ext
16576 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16578 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16579 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"
16581 if test "$host_cpu" = ia64; then
16582 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16583 allow_undefined_flag_GCJ="-z nodefs"
16584 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"
16586 # Determine the default libpath from the value encoded in an empty executable.
16587 cat >conftest.$ac_ext <<_ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h. */
16602 rm -f conftest.$ac_objext conftest$ac_exeext
16603 if { (ac_try="$ac_link"
16604 case "(($ac_try" in
16605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16606 *) ac_try_echo=$ac_try;;
16608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16609 (eval "$ac_link") 2>conftest.er1
16611 grep -v '^ *+' conftest.er1 >conftest.err
16613 cat conftest.err >&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); } && {
16616 test -z "$ac_c_werror_flag" ||
16617 test ! -s conftest.err
16618 } && test -s conftest$ac_exeext &&
16619 $as_test_x conftest$ac_exeext; then
16621 lt_aix_libpath_sed='
16622 /Import File Strings/,/^$/ {
16628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16629 # Check for a 64-bit object if we didn't find anything.
16630 if test -z "$aix_libpath"; then
16631 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16634 echo "$as_me: failed program was:" >&5
16635 sed 's/^/| /' conftest.$ac_ext >&5
16640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16641 conftest$ac_exeext conftest.$ac_ext
16642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16644 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16645 # Warning - without using the other run time loading flags,
16646 # -berok will link without error, but may produce a broken library.
16647 no_undefined_flag_GCJ=' ${wl}-bernotok'
16648 allow_undefined_flag_GCJ=' ${wl}-berok'
16649 # Exported symbols can be pulled into shared objects from archives
16650 whole_archive_flag_spec_GCJ='$convenience'
16651 archive_cmds_need_lc_GCJ=yes
16652 # This is similar to how AIX traditionally builds its shared libraries.
16653 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'
16659 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)'
16660 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16661 hardcode_minus_L_GCJ=yes
16662 # see comment about different semantics on the GNU ld section
16667 export_dynamic_flag_spec_GCJ=-rdynamic
16670 cygwin* | mingw* | pw32*)
16671 # When not using gcc, we currently assume that we are using
16672 # Microsoft Visual C++.
16673 # hardcode_libdir_flag_spec is actually meaningless, as there is
16674 # no search path for DLLs.
16675 hardcode_libdir_flag_spec_GCJ=' '
16676 allow_undefined_flag_GCJ=unsupported
16677 # Tell ltmain to make .lib files, not .a files.
16679 # Tell ltmain to make .dll files, not .so files.
16681 # FIXME: Setting linknames here is a bad hack.
16682 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16683 # The linker will automatically build a .lib file if we build a DLL.
16684 old_archive_From_new_cmds_GCJ='true'
16685 # FIXME: Should let the user specify the lib program.
16686 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16687 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16688 enable_shared_with_static_runtimes_GCJ=yes
16691 darwin* | rhapsody*)
16693 rhapsody* | darwin1.[012])
16694 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16697 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16698 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16700 case ${MACOSX_DEPLOYMENT_TARGET} in
16702 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16705 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16711 archive_cmds_need_lc_GCJ=no
16712 hardcode_direct_GCJ=no
16713 hardcode_automatic_GCJ=yes
16714 hardcode_shlibpath_var_GCJ=unsupported
16715 whole_archive_flag_spec_GCJ=''
16716 link_all_deplibs_GCJ=yes
16717 if test "$GCC" = yes ; then
16718 output_verbose_link_cmd='echo'
16719 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16720 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16721 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16722 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}'
16723 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}'
16725 case $cc_basename in
16727 output_verbose_link_cmd='echo'
16728 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16729 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16730 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16731 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16732 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}'
16742 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16743 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16744 hardcode_shlibpath_var_GCJ=no
16751 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16752 # support. Future versions do this automatically, but an explicit c++rt0.o
16753 # does not break anything, and helps significantly (at the cost of a little
16756 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16757 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16758 hardcode_direct_GCJ=yes
16759 hardcode_shlibpath_var_GCJ=no
16762 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16764 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16765 hardcode_direct_GCJ=yes
16766 hardcode_minus_L_GCJ=yes
16767 hardcode_shlibpath_var_GCJ=no
16770 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16771 freebsd* | dragonfly*)
16772 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16773 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16774 hardcode_direct_GCJ=yes
16775 hardcode_shlibpath_var_GCJ=no
16779 if test "$GCC" = yes; then
16780 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'
16782 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'
16784 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16785 hardcode_libdir_separator_GCJ=:
16786 hardcode_direct_GCJ=yes
16788 # hardcode_minus_L: Not really in the search PATH,
16789 # but as the default location of the library.
16790 hardcode_minus_L_GCJ=yes
16791 export_dynamic_flag_spec_GCJ='${wl}-E'
16795 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16796 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16798 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16800 if test "$with_gnu_ld" = no; then
16801 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16802 hardcode_libdir_separator_GCJ=:
16804 hardcode_direct_GCJ=yes
16805 export_dynamic_flag_spec_GCJ='${wl}-E'
16807 # hardcode_minus_L: Not really in the search PATH,
16808 # but as the default location of the library.
16809 hardcode_minus_L_GCJ=yes
16814 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16817 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16820 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16823 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16829 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16832 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16835 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16839 if test "$with_gnu_ld" = no; then
16840 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16841 hardcode_libdir_separator_GCJ=:
16845 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16846 hardcode_direct_GCJ=no
16847 hardcode_shlibpath_var_GCJ=no
16850 hardcode_direct_GCJ=yes
16851 export_dynamic_flag_spec_GCJ='${wl}-E'
16853 # hardcode_minus_L: Not really in the search PATH,
16854 # but as the default location of the library.
16855 hardcode_minus_L_GCJ=yes
16861 irix5* | irix6* | nonstopux*)
16862 if test "$GCC" = yes; then
16863 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'
16865 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'
16866 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16868 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16869 hardcode_libdir_separator_GCJ=:
16870 link_all_deplibs_GCJ=yes
16874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16875 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16877 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16879 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16880 hardcode_direct_GCJ=yes
16881 hardcode_shlibpath_var_GCJ=no
16885 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16886 hardcode_direct_GCJ=yes
16887 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16888 hardcode_libdir_separator_GCJ=:
16889 hardcode_shlibpath_var_GCJ=no
16893 if test -f /usr/libexec/ld.so; then
16894 hardcode_direct_GCJ=yes
16895 hardcode_shlibpath_var_GCJ=no
16896 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16897 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16898 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16899 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16900 export_dynamic_flag_spec_GCJ='${wl}-E'
16903 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16904 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16905 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16908 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16909 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16919 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16920 hardcode_minus_L_GCJ=yes
16921 allow_undefined_flag_GCJ=unsupported
16922 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'
16923 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16927 if test "$GCC" = yes; then
16928 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16929 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'
16931 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16932 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'
16934 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16935 hardcode_libdir_separator_GCJ=:
16938 osf4* | osf5*) # as osf3* with the addition of -msym flag
16939 if test "$GCC" = yes; then
16940 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16941 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'
16942 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16944 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16945 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'
16946 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~
16947 $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'
16949 # Both c and cxx compiler support -rpath directly
16950 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16952 hardcode_libdir_separator_GCJ=:
16956 no_undefined_flag_GCJ=' -z text'
16957 if test "$GCC" = yes; then
16959 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16960 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16961 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16964 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16965 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16966 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16968 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16969 hardcode_shlibpath_var_GCJ=no
16971 solaris2.[0-5] | solaris2.[0-5].*) ;;
16973 # The compiler driver will combine and reorder linker options,
16974 # but understands `-z linker_flag'. GCC discards it without `$wl',
16975 # but is careful enough not to reorder.
16976 # Supported since Solaris 2.6 (maybe 2.5.1?)
16977 if test "$GCC" = yes; then
16978 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16980 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
16984 link_all_deplibs_GCJ=yes
16988 if test "x$host_vendor" = xsequent; then
16989 # Use $CC to link under sequent, because it throws in some extra .o
16990 # files that make .init and .fini sections work.
16991 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16993 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16995 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16996 hardcode_direct_GCJ=yes
16997 hardcode_minus_L_GCJ=yes
16998 hardcode_shlibpath_var_GCJ=no
17002 case $host_vendor in
17004 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17005 hardcode_direct_GCJ=yes # is this really true???
17008 ## LD is ld it makes a PLAMLIB
17009 ## CC just makes a GrossModule.
17010 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17011 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17012 hardcode_direct_GCJ=no
17015 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17016 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17019 runpath_var='LD_RUN_PATH'
17020 hardcode_shlibpath_var_GCJ=no
17024 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17025 hardcode_shlibpath_var_GCJ=no
17026 export_dynamic_flag_spec_GCJ='-Bexport'
17030 if test -d /usr/nec; then
17031 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17032 hardcode_shlibpath_var_GCJ=no
17033 runpath_var=LD_RUN_PATH
17034 hardcode_runpath_var=yes
17039 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17040 no_undefined_flag_GCJ='${wl}-z,text'
17041 archive_cmds_need_lc_GCJ=no
17042 hardcode_shlibpath_var_GCJ=no
17043 runpath_var='LD_RUN_PATH'
17045 if test "$GCC" = yes; then
17046 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17047 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17049 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17050 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17054 sysv5* | sco3.2v5* | sco5v6*)
17055 # Note: We can NOT use -z defs as we might desire, because we do not
17056 # link with -lc, and that would cause any symbols used from libc to
17057 # always be unresolved, which means just about no library would
17058 # ever link correctly. If we're not using GNU ld we use -z text
17059 # though, which does catch some bad symbols but isn't as heavy-handed
17061 no_undefined_flag_GCJ='${wl}-z,text'
17062 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17063 archive_cmds_need_lc_GCJ=no
17064 hardcode_shlibpath_var_GCJ=no
17065 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17066 hardcode_libdir_separator_GCJ=':'
17067 link_all_deplibs_GCJ=yes
17068 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17069 runpath_var='LD_RUN_PATH'
17071 if test "$GCC" = yes; then
17072 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17073 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17075 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17076 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17081 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17082 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17083 hardcode_shlibpath_var_GCJ=no
17092 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17093 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17094 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17097 # Do we need to explicitly link libc?
17099 case "x$archive_cmds_need_lc_GCJ" in
17101 # Assume -lc should be added
17102 archive_cmds_need_lc_GCJ=yes
17104 if test "$enable_shared" = yes && test "$GCC" = yes; then
17105 case $archive_cmds_GCJ in
17107 # FIXME: we may have to deal with multi-command sequences.
17110 # Test whether the compiler implicitly links with -lc since on some
17111 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17112 # to ld, don't add -lc before -lgcc.
17113 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17114 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17119 (eval $ac_compile) 2>&5
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); } 2>conftest.err; then
17125 libobjs=conftest.$ac_objext
17127 wl=$lt_prog_compiler_wl_GCJ
17128 pic_flag=$lt_prog_compiler_pic_GCJ
17134 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17135 allow_undefined_flag_GCJ=
17136 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17137 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }
17142 archive_cmds_need_lc_GCJ=no
17144 archive_cmds_need_lc_GCJ=yes
17146 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17148 cat conftest.err 1>&5
17151 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17152 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17159 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17160 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17161 library_names_spec=
17162 libname_spec='lib$name'
17166 postuninstall_cmds=
17170 shlibpath_overrides_runpath=unknown
17172 dynamic_linker="$host_os ld.so"
17173 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17175 need_lib_prefix=unknown
17176 hardcode_into_libs=no
17178 # when you set need_version to no, make sure it does not cause -set_version
17179 # flags to be left without arguments
17180 need_version=unknown
17185 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17186 shlibpath_var=LIBPATH
17188 # AIX 3 has no versioning support, so we append a major version to the name.
17189 soname_spec='${libname}${release}${shared_ext}$major'
17196 hardcode_into_libs=yes
17197 if test "$host_cpu" = ia64; then
17198 # AIX 5 supports IA64
17199 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17200 shlibpath_var=LD_LIBRARY_PATH
17202 # With GCC up to 2.95.x, collect2 would create an import file
17203 # for dependence libraries. The import file would start with
17204 # the line `#! .'. This would cause the generated library to
17205 # depend on `.', always an invalid library. This was fixed in
17206 # development snapshots of GCC prior to 3.0.
17208 aix4 | aix4.[01] | aix4.[01].*)
17209 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17211 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17214 can_build_shared=no
17218 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17219 # soname into executable. Probably we can add versioning support to
17220 # collect2, so additional links can be useful in future.
17221 if test "$aix_use_runtimelinking" = yes; then
17222 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17223 # instead of lib<name>.a to let people know that these are not
17224 # typical AIX shared libraries.
17225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17227 # We preserve .a as extension for shared libraries through AIX4.2
17228 # and later when we are not doing run time linking.
17229 library_names_spec='${libname}${release}.a $libname.a'
17230 soname_spec='${libname}${release}${shared_ext}$major'
17232 shlibpath_var=LIBPATH
17237 library_names_spec='$libname.ixlibrary $libname.a'
17238 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17239 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'
17243 library_names_spec='${libname}${shared_ext}'
17244 dynamic_linker="$host_os ld.so"
17245 shlibpath_var=LIBRARY_PATH
17251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17252 soname_spec='${libname}${release}${shared_ext}$major'
17253 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17254 shlibpath_var=LD_LIBRARY_PATH
17255 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17256 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17257 # the default ld.so.conf also contains /usr/contrib/lib and
17258 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17259 # libtool to hard-code these into programs
17262 cygwin* | mingw* | pw32*)
17263 version_type=windows
17268 case $GCC,$host_os in
17269 yes,cygwin* | yes,mingw* | yes,pw32*)
17270 library_names_spec='$libname.dll.a'
17271 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17272 postinstall_cmds='base_file=`basename \${file}`~
17273 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17274 dldir=$destdir/`dirname \$dlpath`~
17275 test -d \$dldir || mkdir -p \$dldir~
17276 $install_prog $dir/$dlname \$dldir/$dlname~
17277 chmod a+x \$dldir/$dlname'
17278 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17279 dlpath=$dir/\$dldll~
17281 shlibpath_overrides_runpath=yes
17285 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17286 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17287 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17290 # MinGW DLLs use traditional 'lib' prefix
17291 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17292 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17293 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17294 # It is most probably a Windows format PATH printed by
17295 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17296 # path with ; separators, and with drive letters. We can handle the
17297 # drive letters (cygwin fileutils understands them), so leave them,
17298 # especially as we might pass files found there to a mingw objdump,
17299 # which wouldn't understand a cygwinified path. Ahh.
17300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17302 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17306 # pw32 DLLs use 'pw' prefix rather than 'lib'
17307 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17313 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17316 dynamic_linker='Win32 ld.exe'
17317 # FIXME: first we should search . and the directory the executable is in
17321 darwin* | rhapsody*)
17322 dynamic_linker="$host_os dyld"
17323 version_type=darwin
17326 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17327 soname_spec='${libname}${release}${major}$shared_ext'
17328 shlibpath_overrides_runpath=yes
17329 shlibpath_var=DYLD_LIBRARY_PATH
17330 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17332 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17340 soname_spec='${libname}${release}${shared_ext}$major'
17341 shlibpath_var=LD_LIBRARY_PATH
17348 freebsd* | dragonfly*)
17349 # DragonFly does not have aout. When/if they implement a new
17350 # versioning mechanism, adjust this.
17351 if test -x /usr/bin/objformat; then
17352 objformat=`/usr/bin/objformat`
17355 freebsd[123]*) objformat=aout ;;
17356 *) objformat=elf ;;
17359 version_type=freebsd-$objformat
17360 case $version_type in
17362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17367 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17371 shlibpath_var=LD_LIBRARY_PATH
17374 shlibpath_overrides_runpath=yes
17376 freebsd3.[01]* | freebsdelf3.[01]*)
17377 shlibpath_overrides_runpath=yes
17378 hardcode_into_libs=yes
17380 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17381 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17382 shlibpath_overrides_runpath=no
17383 hardcode_into_libs=yes
17385 *) # from 4.6 on, and DragonFly
17386 shlibpath_overrides_runpath=yes
17387 hardcode_into_libs=yes
17396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17397 soname_spec='${libname}${release}${shared_ext}$major'
17398 shlibpath_var=LD_LIBRARY_PATH
17399 hardcode_into_libs=yes
17402 hpux9* | hpux10* | hpux11*)
17403 # Give a soname corresponding to the major version so that dld.sl refuses to
17404 # link against other versions.
17411 hardcode_into_libs=yes
17412 dynamic_linker="$host_os dld.so"
17413 shlibpath_var=LD_LIBRARY_PATH
17414 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17416 soname_spec='${libname}${release}${shared_ext}$major'
17417 if test "X$HPUX_IA64_MODE" = X32; then
17418 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17420 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17422 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17426 hardcode_into_libs=yes
17427 dynamic_linker="$host_os dld.sl"
17428 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17429 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17431 soname_spec='${libname}${release}${shared_ext}$major'
17432 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17433 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17437 dynamic_linker="$host_os dld.sl"
17438 shlibpath_var=SHLIB_PATH
17439 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441 soname_spec='${libname}${release}${shared_ext}$major'
17444 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17445 postinstall_cmds='chmod 555 $lib'
17452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17453 soname_spec='${libname}${release}${shared_ext}$major'
17454 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17455 shlibpath_var=LD_LIBRARY_PATH
17456 shlibpath_overrides_runpath=no
17457 hardcode_into_libs=yes
17460 irix5* | irix6* | nonstopux*)
17462 nonstopux*) version_type=nonstopux ;;
17464 if test "$lt_cv_prog_gnu_ld" = yes; then
17472 soname_spec='${libname}${release}${shared_ext}$major'
17473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17475 irix5* | nonstopux*)
17476 libsuff= shlibsuff=
17479 case $LD in # libtool.m4 will add one of these switches to LD
17480 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17481 libsuff= shlibsuff= libmagic=32-bit;;
17482 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17483 libsuff=32 shlibsuff=N32 libmagic=N32;;
17484 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17485 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17486 *) libsuff= shlibsuff= libmagic=never-match;;
17490 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17491 shlibpath_overrides_runpath=no
17492 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17493 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17494 hardcode_into_libs=yes
17497 # No shared lib support for Linux oldld, aout, or coff.
17498 linux*oldld* | linux*aout* | linux*coff*)
17502 # This must be Linux ELF.
17503 linux* | k*bsd*-gnu)
17507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17508 soname_spec='${libname}${release}${shared_ext}$major'
17509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17510 shlibpath_var=LD_LIBRARY_PATH
17511 shlibpath_overrides_runpath=no
17512 # This implies no fast_install, which is unacceptable.
17513 # Some rework will be needed to allow for fast_install
17514 # before this can be enabled.
17515 hardcode_into_libs=yes
17517 # Append ld.so.conf contents to the search path
17518 if test -f /etc/ld.so.conf; then
17519 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17520 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17523 # We used to test for /lib/ld.so.1 and disable shared libraries on
17524 # powerpc, because MkLinux only supported shared libraries with the
17525 # GNU dynamic linker. Since this was broken with cross compilers,
17526 # most powerpc-linux boxes support dynamic linking these days and
17527 # people can always --disable-shared, the test was removed, and we
17528 # assume the GNU/Linux dynamic linker is in use.
17529 dynamic_linker='GNU/Linux ld.so'
17536 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17539 dynamic_linker='NetBSD (a.out) ld.so'
17541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17542 soname_spec='${libname}${release}${shared_ext}$major'
17543 dynamic_linker='NetBSD ld.elf_so'
17545 shlibpath_var=LD_LIBRARY_PATH
17546 shlibpath_overrides_runpath=yes
17547 hardcode_into_libs=yes
17552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17553 shlibpath_var=LD_LIBRARY_PATH
17554 shlibpath_overrides_runpath=yes
17561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17562 soname_spec='${libname}${release}${shared_ext}$major'
17563 shlibpath_var=LD_LIBRARY_PATH
17564 shlibpath_overrides_runpath=yes
17569 sys_lib_dlsearch_path_spec="/usr/lib"
17571 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17573 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17574 *) need_version=no ;;
17576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17578 shlibpath_var=LD_LIBRARY_PATH
17579 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17581 openbsd2.[89] | openbsd2.[89].*)
17582 shlibpath_overrides_runpath=no
17585 shlibpath_overrides_runpath=yes
17589 shlibpath_overrides_runpath=yes
17594 libname_spec='$name'
17597 library_names_spec='$libname${shared_ext} $libname.a'
17598 dynamic_linker='OS/2 ld.exe'
17599 shlibpath_var=LIBPATH
17602 osf3* | osf4* | osf5*)
17606 soname_spec='${libname}${release}${shared_ext}$major'
17607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17608 shlibpath_var=LD_LIBRARY_PATH
17609 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17610 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17622 soname_spec='${libname}${release}${shared_ext}$major'
17623 shlibpath_var=LD_LIBRARY_PATH
17624 shlibpath_overrides_runpath=yes
17625 hardcode_into_libs=yes
17626 # ldd complains unless libraries are executable
17627 postinstall_cmds='chmod +x $lib'
17632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17633 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17634 shlibpath_var=LD_LIBRARY_PATH
17635 shlibpath_overrides_runpath=yes
17636 if test "$with_gnu_ld" = yes; then
17644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17645 soname_spec='${libname}${release}${shared_ext}$major'
17646 shlibpath_var=LD_LIBRARY_PATH
17647 case $host_vendor in
17649 shlibpath_overrides_runpath=no
17651 export_dynamic_flag_spec='${wl}-Blargedynsym'
17652 runpath_var=LD_RUN_PATH
17660 shlibpath_overrides_runpath=no
17661 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17667 if test -d /usr/nec ;then
17669 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17670 soname_spec='$libname${shared_ext}.$major'
17671 shlibpath_var=LD_LIBRARY_PATH
17675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17676 version_type=freebsd-elf
17679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17680 soname_spec='${libname}${release}${shared_ext}$major'
17681 shlibpath_var=LD_LIBRARY_PATH
17682 hardcode_into_libs=yes
17683 if test "$with_gnu_ld" = yes; then
17684 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17685 shlibpath_overrides_runpath=no
17687 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17688 shlibpath_overrides_runpath=yes
17691 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17695 sys_lib_dlsearch_path_spec='/usr/lib'
17700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17701 soname_spec='${libname}${release}${shared_ext}$major'
17702 shlibpath_var=LD_LIBRARY_PATH
17709 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17710 echo "${ECHO_T}$dynamic_linker" >&6; }
17711 test "$dynamic_linker" = no && can_build_shared=no
17713 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17714 if test "$GCC" = yes; then
17715 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17718 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17719 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17720 hardcode_action_GCJ=
17721 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17722 test -n "$runpath_var_GCJ" || \
17723 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17725 # We can hardcode non-existant directories.
17726 if test "$hardcode_direct_GCJ" != no &&
17727 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17728 # have to relink, otherwise we might link with an installed library
17729 # when we should be linking with a yet-to-be-installed one
17730 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17731 test "$hardcode_minus_L_GCJ" != no; then
17732 # Linking always hardcodes the temporary library directory.
17733 hardcode_action_GCJ=relink
17735 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17736 hardcode_action_GCJ=immediate
17739 # We cannot hardcode anything, or else we can only hardcode existing
17741 hardcode_action_GCJ=unsupported
17743 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17744 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17746 if test "$hardcode_action_GCJ" = relink; then
17747 # Fast installation is not supported
17748 enable_fast_install=no
17749 elif test "$shlibpath_overrides_runpath" = yes ||
17750 test "$enable_shared" = no; then
17751 # Fast installation is not necessary
17752 enable_fast_install=needless
17756 # The else clause should only fire when bootstrapping the
17757 # libtool distribution, otherwise you forgot to ship ltmain.sh
17758 # with your package, and you will get complaints that there are
17759 # no rules to generate ltmain.sh.
17760 if test -f "$ltmain"; then
17761 # See if we are running on zsh, and set the options which allow our commands through
17762 # without removal of \ escapes.
17763 if test -n "${ZSH_VERSION+set}" ; then
17764 setopt NO_GLOB_SUBST
17766 # Now quote all the things that may contain metacharacters while being
17767 # careful not to overquote the AC_SUBSTed values. We take copies of the
17768 # variables and quote the copies for generation of the libtool script.
17769 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17771 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17772 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17773 deplibs_check_method reload_flag reload_cmds need_locks \
17774 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17775 lt_cv_sys_global_symbol_to_c_name_address \
17776 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17777 old_postinstall_cmds old_postuninstall_cmds \
17781 lt_prog_compiler_wl_GCJ \
17782 lt_prog_compiler_pic_GCJ \
17783 lt_prog_compiler_static_GCJ \
17784 lt_prog_compiler_no_builtin_flag_GCJ \
17785 export_dynamic_flag_spec_GCJ \
17786 thread_safe_flag_spec_GCJ \
17787 whole_archive_flag_spec_GCJ \
17788 enable_shared_with_static_runtimes_GCJ \
17789 old_archive_cmds_GCJ \
17790 old_archive_from_new_cmds_GCJ \
17791 predep_objects_GCJ \
17792 postdep_objects_GCJ \
17795 compiler_lib_search_path_GCJ \
17797 archive_expsym_cmds_GCJ \
17798 postinstall_cmds_GCJ \
17799 postuninstall_cmds_GCJ \
17800 old_archive_from_expsyms_cmds_GCJ \
17801 allow_undefined_flag_GCJ \
17802 no_undefined_flag_GCJ \
17803 export_symbols_cmds_GCJ \
17804 hardcode_libdir_flag_spec_GCJ \
17805 hardcode_libdir_flag_spec_ld_GCJ \
17806 hardcode_libdir_separator_GCJ \
17807 hardcode_automatic_GCJ \
17809 module_expsym_cmds_GCJ \
17810 lt_cv_prog_compiler_c_o_GCJ \
17811 fix_srcfile_path_GCJ \
17812 exclude_expsyms_GCJ \
17813 include_expsyms_GCJ; do
17816 old_archive_cmds_GCJ | \
17817 old_archive_from_new_cmds_GCJ | \
17818 archive_cmds_GCJ | \
17819 archive_expsym_cmds_GCJ | \
17820 module_cmds_GCJ | \
17821 module_expsym_cmds_GCJ | \
17822 old_archive_from_expsyms_cmds_GCJ | \
17823 export_symbols_cmds_GCJ | \
17824 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17825 postinstall_cmds | postuninstall_cmds | \
17826 old_postinstall_cmds | old_postuninstall_cmds | \
17827 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17828 # Double-quote double-evaled strings.
17829 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17832 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17838 *'\$0 --fallback-echo"')
17839 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17845 cat <<__EOF__ >> "$cfgfile"
17846 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17848 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17850 # Shell to use when invoking shell scripts.
17853 # Whether or not to build shared libraries.
17854 build_libtool_libs=$enable_shared
17856 # Whether or not to build static libraries.
17857 build_old_libs=$enable_static
17859 # Whether or not to add -lc for building shared libraries.
17860 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17862 # Whether or not to disallow shared libs when runtime libs are static
17863 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17865 # Whether or not to optimize for fast installation.
17866 fast_install=$enable_fast_install
17869 host_alias=$host_alias
17873 # The build system.
17874 build_alias=$build_alias
17878 # An echo program that does not interpret backslashes.
17883 AR_FLAGS=$lt_AR_FLAGS
17888 # LTCC compiler flags.
17889 LTCFLAGS=$lt_LTCFLAGS
17891 # A language-specific compiler.
17892 CC=$lt_compiler_GCJ
17894 # Is the compiler the GNU C compiler?
17900 # The linker used to build libraries.
17903 # Whether we need hard or soft links.
17906 # A BSD-compatible nm program.
17909 # A symbol stripping program
17912 # Used to examine libraries when file_magic_cmd begins "file"
17913 MAGIC_CMD=$MAGIC_CMD
17915 # Used on cygwin: DLL creation program.
17918 # Used on cygwin: object dumper.
17921 # Used on cygwin: assembler.
17924 # The name of the directory that contains temporary libtool files.
17927 # How to create reloadable object files.
17928 reload_flag=$lt_reload_flag
17929 reload_cmds=$lt_reload_cmds
17931 # How to pass a linker flag through the compiler.
17932 wl=$lt_lt_prog_compiler_wl_GCJ
17934 # Object file suffix (normally "o").
17935 objext="$ac_objext"
17937 # Old archive suffix (normally "a").
17940 # Shared library suffix (normally ".so").
17941 shrext_cmds='$shrext_cmds'
17943 # Executable file suffix (normally "").
17946 # Additional compiler flags for building library objects.
17947 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17950 # What is the maximum length of a command?
17951 max_cmd_len=$lt_cv_sys_max_cmd_len
17953 # Does compiler simultaneously support -c and -o options?
17954 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17956 # Must we lock files when doing compilation?
17957 need_locks=$lt_need_locks
17959 # Do we need the lib prefix for modules?
17960 need_lib_prefix=$need_lib_prefix
17962 # Do we need a version for libraries?
17963 need_version=$need_version
17965 # Whether dlopen is supported.
17966 dlopen_support=$enable_dlopen
17968 # Whether dlopen of programs is supported.
17969 dlopen_self=$enable_dlopen_self
17971 # Whether dlopen of statically linked programs is supported.
17972 dlopen_self_static=$enable_dlopen_self_static
17974 # Compiler flag to prevent dynamic linking.
17975 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17977 # Compiler flag to turn off builtin functions.
17978 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17980 # Compiler flag to allow reflexive dlopens.
17981 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17983 # Compiler flag to generate shared objects directly from archives.
17984 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17986 # Compiler flag to generate thread-safe objects.
17987 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17989 # Library versioning type.
17990 version_type=$version_type
17992 # Format of library name prefix.
17993 libname_spec=$lt_libname_spec
17995 # List of archive names. First name is the real one, the rest are links.
17996 # The last name is the one that the linker finds with -lNAME.
17997 library_names_spec=$lt_library_names_spec
17999 # The coded name of the library, if different from the real name.
18000 soname_spec=$lt_soname_spec
18002 # Commands used to build and install an old-style archive.
18004 old_archive_cmds=$lt_old_archive_cmds_GCJ
18005 old_postinstall_cmds=$lt_old_postinstall_cmds
18006 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18008 # Create an old-style archive from a shared archive.
18009 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18011 # Create a temporary old-style archive to link instead of a shared archive.
18012 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18014 # Commands used to build and install a shared archive.
18015 archive_cmds=$lt_archive_cmds_GCJ
18016 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18017 postinstall_cmds=$lt_postinstall_cmds
18018 postuninstall_cmds=$lt_postuninstall_cmds
18020 # Commands used to build a loadable module (assumed same as above if empty)
18021 module_cmds=$lt_module_cmds_GCJ
18022 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18024 # Commands to strip libraries.
18025 old_striplib=$lt_old_striplib
18026 striplib=$lt_striplib
18028 # Dependencies to place before the objects being linked to create a
18030 predep_objects=$lt_predep_objects_GCJ
18032 # Dependencies to place after the objects being linked to create a
18034 postdep_objects=$lt_postdep_objects_GCJ
18036 # Dependencies to place before the objects being linked to create a
18038 predeps=$lt_predeps_GCJ
18040 # Dependencies to place after the objects being linked to create a
18042 postdeps=$lt_postdeps_GCJ
18044 # The library search path used internally by the compiler when linking
18045 # a shared library.
18046 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18048 # Method to check whether dependent libraries are shared objects.
18049 deplibs_check_method=$lt_deplibs_check_method
18051 # Command to use when deplibs_check_method == file_magic.
18052 file_magic_cmd=$lt_file_magic_cmd
18054 # Flag that allows shared libraries with undefined symbols to be built.
18055 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18057 # Flag that forces no undefined symbols.
18058 no_undefined_flag=$lt_no_undefined_flag_GCJ
18060 # Commands used to finish a libtool library installation in a directory.
18061 finish_cmds=$lt_finish_cmds
18063 # Same as above, but a single script fragment to be evaled but not shown.
18064 finish_eval=$lt_finish_eval
18066 # Take the output of nm and produce a listing of raw symbols and C names.
18067 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18069 # Transform the output of nm in a proper C declaration
18070 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18072 # Transform the output of nm in a C name address pair
18073 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18075 # This is the shared library runtime path variable.
18076 runpath_var=$runpath_var
18078 # This is the shared library path variable.
18079 shlibpath_var=$shlibpath_var
18081 # Is shlibpath searched before the hard-coded library search path?
18082 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18084 # How to hardcode a shared library path into an executable.
18085 hardcode_action=$hardcode_action_GCJ
18087 # Whether we should hardcode library paths into libraries.
18088 hardcode_into_libs=$hardcode_into_libs
18090 # Flag to hardcode \$libdir into a binary during linking.
18091 # This must work even if \$libdir does not exist.
18092 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18094 # If ld is used when linking, flag to hardcode \$libdir into
18095 # a binary during linking. This must work even if \$libdir does
18097 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18099 # Whether we need a single -rpath flag with a separated argument.
18100 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18102 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18103 # resulting binary.
18104 hardcode_direct=$hardcode_direct_GCJ
18106 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18107 # resulting binary.
18108 hardcode_minus_L=$hardcode_minus_L_GCJ
18110 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18111 # the resulting binary.
18112 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18114 # Set to yes if building a shared library automatically hardcodes DIR into the library
18115 # and all subsequent libraries and executables linked against it.
18116 hardcode_automatic=$hardcode_automatic_GCJ
18118 # Variables whose values should be saved in libtool wrapper scripts and
18119 # restored at relink time.
18120 variables_saved_for_relink="$variables_saved_for_relink"
18122 # Whether libtool must link a program against all its dependency libraries.
18123 link_all_deplibs=$link_all_deplibs_GCJ
18125 # Compile-time system search path for libraries
18126 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18128 # Run-time system search path for libraries
18129 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18131 # Fix the shell variable \$srcfile for the compiler.
18132 fix_srcfile_path=$lt_fix_srcfile_path
18134 # Set to yes if exported symbols are required.
18135 always_export_symbols=$always_export_symbols_GCJ
18137 # The commands to list exported symbols.
18138 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18140 # The commands to extract the exported symbol list from a shared archive.
18141 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18143 # Symbols that should not be listed in the preloaded symbols.
18144 exclude_expsyms=$lt_exclude_expsyms_GCJ
18146 # Symbols that must always be exported.
18147 include_expsyms=$lt_include_expsyms_GCJ
18149 # ### END LIBTOOL TAG CONFIG: $tagname
18155 # If there is no Makefile yet, we rely on a make rule to execute
18156 # `config.status --recheck' to rerun these tests and create the
18157 # libtool script then.
18158 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18159 if test -f "$ltmain_in"; then
18160 test -f Makefile && make "$ltmain"
18166 ac_cpp='$CPP $CPPFLAGS'
18167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18181 # Source file extension for RC test sources.
18184 # Object file extension for compiled RC test sources.
18188 # Code to be used in simple compile tests
18189 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18191 # Code to be used in simple link tests
18192 lt_simple_link_test_code="$lt_simple_compile_test_code"
18194 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18196 # If no C compiler was specified, use CC.
18199 # If no C compiler flags were specified, use CFLAGS.
18200 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18202 # Allow CC to be a program name with arguments.
18206 # save warnings/boilerplate of simple test code
18207 ac_outfile=conftest.$ac_objext
18208 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18209 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18210 _lt_compiler_boilerplate=`cat conftest.err`
18213 ac_outfile=conftest.$ac_objext
18214 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18215 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18216 _lt_linker_boilerplate=`cat conftest.err`
18220 # Allow CC to be a program name with arguments.
18225 for cc_temp in $compiler""; do
18227 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18228 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18233 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18235 lt_cv_prog_compiler_c_o_RC=yes
18237 # The else clause should only fire when bootstrapping the
18238 # libtool distribution, otherwise you forgot to ship ltmain.sh
18239 # with your package, and you will get complaints that there are
18240 # no rules to generate ltmain.sh.
18241 if test -f "$ltmain"; then
18242 # See if we are running on zsh, and set the options which allow our commands through
18243 # without removal of \ escapes.
18244 if test -n "${ZSH_VERSION+set}" ; then
18245 setopt NO_GLOB_SUBST
18247 # Now quote all the things that may contain metacharacters while being
18248 # careful not to overquote the AC_SUBSTed values. We take copies of the
18249 # variables and quote the copies for generation of the libtool script.
18250 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18252 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18253 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18254 deplibs_check_method reload_flag reload_cmds need_locks \
18255 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18256 lt_cv_sys_global_symbol_to_c_name_address \
18257 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18258 old_postinstall_cmds old_postuninstall_cmds \
18262 lt_prog_compiler_wl_RC \
18263 lt_prog_compiler_pic_RC \
18264 lt_prog_compiler_static_RC \
18265 lt_prog_compiler_no_builtin_flag_RC \
18266 export_dynamic_flag_spec_RC \
18267 thread_safe_flag_spec_RC \
18268 whole_archive_flag_spec_RC \
18269 enable_shared_with_static_runtimes_RC \
18270 old_archive_cmds_RC \
18271 old_archive_from_new_cmds_RC \
18272 predep_objects_RC \
18273 postdep_objects_RC \
18276 compiler_lib_search_path_RC \
18278 archive_expsym_cmds_RC \
18279 postinstall_cmds_RC \
18280 postuninstall_cmds_RC \
18281 old_archive_from_expsyms_cmds_RC \
18282 allow_undefined_flag_RC \
18283 no_undefined_flag_RC \
18284 export_symbols_cmds_RC \
18285 hardcode_libdir_flag_spec_RC \
18286 hardcode_libdir_flag_spec_ld_RC \
18287 hardcode_libdir_separator_RC \
18288 hardcode_automatic_RC \
18290 module_expsym_cmds_RC \
18291 lt_cv_prog_compiler_c_o_RC \
18292 fix_srcfile_path_RC \
18293 exclude_expsyms_RC \
18294 include_expsyms_RC; do
18297 old_archive_cmds_RC | \
18298 old_archive_from_new_cmds_RC | \
18299 archive_cmds_RC | \
18300 archive_expsym_cmds_RC | \
18302 module_expsym_cmds_RC | \
18303 old_archive_from_expsyms_cmds_RC | \
18304 export_symbols_cmds_RC | \
18305 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18306 postinstall_cmds | postuninstall_cmds | \
18307 old_postinstall_cmds | old_postuninstall_cmds | \
18308 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18309 # Double-quote double-evaled strings.
18310 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18313 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18319 *'\$0 --fallback-echo"')
18320 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18326 cat <<__EOF__ >> "$cfgfile"
18327 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18329 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18331 # Shell to use when invoking shell scripts.
18334 # Whether or not to build shared libraries.
18335 build_libtool_libs=$enable_shared
18337 # Whether or not to build static libraries.
18338 build_old_libs=$enable_static
18340 # Whether or not to add -lc for building shared libraries.
18341 build_libtool_need_lc=$archive_cmds_need_lc_RC
18343 # Whether or not to disallow shared libs when runtime libs are static
18344 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18346 # Whether or not to optimize for fast installation.
18347 fast_install=$enable_fast_install
18350 host_alias=$host_alias
18354 # The build system.
18355 build_alias=$build_alias
18359 # An echo program that does not interpret backslashes.
18364 AR_FLAGS=$lt_AR_FLAGS
18369 # LTCC compiler flags.
18370 LTCFLAGS=$lt_LTCFLAGS
18372 # A language-specific compiler.
18375 # Is the compiler the GNU C compiler?
18381 # The linker used to build libraries.
18384 # Whether we need hard or soft links.
18387 # A BSD-compatible nm program.
18390 # A symbol stripping program
18393 # Used to examine libraries when file_magic_cmd begins "file"
18394 MAGIC_CMD=$MAGIC_CMD
18396 # Used on cygwin: DLL creation program.
18399 # Used on cygwin: object dumper.
18402 # Used on cygwin: assembler.
18405 # The name of the directory that contains temporary libtool files.
18408 # How to create reloadable object files.
18409 reload_flag=$lt_reload_flag
18410 reload_cmds=$lt_reload_cmds
18412 # How to pass a linker flag through the compiler.
18413 wl=$lt_lt_prog_compiler_wl_RC
18415 # Object file suffix (normally "o").
18416 objext="$ac_objext"
18418 # Old archive suffix (normally "a").
18421 # Shared library suffix (normally ".so").
18422 shrext_cmds='$shrext_cmds'
18424 # Executable file suffix (normally "").
18427 # Additional compiler flags for building library objects.
18428 pic_flag=$lt_lt_prog_compiler_pic_RC
18431 # What is the maximum length of a command?
18432 max_cmd_len=$lt_cv_sys_max_cmd_len
18434 # Does compiler simultaneously support -c and -o options?
18435 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18437 # Must we lock files when doing compilation?
18438 need_locks=$lt_need_locks
18440 # Do we need the lib prefix for modules?
18441 need_lib_prefix=$need_lib_prefix
18443 # Do we need a version for libraries?
18444 need_version=$need_version
18446 # Whether dlopen is supported.
18447 dlopen_support=$enable_dlopen
18449 # Whether dlopen of programs is supported.
18450 dlopen_self=$enable_dlopen_self
18452 # Whether dlopen of statically linked programs is supported.
18453 dlopen_self_static=$enable_dlopen_self_static
18455 # Compiler flag to prevent dynamic linking.
18456 link_static_flag=$lt_lt_prog_compiler_static_RC
18458 # Compiler flag to turn off builtin functions.
18459 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18461 # Compiler flag to allow reflexive dlopens.
18462 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18464 # Compiler flag to generate shared objects directly from archives.
18465 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18467 # Compiler flag to generate thread-safe objects.
18468 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18470 # Library versioning type.
18471 version_type=$version_type
18473 # Format of library name prefix.
18474 libname_spec=$lt_libname_spec
18476 # List of archive names. First name is the real one, the rest are links.
18477 # The last name is the one that the linker finds with -lNAME.
18478 library_names_spec=$lt_library_names_spec
18480 # The coded name of the library, if different from the real name.
18481 soname_spec=$lt_soname_spec
18483 # Commands used to build and install an old-style archive.
18485 old_archive_cmds=$lt_old_archive_cmds_RC
18486 old_postinstall_cmds=$lt_old_postinstall_cmds
18487 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18489 # Create an old-style archive from a shared archive.
18490 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18492 # Create a temporary old-style archive to link instead of a shared archive.
18493 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18495 # Commands used to build and install a shared archive.
18496 archive_cmds=$lt_archive_cmds_RC
18497 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18498 postinstall_cmds=$lt_postinstall_cmds
18499 postuninstall_cmds=$lt_postuninstall_cmds
18501 # Commands used to build a loadable module (assumed same as above if empty)
18502 module_cmds=$lt_module_cmds_RC
18503 module_expsym_cmds=$lt_module_expsym_cmds_RC
18505 # Commands to strip libraries.
18506 old_striplib=$lt_old_striplib
18507 striplib=$lt_striplib
18509 # Dependencies to place before the objects being linked to create a
18511 predep_objects=$lt_predep_objects_RC
18513 # Dependencies to place after the objects being linked to create a
18515 postdep_objects=$lt_postdep_objects_RC
18517 # Dependencies to place before the objects being linked to create a
18519 predeps=$lt_predeps_RC
18521 # Dependencies to place after the objects being linked to create a
18523 postdeps=$lt_postdeps_RC
18525 # The library search path used internally by the compiler when linking
18526 # a shared library.
18527 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18529 # Method to check whether dependent libraries are shared objects.
18530 deplibs_check_method=$lt_deplibs_check_method
18532 # Command to use when deplibs_check_method == file_magic.
18533 file_magic_cmd=$lt_file_magic_cmd
18535 # Flag that allows shared libraries with undefined symbols to be built.
18536 allow_undefined_flag=$lt_allow_undefined_flag_RC
18538 # Flag that forces no undefined symbols.
18539 no_undefined_flag=$lt_no_undefined_flag_RC
18541 # Commands used to finish a libtool library installation in a directory.
18542 finish_cmds=$lt_finish_cmds
18544 # Same as above, but a single script fragment to be evaled but not shown.
18545 finish_eval=$lt_finish_eval
18547 # Take the output of nm and produce a listing of raw symbols and C names.
18548 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18550 # Transform the output of nm in a proper C declaration
18551 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18553 # Transform the output of nm in a C name address pair
18554 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18556 # This is the shared library runtime path variable.
18557 runpath_var=$runpath_var
18559 # This is the shared library path variable.
18560 shlibpath_var=$shlibpath_var
18562 # Is shlibpath searched before the hard-coded library search path?
18563 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18565 # How to hardcode a shared library path into an executable.
18566 hardcode_action=$hardcode_action_RC
18568 # Whether we should hardcode library paths into libraries.
18569 hardcode_into_libs=$hardcode_into_libs
18571 # Flag to hardcode \$libdir into a binary during linking.
18572 # This must work even if \$libdir does not exist.
18573 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18575 # If ld is used when linking, flag to hardcode \$libdir into
18576 # a binary during linking. This must work even if \$libdir does
18578 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18580 # Whether we need a single -rpath flag with a separated argument.
18581 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18583 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18584 # resulting binary.
18585 hardcode_direct=$hardcode_direct_RC
18587 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18588 # resulting binary.
18589 hardcode_minus_L=$hardcode_minus_L_RC
18591 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18592 # the resulting binary.
18593 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18595 # Set to yes if building a shared library automatically hardcodes DIR into the library
18596 # and all subsequent libraries and executables linked against it.
18597 hardcode_automatic=$hardcode_automatic_RC
18599 # Variables whose values should be saved in libtool wrapper scripts and
18600 # restored at relink time.
18601 variables_saved_for_relink="$variables_saved_for_relink"
18603 # Whether libtool must link a program against all its dependency libraries.
18604 link_all_deplibs=$link_all_deplibs_RC
18606 # Compile-time system search path for libraries
18607 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18609 # Run-time system search path for libraries
18610 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18612 # Fix the shell variable \$srcfile for the compiler.
18613 fix_srcfile_path=$lt_fix_srcfile_path
18615 # Set to yes if exported symbols are required.
18616 always_export_symbols=$always_export_symbols_RC
18618 # The commands to list exported symbols.
18619 export_symbols_cmds=$lt_export_symbols_cmds_RC
18621 # The commands to extract the exported symbol list from a shared archive.
18622 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18624 # Symbols that should not be listed in the preloaded symbols.
18625 exclude_expsyms=$lt_exclude_expsyms_RC
18627 # Symbols that must always be exported.
18628 include_expsyms=$lt_include_expsyms_RC
18630 # ### END LIBTOOL TAG CONFIG: $tagname
18636 # If there is no Makefile yet, we rely on a make rule to execute
18637 # `config.status --recheck' to rerun these tests and create the
18638 # libtool script then.
18639 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18640 if test -f "$ltmain_in"; then
18641 test -f Makefile && make "$ltmain"
18647 ac_cpp='$CPP $CPPFLAGS'
18648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18657 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18658 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18659 { (exit 1); exit 1; }; }
18663 # Append the new tag name to the list of available tags.
18664 if test -n "$tagname" ; then
18665 available_tags="$available_tags $tagname"
18671 # Now substitute the updated list of available tags.
18672 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18673 mv "${ofile}T" "$ofile"
18677 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18678 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18679 { (exit 1); exit 1; }; }
18685 # This can be used to rebuild libtool when needed
18686 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18688 # Always use our own libtool.
18689 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18691 # Prevent multiple expansion
18713 am__api_version='1.10'
18715 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
18716 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
18719 echo timestamp > conftest.file
18720 # Do `set' in a subshell so we don't clobber the current shell's
18721 # arguments. Must try -L first in case configure is actually a
18722 # symlink; some systems play weird games with the mod time of symlinks
18723 # (eg FreeBSD returns the mod time of the symlink's containing
18726 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
18727 if test "$*" = "X"; then
18729 set X `ls -t $srcdir/configure conftest.file`
18731 rm -f conftest.file
18732 if test "$*" != "X $srcdir/configure conftest.file" \
18733 && test "$*" != "X conftest.file $srcdir/configure"; then
18735 # If neither matched, then we have a broken ls. This can happen
18736 # if, for instance, CONFIG_SHELL is bash and it inherits a
18737 # broken ls alias from the environment. This has actually
18738 # happened. Such a system could not be considered "sane".
18739 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
18740 alias in your environment" >&5
18741 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
18742 alias in your environment" >&2;}
18743 { (exit 1); exit 1; }; }
18746 test "$2" = conftest.file
18752 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
18753 Check your system clock" >&5
18754 echo "$as_me: error: newly created file is older than distributed files!
18755 Check your system clock" >&2;}
18756 { (exit 1); exit 1; }; }
18758 { echo "$as_me:$LINENO: result: yes" >&5
18759 echo "${ECHO_T}yes" >&6; }
18760 test "$program_prefix" != NONE &&
18761 program_transform_name="s&^&$program_prefix&;$program_transform_name"
18762 # Use a double $ so make ignores it.
18763 test "$program_suffix" != NONE &&
18764 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
18765 # Double any \ or $. echo might interpret backslashes.
18766 # By default was `s,x,x', remove it if useless.
18767 cat <<\_ACEOF >conftest.sed
18768 s/[\\$]/&&/g;s/;s,x,x,$//
18770 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
18773 # expand $ac_aux_dir to an absolute path
18774 am_aux_dir=`cd $ac_aux_dir && pwd`
18776 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
18777 # Use eval to expand $SHELL
18778 if eval "$MISSING --run true"; then
18779 am_missing_run="$MISSING --run "
18782 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
18783 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18786 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18787 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
18788 if test -z "$MKDIR_P"; then
18789 if test "${ac_cv_path_mkdir+set}" = set; then
18790 echo $ECHO_N "(cached) $ECHO_C" >&6
18792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18793 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18796 test -z "$as_dir" && as_dir=.
18797 for ac_prog in mkdir gmkdir; do
18798 for ac_exec_ext in '' $ac_executable_extensions; do
18799 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18800 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18801 'mkdir (GNU coreutils) '* | \
18802 'mkdir (coreutils) '* | \
18803 'mkdir (fileutils) '4.1*)
18804 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18814 if test "${ac_cv_path_mkdir+set}" = set; then
18815 MKDIR_P="$ac_cv_path_mkdir -p"
18817 # As a last resort, use the slow shell script. Don't cache a
18818 # value for MKDIR_P within a source directory, because that will
18819 # break other packages using the cache if that directory is
18820 # removed, or if the value is a relative name.
18821 test -d ./--version && rmdir ./--version
18822 MKDIR_P="$ac_install_sh -d"
18825 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18826 echo "${ECHO_T}$MKDIR_P" >&6; }
18830 [\\/$]* | ?:[\\/]*) ;;
18831 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
18834 for ac_prog in gawk mawk nawk awk
18836 # Extract the first word of "$ac_prog", so it can be a program name with args.
18837 set dummy $ac_prog; ac_word=$2
18838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18840 if test "${ac_cv_prog_AWK+set}" = set; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18843 if test -n "$AWK"; then
18844 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18847 for as_dir in $PATH
18850 test -z "$as_dir" && as_dir=.
18851 for ac_exec_ext in '' $ac_executable_extensions; do
18852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18853 ac_cv_prog_AWK="$ac_prog"
18854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18863 AWK=$ac_cv_prog_AWK
18864 if test -n "$AWK"; then
18865 { echo "$as_me:$LINENO: result: $AWK" >&5
18866 echo "${ECHO_T}$AWK" >&6; }
18868 { echo "$as_me:$LINENO: result: no" >&5
18869 echo "${ECHO_T}no" >&6; }
18873 test -n "$AWK" && break
18876 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18877 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
18878 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18879 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
18880 echo $ECHO_N "(cached) $ECHO_C" >&6
18882 cat >conftest.make <<\_ACEOF
18885 @echo '@@@%%%=$(MAKE)=@@@%%%'
18887 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18888 case `${MAKE-make} -f conftest.make 2>/dev/null` in
18889 *@@@%%%=?*=@@@%%%*)
18890 eval ac_cv_prog_make_${ac_make}_set=yes;;
18892 eval ac_cv_prog_make_${ac_make}_set=no;;
18894 rm -f conftest.make
18896 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18897 { echo "$as_me:$LINENO: result: yes" >&5
18898 echo "${ECHO_T}yes" >&6; }
18901 { echo "$as_me:$LINENO: result: no" >&5
18902 echo "${ECHO_T}no" >&6; }
18903 SET_MAKE="MAKE=${MAKE-make}"
18906 rm -rf .tst 2>/dev/null
18907 mkdir .tst 2>/dev/null
18908 if test -d .tst; then
18913 rmdir .tst 2>/dev/null
18915 DEPDIR="${am__leading_dot}deps"
18917 ac_config_commands="$ac_config_commands depfiles"
18920 am_make=${MAKE-make}
18921 cat > confinc << 'END'
18926 # If we don't find an include directive, just comment out the code.
18927 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
18928 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
18932 # First try GNU make style include.
18933 echo "include confinc" > confmf
18934 # We grep out `Entering directory' and `Leaving directory'
18935 # messages which can occur if `w' ends up in MAKEFLAGS.
18936 # In particular we don't look at `^make:' because GNU make might
18937 # be invoked under some other name (usually "gmake"), in which
18938 # case it prints its new name instead of `make'.
18939 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
18940 am__include=include
18944 # Now try BSD make style include.
18945 if test "$am__include" = "#"; then
18946 echo '.include "confinc"' > confmf
18947 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
18948 am__include=.include
18955 { echo "$as_me:$LINENO: result: $_am_result" >&5
18956 echo "${ECHO_T}$_am_result" >&6; }
18957 rm -f confinc confmf
18959 # Check whether --enable-dependency-tracking was given.
18960 if test "${enable_dependency_tracking+set}" = set; then
18961 enableval=$enable_dependency_tracking;
18964 if test "x$enable_dependency_tracking" != xno; then
18965 am_depcomp="$ac_aux_dir/depcomp"
18968 if test "x$enable_dependency_tracking" != xno; then
18977 if test "`cd $srcdir && pwd`" != "`pwd`"; then
18978 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
18979 # is not polluted with repeated "-I."
18980 am__isrc=' -I$(srcdir)'
18981 # test to see if srcdir already configured
18982 if test -f $srcdir/config.status; then
18983 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
18984 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
18985 { (exit 1); exit 1; }; }
18989 # test whether we have cygpath
18990 if test -z "$CYGPATH_W"; then
18991 if (cygpath --version) >/dev/null 2>/dev/null; then
18992 CYGPATH_W='cygpath -w'
18999 # Define the identity of the package.
19004 cat >>confdefs.h <<_ACEOF
19005 #define PACKAGE "$PACKAGE"
19009 cat >>confdefs.h <<_ACEOF
19010 #define VERSION "$VERSION"
19013 # Some tools Automake needs.
19015 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19018 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19021 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19024 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19027 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19029 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
19031 # Installed binaries are usually stripped using `strip' when the user
19032 # run `make install-strip'. However `strip' might not be the right
19033 # tool to use in cross-compilation environments, therefore Automake
19034 # will honor the `STRIP' environment variable to overrule this program.
19035 if test "$cross_compiling" != no; then
19036 if test -n "$ac_tool_prefix"; then
19037 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19038 set dummy ${ac_tool_prefix}strip; ac_word=$2
19039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19041 if test "${ac_cv_prog_STRIP+set}" = set; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19044 if test -n "$STRIP"; then
19045 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19048 for as_dir in $PATH
19051 test -z "$as_dir" && as_dir=.
19052 for ac_exec_ext in '' $ac_executable_extensions; do
19053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19054 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19064 STRIP=$ac_cv_prog_STRIP
19065 if test -n "$STRIP"; then
19066 { echo "$as_me:$LINENO: result: $STRIP" >&5
19067 echo "${ECHO_T}$STRIP" >&6; }
19069 { echo "$as_me:$LINENO: result: no" >&5
19070 echo "${ECHO_T}no" >&6; }
19075 if test -z "$ac_cv_prog_STRIP"; then
19077 # Extract the first word of "strip", so it can be a program name with args.
19078 set dummy strip; ac_word=$2
19079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19081 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19082 echo $ECHO_N "(cached) $ECHO_C" >&6
19084 if test -n "$ac_ct_STRIP"; then
19085 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19088 for as_dir in $PATH
19091 test -z "$as_dir" && as_dir=.
19092 for ac_exec_ext in '' $ac_executable_extensions; do
19093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19094 ac_cv_prog_ac_ct_STRIP="strip"
19095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19104 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19105 if test -n "$ac_ct_STRIP"; then
19106 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19107 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
19109 { echo "$as_me:$LINENO: result: no" >&5
19110 echo "${ECHO_T}no" >&6; }
19113 if test "x$ac_ct_STRIP" = x; then
19116 case $cross_compiling:$ac_tool_warned in
19118 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19119 whose name does not start with the host triplet. If you think this
19120 configuration is useful to you, please write to autoconf@gnu.org." >&5
19121 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19122 whose name does not start with the host triplet. If you think this
19123 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19124 ac_tool_warned=yes ;;
19129 STRIP="$ac_cv_prog_STRIP"
19133 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
19135 # We need awk for the "check" target. The system "awk" is bad on
19137 # Always define AMTAR for backward compatibility.
19139 AMTAR=${AMTAR-"${am_missing_run}tar"}
19141 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19146 depcc="$CC" am_compiler_list=
19148 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19149 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19150 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19151 echo $ECHO_N "(cached) $ECHO_C" >&6
19153 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19154 # We make a subdir and do the tests there. Otherwise we can end up
19155 # making bogus files that we don't know about and never remove. For
19156 # instance it was reported that on HP-UX the gcc test will end up
19157 # making a dummy file named `D' -- because `-MD' means `put the output
19160 # Copy depcomp to subdir because otherwise we won't find it if we're
19161 # using a relative directory.
19162 cp "$am_depcomp" conftest.dir
19164 # We will build objects and dependencies in a subdirectory because
19165 # it helps to detect inapplicable dependency modes. For instance
19166 # both Tru64's cc and ICC support -MD to output dependencies as a
19167 # side effect of compilation, but ICC will put the dependencies in
19168 # the current directory while Tru64 will put them in the object
19172 am_cv_CC_dependencies_compiler_type=none
19173 if test "$am_compiler_list" = ""; then
19174 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19176 for depmode in $am_compiler_list; do
19177 # Setup a source with many dependencies, because some compilers
19178 # like to wrap large dependency lists on column 80 (with \), and
19179 # we should not choose a depcomp mode which is confused by this.
19181 # We need to recreate these files for each test, as the compiler may
19182 # overwrite some of them when testing with obscure command lines.
19183 # This happens at least with the AIX C compiler.
19185 for i in 1 2 3 4 5 6; do
19186 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19187 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19188 # Solaris 8's {/usr,}/bin/sh.
19189 touch sub/conftst$i.h
19191 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19195 # after this tag, mechanisms are not by side-effect, so they'll
19196 # only be used when explicitly requested
19197 if test "x$enable_dependency_tracking" = xyes; then
19205 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19206 # mode. It turns out that the SunPro C++ compiler does not properly
19207 # handle `-M -o', and we need to detect this.
19208 if depmode=$depmode \
19209 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19210 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19211 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19212 >/dev/null 2>conftest.err &&
19213 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19214 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19215 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19216 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19217 # icc doesn't choke on unknown options, it will just issue warnings
19218 # or remarks (even with -Werror). So we grep stderr for any message
19219 # that says an option was ignored or not supported.
19220 # When given -MP, icc 7.0 and 7.1 complain thusly:
19221 # icc: Command line warning: ignoring option '-M'; no argument required
19222 # The diagnosis changed in icc 8.0:
19223 # icc: Command line remark: option '-MP' not supported
19224 if (grep 'ignoring option' conftest.err ||
19225 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19226 am_cv_CC_dependencies_compiler_type=$depmode
19233 rm -rf conftest.dir
19235 am_cv_CC_dependencies_compiler_type=none
19239 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19240 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19241 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19244 test "x$enable_dependency_tracking" != xno \
19245 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19246 am__fastdepCC_TRUE=
19247 am__fastdepCC_FALSE='#'
19249 am__fastdepCC_TRUE='#'
19250 am__fastdepCC_FALSE=
19254 depcc="$CXX" am_compiler_list=
19256 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19257 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19258 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
19261 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19262 # We make a subdir and do the tests there. Otherwise we can end up
19263 # making bogus files that we don't know about and never remove. For
19264 # instance it was reported that on HP-UX the gcc test will end up
19265 # making a dummy file named `D' -- because `-MD' means `put the output
19268 # Copy depcomp to subdir because otherwise we won't find it if we're
19269 # using a relative directory.
19270 cp "$am_depcomp" conftest.dir
19272 # We will build objects and dependencies in a subdirectory because
19273 # it helps to detect inapplicable dependency modes. For instance
19274 # both Tru64's cc and ICC support -MD to output dependencies as a
19275 # side effect of compilation, but ICC will put the dependencies in
19276 # the current directory while Tru64 will put them in the object
19280 am_cv_CXX_dependencies_compiler_type=none
19281 if test "$am_compiler_list" = ""; then
19282 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19284 for depmode in $am_compiler_list; do
19285 # Setup a source with many dependencies, because some compilers
19286 # like to wrap large dependency lists on column 80 (with \), and
19287 # we should not choose a depcomp mode which is confused by this.
19289 # We need to recreate these files for each test, as the compiler may
19290 # overwrite some of them when testing with obscure command lines.
19291 # This happens at least with the AIX C compiler.
19293 for i in 1 2 3 4 5 6; do
19294 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19295 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19296 # Solaris 8's {/usr,}/bin/sh.
19297 touch sub/conftst$i.h
19299 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19303 # after this tag, mechanisms are not by side-effect, so they'll
19304 # only be used when explicitly requested
19305 if test "x$enable_dependency_tracking" = xyes; then
19313 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19314 # mode. It turns out that the SunPro C++ compiler does not properly
19315 # handle `-M -o', and we need to detect this.
19316 if depmode=$depmode \
19317 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19318 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19319 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19320 >/dev/null 2>conftest.err &&
19321 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19322 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19323 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19324 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19325 # icc doesn't choke on unknown options, it will just issue warnings
19326 # or remarks (even with -Werror). So we grep stderr for any message
19327 # that says an option was ignored or not supported.
19328 # When given -MP, icc 7.0 and 7.1 complain thusly:
19329 # icc: Command line warning: ignoring option '-M'; no argument required
19330 # The diagnosis changed in icc 8.0:
19331 # icc: Command line remark: option '-MP' not supported
19332 if (grep 'ignoring option' conftest.err ||
19333 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19334 am_cv_CXX_dependencies_compiler_type=$depmode
19341 rm -rf conftest.dir
19343 am_cv_CXX_dependencies_compiler_type=none
19347 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19348 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
19349 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19352 test "x$enable_dependency_tracking" != xno \
19353 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19354 am__fastdepCXX_TRUE=
19355 am__fastdepCXX_FALSE='#'
19357 am__fastdepCXX_TRUE='#'
19358 am__fastdepCXX_FALSE=
19364 { echo "$as_me:$LINENO: checking for library containing dlsym" >&5
19365 echo $ECHO_N "checking for library containing dlsym... $ECHO_C" >&6; }
19366 if test "${ac_cv_search_dlsym+set}" = set; then
19367 echo $ECHO_N "(cached) $ECHO_C" >&6
19369 ac_func_search_save_LIBS=$LIBS
19370 cat >conftest.$ac_ext <<_ACEOF
19373 cat confdefs.h >>conftest.$ac_ext
19374 cat >>conftest.$ac_ext <<_ACEOF
19375 /* end confdefs.h. */
19377 /* Override any GCC internal prototype to avoid an error.
19378 Use char because int might match the return type of a GCC
19379 builtin and then its argument prototype would still apply. */
19392 for ac_lib in '' dl; do
19393 if test -z "$ac_lib"; then
19394 ac_res="none required"
19397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19399 rm -f conftest.$ac_objext conftest$ac_exeext
19400 if { (ac_try="$ac_link"
19401 case "(($ac_try" in
19402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403 *) ac_try_echo=$ac_try;;
19405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19406 (eval "$ac_link") 2>conftest.er1
19408 grep -v '^ *+' conftest.er1 >conftest.err
19410 cat conftest.err >&5
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } && {
19413 test -z "$ac_c_werror_flag" ||
19414 test ! -s conftest.err
19415 } && test -s conftest$ac_exeext &&
19416 $as_test_x conftest$ac_exeext; then
19417 ac_cv_search_dlsym=$ac_res
19419 echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.$ac_ext >&5
19425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19427 if test "${ac_cv_search_dlsym+set}" = set; then
19431 if test "${ac_cv_search_dlsym+set}" = set; then
19434 ac_cv_search_dlsym=no
19436 rm conftest.$ac_ext
19437 LIBS=$ac_func_search_save_LIBS
19439 { echo "$as_me:$LINENO: result: $ac_cv_search_dlsym" >&5
19440 echo "${ECHO_T}$ac_cv_search_dlsym" >&6; }
19441 ac_res=$ac_cv_search_dlsym
19442 if test "$ac_res" != no; then
19443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19447 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
19448 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
19449 if test "${ac_cv_search_clock_gettime+set}" = set; then
19450 echo $ECHO_N "(cached) $ECHO_C" >&6
19452 ac_func_search_save_LIBS=$LIBS
19453 cat >conftest.$ac_ext <<_ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19460 /* Override any GCC internal prototype to avoid an error.
19461 Use char because int might match the return type of a GCC
19462 builtin and then its argument prototype would still apply. */
19466 char clock_gettime ();
19470 return clock_gettime ();
19475 for ac_lib in '' rt; do
19476 if test -z "$ac_lib"; then
19477 ac_res="none required"
19480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19482 rm -f conftest.$ac_objext conftest$ac_exeext
19483 if { (ac_try="$ac_link"
19484 case "(($ac_try" in
19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486 *) ac_try_echo=$ac_try;;
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489 (eval "$ac_link") 2>conftest.er1
19491 grep -v '^ *+' conftest.er1 >conftest.err
19493 cat conftest.err >&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } && {
19496 test -z "$ac_c_werror_flag" ||
19497 test ! -s conftest.err
19498 } && test -s conftest$ac_exeext &&
19499 $as_test_x conftest$ac_exeext; then
19500 ac_cv_search_clock_gettime=$ac_res
19502 echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19510 if test "${ac_cv_search_clock_gettime+set}" = set; then
19514 if test "${ac_cv_search_clock_gettime+set}" = set; then
19517 ac_cv_search_clock_gettime=no
19519 rm conftest.$ac_ext
19520 LIBS=$ac_func_search_save_LIBS
19522 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
19523 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
19524 ac_res=$ac_cv_search_clock_gettime
19525 if test "$ac_res" != no; then
19526 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19531 # Checks for header files.
19532 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19533 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19534 if test "${ac_cv_header_stdc+set}" = set; then
19535 echo $ECHO_N "(cached) $ECHO_C" >&6
19537 cat >conftest.$ac_ext <<_ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19543 #include <stdlib.h>
19544 #include <stdarg.h>
19545 #include <string.h>
19556 rm -f conftest.$ac_objext
19557 if { (ac_try="$ac_compile"
19558 case "(($ac_try" in
19559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560 *) ac_try_echo=$ac_try;;
19562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563 (eval "$ac_compile") 2>conftest.er1
19565 grep -v '^ *+' conftest.er1 >conftest.err
19567 cat conftest.err >&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); } && {
19570 test -z "$ac_c_werror_flag" ||
19571 test ! -s conftest.err
19572 } && test -s conftest.$ac_objext; then
19573 ac_cv_header_stdc=yes
19575 echo "$as_me: failed program was:" >&5
19576 sed 's/^/| /' conftest.$ac_ext >&5
19578 ac_cv_header_stdc=no
19581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19583 if test $ac_cv_header_stdc = yes; then
19584 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19585 cat >conftest.$ac_ext <<_ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19591 #include <string.h>
19594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19595 $EGREP "memchr" >/dev/null 2>&1; then
19598 ac_cv_header_stdc=no
19604 if test $ac_cv_header_stdc = yes; then
19605 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19606 cat >conftest.$ac_ext <<_ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19612 #include <stdlib.h>
19615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19616 $EGREP "free" >/dev/null 2>&1; then
19619 ac_cv_header_stdc=no
19625 if test $ac_cv_header_stdc = yes; then
19626 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19627 if test "$cross_compiling" = yes; then
19630 cat >conftest.$ac_ext <<_ACEOF
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h. */
19637 #include <stdlib.h>
19638 #if ((' ' & 0x0FF) == 0x020)
19639 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19640 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19642 # define ISLOWER(c) \
19643 (('a' <= (c) && (c) <= 'i') \
19644 || ('j' <= (c) && (c) <= 'r') \
19645 || ('s' <= (c) && (c) <= 'z'))
19646 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19649 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19654 for (i = 0; i < 256; i++)
19655 if (XOR (islower (i), ISLOWER (i))
19656 || toupper (i) != TOUPPER (i))
19661 rm -f conftest$ac_exeext
19662 if { (ac_try="$ac_link"
19663 case "(($ac_try" in
19664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665 *) ac_try_echo=$ac_try;;
19667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19668 (eval "$ac_link") 2>&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19672 { (case "(($ac_try" in
19673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19674 *) ac_try_echo=$ac_try;;
19676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19677 (eval "$ac_try") 2>&5
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; }; then
19683 echo "$as_me: program exited with status $ac_status" >&5
19684 echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19687 ( exit $ac_status )
19688 ac_cv_header_stdc=no
19690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19696 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19697 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19698 if test $ac_cv_header_stdc = yes; then
19700 cat >>confdefs.h <<\_ACEOF
19701 #define STDC_HEADERS 1
19706 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19707 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
19708 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19709 echo $ECHO_N "(cached) $ECHO_C" >&6
19711 cat >conftest.$ac_ext <<_ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h. */
19717 #include <sys/types.h>
19718 #include <sys/wait.h>
19719 #ifndef WEXITSTATUS
19720 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19723 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19731 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19736 rm -f conftest.$ac_objext
19737 if { (ac_try="$ac_compile"
19738 case "(($ac_try" in
19739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19740 *) ac_try_echo=$ac_try;;
19742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19743 (eval "$ac_compile") 2>conftest.er1
19745 grep -v '^ *+' conftest.er1 >conftest.err
19747 cat conftest.err >&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); } && {
19750 test -z "$ac_c_werror_flag" ||
19751 test ! -s conftest.err
19752 } && test -s conftest.$ac_objext; then
19753 ac_cv_header_sys_wait_h=yes
19755 echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.$ac_ext >&5
19758 ac_cv_header_sys_wait_h=no
19761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19763 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19764 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
19765 if test $ac_cv_header_sys_wait_h = yes; then
19767 cat >>confdefs.h <<\_ACEOF
19768 #define HAVE_SYS_WAIT_H 1
19777 for ac_header in endian.h mach/mach.h machine/endian.h sys/endian.h
19779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
19786 ac_res=`eval echo '${'$as_ac_Header'}'`
19787 { echo "$as_me:$LINENO: result: $ac_res" >&5
19788 echo "${ECHO_T}$ac_res" >&6; }
19790 # Is the header compilable?
19791 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19793 cat >conftest.$ac_ext <<_ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h. */
19799 $ac_includes_default
19800 #include <$ac_header>
19802 rm -f conftest.$ac_objext
19803 if { (ac_try="$ac_compile"
19804 case "(($ac_try" in
19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809 (eval "$ac_compile") 2>conftest.er1
19811 grep -v '^ *+' conftest.er1 >conftest.err
19813 cat conftest.err >&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } && {
19816 test -z "$ac_c_werror_flag" ||
19817 test ! -s conftest.err
19818 } && test -s conftest.$ac_objext; then
19819 ac_header_compiler=yes
19821 echo "$as_me: failed program was:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19824 ac_header_compiler=no
19827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19829 echo "${ECHO_T}$ac_header_compiler" >&6; }
19831 # Is the header present?
19832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19834 cat >conftest.$ac_ext <<_ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19840 #include <$ac_header>
19842 if { (ac_try="$ac_cpp conftest.$ac_ext"
19843 case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19850 grep -v '^ *+' conftest.er1 >conftest.err
19852 cat conftest.err >&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } >/dev/null && {
19855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19856 test ! -s conftest.err
19858 ac_header_preproc=yes
19860 echo "$as_me: failed program was:" >&5
19861 sed 's/^/| /' conftest.$ac_ext >&5
19863 ac_header_preproc=no
19866 rm -f conftest.err conftest.$ac_ext
19867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19868 echo "${ECHO_T}$ac_header_preproc" >&6; }
19870 # So? What about this header?
19871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19877 ac_header_preproc=yes
19880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19887 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19893 ## ----------------------------------------------- ##
19894 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
19895 ## ----------------------------------------------- ##
19897 ) | sed "s/^/$as_me: WARNING: /" >&2
19900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19903 echo $ECHO_N "(cached) $ECHO_C" >&6
19905 eval "$as_ac_Header=\$ac_header_preproc"
19907 ac_res=`eval echo '${'$as_ac_Header'}'`
19908 { echo "$as_me:$LINENO: result: $ac_res" >&5
19909 echo "${ECHO_T}$ac_res" >&6; }
19912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19913 cat >>confdefs.h <<_ACEOF
19914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19922 # Checks for typedefs, structures, and compiler characteristics.
19923 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19924 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19925 if test "${ac_cv_c_const+set}" = set; then
19926 echo $ECHO_N "(cached) $ECHO_C" >&6
19928 cat >conftest.$ac_ext <<_ACEOF
19931 cat confdefs.h >>conftest.$ac_ext
19932 cat >>conftest.$ac_ext <<_ACEOF
19933 /* end confdefs.h. */
19938 /* FIXME: Include the comments suggested by Paul. */
19939 #ifndef __cplusplus
19940 /* Ultrix mips cc rejects this. */
19941 typedef int charset[2];
19943 /* SunOS 4.1.1 cc rejects this. */
19944 char const *const *pcpcc;
19946 /* NEC SVR4.0.2 mips cc rejects this. */
19947 struct point {int x, y;};
19948 static struct point const zero = {0,0};
19949 /* AIX XL C 1.02.0.0 rejects this.
19950 It does not let you subtract one const X* pointer from another in
19951 an arm of an if-expression whose if-part is not a constant
19953 const char *g = "string";
19954 pcpcc = &g + (g ? g-g : 0);
19955 /* HPUX 7.0 cc rejects these. */
19957 ppc = (char**) pcpcc;
19958 pcpcc = (char const *const *) ppc;
19959 { /* SCO 3.2v4 cc rejects this. */
19961 char const *s = 0 ? (char *) 0 : (char const *) 0;
19966 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19967 int x[] = {25, 17};
19968 const int *foo = &x[0];
19971 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19972 typedef const int *iptr;
19976 { /* AIX XL C 1.02.0.0 rejects this saying
19977 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19978 struct s { int j; const int *ap[3]; };
19979 struct s *b; b->j = 5;
19981 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19982 const int foo = 10;
19983 if (!foo) return 0;
19985 return !cs[0] && !zero.x;
19992 rm -f conftest.$ac_objext
19993 if { (ac_try="$ac_compile"
19994 case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_compile") 2>conftest.er1
20001 grep -v '^ *+' conftest.er1 >conftest.err
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } && {
20006 test -z "$ac_c_werror_flag" ||
20007 test ! -s conftest.err
20008 } && test -s conftest.$ac_objext; then
20011 echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20019 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20020 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20021 if test $ac_cv_c_const = no; then
20023 cat >>confdefs.h <<\_ACEOF
20029 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20030 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
20031 if test "${ac_cv_type_uid_t+set}" = set; then
20032 echo $ECHO_N "(cached) $ECHO_C" >&6
20034 cat >conftest.$ac_ext <<_ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20040 #include <sys/types.h>
20043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20044 $EGREP "uid_t" >/dev/null 2>&1; then
20045 ac_cv_type_uid_t=yes
20047 ac_cv_type_uid_t=no
20052 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20053 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
20054 if test $ac_cv_type_uid_t = no; then
20056 cat >>confdefs.h <<\_ACEOF
20061 cat >>confdefs.h <<\_ACEOF
20067 { echo "$as_me:$LINENO: checking for pid_t" >&5
20068 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
20069 if test "${ac_cv_type_pid_t+set}" = set; then
20070 echo $ECHO_N "(cached) $ECHO_C" >&6
20072 cat >conftest.$ac_ext <<_ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h. */
20078 $ac_includes_default
20079 typedef pid_t ac__type_new_;
20083 if ((ac__type_new_ *) 0)
20085 if (sizeof (ac__type_new_))
20091 rm -f conftest.$ac_objext
20092 if { (ac_try="$ac_compile"
20093 case "(($ac_try" in
20094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20095 *) ac_try_echo=$ac_try;;
20097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20098 (eval "$ac_compile") 2>conftest.er1
20100 grep -v '^ *+' conftest.er1 >conftest.err
20102 cat conftest.err >&5
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); } && {
20105 test -z "$ac_c_werror_flag" ||
20106 test ! -s conftest.err
20107 } && test -s conftest.$ac_objext; then
20108 ac_cv_type_pid_t=yes
20110 echo "$as_me: failed program was:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20113 ac_cv_type_pid_t=no
20116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20118 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20119 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
20120 if test $ac_cv_type_pid_t = yes; then
20124 cat >>confdefs.h <<_ACEOF
20130 { echo "$as_me:$LINENO: checking for size_t" >&5
20131 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20132 if test "${ac_cv_type_size_t+set}" = set; then
20133 echo $ECHO_N "(cached) $ECHO_C" >&6
20135 cat >conftest.$ac_ext <<_ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h. */
20141 $ac_includes_default
20142 typedef size_t ac__type_new_;
20146 if ((ac__type_new_ *) 0)
20148 if (sizeof (ac__type_new_))
20154 rm -f conftest.$ac_objext
20155 if { (ac_try="$ac_compile"
20156 case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_compile") 2>conftest.er1
20163 grep -v '^ *+' conftest.er1 >conftest.err
20165 cat conftest.err >&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); } && {
20168 test -z "$ac_c_werror_flag" ||
20169 test ! -s conftest.err
20170 } && test -s conftest.$ac_objext; then
20171 ac_cv_type_size_t=yes
20173 echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20176 ac_cv_type_size_t=no
20179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20181 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20182 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20183 if test $ac_cv_type_size_t = yes; then
20187 cat >>confdefs.h <<_ACEOF
20188 #define size_t unsigned int
20193 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
20194 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
20195 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20198 cat >conftest.$ac_ext <<_ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h. */
20204 $ac_includes_default
20208 static struct stat ac_aggr;
20209 if (ac_aggr.st_rdev)
20215 rm -f conftest.$ac_objext
20216 if { (ac_try="$ac_compile"
20217 case "(($ac_try" in
20218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20219 *) ac_try_echo=$ac_try;;
20221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20222 (eval "$ac_compile") 2>conftest.er1
20224 grep -v '^ *+' conftest.er1 >conftest.err
20226 cat conftest.err >&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); } && {
20229 test -z "$ac_c_werror_flag" ||
20230 test ! -s conftest.err
20231 } && test -s conftest.$ac_objext; then
20232 ac_cv_member_struct_stat_st_rdev=yes
20234 echo "$as_me: failed program was:" >&5
20235 sed 's/^/| /' conftest.$ac_ext >&5
20237 cat >conftest.$ac_ext <<_ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h. */
20243 $ac_includes_default
20247 static struct stat ac_aggr;
20248 if (sizeof ac_aggr.st_rdev)
20254 rm -f conftest.$ac_objext
20255 if { (ac_try="$ac_compile"
20256 case "(($ac_try" in
20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258 *) ac_try_echo=$ac_try;;
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_compile") 2>conftest.er1
20263 grep -v '^ *+' conftest.er1 >conftest.err
20265 cat conftest.err >&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); } && {
20268 test -z "$ac_c_werror_flag" ||
20269 test ! -s conftest.err
20270 } && test -s conftest.$ac_objext; then
20271 ac_cv_member_struct_stat_st_rdev=yes
20273 echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20276 ac_cv_member_struct_stat_st_rdev=no
20279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20284 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20285 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
20286 if test $ac_cv_member_struct_stat_st_rdev = yes; then
20288 cat >>confdefs.h <<_ACEOF
20289 #define HAVE_STRUCT_STAT_ST_RDEV 1
20296 { echo "$as_me:$LINENO: checking for struct ipc_perm.__key" >&5
20297 echo $ECHO_N "checking for struct ipc_perm.__key... $ECHO_C" >&6; }
20298 if test "${ac_cv_member_struct_ipc_perm___key+set}" = set; then
20299 echo $ECHO_N "(cached) $ECHO_C" >&6
20301 cat >conftest.$ac_ext <<_ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20308 #include <sys/types.h>
20309 #include <sys/ipc.h>
20315 static struct ipc_perm ac_aggr;
20322 rm -f conftest.$ac_objext
20323 if { (ac_try="$ac_compile"
20324 case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_compile") 2>conftest.er1
20331 grep -v '^ *+' conftest.er1 >conftest.err
20333 cat conftest.err >&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } && {
20336 test -z "$ac_c_werror_flag" ||
20337 test ! -s conftest.err
20338 } && test -s conftest.$ac_objext; then
20339 ac_cv_member_struct_ipc_perm___key=yes
20341 echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20344 cat >conftest.$ac_ext <<_ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h. */
20351 #include <sys/types.h>
20352 #include <sys/ipc.h>
20358 static struct ipc_perm ac_aggr;
20359 if (sizeof ac_aggr.__key)
20365 rm -f conftest.$ac_objext
20366 if { (ac_try="$ac_compile"
20367 case "(($ac_try" in
20368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20369 *) ac_try_echo=$ac_try;;
20371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20372 (eval "$ac_compile") 2>conftest.er1
20374 grep -v '^ *+' conftest.er1 >conftest.err
20376 cat conftest.err >&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } && {
20379 test -z "$ac_c_werror_flag" ||
20380 test ! -s conftest.err
20381 } && test -s conftest.$ac_objext; then
20382 ac_cv_member_struct_ipc_perm___key=yes
20384 echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20387 ac_cv_member_struct_ipc_perm___key=no
20390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20395 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___key" >&5
20396 echo "${ECHO_T}$ac_cv_member_struct_ipc_perm___key" >&6; }
20397 if test $ac_cv_member_struct_ipc_perm___key = yes; then
20399 cat >>confdefs.h <<\_ACEOF
20400 #define HAVE_IPC_PERM___KEY
20406 { echo "$as_me:$LINENO: checking for struct ipc_perm.__seq" >&5
20407 echo $ECHO_N "checking for struct ipc_perm.__seq... $ECHO_C" >&6; }
20408 if test "${ac_cv_member_struct_ipc_perm___seq+set}" = set; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20411 cat >conftest.$ac_ext <<_ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20418 #include <sys/types.h>
20419 #include <sys/ipc.h>
20425 static struct ipc_perm ac_aggr;
20432 rm -f conftest.$ac_objext
20433 if { (ac_try="$ac_compile"
20434 case "(($ac_try" in
20435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436 *) ac_try_echo=$ac_try;;
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439 (eval "$ac_compile") 2>conftest.er1
20441 grep -v '^ *+' conftest.er1 >conftest.err
20443 cat conftest.err >&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); } && {
20446 test -z "$ac_c_werror_flag" ||
20447 test ! -s conftest.err
20448 } && test -s conftest.$ac_objext; then
20449 ac_cv_member_struct_ipc_perm___seq=yes
20451 echo "$as_me: failed program was:" >&5
20452 sed 's/^/| /' conftest.$ac_ext >&5
20454 cat >conftest.$ac_ext <<_ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h. */
20461 #include <sys/types.h>
20462 #include <sys/ipc.h>
20468 static struct ipc_perm ac_aggr;
20469 if (sizeof ac_aggr.__seq)
20475 rm -f conftest.$ac_objext
20476 if { (ac_try="$ac_compile"
20477 case "(($ac_try" in
20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479 *) ac_try_echo=$ac_try;;
20481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482 (eval "$ac_compile") 2>conftest.er1
20484 grep -v '^ *+' conftest.er1 >conftest.err
20486 cat conftest.err >&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } && {
20489 test -z "$ac_c_werror_flag" ||
20490 test ! -s conftest.err
20491 } && test -s conftest.$ac_objext; then
20492 ac_cv_member_struct_ipc_perm___seq=yes
20494 echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20497 ac_cv_member_struct_ipc_perm___seq=no
20500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20505 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___seq" >&5
20506 echo "${ECHO_T}$ac_cv_member_struct_ipc_perm___seq" >&6; }
20507 if test $ac_cv_member_struct_ipc_perm___seq = yes; then
20509 cat >>confdefs.h <<\_ACEOF
20510 #define HAVE_IPC_PERM___SEQ
20516 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20517 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20518 if test "${ac_cv_header_time+set}" = set; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
20521 cat >conftest.$ac_ext <<_ACEOF
20524 cat confdefs.h >>conftest.$ac_ext
20525 cat >>conftest.$ac_ext <<_ACEOF
20526 /* end confdefs.h. */
20527 #include <sys/types.h>
20528 #include <sys/time.h>
20534 if ((struct tm *) 0)
20540 rm -f conftest.$ac_objext
20541 if { (ac_try="$ac_compile"
20542 case "(($ac_try" in
20543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544 *) ac_try_echo=$ac_try;;
20546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547 (eval "$ac_compile") 2>conftest.er1
20549 grep -v '^ *+' conftest.er1 >conftest.err
20551 cat conftest.err >&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); } && {
20554 test -z "$ac_c_werror_flag" ||
20555 test ! -s conftest.err
20556 } && test -s conftest.$ac_objext; then
20557 ac_cv_header_time=yes
20559 echo "$as_me: failed program was:" >&5
20560 sed 's/^/| /' conftest.$ac_ext >&5
20562 ac_cv_header_time=no
20565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20567 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20568 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20569 if test $ac_cv_header_time = yes; then
20571 cat >>confdefs.h <<\_ACEOF
20572 #define TIME_WITH_SYS_TIME 1
20577 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20578 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20579 if test "${ac_cv_struct_tm+set}" = set; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
20582 cat >conftest.$ac_ext <<_ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20588 #include <sys/types.h>
20595 int *p = &tm.tm_sec;
20601 rm -f conftest.$ac_objext
20602 if { (ac_try="$ac_compile"
20603 case "(($ac_try" in
20604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605 *) ac_try_echo=$ac_try;;
20607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20608 (eval "$ac_compile") 2>conftest.er1
20610 grep -v '^ *+' conftest.er1 >conftest.err
20612 cat conftest.err >&5
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } && {
20615 test -z "$ac_c_werror_flag" ||
20616 test ! -s conftest.err
20617 } && test -s conftest.$ac_objext; then
20618 ac_cv_struct_tm=time.h
20620 echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20623 ac_cv_struct_tm=sys/time.h
20626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20628 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20629 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20630 if test $ac_cv_struct_tm = sys/time.h; then
20632 cat >>confdefs.h <<\_ACEOF
20633 #define TM_IN_SYS_TIME 1
20639 # Checks for library functions.
20641 for ac_header in unistd.h
20643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
20650 ac_res=`eval echo '${'$as_ac_Header'}'`
20651 { echo "$as_me:$LINENO: result: $ac_res" >&5
20652 echo "${ECHO_T}$ac_res" >&6; }
20654 # Is the header compilable?
20655 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20657 cat >conftest.$ac_ext <<_ACEOF
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h. */
20663 $ac_includes_default
20664 #include <$ac_header>
20666 rm -f conftest.$ac_objext
20667 if { (ac_try="$ac_compile"
20668 case "(($ac_try" in
20669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670 *) ac_try_echo=$ac_try;;
20672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673 (eval "$ac_compile") 2>conftest.er1
20675 grep -v '^ *+' conftest.er1 >conftest.err
20677 cat conftest.err >&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); } && {
20680 test -z "$ac_c_werror_flag" ||
20681 test ! -s conftest.err
20682 } && test -s conftest.$ac_objext; then
20683 ac_header_compiler=yes
20685 echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20688 ac_header_compiler=no
20691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20693 echo "${ECHO_T}$ac_header_compiler" >&6; }
20695 # Is the header present?
20696 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20698 cat >conftest.$ac_ext <<_ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20704 #include <$ac_header>
20706 if { (ac_try="$ac_cpp conftest.$ac_ext"
20707 case "(($ac_try" in
20708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20709 *) ac_try_echo=$ac_try;;
20711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20714 grep -v '^ *+' conftest.er1 >conftest.err
20716 cat conftest.err >&5
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } >/dev/null && {
20719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20720 test ! -s conftest.err
20722 ac_header_preproc=yes
20724 echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20727 ac_header_preproc=no
20730 rm -f conftest.err conftest.$ac_ext
20731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20732 echo "${ECHO_T}$ac_header_preproc" >&6; }
20734 # So? What about this header?
20735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20741 ac_header_preproc=yes
20744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20751 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20757 ## ----------------------------------------------- ##
20758 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
20759 ## ----------------------------------------------- ##
20761 ) | sed "s/^/$as_me: WARNING: /" >&2
20764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20767 echo $ECHO_N "(cached) $ECHO_C" >&6
20769 eval "$as_ac_Header=\$ac_header_preproc"
20771 ac_res=`eval echo '${'$as_ac_Header'}'`
20772 { echo "$as_me:$LINENO: result: $ac_res" >&5
20773 echo "${ECHO_T}$ac_res" >&6; }
20776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20777 cat >>confdefs.h <<_ACEOF
20778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20785 { echo "$as_me:$LINENO: checking for working chown" >&5
20786 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
20787 if test "${ac_cv_func_chown_works+set}" = set; then
20788 echo $ECHO_N "(cached) $ECHO_C" >&6
20790 if test "$cross_compiling" = yes; then
20791 ac_cv_func_chown_works=no
20793 cat >conftest.$ac_ext <<_ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h. */
20799 $ac_includes_default
20805 char *f = "conftest.chown";
20806 struct stat before, after;
20808 if (creat (f, 0600) < 0)
20810 if (stat (f, &before) < 0)
20812 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
20814 if (stat (f, &after) < 0)
20816 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
20822 rm -f conftest$ac_exeext
20823 if { (ac_try="$ac_link"
20824 case "(($ac_try" in
20825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20826 *) ac_try_echo=$ac_try;;
20828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20829 (eval "$ac_link") 2>&5
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20833 { (case "(($ac_try" in
20834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835 *) ac_try_echo=$ac_try;;
20837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838 (eval "$ac_try") 2>&5
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); }; }; then
20842 ac_cv_func_chown_works=yes
20844 echo "$as_me: program exited with status $ac_status" >&5
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20848 ( exit $ac_status )
20849 ac_cv_func_chown_works=no
20851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20855 rm -f conftest.chown
20858 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
20859 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
20860 if test $ac_cv_func_chown_works = yes; then
20862 cat >>confdefs.h <<\_ACEOF
20863 #define HAVE_CHOWN 1
20869 for ac_header in vfork.h
20871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20876 echo $ECHO_N "(cached) $ECHO_C" >&6
20878 ac_res=`eval echo '${'$as_ac_Header'}'`
20879 { echo "$as_me:$LINENO: result: $ac_res" >&5
20880 echo "${ECHO_T}$ac_res" >&6; }
20882 # Is the header compilable?
20883 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20885 cat >conftest.$ac_ext <<_ACEOF
20888 cat confdefs.h >>conftest.$ac_ext
20889 cat >>conftest.$ac_ext <<_ACEOF
20890 /* end confdefs.h. */
20891 $ac_includes_default
20892 #include <$ac_header>
20894 rm -f conftest.$ac_objext
20895 if { (ac_try="$ac_compile"
20896 case "(($ac_try" in
20897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898 *) ac_try_echo=$ac_try;;
20900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20901 (eval "$ac_compile") 2>conftest.er1
20903 grep -v '^ *+' conftest.er1 >conftest.err
20905 cat conftest.err >&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } && {
20908 test -z "$ac_c_werror_flag" ||
20909 test ! -s conftest.err
20910 } && test -s conftest.$ac_objext; then
20911 ac_header_compiler=yes
20913 echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20916 ac_header_compiler=no
20919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20920 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20921 echo "${ECHO_T}$ac_header_compiler" >&6; }
20923 # Is the header present?
20924 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20926 cat >conftest.$ac_ext <<_ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h. */
20932 #include <$ac_header>
20934 if { (ac_try="$ac_cpp conftest.$ac_ext"
20935 case "(($ac_try" in
20936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937 *) ac_try_echo=$ac_try;;
20939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20942 grep -v '^ *+' conftest.er1 >conftest.err
20944 cat conftest.err >&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); } >/dev/null && {
20947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20948 test ! -s conftest.err
20950 ac_header_preproc=yes
20952 echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20955 ac_header_preproc=no
20958 rm -f conftest.err conftest.$ac_ext
20959 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20960 echo "${ECHO_T}$ac_header_preproc" >&6; }
20962 # So? What about this header?
20963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20969 ac_header_preproc=yes
20972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20979 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20985 ## ----------------------------------------------- ##
20986 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
20987 ## ----------------------------------------------- ##
20989 ) | sed "s/^/$as_me: WARNING: /" >&2
20992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20995 echo $ECHO_N "(cached) $ECHO_C" >&6
20997 eval "$as_ac_Header=\$ac_header_preproc"
20999 ac_res=`eval echo '${'$as_ac_Header'}'`
21000 { echo "$as_me:$LINENO: result: $ac_res" >&5
21001 echo "${ECHO_T}$ac_res" >&6; }
21004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21005 cat >>confdefs.h <<_ACEOF
21006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21015 for ac_func in fork vfork
21017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21018 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21020 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21021 echo $ECHO_N "(cached) $ECHO_C" >&6
21023 cat >conftest.$ac_ext <<_ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h. */
21029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21031 #define $ac_func innocuous_$ac_func
21033 /* System header to define __stub macros and hopefully few prototypes,
21034 which can conflict with char $ac_func (); below.
21035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21036 <limits.h> exists even on freestanding compilers. */
21039 # include <limits.h>
21041 # include <assert.h>
21046 /* Override any GCC internal prototype to avoid an error.
21047 Use char because int might match the return type of a GCC
21048 builtin and then its argument prototype would still apply. */
21053 /* The GNU C library defines this for functions which it implements
21054 to always fail with ENOSYS. Some functions are actually named
21055 something starting with __ and the normal name is an alias. */
21056 #if defined __stub_$ac_func || defined __stub___$ac_func
21063 return $ac_func ();
21068 rm -f conftest.$ac_objext conftest$ac_exeext
21069 if { (ac_try="$ac_link"
21070 case "(($ac_try" in
21071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072 *) ac_try_echo=$ac_try;;
21074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21075 (eval "$ac_link") 2>conftest.er1
21077 grep -v '^ *+' conftest.er1 >conftest.err
21079 cat conftest.err >&5
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); } && {
21082 test -z "$ac_c_werror_flag" ||
21083 test ! -s conftest.err
21084 } && test -s conftest$ac_exeext &&
21085 $as_test_x conftest$ac_exeext; then
21086 eval "$as_ac_var=yes"
21088 echo "$as_me: failed program was:" >&5
21089 sed 's/^/| /' conftest.$ac_ext >&5
21091 eval "$as_ac_var=no"
21094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21095 conftest$ac_exeext conftest.$ac_ext
21097 ac_res=`eval echo '${'$as_ac_var'}'`
21098 { echo "$as_me:$LINENO: result: $ac_res" >&5
21099 echo "${ECHO_T}$ac_res" >&6; }
21100 if test `eval echo '${'$as_ac_var'}'` = yes; then
21101 cat >>confdefs.h <<_ACEOF
21102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21108 if test "x$ac_cv_func_fork" = xyes; then
21109 { echo "$as_me:$LINENO: checking for working fork" >&5
21110 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
21111 if test "${ac_cv_func_fork_works+set}" = set; then
21112 echo $ECHO_N "(cached) $ECHO_C" >&6
21114 if test "$cross_compiling" = yes; then
21115 ac_cv_func_fork_works=cross
21117 cat >conftest.$ac_ext <<_ACEOF
21120 cat confdefs.h >>conftest.$ac_ext
21121 cat >>conftest.$ac_ext <<_ACEOF
21122 /* end confdefs.h. */
21123 $ac_includes_default
21128 /* By Ruediger Kuhlmann. */
21129 return fork () < 0;
21135 rm -f conftest$ac_exeext
21136 if { (ac_try="$ac_link"
21137 case "(($ac_try" in
21138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139 *) ac_try_echo=$ac_try;;
21141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142 (eval "$ac_link") 2>&5
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21146 { (case "(($ac_try" in
21147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21148 *) ac_try_echo=$ac_try;;
21150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21151 (eval "$ac_try") 2>&5
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; }; then
21155 ac_cv_func_fork_works=yes
21157 echo "$as_me: program exited with status $ac_status" >&5
21158 echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21161 ( exit $ac_status )
21162 ac_cv_func_fork_works=no
21164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21169 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21170 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
21173 ac_cv_func_fork_works=$ac_cv_func_fork
21175 if test "x$ac_cv_func_fork_works" = xcross; then
21177 *-*-amigaos* | *-*-msdosdjgpp*)
21178 # Override, as these systems have only a dummy fork() stub
21179 ac_cv_func_fork_works=no
21182 ac_cv_func_fork_works=yes
21185 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21186 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21188 ac_cv_func_vfork_works=$ac_cv_func_vfork
21189 if test "x$ac_cv_func_vfork" = xyes; then
21190 { echo "$as_me:$LINENO: checking for working vfork" >&5
21191 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
21192 if test "${ac_cv_func_vfork_works+set}" = set; then
21193 echo $ECHO_N "(cached) $ECHO_C" >&6
21195 if test "$cross_compiling" = yes; then
21196 ac_cv_func_vfork_works=cross
21198 cat >conftest.$ac_ext <<_ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h. */
21204 /* Thanks to Paul Eggert for this test. */
21205 $ac_includes_default
21206 #include <sys/wait.h>
21207 #ifdef HAVE_VFORK_H
21208 # include <vfork.h>
21210 /* On some sparc systems, changes by the child to local and incoming
21211 argument registers are propagated back to the parent. The compiler
21212 is told about this with #include <vfork.h>, but some compilers
21213 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21214 static variable whose address is put into a register that is
21215 clobbered by the vfork. */
21218 sparc_address_test (int arg)
21220 sparc_address_test (arg) int arg;
21223 static pid_t child;
21241 pid_t parent = getpid ();
21244 sparc_address_test (0);
21249 /* Here is another test for sparc vfork register problems. This
21250 test uses lots of local variables, at least as many local
21251 variables as main has allocated so far including compiler
21252 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21253 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21254 reuse the register of parent for one of the local variables,
21255 since it will think that parent can't possibly be used any more
21256 in this routine. Assigning to the local variable will thus
21257 munge parent in the parent process. */
21259 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21260 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21261 /* Convince the compiler that p..p7 are live; otherwise, it might
21262 use the same hardware register for all 8 local variables. */
21263 if (p != p1 || p != p2 || p != p3 || p != p4
21264 || p != p5 || p != p6 || p != p7)
21267 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21268 from child file descriptors. If the child closes a descriptor
21269 before it execs or exits, this munges the parent's descriptor
21270 as well. Test for this by closing stdout in the child. */
21271 _exit(close(fileno(stdout)) != 0);
21276 while (wait(&status) != child)
21279 /* Was there some problem with vforking? */
21282 /* Did the child fail? (This shouldn't happen.) */
21285 /* Did the vfork/compiler bug occur? */
21286 || parent != getpid()
21288 /* Did the file descriptor bug occur? */
21289 || fstat(fileno(stdout), &st) != 0
21294 rm -f conftest$ac_exeext
21295 if { (ac_try="$ac_link"
21296 case "(($ac_try" in
21297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298 *) ac_try_echo=$ac_try;;
21300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301 (eval "$ac_link") 2>&5
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21305 { (case "(($ac_try" in
21306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21307 *) ac_try_echo=$ac_try;;
21309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21310 (eval "$ac_try") 2>&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }; }; then
21314 ac_cv_func_vfork_works=yes
21316 echo "$as_me: program exited with status $ac_status" >&5
21317 echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21320 ( exit $ac_status )
21321 ac_cv_func_vfork_works=no
21323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21328 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21329 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
21332 if test "x$ac_cv_func_fork_works" = xcross; then
21333 ac_cv_func_vfork_works=$ac_cv_func_vfork
21334 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21335 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21338 if test "x$ac_cv_func_vfork_works" = xyes; then
21340 cat >>confdefs.h <<\_ACEOF
21341 #define HAVE_WORKING_VFORK 1
21346 cat >>confdefs.h <<\_ACEOF
21351 if test "x$ac_cv_func_fork_works" = xyes; then
21353 cat >>confdefs.h <<\_ACEOF
21354 #define HAVE_WORKING_FORK 1
21360 for ac_header in stdlib.h
21362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21367 echo $ECHO_N "(cached) $ECHO_C" >&6
21369 ac_res=`eval echo '${'$as_ac_Header'}'`
21370 { echo "$as_me:$LINENO: result: $ac_res" >&5
21371 echo "${ECHO_T}$ac_res" >&6; }
21373 # Is the header compilable?
21374 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21376 cat >conftest.$ac_ext <<_ACEOF
21379 cat confdefs.h >>conftest.$ac_ext
21380 cat >>conftest.$ac_ext <<_ACEOF
21381 /* end confdefs.h. */
21382 $ac_includes_default
21383 #include <$ac_header>
21385 rm -f conftest.$ac_objext
21386 if { (ac_try="$ac_compile"
21387 case "(($ac_try" in
21388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389 *) ac_try_echo=$ac_try;;
21391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392 (eval "$ac_compile") 2>conftest.er1
21394 grep -v '^ *+' conftest.er1 >conftest.err
21396 cat conftest.err >&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); } && {
21399 test -z "$ac_c_werror_flag" ||
21400 test ! -s conftest.err
21401 } && test -s conftest.$ac_objext; then
21402 ac_header_compiler=yes
21404 echo "$as_me: failed program was:" >&5
21405 sed 's/^/| /' conftest.$ac_ext >&5
21407 ac_header_compiler=no
21410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21412 echo "${ECHO_T}$ac_header_compiler" >&6; }
21414 # Is the header present?
21415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21417 cat >conftest.$ac_ext <<_ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21423 #include <$ac_header>
21425 if { (ac_try="$ac_cpp conftest.$ac_ext"
21426 case "(($ac_try" in
21427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21428 *) ac_try_echo=$ac_try;;
21430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21433 grep -v '^ *+' conftest.er1 >conftest.err
21435 cat conftest.err >&5
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); } >/dev/null && {
21438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21439 test ! -s conftest.err
21441 ac_header_preproc=yes
21443 echo "$as_me: failed program was:" >&5
21444 sed 's/^/| /' conftest.$ac_ext >&5
21446 ac_header_preproc=no
21449 rm -f conftest.err conftest.$ac_ext
21450 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21451 echo "${ECHO_T}$ac_header_preproc" >&6; }
21453 # So? What about this header?
21454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21457 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21459 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21460 ac_header_preproc=yes
21463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21466 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21468 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21470 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21474 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21476 ## ----------------------------------------------- ##
21477 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
21478 ## ----------------------------------------------- ##
21480 ) | sed "s/^/$as_me: WARNING: /" >&2
21483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21486 echo $ECHO_N "(cached) $ECHO_C" >&6
21488 eval "$as_ac_Header=\$ac_header_preproc"
21490 ac_res=`eval echo '${'$as_ac_Header'}'`
21491 { echo "$as_me:$LINENO: result: $ac_res" >&5
21492 echo "${ECHO_T}$ac_res" >&6; }
21495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21496 cat >>confdefs.h <<_ACEOF
21497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21504 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21505 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21506 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21507 echo $ECHO_N "(cached) $ECHO_C" >&6
21509 if test "$cross_compiling" = yes; then
21510 ac_cv_func_malloc_0_nonnull=no
21512 cat >conftest.$ac_ext <<_ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h. */
21518 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21519 # include <stdlib.h>
21527 return ! malloc (0);
21532 rm -f conftest$ac_exeext
21533 if { (ac_try="$ac_link"
21534 case "(($ac_try" in
21535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21536 *) ac_try_echo=$ac_try;;
21538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21539 (eval "$ac_link") 2>&5
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21543 { (case "(($ac_try" in
21544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21545 *) ac_try_echo=$ac_try;;
21547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21548 (eval "$ac_try") 2>&5
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); }; }; then
21552 ac_cv_func_malloc_0_nonnull=yes
21554 echo "$as_me: program exited with status $ac_status" >&5
21555 echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21558 ( exit $ac_status )
21559 ac_cv_func_malloc_0_nonnull=no
21561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21566 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21567 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
21568 if test $ac_cv_func_malloc_0_nonnull = yes; then
21570 cat >>confdefs.h <<\_ACEOF
21571 #define HAVE_MALLOC 1
21575 cat >>confdefs.h <<\_ACEOF
21576 #define HAVE_MALLOC 0
21579 case " $LIBOBJS " in
21580 *" malloc.$ac_objext "* ) ;;
21581 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21586 cat >>confdefs.h <<\_ACEOF
21587 #define malloc rpl_malloc
21598 for ac_header in $ac_header_list
21600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21605 echo $ECHO_N "(cached) $ECHO_C" >&6
21607 ac_res=`eval echo '${'$as_ac_Header'}'`
21608 { echo "$as_me:$LINENO: result: $ac_res" >&5
21609 echo "${ECHO_T}$ac_res" >&6; }
21611 # Is the header compilable?
21612 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21614 cat >conftest.$ac_ext <<_ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h. */
21620 $ac_includes_default
21621 #include <$ac_header>
21623 rm -f conftest.$ac_objext
21624 if { (ac_try="$ac_compile"
21625 case "(($ac_try" in
21626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21627 *) ac_try_echo=$ac_try;;
21629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21630 (eval "$ac_compile") 2>conftest.er1
21632 grep -v '^ *+' conftest.er1 >conftest.err
21634 cat conftest.err >&5
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); } && {
21637 test -z "$ac_c_werror_flag" ||
21638 test ! -s conftest.err
21639 } && test -s conftest.$ac_objext; then
21640 ac_header_compiler=yes
21642 echo "$as_me: failed program was:" >&5
21643 sed 's/^/| /' conftest.$ac_ext >&5
21645 ac_header_compiler=no
21648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21650 echo "${ECHO_T}$ac_header_compiler" >&6; }
21652 # Is the header present?
21653 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21654 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21655 cat >conftest.$ac_ext <<_ACEOF
21658 cat confdefs.h >>conftest.$ac_ext
21659 cat >>conftest.$ac_ext <<_ACEOF
21660 /* end confdefs.h. */
21661 #include <$ac_header>
21663 if { (ac_try="$ac_cpp conftest.$ac_ext"
21664 case "(($ac_try" in
21665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666 *) ac_try_echo=$ac_try;;
21668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21671 grep -v '^ *+' conftest.er1 >conftest.err
21673 cat conftest.err >&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); } >/dev/null && {
21676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21677 test ! -s conftest.err
21679 ac_header_preproc=yes
21681 echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21684 ac_header_preproc=no
21687 rm -f conftest.err conftest.$ac_ext
21688 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21689 echo "${ECHO_T}$ac_header_preproc" >&6; }
21691 # So? What about this header?
21692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21698 ac_header_preproc=yes
21701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21714 ## ----------------------------------------------- ##
21715 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
21716 ## ----------------------------------------------- ##
21718 ) | sed "s/^/$as_me: WARNING: /" >&2
21721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21724 echo $ECHO_N "(cached) $ECHO_C" >&6
21726 eval "$as_ac_Header=\$ac_header_preproc"
21728 ac_res=`eval echo '${'$as_ac_Header'}'`
21729 { echo "$as_me:$LINENO: result: $ac_res" >&5
21730 echo "${ECHO_T}$ac_res" >&6; }
21733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21734 cat >>confdefs.h <<_ACEOF
21735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21750 for ac_func in $ac_func_list
21752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21756 echo $ECHO_N "(cached) $ECHO_C" >&6
21758 cat >conftest.$ac_ext <<_ACEOF
21761 cat confdefs.h >>conftest.$ac_ext
21762 cat >>conftest.$ac_ext <<_ACEOF
21763 /* end confdefs.h. */
21764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21766 #define $ac_func innocuous_$ac_func
21768 /* System header to define __stub macros and hopefully few prototypes,
21769 which can conflict with char $ac_func (); below.
21770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21771 <limits.h> exists even on freestanding compilers. */
21774 # include <limits.h>
21776 # include <assert.h>
21781 /* Override any GCC internal prototype to avoid an error.
21782 Use char because int might match the return type of a GCC
21783 builtin and then its argument prototype would still apply. */
21788 /* The GNU C library defines this for functions which it implements
21789 to always fail with ENOSYS. Some functions are actually named
21790 something starting with __ and the normal name is an alias. */
21791 #if defined __stub_$ac_func || defined __stub___$ac_func
21798 return $ac_func ();
21803 rm -f conftest.$ac_objext conftest$ac_exeext
21804 if { (ac_try="$ac_link"
21805 case "(($ac_try" in
21806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807 *) ac_try_echo=$ac_try;;
21809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21810 (eval "$ac_link") 2>conftest.er1
21812 grep -v '^ *+' conftest.er1 >conftest.err
21814 cat conftest.err >&5
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); } && {
21817 test -z "$ac_c_werror_flag" ||
21818 test ! -s conftest.err
21819 } && test -s conftest$ac_exeext &&
21820 $as_test_x conftest$ac_exeext; then
21821 eval "$as_ac_var=yes"
21823 echo "$as_me: failed program was:" >&5
21824 sed 's/^/| /' conftest.$ac_ext >&5
21826 eval "$as_ac_var=no"
21829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21830 conftest$ac_exeext conftest.$ac_ext
21832 ac_res=`eval echo '${'$as_ac_var'}'`
21833 { echo "$as_me:$LINENO: result: $ac_res" >&5
21834 echo "${ECHO_T}$ac_res" >&6; }
21835 if test `eval echo '${'$as_ac_var'}'` = yes; then
21836 cat >>confdefs.h <<_ACEOF
21837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21859 { echo "$as_me:$LINENO: checking for working mktime" >&5
21860 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
21861 if test "${ac_cv_func_working_mktime+set}" = set; then
21862 echo $ECHO_N "(cached) $ECHO_C" >&6
21864 if test "$cross_compiling" = yes; then
21865 ac_cv_func_working_mktime=no
21867 cat >conftest.$ac_ext <<_ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h. */
21873 /* Test program from Paul Eggert and Tony Leneis. */
21874 #ifdef TIME_WITH_SYS_TIME
21875 # include <sys/time.h>
21878 # ifdef HAVE_SYS_TIME_H
21879 # include <sys/time.h>
21885 #include <stdlib.h>
21887 #ifdef HAVE_UNISTD_H
21888 # include <unistd.h>
21892 # define alarm(X) /* empty */
21895 /* Work around redefinition to rpl_putenv by other config tests. */
21898 static time_t time_t_max;
21899 static time_t time_t_min;
21901 /* Values we'll use to set the TZ environment variable. */
21902 static char *tz_strings[] = {
21903 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21904 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21906 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21908 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21909 Based on a problem report from Andreas Jaeger. */
21911 spring_forward_gap ()
21913 /* glibc (up to about 1998-10-07) failed this test. */
21916 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21917 instead of "TZ=America/Vancouver" in order to detect the bug even
21918 on systems that don't support the Olson extension, or don't have the
21919 full zoneinfo tables installed. */
21920 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21929 return mktime (&tm) != (time_t) -1;
21937 return ! (lt = localtime (&now)) || mktime (lt) == now;
21944 return (mktime_test1 (now)
21945 && mktime_test1 ((time_t) (time_t_max - now))
21946 && mktime_test1 ((time_t) (time_t_min + now)));
21952 /* Based on code from Ariel Faigon. */
21962 return tm.tm_mon == 2 && tm.tm_mday == 31;
21971 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21972 now = mktime (&tm);
21973 if (now != (time_t) -1)
21975 struct tm *lt = localtime (&now);
21977 && lt->tm_year == tm.tm_year
21978 && lt->tm_mon == tm.tm_mon
21979 && lt->tm_mday == tm.tm_mday
21980 && lt->tm_hour == tm.tm_hour
21981 && lt->tm_min == tm.tm_min
21982 && lt->tm_sec == tm.tm_sec
21983 && lt->tm_yday == tm.tm_yday
21984 && lt->tm_wday == tm.tm_wday
21985 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21986 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21995 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21996 ignoring leap seconds. */
21997 unsigned long int answer = 2527315200UL;
22001 tm.tm_year = 2050 - 1900;
22004 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
22007 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22008 instead of "TZ=America/Vancouver" in order to detect the bug even
22009 on systems that don't support the Olson extension, or don't have the
22010 full zoneinfo tables installed. */
22011 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22015 /* Check that the result is either a failure, or close enough
22016 to the correct answer that we can assume the discrepancy is
22017 due to leap seconds. */
22018 return (t == (time_t) -1
22019 || (0 < t && answer - 120 <= t && t <= answer + 120));
22028 /* This test makes some buggy mktime implementations loop.
22029 Give up after 60 seconds; a mktime slower than that
22030 isn't worth using anyway. */
22033 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
22036 if ((time_t) -1 < 0)
22037 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
22039 delta = time_t_max / 997; /* a suitable prime number */
22040 for (i = 0; i < N_STRINGS; i++)
22043 putenv (tz_strings[i]);
22045 for (t = 0; t <= time_t_max - delta; t += delta)
22046 if (! mktime_test (t))
22048 if (! (mktime_test ((time_t) 1)
22049 && mktime_test ((time_t) (60 * 60))
22050 && mktime_test ((time_t) (60 * 60 * 24))))
22053 for (j = 1; 0 < j; j *= 2)
22054 if (! bigtime_test (j))
22056 if (! bigtime_test (j - 1))
22059 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
22062 rm -f conftest$ac_exeext
22063 if { (ac_try="$ac_link"
22064 case "(($ac_try" in
22065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22066 *) ac_try_echo=$ac_try;;
22068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22069 (eval "$ac_link") 2>&5
22071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22073 { (case "(($ac_try" in
22074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22075 *) ac_try_echo=$ac_try;;
22077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22078 (eval "$ac_try") 2>&5
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); }; }; then
22082 ac_cv_func_working_mktime=yes
22084 echo "$as_me: program exited with status $ac_status" >&5
22085 echo "$as_me: failed program was:" >&5
22086 sed 's/^/| /' conftest.$ac_ext >&5
22088 ( exit $ac_status )
22089 ac_cv_func_working_mktime=no
22091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22096 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
22097 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
22098 if test $ac_cv_func_working_mktime = no; then
22099 case " $LIBOBJS " in
22100 *" mktime.$ac_objext "* ) ;;
22101 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
22107 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22108 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22109 if test "${ac_cv_type_signal+set}" = set; then
22110 echo $ECHO_N "(cached) $ECHO_C" >&6
22112 cat >conftest.$ac_ext <<_ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h. */
22118 #include <sys/types.h>
22119 #include <signal.h>
22124 return *(signal (0, 0)) (0) == 1;
22129 rm -f conftest.$ac_objext
22130 if { (ac_try="$ac_compile"
22131 case "(($ac_try" in
22132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22133 *) ac_try_echo=$ac_try;;
22135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22136 (eval "$ac_compile") 2>conftest.er1
22138 grep -v '^ *+' conftest.er1 >conftest.err
22140 cat conftest.err >&5
22141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); } && {
22143 test -z "$ac_c_werror_flag" ||
22144 test ! -s conftest.err
22145 } && test -s conftest.$ac_objext; then
22146 ac_cv_type_signal=int
22148 echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22151 ac_cv_type_signal=void
22154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22156 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22157 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22159 cat >>confdefs.h <<_ACEOF
22160 #define RETSIGTYPE $ac_cv_type_signal
22164 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
22165 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
22166 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
22167 echo $ECHO_N "(cached) $ECHO_C" >&6
22169 rm -f conftest.sym conftest.file
22170 echo >conftest.file
22171 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
22172 if test "$cross_compiling" = yes; then
22173 ac_cv_func_lstat_dereferences_slashed_symlink=no
22175 cat >conftest.$ac_ext <<_ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h. */
22181 $ac_includes_default
22186 /* Linux will dereference the symlink and fail.
22187 That is better in the sense that it means we will not
22188 have to compile and use the lstat wrapper. */
22189 return lstat ("conftest.sym/", &sbuf) == 0;
22194 rm -f conftest$ac_exeext
22195 if { (ac_try="$ac_link"
22196 case "(($ac_try" in
22197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198 *) ac_try_echo=$ac_try;;
22200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22201 (eval "$ac_link") 2>&5
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22205 { (case "(($ac_try" in
22206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22207 *) ac_try_echo=$ac_try;;
22209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22210 (eval "$ac_try") 2>&5
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); }; }; then
22214 ac_cv_func_lstat_dereferences_slashed_symlink=yes
22216 echo "$as_me: program exited with status $ac_status" >&5
22217 echo "$as_me: failed program was:" >&5
22218 sed 's/^/| /' conftest.$ac_ext >&5
22220 ( exit $ac_status )
22221 ac_cv_func_lstat_dereferences_slashed_symlink=no
22223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22228 # If the `ln -s' command failed, then we probably don't even
22229 # have an lstat function.
22230 ac_cv_func_lstat_dereferences_slashed_symlink=no
22232 rm -f conftest.sym conftest.file
22235 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
22236 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
22238 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
22240 cat >>confdefs.h <<_ACEOF
22241 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
22245 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
22246 case " $LIBOBJS " in
22247 *" lstat.$ac_objext "* ) ;;
22248 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
22254 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
22255 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
22256 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
22257 echo $ECHO_N "(cached) $ECHO_C" >&6
22259 if test "$cross_compiling" = yes; then
22260 ac_cv_func_stat_empty_string_bug=yes
22262 cat >conftest.$ac_ext <<_ACEOF
22265 cat confdefs.h >>conftest.$ac_ext
22266 cat >>conftest.$ac_ext <<_ACEOF
22267 /* end confdefs.h. */
22268 $ac_includes_default
22273 return stat ("", &sbuf) == 0;
22278 rm -f conftest$ac_exeext
22279 if { (ac_try="$ac_link"
22280 case "(($ac_try" in
22281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22282 *) ac_try_echo=$ac_try;;
22284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22285 (eval "$ac_link") 2>&5
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22289 { (case "(($ac_try" in
22290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291 *) ac_try_echo=$ac_try;;
22293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22294 (eval "$ac_try") 2>&5
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); }; }; then
22298 ac_cv_func_stat_empty_string_bug=no
22300 echo "$as_me: program exited with status $ac_status" >&5
22301 echo "$as_me: failed program was:" >&5
22302 sed 's/^/| /' conftest.$ac_ext >&5
22304 ( exit $ac_status )
22305 ac_cv_func_stat_empty_string_bug=yes
22307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22312 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
22313 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
22314 if test $ac_cv_func_stat_empty_string_bug = yes; then
22315 case " $LIBOBJS " in
22316 *" stat.$ac_objext "* ) ;;
22317 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
22322 cat >>confdefs.h <<_ACEOF
22323 #define HAVE_STAT_EMPTY_STRING_BUG 1
22329 for ac_func in strftime
22331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22332 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22334 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22335 echo $ECHO_N "(cached) $ECHO_C" >&6
22337 cat >conftest.$ac_ext <<_ACEOF
22340 cat confdefs.h >>conftest.$ac_ext
22341 cat >>conftest.$ac_ext <<_ACEOF
22342 /* end confdefs.h. */
22343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22345 #define $ac_func innocuous_$ac_func
22347 /* System header to define __stub macros and hopefully few prototypes,
22348 which can conflict with char $ac_func (); below.
22349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22350 <limits.h> exists even on freestanding compilers. */
22353 # include <limits.h>
22355 # include <assert.h>
22360 /* Override any GCC internal prototype to avoid an error.
22361 Use char because int might match the return type of a GCC
22362 builtin and then its argument prototype would still apply. */
22367 /* The GNU C library defines this for functions which it implements
22368 to always fail with ENOSYS. Some functions are actually named
22369 something starting with __ and the normal name is an alias. */
22370 #if defined __stub_$ac_func || defined __stub___$ac_func
22377 return $ac_func ();
22382 rm -f conftest.$ac_objext conftest$ac_exeext
22383 if { (ac_try="$ac_link"
22384 case "(($ac_try" in
22385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22386 *) ac_try_echo=$ac_try;;
22388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22389 (eval "$ac_link") 2>conftest.er1
22391 grep -v '^ *+' conftest.er1 >conftest.err
22393 cat conftest.err >&5
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); } && {
22396 test -z "$ac_c_werror_flag" ||
22397 test ! -s conftest.err
22398 } && test -s conftest$ac_exeext &&
22399 $as_test_x conftest$ac_exeext; then
22400 eval "$as_ac_var=yes"
22402 echo "$as_me: failed program was:" >&5
22403 sed 's/^/| /' conftest.$ac_ext >&5
22405 eval "$as_ac_var=no"
22408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22409 conftest$ac_exeext conftest.$ac_ext
22411 ac_res=`eval echo '${'$as_ac_var'}'`
22412 { echo "$as_me:$LINENO: result: $ac_res" >&5
22413 echo "${ECHO_T}$ac_res" >&6; }
22414 if test `eval echo '${'$as_ac_var'}'` = yes; then
22415 cat >>confdefs.h <<_ACEOF
22416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22420 # strftime is in -lintl on SCO UNIX.
22421 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
22422 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
22423 if test "${ac_cv_lib_intl_strftime+set}" = set; then
22424 echo $ECHO_N "(cached) $ECHO_C" >&6
22426 ac_check_lib_save_LIBS=$LIBS
22427 LIBS="-lintl $LIBS"
22428 cat >conftest.$ac_ext <<_ACEOF
22431 cat confdefs.h >>conftest.$ac_ext
22432 cat >>conftest.$ac_ext <<_ACEOF
22433 /* end confdefs.h. */
22435 /* Override any GCC internal prototype to avoid an error.
22436 Use char because int might match the return type of a GCC
22437 builtin and then its argument prototype would still apply. */
22445 return strftime ();
22450 rm -f conftest.$ac_objext conftest$ac_exeext
22451 if { (ac_try="$ac_link"
22452 case "(($ac_try" in
22453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22454 *) ac_try_echo=$ac_try;;
22456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22457 (eval "$ac_link") 2>conftest.er1
22459 grep -v '^ *+' conftest.er1 >conftest.err
22461 cat conftest.err >&5
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); } && {
22464 test -z "$ac_c_werror_flag" ||
22465 test ! -s conftest.err
22466 } && test -s conftest$ac_exeext &&
22467 $as_test_x conftest$ac_exeext; then
22468 ac_cv_lib_intl_strftime=yes
22470 echo "$as_me: failed program was:" >&5
22471 sed 's/^/| /' conftest.$ac_ext >&5
22473 ac_cv_lib_intl_strftime=no
22476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22477 conftest$ac_exeext conftest.$ac_ext
22478 LIBS=$ac_check_lib_save_LIBS
22480 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
22481 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
22482 if test $ac_cv_lib_intl_strftime = yes; then
22483 cat >>confdefs.h <<\_ACEOF
22484 #define HAVE_STRFTIME 1
22487 LIBS="-lintl $LIBS"
22506 for ac_func in bzero clock_gettime ftruncate gettimeofday inet_ntoa memset strchr strerror strlcat strrchr strstr strtol strtoul
22508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22509 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22512 echo $ECHO_N "(cached) $ECHO_C" >&6
22514 cat >conftest.$ac_ext <<_ACEOF
22517 cat confdefs.h >>conftest.$ac_ext
22518 cat >>conftest.$ac_ext <<_ACEOF
22519 /* end confdefs.h. */
22520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22522 #define $ac_func innocuous_$ac_func
22524 /* System header to define __stub macros and hopefully few prototypes,
22525 which can conflict with char $ac_func (); below.
22526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22527 <limits.h> exists even on freestanding compilers. */
22530 # include <limits.h>
22532 # include <assert.h>
22537 /* Override any GCC internal prototype to avoid an error.
22538 Use char because int might match the return type of a GCC
22539 builtin and then its argument prototype would still apply. */
22544 /* The GNU C library defines this for functions which it implements
22545 to always fail with ENOSYS. Some functions are actually named
22546 something starting with __ and the normal name is an alias. */
22547 #if defined __stub_$ac_func || defined __stub___$ac_func
22554 return $ac_func ();
22559 rm -f conftest.$ac_objext conftest$ac_exeext
22560 if { (ac_try="$ac_link"
22561 case "(($ac_try" in
22562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22563 *) ac_try_echo=$ac_try;;
22565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22566 (eval "$ac_link") 2>conftest.er1
22568 grep -v '^ *+' conftest.er1 >conftest.err
22570 cat conftest.err >&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); } && {
22573 test -z "$ac_c_werror_flag" ||
22574 test ! -s conftest.err
22575 } && test -s conftest$ac_exeext &&
22576 $as_test_x conftest$ac_exeext; then
22577 eval "$as_ac_var=yes"
22579 echo "$as_me: failed program was:" >&5
22580 sed 's/^/| /' conftest.$ac_ext >&5
22582 eval "$as_ac_var=no"
22585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22586 conftest$ac_exeext conftest.$ac_ext
22588 ac_res=`eval echo '${'$as_ac_var'}'`
22589 { echo "$as_me:$LINENO: result: $ac_res" >&5
22590 echo "${ECHO_T}$ac_res" >&6; }
22591 if test `eval echo '${'$as_ac_var'}'` = yes; then
22592 cat >>confdefs.h <<_ACEOF
22593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22600 # sys/queue.h exists on most systems, but its capabilities vary a great deal.
22601 # test for LIST_FIRST and TAILQ_FOREACH_SAFE, which appears to not exist in
22602 # all of them, and are necessary for OpenBSM.
22603 cat >conftest.$ac_ext <<_ACEOF
22606 cat confdefs.h >>conftest.$ac_ext
22607 cat >>conftest.$ac_ext <<_ACEOF
22608 /* end confdefs.h. */
22610 #include <sys/queue.h>
22618 #error LIST_FIRST missing
22620 #ifndef TAILQ_FOREACH_SAFE
22621 #error TAILQ_FOREACH_SAFE
22628 rm -f conftest.$ac_objext conftest$ac_exeext
22629 if { (ac_try="$ac_link"
22630 case "(($ac_try" in
22631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22632 *) ac_try_echo=$ac_try;;
22634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22635 (eval "$ac_link") 2>conftest.er1
22637 grep -v '^ *+' conftest.er1 >conftest.err
22639 cat conftest.err >&5
22640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641 (exit $ac_status); } && {
22642 test -z "$ac_c_werror_flag" ||
22643 test ! -s conftest.err
22644 } && test -s conftest$ac_exeext &&
22645 $as_test_x conftest$ac_exeext; then
22648 cat >>confdefs.h <<\_ACEOF
22649 #define HAVE_FULL_QUEUE_H
22654 echo "$as_me: failed program was:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22661 conftest$ac_exeext conftest.$ac_ext
22663 # Systems may not define key audit system calls, in which case libbsm cannot
22664 # depend on them or it will generate link-time or run-time errors. Test for
22666 cat >conftest.$ac_ext <<_ACEOF
22669 cat confdefs.h >>conftest.$ac_ext
22670 cat >>conftest.$ac_ext <<_ACEOF
22671 /* end confdefs.h. */
22673 #include <stdlib.h>
22675 extern int auditon(int, void *, int);
22683 err = auditon(0, NULL, 0);
22689 rm -f conftest.$ac_objext conftest$ac_exeext
22690 if { (ac_try="$ac_link"
22691 case "(($ac_try" in
22692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22693 *) ac_try_echo=$ac_try;;
22695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22696 (eval "$ac_link") 2>conftest.er1
22698 grep -v '^ *+' conftest.er1 >conftest.err
22700 cat conftest.err >&5
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); } && {
22703 test -z "$ac_c_werror_flag" ||
22704 test ! -s conftest.err
22705 } && test -s conftest$ac_exeext &&
22706 $as_test_x conftest$ac_exeext; then
22709 cat >>confdefs.h <<\_ACEOF
22710 #define HAVE_AUDIT_SYSCALLS
22713 have_audit_syscalls=true
22716 echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.$ac_ext >&5
22720 have_audit_syscalls=false
22724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22725 conftest$ac_exeext conftest.$ac_ext
22726 if $have_audit_syscalls; then
22727 HAVE_AUDIT_SYSCALLS_TRUE=
22728 HAVE_AUDIT_SYSCALLS_FALSE='#'
22730 HAVE_AUDIT_SYSCALLS_TRUE='#'
22731 HAVE_AUDIT_SYSCALLS_FALSE=
22735 ac_config_files="$ac_config_files Makefile bin/Makefile bin/audit/Makefile bin/auditd/Makefile bin/auditfilterd/Makefile bin/auditreduce/Makefile bin/praudit/Makefile bsm/Makefile libbsm/Makefile modules/Makefile modules/auditfilter_noop/Makefile man/Makefile test/Makefile test/bsm/Makefile tools/Makefile"
22738 cat >confcache <<\_ACEOF
22739 # This file is a shell script that caches the results of configure
22740 # tests run on this system so they can be shared between configure
22741 # scripts and configure runs, see configure's option --config-cache.
22742 # It is not useful on other systems. If it contains results you don't
22743 # want to keep, you may remove or edit it.
22745 # config.status only pays attention to the cache file if you give it
22746 # the --recheck option to rerun configure.
22748 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22749 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22750 # following values.
22754 # The following way of writing the cache mishandles newlines in values,
22755 # but we know of no workaround that is simple, portable, and efficient.
22756 # So, we kill variables containing newlines.
22757 # Ultrix sh set writes to stderr and can't be redirected directly,
22758 # and sets the high bit in the cache file unless we assign to the vars.
22760 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22761 eval ac_val=\$$ac_var
22765 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22766 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22769 _ | IFS | as_nl) ;; #(
22770 *) $as_unset $ac_var ;;
22776 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22777 *${as_nl}ac_space=\ *)
22778 # `set' does not quote correctly, so add quotes (double-quote
22779 # substitution turns \\\\ into \\, and sed turns \\ into \).
22782 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22785 # `set' quotes correctly as required by POSIX, so do not add quotes.
22786 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22795 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22797 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22799 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22800 if test -w "$cache_file"; then
22801 test "x$cache_file" != "x/dev/null" &&
22802 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22803 echo "$as_me: updating cache $cache_file" >&6;}
22804 cat confcache >$cache_file
22806 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22807 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22812 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22813 # Let make expand exec_prefix.
22814 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22816 DEFS=-DHAVE_CONFIG_H
22820 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22821 # 1. Remove the extension, and $U if already installed.
22822 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22823 ac_i=`echo "$ac_i" | sed "$ac_script"`
22824 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22825 # will be set to the directory where LIBOBJS objects are built.
22826 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22827 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22829 LIBOBJS=$ac_libobjs
22831 LTLIBOBJS=$ac_ltlibobjs
22834 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22835 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22836 Usually this means the macro was only invoked conditionally." >&5
22837 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22838 Usually this means the macro was only invoked conditionally." >&2;}
22839 { (exit 1); exit 1; }; }
22841 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22842 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22843 Usually this means the macro was only invoked conditionally." >&5
22844 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22845 Usually this means the macro was only invoked conditionally." >&2;}
22846 { (exit 1); exit 1; }; }
22848 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22849 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22850 Usually this means the macro was only invoked conditionally." >&5
22851 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22852 Usually this means the macro was only invoked conditionally." >&2;}
22853 { (exit 1); exit 1; }; }
22855 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22856 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22857 Usually this means the macro was only invoked conditionally." >&5
22858 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22859 Usually this means the macro was only invoked conditionally." >&2;}
22860 { (exit 1); exit 1; }; }
22862 if test -z "${HAVE_AUDIT_SYSCALLS_TRUE}" && test -z "${HAVE_AUDIT_SYSCALLS_FALSE}"; then
22863 { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
22864 Usually this means the macro was only invoked conditionally." >&5
22865 echo "$as_me: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
22866 Usually this means the macro was only invoked conditionally." >&2;}
22867 { (exit 1); exit 1; }; }
22870 : ${CONFIG_STATUS=./config.status}
22871 ac_clean_files_save=$ac_clean_files
22872 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22873 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22874 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22875 cat >$CONFIG_STATUS <<_ACEOF
22877 # Generated by $as_me.
22878 # Run this file to recreate the current configuration.
22879 # Compiler output produced by configure, useful for debugging
22880 # configure, is in config.log if it exists.
22883 ac_cs_recheck=false
22885 SHELL=\${CONFIG_SHELL-$SHELL}
22888 cat >>$CONFIG_STATUS <<\_ACEOF
22889 ## --------------------- ##
22890 ## M4sh Initialization. ##
22891 ## --------------------- ##
22893 # Be more Bourne compatible
22894 DUALCASE=1; export DUALCASE # for MKS sh
22895 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22898 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22899 # is contrary to our usage. Disable this feature.
22900 alias -g '${1+"$@"}'='"$@"'
22901 setopt NO_GLOB_SUBST
22903 case `(set -o) 2>/dev/null` in
22904 *posix*) set -o posix ;;
22913 # Avoid depending upon Character Ranges.
22914 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22915 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22916 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22917 as_cr_digits='0123456789'
22918 as_cr_alnum=$as_cr_Letters$as_cr_digits
22920 # The user is always right.
22921 if test "${PATH_SEPARATOR+set}" != set; then
22922 echo "#! /bin/sh" >conf$$.sh
22923 echo "exit 0" >>conf$$.sh
22925 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22933 # Support unset when possible.
22934 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22942 # We need space, tab and new line, in precisely that order. Quoting is
22943 # there to prevent editors from complaining about space-tab.
22944 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22945 # splitting by setting IFS to empty value.)
22950 # Find who we are. Look in the path if we contain no directory separator.
22952 *[\\/]* ) as_myself=$0 ;;
22953 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22954 for as_dir in $PATH
22957 test -z "$as_dir" && as_dir=.
22958 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22964 # We did not find ourselves, most probably we were run as `sh COMMAND'
22965 # in which case we are not to be found in the path.
22966 if test "x$as_myself" = x; then
22969 if test ! -f "$as_myself"; then
22970 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22971 { (exit 1); exit 1; }
22974 # Work around bugs in pre-3.0 UWIN ksh.
22975 for as_var in ENV MAIL MAILPATH
22976 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22984 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22985 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22986 LC_TELEPHONE LC_TIME
22988 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22989 eval $as_var=C; export $as_var
22991 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22995 # Required to use basename.
22996 if expr a : '\(a\)' >/dev/null 2>&1 &&
22997 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23003 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23004 as_basename=basename
23010 # Name of the executable.
23011 as_me=`$as_basename -- "$0" ||
23012 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23013 X"$0" : 'X\(//\)$' \| \
23014 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23016 sed '/^.*\/\([^/][^/]*\)\/*$/{
23035 as_lineno_1=$LINENO
23036 as_lineno_2=$LINENO
23037 test "x$as_lineno_1" != "x$as_lineno_2" &&
23038 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23040 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23041 # uniformly replaced by the line number. The first 'sed' inserts a
23042 # line-number line after each line using $LINENO; the second 'sed'
23043 # does the real work. The second script uses 'N' to pair each
23044 # line-number line with the line containing $LINENO, and appends
23045 # trailing '-' during substitution so that $LINENO is not a special
23046 # case at line end.
23047 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23048 # scripts with optimization help from Paolo Bonzini. Blame Lee
23049 # E. McMahon (1931-1989) for sed's syntax. :-)
23061 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23064 ' >$as_me.lineno &&
23065 chmod +x "$as_me.lineno" ||
23066 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23067 { (exit 1); exit 1; }; }
23069 # Don't try to exec as it changes $[0], causing all sort of problems
23070 # (the dirname of $[0] is not the place where we might find the
23071 # original and so on. Autoconf is especially sensitive to this).
23072 . "./$as_me.lineno"
23073 # Exit status is that of the last command.
23078 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23084 ECHO_C= ECHO_N= ECHO_T=
23085 case `echo -n x` in
23087 case `echo 'x\c'` in
23088 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23095 if expr a : '\(a\)' >/dev/null 2>&1 &&
23096 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23102 rm -f conf$$ conf$$.exe conf$$.file
23103 if test -d conf$$.dir; then
23104 rm -f conf$$.dir/conf$$.file
23110 if ln -s conf$$.file conf$$ 2>/dev/null; then
23112 # ... but there are two gotchas:
23113 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23114 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23115 # In both cases, we have to default to `cp -p'.
23116 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23118 elif ln conf$$.file conf$$ 2>/dev/null; then
23123 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23124 rmdir conf$$.dir 2>/dev/null
23126 if mkdir -p . 2>/dev/null; then
23129 test -d ./-p && rmdir ./-p
23133 if test -x / >/dev/null 2>&1; then
23134 as_test_x='test -x'
23136 if ls -dL / >/dev/null 2>&1; then
23143 if test -d "$1"; then
23149 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23150 ???[sx]*):;;*)false;;esac;fi
23154 as_executable_p=$as_test_x
23156 # Sed expression to map a string onto a valid CPP name.
23157 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23159 # Sed expression to map a string onto a valid variable name.
23160 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23165 # Save the log message, to keep $[0] and so on meaningful, and to
23166 # report actual input values of CONFIG_FILES etc. instead of their
23167 # values after options handling.
23169 This file was extended by OpenBSM $as_me 1.0, which was
23170 generated by GNU Autoconf 2.61. Invocation command line was
23172 CONFIG_FILES = $CONFIG_FILES
23173 CONFIG_HEADERS = $CONFIG_HEADERS
23174 CONFIG_LINKS = $CONFIG_LINKS
23175 CONFIG_COMMANDS = $CONFIG_COMMANDS
23178 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23183 cat >>$CONFIG_STATUS <<_ACEOF
23184 # Files that config.status was made for.
23185 config_files="$ac_config_files"
23186 config_headers="$ac_config_headers"
23187 config_commands="$ac_config_commands"
23191 cat >>$CONFIG_STATUS <<\_ACEOF
23193 \`$as_me' instantiates files from templates according to the
23194 current configuration.
23196 Usage: $0 [OPTIONS] [FILE]...
23198 -h, --help print this help, then exit
23199 -V, --version print version number and configuration settings, then exit
23200 -q, --quiet do not print progress messages
23201 -d, --debug don't remove temporary files
23202 --recheck update $as_me by reconfiguring in the same conditions
23203 --file=FILE[:TEMPLATE]
23204 instantiate the configuration file FILE
23205 --header=FILE[:TEMPLATE]
23206 instantiate the configuration header FILE
23208 Configuration files:
23211 Configuration headers:
23214 Configuration commands:
23217 Report bugs to <bug-autoconf@gnu.org>."
23220 cat >>$CONFIG_STATUS <<_ACEOF
23222 OpenBSM config.status 1.0
23223 configured by $0, generated by GNU Autoconf 2.61,
23224 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23226 Copyright (C) 2006 Free Software Foundation, Inc.
23227 This config.status script is free software; the Free Software Foundation
23228 gives unlimited permission to copy, distribute and modify it."
23236 cat >>$CONFIG_STATUS <<\_ACEOF
23237 # If no file are specified by the user, then we need to provide default
23238 # value. By we need to know if files were specified by the user.
23244 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23245 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23256 # Handling of the options.
23257 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23259 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23260 echo "$ac_cs_version"; exit ;;
23261 --debug | --debu | --deb | --de | --d | -d )
23263 --file | --fil | --fi | --f )
23265 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23266 ac_need_defaults=false;;
23267 --header | --heade | --head | --hea )
23269 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23270 ac_need_defaults=false;;
23272 # Conflict between --help and --header
23273 { echo "$as_me: error: ambiguous option: $1
23274 Try \`$0 --help' for more information." >&2
23275 { (exit 1); exit 1; }; };;
23276 --help | --hel | -h )
23277 echo "$ac_cs_usage"; exit ;;
23278 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23279 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23282 # This is an error.
23283 -*) { echo "$as_me: error: unrecognized option: $1
23284 Try \`$0 --help' for more information." >&2
23285 { (exit 1); exit 1; }; } ;;
23287 *) ac_config_targets="$ac_config_targets $1"
23288 ac_need_defaults=false ;;
23294 ac_configure_extra_args=
23296 if $ac_cs_silent; then
23298 ac_configure_extra_args="$ac_configure_extra_args --silent"
23302 cat >>$CONFIG_STATUS <<_ACEOF
23303 if \$ac_cs_recheck; then
23304 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23305 CONFIG_SHELL=$SHELL
23306 export CONFIG_SHELL
23307 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23311 cat >>$CONFIG_STATUS <<\_ACEOF
23315 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23316 ## Running $as_me. ##
23322 cat >>$CONFIG_STATUS <<_ACEOF
23326 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23330 cat >>$CONFIG_STATUS <<\_ACEOF
23332 # Handling of arguments.
23333 for ac_config_target in $ac_config_targets
23335 case $ac_config_target in
23336 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
23337 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23338 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23339 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
23340 "bin/audit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/audit/Makefile" ;;
23341 "bin/auditd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditd/Makefile" ;;
23342 "bin/auditfilterd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditfilterd/Makefile" ;;
23343 "bin/auditreduce/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditreduce/Makefile" ;;
23344 "bin/praudit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/praudit/Makefile" ;;
23345 "bsm/Makefile") CONFIG_FILES="$CONFIG_FILES bsm/Makefile" ;;
23346 "libbsm/Makefile") CONFIG_FILES="$CONFIG_FILES libbsm/Makefile" ;;
23347 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
23348 "modules/auditfilter_noop/Makefile") CONFIG_FILES="$CONFIG_FILES modules/auditfilter_noop/Makefile" ;;
23349 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23350 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23351 "test/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES test/bsm/Makefile" ;;
23352 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
23354 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23355 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23356 { (exit 1); exit 1; }; };;
23361 # If the user did not use the arguments to specify the items to instantiate,
23362 # then the envvar interface is used. Set only those that are not.
23363 # We use the long form for the default assignment because of an extremely
23364 # bizarre bug on SunOS 4.1.3.
23365 if $ac_need_defaults; then
23366 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23367 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23368 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23371 # Have a temporary directory for convenience. Make it in the build tree
23372 # simply because there is no reason against having it here, and in addition,
23373 # creating and moving files from /tmp can sometimes cause problems.
23374 # Hook for its removal unless debugging.
23375 # Note that there is a small window in which the directory will not be cleaned:
23376 # after its creation but before its name has been assigned to `$tmp'.
23380 trap 'exit_status=$?
23381 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23383 trap '{ (exit 1); exit 1; }' 1 2 13 15
23385 # Create a (secure) tmp directory for tmp files.
23388 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23389 test -n "$tmp" && test -d "$tmp"
23392 tmp=./conf$$-$RANDOM
23393 (umask 077 && mkdir "$tmp")
23396 echo "$me: cannot create a temporary directory in ." >&2
23397 { (exit 1); exit 1; }
23401 # Set up the sed scripts for CONFIG_FILES section.
23404 # No need to generate the scripts if there are no CONFIG_FILES.
23405 # This happens for instance when ./config.status config.h
23406 if test -n "$CONFIG_FILES"; then
23413 for ac_last_try in false false false false false :; do
23414 cat >conf$$subs.sed <<_ACEOF
23415 SHELL!$SHELL$ac_delim
23416 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23417 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23418 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23419 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23420 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23421 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23422 exec_prefix!$exec_prefix$ac_delim
23423 prefix!$prefix$ac_delim
23424 program_transform_name!$program_transform_name$ac_delim
23425 bindir!$bindir$ac_delim
23426 sbindir!$sbindir$ac_delim
23427 libexecdir!$libexecdir$ac_delim
23428 datarootdir!$datarootdir$ac_delim
23429 datadir!$datadir$ac_delim
23430 sysconfdir!$sysconfdir$ac_delim
23431 sharedstatedir!$sharedstatedir$ac_delim
23432 localstatedir!$localstatedir$ac_delim
23433 includedir!$includedir$ac_delim
23434 oldincludedir!$oldincludedir$ac_delim
23435 docdir!$docdir$ac_delim
23436 infodir!$infodir$ac_delim
23437 htmldir!$htmldir$ac_delim
23438 dvidir!$dvidir$ac_delim
23439 pdfdir!$pdfdir$ac_delim
23440 psdir!$psdir$ac_delim
23441 libdir!$libdir$ac_delim
23442 localedir!$localedir$ac_delim
23443 mandir!$mandir$ac_delim
23444 DEFS!$DEFS$ac_delim
23445 ECHO_C!$ECHO_C$ac_delim
23446 ECHO_N!$ECHO_N$ac_delim
23447 ECHO_T!$ECHO_T$ac_delim
23448 LIBS!$LIBS$ac_delim
23449 build_alias!$build_alias$ac_delim
23450 host_alias!$host_alias$ac_delim
23451 target_alias!$target_alias$ac_delim
23452 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23453 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23454 MAINT!$MAINT$ac_delim
23456 CFLAGS!$CFLAGS$ac_delim
23457 LDFLAGS!$LDFLAGS$ac_delim
23458 CPPFLAGS!$CPPFLAGS$ac_delim
23459 ac_ct_CC!$ac_ct_CC$ac_delim
23460 EXEEXT!$EXEEXT$ac_delim
23461 OBJEXT!$OBJEXT$ac_delim
23462 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23463 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23464 INSTALL_DATA!$INSTALL_DATA$ac_delim
23465 build!$build$ac_delim
23466 build_cpu!$build_cpu$ac_delim
23467 build_vendor!$build_vendor$ac_delim
23468 build_os!$build_os$ac_delim
23469 host!$host$ac_delim
23470 host_cpu!$host_cpu$ac_delim
23471 host_vendor!$host_vendor$ac_delim
23472 host_os!$host_os$ac_delim
23474 GREP!$GREP$ac_delim
23475 EGREP!$EGREP$ac_delim
23476 LN_S!$LN_S$ac_delim
23477 ECHO!$ECHO$ac_delim
23479 RANLIB!$RANLIB$ac_delim
23480 STRIP!$STRIP$ac_delim
23483 CXXFLAGS!$CXXFLAGS$ac_delim
23484 ac_ct_CXX!$ac_ct_CXX$ac_delim
23485 CXXCPP!$CXXCPP$ac_delim
23487 FFLAGS!$FFLAGS$ac_delim
23488 ac_ct_F77!$ac_ct_F77$ac_delim
23489 LIBTOOL!$LIBTOOL$ac_delim
23490 am__isrc!$am__isrc$ac_delim
23491 CYGPATH_W!$CYGPATH_W$ac_delim
23492 PACKAGE!$PACKAGE$ac_delim
23493 VERSION!$VERSION$ac_delim
23494 ACLOCAL!$ACLOCAL$ac_delim
23495 AUTOCONF!$AUTOCONF$ac_delim
23496 AUTOMAKE!$AUTOMAKE$ac_delim
23497 AUTOHEADER!$AUTOHEADER$ac_delim
23498 MAKEINFO!$MAKEINFO$ac_delim
23499 install_sh!$install_sh$ac_delim
23500 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23501 mkdir_p!$mkdir_p$ac_delim
23503 SET_MAKE!$SET_MAKE$ac_delim
23504 am__leading_dot!$am__leading_dot$ac_delim
23505 AMTAR!$AMTAR$ac_delim
23506 am__tar!$am__tar$ac_delim
23507 am__untar!$am__untar$ac_delim
23508 DEPDIR!$DEPDIR$ac_delim
23509 am__include!$am__include$ac_delim
23510 am__quote!$am__quote$ac_delim
23511 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23514 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23516 elif $ac_last_try; then
23517 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23518 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23519 { (exit 1); exit 1; }; }
23521 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23525 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23526 if test -n "$ac_eof"; then
23527 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23528 ac_eof=`expr $ac_eof + 1`
23531 cat >>$CONFIG_STATUS <<_ACEOF
23532 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23533 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23536 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23537 s/^/s,@/; s/!/@,|#_!!_#|/
23540 s/'"$ac_delim"'$/,g/; t
23542 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23543 ' >>$CONFIG_STATUS <conf$$subs.sed
23544 rm -f conf$$subs.sed
23545 cat >>$CONFIG_STATUS <<_ACEOF
23551 for ac_last_try in false false false false false :; do
23552 cat >conf$$subs.sed <<_ACEOF
23553 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23554 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23555 CCDEPMODE!$CCDEPMODE$ac_delim
23556 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23557 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23558 CXXDEPMODE!$CXXDEPMODE$ac_delim
23559 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23560 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23561 LIBOBJS!$LIBOBJS$ac_delim
23562 HAVE_AUDIT_SYSCALLS_TRUE!$HAVE_AUDIT_SYSCALLS_TRUE$ac_delim
23563 HAVE_AUDIT_SYSCALLS_FALSE!$HAVE_AUDIT_SYSCALLS_FALSE$ac_delim
23564 LTLIBOBJS!$LTLIBOBJS$ac_delim
23567 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
23569 elif $ac_last_try; then
23570 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23571 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23572 { (exit 1); exit 1; }; }
23574 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23578 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23579 if test -n "$ac_eof"; then
23580 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23581 ac_eof=`expr $ac_eof + 1`
23584 cat >>$CONFIG_STATUS <<_ACEOF
23585 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23589 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23590 s/^/s,@/; s/!/@,|#_!!_#|/
23593 s/'"$ac_delim"'$/,g/; t
23595 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23596 ' >>$CONFIG_STATUS <conf$$subs.sed
23597 rm -f conf$$subs.sed
23598 cat >>$CONFIG_STATUS <<_ACEOF
23605 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23606 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23607 # trailing colons and then remove the whole line if VPATH becomes empty
23608 # (actually we leave an empty line to preserve line numbers).
23609 if test "x$srcdir" = x.; then
23610 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23611 s/:*\$(srcdir):*/:/
23612 s/:*\${srcdir}:*/:/
23614 s/^\([^=]*=[ ]*\):*/\1/
23620 cat >>$CONFIG_STATUS <<\_ACEOF
23621 fi # test -n "$CONFIG_FILES"
23624 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23627 :[FHLC]) ac_mode=$ac_tag; continue;;
23629 case $ac_mode$ac_tag in
23631 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23632 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23633 { (exit 1); exit 1; }; };;
23634 :[FH]-) ac_tag=-:-;;
23635 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23652 -) ac_f="$tmp/stdin";;
23653 *) # Look for the file first in the build tree, then in the source tree
23654 # (if the path is not absolute). The absolute path cannot be DOS-style,
23655 # because $ac_f cannot contain `:'.
23659 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23661 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23662 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23663 { (exit 1); exit 1; }; };;
23665 ac_file_inputs="$ac_file_inputs $ac_f"
23668 # Let's still pretend it is `configure' which instantiates (i.e., don't
23669 # use $as_me), people would be surprised to read:
23670 # /* config.h. Generated by config.status. */
23671 configure_input="Generated from "`IFS=:
23672 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23673 if test x"$ac_file" != x-; then
23674 configure_input="$ac_file. $configure_input"
23675 { echo "$as_me:$LINENO: creating $ac_file" >&5
23676 echo "$as_me: creating $ac_file" >&6;}
23680 *:-:* | *:-) cat >"$tmp/stdin";;
23685 ac_dir=`$as_dirname -- "$ac_file" ||
23686 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23687 X"$ac_file" : 'X\(//\)[^/]' \| \
23688 X"$ac_file" : 'X\(//\)$' \| \
23689 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23695 /^X\(\/\/\)[^/].*/{
23710 -*) as_dir=./$as_dir;;
23712 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23716 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23717 *) as_qdir=$as_dir;;
23719 as_dirs="'$as_qdir' $as_dirs"
23720 as_dir=`$as_dirname -- "$as_dir" ||
23721 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23722 X"$as_dir" : 'X\(//\)[^/]' \| \
23723 X"$as_dir" : 'X\(//\)$' \| \
23724 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23730 /^X\(\/\/\)[^/].*/{
23743 test -d "$as_dir" && break
23745 test -z "$as_dirs" || eval "mkdir $as_dirs"
23746 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23747 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23748 { (exit 1); exit 1; }; }; }
23752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23754 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23755 # A ".." for each directory in $ac_dir_suffix.
23756 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23757 case $ac_top_builddir_sub in
23758 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23759 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23762 ac_abs_top_builddir=$ac_pwd
23763 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23764 # for backward compatibility:
23765 ac_top_builddir=$ac_top_build_prefix
23768 .) # We are building in place.
23770 ac_top_srcdir=$ac_top_builddir_sub
23771 ac_abs_top_srcdir=$ac_pwd ;;
23772 [\\/]* | ?:[\\/]* ) # Absolute name.
23773 ac_srcdir=$srcdir$ac_dir_suffix;
23774 ac_top_srcdir=$srcdir
23775 ac_abs_top_srcdir=$srcdir ;;
23776 *) # Relative name.
23777 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23778 ac_top_srcdir=$ac_top_build_prefix$srcdir
23779 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23791 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23792 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23794 ac_MKDIR_P=$MKDIR_P
23796 [\\/$]* | ?:[\\/]* ) ;;
23797 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23801 cat >>$CONFIG_STATUS <<\_ACEOF
23802 # If the template does not know about datarootdir, expand it.
23803 # FIXME: This hack should be removed a few years after 2.60.
23804 ac_datarootdir_hack=; ac_datarootdir_seen=
23806 case `sed -n '/datarootdir/ {
23815 ' $ac_file_inputs` in
23816 *datarootdir*) ac_datarootdir_seen=yes;;
23817 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23818 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23819 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23821 cat >>$CONFIG_STATUS <<_ACEOF
23822 ac_datarootdir_hack='
23823 s&@datadir@&$datadir&g
23824 s&@docdir@&$docdir&g
23825 s&@infodir@&$infodir&g
23826 s&@localedir@&$localedir&g
23827 s&@mandir@&$mandir&g
23828 s&\\\${datarootdir}&$datarootdir&g' ;;
23832 # Neutralize VPATH when `$srcdir' = `.'.
23833 # Shell code in configure.ac might set extrasub.
23834 # FIXME: do we really want to maintain this feature?
23835 cat >>$CONFIG_STATUS <<_ACEOF
23839 cat >>$CONFIG_STATUS <<\_ACEOF
23841 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23842 s&@configure_input@&$configure_input&;t t
23843 s&@top_builddir@&$ac_top_builddir_sub&;t t
23844 s&@srcdir@&$ac_srcdir&;t t
23845 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23846 s&@top_srcdir@&$ac_top_srcdir&;t t
23847 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23848 s&@builddir@&$ac_builddir&;t t
23849 s&@abs_builddir@&$ac_abs_builddir&;t t
23850 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23851 s&@INSTALL@&$ac_INSTALL&;t t
23852 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23853 $ac_datarootdir_hack
23854 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23856 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23857 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23858 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23859 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23860 which seems to be undefined. Please make sure it is defined." >&5
23861 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23862 which seems to be undefined. Please make sure it is defined." >&2;}
23866 -) cat "$tmp/out"; rm -f "$tmp/out";;
23867 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23876 # Transform confdefs.h into a sed script `conftest.defines', that
23877 # substitutes the proper values into config.h.in to produce config.h.
23878 rm -f conftest.defines conftest.tail
23879 # First, append a space to every undef/define line, to ease matching.
23880 echo 's/$/ /' >conftest.defines
23881 # Then, protect against being on the right side of a sed subst, or in
23882 # an unquoted here document, in config.status. If some macros were
23883 # called several times there might be several #defines for the same
23884 # symbol, which is useless. But do not sort them, since the last
23885 # AC_DEFINE must be honored.
23886 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23887 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23888 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23889 # PARAMS is the parameter list in the macro definition--in most cases, it's
23890 # just an empty string.
23891 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23892 ac_dB='\\)[ (].*,\\1define\\2'
23900 s/^[ ]*#[ ]*define[ ][ ]*//
23905 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23906 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23907 ' >>conftest.defines
23909 # Remove the space that was appended to ease matching.
23910 # Then replace #undef with comments. This is necessary, for
23911 # example, in the case of _POSIX_SOURCE, which is predefined and required
23912 # on some systems where configure will not decide to define it.
23913 # (The regexp can be short, since the line contains either #define or #undef.)
23915 s,^[ #]*u.*,/* & */,' >>conftest.defines
23917 # Break up conftest.defines:
23918 ac_max_sed_lines=50
23920 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23921 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23922 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23924 ac_in='$ac_file_inputs'
23925 ac_out='"$tmp/out1"'
23926 ac_nxt='"$tmp/out2"'
23930 # Write a here document:
23931 cat >>$CONFIG_STATUS <<_ACEOF
23932 # First, check the format of the line:
23933 cat >"\$tmp/defines.sed" <<\\CEOF
23934 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23935 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23939 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23941 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23942 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23943 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23944 grep . conftest.tail >/dev/null || break
23945 rm -f conftest.defines
23946 mv conftest.tail conftest.defines
23948 rm -f conftest.defines conftest.tail
23950 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23951 cat >>$CONFIG_STATUS <<\_ACEOF
23952 if test x"$ac_file" != x-; then
23953 echo "/* $configure_input */" >"$tmp/config.h"
23954 cat "$ac_result" >>"$tmp/config.h"
23955 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23956 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23957 echo "$as_me: $ac_file is unchanged" >&6;}
23960 mv "$tmp/config.h" $ac_file
23963 echo "/* $configure_input */"
23967 # Compute $ac_file's index in $config_headers.
23969 for _am_header in $config_headers :; do
23970 case $_am_header in
23971 $ac_file | $ac_file:* )
23974 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23977 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23978 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23979 X$ac_file : 'X\(//\)[^/]' \| \
23980 X$ac_file : 'X\(//\)$' \| \
23981 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23987 /^X\(\/\/\)[^/].*/{
23999 s/.*/./; q'`/stamp-h$_am_stamp_count
24002 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24003 echo "$as_me: executing $ac_file commands" >&6;}
24008 case $ac_file$ac_mode in
24009 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24010 # Strip MF so we end up with the name of the file.
24011 mf=`echo "$mf" | sed -e 's/:.*$//'`
24012 # Check whether this is an Automake generated Makefile or not.
24013 # We used to match only the files named `Makefile.in', but
24014 # some people rename them; so instead we look at the file content.
24015 # Grep'ing the first line is not enough: some people post-process
24016 # each Makefile.in and add a new line on top of each file to say so.
24017 # Grep'ing the whole file is not good either: AIX grep has a line
24018 # limit of 2048, but all sed's we know have understand at least 4000.
24019 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
24020 dirpart=`$as_dirname -- "$mf" ||
24021 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24022 X"$mf" : 'X\(//\)[^/]' \| \
24023 X"$mf" : 'X\(//\)$' \| \
24024 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24030 /^X\(\/\/\)[^/].*/{
24046 # Extract the definition of DEPDIR, am__include, and am__quote
24047 # from the Makefile without running `make'.
24048 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24049 test -z "$DEPDIR" && continue
24050 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24051 test -z "am__include" && continue
24052 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24053 # When using ansi2knr, U may be empty or an underscore; expand it
24054 U=`sed -n 's/^U = //p' < "$mf"`
24055 # Find all dependency output files, they are included files with
24056 # $(DEPDIR) in their names. We invoke sed twice because it is the
24057 # simplest approach to changing $(DEPDIR) to its actual value in the
24059 for file in `sed -n "
24060 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24061 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24062 # Make sure the directory exists.
24063 test -f "$dirpart/$file" && continue
24064 fdir=`$as_dirname -- "$file" ||
24065 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24066 X"$file" : 'X\(//\)[^/]' \| \
24067 X"$file" : 'X\(//\)$' \| \
24068 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24074 /^X\(\/\/\)[^/].*/{
24087 { as_dir=$dirpart/$fdir
24089 -*) as_dir=./$as_dir;;
24091 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24095 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24096 *) as_qdir=$as_dir;;
24098 as_dirs="'$as_qdir' $as_dirs"
24099 as_dir=`$as_dirname -- "$as_dir" ||
24100 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24101 X"$as_dir" : 'X\(//\)[^/]' \| \
24102 X"$as_dir" : 'X\(//\)$' \| \
24103 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24109 /^X\(\/\/\)[^/].*/{
24122 test -d "$as_dir" && break
24124 test -z "$as_dirs" || eval "mkdir $as_dirs"
24125 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24126 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24127 { (exit 1); exit 1; }; }; }
24128 # echo "creating $dirpart/$file"
24129 echo '# dummy' > "$dirpart/$file"
24138 { (exit 0); exit 0; }
24140 chmod +x $CONFIG_STATUS
24141 ac_clean_files=$ac_clean_files_save
24144 # configure is writing to config.log, and then calls config.status.
24145 # config.status does its own redirection, appending to config.log.
24146 # Unfortunately, on DOS this fails, as config.log is still kept open
24147 # by configure, so config.status won't be able to write to it; its
24148 # output is simply discarded. So we exec the FD to /dev/null,
24149 # effectively closing config.log, so it can be properly (re)opened and
24150 # appended to by config.status. When coming back to configure, we
24151 # need to make the FD available again.
24152 if test "$no_create" != yes; then
24154 ac_config_status_args=
24155 test "$silent" = yes &&
24156 ac_config_status_args="$ac_config_status_args --quiet"
24158 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24160 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24161 # would make configure fail if this is the last instruction.
24162 $ac_cs_success || { (exit 1); exit 1; }